PageSourceSearch

https://www.screambox.com/_next/static/chunks/pages/_app-33245fc59bcbe38d.js

js screambox.com collected 2026-10-02 06:45:40 UTC 2,863,070 bytes, 99 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{48711:function(e,t,r){"use strict";r.d(t,{Z:function(){return eg}});var n=!1;function i(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]}function o(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}var a=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?!n: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(o(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=i(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,450 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),s=Math.abs,l=String.fromCharCode,c=Object.assign;function u(e,t){return 45^m(e,0)?(((t<<2^m(e,0))<<2^m(e,1))<<2^m(e,2))<<2^m(e,3):0}function d(e){return e.trim()}function h(e,t){return(e=t.exec(e))?e[0]:e}function p(e,t,r){return e.replace(t,r)}function f(e,t){return e.indexOf(t)}function m(e,t){return 0|e.charCodeAt(t)}function g(e,t,r){return e.slice(t,r)}function y(e){return e.length}function v(e){return e.length}function b(e,t){return t.push(e),e}function _(e,t){return e.map(t).join("")}var w=1,S=1,k=0,x=0,E=0,T="";function A(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:w,column:S,length:a,return:""}}function C(e,t){return c(A("",null,null,"",null,null,0),e,{length:-e.length},t)}function P(){return E}function I(){return E=x>0?m(T,--x):0,S--,10===E&&(S=1,w--),E}function O(){return E=x<k?m(T,x++):0,S++,10===E&&(S=1,w++),E}function N(){return m(T,x)}function D(){return x}function R(e,t){return g(T,e,t)}function L(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 M(e){return w=S=1,k=y(T=e),x=0,[]}function j(e){return T="",e}function B(e){return d(R(x-1,H(91===e?e+2:40===e?e+1:e)))}function U(e){for(;E=N();)if(E<33)O();else break;return L(e)>2||L(E)>3?"":" "}function F(e,t){for(;--t&&O()&&!(E<48)&&!(E>102)&&(!(E>57)||!(E<65))&&(!(E>70)||!(E<97)););return R(e,D()+(t<6&&32==N()&&32==O()))}function H(e){for(;O();)switch(E){case e:return x;case 34:case 39:34!==e&&39!==e&&H(E);break;case 40:41===e&&H(e);break;case 92:O()}return x}function z(e,t){for(;O();)if(e+E===57)break;else if(e+E===84&&47===N())break;return"/*"+R(t,x-1)+"*"+l(47===e?e:O())}function $(e){for(;!L(N());)O();return R(e,x)}var q="-ms-",W="-moz-",V="-webkit-",G="comm",K="rule",Z="decl",Y="@import",J="@keyframes",X="@layer";function Q(e,t){for(var r="",n=v(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function ee(e,t,r,n){switch(e.type){case X:if(e.children.length)break;case Y:case Z:return e.return=e.return||e.value;case G:return"";case J:return e.return=e.value+"{"+Q(e.children,n)+"}";case K:e.value=e.props.join(",")}return y(r=Q(e.children,n))?e.return=e.value+"{"+r+"}":""}function et(e){var t=v(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function er(e){return function(t){!t.root&&(t=t.return)&&e(t)}}function en(e){return j(ei("",null,null,null,[""],e=M(e),0,[0],e))}function ei(e,t,r,n,i,o,a,s,c){for(var u=0,d=0,h=a,g=0,v=0,_=0,w=1,S=1,k=1,x=0,E="",T=i,A=o,C=n,P=E;S;)switch(_=x,x=O()){case 40:if(108!=_&&58==m(P,h-1)){-1!=f(P+=p(B(x),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:P+=B(x);break;case 9:case 10:case 13:case 32:P+=U(_);break;case 92:P+=F(D()-1,7);continue;case 47:switch(N()){case 42:case 47:b(ea(z(O(),D()),t,r),c);break;default:P+="/"}break;case 123*w:s[u++]=y(P)*k;case 125*w:case 59:case 0:switch(x){case 0:case 125:S=0;case 59+d:-1==k&&(P=p(P,/\f/g,"")),v>0&&y(P)-h&&b(v>32?es(P+";",n,r,h-1):es(p(P," ","")+";",n,r,h-2),c);break;case 59:P+=";";default:if(b(C=eo(P,t,r,u,d,i,s,E,T=[],A=[],h),o),123===x){if(0===d)ei(P,t,C,C,T,o,h,s,A);else switch(99===g&&110===m(P,3)?100:g){case 100:case 108:case 109:case 115:ei(e,C,C,n&&b(eo(e,C,C,0,0,i,s,E,i,T=[],h),A),i,A,h,s,n?T:A);break;default:ei(P,C,C,C,[""],A,0,s,A)}}}u=d=v=0,w=k=1,E=P="",h=a;break;case 58:h=1+y(P),v=_;default:if(w<1){if(123==x)--w;else if(125==x&&0==w++&&125==I())continue}switch(P+=l(x),x*w){case 38:k=d>0?1:(P+="\f",-1);break;case 44:s[u++]=(y(P)-1)*k,k=1;break;case 64:45===N()&&(P+=B(O())),g=N(),d=h=y(E=P+=$(D())),x++;break;case 45:45===_&&2==y(P)&&(w=0)}}return o}function eo(e,t,r,n,i,o,a,l,c,u,h){for(var f=i-1,m=0===i?o:[""],y=v(m),b=0,_=0,w=0;b<n;++b)for(var S=0,k=g(e,f+1,f=s(_=a[b])),x=e;S<y;++S)(x=d(_>0?m[S]+" "+k:p(k,/&\f/g,m[S])))&&(c[w++]=x);return A(e,t,r,0===i?K:l,c,u,h)}function ea(e,t,r){return A(e,t,r,G,l(P()),g(e,2,-2),0)}function es(e,t,r,n){return A(e,t,r,Z,g(e,0,n),g(e,n+1,-1),n)}var el=function(e,t,r){for(var n=0,i=0;n=i,i=N(),38===n&&12===i&&(t[r]=1),!L(i);)O();return R(e,x)},ec=function(e,t){var r=-1,n=44;do switch(L(n)){case 0:38===n&&12===N()&&(t[r]=1),e[r]+=el(x-1,t,r);break;case 2:e[r]+=B(n);break;case 4:if(44===n){e[++r]=58===N()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=l(n)}while(n=O());return e},eu=function(e,t){return j(ec(M(e),t))},ed=new WeakMap,eh=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ed.get(r))&&!n){ed.set(e,!0);for(var i=[],o=eu(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ep=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ef(e,t){switch(u(e,t)){case 5103:return V+"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 V+e+e;
1case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+W+e+q+e+e;case 6828:case 4268:return V+e+q+e+e;case 6165:return V+e+q+"flex-"+e+e;case 5187:return V+e+p(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return V+e+q+"flex-item-"+p(e,/flex-|-self/,"")+e;case 4675:return V+e+q+"flex-line-pack"+p(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+q+p(e,"shrink","negative")+e;case 5292:return V+e+q+p(e,"basis","preferred-size")+e;case 6060:return V+"box-"+p(e,"-grow","")+V+e+q+p(e,"grow","positive")+e;case 4554:return V+p(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return p(p(p(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return p(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return p(p(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return p(e,/(.+)-inline(.+)/,V+"$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(y(e)-1-t>6)switch(m(e,t+1)){case 109:if(45!==m(e,t+4))break;case 102:return p(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+W+(108==m(e,t+3)?"$3":"$2-$3"))+e;case 115:return~f(e,"stretch")?ef(p(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==m(e,t+1))break;case 6444:switch(m(e,y(e)-3-(~f(e,"!important")&&10))){case 107:return p(e,":",":"+V)+e;case 101:return p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===m(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(m(e,t+11)){case 114:return V+e+q+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+q+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+q+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+q+e+e}return e}var em=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Z:e.return=ef(e.value,e.length);break;case J:return Q([C(e,{value:p(e.value,"@","@"+V)})],n);case K:if(e.length)return _(e.props,function(t){switch(h(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([C(e,{props:[p(t,/:(read-\w+)/,":"+W+"$1")]})],n);case"::placeholder":return Q([C(e,{props:[p(t,/:(plac\w+)/,":"+V+"input-$1")]}),C(e,{props:[p(t,/:(plac\w+)/,":"+W+"$1")]}),C(e,{props:[p(t,/:(plac\w+)/,q+"input-$1")]})],n)}return""})}}],eg=function(e){var t,r,n,i=e.key;if("css"===i){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var s=e.stylisPlugins||em,l={},c=[];t=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)l[t[r]]=!0;c.push(e)});var u=et([eh,ep].concat(s,[ee,er(function(e){n.insert(e)})])),d=function(e){return Q(en(e),u)};r=function(e,t,r,i){n=r,d(e?e+"{"+t.styles+"}":t.styles),i&&(h.inserted[t.name]=!0)};var h={key:i,sheet:new a({key:i,container:t,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:r};return h.sheet.hydrate(c),h}},45042:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},2623:function(e,t,r){"use strict";r.d(t,{C:function(){return h},E:function(){return S},T:function(){return f},a:function(){return y},c:function(){return _},h:function(){return v},w:function(){return p}});var n=r(67294),i=r(48711),o=r(87462),a=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},s=r(70444),l=r(2303),c=r(27278),u=!1,d=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),h=d.Provider,p=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(d),r)})},f=n.createContext({}),m=function(e,t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)},g=a(function(e){return a(function(t){return m(e,t)})}),y=function(e){var t=n.useContext(f);return e.theme!==t&&(t=g(t)(e.theme)),n.createElement(f.Provider,{value:t},e.children)},v={}.hasOwnProperty,b="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_=function(e,t){var r={};for(var n in t)v.call(t,n)&&(r[n]=t[n]);return r[b]=e,r},w=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,s.hC)(t,r,n),(0,c.L)(function(){return(0,s.My)(t,r,n)}),null},S=p(function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[b],a=[i],c="";"string"==typeof e.className?c=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(c=e.className+" ");var d=(0,l.O)(a,void 0,n.useContext(f));c+=t.key+"-"+d.name;var h={};for(var p in e)v.call(e,p)&&"css"!==p&&p!==b&&!u&&(h[p]=e[p]);return h.className=c,r&&(h.ref=r),n.createElement(n.Fragment,null,n.createElement(w,{cache:t,serialized:d,isStringTag:"string"==typeof o}),n.createElement(o,h))})},70917:function(e,t,r){"use strict";r.d(t,{F4:function(){return d},iv:function(){return u},tZ:function(){return l},xB:function(){return c}});var n=r(2623),i=r(67294),o=r(70444),a=r(27278),s=r(2303);r(48711),r(8679);var l=function(e,t){var r=arguments;if(null==t||!n.h.call(t,"css"))return i.createElement.apply(void 0,r);var o=r.length,a=Array(o);a[0]=n.E,a[1]=(0,n.c)(e,t);for(var s=2;s<o;s++)a[s]=r[s];return i.createElement.apply(null,a)},c=(0,n.w)(function(e,t){var r=e.styles,l=(0,s.O)([r],void 0,i.useContext(n.T)),c=i.useRef();return(0,a.j)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=c.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.My)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)},[t,l.name]),null});function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.O)(t)}var d=function(){var e=u.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_"}}}},2303:function(e,t,r){"use strict";function n(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>
1>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}r.d(t,{O:function(){return v}});var i,o={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},a=r(45042),s=!1,l=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},d=function(e){return null!=e&&"boolean"!=typeof e},h=(0,a.Z)(function(e){return u(e)?e:e.replace(l,"-$&").toLowerCase()}),p=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,function(e,t,r){return i={name:t,styles:r,next:i},t})}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function m(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return i={name:o.name,styles:o.styles,next:i},o.name;var a=r;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)i={name:s.name,styles:s.styles,next:i},s=s.next;return a.styles+";"}return g(e,t,r);case"function":if(void 0!==e){var l=i,c=r(e);return i=l,m(e,t,c)}}var u=r;if(null==t)return u;var d=t[u];return void 0!==d?d:u}function g(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=m(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?n+=o+"{"+t[l]+"}":d(l)&&(n+=h(o)+":"+p(o,l)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&s)throw Error(f);if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var c=0;c<a.length;c++)d(a[c])&&(n+=h(o)+":"+p(o,a[c])+";");else{var u=m(e,t,a);switch(o){case"animation":case"animationName":n+=h(o)+":"+u+";";break;default:n+=o+"{"+u+"}"}}}}return n}var y=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function v(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,a=!0,s="";i=void 0;var l=e[0];null==l||void 0===l.raw?(a=!1,s+=m(r,t,l)):s+=l[0];for(var c=1;c<e.length;c++)s+=m(r,t,e[c]),a&&(s+=l[c]);y.lastIndex=0;for(var u="";null!==(o=y.exec(s));)u+="-"+o[1];return{name:n(s)+u,styles:s,next:i}}},82110:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(87462),i=r(67294),o=r(45042),a=/^((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|disableRemotePlayback|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|playsInl
1ine|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)-.*))$/,s=(0,o.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),l=r(2623),c=r(70444),u=r(2303),d=r(27278),h=s,p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:p},m=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=!1,y=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,d.L)(function(){return(0,c.My)(t,r,n)}),null},v=function e(t,r){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==r&&(o=r.label,a=r.target);var h=m(t,r,s),p=h||f(d),v=!p("as");return function(){var b=arguments,_=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&_.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)_.push.apply(_,b);else{_.push(b[0][0]);for(var w=b.length,S=1;S<w;S++)_.push(b[S],b[0][S])}var k=(0,l.w)(function(e,t,r){var n=v&&e.as||d,o="",s=[],m=e;if(null==e.theme){for(var g in m={},e)m[g]=e[g];m.theme=i.useContext(l.T)}"string"==typeof e.className?o=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var b=(0,u.O)(_.concat(s),t.registered,m);o+=t.key+"-"+b.name,void 0!==a&&(o+=" "+a);var w=v&&void 0===h?f(n):p,S={};
1for(var k in e)(!v||"as"!==k)&&w(k)&&(S[k]=e[k]);return S.className=o,r&&(S.ref=r),i.createElement(i.Fragment,null,i.createElement(y,{cache:t,serialized:b,isStringTag:"string"==typeof n}),i.createElement(n,S))});return k.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=d,k.__emotion_styles=_,k.__emotion_forwardProp=h,Object.defineProperty(k,"toString",{value:function(){return void 0===a&&g?"NO_COMPONENT_SELECTOR":"."+a}}),k.withComponent=function(t,i){return e(t,(0,n.Z)({},r,i,{shouldForwardProp:m(k,i,!0)})).apply(void 0,_)},k}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return s},j:function(){return l}});var n,i=r(67294),o=function(e){return e()},a=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,s=a||o,l=a||i.useLayoutEffect},70444:function(e,t,r){"use strict";r.d(t,{My:function(){return a},fp:function(){return i},hC:function(){return o}});var n=!0;function i(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}var o=function(e,t,r){var i=e.key+"-"+t.name;(!1===r||!1===n)&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},a=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},41234:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}}),r(67294);var n=r(70917),i=r(85893);function o(e){return null==e||0===Object.keys(e).length}function a(e){let{styles:t,defaultTheme:r={}}=e,a="function"==typeof t?e=>t(o(e)?r:e):t;return(0,i.jsx)(n.xB,{styles:a})}},39402:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{GlobalStyles:function(){return h.Z},StyledEngineProvider:function(){return d},ThemeContext:function(){return l.T},css:function(){return s.iv},default:function(){return p},internal_processStyles:function(){return f},keyframes:function(){return s.F4}});var i=r(82110);r(67294),r(2303),r(27278);var o=["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],a=i.Z.bind();o.forEach(function(e){a[e]=a(e)});var s=r(70917),l=r(2623),c=r(48711),u=r(85893);function d(e){let{injectFirst:t,children:r}=e;return t&&n?(0,u.jsx)(l.C,{value:n,children:r}):r}"object"==typeof document&&(n=(0,c.Z)({key:"css",prepend:!0}));var h=r(41234);function p(e,t){return a(e,t)}let f=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},2101:function(e,t,r){"use strict";var n,i=r(64836);n={value:!0},t.Fq=g,n=x,n=void 0,t._j=v,n=u,n=S,t.mi=m,n=f,n=l,n=p,t.$n=_,n=y,n=void 0,n=b,n=k,n=w,n=d,n=h;var o=i(r(55480)),a=i(r(14800));function s(e,t=0,r=1){return(0,a.default)(e,t,r)}function l(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function c(e){let t=e.toString(16);return 1===t.length?`0${t}`:t}function u(e){let t;if(e.type)return e;if("#"===e.charAt(0))return u(l(e));let r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw Error((0,o.default)(9,e));let i=e.substring(r+1,e.length-1);if("color"===n){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,o.default)(10,t))}else i=i.split(",");return{type:n,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}function d(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function h(e){if(0===e.indexOf("#"))return e;let{values:t}=u(e);return`#${t.map((e,t)=>c(3===t?Math.round(255*e):e)).join("")}`}function p(e){let{values:t}=e=u(e),r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(e,t=(e+r/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1),s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),d({type:s,values:l})}function f(e){let t="hsl"===(e=u(e)).type||"hsla"===e.type?u(p(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function m(e,t){let r=f(e),n=f(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}
1function g(e,t){return e=u(e),t=s(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,d(e)}function y(e,t,r){try{return g(e,t)}catch(t){return e}}function v(e,t){if(e=u(e),t=s(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return d(e)}function b(e,t,r){try{return v(e,t)}catch(t){return e}}function _(e,t){if(e=u(e),t=s(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return d(e)}function w(e,t,r){try{return _(e,t)}catch(t){return e}}function S(e,t=.15){return f(e)>.5?v(e,t):_(e,t)}function k(e,t,r){try{return S(e,t)}catch(t){return e}}function x(e,t,r,n=1){let i=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),o=u(e),a=u(t);return d({type:"rgb",values:[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])]})}},58128:function(e,t,r){"use strict";var n,i=r(64836);n={value:!0},t.ZP=x,n=v,n=void 0;var o=i(r(10434)),a=i(r(7071)),s=m(r(39402)),l=r(58524);i(r(87641)),i(r(92125));var c=i(r(19926)),u=i(r(386));let d=["ownerState"],h=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function g(e){return 0===Object.keys(e).length}function y(e){return"string"==typeof e&&e.charCodeAt(0)>96}function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let b=n=(0,c.default)(),_=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function w({defaultTheme:e,theme:t,themeId:r}){return g(t)?e:t[r]||t}function S(e){return e?(t,r)=>r[e]:null}function k(e,t){let{ownerState:r}=t,n=(0,a.default)(t,d),i="function"==typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap(e=>k(e,(0,o.default)({ownerState:r},n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){let{variants:e=[]}=i,t=(0,a.default)(i,h);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))}),t}return i}function x(e={}){let{themeId:t,defaultTheme:r=b,rootShouldForwardProp:n=v,slotShouldForwardProp:i=v}=e,c=e=>(0,u.default)((0,o.default)({},e,{theme:w((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,(e,u={})=>{let d;(0,s.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:h,slot:f,skipVariantsResolver:m,skipSx:g,overridesResolver:b=S(_(f))}=u,x=(0,a.default)(u,p),E=void 0!==m?m:f&&"Root"!==f&&"root"!==f||!1,T=g||!1,A=v;"Root"===f||"root"===f?A=n:f?A=i:y(e)&&(A=void 0);let C=(0,s.default)(e,(0,o.default)({shouldForwardProp:A,label:d},x)),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,l.isPlainObject)(e)?n=>k(e,(0,o.default)({},n,{theme:w({theme:n.theme,defaultTheme:r,themeId:t})})):e,I=(n,...i)=>{let a=P(n),s=i?i.map(P):[];h&&b&&s.push(e=>{let n=w((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[h]||!n.components[h].styleOverrides)return null;let i=n.components[h].styleOverrides,a={};return Object.entries(i).forEach(([t,r])=>{a[t]=k(r,(0,o.default)({},e,{theme:n}))}),b(e,a)}),h&&!E&&s.push(e=>{var n;let i=w((0,o.default)({},e,{defaultTheme:r,themeId:t}));return k({variants:null==i||null==(n=i.components)||null==(n=n[h])?void 0:n.variants},(0,o.default)({},e,{theme:i}))}),T||s.push(c);let l=s.length-i.length;if(Array.isArray(n)&&l>0){let e=Array(l).fill("");(a=[...n,...e]).raw=[...n.raw,...e]}let u=C(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return C.withConfig&&(I.withConfig=C.withConfig),I}}},82056:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(67294);r(85893);let i=n.createContext(),o=()=>{let e=n.useContext(i);return null!=e&&e}},95408:function(e,t,r){"use strict";r.d(t,{L7:function(){return l},P$:function(){return d},VO:function(){return i},W8:function(){return s},dt:function(){return c},k9:function(){return a}});var n=r(4953);let i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||o;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){let e=n.breakpoints||o;return Object.keys(t).reduce((n,o)=>
1{if(-1!==Object.keys(e.values||i).indexOf(o))n[e.up(o)]=r(t[o],o);else{let e=o;n[e]=t[e]}return n},{})}return r(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}function l(e,t){return e.reduce((e,t)=>{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}function c(e,...t){let r=s(e),i=[r,...t].reduce((e,t)=>(0,n.Z)(e,t),{});return l(Object.keys(r),i)}function u(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n<e.length&&(r[t]=!0)}):n.forEach(t=>{null!=e[t]&&(r[t]=!0)}),r}function d({values:e,breakpoints:t,base:r}){let n;let i=Object.keys(r||u(e,t));return 0===i.length?e:i.reduce((t,r,i)=>(Array.isArray(e)?(t[r]=null!=e[i]?e[i]:e[n],n=i):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},57064:function(e,t,r){"use strict";function n(e,t){let r=this;return r.vars&&"function"==typeof r.getColorSchemeSelector?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}r.d(t,{Z:function(){return n}})},41512:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(63366),i=r(87462);let o=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,i.Z)({},e,{[t.key]:t.val}),{})};function s(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,l=(0,n.Z)(e,o),c=a(t),u=Object.keys(c);function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function h(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-s/100}${r})`}function p(e,n){let i=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[u[i]]?t[u[i]]:n)-s/100}${r})`}function f(e){return u.indexOf(e)+1<u.length?p(e,u[u.indexOf(e)+1]):d(e)}function m(e){let t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?h(u[t]):p(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")}return(0,i.Z)({keys:u,values:c,up:d,down:h,between:p,only:f,not:m,unit:r},l)}},17172:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(87462),i=r(63366),o=r(4953),a=r(41512),s={borderRadius:4},l=r(98700);function c(e=8){if(e.mui)return e;let t=(0,l.hB)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}var u=r(86523),d=r(44920),h=r(57064);let p=["breakpoints","palette","spacing","shape"];var f=function(e={},...t){let{breakpoints:r={},palette:l={},spacing:f,shape:m={}}=e,g=(0,i.Z)(e,p),y=(0,a.Z)(r),v=c(f),b=(0,o.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},l),spacing:v,shape:(0,n.Z)({},s,m)},g);return b.applyStyles=h.Z,(b=t.reduce((e,t)=>(0,o.Z)(e,t),b)).unstable_sxConfig=(0,n.Z)({},d.Z,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},b}},19926:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},private_createBreakpoints:function(){return i.Z},unstable_applyStyles:function(){return o.Z}});var n=r(17172),i=r(41512),o=r(57064)},47730:function(e,t,r){"use strict";var n=r(4953);function i(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}t.Z=i},98700:function(e,t,r){"use strict";r.d(t,{hB:function(){return f},eI:function(){return p},NA:function(){return m},e6:function(){return b},o3:function(){return _}});var n=r(95408),i=r(54844),o=r(47730);let a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}let[t,r]=e.split(""),n=a[t],i=s[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,r,n){var o;let a=null!=(o=(0,i.DW)(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function f(e){return p(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function g(e,t){return r=>e.reduce((e,n)=>(e[n]=m(t,r),e),{})}function y(e,t,r,i){if(-1===t.indexOf(r))return null;let o=g(c(r),i),a=e[r];return(0,n.k9)(e,a,o)}function v(e,t){let r=f(e.theme);return Object.keys(e).map(n=>y(e,t,n,r)).reduce(o.Z,{})}function b(e){return v(e,u)}function _(e){return v(e,d)}function w(e){return v(e,h)}b.propTypes={},b.filterProps=u,_.propTypes={},_.filterProps=d,w.propTypes={},w.filterProps=h},54844:function(e,t,r){"use strict";r.d(t,{DW:function(){return o},Jq:function(){return a}});var n=r(14142),i=r(95408);function o(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>
1e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:o(e,r)||n,t&&(i=t(i,n,e)),i}function s(e){let{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=o(e.theme,s)||{},d=e=>{let i=a(u,l,e);return(e===i&&"string"==typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?i:{[r]:i}};return(0,i.k9)(e,c,d)};return c.propTypes={},c.filterProps=[t],c}t.ZP=s},44920:function(e,t,r){"use strict";r.d(t,{Z:function(){return F}});var n=r(98700),i=r(54844),o=r(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,o.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},s=r(95408);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.ZP)({prop:e,themeKey:"borders",transform:t})}let u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),_=c("outline",l),w=c("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,r)}return null};S.propTypes={},S.filterProps=["borderRadius"],a(u,d,h,p,f,m,g,y,v,b,S,_,w);let k=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.gap,r)}return null};k.propTypes={},k.filterProps=["gap"];let x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.columnGap,r)}return null};x.propTypes={},x.filterProps=["columnGap"];let E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.rowGap,r)}return null};E.propTypes={},E.filterProps=["rowGap"];let T=(0,i.ZP)({prop:"gridColumn"}),A=(0,i.ZP)({prop:"gridRow"}),C=(0,i.ZP)({prop:"gridAutoFlow"}),P=(0,i.ZP)({prop:"gridAutoColumns"}),I=(0,i.ZP)({prop:"gridAutoRows"}),O=(0,i.ZP)({prop:"gridTemplateColumns"});function N(e,t){return"grey"===t?t:e}function D(e){return e<=1&&0!==e?`${100*e}%`:e}a(k,x,E,T,A,C,P,I,O,(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"})),a((0,i.ZP)({prop:"color",themeKey:"palette",transform:N}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:N}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:N}));let R=(0,i.ZP)({prop:"width",transform:D}),L=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){let t=t=>{var r,n;let i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return i?(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:D(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};L.filterProps=["maxWidth"];let M=(0,i.ZP)({prop:"minWidth",transform:D}),j=(0,i.ZP)({prop:"height",transform:D}),B=(0,i.ZP)({prop:"maxHeight",transform:D}),U=(0,i.ZP)({prop:"minHeight",transform:D});(0,i.ZP)({prop:"size",cssProperty:"width",transform:D}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:D}),a(R,L,M,j,B,U,(0,i.ZP)({prop:"boxSizing"}));var F={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:N},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:N},backgroundColor:{themeKey:"palette",transform:N},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3}
1,paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:E},columnGap:{style:x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:D},maxWidth:{style:L},minWidth:{transform:D},height:{transform:D},maxHeight:{transform:D},minHeight:{transform:D},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},39707:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(87462),i=r(63366),o=r(4953),a=r(44920);let s=["sx"],l=e=>{var t,r;let n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach(t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function c(e){let t;let{sx:r}=e,{systemProps:a,otherProps:c}=l((0,i.Z)(e,s));return t=Array.isArray(r)?[a,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,o.P)(t)?(0,n.Z)({},a,t):a}:(0,n.Z)({},a,r),(0,n.Z)({},c,{sx:t})}},386:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},extendSxProp:function(){return i.Z},unstable_createStyleFunctionSx:function(){return n.n},unstable_defaultSxConfig:function(){return o.Z}});var n=r(86523),i=r(39707),o=r(44920)},86523:function(e,t,r){"use strict";r.d(t,{n:function(){return u}});var n=r(14142),i=r(47730),o=r(54844),a=r(95408),s=r(44920);function l(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)}function c(e,t){return"function"==typeof e?e(t):e}function u(){function e(e,t,r,i){let s={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,o.DW)(r,u)||{};if(h)return h(s);let f=t=>{let r=(0,o.Jq)(p,d,t);return(t===r&&"string"==typeof t&&(r=(0,o.Jq)(p,d,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===c)?r:{[c]:r}};return(0,a.k9)(s,t,f)}function t(r){var n;let{sx:o,theme:u={}}=r||{};if(!o)return null;let d=null!=(n=u.unstable_sxConfig)?n:s.Z;function h(r){let n=r;if("function"==typeof r)n=r(u);else if("object"!=typeof r)return r;if(!n)return null;let o=(0,a.W8)(u.breakpoints),s=Object.keys(o),h=o;return Object.keys(n).forEach(r=>{let o=c(n[r],u);if(null!=o){if("object"==typeof o){if(d[r])h=(0,i.Z)(h,e(r,o,u,d));else{let e=(0,a.k9)({theme:u},o,e=>({[r]:e}));l(e,o)?h[r]=t({sx:o,theme:u}):h=(0,i.Z)(h,e)}}else h=(0,i.Z)(h,e(r,o,u,d))}}),(0,a.L7)(s,h)}return Array.isArray(o)?o.map(h):h(o)}return t}let d=u();d.filterProps=["sx"],t.Z=d},61730:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n,i=r(67294),o=r(73546),a=r(20539),s=r(34168);function l(e,t,r,n,a){let[s,l]=i.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return(0,o.Z)(()=>{let t=!0;if(!r)return;let n=r(e),i=()=>{t&&l(n.matches)};return i(),n.addListener(i),()=>{t=!1,n.removeListener(i)}},[e,r]),s}let c=(n||(n=r.t(i,2))).useSyncExternalStore;function u(e,t,r,n,o){let a=i.useCallback(()=>t,[t]),s=i.useMemo(()=>
1{if(o&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return a},[a,e,n,o,r]),[l,u]=i.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[a,r,e]);return c(u,l,s)}function d(e,t={}){let r=(0,s.Z)(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:h=!1}=(0,a.Z)({name:"MuiUseMediaQuery",props:t,theme:r}),p="function"==typeof e?e(r):e;return(void 0!==c?u:l)(p=p.replace(/^@media( ?)/m,""),i,o,d,h)}},96682:function(e,t,r){"use strict";var n=r(17172),i=r(34168);let o=(0,n.Z)();function a(e=o){return(0,i.Z)(e)}t.Z=a},20539:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(35971);function i(e){let{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,i):i}},34168:function(e,t,r){"use strict";var n=r(67294),i=r(2623);function o(e){return 0===Object.keys(e).length}function a(e=null){let t=n.useContext(i.T);return!t||o(t)?e:t}t.Z=a},91070:function(e,t,r){"use strict";n={value:!0},t.Z=void 0;var n,i=s(r(67294)),o=r(39402);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function l(e){return 0===Object.keys(e).length}function c(e=null){let t=i.useContext(o.ThemeContext);return!t||l(t)?e:t}t.Z=c},37078:function(e,t){"use strict";let r=e=>e,n=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})();t.Z=n},86542:function(e,t,r){"use strict";var n=r(87462),i=r(90712);function o(e,t,r){return void 0===e||(0,i.Z)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}t.Z=o},14142:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(56535);function i(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},87641:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(14142)},7610:function(e,t){"use strict";function r(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}t.Z=r},14800:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(7610)},94780:function(e,t,r){"use strict";function n(e,t,r){let n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((e,n)=>{if(n){let i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}r.d(t,{Z:function(){return n}})},91476:function(e,t,r){"use strict";function n(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}r.d(t,{Z:function(){return n}})},39336:function(e,t,r){"use strict";function n(e,t=166){let r;function n(...i){let o=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}r.d(t,{Z:function(){return n}})},4953:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return a}});var n=r(87462);function i(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function o(e){if(!i(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=o(e[r])}),t}function a(e,t,r={clone:!0}){let s=r.clone?(0,n.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach(n=>{i(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&i(e[n])?s[n]=a(e[n],t[n],r):r.clone?s[n]=i(t[n])?o(t[n]):t[n]:s[n]=t[n]}),s}},58524:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},isPlainObject:function(){return n.P}});var n=r(4953)},99113:function(e,t){"use strict";function r(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEac
1h(t=>{r[t]=e[t]}),r}t.Z=r},56535:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{Z:function(){return n}})},55480:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(56535)},34867:function(e,t,r){"use strict";r.d(t,{ZP:function(){return o}});var n=r(37078);let i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,r="Mui"){let o=i[t];return o?`${r}-${o}`:`${n.Z.generate(e)}-${t}`}},1588:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(34867);function i(e,t,r="Mui"){let i={};return t.forEach(t=>{i[t]=(0,n.ZP)(e,t,r)}),i}},92125:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l},getFunctionName:function(){return o}});var n=r(59864);let i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){let t=`${e}`.match(i);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||o(e)||t}function s(e,t,r){let n=a(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case n.ForwardRef:return s(e,e.render,"ForwardRef");case n.Memo:return s(e,e.type,"memo")}}}},29726:function(e,t,r){"use strict";function n(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}r.d(t,{Z:function(){return n}})},90712:function(e,t){"use strict";function r(e){return"string"==typeof e}t.Z=r},82690:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},74161:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(82690);function i(e){return(0,n.Z)(e).defaultView||window}},35971:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(87462);function i(e,t){let r=(0,n.Z)({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))r[o]=(0,n.Z)({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let a=e[o]||{},s=t[o];r[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(r[o]=(0,n.Z)({},s),Object.keys(a).forEach(e=>{r[o][e]=i(a[e],s[e])})):r[o]=s:r[o]=a}else void 0===r[o]&&(r[o]=e[o])}),r}},27364:function(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},73546:function(e,t,r){"use strict";var n=r(67294);let i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;t.Z=i},59948:function(e,t,r){"use strict";var n=r(67294),i=r(73546);function o(e){let t=n.useRef(e);return(0,i.Z)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}t.Z=o},33703:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294),i=r(27364);function o(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,i.Z)(e,t)})},e)}},92996:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n,i=r(67294);let o=0;function a(e){let[t,r]=i.useState(e),n=e||t;return i.useEffect(()=>{null==t&&(o+=1,r(`mui-${o}`))},[t]),n}let s=(n||(n=r.t(i,2)))["useId".toString()];function l(e){if(void 0!==s){let t=s();return null!=e?e:t}return a(e)}},14662:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(87462),i=r(63366),o=r(33703),a=r(86542),s=r(90512),l=r(99113),c=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t},u=function(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:o,className:a}=e;if(!t){let e=(0,s.Z)(null==r?void 0:r.className,a,null==o?void 0:o.className,null==i?void 0:i.className),t=(0,n.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==i?void 0:i.style),l=(0,n.Z)({},r,o,i);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}let u=(0,l.Z)((0,n.Z)({},o,i)),d=c(i),h=c(o),p=t(u),f=(0,s.Z)(null==p?void 0:p.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==i?void 0:i.className),m=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==o?void 0:o.style,null==i?void 0:i.style),g=(0,n.Z)({},p,r,h,d);return f.length>0&&(g.className=f),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:p.ref}},d=function(e,t,r){return"function"==typeof e?e(t,r):e};let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];var p=function(e){var t;
1let{elementType:r,externalSlotProps:s,ownerState:l,skipResolvingSlotProps:c=!1}=e,p=(0,i.Z)(e,h),f=c?{}:d(s,l),{props:m,internalRef:g}=u((0,n.Z)({},p,{externalSlotProps:f})),y=(0,o.Z)(g,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.Z)(r,(0,n.Z)({},m,{ref:y}),l)}},46271:function(e,t,r){"use strict";r.d(t,{V:function(){return l},Z:function(){return c}});var n=r(67294);let i={};function o(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}let a=[];function s(e){n.useEffect(e,a)}class l{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new l}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function c(){let e=o(l.create).current;return s(e.disposeEffect),e}},2524:function(e,t,r){"use strict";var n=r(86744);let i={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem",xl8:"6rem",xl9:"8rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,base:1.5,md:1.5,lg:1.75,xl:1.75,xl2:2,xl3:2.25,xl4:2.5,xl5:1,xl6:1,xl7:1,xl8:1,xl9:1},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease",button:"background 0.25s ease 0s, color 0.25s ease 0s, border-color 0.25s ease 0s, box-shadow 0.25s ease 0s, transform 0.25s ease 0s, opacity 0.25s ease 0s",avatar:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",link:"opacity 0.25s ease 0s, background 0.25s ease 0s",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.25s ease, transform 0.25s ease, color 0.15s ease, box-shadow 0.25s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},o={white:"#ffffff",black:"#000000",primaryLight:"$blue200",primaryLightHover:"$blue300",primaryLightActive:"$blue400",primaryLightContrast:"$blue600",primary:"$blue600",primaryBorder:"$blue500",primaryBorderHover:"$blue600",primarySolidHover:"$blue700",primarySolidContrast:"$white",primaryShadow:"$blue500",secondaryLight:"$purple200",secondaryLightHover:"$purple300",secondaryLightActive:"$purple400",secondaryLightContrast:"$purple600",secondary:"$purple600",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondarySolidContrast:"$white",secondarySh
1adow:"$purple500",successLight:"$green200",successLightHover:"$green300",successLightActive:"$green400",successLightContrast:"$green700",success:"$green600",successBorder:"$green500",successBorderHover:"$green600",successSolidHover:"$green700",successSolidContrast:"$white",successShadow:"$green500",warningLight:"$yellow200",warningLightHover:"$yellow300",warningLightActive:"$yellow400",warningLightContrast:"$yellow700",warning:"$yellow600",warningBorder:"$yellow500",warningBorderHover:"$yellow600",warningSolidHover:"$yellow700",warningSolidContrast:"$white",warningShadow:"$yellow500",errorLight:"$red200",errorLightHover:"$red300",errorLightActive:"$red400",errorLightContrast:"$red600",error:"$red600",errorBorder:"$red500",errorBorderHover:"$red600",errorSolidHover:"$red700",errorSolidContrast:"$white",errorShadow:"$red500",neutralLight:"$gray100",neutralLightHover:"$gray200",neutralLightActive:"$gray300",neutralLightContrast:"$gray800",neutral:"$gray600",neutralBorder:"$gray400",neutralBorderHover:"$gray500",neutralSolidHover:"$gray600",neutralSolidContrast:"$white",neutralShadow:"$gray400",gradient:"linear-gradient(112deg, $cyan600 -63.59%, $pink600 -20.3%, $blue600 70.46%)",accents0:"$gray50",accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900",border:"$gray300"},a={xs:`(min-width: ${i.breakpoints.xs})`,sm:`(min-width: ${i.breakpoints.sm})`,md:`(min-width: ${i.breakpoints.md})`,lg:`(min-width: ${i.breakpoints.lg})`,xl:`(min-width: ${i.breakpoints.xl})`,xsMax:`(max-width: ${i.breakpoints.xs})`,smMax:`(max-width: ${i.breakpoints.sm})`,mdMax:`(max-width: ${i.breakpoints.md})`,lgMax:`(max-width: ${i.breakpoints.lg})`,xlMax:`(max-width: ${i.breakpoints.xl})`,motion:"(prefers-reduced-motion: reduce)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},s={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:e}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),ds:e=>({dropShadow:e}),shadow:e=>({boxShadow:e}),dshadow:e=>({dropShadow:e}),dropShadow:e=>({filter:`$dropShadows${e}`}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),truncateText:e=>({maxWidth:e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),textGradient:e=>({backgroundImage:`linear-gradient(${e}
1)`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})},l={...n.E6,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"};t.ZP={prefix:"nextui",theme:{...i,colors:o,shadows:{},dropShadows:{}},media:a,utils:s,themeMap:l}},91875:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let n={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"},i={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"},o={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"},a={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"},s={gray50:"#F1F3F5",gray100:"#ECEEF0",gray200:"#E6E8EB",gray300:"#DFE3E6",gray400:"#D7DBDF",gray500:"#C1C8CD",gray600:"#889096",gray700:"#7E868C",gray800:"#687076",gray900:"#11181C"};var l={colors:{background:"$white",foreground:"$black",backgroundContrast:"$white",blue50:"#EDF5FF",blue100:"#E1EFFF",blue200:"#CEE4FE",blue300:"#B7D5F8",blue400:"#96C1F2",blue500:"#5EA2EF",blue600:"#0072F5",blue700:"#005FCC",blue800:"#004799",blue900:"#00254D",purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44",green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B",...n,...i,...o,...a,...s,text:"$gray900",link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200"},shadows:{xs:"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)",sm:"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",md:"0 12px 20px 6px rgb(104 112 118 / 0.08)",lg:"0 12px 34px 6px rgb(104 112 118 / 0.18)",xl:"0 25px 65px 0px rgb(104 112 118 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))",md:"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))"}}},60275:function(e,t,r){"use strict";r.d(t,{Gc:function(){return c},rS:function(){return u},zY:function(){return l},zo:function(){return s}});var n=r(86744),i=r(2524),o=r(91875);let a=(0,n.Th)({...i.ZP,theme:{...i.ZP.theme,shadows:{...o.Z.shadows},dropShadows:{...o.Z.dropShadows},colors:{...i.ZP.theme.colors,...o.Z.colors}}});a.createTheme;let s=a.styled;a.css;let l=a.globalCss;a.keyframes;let c=a.getCssText,u=a.theme;a.config},12532:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),i=()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!!("undefined"!=typeof window&&window.document&&window.document.createElement))},[]),{isBrowser:e,isServer:!e}}},61309:function(e,t,r){"use strict";function n(e){var t,r,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]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r);else for(t in e)e[t]&&(i&&(i+=" "),i+=t)}return i}function i(...e){for(var t,r,o=0,a="";o<e.length;)(t=e[o++])&&(r=n(t))&&(a&&(a+=" "),a+=r);return a}r.d(t,{Z:function(){return i}})},50088:function(e,t){"use strict";t.Z=(e,t)=>(e.defaultProps=t,e)},45704:function(e,t,r){"use strict";r.d(t,{kZ:function(){return T}});var n=r(50400),i=r(82163),o=r(62057),a=r(62556);function s(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function l(e){return e!==(0,o.Z)(e)&&(0,a.Re)(e)?s(e):(0,i.Z)(e)}var c=r(96333),u=r(4063),d=r(67252),h=r(60611),p=r(138);function f(e){var t=e.getBoundingClientRect(),r=(0,p.NM)(t.width)/e.offsetWidth||1,n=(0,p.NM)(t.height)/e.offsetHeight||1;return 1!==r||1!==n}function m(e,t,r){void 0===r&&(r=!1);var i=(0,a.Re)(t),o=(0,a.Re)(t)&&f(t),s=(0,d.Z)(t),p=(0,n.Z)(e,o,r),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!r)&&(("body"!==(0,c.Z)(t)||(0,h.Z)(s))&&(m=l(t)),(0,a.Re)(t)?(g=(0,n.Z)(t,!0),g.x+=t.clientLeft,g.y+=t.clientTop):s&&(g.x=(0,u.Z)(s))),{x:p.left+m.scrollLeft-g.x,y:p.top+m.scrollTop-g.y,width:p.width,height:p.height}}var g=r(40583),y=r(31492),v=r(98552),b=r(87701);function _(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
1h(function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||i(e)}),n}function w(e){var t=_(e);return b.xs.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}function S(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function k(e){var t=e.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var x={placement:"bottom",modifiers:[],strategy:"absolute"};function E(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function T(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?x:i;return function(e,t,r){void 0===r&&(r=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},x,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,c={state:i,setOptions:function(r){var s="function"==typeof r?r(i.options):r;d(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:(0,a.kK)(e)?(0,y.Z)(e):e.contextElement?(0,y.Z)(e.contextElement):[],popper:(0,y.Z)(t)};var l=w(k([].concat(n,i.options.modifiers)));return i.orderedModifiers=l.filter(function(e){return e.enabled}),u(),c.update()},forceUpdate:function(){if(!l){var e=i.elements,t=e.reference,r=e.popper;if(E(t,r)){i.rects={reference:m(t,(0,v.Z)(r),"fixed"===i.options.strategy),popper:(0,g.Z)(r)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<i.orderedModifiers.length;n++){if(!0===i.reset){i.reset=!1,n=-1;continue}var o=i.orderedModifiers[n],a=o.fn,s=o.options,u=void 0===s?{}:s,d=o.name;"function"==typeof a&&(i=a({state:i,options:u,name:d,instance:c})||i)}}}},update:S(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){d(),l=!0}};if(!E(e,t))return c;function u(){i.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:i,name:t,instance:c,options:n}),l=function(){};s.push(a||l)}})}function d(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(r).then(function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}},94985:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(62556);function i(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.Zq)(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},50400:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(62556),i=r(138),o=r(62057),a=r(67977);function s(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var s=e.getBoundingClientRect(),l=1,c=1;t&&(0,n.Re)(e)&&(l=e.offsetWidth>0&&(0,i.NM)(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,i.NM)(s.height)/e.offsetHeight||1);var u=((0,n.kK)(e)?(0,o.Z)(e):window).visualViewport,d=!(0,a.Z)()&&r,h=(s.left+(d&&u?u.offsetLeft:0))/l,p=(s.top+(d&&u?u.offsetTop:0))/c,f=s.width/l,m=s.height/c;return{width:f,height:m,top:p,right:h+f,bottom:p+m,left:h,x:h,y:p}}},43062:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(62057);function i(e){return(0,n.Z)(e).getComputedStyle(e)}},67252:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(62556);function i(e){return(((0,n.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},40583:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(50400);function i(e){var t=(0,n.Z)(e),r=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-i)&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}},96333:function(e,t,r){"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}r.d(t,{Z:function(){return n}})},98552:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(62057),i=r(96333),o=r(43062),a=r(62556);function s(e){return["table","td","th"].indexOf((0,i.Z)(e))>=0}var l=r(95923),c=r(85918);function u(e){return(0,a.Re)(e)&&"fixed"!==(0,o.Z)(e).position?e.offsetParent:null}function d(e){var t=/firefox/i.test((0,c.Z)());if(/Trident/i.test((0,c.Z)())&&(0,a.Re)(e)&&"fixed"===(0,o.Z)(e).position)return null;var r=(0,l.Z)(e);for((0,a.Zq)(r)&&(r=r.host);(0,a.Re)(r)&&0>["html","body"].indexOf((0,i.Z)(r));){var n=(0,o.Z)(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}function h(e){for(var t=(0,n.Z)(e),r=u(e);r&&s(r)&&"static"===(0,o.Z)(r).position;)r=u(r);return r&&("html"===(0,i.Z)(r)||"body"===(0,i.Z)(r)&&"static"===(0,o.Z)(r).position)?t:r||d(e)||t}},95923:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(96333),i=r(67252),o=r(62556);function a(e){return"html"===(0,n.Z)(e)?e:e.assignedSlot||e.parentNode||((0,o.Zq)(e)?e.host:null)||(0,i.Z)(e)}},62057:function(e,t,r){"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}r.d(t,{Z:function(){return n}})},82163:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(62057);function i(e){var t=(0,n.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},4063:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(50400),i=r(67252),o=r(82163);function a(e){return(0,n.Z)((0,i.Z)(e)).left+(0,o.Z)(e).scrollLeft}},62556:function(e,t,r){"use strict";r.d(t,{Re:function(){return o},Zq:function(){return a},kK:function(){return i}});var n=r(62057);function i(e){var t=(0,n.Z)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,n.Z)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,n.Z)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},67977:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(85918);function i(){return!/^((?!chrome|android).)*safari/i.test((0,n.Z)())}},60611:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(43062);function i(e){var t=(0,n.Z)(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}},31492:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(95923),i=r(60611),o=r(96333),a=r(62556);function s(e){return["html","body","#document"].indexOf((0,o.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&(0,i.Z)(e)?e:s((0,n.Z)(e))}var l=r(62057);function c(e,t){void 0===t&&(t=[]);var r,o=s(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),u=(0,l.Z)(o),d=a?[u].concat(u.visualVie
1wport||[],(0,i.Z)(o)?o:[]):o,h=t.concat(d);return a?h:h.concat(c((0,n.Z)(d)))}},87701:function(e,t,r){"use strict";r.d(t,{BL:function(){return c},Ct:function(){return g},F2:function(){return o},I:function(){return i},Pj:function(){return h},YP:function(){return f},bw:function(){return m},d7:function(){return s},k5:function(){return p},mv:function(){return l},t$:function(){return a},ut:function(){return u},we:function(){return n},xs:function(){return y},zV:function(){return d}});var n="top",i="bottom",o="right",a="left",s="auto",l=[n,i,o,a],c="start",u="end",d="clippingParents",h="viewport",p="popper",f="reference",m=l.reduce(function(e,t){return e.concat([t+"-"+c,t+"-"+u])},[]),g=[].concat(l,[s]).reduce(function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])},[]),y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},66896:function(e,t,r){"use strict";var n=r(6206),i=r(40583),o=r(94985),a=r(98552),s=r(11516),l=r(57516),c=r(63293),u=r(33706),d=r(87701),h=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.Z)("number"!=typeof e?e:(0,u.Z)(e,d.mv))};function p(e){var t,r=e.state,o=e.name,c=e.options,u=r.elements.arrow,p=r.modifiersData.popperOffsets,f=(0,n.Z)(r.placement),m=(0,s.Z)(f),g=[d.t$,d.F2].indexOf(f)>=0?"height":"width";if(u&&p){var y=h(c.padding,r),v=(0,i.Z)(u),b="y"===m?d.we:d.t$,_="y"===m?d.I:d.F2,w=r.rects.reference[g]+r.rects.reference[m]-p[m]-r.rects.popper[g],S=p[m]-r.rects.reference[m],k=(0,a.Z)(u),x=k?"y"===m?k.clientHeight||0:k.clientWidth||0:0,E=w/2-S/2,T=y[b],A=x-v[g]-y[_],C=x/2-v[g]/2+E,P=(0,l.u)(T,C,A),I=m;r.modifiersData[o]=((t={})[I]=P,t.centerOffset=P-C,t)}}function f(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(0,o.Z)(t.elements.popper,n)&&(t.elements.arrow=n)}t.Z={name:"arrow",enabled:!0,phase:"main",fn:p,effect:f,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},36531:function(e,t,r){"use strict";var n=r(87701),i=r(98552),o=r(62057),a=r(67252),s=r(43062),l=r(6206),c=r(14943),u=r(138),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:(0,u.NM)(r*i)/i||0,y:(0,u.NM)(n*i)/i||0}}function p(e){var t,r,l=e.popper,c=e.popperRect,u=e.placement,p=e.variation,f=e.offsets,m=e.position,g=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=e.isFixed,_=f.x,w=void 0===_?0:_,S=f.y,k=void 0===S?0:S,x="function"==typeof v?v({x:w,y:k}):{x:w,y:k};w=x.x,k=x.y;var E=f.hasOwnProperty("x"),T=f.hasOwnProperty("y"),A=n.t$,C=n.we,P=window;if(y){var I=(0,i.Z)(l),O="clientHeight",N="clientWidth";I===(0,o.Z)(l)&&(I=(0,a.Z)(l),"static"!==(0,s.Z)(I).position&&"absolute"===m&&(O="scrollHeight",N="scrollWidth")),(u===n.we||(u===n.t$||u===n.F2)&&p===n.ut)&&(C=n.I,k-=(b&&I===P&&P.visualViewport?P.visualViewport.height:I[O])-c.height,k*=g?1:-1),(u===n.t$||(u===n.we||u===n.I)&&p===n.ut)&&(A=n.F2,w-=(b&&I===P&&P.visualViewport?P.visualViewport.width:I[N])-c.width,w*=g?1:-1)}var D=Object.assign({position:m},y&&d),R=!0===v?h({x:w,y:k},(0,o.Z)(l)):{x:w,y:k};return(w=R.x,k=R.y,g)?Object.assign({},D,((r={})[C]=T?"0":"",r[A]=E?"0":"",r.transform=1>=(P.devicePixelRatio||1)?"translate("+w+"px, "+k+"px)":"translate3d("+w+"px, "+k+"px, 0)",r)):Object.assign({},D,((t={})[C]=T?k+"px":"",t[A]=E?w+"px":"",t.transform="",t))}function f(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,u=void 0===s||s,d={placement:(0,l.Z)(t.placement),variation:(0,c.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},82372:function(e,t,r){"use strict";var n=r(62057),i={passive:!0};function o(e){var t=e.state,r=e.instance,o=e.options,a=o.scroll,s=void 0===a||a,l=o.resize,c=void 0===l||l,u=(0,n.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(e){e.addEventListener("scroll",r.update,i)}),c&&u.addEventListener("resize",r.update,i),function(){s&&d.forEach(function(e){e.removeEventListener("scroll",r.update,i)}),c&&u.removeEventListener("resize",r.update,i)}}t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o,data:{}}},68855:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});
1var n={left:"right",right:"left",bottom:"top",top:"bottom"};function i(e){return e.replace(/left|right|bottom|top/g,function(e){return n[e]})}var o=r(6206),a={start:"end",end:"start"};function s(e){return e.replace(/start|end/g,function(e){return a[e]})}var l=r(6486),c=r(14943),u=r(87701);function d(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,d=r.flipVariations,h=r.allowedAutoPlacements,p=void 0===h?u.Ct:h,f=(0,c.Z)(n),m=f?d?u.bw:u.bw.filter(function(e){return(0,c.Z)(e)===f}):u.mv,g=m.filter(function(e){return p.indexOf(e)>=0});0===g.length&&(g=m);var y=g.reduce(function(t,r){return t[r]=(0,l.Z)(e,{placement:r,boundary:i,rootBoundary:a,padding:s})[(0,o.Z)(r)],t},{});return Object.keys(y).sort(function(e,t){return y[e]-y[t]})}function h(e){if((0,o.Z)(e)===u.d7)return[];var t=i(e);return[s(e),t,s(t)]}var p={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,s=void 0===a||a,p=r.altAxis,f=void 0===p||p,m=r.fallbackPlacements,g=r.padding,y=r.boundary,v=r.rootBoundary,b=r.altBoundary,_=r.flipVariations,w=void 0===_||_,S=r.allowedAutoPlacements,k=t.options.placement,x=(0,o.Z)(k)===k,E=m||(x||!w?[i(k)]:h(k)),T=[k].concat(E).reduce(function(e,r){return e.concat((0,o.Z)(r)===u.d7?d(t,{placement:r,boundary:y,rootBoundary:v,padding:g,flipVariations:w,allowedAutoPlacements:S}):r)},[]),A=t.rects.reference,C=t.rects.popper,P=new Map,I=!0,O=T[0],N=0;N<T.length;N++){var D=T[N],R=(0,o.Z)(D),L=(0,c.Z)(D)===u.BL,M=[u.we,u.I].indexOf(R)>=0,j=M?"width":"height",B=(0,l.Z)(t,{placement:D,boundary:y,rootBoundary:v,altBoundary:b,padding:g}),U=M?L?u.F2:u.t$:L?u.I:u.we;A[j]>C[j]&&(U=i(U));var F=i(U),H=[];if(s&&H.push(B[R]<=0),f&&H.push(B[U]<=0,B[F]<=0),H.every(function(e){return e})){O=D,I=!1;break}P.set(D,H)}if(I)for(var z=w?3:1,$=function(e){var t=T.find(function(t){var r=P.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return O=t,"break"},q=z;q>0&&"break"!==$(q);q--);t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},19892:function(e,t,r){"use strict";var n=r(87701),i=r(6486);function o(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function a(e){return[n.we,n.F2,n.I,n.t$].some(function(t){return e[t]>=0})}function s(e){var t=e.state,r=e.name,n=t.rects.reference,s=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,i.Z)(t,{elementContext:"reference"}),u=(0,i.Z)(t,{altBoundary:!0}),d=o(c,n),h=o(u,s,l),p=a(d),f=a(h);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s}},82122:function(e,t,r){"use strict";var n=r(6206),i=r(87701);function o(e,t,r){var o=(0,n.Z)(e),a=[i.t$,i.we].indexOf(o)>=0?-1:1,s="function"==typeof r?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[i.t$,i.F2].indexOf(o)>=0?{x:c,y:l}:{x:l,y:c}}function a(e){var t=e.state,r=e.options,n=e.name,a=r.offset,s=void 0===a?[0,0]:a,l=i.Ct.reduce(function(e,r){return e[r]=o(r,t.rects,s),e},{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=l}t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:a}},77421:function(e,t,r){"use strict";var n=r(72581);function i(e){var t=e.state,r=e.name;t.modifiersData[r]=(0,n.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:i,data:{}}},394:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(87701),i=r(6206),o=r(11516);function a(e){return"x"===e?"y":"x"}var s=r(57516),l=r(40583),c=r(98552),u=r(6486),d=r(14943),h=r(23607),p=r(138),f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,f=e.name,m=r.mainAxis,g=void 0===m||m,y=r.altAxis,v=void 0!==y&&y,b=r.boundary,_=r.rootBoundary,w=r.altBoundary,S=r.padding,k=r.tether,x=void 0===k||k,E=r.tetherOffset,T=void 0===E?0:E,A=(0,u.Z)(t,{boundary:b,rootBoundary:_,padding:S,altBoundary:w}),C=(0,i.Z)(t.placement),P=(0,d.Z)(t.placement),I=!P,O=(0,o.Z)(C),N=a(O),D=t.modifiersData.popperOffsets,R=t.rects.reference,L=t.rects.popper,M="function"==typeof T?T(Object.assign({},t.rects,{placement:t.placement})):T,j="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(D){if(g){var F,H="y"===O?n.we:n.t$,z="y"===O?n.I:n.F2,$="y"===O?"he
1ight":"width",q=D[O],W=q+A[H],V=q-A[z],G=x?-L[$]/2:0,K=P===n.BL?R[$]:L[$],Z=P===n.BL?-L[$]:-R[$],Y=t.elements.arrow,J=x&&Y?(0,l.Z)(Y):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,h.Z)(),Q=X[H],ee=X[z],et=(0,s.u)(0,R[$],J[$]),er=I?R[$]/2-G-et-Q-j.mainAxis:K-et-Q-j.mainAxis,en=I?-R[$]/2+G+et+ee+j.mainAxis:Z+et+ee+j.mainAxis,ei=t.elements.arrow&&(0,c.Z)(t.elements.arrow),eo=ei?"y"===O?ei.clientTop||0:ei.clientLeft||0:0,ea=null!=(F=null==B?void 0:B[O])?F:0,es=q+er-ea-eo,el=q+en-ea,ec=(0,s.u)(x?(0,p.VV)(W,es):W,q,x?(0,p.Fp)(V,el):V);D[O]=ec,U[O]=ec-q}if(v){var eu,ed="x"===O?n.we:n.t$,eh="x"===O?n.I:n.F2,ep=D[N],ef="y"===N?"height":"width",em=ep+A[ed],eg=ep-A[eh],ey=-1!==[n.we,n.t$].indexOf(C),ev=null!=(eu=null==B?void 0:B[N])?eu:0,eb=ey?em:ep-R[ef]-L[ef]-ev+j.altAxis,e_=ey?ep+R[ef]+L[ef]-ev-j.altAxis:eg,ew=x&&ey?(0,s.q)(eb,ep,e_):(0,s.u)(x?eb:em,ep,x?e_:eg);D[N]=ew,U[N]=ew-ep}t.modifiersData[f]=U}},requiresIfExists:["offset"]}},72581:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(6206),i=r(14943),o=r(11516),a=r(87701);function s(e){var t,r=e.reference,s=e.element,l=e.placement,c=l?(0,n.Z)(l):null,u=l?(0,i.Z)(l):null,d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2;switch(c){case a.we:t={x:d,y:r.y-s.height};break;case a.I:t={x:d,y:r.y+r.height};break;case a.F2:t={x:r.x+r.width,y:h};break;case a.t$:t={x:r.x-s.width,y:h};break;default:t={x:r.x,y:r.y}}var p=c?(0,o.Z)(c):null;if(null!=p){var f="y"===p?"height":"width";switch(u){case a.BL:t[p]=t[p]-(r[f]/2-s[f]/2);break;case a.ut:t[p]=t[p]+(r[f]/2-s[f]/2)}}return t}},6486:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(87701),i=r(62057),o=r(67252),a=r(4063),s=r(67977);function l(e,t){var r=(0,i.Z)(e),n=(0,o.Z)(e),l=r.visualViewport,c=n.clientWidth,u=n.clientHeight,d=0,h=0;if(l){c=l.width,u=l.height;var p=(0,s.Z)();(p||!p&&"fixed"===t)&&(d=l.offsetLeft,h=l.offsetTop)}return{width:c,height:u,x:d+(0,a.Z)(e),y:h}}var c=r(43062),u=r(82163),d=r(138);function h(e){var t,r=(0,o.Z)(e),n=(0,u.Z)(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=(0,d.Fp)(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=(0,d.Fp)(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),h=-n.scrollLeft+(0,a.Z)(e),p=-n.scrollTop;return"rtl"===(0,c.Z)(i||r).direction&&(h+=(0,d.Fp)(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:h,y:p}}var p=r(31492),f=r(98552),m=r(62556),g=r(50400),y=r(95923),v=r(94985),b=r(96333);function _(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w(e,t){var r=(0,g.Z)(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function S(e,t,r){return t===n.Pj?_(l(e,r)):(0,m.kK)(t)?w(t,r):_(h((0,o.Z)(e)))}function k(e){var t=(0,p.Z)((0,y.Z)(e)),r=["absolute","fixed"].indexOf((0,c.Z)(e).position)>=0&&(0,m.Re)(e)?(0,f.Z)(e):e;return(0,m.kK)(r)?t.filter(function(e){return(0,m.kK)(e)&&(0,v.Z)(e,r)&&"body"!==(0,b.Z)(e)}):[]}function x(e,t,r,n){var i=[].concat("clippingParents"===t?k(e):[].concat(t),[r]),o=i[0],a=i.reduce(function(t,r){var i=S(e,r,n);return t.top=(0,d.Fp)(i.top,t.top),t.right=(0,d.VV)(i.right,t.right),t.bottom=(0,d.VV)(i.bottom,t.bottom),t.left=(0,d.Fp)(i.left,t.left),t},S(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var E=r(72581),T=r(63293),A=r(33706);function C(e,t){void 0===t&&(t={});var r=t,i=r.placement,a=void 0===i?e.placement:i,s=r.strategy,l=void 0===s?e.strategy:s,c=r.boundary,u=void 0===c?n.zV:c,d=r.rootBoundary,h=void 0===d?n.Pj:d,p=r.elementContext,f=void 0===p?n.k5:p,y=r.altBoundary,v=void 0!==y&&y,b=r.padding,w=void 0===b?0:b,S=(0,T.Z)("number"!=typeof w?w:(0,A.Z)(w,n.mv)),k=f===n.k5?n.YP:n.k5,C=e.rects.popper,P=e.elements[v?k:f],I=x((0,m.kK)(P)?P:P.contextElement||(0,o.Z)(e.elements.popper),u,h,l),O=(0,g.Z)(e.elements.reference),N=(0,E.Z)({reference:O,element:C,strategy:"absolute",placement:a}),D=_(Object.assign({},C,N)),R=f===n.k5?D:O,L={top:I.top-R.top+S.top,bottom:R.bottom-I.bottom+S.bottom,left:I.left-R.left+S.left,right:R.right-I.right+S.right},M=e.modifiersData.offset;if(f===n.k5&&M){var j=M[a];
1Object.keys(L).forEach(function(e){var t=[n.F2,n.I].indexOf(e)>=0?1:-1,r=[n.we,n.I].indexOf(e)>=0?"y":"x";L[e]+=j[r]*t})}return L}},33706:function(e,t,r){"use strict";function n(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}r.d(t,{Z:function(){return n}})},6206:function(e,t,r){"use strict";function n(e){return e.split("-")[0]}r.d(t,{Z:function(){return n}})},23607:function(e,t,r){"use strict";function n(){return{top:0,right:0,bottom:0,left:0}}r.d(t,{Z:function(){return n}})},11516:function(e,t,r){"use strict";function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}r.d(t,{Z:function(){return n}})},14943:function(e,t,r){"use strict";function n(e){return e.split("-")[1]}r.d(t,{Z:function(){return n}})},138:function(e,t,r){"use strict";r.d(t,{Fp:function(){return n},NM:function(){return o},VV:function(){return i}});var n=Math.max,i=Math.min,o=Math.round},63293:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(23607);function i(e){return Object.assign({},(0,n.Z)(),e)}},85918:function(e,t,r){"use strict";function n(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}r.d(t,{Z:function(){return n}})},57516:function(e,t,r){"use strict";r.d(t,{q:function(){return o},u:function(){return i}});var n=r(138);function i(e,t,r){return(0,n.Fp)(e,(0,n.VV)(t,r))}function o(e,t,r){var n=i(e,t,r);return n>r?r:n}},13490:function(e,t,r){"use strict";var n=r(58908),i=function(e,t){return void 0===t&&(t=!1),function(r,i,a){if(r){e(r);return}if(i.statusCode>=400&&i.statusCode<=599){var s=a;if(t){if(n.TextDecoder){var l=o(i.headers&&i.headers["content-type"]);try{s=new TextDecoder(l).decode(a)}catch(e){}}else s=String.fromCharCode.apply(null,new Uint8Array(a))}e({cause:s});return}e(null,a)}};function o(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var r=t.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():e},"utf-8")}e.exports=i},9603:function(e,t,r){"use strict";var n=r(58908),i=r(10434),o=r(27376),a=r(61608),s=r(75973);h.httpHandler=r(13490),h.requestInterceptorsStorage=new a,h.responseInterceptorsStorage=new a,h.retryManager=new s;var l=function(e){var t={};return e&&e.trim().split("\n").forEach(function(e){var r=e.indexOf(":"),n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}),t};function c(e,t){for(var r=0;r<e.length;r++)t(e[r])}function u(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function d(e,t,r){var n=e;return o(t)?(r=t,"string"==typeof e&&(n={uri:e})):n=i({},t,{uri:e}),n.callback=r,n}function h(e,t,r){return p(t=d(e,t,r))}function p(e){if(void 0===e.callback)throw Error("callback argument missing");if(e.requestType&&h.requestInterceptorsStorage.getIsEnabled()){var t,r,n,i={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},o=h.requestInterceptorsStorage.execute(e.requestType,i);e.uri=o.uri,e.headers=o.headers,e.body=o.body,e.metadata=o.metadata,e.retry=o.retry,e.timeout=o.timeout}var a=!1,s=function(t,r,n){a||(a=!0,e.callback(t,r,n))};function c(){4!==y.readyState||h.responseInterceptorsStorage.getIsEnabled()||setTimeout(g,0)}function d(){var e=void 0;if(e=y.response?y.response:y.responseText||f(y),k)try{e=JSON.parse(e)}catch(e){}return e}function m(t){if(clearTimeout(n),clearTimeout(e.retryTimeout),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,!r&&h.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry()){e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=y,p(e)},e.retry.getCurrentFuzzedDelay());return}if(e.requestType&&h.responseInterceptorsStorage.getIsEnabled()){var i={headers:x.headers||{},body:x.body,responseUrl:y.responseURL,responseType:y.responseType},o=h.responseInterceptorsStorage.execute(e.requestType,i);x.body=o.body,x.headers=o.headers}return s(t,x)}function g(){if(!r){clearTimeout(n),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===y.status?200:1223===y.status?204:y.status;var t,i=x,o=null;if(0!==t?(i={body:d(),statusCode:t,method:b,headers:{},url:v,rawRequest:y},y.getAllResponseHeaders&&(i.headers=l(y.getAllResponseHeaders()))):o=Error("Internal XMLHttpRequest Error"),e.requestType&&h.responseInterceptorsStorage.getIsEnabled()){var a={headers:i.headers||{},body:i.body,responseUrl:y.responseURL,responseType:y.responseType},c=h.responseInterceptorsStorage.execute(e.requestType,a);i.body=c.body,i.headers=c.headers}return s(o,i,i.body)}}var y=e.xhr||null;y||(y=e.cors||e.useXDR?new h.XDomainRequest:new h.XMLHttpRequest);var v=y.url=e.uri||e.url,b=y.method=e.method||"GET",_=e.body||e.data,w=y.headers=e.headers||{},S=!!e.sync,k=!1,x={body:void 0,headers:{},statusCode:0,method:b,url:v,rawRequest:y};if("json"in e&&!1!==e.json&&(k=!0,w.accept||w.Accept||(w.Accept="application/json"),"GET"!==b&&"HEAD"!==b&&(w["content-type"]||w["Content-Type"]||(w["Content-Type"]="application/json"),_=JSON.stringify(!0===e.json?_:e.json))),y.onreadystatechange=c,y.onload=g,y.onerror=m,y.onprogress=function(){},y.onabort=function(){r=!0,clearTimeout(e.retryTimeout)},y.ontimeout=m,y.open(b,v,!S,e.username,e.password),S||(y.withCredentials=!!e.withCredentials),!S&&e.timeout>0&&(n=setTimeout(function(){if(!r){r=!0,y.abort("timeout");var e=Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",m(e)}}
1,e.timeout)),y.setRequestHeader)for(t in w)w.hasOwnProperty(t)&&y.setRequestHeader(t,w[t]);else if(e.headers&&!u(e.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(y.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(y),y.send(_||null),y}function f(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}function m(){}e.exports=h,e.exports.default=h,h.XMLHttpRequest=n.XMLHttpRequest||m,h.XDomainRequest="withCredentials"in new h.XMLHttpRequest?h.XMLHttpRequest:n.XDomainRequest,c(["get","put","post","patch","head","delete"],function(e){h["delete"===e?"del":e]=function(t,r,n){return(r=d(t,r,n)).method=e.toUpperCase(),p(r)}})},61608:function(e){"use strict";function t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=r(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 TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var i=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var r=e.prototype;return r.getIsEnabled=function(){return this.enabled_},r.enable=function(){this.enabled_=!0},r.disable=function(){this.enabled_=!1},r.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},r.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var r=this.typeToInterceptorsMap_.get(e);return!r.has(t)&&(r.add(t),!0)},r.removeInterceptor=function(e,t){var r=this.typeToInterceptorsMap_.get(e);return!!(r&&r.has(t))&&(r.delete(t),!0)},r.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},r.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},r.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},r.execute=function(e,r){for(var n,i=this.getForType(e),o=t(i);!(n=o()).done;){var a=n.value;try{r=a(r)}catch(e){}}return r},e}();e.exports=i},75973:function(e){"use strict";var t=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(e){this.maxAttempts_=e},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(e){this.delayFactor_=e},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(e){this.fuzzFactor_=e},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(e){this.initialDelay_=e},t.createRetry=function(e){var t=void 0===e?{}:e,n=t.maxAttempts,i=t.delayFactor,o=t.fuzzFactor,a=t.initialDelay;return new r({maxAttempts:n||this.maxAttempts_,delayFactor:i||this.delayFactor_,fuzzFactor:o||this.fuzzFactor_,initialDelay:a||this.initialDelay_})},e}(),r=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay();return e+Math.random()*(this.getCurrentMaxPossibleDelay()-e)},e}();e.exports=t},72167:function(e,t){"use strict";function r(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var i=e[n];if(t.call(void 0,i,n,e))return i}}function n(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}function i(e,t){if(null===e||"object"!=typeof e)throw TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}var o=n({HTML:"text/html",isHTML:function(e){return e===o.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=i,t.find=r,t.freeze=n,t.MIME_TYPE=o,t.NAMESPACE=a},86129:function(e,t,r){var n,i=r(72167),o=r(41146),a=r(31045),s=r(76925),l=o.DOMImplementation,c=i.NAMESPACE,u=s.ParseError,d=s.XMLReader;function h(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function p(e){this.options=e||{locator:{}}}function f(e,t,r){if(!e){if(t instanceof m)return t;e=t}var n={},i=e instanceof Function;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(r){e(t,r)}:e),n[t]=o&&function(e){o("[xmldom "+t+"]	"+e+y(r))}||function(){}}return r=r||{},o("warning"),o("error"),o("fatalError"),n}function m(){this.cdata=!1}function g(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function y(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function v(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>
vendor: 3,902 bytes, line 1
1=t+r||t?new java.lang.String(e,t,r)+"":e}function b(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}p.prototype.parseFromString=function(e,t){var r=this.options,n=new d,i=r.domBuilder||new m,o=r.errorHandler,s=r.locator,l=r.xmlns||{},u=/\/x?html?$/.test(t),p=u?a.HTML_ENTITIES:a.XML_ENTITIES;s&&i.setDocumentLocator(s),n.errorHandler=f(o,i,s),n.domBuilder=r.domBuilder||i,u&&(l[""]=c.HTML),l.xml=l.xml||c.XML;var g=r.normalizeLineEndings||h;return e&&"string"==typeof e?n.parse(g(e),l,p):n.errorHandler.error("invalid doc source"),i.doc},m.prototype={startDocument:function(){this.doc=new l().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var i=this.doc,o=i.createElementNS(e,r||t),a=n.length;b(this,o),this.currentElement=o,this.locator&&g(this.locator,o);for(var s=0;s<a;s++){var e=n.getURI(s),l=n.getValue(s),r=n.getQName(s),c=i.createAttributeNS(e,r);this.locator&&g(n.getLocator(s),c),c.value=c.nodeValue=l,o.setAttributeNode(c)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&g(this.locator,r),b(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=v.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else var n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&g(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=v.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&g(this.locator,n),b(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(e,t,r);this.locator&&g(this.locator,i),b(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]	"+e,y(this.locator))},error:function(e){console.error("[xmldom error]	"+e,y(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){m.prototype[e]=function(){return null}}),n=m,n=h,t.DOMParser=p},41146:function(e,t,r){var n=r(72167),i=n.find,o=n.NAMESPACE;function a(e){return""!==e}function s(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function l(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function c(e){return e?Object.keys(s(e).reduce(l,{})):[]}function u(e){return function(t){return e&&-1!==e.indexOf(t)}}function d(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function h(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,d(r,n=new n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var p={},f=p.ELEMENT_NODE=1,m=p.ATTRIBUTE_NODE=2,g=p.TEXT_NODE=3,y=p.CDATA_SECTION_NODE=4,v=p.ENTITY_REFERENCE_NODE=5,b=p.ENTITY_NODE=6,_=p.PROCESSING_INSTRUCTION_NODE=7,w=p.COMMENT_NODE=8,S=p.DOCUMENT_NODE=9,k=p.DOCUMENT_TYPE_NODE=10,x=p.DOCUMENT_FRAGMENT_NODE=11,E=p.NOTATION_NODE=12,T={},A={};T.INDEX_SIZE_ERR=(A[1]="Index size error",1),T.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2);var C=T.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3);T.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),T.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5),T.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),T.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7);
1var P=T.NOT_FOUND_ERR=(A[8]="Not found",8);T.NOT_SUPPORTED_ERR=(A[9]="Not supported",9);var I=T.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10);function O(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,A[e]),this.message=A[e],Error.captureStackTrace&&Error.captureStackTrace(this,O);return r.code=e,t&&(this.message=this.message+": "+t),r}function N(){}function D(e,t){this._node=e,this._refresh=t,R(this)}function R(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(eE(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;(n in e);n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];d(r,e),e._inc=t}}function L(){}function M(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function j(e,t,r,n){if(n?t[M(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i=e.ownerDocument;i&&(n&&W(i,e,n),q(i,e,r))}}function B(e,t,r){var n=M(t,r);if(n>=0){for(var i=t.length-1;n<i;)t[n]=t[++n];if(t.length=i,e){var o=e.ownerDocument;o&&(W(o,e,r),r.ownerElement=null)}}else throw new O(P,Error(e.tagName+"@"+r))}function U(){}function F(){}function H(e){return"<"==e&&"&lt;"||">"==e&&"&gt;"||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function z(e,t){if(t(e))return!0;if(e=e.firstChild)do if(z(e,t))return!0;while(e=e.nextSibling)}function $(){this.ownerDocument=this}function q(e,t,r){e&&e._inc++,r.namespaceURI===o.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}function W(e,t,r,n){e&&e._inc++,r.namespaceURI===o.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function V(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var i=t.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length]}}}function G(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function K(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}function Z(e){return e&&(J(e)||X(e)||Y(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}function Y(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function J(e){return e&&e.nodeType===F.ELEMENT_NODE}function X(e){return e&&e.nodeType===F.TEXT_NODE}function Q(e,t){var r=e.childNodes||[];if(i(r,J)||Y(t))return!1;var n=i(r,Y);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function ee(e,t){var r=e.childNodes||[];if(i(r,function(e){return J(e)&&e!==t}))return!1;var n=i(r,Y);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function et(e,t,r){if(!K(e))throw new O(C,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new O(P,"child not in parent");if(!Z(t)||Y(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new O(C,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function er(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];
vendor: 8,578 bytes, line 1
1if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=o.filter(J);if(a.length>1||i(o,X))throw new O(C,"More than one element or text in fragment");if(1===a.length&&!Q(e,r))throw new O(C,"Element in fragment can not be inserted before doctype")}if(J(t)&&!Q(e,r))throw new O(C,"Only one element can be added and only after doctype");if(Y(t)){if(i(n,Y))throw new O(C,"Only one doctype is allowed");var s=i(n,J);if(r&&n.indexOf(s)<n.indexOf(r))throw new O(C,"Doctype can only be inserted before an element");if(!r&&s)throw new O(C,"Doctype can not be appended since element is present")}}function en(e,t,r){var n=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=o.filter(J);if(a.length>1||i(o,X))throw new O(C,"More than one element or text in fragment");if(1===a.length&&!ee(e,r))throw new O(C,"Element in fragment can not be inserted before doctype")}if(J(t)&&!ee(e,r))throw new O(C,"Only one element can be added and only after doctype");if(Y(t)){if(i(n,function(e){return Y(e)&&e!==r}))throw new O(C,"Only one doctype is allowed");var s=i(n,J);if(r&&n.indexOf(s)<n.indexOf(r))throw new O(C,"Doctype can only be inserted before an element")}}function ei(e,t,r,n){et(e,t,r),e.nodeType===F.DOCUMENT_NODE&&(n||er)(e,t,r);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===x){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=r?r.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=r,s?s.nextSibling=o:e.firstChild=o,null==r?e.lastChild=a:r.previousSibling=a;do o.parentNode=e;while(o!==a&&(o=o.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==x&&(t.firstChild=t.lastChild=null),t}function eo(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),t}function ea(){this._nsMap={}}function es(){}function el(){}function ec(){}function eu(){}function ed(){}function eh(){}function ep(){}function ef(){}function em(){}function eg(){}function ey(){}function ev(){}function eb(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,o=n.namespaceURI;if(o&&null==i){var i=n.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}]}return eS(this,r,e,t,a),r.join("")}function e_(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!i||"xml"===n&&i===o.XML||i===o.XMLNS)return!1;for(var a=r.length;a--;){var s=r[a];if(s.prefix===n)return s.namespace!==i}return!0}function ew(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,H),'"')}function eS(e,t,r,n,i){if(i||(i=[]),n){if(!(e=n(e)))return;if("string"==typeof e){t.push(e);return}}switch(e.nodeType){case f:var a,s=e.attributes,l=s.length,c=e.firstChild,u=e.tagName;r=o.isHTML(e.namespaceURI)||r;var d=u;if(!r&&!e.prefix&&e.namespaceURI){for(var h=0;h<s.length;h++)if("xmlns"===s.item(h).name){a=s.item(h).value;break}if(!a)for(var p=i.length-1;p>=0;p--){var b=i[p];if(""===b.prefix&&b.namespace===e.namespaceURI){a=b.namespace;break}}if(a!==e.namespaceURI)for(var p=i.length-1;p>=0;p--){var b=i[p];if(b.namespace===e.namespaceURI){b.prefix&&(d=b.prefix+":"+u);break}}}t.push("<",d);for(var E=0;E<l;E++){var T=s.item(E);"xmlns"==T.prefix?i.push({prefix:T.localName,namespace:T.value}):"xmlns"==T.nodeName&&i.push({prefix:"",namespace:T.value})}for(var E=0;E<l;E++){var T=s.item(E);if(e_(T,r,i)){var A=T.prefix||"",C=T.namespaceURI;ew(t,A?"xmlns:"+A:"xmlns",C),i.push({prefix:A,namespace:C})}eS(T,t,r,n,i)}if(u===d&&e_(e,r,i)){var A=e.prefix||"",C=e.namespaceURI;ew(t,A?"xmlns:"+A:"xmlns",C),i.push({prefix:A,namespace:C})}if(c||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),r&&/^script$/i.test(u))for(;c;)c.data?t.push(c.data):eS(c,t,r,n,i.slice()),c=c.nextSibling;else for(;c;)eS(c,t,r,n,i.slice()),c=c.nextSibling;t.push("</",d,">")}else t.push("/>");return;case S:case x:for(var c=e.firstChild;c;)eS(c,t,r,n,i.slice()),c=c.nextSibling;return;case m:return ew(t,e.name,e.value);case g:return t.push(e.data.replace(/[<&>]/g,H));case y:return t.push("<![CDATA[",e.data,"]]>");case w:return t.push("<!--",e.data,"-->");case k:var P=e.publicId,I=e.systemId;if(t.push("<!DOCTYPE ",e.name),P)t.push(" PUBLIC ",P),I&&"."!=I&&t.push(" ",I),t.push(">");else if(I&&"."!=I)t.push(" SYSTEM ",I,">");else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case _:return t.push("<?",e.target," ",e.data,"?>");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ek(e,t,r){var n;switch(t.nodeType){case f:(n=t.cloneNode(!1)).ownerDocument=e;case x:break;case m:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var i=t.firstChild;i;)n.appendChild(ek(e,i,r)),i=i.nextSibling;return n}function ex(e,t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];"object"!=typeof o&&o!=n[i]&&(n[i]=o)}switch(t.childNodes&&(n.childNodes=new N),n.ownerDocument=e,n.nodeType){case f:var a=t.attributes,s=n.attributes=new L,l=a.length;s._ownerElement=n;for(var c=0;c<l;c++)n.setAttributeNode(ex(e,a.item(c),!0));break;case m:r=!0}if(r)for(var u=t.firstChild;u;)n.appendChild(ex(e,u,r)),u=u.nextSibling;return n}function eE(e,t,r){e[t]=r}T.INVALID_STATE_ERR=(A[11]="Invalid state",11),T.SYNTAX_ERR=(A[12]="Syntax error",12),T.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),T.NAMESPACE_ERR=(A[14]="Invalid namespace",14),T.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),O.prototype=Error.prototype,d(T,O),N.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)eS(this[n],r,e,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},D.prototype.item=function(e){return R(this),this[e]||null},h(D,N),L.prototype={length:0,item:N.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new O(I);var r=this.getNamedItem(e.nodeName);return j(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new O(I);return t=this.getNamedItemNS(e.namespaceURI,e.localName),j(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return B(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return B(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},U.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=new $;if(n.implementation=this,n.childNodes=new N,n.doctype=r||null,r&&n.appendChild(r),t){var i=n.createElementNS(e,t);n.appendChild(i)}return n},createDocumentType:function(e,t,r){var n=new eh;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n}},F.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ei(this,e,t)},replaceChild:function(e,t){ei(this,e,t,en),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ex(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==g&&e.nodeType==g?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n}t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},d(p,F),d(p,F.prototype),$.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==x){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}
vendor: 8,592 bytes, line 1
1return e}return ei(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===f&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){ei(this,e,t,en),e.ownerDocument=this,t&&this.removeChild(t),J(e)&&(this.documentElement=e)},importNode:function(e,t){return ek(this,e,t)},getElementById:function(e){var t=null;return z(this.documentElement,function(r){if(r.nodeType==f&&r.getAttribute("id")==e)return t=r,!0}),t},getElementsByClassName:function(e){var t=c(e);return new D(this,function(r){var n=[];return t.length>0&&z(r.documentElement,function(i){if(i!==r&&i.nodeType===f){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=c(o);a=t.every(u(s))}a&&n.push(i)}}}),n})},createElement:function(e){var t=new ea;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new N,(t.attributes=new L)._ownerElement=t,t},createDocumentFragment:function(){var e=new eg;return e.ownerDocument=this,e.childNodes=new N,e},createTextNode:function(e){var t=new ec;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new eu;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ed;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new ey;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new es;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new em;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new ea,n=t.split(":"),i=r.attributes=new L;return r.childNodes=new N,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r},createAttributeNS:function(e,t){var r=new es,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},h($,F),ea.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===x?this.insertBefore(e,null):eo(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new D(this,function(t){var r=[];return z(t,function(n){n!==t&&n.nodeType==f&&("*"===e||n.tagName==e)&&r.push(n)}),r})},getElementsByTagNameNS:function(e,t){return new D(this,function(r){var n=[];return z(r,function(i){i!==r&&i.nodeType===f&&("*"===e||i.namespaceURI===e)&&("*"===t||i.localName==t)&&n.push(i)}),n})}},$.prototype.getElementsByTagName=ea.prototype.getElementsByTagName,$.prototype.getElementsByTagNameNS=ea.prototype.getElementsByTagNameNS,h(ea,F),es.prototype.nodeType=m,h(es,F),el.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(A[C])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},h(el,F),ec.prototype={nodeName:"#text",nodeType:g,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},h(ec,el),eu.prototype={nodeName:"#comment",nodeType:w},h(eu,el),ed.prototype={nodeName:"#cdata-section",nodeType:y},h(ed,el),eh.prototype.nodeType=k,h(eh,F),ep.prototype.nodeType=E,h(ep,F),ef.prototype.nodeType=b,h(ef,F),em.prototype.nodeType=v,h(em,F),eg.prototype.nodeName="#document-fragment",eg.prototype.nodeType=x,h(eg,F),ey.prototype.nodeType=_,h(ey,F),ev.prototype.serializeToString=function(e,t,r){return eb.call(e,t,r)},F.prototype.toString=eb;try{if(Object.defineProperty){function eT(e){switch(e.nodeType){case f:case x:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(eT(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(D.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return eT(this)},set:function(e){switch(this.nodeType){case f:case x:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),eE=function(e,t,r){e["$$"+t]=r}}}catch(e){}t.DocumentType=eh,t.DOMException=O,t.DOMImplementation=U,t.Element=ea,t.Node=F,t.NodeList=N,t.XMLSerializer=ev},31045:function(e,t,r){"use strict";var n=r(72167).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",b
1sime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18
1:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ä¢",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"⁣",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"Ä«",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Ä®",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"È·",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Ð¥",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"â
1‹–",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ä¿",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"â§«",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"â©»",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"â«°",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"â
1‹ ",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rf
1isht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickS
1pace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},3969:function(e,t,r){var n,i=r(41146);n=i.DOMImplementation,n=i.XMLSerializer,t.DOMParser=r(86129).DOMParser},76925:function(e,t,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=RegExp("^"+i.source+o.source+"*(?::"+i.source+o.source+"*)?$"),s=0,l=1,c=2,u=3,d=4,h=5,p=6,f=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function y(e,t,r,i,o){function a(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity n
1ot found:"+e),e)}function l(t){if(t>y){var r=e.substring(y,t).replace(/&#?\w+;/g,s);p&&c(y),i.characters(r,0,t-y),y=t}}function c(t,r){for(;t>=d&&(r=h.exec(e));)d=(u=r.index)+r[0].length,p.lineNumber++;p.columnNumber=t-u+1}for(var u=0,d=0,h=/.*(?:\r\n?|\n)|.*$/g,p=i.locator,f=[{currentNSMap:t}],g={},y=0;;){try{var k=e.indexOf("<",y);if(k<0){if(!e.substr(y).match(/^\s*$/)){var A=i.doc,C=A.createTextNode(e.substr(y));A.appendChild(C),i.currentElement=C}return}switch(k>y&&l(k),e.charAt(k+1)){case"/":var P=e.indexOf(">",k+3),I=e.substring(k+2,P).replace(/[ \t\n\r]+$/g,""),O=f.pop();P<0?(I=e.substring(k+2).replace(/[\s<].*/,""),o.error("end tag name: "+I+" is not complete:"+O.tagName),P=k+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),o.error("end tag name: "+I+" maybe not complete"),P=k+1+I.length);var N=O.localNSMap,D=O.tagName==I;if(D||O.tagName&&O.tagName.toLowerCase()==I.toLowerCase()){if(i.endElement(O.uri,O.localName,I),N)for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&i.endPrefixMapping(R);D||o.fatalError("end tag name: "+I+" is not match the current start tagName:"+O.tagName)}else f.push(O);P++;break;case"?":p&&c(k),P=E(e,k,i);break;case"!":p&&c(k),P=x(e,k,i,o);break;default:p&&c(k);var L=new T,M=f[f.length-1].currentNSMap,P=b(e,k,L,M,s,o),j=L.length;if(!L.closed&&S(e,P,L.tagName,g)&&(L.closed=!0,r.nbsp||o.warning("unclosed xml attribute")),p&&j){for(var B=v(p,{}),U=0;U<j;U++){var F=L[U];c(F.offset),F.locator=v(p,{})}i.locator=B,_(L,i,M)&&f.push(L),i.locator=p}else _(L,i,M)&&f.push(L);n.isHTML(L.uri)&&!L.closed?P=w(e,P,L.tagName,s,i):P++}}catch(e){if(e instanceof m)throw e;o.error("element parse error: "+e),P=-1}P>y?y=P:l(Math.max(k,y)+1)}}function v(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,r,i,o,a){function m(e,t,n){r.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),n)}for(var g,y,v=++t,b=s;;){var _=e.charAt(v);switch(_){case"=":if(b===l)g=e.slice(t,v),b=u;else if(b===c)b=u;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(b===u||b===l){if(b===l&&(a.warning('attribute value must after "="'),g=e.slice(t,v)),t=v+1,(v=e.indexOf(_,t))>0)m(g,y=e.slice(t,v),t-1),b=h;else throw Error("attribute value no end '"+_+"' match")}else if(b==d)m(g,y=e.slice(t,v),t),a.warning('attribute "'+g+'" missed start quot('+_+")!!"),t=v+1,b=h;else throw Error('attribute value must after "="');break;case"/":switch(b){case s:r.setTagName(e.slice(t,v));case h:case p:case f:b=f,r.closed=!0;case d:case l:break;case c:r.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),b==s&&r.setTagName(e.slice(t,v)),v;case">":switch(b){case s:r.setTagName(e.slice(t,v));case h:case p:case f:break;case d:case l:"/"===(y=e.slice(t,v)).slice(-1)&&(r.closed=!0,y=y.slice(0,-1));case c:b===c&&(y=g),b==d?(a.warning('attribute "'+y+'" missed quot(")!'),m(g,y,t)):(n.isHTML(i[""])&&y.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+y+'" missed value!! "'+y+'" instead!!'),m(y,y,t));break;case u:throw Error("attribute value missed!!")}return v;case"\x80":_=" ";default:if(_<=" ")switch(b){case s:r.setTagName(e.slice(t,v)),b=p;break;case l:g=e.slice(t,v),b=c;break;case d:var y=e.slice(t,v);a.warning('attribute "'+y+'" missed quot(")!!'),m(g,y,t);case h:b=p}else switch(b){case c:r.tagName,n.isHTML(i[""])&&g.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,b=l;break;case h:a.warning('attribute space is required"'+g+'"!!');case p:b=l,t=v;break;case u:b=d,t=v;break;case f:throw Error("elements closed character '/' and '>' must be connected to")}}v++}}function _(e,t,r){for(var i=e.tagName,o=null,a=e.length;a--;){var s=e[a],l=s.qName,c=s.value,u=l.indexOf(":");if(u>0)var d=s.prefix=l.slice(0,u),h=l.slice(u+1),p="xmlns"===d&&h;else h=l,d=null,p="xmlns"===l&&"";s.localName=h,!1!==p&&(null==o&&(o={},k(r,r={})),r[p]=o[p]=c,s.uri=n.XMLNS,t.startPrefixMapping(p,c))}for(var a=e.length;a--;){var d=(s=e[a]).prefix;d&&("xml"===d&&(s.uri=n.XML),"xmlns"!==d&&(s.uri=r[d||""]))}var u=i.indexOf(":");u>0?(d=e.prefix=i.slice(0,u),h=e.localName=i.slice(u+1)):(d=null,h=e.localName=i);var f=e.uri=r[d||""];if(t.startElement(f,h,i,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(f,h,i),o)for(d in o)Object.prototype.hasOwnProperty.call(o,d)&&t.endPrefixMapping(d)}function w(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(r)||(a=a.replace(/&#?\w+;/g,n)),i.characters(a,0,a.length),o}return t+1}function S(e,t,r,n){var i=n[r];return null==i&&((i=e.lastIndexOf("</"+r+">"))<t&&(i=e.lastIndexOf("</"+r)),n[r]=i),i<t}function k(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function x(e,t,r,n){if("-"===e.charAt(t+2)){if("-"===e.charAt(t+3)){var i=e.indexOf("-->",t+4);if(i>t)return r.comment(e,t+4,i-t-4),i+3;n.error("Unclosed comment")}}else{if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,i-t-9),r.endCDATA(),i+3}var o=A(e,t),a=o.length;if(a>
11&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=!1,c=!1;a>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],c=a>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var u=o[a-1];return r.startDTD(s,l,c),r.endDTD(),u.index+u[0].length}}return -1}function E(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,r.processingInstruction(i[1],i[2]),n+2}return -1}function T(){this.attributeNames={}}function A(e,t){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);r=i.exec(e);)if(n.push(r),r[1])return n}m.prototype=Error(),m.prototype.name=m.name,g.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),k(t,t={}),y(e,t,r,n,this.errorHandler),n.endDocument()}},T.prototype={setTagName:function(e){if(!a.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!a.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},79742:function(e,t){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=f;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n}function u(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,o=l(e),a=o[0],s=o[1],c=new i(u(e,a,s)),d=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,r){for(var n=[],i=t;i<r;i+=3)n.push(h((e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2])));return n.join("")}function f(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(e,t,r){"use strict";var n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(){try{var 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}}function l(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return f(e,t);if(ArrayBuffer.isView(e))return g(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return y(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var i=v(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 7,403 bytes, line 1
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,t,r){return(d(e),e<=0)?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)}function p(e){return d(e),l(e<0?0:0|b(e))}function f(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|w(e,t),n=l(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){for(var t=e.length<0?0:0|b(e.length),r=l(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function g(e){if(J(e,Uint8Array)){var t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function y(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),c.prototype),n}function v(e){if(c.isBuffer(e)){var t=0|b(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function b(e){if(e>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(i)return n?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function S(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return N(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function k(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):E(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function E(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else -1!==u&&(o-=o-u),u=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return -1}function T(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(X(s))break;e[r+a]=s}return a}function A(e,t,r,n){return Y(V(t,e.length-r),e,r,n)}function C(e,t,r,n){return Y(G(t),e,r,n)}function P(e,t,r,n){return Y(Z(t),e,r,n)}function I(e,t,r,n){return Y(K(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function N(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return R(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=s(),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,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return h(e,t,r)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?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 TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(J(o,Uint8Array))i+o.length>n.length?c.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(c.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)k(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?N(this,0,e):S.apply(this,arguments)}
vendor: 10,046 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return x(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return x(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return T(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return C(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function R(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=D));return r}function L(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function j(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Q[e[o]];return i}function B(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function U(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,o){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function H(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function z(e,t,r,n,o){return t=+t,r>>>=0,o||H(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function $(e,t,r,n,o){return t=+t,r>>>=0,o||H(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(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||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return(e>>>=0,t||U(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(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||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||F(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,r){return e=+e,t>>>=0,r||F(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,r){return e=+e,t>>>=0,r||F(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,r){return e=+e,t>>>=0,r||F(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.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||F(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,r){return e=+e,t>>>=0,r||F(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.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=c.isBuffer(e)?e:c.from(e,n),s=a.length;
1if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var q=/[^+/0-9A-Za-z-_]/g;function W(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function G(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function K(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function Z(e){return n.toByteArray(W(e))}function Y(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function J(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}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},40487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=t},76489:function(e,t){"use strict";t.parse=i,t.serialize=o;var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},n=(t||{}).decode||a,i=0;i<e.length;){var o=e.indexOf("=",i);if(-1===o)break;var s=e.indexOf(";",i);if(-1===s)s=e.length;else if(s<o){i=e.lastIndexOf(";",o-1)+1;continue}var l=e.slice(i,o).trim();if(void 0===r[l]){var u=e.slice(o+1,s).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=c(u,n)}i=s+1}return r}function o(e,t,r){var i=r||{},o=i.encode||s;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var a=o(t);if(a&&!n.test(a))throw TypeError("argument val is invalid");var c=e+"="+a;if(null!=i.maxAge){var u=i.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(i.domain){if(!n.test(i.domain))throw TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!n.test(i.path))throw TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){var d=i.expires;if(!l(d)||isNaN(d.valueOf()))throw TypeError("option expires is invali
1d");c+="; Expires="+d.toUTCString()}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.priority)switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c}function a(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function s(e){return encodeURIComponent(e)}function l(e){return"[object Date]"===r.call(e)||e instanceof Date}function c(e,t){try{return t(e)}catch(t){return e}}},71012:function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var i=e[n]<<16|e[n+1]<<8|e[n+2],o=0;o<4;o++)8*n+6*o<=8*e.length?r.push(t.charAt(i>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],n=0,i=0;n<e.length;i=++n%4)0!=i&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(n))>>>6-2*i);return r}};e.exports=r}()},40452:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(98269),r(68214),r(90888),r(75109))}(0,function(e){return!function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=0,n=0,t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,i[r]=f,o[f]=r;var m=e[r],g=e[m],y=e[g],v=257*e[f]^16843008*f;a[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,l[r]=v<<8|v>>>24,c[r]=v;var v=16843009*y^65537*g^257*m^16843008*r;u[f]=v<<24|v>>>8,d[f]=v<<16|v>>>16,h[f]=v<<8|v>>>24,p[f]=v,r?(r=m^e[e[e[y^m]]],n^=e[e[n]]):r=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e,t=this._keyPriorReset=this._key,r=t.words,n=t.sigBytes/4,o=((this._nRounds=n+6)+1)*4,a=this._keySchedule=[],s=0;s<o;s++)s<n?a[s]=r[s]:(e=a[s-1],s%n?n>6&&s%n==4&&(e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[255&e]):e=(i[(e=e<<8|e>>>24)>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[255&e])^f[s/n|0]<<24,a[s]=a[s-n]^e);for(var l=this._invKeySchedule=[],c=0;c<o;c++){var s=o-c;if(c%4)var e=a[s];else var e=a[s-4];c<4||s<=4?l[c]=e:l[c]=u[i[e>>>24]]^d[i[e>>>16&255]]^h[i[e>>>8&255]]^p[i[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,o);var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],h=e[t+3]^r[3],p=4,f=1;f<l;f++){var m=n[c>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&h]^r[p++],g=n[u>>>24]^i[d>>>16&255]^o[h>>>8&255]^a[255&c]^r[p++],y=n[d>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&u]^r[p++],v=n[h>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&d]^r[p++];c=m,u=g,d=y,h=v}var m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^r[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^r[p++],y=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^r[p++],v=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[p++];e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8});t.AES=r._createHelper(m)}(),e.AES})},87407:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(98269),r(68214),r(90888),r(75109))}(0,function(e){return!function(){var t=e,r=t.lib.BlockCipher,n=t.algo;let i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a
vendor: 11,033 bytes, line 1
1=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
1;var s={pbox:[],sbox:[]};function l(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][i],a+=e.sbox[3][o]}function c(e,t,r){let n,o=t,a=r;for(let t=0;t<i;++t)o^=e.pbox[t],a=l(e,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n^e.pbox[i],{left:o^=e.pbox[i+1],right:a}}function u(e,t,r){let n,o=t,a=r;for(let t=i+1;t>1;--t)o^=e.pbox[t],a=l(e,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n^e.pbox[1],{left:o^=e.pbox[0],right:a}}function d(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=a[t][r]}let n=0;for(let a=0;a<i+2;
vendor: 10,528 bytes, line 1
1a++)e.pbox[a]=o[a]^t[n],++n>=r&&(n=0);let s=0,l=0,u=0;for(let t=0;t<i+2;t+=2)s=(u=c(e,s,l)).left,l=u.right,e.pbox[t]=s,e.pbox[t+1]=l;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)s=(u=c(e,s,l)).left,l=u.right,e.sbox[t][r]=s,e.sbox[t][r+1]=l;return!0}var h=n.Blowfish=r.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key;d(s,e.words,e.sigBytes/4)}},encryptBlock:function(e,t){var r=c(s,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=u(s,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=r._createHelper(h)}(),e.Blowfish})},75109:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(90888))}(0,function(e){e.lib.Cipher||function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=r.BufferedBlockAlgorithm,a=t.enc;a.Utf8;var s=a.Base64,l=t.algo.EvpKDF,c=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?v:g}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=t.mode={},d=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=u.CBC=function(){var e=d.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=n[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),p=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(o);var l=i.create(a,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:h,padding:p}),reset:function(){c.reset.call(this);var e,t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var f=r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(e){var t,r=e.ciphertext,n=e.salt;return(t=n?i.create([1398893684,1701076831]).concat(n).concat(r):r).toString(s)},parse:function(e){var t,r=s.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),f.create({ciphertext:r,salt:t})}},g=r.SerializableCipher=n.extend({cfg:n.extend({format:m}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return f.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=i.random(8)),o)var a=l.create({keySize:t+r,hasher:o}).compute(e,n);else var a=l.create({keySize:t+r}).compute(e,n);var s=i.create(a.words.slice(t),4*r);return a.sigBytes=4*t,f.create({key:a,iv:s,salt:n})}},v=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=g.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,g.decrypt.call(this,e,t,i.key,n)}})}()})},78249:function(e,t,r){!function(r,n){e.exports=t=n()}(0,function(){var e=e||function(e,t){if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(42480)}catch(e){}var n,i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},l=s.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=l.extend({init:function(e,r){e=this.words=e||[],t!=r?this.sigBytes=r:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(i,d);r=i.splice(0,l),n.sigBytes-=u}return new c.init(r,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new m.HMAC.init(e,r).finalize(t)}}});var m=a.algo={};return a}(Math);return e})},98269:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},43786:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<n;l++)o.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;
1a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(r=l)}return n(e,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url})},50298:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(){var t=e,r=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16})},90888:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(62783),r(89824))}(0,function(e){return!function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,l=n.keySize,c=n.iterations;s.length<l;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*l,a}});t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),e.EvpKDF})},42209:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return!function(){var t=e,r=t.lib.CipherParams,n=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}}}(),e.format.Hex})},89824:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){!function(){var t=e,r=t.lib.Base,n=t.enc.Utf8;t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}()})},81354:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(64938),r(4433),r(50298),r(98269),r(43786),r(68214),r(62783),r(52153),r(87792),r(70034),r(17460),r(13327),r(30706),r(89824),r(2112),r(90888),r(75109),r(8568),r(74242),r(59968),r(27660),r(31148),r(43615),r(92807),r(71077),r(56475),r(16991),r(42209),r(40452),r(94253),r(51857),r(84454),r(93974),r(87407))}(0,function(e){return e})},4433:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray})},68214:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}
1var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],S=e[t+11],k=e[t+12],x=e[t+13],E=e[t+14],T=e[t+15],A=o[0],C=o[1],P=o[2],I=o[3];A=c(A,C,P,I,a,7,s[0]),I=c(I,A,C,P,l,12,s[1]),P=c(P,I,A,C,p,17,s[2]),C=c(C,P,I,A,f,22,s[3]),A=c(A,C,P,I,m,7,s[4]),I=c(I,A,C,P,g,12,s[5]),P=c(P,I,A,C,y,17,s[6]),C=c(C,P,I,A,v,22,s[7]),A=c(A,C,P,I,b,7,s[8]),I=c(I,A,C,P,_,12,s[9]),P=c(P,I,A,C,w,17,s[10]),C=c(C,P,I,A,S,22,s[11]),A=c(A,C,P,I,k,7,s[12]),I=c(I,A,C,P,x,12,s[13]),P=c(P,I,A,C,E,17,s[14]),C=c(C,P,I,A,T,22,s[15]),A=u(A,C,P,I,l,5,s[16]),I=u(I,A,C,P,y,9,s[17]),P=u(P,I,A,C,S,14,s[18]),C=u(C,P,I,A,a,20,s[19]),A=u(A,C,P,I,g,5,s[20]),I=u(I,A,C,P,w,9,s[21]),P=u(P,I,A,C,T,14,s[22]),C=u(C,P,I,A,m,20,s[23]),A=u(A,C,P,I,_,5,s[24]),I=u(I,A,C,P,E,9,s[25]),P=u(P,I,A,C,f,14,s[26]),C=u(C,P,I,A,b,20,s[27]),A=u(A,C,P,I,x,5,s[28]),I=u(I,A,C,P,p,9,s[29]),P=u(P,I,A,C,v,14,s[30]),C=u(C,P,I,A,k,20,s[31]),A=d(A,C,P,I,g,4,s[32]),I=d(I,A,C,P,b,11,s[33]),P=d(P,I,A,C,S,16,s[34]),C=d(C,P,I,A,E,23,s[35]),A=d(A,C,P,I,l,4,s[36]),I=d(I,A,C,P,m,11,s[37]),P=d(P,I,A,C,v,16,s[38]),C=d(C,P,I,A,w,23,s[39]),A=d(A,C,P,I,x,4,s[40]),I=d(I,A,C,P,a,11,s[41]),P=d(P,I,A,C,f,16,s[42]),C=d(C,P,I,A,y,23,s[43]),A=d(A,C,P,I,_,4,s[44]),I=d(I,A,C,P,k,11,s[45]),P=d(P,I,A,C,T,16,s[46]),C=d(C,P,I,A,p,23,s[47]),A=h(A,C,P,I,a,6,s[48]),I=h(I,A,C,P,v,10,s[49]),P=h(P,I,A,C,E,15,s[50]),C=h(C,P,I,A,g,21,s[51]),A=h(A,C,P,I,k,6,s[52]),I=h(I,A,C,P,f,10,s[53]),P=h(P,I,A,C,w,15,s[54]),C=h(C,P,I,A,l,21,s[55]),A=h(A,C,P,I,b,6,s[56]),I=h(I,A,C,P,T,10,s[57]),P=h(P,I,A,C,y,15,s[58]),C=h(C,P,I,A,x,21,s[59]),A=h(A,C,P,I,m,6,s[60]),I=h(I,A,C,P,S,10,s[61]),P=h(P,I,A,C,p,15,s[62]),C=h(C,P,I,A,_,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+C|0,o[2]=o[2]+P|0,o[3]=o[3]+I|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,r[(i+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,e.sigBytes=(r.length+1)*4,this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(l),r.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5})},8568:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);r.call(this,e,t,i,n),this._prevBlock=o}}),t}(),e.mode.CFB})},59968:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if((e>>24&255)==255){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0+(t<<16)+(r<<8)+n}else e+=16777216;return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var l=0;l<i;l++)e[t+l]^=s[l]}});return t.Decryptor=i,t}(),e.mode.CTRGladman})},74242:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}});return t.Decryptor=r,t}(),e.mode.CTR})},31148:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})},27660:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}});return t.Decryptor=r,t}(),e.mode.OFB})},43615:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;
vendor: 8,640 bytes, line 1
1e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},92807:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},71077:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},16991:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},56475:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(75109))}(0,function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding})},2112:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(52153),r(89824))}(0,function(e){return!function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.SHA256,s=o.HMAC,l=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=s.create(r.hasher,e),o=i.create(),a=i.create([1]),l=o.words,c=a.words,u=r.keySize,d=r.iterations;l.length<u;){var h=n.update(t).finalize(a);n.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=n.finalize(m),n.reset();for(var y=m.words,v=0;v<f;v++)p[v]^=y[v]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(e,t,r){return l.create(r).compute(e,t)}}(),e.PBKDF2})},93974:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(98269),r(68214),r(90888),r(75109))}(0,function(e){return!function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(var i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=c>>>16|4294901760&u,h=u<<16|65535&c;n[0]^=c,n[1]^=d,n[2]^=u,n[3]^=h,n[4]^=c,n[5]^=d,n[6]^=u,n[7]^=h;for(var i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=(i[n]<<8|i[n]>>>24)&16711935|(i[n]<<24|i[n]>>>8)&4278255360,e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy})},84454:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(98269),r(68214),r(90888),r(75109))}(0,function(e){return!function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=(e[r]<<8|e[r]>>>24)&16711935|(e[r]<<24|e[r]>>>8)&4278255360;var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)l.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=c>>>16|4294901760&u,h=u<<16|65535&c;i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h;for(var r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=(i[n]<<8|i[n]>>>24)&16711935|(i[n]<<24|i[n]>>>8)&4278255360,e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit})},51857:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(98269),r(68214),r(90888),r(75109))}(0,function(e){return!function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;for(var i=0,o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var l=n[i];n[i]=n[o],n[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4})},30706:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r,n,i,o,a,p,_,w,S,k,x,E=0;E<16;
1E++){var T=t+E,A=e[T];e[T]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var C=this._hash.words,P=d.words,I=h.words,O=s.words,N=l.words,D=c.words,R=u.words;p=r=C[0],_=n=C[1],w=i=C[2],S=o=C[3],k=a=C[4];for(var E=0;E<80;E+=1)x=r+e[t+O[E]]|0,E<16?x+=f(n,i,o)+P[0]:E<32?x+=m(n,i,o)+P[1]:E<48?x+=g(n,i,o)+P[2]:E<64?x+=y(n,i,o)+P[3]:x+=v(n,i,o)+P[4],x|=0,x=(x=b(x,D[E]))+a|0,r=a,a=o,o=b(i,10),i=n,n=x,x=p+e[t+N[E]]|0,E<16?x+=v(_,w,S)+I[0]:E<32?x+=y(_,w,S)+I[1]:E<48?x+=g(_,w,S)+I[2]:E<64?x+=m(_,w,S)+I[3]:x+=f(_,w,S)+I[4],x|=0,x=(x=b(x,R[E]))+k|0,p=k,k=S,S=b(w,10),w=_,_=x;x=C[1]+i+S|0,C[1]=C[2]+o+k|0,C[2]=C[3]+a+p|0,C[3]=C[4]+r+_|0,C[4]=C[0]+n+w|0,C[0]=x},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,r){return e^t^r}function m(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function v(e,t,r){return e^(t|~r)}function b(e,t){return e<<t|e>>>32-t}r.RIPEMD160=o._createHelper(p),r.HmacRIPEMD160=o._createHmacHelper(p)}(Math),e.RIPEMD160})},62783:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],l=r[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+a[c];c<20?d+=(i&o|~i&s)+1518500249:c<40?d+=(i^o^s)+1859775393:c<60?d+=(i&o|i&s|o&s)-1894007588:d+=(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),e.SHA1})},87792:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(52153))}(0,function(e){return!function(){var t=e,r=t.lib.WordArray,n=t.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),e.SHA224})},52153:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],l=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return(e-(0|e))*4294967296|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),l[i]=r(t.pow(n,1/3)),i++),n++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],d=r[6],h=r[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+y+c[p-16]}var v=s&u^~s&d,b=n&i^n&o^i&o,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+v+l[p]+c[p],S=_+b;h=d,d=u,u=s,s=a+w|0,a=o,o=i,i=n,n=w+S|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=t.floor(n/4294967296),r[(i+64>>>9<<4)+15]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),e.SHA256})},13327:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(64938))}(0,function(e){return!function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(var e=0;e<5;e++)for(var t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,s=0;s<24;s++){for(var d=0,h=0,p=0;p<7;
vendor: 4,161 bytes, line 1
1p++){if(1&o){var f=(1<<p)-1;f<32?h^=1<<f:d^=1<<f-32}128&o?o=o<<1^113:o<<=1}u[s]=a.create(d,h)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,a=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;var s=r[i];s.high^=a,s.low^=o}for(var h=0;h<24;h++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){var s=r[p+5*g];f^=s.high,m^=s.low}var y=d[p];y.high=f,y.low=m}for(var p=0;p<5;p++)for(var v=d[(p+4)%5],b=d[(p+1)%5],_=b.high,w=b.low,f=v.high^(_<<1|w>>>31),m=v.low^(w<<1|_>>>31),g=0;g<5;g++){var s=r[p+5*g];s.high^=f,s.low^=m}for(var S=1;S<25;S++){var f,m,s=r[S],k=s.high,x=s.low,E=l[S];E<32?(f=k<<E|x>>>32-E,m=x<<E|k>>>32-E):(f=x<<E-32|k>>>64-E,m=k<<E-32|x>>>64-E);var T=d[c[S]];T.high=f,T.low=m}var A=d[0],C=r[0];A.high=C.high,A.low=C.low;for(var p=0;p<5;p++)for(var g=0;g<5;g++){var S=p+5*g,s=r[S],P=d[S],I=d[(p+1)%5+5*g],O=d[(p+2)%5+5*g];s.high=P.high^~I.high&O.high,s.low=P.low^~I.low&O.low}var s=r[0],N=u[h];s.high^=N.high,s.low^=N.low}},_doFinalize:function(){var e=this._data,r=e.words;this._nDataBytes;var n=8*e.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,c.push(p),c.push(h)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3})},17460:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(64938),r(70034))}(0,function(e){return!function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384})},70034:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(64938))}(0,function(e){return!function(){var t=e,r=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1
1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],d=r[6],h=r[7],p=n.high,f=n.low,m=i.high,g=i.low,y=o.high,v=o.low,b=a.high,_=a.low,w=s.high,S=s.low,k=u.high,x=u.low,E=d.high,T=d.low,A=h.high,C=h.low,P=p,I=f,O=m,N=g,D=y,R=v,L=b,M=_,j=w,B=S,U=k,F=x,H=E,z=T,$=A,q=C,W=0;W<80;W++){var V,G,K=c[W];if(W<16)G=K.high=0|e[t+2*W],V=K.low=0|e[t+2*W+1];else{var Z=c[W-15],Y=Z.high,J=Z.low,X=(Y>>>1|J<<31)^(Y>>>8|J<<24)^Y>>>7,Q=(J>>>1|Y<<31)^(J>>>8|Y<<24)^(J>>>7|Y<<25),ee=c[W-2],et=ee.high,er=ee.low,en=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,ei=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),eo=c[W-7],ea=eo.high,es=eo.low,el=c[W-16],ec=el.high,eu=el.low;G=X+ea+((V=Q+es)>>>0<Q>>>0?1:0),V+=ei,G=G+en+(V>>>0<ei>>>0?1:0),V+=eu,G=G+ec+(V>>>0<eu>>>0?1:0),K.high=G,K.low=V}var ed=j&U^~j&H,eh=B&F^~B&z,ep=P&O^P&D^O&D,ef=I&N^I&R^N&R,em=(P>>>28|I<<4)^(P<<30|I>>>2)^(P<<25|I>>>7),eg=(I>>>28|P<<4)^(I<<30|P>>>2)^(I<<25|P>>>7),ey=(j>>>14|B<<18)^(j>>>18|B<<14)^(j<<23|B>>>9),ev=(B>>>14|j<<18)^(B>>>18|j<<14)^(B<<23|j>>>9),eb=l[W],e_=eb.high,ew=eb.low,eS=q+ev,ek=$+ey+(eS>>>0<q>>>0?1:0),eS=eS+eh,ek=ek+ed+(eS>>>0<eh>>>0?1:0),eS=eS+ew,ek=ek+e_+(eS>>>0<ew>>>0?1:0),eS=eS+V,ek=ek+G+(eS>>>0<V>>>0?1:0),ex=eg+ef,eE=em+ep+(ex>>>0<eg>>>0?1:0);$=H,q=z,H=U,z=F,U=j,F=B,j=L+ek+((B=M+eS|0)>>>0<M>>>0?1:0)|0,L=D,M=R,D=O,R=N,O=P,N=I,P=ek+eE+((I=eS+ex|0)>>>0<eS>>>0?1:0)|0}f=n.low=f+I,n.high=p+P+(f>>>0<I>>>0?1:0),g=i.low=g+N,i.high=m+O+(g>>>0<N>>>0?1:0),v=o.low=v+R,o.high=y+D+(v>>>0<R>>>0?1:0),_=a.low=_+M,a.high=b+L+(_>>>0<M>>>0?1:0),S=s.low=S+B,s.high=w+j+(S>>>0<B>>>0?1:0),x=u.low=x+F,u.high=k+U+(x>>>0<F>>>0?1:0),T=d.low=T+z,d.high=E+H+(T>>>0<z>>>0?1:0),C=h.low=C+q,h.high=A+$+(C>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+128>>>10<<5)+30]=Math.floor(r/4294967296),t[(n+128>>>10<<5)+31]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(u),t.HmacSHA512=r._createHmacHelper(u)}(),e.SHA512})},94253:function(e,t,r){!function(n,i,o){e.exports=t=i(r(78249),r(98269),r(68214),r(90888),r(75109))}(0,function(e){return!function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c
vendor: 7,629 bytes, line 1
1=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 415 bytes, line 1
1u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){for(var c=i[o]=[],u=l[o],r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;c[0]=c[0]<<1|c[0]>>>31;for(var r=1;r<7;r++)c[r]=c[r]>>>(r-1)*4+3;
1c[7]=c[7]<<5|c[7]>>>27}for(var d=this._invSubKeys=[],r=0;r<16;r++)d[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function p(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(d);var f=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(f)}(),e.TripleDES})},64938:function(e,t,r){!function(n,i){e.exports=t=i(r(78249))}(0,function(e){return!function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.x64={};o.Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=n.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}})}(),e})},89144:function(e,t,r){var n,i=void 0!==r.g?r.g:"undefined"!=typeof window?window:{},o=r(25893);"undefined"!=typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=n},58908:function(e,t,r){var n;"undefined"!=typeof window?n=window:void 0!==r.g?n=r.g:"undefined"!=typeof self?n=self:n={},e.exports=n},8679:function(e,t,r){"use strict";var n=r(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return n.isMemo(e)?s:l[e.$$typeof]||i}l[n.ForwardRef]=a,l[n.Memo]=s;var u=Object.defineProperty,d=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;function g(e,t,r){if("string"!=typeof t){if(m){var n=f(t);n&&n!==m&&g(e,n,r)}var i=d(t);h&&(i=i.concat(h(t)));for(var a=c(e),s=c(t),l=0;l<i.length;++l){var y=i[l];if(!o[y]&&!(r&&r[y])&&!(s&&s[y])&&!(a&&a[y])){var v=p(t,y);try{u(e,y,v)}catch(e){}}}}return e}e.exports=g},96103:function(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},21296:function(e,t,r){"use strict";e.exports=r(96103)},80645:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,h=r?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?5960464477539062e-23:0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+p]=255&a,p+=f,a/=256,c-=8);e[r+p-f]|=128*m}},41143:function(e){"use strict";
vendor: 21,642 bytes, line 1
1var t=function(e,t,r,n,i,o,a,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=t},78071:function(e,t,r){"use strict";var n;let i=r(79742),o=r(80645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=u,n=w,t.h2=50;let s=2147483647;function l(){try{let 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}}function c(e){if(e>s)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return d(e,t,r)}function d(e,t,r){if("string"==typeof e)return m(e,t);if(ArrayBuffer.isView(e))return y(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(es(e,ArrayBuffer)||e&&es(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(es(e,SharedArrayBuffer)||e&&es(e.buffer,SharedArrayBuffer)))return v(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);let i=b(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,r){return(h(e),e<=0)?c(e):void 0!==t?"string"==typeof r?c(e).fill(t,r):c(e).fill(t):c(e)}function f(e){return h(e),c(e<0?0:0|_(e))}function m(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|S(e,t),n=c(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function g(e){let t=e.length<0?0:0|_(e.length),r=c(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function y(e){if(es(e,Uint8Array)){let t=new Uint8Array(e);return v(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function v(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),u.prototype),n}function b(e){if(u.isBuffer(e)){let t=0|_(e.length),r=c(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||el(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function _(e){if(e>=s)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),u.alloc(+e)}function S(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||es(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return er(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return eo(e).length;default:if(i)return n?-1:er(e).length;t=(""+t).toLowerCase(),i=!0}}function k(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return N(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),el(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:T(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):T(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function T(e,t,r,n,i){let o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*a}else -1!==n&&(o-=o-n),n=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return -1}function A(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(el(n))break;e[r+i]=n}return i}function C(e,t,r,n){return ea(er(t,e.length-r),e,r,n)}function P(e,t,r,n){return ea(en(t),e,r,n)}function I(e,t,r,n){return ea(eo(t),e,r,n)}function O(e,t,r,n){return ea(ei(t,e.length-r),e,r,n)}function N(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return L(n)}n=2147483647,u.TYPED_ARRAY_SUPPORT=l(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return d(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return p(e,t,r)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(es(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),es(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.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}},u.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(es(t,Uint8Array))i+t.length>n.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(u.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},u.byteLength=S,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)x(this,t,t+1);return this},u.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},u.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},u.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?D(this,0,e):k.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(es(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<s;++e)if(l[e]!==c[e]){o=l[e],a=c[e];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return E(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return E(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":case"latin1":case"binary":return P(this,e,t,r);case"base64":return I(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let R=4096;function L(e){let t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=R));return r}function M(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function j(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=ec[e[n]];return i}function U(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function H(e,t,r,n,i,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function z(e,t,r,n,i){J(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function $(e,t,r,n,i){J(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function q(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function W(e,t,r,n,i){return t=+t,r>>>=0,i||q(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return t=+t,r>>>=0,i||q(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(e>>>=0,t||F(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),u.prototype.readBigInt64BE=eu(function(e){X(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;H(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;H(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=eu(function(e,t=0){return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=eu(function(e,t=0){return $(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);H(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);H(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||H(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=eu(function(e,t=0){return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=eu(function(e,t=0){return $(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,r){return W(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return W(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},u.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=u.isBuffer(e)?e:u.from(e,n),a=o.length;
1if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};let G={};function K(e,t,r){G[e]=class extends r{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 Z(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Y(e,t,r){X(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&Q(t,e.length-(r+1))}function J(e,t,r,n,i,o){if(e>r||e<t){let n;let i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new G.ERR_OUT_OF_RANGE("value",n,e)}Y(n,i,o)}function X(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,r){if(Math.floor(e)!==e)throw X(e,r),new G.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}K("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),K("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),K("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=Z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=Z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let ee=/[^+/0-9A-Za-z-_]/g;function et(e){if((e=(e=e.split("=")[0]).trim().replace(ee,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function er(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function en(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function ei(e,t){let r,n;let i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function eo(e){return i.toByteArray(et(e))}function ea(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function es(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function el(e){return e!=e}let ec=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function eu(e){return"undefined"==typeof BigInt?ed:e}function ed(){throw Error("BigInt not supported")}},48738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}e.exports=function(e){return null!=e&&(t(e)||r(e)||!!e._isBuffer)}},27376:function(e){e.exports=r;var t=Object.prototype.toString;function r(e){if(!e)return!1;var r=t.call(e);return"[object Function]"===r||"function"==typeof e&&"[object RegExp]"!==r||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},39593:function(e,t,r){"use strict";let n=r(34411),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1;class m{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||f;if(this[a]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,v(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEac
1h(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),v(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let n=r.next;w(this,e,r,t),r=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach(e=>this[c](e.key,e.value)),this[h]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map(e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[h].has(e)){if(s>this[i])return b(this,this[h].get(e)),!1;let a=this[h].get(e).value;return this[c]&&!this[u]&&this[c](e,a.value),a.now=n,a.maxAge=r,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),v(this),!0}let p=new _(e,t,s,n,r);return p.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=p.length,this[d].unshift(p),this[h].set(e,this[d].head),v(this),!0)}has(e){return!!this[h].has(e)&&!y(this,this[h].get(e).value)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){let e=this[d].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[h].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[h].forEach((e,t)=>g(this,t,!1))}}let g=(e,t,r)=>{let n=e[h].get(t);if(n){let t=n.value;if(y(e,t)){if(b(e,n),!e[s])return}else r&&(e[p]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},v=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){let r=t.prev;b(e,t),t=r}},b=(e,t)=>{if(t){let r=t.value;e[c]&&e[c](r.key,r.value),e[o]-=r.length,e[h].delete(r.key),e[d].removeNode(t)}};class _{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let w=(e,t,r,n)=>{let i=r.value;y(e,i)&&(b(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=m},2568:function(e,t,r){!function(){var t=r(71012),n=r(40487).utf8,i=r(48738),o=r(40487).bin,a=function(e,r){e.constructor==String?e=r&&"binary"===r.encoding?o.stringToBytes(e):n.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),l=8*e.length,c=1732584193,u=-271733879,d=-1732584194,h=271733878,p=0;p<s.length;p++)s[p]=(s[p]<<8|s[p]>>>24)&16711935|(s[p]<<24|s[p]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var f=a._ff,m=a._gg,g=a._hh,y=a._ii,p=0;p<s.length;p+=16){var v=c,b=u,_=d,w=h;c=f(c,u,d,h,s[p+0],7,-680876936),h=f(h,c,u,d,s[p+1],12,-389564586),d=f(d,h,c,u,s[p+2],17,606105819),u=f(u,d,h,c,s[p+3],22,-1044525330),c=f(c,u,d,h,s[p+4],7,-176418897),h=f(h,c,u,d,s[p+5],12,1200080426),d=f(d,h,c,u,s[p+6],17,-1473231341),u=f(u,d,h,c,s[p+7],22,-45705983),c=f(c,u,d,h,s[p+8],7,1770035416),h=f(h,c,u,d,s[p+9],12,-1958414417),d=f(d,h,c,u,s[p+10],17,-42063),u=f(u,d,h,c,s[p+11],22,-1990404162),c=f(c,u,d,h,s[p+12],7,1804603682),h=f(h,c,u,d,s[p+13],12,-40341101),d=f(d,h,c,u,s[p+14],17,-1502002290),u=f(u,d,h,c,s[p+15],22,1236535329),c=m(c,u,d,h,s[p+1],5,-165796510),h=m(h,c,u,d,s[p+6],9,-1069501632),d=m(d,h,c,u,s[p+11],14,643717713),u=m(u,d,h,c,s[p+0],20,-373897302),c=m(c,u,d,h,s[p+5],5,-701558691),h=m(h,c,u,d,s[p+10],9,38016083),d=m(d,h,c,u,s[p+15],14,-660478335),u=m(u,d,h,c,s[p+4],20,-405537848),c=m(c,u,d,h,s[p+9],5,568446438),h=m(h,c,u,d,s[p+14],9,-1019803690),d=m(d,h,c,u,s[p+3],14,-187363961),u=m(u,d,h,c,s[p+8],20,1163531501),c=m(c,u,d,h,s[p+13],5,-1444681467),h=m(h,c,u,d,s[p+2],9,-51403784),d=m(d,h,c,u,s[p+7],14,1735328473),u=m(u,d,h,c,s[p+12],20,-1926607734),c=g(c,u,d,h,s[p+5],4,-378558),h=g(h,c,u,d,s[p+8],11,-2022574463),d=g(d,h,c,u,s[p+11],16,1839030562),u=g(u,d,h,c,s[p+14],23,-35309556),c=g(c,u,d,h,s[p+1],4,-1530992060),h=g(h,c,u,d,s[p+4],11,1272893353),d=g(d,h,c,u,s[p+7],16,-155497632),u=g(u,d,h,c,s[p+10],23,-1094730640),c=g(c,u,d,h,s[p+13],4,681279174),h=g(h,c,u,d,s[p+0],11,-358537222),d=g(d,h,c,u,s[p+3],16,-722521979),u=g(u,d,h,c,s[p+6],23,76029189),c=g(c,u,d,h,s[p+9],4,-640364487),h=g(h,c,u,d,s[p+12],11,-421815835),d=g(d,h,c,u,s[p+15],16,530742520),u=g(u,d,h,c,s[p+2],23,-995338651),c=y(c,u,d,h,s[p+0],6,-198630844),h=y(h,c,u,d,s[p+7],10,1126891415),d=y(d,h,c,u,s[p+14],15,-1416354905),u=y(u,d,h,c,s[p+5],21,-57434055),c=y(c,u,d,h,s[p+12],6,1700485571),h=y(h,c,u,d,s[p+3],10,-1894986606),d=y(d,h,c,u,s[p+10],15,-1051523),u=y(u,d,h,c,s[p+1],21,-2054922799),c=y(c,u,d,h,s[p+8],6,1873313359),h=y(h,c,u,d,s[p+15],10,-30611744),d=y(d,h,c,u,s[p+6],15,-1560198380),u=y(u,d,h,c,s[p+13],21,1309151649),c=y(c,u,d,h,s[p+4],6,-145523070),h=y(h,c,u,d,s[p+11],10,-1120210379),d=y(d,h,c,u,s[p+2],15,718787259),u=y(u,d,h,c,s[p+9],21,-343485551),c=c+v>>>0,u=u+b>>>0,d=d+_>>>0,h=h+w>>>0}return t.endian([c,u,d,h])};a._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,r){if(null==e)throw Error("Illegal argument "+e);
1var n=t.wordsToBytes(a(e,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):t.bytesToHex(n)}}()},29548:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=p,t.apiBaseUrl=d,t.fetchData=c,t.now=h;var i=n(r(64687)),o=n(r(38416)),a=n(r(17156));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return u.apply(this,arguments)}function u(){return(u=(0,a.default)(i.default.mark(function e(t,r,n){var o,a,s,c,u,h,p,f,m,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=(o=g.length>3&&void 0!==g[3]?g[3]:{}).ctx,c=void 0===(s=o.req)?null==a?void 0:a.req:s,u="".concat(d(r),"/").concat(t),e.prev=2,p={headers:l({"Content-Type":"application/json"},null!=c&&null!==(h=c.headers)&&void 0!==h&&h.cookie?{cookie:c.headers.cookie}:{})},null!=c&&c.body&&(p.body=JSON.stringify(c.body),p.method="POST"),e.next=7,fetch(u,p);case 7:return f=e.sent,e.next=10,f.json();case 10:if(m=e.sent,f.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),n.error("CLIENT_FETCH_ERROR",{error:e.t0,url:u}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function d(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function h(){return Math.floor(Date.now()/1e3)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var r=function(r){if(r.key===e){var n,i=JSON.parse(null!==(n=r.newValue)&&void 0!==n?n:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&t(i)}};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(l(l({},t),{},{timestamp:h()})))}catch(e){}}}}},36925:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=C,t.capitalize=T,t.eventsErrorHandler=A,t.upperSnake=E;var i=n(r(64687)),o=n(r(17156)),a=n(r(66115)),s=n(r(38416)),l=n(r(56690)),c=n(r(89728)),u=n(r(61655)),d=n(r(94993)),h=n(r(73808));function p(e){var t=f();return function(){var r,n=(0,h.default)(e);return r=t?Reflect.construct(n,arguments,(0,h.default)(this).constructor):n.apply(this,arguments),(0,d.default)(this,r)}}function f(){if("undefined"==typeof Reflect||!Reflect.construct||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}}var m=function(e){(0,u.default)(r,e);var t=p(r);function r(e){var n,i;return(0,l.default)(this,r),(i=t.call(this,null!==(n=null==e?void 0:e.message)&&void 0!==n?n:e)).name="UnknownError",i.code=e.code,e instanceof Error&&(i.stack=e.stack),i}return(0,c.default)(r,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),r}((0,n(r(33496)).default)(Error));t.UnknownError=m;var g=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","OAuthCallbackError"),e}return(0,c.default)(r)}(m);t.OAuthCallbackError=g;var y=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","AccountNotLinkedError"),e}return(0,c.default)(r)}(m);t.AccountNotLinkedError=y;var v=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","MissingAPIRouteError"),(0,s.default)((0,a.default)(e),"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,c.default)(r)}(m);t.MissingAPIRoute=v;var b=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","MissingSecretError"),(0,s.default)((0,a.default)(e),"code","NO_SECRET"),e}return(0,c.default)(r)}(m);t.MissingSecret=b;var _=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","MissingAuthorizeError"),(0,s.default)((0,a.default)(e),"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,c.default)(r)}(m);t.MissingAuthorize=_;var w=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","MissingAdapterError"),(0,s.default)((0,a.default)(e),"code","
1EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,c.default)(r)}(m);t.MissingAdapter=w;var S=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","MissingAdapterMethodsError"),(0,s.default)((0,a.default)(e),"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,c.default)(r)}(m);t.MissingAdapterMethods=S;var k=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","UnsupportedStrategyError"),(0,s.default)((0,a.default)(e),"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,c.default)(r)}(m);t.UnsupportedStrategy=k;var x=function(e){(0,u.default)(r,e);var t=p(r);function r(){var e;(0,l.default)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,s.default)((0,a.default)(e),"name","InvalidCallbackUrl"),(0,s.default)((0,a.default)(e),"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,c.default)(r)}(m);function E(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function T(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function A(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,a=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=e[n],r.next=4,o.apply(void 0,a);case 4:return r.abrupt("return",r.sent);case 7:r.prev=7,r.t0=r.catch(0),t.error("".concat(E(n),"_EVENT_ERROR"),r.t0);case 10:case"end":return r.stop()}},r,null,[[0,7]])})),r},{})}function C(e,t){if(e)return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,a,s,l,c,u=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,a=Array(o=u.length),s=0;s<o;s++)a[s]=u[s];return t.debug("adapter_".concat(n),{args:a}),l=e[n],r.next=6,l.apply(void 0,a);case 6:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(0),t.error("adapter_error_".concat(n),r.t0),(c=new m(r.t0)).name="".concat(T(n),"Error"),c;case 15:case"end":return r.stop()}},r,null,[[0,9]])})),r},{})}t.InvalidCallbackUrl=x},35149:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.AuthHandler=g;var i=p(r(26553)),o=r(52553),a=p(r(43370)),s=n(r(79786)),l=r(8625),c=r(88893),u=r(46140),d=r(76489);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function f(e){try{return await e.json()}catch(e){}}async function m(e){var t,r,n,i;if(e instanceof Request){let t=new URL(e.url),a=t.pathname.split("/").slice(3),s=Object.fromEntries(e.headers),l=Object.fromEntries(t.searchParams);return l.nextauth=a,{action:a[0],method:e.method,headers:s,body:await f(e),cookies:(0,d.parse)(null!==(r=e.headers.get("cookie"))&&void 0!==r?r:""),providerId:a[1],error:null!==(n=t.searchParams.get("error"))&&void 0!==n?n:a[1],origin:(0,o.detectOrigin)(null!==(i=s["x-forwarded-host"])&&void 0!==i?i:s.host,s["x-forwarded-proto"]),query:l}}let{headers:a}=e,s=null!==(t=null==a?void 0:a["x-forwarded-host"])&&void 0!==t?t:null==a?void 0:a.host;return e.origin=(0,o.detectOrigin)(s,null==a?void 0:a["x-forwarded-proto"]),e}async function g(e){var t,r,n,o,d,h,p,f;let{options:g,req:y}=e,v=await m(y);(0,i.setLogger)(g.logger,g.debug);let b=(0,c.assertConfig)({options:g,req:v});if(Array.isArray(b))b.forEach(i.default.warn);else if(b instanceof Error){if(i.default.error(b.code,b),!["signin","signout","error","verify-request"].includes(v.action)||"GET"!==v.method)return{status:500,headers:[{key:"Content-Type",value:"application/json"}],body:{message:"There is a problem with the server configuration. Check the server logs for more information."}};let{pages:e,theme:t}=g,r=(null==e?void 0:e.error)&&(null===(d=v.query)||void 0===d?void 0:null===(h=d.callbackUrl)||void 0===h?void 0:h.startsWith(e.error));return!(null!=e&&e.error)||r?(r&&i.default.error("AUTH_ON_ERROR_PAGE_ERROR",Error(`The error page ${null==e?void 0:e.error} should not require authentication`)),(0,s.default)({theme:t}).error({error:"configuration"})):{redirect:`${e.error}?error=Configuration`}}let{action:_,providerId:w,error:S,method:k="GET"}=v,{options:x,cookies:E}=await (0,l.init)({authOptions:g,action:_,providerId:w,origin:v.origin,callbackUrl:null!==(t=null===(r=v.body)||void 0===r?void 0:r.callbackUrl)&&void 0!==t?t:null===(n=v.query)||void 0===n?void 0:n.callbackUrl,csrfToken:null===(o=v.body)||void 0===o?void 0:o.csrfToken,cookies:v.cookies,isPost:"POST"===k}),T=new u.SessionStore(x.cookies.sessionToken,v,x.logger);if("GET"===k){let e=(0,s.default)({...x,query:v.query,cookies:E}),{pages:t}=x;switch(_){case"providers":return await a.providers(x.providers);case"session":{let e=await a.session({options:x,sessionStore:T});return e.cookies&&E.push(...e.cookies),{...e,cookies:E}}case"csrf":return{headers:[{key:"Content-Type",value:"application/json"}],body:{csrfToken:x.csrfToken},cookies:E};case"signin":if(t.signIn){let e=`${t.signIn}${t.signIn.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(x.callbackUrl)}`;return S&&(e=`${e}&error=${encodeURIComponent(S)}`),{redirect:e,cookies:E}}return e.signin();case"signout":if(t.signOut)return{redirect:t.signOut,cookies:E};return e.signout();case"callback":if(x.provider){let e=await a.callback({body:v.body,query:v.query,headers:v.headers,cookies:v.cookies,method:k,options:x,sessionStore:T});return e.cookies&&E.push(...e.cookies),{...e,cookies:E}}break;case"verify-request":if(t.verifyRequest)return{redirect:t.verifyRequest,cookies:E};return e.verifyRequest();case"error":if(["Signin","OAuthSignin","OAuthCallback","OAuthCreateAccount","EmailCreateAccount","Callback","OAuthAccountNotLinked","EmailSignin","CredentialsSignin","SessionRequired"].includes(S))return{redirect:`${x.url}/signin?error=${S}`,cookies:E};if(t.error)return{redirect:`${t.error}${t.error.includes("?")?"&":"?"}error=${S}`,cookies:E};return e.error({error:S})}}else if("POST"===k)switch(_){case"signin":if(x.csrfTokenVerified&&x.provider){let e=await a.signin({query:v.query,body:v.body,options:x});return e.cookies&&E.push(...e.cookies),{...e,cookies:E}}return{redirect:`${x.url}/signin?csrf=true`,cookies:E};case"signout":if(x.csrfTokenVerified){let e=await a.signout({options:x,sessionStore:T});return e.cookies&&E.push(...e.cookies),{...e,cookies:E}}return{redirect:`${x.url}/signout?csrf=true`,cookies:E};case"callback":if(x.provider){if("credentials"===x.provider.type&&!x.csrfTokenVerified)return{redirect:`${x.url}/signin?csrf=true`,cookies:E};let e=await a.callback({body:v.body,query:v.query,headers:v.headers,cookies:v.cookies,method:k,options:x,sessionStore:T});return e.cookies&&E.push(...e.cookies),{...e,cookies:E}}break;case"_log":if(g.logger)try{let{code:e,level:t,...r}=null!==(p=v.body)&&void 0!==p?p:{};i.default[t](e,r)}catch(e){i.default.error("LOGGER_ERROR",e)}return{};case"session":if(x.csrfTokenVerified){let e=await a.session({options:x,sessionStore:T,newSession:null===(f=v.body)||void 0===f?void 0:f.data,isUpdate:!0});return e.cookies&&E.push(...e.cookies),{...e,cookies:E}}return{status:400,body:{},cookies:E}}return{status:400,body:`Error: This action with HTTP ${k} is not supported by NextAuth.js`}}},8625:function(e,t,r){"use strict";var n=r(64836);
1Object.defineProperty(t,"__esModule",{value:!0}),t.init=y;var i=r(42474),o=n(r(26553)),a=r(36925),s=n(r(34443)),l=r(15261),c=g(r(46140)),u=g(r(82260)),d=r(8244),h=r(53443),p=r(75289),f=n(r(30762));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function y({authOptions:e,providerId:t,action:r,origin:n,cookies:m,callbackUrl:g,csrfToken:y,isPost:v}){var b,_;let w=(0,f.default)(n),S=(0,l.createSecret)({authOptions:e,url:w}),{providers:k,provider:x}=(0,s.default)({providers:e.providers,url:w,providerId:t}),E=2592e3,T={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...e,url:w,action:r,provider:x,cookies:{...c.defaultCookies(null!==(b=e.useSecureCookies)&&void 0!==b?b:w.base.startsWith("https://")),...e.cookies},secret:S,providers:k,session:{strategy:e.adapter?"database":"jwt",maxAge:E,updateAge:86400,generateSessionToken:()=>{var e;return null!==(e=null===i.randomUUID||void 0===i.randomUUID?void 0:(0,i.randomUUID)())&&void 0!==e?e:(0,i.randomBytes)(32).toString("hex")},...e.session},jwt:{secret:S,maxAge:E,encode:u.encode,decode:u.decode,...e.jwt},events:(0,a.eventsErrorHandler)(null!==(_=e.events)&&void 0!==_?_:{},o.default),adapter:(0,a.adapterErrorHandler)(e.adapter,o.default),callbacks:{...d.defaultCallbacks,...e.callbacks},logger:o.default,callbackUrl:w.origin},A=[],{csrfToken:C,cookie:P,csrfTokenVerified:I}=(0,h.createCSRFToken)({options:T,cookieValue:null==m?void 0:m[T.cookies.csrfToken.name],isPost:v,bodyValue:y});T.csrfToken=C,T.csrfTokenVerified=I,P&&A.push({name:T.cookies.csrfToken.name,value:P,options:T.cookies.csrfToken.options});let{callbackUrl:O,callbackUrlCookie:N}=await (0,p.createCallbackUrl)({options:T,cookieValue:null==m?void 0:m[T.cookies.callbackUrl.name],paramValue:g});return T.callbackUrl=O,N&&A.push({name:T.cookies.callbackUrl.name,value:N,options:T.cookies.callbackUrl.options}),{options:T,cookies:A}}},88893:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.assertConfig=c;var i=r(36925),o=n(r(30762)),a=r(46140);let s=!1;function l(e,t){try{return/^https?:/.test(new URL(e,e.startsWith("/")?t:void 0).protocol)}catch(e){return!1}}function c(e){var t,r,n,c,u,d,h,p;let f,m,g;let{options:y,req:v}=e,b=[];if(!s&&(v.origin||b.push("NEXTAUTH_URL"),y.secret,y.debug&&b.push("DEBUG_ENABLED")),!y.secret)return new i.MissingSecret("Please define a `secret` in production.");if(!(null!==(t=v.query)&&void 0!==t&&t.nextauth)&&!v.action)return new i.MissingAPIRoute("Cannot find [...nextauth].{js,ts} in `/pages/api/auth`. Make sure the filename is written correctly.");let _=null===(r=v.query)||void 0===r?void 0:r.callbackUrl,w=(0,o.default)(v.origin);if(_&&!l(_,w.base))return new i.InvalidCallbackUrl(`Invalid callback URL. Received: ${_}`);let{callbackUrl:S}=(0,a.defaultCookies)(null!==(n=y.useSecureCookies)&&void 0!==n?n:w.base.startsWith("https://")),k=null===(c=v.cookies)||void 0===c?void 0:c[null!==(u=null===(d=y.cookies)||void 0===d?void 0:null===(h=d.callbackUrl)||void 0===h?void 0:h.name)&&void 0!==u?u:S.name];if(k&&!l(k,w.base))return new i.InvalidCallbackUrl(`Invalid callback URL. Received: ${k}`);for(let e of y.providers)"credentials"===e.type?f=!0:"email"===e.type?m=!0:"twitter"===e.id&&"2.0"===e.version&&(g=!0);if(f){let e=(null===(p=y.session)||void 0===p?void 0:p.strategy)==="database",t=!y.providers.some(e=>
1"credentials"!==e.type);if(e&&t)return new i.UnsupportedStrategy("Signin in with credentials only supported if JWT strategy is enabled");if(y.providers.some(e=>"credentials"===e.type&&!e.authorize))return new i.MissingAuthorize("Must define an authorize() handler to use credentials authentication provider")}if(m){let{adapter:e}=y;if(!e)return new i.MissingAdapter("E-mail login requires an adapter.");let t=["createVerificationToken","useVerificationToken","getUserByEmail"].filter(t=>!e[t]);if(t.length)return new i.MissingAdapterMethods(`Required adapter methods were missing: ${t.join(", ")}`)}return s||(g&&b.push("TWITTER_OAUTH_2_BETA"),s=!0),b}},98385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(36925),i=r(15261);async function o(e){var t,r,o,a,s,l;let{sessionToken:c,profile:u,account:d,options:h}=e;if(!(null!=d&&d.providerAccountId)||!d.type)throw Error("Missing or invalid provider account");if(!["email","oauth"].includes(d.type))throw Error("Provider not supported");let{adapter:p,jwt:f,events:m,session:{strategy:g,generateSessionToken:y}}=h;if(!p)return{user:u,account:d};let v=u,{createUser:b,updateUser:_,getUser:w,getUserByAccount:S,getUserByEmail:k,linkAccount:x,createSession:E,getSessionAndUser:T,deleteSession:A}=p,C=null,P=null,I=!1,O="jwt"===g;if(c){if(O)try{(C=await f.decode({...f,token:c}))&&"sub"in C&&C.sub&&(P=await w(C.sub))}catch(e){}else{let e=await T(c);e&&(C=e.session,P=e.user)}}if("email"===d.type){let e=await k(v.email);if(e)(null===(t=P)||void 0===t?void 0:t.id)!==e.id&&!O&&c&&await A(c),P=await _({id:e.id,emailVerified:new Date}),await (null===(r=m.updateUser)||void 0===r?void 0:r.call(m,{user:P}));else{let{id:e,...t}={...v,emailVerified:new Date};P=await b(t),await (null===(o=m.createUser)||void 0===o?void 0:o.call(m,{user:P})),I=!0}
1return{session:C=O?{}:await E({sessionToken:await y(),userId:P.id,expires:(0,i.fromDate)(h.session.maxAge)}),user:P,isNewUser:I}}if("oauth"===d.type){let e=await S({providerAccountId:d.providerAccountId,provider:d.provider});if(e){if(P){if(e.id===P.id)return{session:C,user:P,isNewUser:I};throw new n.AccountNotLinkedError("The account is already associated with another user")}return{session:C=O?{}:await E({sessionToken:await y(),userId:e.id,expires:(0,i.fromDate)(h.session.maxAge)}),user:e,isNewUser:I}}{if(P)return await x({...d,userId:P.id}),await (null===(l=m.linkAccount)||void 0===l?void 0:l.call(m,{user:P,account:d,profile:v})),{session:C,user:P,isNewUser:I};let e=v.email?await k(v.email):null;if(e){let t=h.provider;if(null!=t&&t.allowDangerousEmailAccountLinking)P=e;else throw new n.AccountNotLinkedError("Another account already exists with the same e-mail address")}else{let{id:e,...t}={...v,emailVerified:null};P=await b(t)}return await (null===(a=m.createUser)||void 0===a?void 0:a.call(m,{user:P})),await x({...d,userId:P.id}),await (null===(s=m.linkAccount)||void 0===s?void 0:s.call(m,{user:P,account:d,profile:v})),{session:C=O?{}:await E({sessionToken:await y(),userId:P.id,expires:(0,i.fromDate)(h.session.maxAge)}),user:P,isNewUser:!0}}}throw Error("Unsupported account type")}},75289:function(e,t){"use strict";async function r({options:e,paramValue:t,cookieValue:r}){let{url:n,callbacks:i}=e,o=n.origin;return t?o=await i.redirect({url:t,baseUrl:n.origin}):r&&(o=await i.redirect({url:r,baseUrl:n.origin})),{callbackUrl:o,callbackUrlCookie:o!==r?o:void 0}}Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackUrl=r},46140:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStore=void 0,t.defaultCookies=p;var i=n(r(50468)),o=n(r(65661));function a(e,t){l(e,t),t.add(e)}function s(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}let u=4096,d=163,h=3933;function p(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}}}}var f=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakSet,v=new WeakSet;class b{constructor(e,t,r){a(this,v),a(this,y),s(this,f,{writable:!0,value:{}}),s(this,m,{writable:!0,value:void 0}),s(this,g,{writable:!0,value:void 0}),(0,o.default)(this,g,r),(0,o.default)(this,m,e);let{cookies:n}=t,{name:l}=e;if("function"==typeof(null==n?void 0:n.getAll))for(let{name:e,value:t}of n.getAll())e.startsWith(l)&&((0,i.default)(this,f)[e]=t);else if(n instanceof Map)for(let e of n.keys())e.startsWith(l)&&((0,i.default)(this,f)[e]=n.get(e));else for(let e in n)e.startsWith(l)&&((0,i.default)(this,f)[e]=n[e])}get value(){return Object.keys((0,i.default)(this,f)).sort((e,t)=>{var r,n;return parseInt(null!==(r=e.split(".").pop())&&void 0!==r?r:"0")-parseInt(null!==(n=t.split(".").pop())&&void 0!==n?n:"0")}).map(e=>(0,i.default)(this,f)[e]).join("")}chunk(e,t){let r=c(this,v,w).call(this);for(let n of c(this,y,_).call(this,{name:(0,i.default)(this,m).name,value:e,options:{...(0,i.default)(this,m).options,...t}}))r[n.name]=n;return Object.values(r)}clean(){return Object.values(c(this,v,w).call(this))}}function _(e){let t=Math.ceil(e.value.length/h);if(1===t)return(0,i.default)(this,f)[e.name]=e.value,[e];let r=[];for(let n=0;n<t;n++){let t=`${e.name}.${n}`,o=e.value.substr(n*h,h);r.push({...e,name:t,value:o}),(0,i.default)(this,f)[t]=o}return(0,i.default)(this,g).debug("CHUNKING_SESSION_COOKIE",{message:`Session cookie exceeds allowed ${u} bytes.`,emptyCookieSize:d,valueSize:e.value.length,chunks:r.map(e=>e.value.length+d)}),r}function w(){let e={};for(let r in(0,i.default)(this,f)){var t;null===(t=(0,i.default)(this,f))||void 0===t||delete t[r],e[r]={name:r,value:"",options:{...(0,i.default)(this,m).options,maxAge:0}}}return e}t.SessionStore=b},53443:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.createCSRFToken=i;var n=r(42474);function i({options:e,cookieValue:t,isPost:r,bodyValue:i}){if(t){let[o,a]=t.split("|");if(a===(0,n.createHash)("sha256").update(`${o}${e.secret}`).digest("hex"))return{csrfTokenVerified:r&&o===i,csrfToken:o}}let o=(0,n.randomBytes)(32).toString("hex"),a=(0,n.createHash)("sha256").update(`${o}${e.secret}`).digest("hex");return{cookie:`${o}|${a}`,csrfToken:o}}},8244:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCallbacks=void 0;let r={signIn:()=>!0,redirect:({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:t,session:({session:e})=>e,jwt:({token:e})=>e};t.defaultCallbacks=r},33442:function(e,t){"use strict";async function r({email:e,adapter:t}){let{getUserByEmail:r}=t;return(e?await r(e):null)||{id:e,email:e,emailVerified:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},49521:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(42474),i=r(15261);async function o(e,t){var r,o,a,s;let{url:l,adapter:c,provider:u,callbackUrl:d,theme:h}=t,p=null!==(r=await (null===(o=u.generateVerificationToken)||void 0===o?void 0:o.call(u)))&&void 0!==r?r:(0,n.randomBytes)(32).toString("hex"),f=86400,m=new Date(Date.now()+(null!==(a=u.maxAge)&&void 0!==a?a:f)*1e3),g=new URLSearchParams({callbackUrl:d,token:p,email:e}),y=`${l}/callback/${u.id}?${g}`;return await Promise.all([u.sendVerificationRequest({identifier:e,token:p,expires:m,url:y,provider:u,theme:h}),null===(s=c.createVerificationToken)||void 0===s?void 0:s.call(c,{identifier:e,token:(0,i.hashToken)(p,t),expires:m})]),`${l}/verify-request?${new URLSearchParams({provider:u.id,type:u.type})}`}},25680:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(8532),i=r(44950),o=s(r(98977));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function l({options:e,query:t}){var r,a,s;let{logger:l,provider:c}=e,u={};if("string"==typeof c.authorization){let e=Object.fromEntries(new URL(c.authorization).searchParams);u={...u,...e}}else u={...u,...null===(a=c.authorization)||void 0===a?void 0:a.params};if(u={...u,...t},null!==(r=c.version)&&void 0!==r&&r.startsWith("1.")){let t=(0,i.oAuth1Client)(e),r=await t.getOAuthRequestToken(u),n=`${null===(s=c.authorization)||void 0===s?void 0:s.url}?${new URLSearchParams({oauth_token:r.oauth_token,oauth_token_secret:r.oauth_token_secret,...r.params})}`;return i.oAuth1TokenStore.set(r.oauth_token,r.oauth_token_secret),l.debug("GET_AUTHORIZATION_URL",{url:n,provider:c}),{redirect:n}}let d=await (0,n.openidClient)(e),h=u,p=[];await o.state.create(e,p,h),await o.pkce.create(e,p,h),await o.nonce.create(e,p,h);let f=d.authorizationUrl(h);return l.debug("GET_AUTHORIZATION_URL",{url:f,cookies:p,provider:c}),{redirect:f,cookies:p}}},97488:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(1831),i=r(8532),o=r(44950),a=c(r(98977)),s=r(36925);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function u(e){var t,r,l,c,u,h;let{options:p,query:f,body:m,method:g,cookies:y}=e,{logger:v,provider:b}=p,_=null!==(t=null==m?void 0:m.error)&&void 0!==t?t:null==f?void 0:f.error;if(_){let e=Error(_);throw v.error("OAUTH_CALLBACK_HANDLER_ERROR",{error:e,error_description:null==f?void 0:f.error_description,providerId:b.id}),v.debug("OAUTH_CALLBACK_HANDLER_ERROR",{body:m}),e}if(null!==(r=b.version)&&void 0!==r&&r.startsWith("1."))try{let e=await (0,o.oAuth1Client)(p),{oauth_token:t,oauth_verifier:r}=null!=f?f:{},n=await e.getOAuthAccessToken(t,o.oAuth1TokenStore.get(t),r),i=await e.get(b.profileUrl,n.oauth_token,n.oauth_token_secret);return"string"==typeof i&&(i=JSON.parse(i)),{...await d({profile:i,tokens:n,provider:b,logger:v}),cookies:[]}}catch(e){throw v.error("OAUTH_V1_GET_ACCESS_TOKEN_ERROR",e),e}null!=f&&f.oauth_token&&o.oAuth1TokenStore.delete(f.oauth_token);try{let e,t;let r=await (0,i.openidClient)(p),o={},s=[];await a.state.use(y,s,p,o),await a.pkce.use(y,s,p,o),await a.nonce.use(y,s,p,o);let _={...r.callbackParams({url:`http://n?${new URLSearchParams(f)}`,body:m,method:g}),...null===(l=b.token)||void 0===l?void 0:l.params};if(null!==(c=b.token)&&void 0!==c&&c.request){let t=await b.token.request({provider:b,params:_,checks:o,client:r});e=new n.TokenSet(t.tokens)}else e=b.idToken?await r.callback(b.callbackUrl,_,o):await r.oauthCallback(b.callbackUrl,_,o);return Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),t=null!==(u=b.userinfo)&&void 0!==u&&u.request?await b.userinfo.request({provider:b,tokens:e,client:r}):b.idToken?e.claims():await r.userinfo(e,{params:null===(h=b.userinfo)||void 0===h?void 0:h.params}),{...await d({profile:t,provider:b,tokens:e,logger:v}),cookies:s}}catch(e){throw new s.OAuthCallbackError(e)}}async function d({profile:e,tokens:t,provider:r,logger:n}){try{var i;n.debug("PROFILE_DATA",{OAuthProfile:e});let o=await r.profile(e,t);if(o.email=null===(i=o.email)||void 0===i?void 0:i.toLowerCase(),!o.id)throw TypeError(`Profile id is missing in ${r.name} OAuth profile response`);return{profile:o,account:{provider:r.id,type:r.type,providerAccountId:o.id.toString(),...t},OAuthProfile:e}}catch(t){n.error("OAUTH_PARSE_PROFILE_ERROR",{error:t,OAuthProfile:e})}}},98977:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.pkce=t.nonce=t.PKCE_CODE_CHALLENGE_METHOD=void 0,t.signCookie=s,t.state=void 0;var n=r(1831),i=a(r(82260));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}async function s(e,t,r,n){let{cookies:o,logger:a}=n;a.debug(`CREATE_${e.toUpperCase()}`,{value:t,maxAge:r});let{name:s}=o[e],l=new Date;return l.setTime(l.getTime()+1e3*r),{name:s,value:await i.encode({...n.jwt,maxAge:r,token:{value:t},salt:s}),options:{...o[e].options,expires:l}}}let l=900,c="S256";t.PKCE_CODE_CHALLENGE_METHOD=c;let u={async create(e,t,r){var i,o,a;if(!(null!==(i=e.provider)&&void 0!==i&&null!==(o=i.checks)&&void 0!==o&&o.includes("pkce")))return;let u=n.generators.codeVerifier(),d=n.generators.codeChallenge(u);r.code_challenge=d,r.code_challenge_method=c;let h=null!==(a=e.cookies.pkceCodeVerifier.options.maxAge)&&void 0!==a?a:l;t.push(await s("pkceCodeVerifier",u,h,e))},async use(e,t,r,n){var o,a;if(!(null!==(o=r.provider)&&void 0!==o&&null!==(a=o.checks)&&void 0!==a&&a.includes("pkce")))return;let s=null==e?void 0:e[r.cookies.pkceCodeVerifier.name];if(!s)throw TypeError("PKCE code_verifier cookie was missing.");let{name:l}=r.cookies.pkceCodeVerifier,c=await i.decode({...r.jwt,token:s,salt:l});if(!(null!=c&&c.value))throw TypeError("PKCE code_verifier value could not be parsed.");t.push({name:l,value:"",options:{...r.cookies.pkceCodeVerifier.options,maxAge:0}}),n.code_verifier=c.value}};t.pkce=u;let d=900,h={async create(e,t,r){var i,o;if(!(null!==(i=e.provider.checks)&&void 0!==i&&i.includes("state")))return;let a=n.generators.state();r.state=a;let l=null!==(o=e.cookies.state.options.maxAge)&&void 0!==o?o:d;t.push(await s("state",a,l,e))},async use(e,t,r,n){var o;if(!(null!==(o=r.provider.checks)&&void 0!==o&&o.includes("state")))return;let a=null==e?void 0:e[r.cookies.state.name];if(!a)throw TypeError("State cookie was missing.");let{name:s}=r.cookies.state,l=await i.decode({...r.jwt,token:a,salt:s});if(!(null!=l&&l.value))throw TypeError("State value could not be parsed.");t.push({name:s,value:"",options:{...r.cookies.state.options,maxAge:0}}),n.state=l.value}};t.state=h;let p=900,f={async create(e,t,r){var i,o;if(!(null!==(i=e.provider.checks)&&void 0!==i&&i.includes("nonce")))return;let a=n.generators.nonce();r.nonce=a;let l=null!==(o=e.cookies.nonce.options.maxAge)&&void 0!==o?o:p;t.push(await s("nonce",a,l,e))},async use(e,t,r,n){var o,a;if(!(null!==(o=r.provider)&&void 0!==o&&null!==(a=o.checks)&&void 0!==a&&a.includes("nonce")))return;let s=null==e?void 0:e[r.cookies.nonce.name];if(!s)throw TypeError("Nonce cookie was missing.");let{name:l}=r.cookies.nonce,c=await i.decode({...r.jwt,token:s,salt:l});if(!(null!=c&&c.value))throw TypeError("Nonce value could not be parsed.");t.push({name:l,value:"",options:{...r.cookies.nonce.options,maxAge:0}}),n.nonce=c.value}};t.nonce=f},44950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oAuth1Client=i,t.oAuth1TokenStore=void 0;var n=r(79169);function i(e){var t,r;let i=e.provider,o=new n.OAuth(i.requestTokenUrl,i.accessTokenUrl,i.clientId,i.clientSecret,null!==(t=i.version)&&void 0!==t?t:"1.0",i.callbackUrl,null!==(r=i.encoding)&&void 0!==r?r:"HMAC-SHA1"),a=o.get.bind(o);o.get=async(...e)=>await new Promise((t,r)=>{a(...e,(e,n)=>{if(e)return r(e);t(n)})});let s=o.getOAuthAccessToken.bind(o);o.getOAuthAccessToken=async(...e)=>await new Promise((t,r)=>{s(...e,(e,n,i)=>{if(e)return r(e);t({oauth_token:n,oauth_token_secret:i})})});let l=o.getOAuthRequestToken.bind(o);return o.getOAuthRequestToken=async(e={})=>await new Promise((t,r)=>{l(e,(e,n,i,o)=>
1{if(e)return r(e);t({oauth_token:n,oauth_token_secret:i,params:o})})}),o}let o=new Map;t.oAuth1TokenStore=o},8532:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openidClient=i;var n=r(1831);async function i(e){let t;let r=e.provider;if(r.httpOptions&&n.custom.setHttpOptionsDefaults(r.httpOptions),r.wellKnown)t=await n.Issuer.discover(r.wellKnown);else{var i,o,a;t=new n.Issuer({issuer:r.issuer,authorization_endpoint:null===(i=r.authorization)||void 0===i?void 0:i.url,token_endpoint:null===(o=r.token)||void 0===o?void 0:o.url,userinfo_endpoint:null===(a=r.userinfo)||void 0===a?void 0:a.url,jwks_uri:r.jwks_endpoint})}let s=new t.Client({client_id:r.clientId,client_secret:r.clientSecret,redirect_uris:[r.callbackUrl],...r.client},r.jwks);return s[n.custom.clock_tolerance]=10,s}},34443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(94848);function i(e){let{url:t,providerId:r}=e,i=e.providers.map(({options:e,...r})=>{var i,a;if("oauth"===r.type){let i=o(r),s=o(e,!0),l=null!==(a=null==s?void 0:s.id)&&void 0!==a?a:r.id;return(0,n.merge)(i,{...s,signinUrl:`${t}/signin/${l}`,callbackUrl:`${t}/callback/${l}`})}let s=null!==(i=null==e?void 0:e.id)&&void 0!==i?i:r.id;return(0,n.merge)(r,{...e,signinUrl:`${t}/signin/${s}`,callbackUrl:`${t}/callback/${s}`})});return{providers:i,provider:i.find(({id:e})=>e===r)}}function o(e,t=!1){var r,n,i,o,a,s,l;if(!e)return;let c=Object.entries(e).reduce((e,[t,r])=>{if(["authorization","token","userinfo"].includes(t)&&"string"==typeof r){var n;let i=new URL(r);e[t]={url:`${i.origin}${i.pathname}`,params:Object.fromEntries(null!==(n=i.searchParams)&&void 0!==n?n:[])}}else e[t]=r;return e},{});return t||null!==(r=c.version)&&void 0!==r&&r.startsWith("1.")||(c.idToken=!!(null!==(n=null!==(i=c.idToken)&&void 0!==i?i:null===(o=c.wellKnown)||void 0===o?void 0:o.includes("openid-configuration"))&&void 0!==n?n:null===(a=c.authorization)||void 0===a?void 0:null===(s=a.params)||void 0===s?void 0:null===(l=s.scope)||void 0===l?void 0:l.includes("openid")),c.checks||(c.checks=["state"])),c}},15261:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSecret=a,t.fromDate=i,t.hashToken=o;var n=r(42474);function i(e,t=Date.now()){return new Date(t+1e3*e)}function o(e,t){var r;let{provider:i,secret:o}=t;return(0,n.createHash)("sha256").update(`${e}${null!==(r=i.secret)&&void 0!==r?r:o}`).digest("hex")}function a(e){var t;let{authOptions:r,url:i}=e;return null!==(t=r.secret)&&void 0!==t?t:(0,n.createHash)("sha256").update(JSON.stringify({...i,...r})).digest("hex")}},35131:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(6400);function i(e){var t;let{url:r,error:i="default",theme:o}=e,a=`${r}/signin`,s={default:{status:200,heading:"Error",message:(0,n.h)("p",null,(0,n.h)("a",{className:"site",href:null==r?void 0:r.origin},null==r?void 0:r.host))},configuration:{status:500,heading:"Server error",message:(0,n.h)("div",null,(0,n.h)("p",null,"There is a problem with the server configuration."),(0,n.h)("p",null,"Check the server logs for more information."))},accessdenied:{status:403,heading:"Access Denied",message:(0,n.h)("div",null,(0,n.h)("p",null,"You do not have permission to sign in."),(0,n.h)("p",null,(0,n.h)("a",{className:"button",href:a}
1,"Sign in")))},verification:{status:403,heading:"Unable to sign in",message:(0,n.h)("div",null,(0,n.h)("p",null,"The sign in link is no longer valid."),(0,n.h)("p",null,"It may have been used already or it may have expired.")),signin:(0,n.h)("a",{className:"button",href:a},"Sign in")}},{status:l,heading:c,message:u,signin:d}=null!==(t=s[i.toLowerCase()])&&void 0!==t?t:s.default;return{status:l,html:(0,n.h)("div",{className:"error"},(null==o?void 0:o.brandColor)&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
2        :root {
3          --brand-color: ${null==o?void 0:o.brandColor}
4        }
5      `}}),(0,n.h)("div",{className:"card"},(null==o?void 0:o.logo)&&(0,n.h)("img",{src:o.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,c),(0,n.h)("div",{className:"message"},u),d))}}},79786:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(r(57649)),o=n(r(8209)),a=n(r(79422)),s=n(r(72189)),l=n(r(35131)),c=n(r(99394));function u(e){let{url:t,theme:r,query:n,cookies:u}=e;function d({html:e,title:t,status:n}){var o;return{cookies:u,status:n,headers:[{key:"Content-Type",value:"text/html"}],body:`<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${(0,c.default)()}</style><title>${t}</title></head><body class="__next-auth-theme-${null!==(o=null==r?void 0:r.colorScheme)&&void 0!==o?o:"auto"}"><div class="page">${(0,i.default)(e)}</div></body></html>`}}return{signin:t=>d({html:(0,o.default)({csrfToken:e.csrfToken,providers:e.providers,callbackUrl:e.callbackUrl,theme:r,...n,...t}),title:"Sign In"}),signout:n=>d({html:(0,a.default)({csrfToken:e.csrfToken,url:t,theme:r,...n}),title:"Sign Out"}),verifyRequest:e=>d({html:(0,s.default)({url:t,theme:r,...e}),title:"Verify Request"}),error:e=>d({...(0,l.default)({url:t,theme:r,...e}),title:"Error"})}}},8209:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i=r(6400),o=n(r(10434));function a(e,t=1){if(!e)return;3===(e=e.replace(/^#/,"")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let r=parseInt(e,16),n=r>>16&255,i=r>>8&255,o=255&r;return t=Math.min(Math.max(t,0),1),`rgba(${n}, ${i}, ${o}, ${t})`}function s(e){var t;let{csrfToken:r,providers:n,callbackUrl:s,theme:l,email:c,error:u}=e,d=n.filter(e=>"oauth"===e.type||"email"===e.type||"credentials"===e.type&&!!e.credentials);"undefined"!=typeof document&&l.buttonText&&document.documentElement.style.setProperty("--button-text-color",l.buttonText),"undefined"!=typeof document&&l.brandColor&&document.documentElement.style.setProperty("--brand-color",l.brandColor);let h={Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallback:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"The e-mail could not be sent.",CredentialsSignin:"Sign in failed. Check the details you provided are correct.",SessionRequired:"Please sign in to access this page.",default:"Unable to sign in."},p=u&&(null!==(t=h[u])&&void 0!==t?t:h.default),f="https://authjs.dev/img/providers";return(0,i.h)("div",{className:"signin"},l.brandColor&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:`
6        :root {
7          --brand-color: ${l.brandColor}
8        }
9      `}}),l.buttonText&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:`
10        :root {
11          --button-text-color: ${l.buttonText}
12        }
13      `}}),(0,i.h)("div",{className:"card"},l.logo&&(0,i.h)("img",{src:l.logo,alt:"Logo",className:"logo"}),p&&(0,i.h)("div",{className:"error"},(0,i.h)("p",null,p)),d.map((e,t)=>{let n,l,u,h,p,m;if("oauth"===e.type){var g;({bg:n="",text:l="",logo:u="",bgDark:p=n,textDark:m=l,logoDark:h=""}=null!==(g=e.style)&&void 0!==g?g:{}),u=u.startsWith("/")?`${f}${u}`:u,(h=h.startsWith("/")?`${f}${h}`:h||u)||(h=u)}return(0,i.h)("div",{key:e.id,className:"provider"},"oauth"===e.type&&(0,i.h)("form",{action:e.signinUrl,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),s&&(0,i.h)("input",{type:"hidden",name:"callbackUrl",value:s}),(0,i.h)("button",{type:"submit",className:"button",style:{"--provider-bg":n,"--provider-dark-bg":p,"--provider-color":l,"--provider-dark-color":m,"--provider-bg-hover":a(n,.8),"--provider-dark-bg-hover":a(p,.8)}},u&&(0,i.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo",src:`${u.startsWith("/")?f:""}${u}`}),h&&(0,i.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo-dark",src:`${u.startsWith("/")?f:""}${h}`}),(0,i.h)("span",null,"Sign in with ",e.name))),("email"===e.type||"credentials"===e.type)&&t>
130&&"email"!==d[t-1].type&&"credentials"!==d[t-1].type&&(0,i.h)("hr",null),"email"===e.type&&(0,i.h)("form",{action:e.signinUrl,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,i.h)("label",{className:"section-header",htmlFor:`input-email-for-${e.id}-provider`},"Email"),(0,i.h)("input",{id:`input-email-for-${e.id}-provider`,autoFocus:!0,type:"email",name:"email",value:c,placeholder:"[email protected]",required:!0}),(0,i.h)("button",{id:"submitButton",type:"submit"},"Sign in with ",e.name)),"credentials"===e.type&&(0,i.h)("form",{action:e.callbackUrl,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),Object.keys(e.credentials).map(t=>{var r,n,a;return(0,i.h)("div",{key:`input-group-${e.id}`},(0,i.h)("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`},null!==(r=e.credentials[t].label)&&void 0!==r?r:t),(0,i.h)("input",(0,o.default)({name:t,id:`input-${t}-for-${e.id}-provider`,type:null!==(n=e.credentials[t].type)&&void 0!==n?n:"text",placeholder:null!==(a=e.credentials[t].placeholder)&&void 0!==a?a:""},e.credentials[t])))}),(0,i.h)("button",{type:"submit"},"Sign in with ",e.name)),("email"===e.type||"credentials"===e.type)&&t+1<d.length&&(0,i.h)("hr",null))})))}},79422:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(6400);function i(e){let{url:t,csrfToken:r,theme:i}=e;return(0,n.h)("div",{className:"signout"},i.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
14        :root {
15          --brand-color: ${i.brandColor}
16        }
17      `}}),i.buttonText&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
18        :root {
19          --button-text-color: ${i.buttonText}
20        }
21      `}}),(0,n.h)("div",{className:"card"},i.logo&&(0,n.h)("img",{src:i.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,"Signout"),(0,n.h)("p",null,"Are you sure you want to sign out?"),(0,n.h)("form",{action:`${t}/signout`,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,n.h)("button",{id:"submitButton",type:"submit"},"Sign out"))))}},72189:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(6400);function i(e){let{url:t,theme:r}=e;return(0,n.h)("div",{className:"verify-request"},r.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
22        :root {
23          --brand-color: ${r.brandColor}
24        }
25      `}}),(0,n.h)("div",{className:"card"},r.logo&&(0,n.h)("img",{src:r.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,"Check your email"),(0,n.h)("p",null,"A sign in link has been sent to your email address."),(0,n.h)("p",null,(0,n.h)("a",{className:"site",href:t.origin},t.host))))}},44080:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var i=n(r(97488)),o=n(r(98385)),a=r(15261),s=n(r(33442));async function l(e){var t,r,n,l,c,u;let{options:d,query:h,body:p,method:f,headers:m,sessionStore:g}=e,{provider:y,adapter:v,url:b,callbackUrl:_,pages:w,jwt:S,events:k,callbacks:x,session:{strategy:E,maxAge:T},logger:A}=d,C=[],P="jwt"===E;if("oauth"===y.type)try{let{profile:n,account:a,OAuthProfile:s,cookies:l}=await (0,i.default)({query:h,body:p,method:f,options:d,cookies:e.cookies});l.length&&C.push(...l);try{if(A.debug("OAUTH_CALLBACK_RESPONSE",{profile:n,account:a,OAuthProfile:s}),!n||!a||!s)return{redirect:`${b}/signin`,cookies:C};let e=n;if(v){let{getUserByAccount:t}=v,r=await t({providerAccountId:a.providerAccountId,provider:y.id});r&&(e=r)}try{let t=await x.signIn({user:e,account:a,profile:s});if(!t)return{redirect:`${b}/error?error=AccessDenied`,cookies:C};if("string"==typeof t)return{redirect:t,cookies:C}}catch(e){return{redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:C}}let{user:i,session:l,isNewUser:c}=await (0,o.default)({sessionToken:g.value,profile:n,account:a,options:d});if(P){let e={name:i.name,email:i.email,picture:i.image,sub:null===(r=i.id)||void 0===r?void 0:r.toString()},t=await x.jwt({token:e,user:i,account:a,profile:s,isNewUser:c,trigger:c?"signUp":"signIn"}),n=await S.encode({...S,token:t}),o=new Date;o.setTime(o.getTime()+1e3*T);let l=g.chunk(n,{expires:o});C.push(...l)}else C.push({name:d.cookies.sessionToken.name,value:l.sessionToken,options:{...d.cookies.sessionToken.options,expires:l.expires}});if(await (null===(t=k.signIn)||void 0===t?void 0:t.call(k,{user:i,account:a,profile:n,isNewUser:c})),c&&w.newUser)return{redirect:`${w.newUser}${w.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(_)}`,cookies:C};return{redirect:_,cookies:C}}catch(e){if("AccountNotLinkedError"===e.name)return{redirect:`${b}
25/error?error=OAuthAccountNotLinked`,cookies:C};if("CreateUserError"===e.name)return{redirect:`${b}/error?error=OAuthCreateAccount`,cookies:C};return A.error("OAUTH_CALLBACK_HANDLER_ERROR",e),{redirect:`${b}/error?error=Callback`,cookies:C}}}catch(e){if("OAuthCallbackError"===e.name)return A.error("OAUTH_CALLBACK_ERROR",{error:e,providerId:y.id}),{redirect:`${b}/error?error=OAuthCallback`,cookies:C};return A.error("OAUTH_CALLBACK_ERROR",e),{redirect:`${b}/error?error=Callback`,cookies:C}}else if("email"===y.type)try{let e=null==h?void 0:h.token,t=null==h?void 0:h.email;if(!e||!t)return{redirect:`${b}/error?error=configuration`,cookies:C};let r=await v.useVerificationToken({identifier:t,token:(0,a.hashToken)(e,d)});if(!r||r.expires.valueOf()<Date.now())return{redirect:`${b}/error?error=Verification`,cookies:C};let i=await (0,s.default)({email:t,adapter:v}),c={providerAccountId:i.email,type:"email",provider:y.id};try{let e=await x.signIn({user:i,account:c});if(!e)return{redirect:`${b}/error?error=AccessDenied`,cookies:C};if("string"==typeof e)return{redirect:e,cookies:C}}catch(e){return{redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:C}}let{user:u,session:p,isNewUser:f}=await (0,o.default)({sessionToken:g.value,profile:i,account:c,options:d});if(P){let e={name:u.name,email:u.email,picture:u.image,sub:null===(l=u.id)||void 0===l?void 0:l.toString()},t=await x.jwt({token:e,user:u,account:c,isNewUser:f,trigger:f?"signUp":"signIn"}),r=await S.encode({...S,token:t}),n=new Date;n.setTime(n.getTime()+1e3*T);let i=g.chunk(r,{expires:n});C.push(...i)}else C.push({name:d.cookies.sessionToken.name,value:p.sessionToken,options:{...d.cookies.sessionToken.options,expires:p.expires}});if(await (null===(n=k.signIn)||void 0===n?void 0:n.call(k,{user:u,account:c,isNewUser:f})),f&&w.newUser)return{redirect:`${w.newUser}${w.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(_)}`,cookies:C};return{redirect:_,cookies:C}}catch(e){if("CreateUserError"===e.name)return{redirect:`${b}/error?error=EmailCreateAccount`,cookies:C};return A.error("CALLBACK_EMAIL_ERROR",e),{redirect:`${b}/error?error=Callback`,cookies:C}}else if("credentials"===y.type&&"POST"===f){let e;let t=p;try{if(!(e=await y.authorize(t,{query:h,body:p,headers:m,method:f})))return{status:401,redirect:`${b}/error?${new URLSearchParams({error:"CredentialsSignin",provider:y.id})}`,cookies:C}}catch(e){return{status:401,redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:C}}let r={providerAccountId:e.id,type:"credentials",provider:y.id};try{let n=await x.signIn({user:e,account:r,credentials:t});if(!n)return{status:403,redirect:`${b}/error?error=AccessDenied`,cookies:C};if("string"==typeof n)return{redirect:n,cookies:C}}catch(e){return{redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:C}}let n={name:e.name,email:e.email,picture:e.image,sub:null===(c=e.id)||void 0===c?void 0:c.toString()},i=await x.jwt({token:n,user:e,account:r,isNewUser:!1,trigger:"signIn"}),o=await S.encode({...S,token:i}),a=new Date;a.setTime(a.getTime()+1e3*T);let s=g.chunk(o,{expires:a});return C.push(...s),await (null===(u=k.signIn)||void 0===u?void 0:u.call(k,{user:e,account:r})),{redirect:_,cookies:C}}return{status:500,body:`Error: Callback for provider type ${y.type} not supported`,cookies:C}}},43370:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callback",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"providers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"session",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"signin",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"signout",{enumerable:!0,get:function(){return a.default}});var i=n(r(44080)),o=n(r(20907)),a=n(r(4654)),s=n(r(65814)),l=n(r(34405))},34405:function(e,t){"use strict";function r(e){return{headers:[{key:"Content-Type",value:"application/json"}],body:e.reduce((e,{id:t,name:r,type:n,signinUrl:i,callbackUrl:o})=>(e[t]={id:t,name:r,type:n,signinUrl:i,callbackUrl:o},e),{})}}
25Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},65814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(15261);async function i(e){var t,r,i,o,a,s;let{options:l,sessionStore:c,newSession:u,isUpdate:d}=e,{adapter:h,jwt:p,events:f,callbacks:m,logger:g,session:{strategy:y,maxAge:v}}=l,b={body:{},headers:[{key:"Content-Type",value:"application/json"}],cookies:[]},_=c.value;if(!_)return b;if("jwt"===y)try{let e=await p.decode({...p,token:_});if(!e)throw Error("JWT invalid");let i=await m.jwt({token:e,...d&&{trigger:"update"},session:u}),o=(0,n.fromDate)(v),a=await m.session({session:{user:{name:null==e?void 0:e.name,email:null==e?void 0:e.email,image:null==e?void 0:e.picture},expires:o.toISOString()},token:i});b.body=a;let s=await p.encode({...p,token:i,maxAge:l.session.maxAge}),h=c.chunk(s,{expires:o});null===(t=b.cookies)||void 0===t||t.push(...h),await (null===(r=f.session)||void 0===r?void 0:r.call(f,{session:a,token:i}))}catch(e){g.error("JWT_SESSION_ERROR",e),null===(i=b.cookies)||void 0===i||i.push(...c.clean())}else try{let{getSessionAndUser:e,deleteSession:t,updateSession:r}=h,i=await e(_);if(i&&i.session.expires.valueOf()<Date.now()&&(await t(_),i=null),i){let{user:e,session:t}=i,s=l.session.updateAge,c=t.expires.valueOf()-1e3*v+1e3*s,h=(0,n.fromDate)(v);c<=Date.now()&&await r({sessionToken:_,expires:h});let p=await m.session({session:{user:{name:e.name,email:e.email,image:e.image},expires:t.expires.toISOString()},user:e,newSession:u,...d?{trigger:"update"}:{}});b.body=p,null===(o=b.cookies)||void 0===o||o.push({name:l.cookies.sessionToken.name,value:_,options:{...l.cookies.sessionToken.options,expires:h}}),await (null===(a=f.session)||void 0===a?void 0:a.call(f,{session:p}))}else _&&(null===(s=b.cookies)||void 0===s||s.push(...c.clean()))}catch(e){g.error("SESSION_ERROR",e)}return b}},20907:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i=n(r(25680)),o=n(r(49521)),a=n(r(33442));async function s(e){let{options:t,query:r,body:n}=e,{url:s,callbacks:l,logger:c,provider:u}=t;if(!u.type)return{status:500,text:`Error: Type not specified for ${u.name}`};if("oauth"===u.type)try{return await (0,i.default)({options:t,query:r})}catch(e){return c.error("SIGNIN_OAUTH_ERROR",{error:e,providerId:u.id}),{redirect:`${s}/error?error=OAuthSignin`}}else if("email"===u.type){var d;let e=null==n?void 0:n.email;if(!e)return{redirect:`${s}/error?error=EmailSignin`};let r=null!==(d=u.normalizeIdentifier)&&void 0!==d?d:e=>{let[t,r]=e.toLowerCase().trim().split("@");return r=r.split(",")[0],`${t}@${r}`};try{e=r(null==n?void 0:n.email)}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${s}/error?error=EmailSignin`}}let i=await (0,a.default)({email:e,adapter:t.adapter}),h={providerAccountId:e,userId:e,type:"email",provider:u.id};try{let e=await l.signIn({user:i,account:h,email:{verificationRequest:!0}});if(!e)return{redirect:`${s}/error?error=AccessDenied`};if("string"==typeof e)return{redirect:e}}catch(e){return{redirect:`${s}/error?${new URLSearchParams({error:e})}`}}try{return{redirect:await (0,o.default)(e,t)}}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${s}/error?error=EmailSignin`}}}return{redirect:`${s}/signin`}}},4654:function(e,t){"use strict";async function r(e){var t,r;let{options:n,sessionStore:i}=e,{adapter:o,events:a,jwt:s,callbackUrl:l,logger:c,session:u}=n,d=null==i?void 0:i.value;if(!d)return{redirect:l};if("jwt"===u.strategy)try{let e=await s.decode({...s,token:d});await (null===(t=a.signOut)||void 0===t?void 0:t.call(a,{token:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}else try{let e=await o.deleteSession(d);await (null===(r=a.signOut)||void 0===r?void 0:r.call(a,{session:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}return{redirect:l,cookies:i.clean()}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},86049:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99394:function(e){e.exports=function(){return':root{--border-width:1px;--border-radius:0.5rem;--color-error:#c94b4b;--color-info:#157efb;--color-info-hover:#0f6ddb;--color-info-text:#fff}.__next-auth-theme-auto,.__next-auth-theme-light{--color-background:#ececec;--color-background-hover:hsla(0,0%,93%,.8);--color-background-card:#fff;--color-text:#000;--color-primary:#444;--color-control-border:#bbb;--color-button-active-background:#f9f9f9;--color-button-active-border:#aaa;
25--color-separator:#ccc}.__next-auth-theme-dark{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}@media (prefers-color-scheme:dark){.__next-auth-theme-auto{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}a.button,button{background-color:var(--provider-dark-bg,var(--color-background));color:var(--provider-dark-color,var(--color-primary))}a.button:hover,button:hover{background-color:var(--provider-dark-bg-hover,var(--color-background-hover))!important}#provider-logo{display:none!important}#provider-logo-dark{display:block!important;width:25px}}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit;margin:0;padding:0}body{background-color:var(--color-background);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:0;padding:0}h1{font-weight:400}h1,p{color:var(--color-text);margin-bottom:1.5rem;padding:0 1rem}form{margin:0;padding:0}label{font-weight:500;margin-bottom:.25rem;text-align:left}input[type],label{color:var(--color-text);display:block}input[type]{background:var(--color-background-card);border:var(--border-width) solid var(--color-control-border);border-radius:var(--border-radius);box-sizing:border-box;font-size:1rem;padding:.5rem 1rem;width:100%}input[type]:focus{box-shadow:none}p{font-size:1.1rem;line-height:2rem}a.button{line-height:1rem;text-decoration:none}a.button:link,a.button:visited{background-color:var(--color-background);color:var(--color-primary)}button span{flex-grow:1}a.button,button{align-items:center;background-color:var(--provider-bg);border-color:rgba(0,0,0,.1);border-radius:var(--border-radius);color:var(--provider-color,var(--color-primary));display:flex;font-size:1.1rem;font-weight:500;justify-content:center;min-height:62px;padding:.75rem 1rem;position:relative;transition:all .1s ease-in-out}a.button:hover,button:hover{background-color:var(--provider-bg-hover,var(--color-background-hover));cursor:pointer}a.button:active,button:active{cursor:pointer}a.button #provider-logo,button #provider-logo{display:block;width:25px}a.button #provider-logo-dark,button #provider-logo-dark{display:none}#submitButton{background-color:var(--brand-color,var(--color-info));color:var(--button-text-color,var(--color-info-text));width:100%}#submitButton:hover{background-color:var(--button-hover-bg,var(--color-info-hover))!important}a.site{color:var(--color-primary);font-size:1rem;line-height:2rem;text-decoration:none}a.site:hover{text-decoration:underline}.page{box-sizing:border-box;display:grid;height:100%;margin:0;padding:0;place-items:center;position:absolute;width:100%}.page>div{text-align:center}.error a.button{margin-top:.5rem;padding-left:2rem;padding-right:2rem}.error .message{margin-bottom:1.5rem}.signin input[type=text]{display:block;margin-left:auto;margin-right:auto}.signin hr{border:0;border-top:1px solid var(--color-separator);display:block;margin:2rem auto 1rem;overflow:visible}.signin hr:before{background:var(--color-background-card);color:#888;content:"or";padding:0 .4rem;position:relative;top:-.7rem}.signin .error{background:#f5f5f5;background:var(--color-error);border-radius:.3rem;font-weight:500}.signin .error p{color:var(--color-info-text);font-size:.9rem;line-height:1.2rem;padding:.5rem 1rem;text-align:left}.signin form,.signin>div{display:block}.signin form input[type],.signin>div input[type]{margin-bottom:.5rem}.signin form button,.signin>div button{width:100%}.signin .provider+.provider{margin-top:1rem}.logo{display:inline-block;margin:1.25rem 0;max-height:70px;max-width:150px}.card{background-color:var(--color-background-card);border-radius:2rem;padding:1.25rem 2rem}.card .header{color:var(--color-primary)}.section-header{color:var(--color-text)}@media screen and (min-width:450px){.card{margin:2rem 0;width:368px}}@media screen and (max-width:450px){.card{margin:1rem 0;width:343px}}'}},62842:function(e,t,r){"use strict";
25Object.defineProperty(t,"__esModule",{value:!0});var n={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var i=r(86049);Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var o=s(r(21379));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}Object.keys(o).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},82260:function(e,t,r){"use strict";var n=r(34155),i=r(64836);Object.defineProperty(t,"__esModule",{value:!0});var o={encode:!0,decode:!0,getToken:!0};t.decode=f,t.encode=p,t.getToken=m;var a=r(45595),s=i(r(99718)),l=r(29264),c=r(46140),u=r(76444);Object.keys(u).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});let d=2592e3,h=()=>Date.now()/1e3|0;async function p(e){let{token:t={},secret:r,maxAge:n=d,salt:i=""}=e,o=await g(r,i);return await new a.EncryptJWT(t).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(h()+n).setJti((0,l.v4)()).encrypt(o)}async function f(e){let{token:t,secret:r,salt:n=""}=e;if(!t)return null;let i=await g(r,n),{payload:o}=await (0,a.jwtDecrypt)(t,i,{clockTolerance:15});return o}async function m(e){var t,r,i;let{req:o,secureCookie:a=null!==(t=null===(r=n.env.NEXTAUTH_URL)||void 0===r?void 0:r.startsWith("https://"))&&void 0!==t?t:!!n.env.VERCEL,cookieName:s=a?"__Secure-next-auth.session-token":"next-auth.session-token",raw:l,decode:u=f,logger:d=console,secret:h=n.env.NEXTAUTH_SECRET}=e;if(!o)throw Error("Must pass `req` to JWT getToken()");let p=new c.SessionStore({name:s,options:{secure:a}},{cookies:o.cookies,headers:o.headers},d).value,m=o.headers instanceof Headers?o.headers.get("authorization"):null===(i=o.headers)||void 0===i?void 0:i.authorization;if(p||(null==m?void 0:m.split(" ")[0])!=="Bearer"||(p=decodeURIComponent(m.split(" ")[1])),!p)return null;if(l)return p;try{return await u({token:p,secret:h})}catch(e){return null}}async function g(e,t){return await (0,s.default)("sha256",e,t,`NextAuth.js Generated Encryption Key${t?` (${t})`:""}`,32)}},76444:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21379:function(e,t,r){"use strict";var n=r(34155);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getServerSession=c,t.unstable_getServerSession=u;var i=r(35149),o=r(23017);async function a(e,t,r){var a,s,l,c,u,d,h,p;let{nextauth:f,...m}=e.query;null!==(a=r.secret)&&void 0!==a||(r.secret=null!==(s=null===(l=r.jwt)||void 0===l?void 0:l.secret)&&void 0!==s?s:n.env.NEXTAUTH_SECRET);let g=await (0,i.AuthHandler)({req:{body:e.body,query:m,cookies:e.cookies,headers:e.headers,method:e.method,action:null==f?void 0:f[0],providerId:null==f?void 0:f[1],error:null!==(c=e.query.error)&&void 0!==c?c:null==f?void 0:f[1]},options:r});if(t.status(null!==(u=g.status)&&void 0!==u?u:200),null===(d=g.cookies)||void 0===d||d.forEach(e=>(0,o.setCookie)(t,e)),null===(h=g.headers)||void 0===h||h.forEach(e=>t.setHeader(e.key,e.value)),g.redirect){if((null===(p=e.body)||void 0===p?void 0:p.json)!=="true"){t.status(302).setHeader("Location",g.redirect),t.end();return}return t.json({url:g.redirect})}return t.send(g.body)}async function s(e,t,a){var s,l,c;null!==(s=a.secret)&&void 0!==s||(a.secret=n.env.NEXTAUTH_SECRET);
25let{headers:u,cookies:d}=r(14970),h=null===(l=t.params)||void 0===l?void 0:l.nextauth,p=Object.fromEntries(e.nextUrl.searchParams),f=await (0,o.getBody)(e),m=await (0,i.AuthHandler)({req:{body:f,query:p,cookies:Object.fromEntries(d().getAll().map(e=>[e.name,e.value])),headers:Object.fromEntries(u()),method:e.method,action:null==h?void 0:h[0],providerId:null==h?void 0:h[1],error:null!==(c=p.error)&&void 0!==c?c:null==h?void 0:h[1]},options:a}),g=(0,o.toResponse)(m),y=g.headers.get("Location");return(null==f?void 0:f.json)==="true"&&y?(g.headers.delete("Location"),g.headers.set("Content-Type","application/json"),new Response(JSON.stringify({url:y}),{status:m.status,headers:g.headers})):g}var l=function(...e){var t;return 1===e.length?async(t,r)=>null!=r&&r.params?await s(t,r,e[0]):await a(t,r,e[0]):null!==(t=e[1])&&void 0!==t&&t.params?s(...e):a(...e)};async function c(...e){var t,a;let s,l,u;let d=0===e.length||1===e.length;if(d){u=Object.assign({},e[0],{providers:[]});let{headers:t,cookies:n}=r(14970);s={headers:Object.fromEntries(t()),cookies:Object.fromEntries(n().getAll().map(e=>[e.name,e.value]))},l={getHeader(){},setCookie(){},setHeader(){}}}else s=e[0],l=e[1],u=Object.assign({},e[2],{providers:[]});null!==(a=(t=u).secret)&&void 0!==a||(t.secret=n.env.NEXTAUTH_SECRET);let{body:h,cookies:p,status:f=200}=await (0,i.AuthHandler)({options:u,req:{action:"session",method:"GET",cookies:s.cookies,headers:s.headers}});if(null==p||p.forEach(e=>(0,o.setCookie)(l,e)),h&&"string"!=typeof h&&Object.keys(h).length){if(200===f)return d&&delete h.expires,h;throw Error(h.message)}return null}async function u(...e){return await c(...e)}t.default=l},23017:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBody=o,t.setCookie=i,t.toResponse=a;var n=r(76489);function i(e,t){var r;let i=null!==(r=e.getHeader("Set-Cookie"))&&void 0!==r?r:[];Array.isArray(i)||(i=[i]);let{name:o,value:a,options:s}=t,l=(0,n.serialize)(o,a,s);i.push(l),e.setHeader("Set-Cookie",i)}async function o(e){if(!("body"in e)||!e.body||"POST"!==e.method)return;let t=e.headers.get("content-type");return null!=t&&t.includes("application/json")?await e.json():null!=t&&t.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await e.text())):void 0}function a(e){var t,r,i;let o=new Headers(null===(t=e.headers)||void 0===t?void 0:t.reduce((e,{key:t,value:r})=>(e[t]=r,e),{}));null===(r=e.cookies)||void 0===r||r.forEach(e=>{let{name:t,value:r,options:i}=e,a=(0,n.serialize)(t,r,i);o.has("Set-Cookie")?o.append("Set-Cookie",a):o.set("Set-Cookie",a)});let a=e.body;"application/json"===o.get("content-type")?a=JSON.stringify(e.body):"application/x-www-form-urlencoded"===o.get("content-type")&&(a=new URLSearchParams(e.body).toString());let s=new Response(a,{headers:o,status:e.redirect?302:null!==(i=e.status)&&void 0!==i?i:200});return e.redirect&&s.headers.set("Location",e.redirect),s}},29264:function(e,t,r){"use strict";r.r(t),r.d(t,{NIL:function(){return j},parse:function(){return g},stringify:function(){return h},v1:function(){return m},v3:function(){return N},v4:function(){return D},v5:function(){return M},validate:function(){return c},version:function(){return B}});var n,i,o,a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}for(var l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(e){return"string"==typeof e&&l.test(e)},u=[],d=0;d<256;++d)u.push((d+256).toString(16).substr(1));var h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();
25if(!c(r))throw TypeError("Stringified UUID is invalid");return r},p=0,f=0,m=function(e,t,r){var n=t&&r||0,a=t||Array(16),l=(e=e||{}).node||i,c=void 0!==e.clockseq?e.clockseq:o;if(null==l||null==c){var u=e.random||(e.rng||s)();null==l&&(l=i=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==c&&(c=o=(u[6]<<8|u[7])&16383)}var d=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,g=d-p+(m-f)/1e4;if(g<0&&void 0===e.clockseq&&(c=c+1&16383),(g<0||d>p)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");p=d,f=m,o=c;var y=((268435455&(d+=122192928e5))*1e4+m)%4294967296;a[n++]=y>>>24&255,a[n++]=y>>>16&255,a[n++]=y>>>8&255,a[n++]=255&y;var v=d/4294967296*1e4&268435455;a[n++]=v>>>8&255,a[n++]=255&v,a[n++]=v>>>24&15|16,a[n++]=v>>>16&255,a[n++]=c>>>8|128,a[n++]=255&c;for(var b=0;b<6;++b)a[n+b]=l[b];return t||h(a)},g=function(e){if(!c(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function y(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var v="6ba7b810-9dad-11d1-80b4-00c04fd430c8",b="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function _(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=y(e)),"string"==typeof n&&(n=g(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return h(a)}try{n.name=e}catch(e){}return n.DNS=v,n.URL=b,n}function w(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}function S(e){return(e+64>>>9<<4)+14+1}function k(e,t){e[t>>5]|=128<<t%32,e[S(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,l=n,c=i,u=o;r=C(r,n,i,o,e[a],7,-680876936),o=C(o,r,n,i,e[a+1],12,-389564586),i=C(i,o,r,n,e[a+2],17,606105819),n=C(n,i,o,r,e[a+3],22,-1044525330),r=C(r,n,i,o,e[a+4],7,-176418897),o=C(o,r,n,i,e[a+5],12,1200080426),i=C(i,o,r,n,e[a+6],17,-1473231341),n=C(n,i,o,r,e[a+7],22,-45705983),r=C(r,n,i,o,e[a+8],7,1770035416),o=C(o,r,n,i,e[a+9],12,-1958414417),i=C(i,o,r,n,e[a+10],17,-42063),n=C(n,i,o,r,e[a+11],22,-1990404162),r=C(r,n,i,o,e[a+12],7,1804603682),o=C(o,r,n,i,e[a+13],12,-40341101),i=C(i,o,r,n,e[a+14],17,-1502002290),n=C(n,i,o,r,e[a+15],22,1236535329),r=P(r,n,i,o,e[a+1],5,-165796510),o=P(o,r,n,i,e[a+6],9,-1069501632),i=P(i,o,r,n,e[a+11],14,643717713),n=P(n,i,o,r,e[a],20,-373897302),r=P(r,n,i,o,e[a+5],5,-701558691),o=P(o,r,n,i,e[a+10],9,38016083),i=P(i,o,r,n,e[a+15],14,-660478335),n=P(n,i,o,r,e[a+4],20,-405537848),r=P(r,n,i,o,e[a+9],5,568446438),o=P(o,r,n,i,e[a+14],9,-1019803690),i=P(i,o,r,n,e[a+3],14,-187363961),n=P(n,i,o,r,e[a+8],20,1163531501),r=P(r,n,i,o,e[a+13],5,-1444681467),o=P(o,r,n,i,e[a+2],9,-51403784),i=P(i,o,r,n,e[a+7],14,1735328473),n=P(n,i,o,r,e[a+12],20,-1926607734),r=I(r,n,i,o,e[a+5],4,-378558),o=I(o,r,n,i,e[a+8],11,-2022574463),i=I(i,o,r,n,e[a+11],16,1839030562),n=I(n,i,o,r,e[a+14],23,-35309556),r=I(r,n,i,o,e[a+1],4,-1530992060),o=I(o,r,n,i,e[a+4],11,1272893353),i=I(i,o,r,n,e[a+7],16,-155497632),n=I(n,i,o,r,e[a+10],23,-1094730640),r=I(r,n,i,o,e[a+13],4,681279174),o=I(o,r,n,i,e[a],11,-358537222),i=I(i,o,r,n,e[a+3],16,-722521979),n=I(n,i,o,r,e[a+6],23,76029189),r=I(r,n,i,o,e[a+9],4,-640364487),o=I(o,r,n,i,e[a+12],11,-421815835),i=I(i,o,r,n,e[a+15],16,530742520),n=I(n,i,o,r,e[a+2],23,-995338651),r=O(r,n,i,o,e[a],6,-198630844),o=O(o,r,n,i,e[a+7],10,1126891415),i=O(i,o,r,n,e[a+14],15,-1416354905),n=O(n,i,o,r,e[a+5],21,-57434055),r=O(r,n,i,o,e[a+12],6,1700485571),o=O(o,r,n,i,e[a+3],10,-1894986606),i=O(i,o,r,n,e[a+10],15,-1051523),n=O(n,i,o,r,e[a+1],21,-2054922799),r=O(r,n,i,o,e[a+8],6,1873313359),o=O(o,r,n,i,e[a+15],10,-30611744),i=O(i,o,r,n,e[a+6],15,-1560198380),n=O(n,i,o,r,e[a+13],21,1309151649),r=O(r,n,i,o,e[a+4],6,-145523070),o=O(o,r,n,i,e[a+11],10,-1120210379),i=O(i,o,r,n,e[a+2],15,718787259),n=O(n,i,o,r,e[a+9],21,-343485551),r=E(r,s),n=E(n,l),i=E(i,c),o=E(o,u)}return[r,n,i,o]}function x(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(S(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}function E(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function T(e,t){return e<<t|e>>>32-t}function A(e,t,r,n,i,o){return E(T(E(E(t,e),E(n,o)),i),r)}function C(e,t,r,n,i,o,a){return A(t&r|~t&n,e,t,i,o,a)}function P(e,t,r,n,i,o,a){return A(t&n|r&~n,e,t,i,o,a)}function I(e,t,r,n,i,o,a){return A(t^r^n,e,t,i,o,a)}function O(e,t,r,n,i,o,a){return A(r^(t|~n),e,t,i,o,a)}var N=_("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return w(k(x(e),8*e.length))}),D=function(e,t,r){var n=(e=e||{}).random||(e.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return h(n)};function R(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function L(e,t){return e<<t|e>>>32-t}var M=_("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=Array(o),s=0;s<o;++s){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];a[s]=l}a[o-1][14]=(e.length-1)*8/4294967296,a[o-1][14]=Math.floor(a[o-1][
2514]),a[o-1][15]=(e.length-1)*8&4294967295;for(var u=0;u<o;++u){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=a[u][h];for(var p=16;p<80;++p)d[p]=L(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var f=r[0],m=r[1],g=r[2],y=r[3],v=r[4],b=0;b<80;++b){var _=Math.floor(b/20),w=L(f,5)+R(_,m,g,y)+v+t[_]+d[b]>>>0;v=y,y=g,g=L(m,30)>>>0,m=f,f=w}r[0]=r[0]+f>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),j="00000000-0000-0000-0000-000000000000",B=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},24931:function(e,t){"use strict";var r;function n(e){return{id:"credentials",name:"Credentials",type:"credentials",credentials:{},authorize:()=>null,options:e}}r={value:!0},t.Z=n},33299:function(e,t,r){"use strict";var n,i,o,a,s,l=r(34155),c=r(64836),u=r(18698);Object.defineProperty(t,"__esModule",{value:!0});var d={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionContext=void 0,t.SessionProvider=z,t.getCsrfToken=R,t.getProviders=M,t.getSession=N,t.signIn=B,t.signOut=F,t.useSession=O;var h=c(r(64687)),p=c(r(38416)),f=c(r(17156)),m=c(r(27424)),g=k(r(67294)),y=k(r(26553)),v=c(r(30762)),b=r(29548),_=r(85893),w=r(527);function S(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(S=function(e){return e?r:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var r=S(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){(0,p.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}
25Object.keys(w).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(d,e))&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var T={baseUrl:(0,v.default)(null!==(n=l.env.NEXTAUTH_URL)&&void 0!==n?n:l.env.VERCEL_URL).origin,basePath:(0,v.default)(l.env.NEXTAUTH_URL).path,baseUrlServer:(0,v.default)(null!==(i=null!==(o=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==o?o:l.env.NEXTAUTH_URL)&&void 0!==i?i:l.env.VERCEL_URL).origin,basePathServer:(0,v.default)(null!==(a=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==a?a:l.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},A=(0,b.BroadcastChannel)(),C=(0,y.proxyLogger)(y.default,T.basePath);function P(){var e=g.useState("undefined"!=typeof navigator&&navigator.onLine),t=(0,m.default)(e,2),r=t[0],n=t[1],i=function(){return n(!0)},o=function(){return n(!1)};return g.useEffect(function(){return window.addEventListener("online",i),window.addEventListener("offline",o),function(){window.removeEventListener("online",i),window.removeEventListener("offline",o)}},[]),r}var I=null===(s=g.createContext)||void 0===s?void 0:s.call(g,void 0);function O(e){if(!I)throw Error("React Context is unavailable in Server Components");var t=g.useContext(I),r=null!=e?e:{},n=r.required,i=r.onUnauthenticated,o=n&&"unauthenticated"===t.status;return(g.useEffect(function(){if(o){var e="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=e}},[o,i]),o)?{data:t.data,update:t.update,status:"loading"}:t}function N(e){return D.apply(this,arguments)}function D(){return(D=(0,f.default)(h.default.mark(function e(t){var r,n;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("session",T,C,t);case 2:return n=e.sent,(null===(r=null==t?void 0:t.broadcast)||void 0===r||r)&&A.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",n);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function R(e){return L.apply(this,arguments)}function L(){return(L=(0,f.default)(h.default.mark(function e(t){var r;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("csrf",T,C,t);case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function M(){return j.apply(this,arguments)}function j(){return(j=(0,f.default)(h.default.mark(function e(){return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("providers",T,C);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function B(e,t,r){return U.apply(this,arguments)}function U(){return(U=(0,f.default)(h.default.mark(function e(t,r,n){var i,o,a,s,l,c,u,d,p,f,m,g,y,v,_,w,S;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0===(o=(i=null!=r?r:{}).callbackUrl)?window.location.href:o,l=void 0===(s=i.redirect)||s,c=(0,b.apiBaseUrl)(T),e.next=4,M();case 4:if(u=e.sent){e.next=8;break}return window.location.href="".concat(c,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in u))){e.next=11;break}return window.location.href="".concat(c,"/signin?").concat(new URLSearchParams({callbackUrl:a})),e.abrupt("return");case 11:return d="credentials"===u[t].type,p="email"===u[t].type,f=d||p,m="".concat(c,"/").concat(d?"callback":"signin","/").concat(t),g="".concat(m).concat(n?"?".concat(new URLSearchParams(n)):""),e.t0=fetch,e.t1=g,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=E,e.t5=E({},r),e.t6={},e.next=25,R();case 25:return e.t7=e.sent,e.t8=a,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return y=e.sent,e.next=36,y.json();case 36:if(v=e.sent,!(l||!f)){e.next=42;break}return w=null!==(_=v.url)&&void 0!==_?_:a,window.location.href=w,w.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(S=new URL(v.url).searchParams.get("error"),!y.ok){e.next=46;break}return e.next=46,T._getSession({event:"storage"});case 46:return e.abrupt("return",{error:S,status:y.status,ok:y.ok,url:S?null:v.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function F(e){return H.apply(this,arguments)}function H(){return(H=(0,f.default)(h.default.mark(function e(t){var r,n,i,o,a,s,l,c,u;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0===(n=(null!=t?t:{}).callbackUrl)?window.location.href:n,o=(0,b.apiBaseUrl)(T),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,R();case 6:return e.t2=e.sent,e.t3=i,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),a={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(o,"/signout"),a);case 13:return s=e.sent,e.next=16,s.json();case 16:if(l=e.sent,A.post({event:"session",data:{trigger:"signout"}}),!(null===(r=null==t?void 0:t.redirect)||void 0===r||r)){e.next=23;break}return u=null!==(c=l.url)&&void 0!==c?c:i,window.location.href=u,u.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,T._getSession({event:"storage"});case 25:return e.abrupt("return",l);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}function z(e){if(!I)throw Error("React Context is unavailable in Server Components");var t=e.children,r=e.basePath,n=e.refetchInterval,i=e.refetchWhenOffline;r&&(T.basePath=r);var o=void 0!==e.session;T._lastSync=o?(0,b.now)():0;var a=g.useState(function(){return o&&(T._session=e.session),e.session}),s=(0,m.default)(a,2),l=s[0],c=s[1],u=g.useState(!o),d=(0,m.default)(u,2),p=d[0],y=d[1];g.useEffect(function(){return T._getSession=(0,f.default)(h.default.mark(function e(){var t,r,n=arguments;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(n.length>0&&void 0!==n[0]?n[0]:{}).event,e.prev=1,!((r="storage"===t)||void 0===T._session)){e.next=10;break}return T._lastSync=(0,b.now)(),e.next=7,N({broadcast:!r});case 7:return T._session=e.sent,c(T._session),e.abrupt("return");case 10:if(!(!t||null===T._session||(0,b.now)()<T._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return T._lastSync=(0,b.now)(),e.next=15,N();case 15:T._session=e.sent,c(T._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),C.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,y(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),T._getSession(),function(){T._lastSync=0,T._session=void 0,T._getSession=function(){}}},[]),g.useEffect(function(){var e=A.receive(function(){return T._getSession({event:"storage"})});return function(){return e()}},[]),g.useEffect(function(){var t=e.refetchOnWindowFocus,r=void 0===t||t,n=function(){r&&"visible"===document.visibilityState&&T._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),function(){return document.removeEventListener("visibilitychange",n,!1)}},[e.refetchOnWindowFocus]);var v=P(),w=!1!==i||v;g.useEffect(function(){if(n&&w){var e=setInterval(function(){T._session&&T._getSession({event:"poll"})},1e3*n);return function(){return clearInterval(e)}}},[n,w]);var S=g.useMemo(function(){return{data:l,status:p?"loading":l?"authenticated":"unauthenticated",update:function(e){return(0,f.default)(h.default.mark(function t(){var r;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(p||!l)){t.next=2;break}return t.abrupt("return");case 2:return y(!0),t.t0=b.fetchData,t.t1=T,t.t2=C,t.next=8,R();case 8:return t.t3=t.sent,t.t4=e,t.t5={csrfToken:t.t3,data:t.t4},t.t6={body:t.t5},t.t7={req:t.t6},t.next=15,(0,t.t0)("session",t.t1,t.t2,t.t7);case 15:return r=t.sent,y(!1),r&&(c(r),A.post({event:"session",data:{trigger:"getSession"}})),t.abrupt("return",r);case 19:case"end":return t.stop()}},t)}))()}}},[l,p]);return(0,_.jsx)(I.Provider,{value:S,children:t})}t.SessionContext=I},527:function(e,t){"use strict";
25Object.defineProperty(t,"__esModule",{value:!0})},52553:function(e,t,r){"use strict";var n=r(34155);function i(e,t){var r;return(null!==(r=n.env.VERCEL)&&void 0!==r?r:n.env.AUTH_TRUST_HOST)?`${"http"===t?"http":"https"}://${e}`:n.env.NEXTAUTH_URL}Object.defineProperty(t,"__esModule",{value:!0}),t.detectOrigin=i},26553:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=p,t.setLogger=d;var i=n(r(38416)),o=r(36925);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){(0,i.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e){if(e instanceof Error&&!(e instanceof o.UnknownError))return{message:e.message,stack:e.stack,name:e.name};if(c(e)){var t;e.error=l(e.error),e.message=null!==(t=e.message)&&void 0!==t?t:e.error.message}return e}function c(e){return!!(null!=e&&e.error)}var u={error:function(e,t){t=l(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(u.debug=function(){}),e.error&&(u.error=e.error),e.warn&&(u.warn=e.warn),e.debug&&(u.debug=e.debug)}var h=u;function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var r={},n=function(e){r[e]=function(r,n){u[e](r,n),"error"===e&&(n=l(n)),n.client=!0;var i="".concat(t,"/_log"),o=new URLSearchParams(s({level:e,code:r},n));return navigator.sendBeacon?navigator.sendBeacon(i,o):fetch(i,{method:"POST",body:o,keepalive:!0})}};for(var i in e)n(i);return r}catch(e){return u}}t.default=h},94848:function(e,t){"use strict";function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}function n(e,...t){if(!t.length)return e;let i=t.shift();if(r(e)&&r(i))for(let t in i)r(i[t])?(e[t]||Object.assign(e,{[t]:{}}),n(e[t],i[t])):Object.assign(e,{[t]:i[t]});return n(e,...t)}Object.defineProperty(t,"__esModule",{value:!0}),t.merge=n},30762:function(e,t){"use strict";function r(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(null!==(t=e)&&void 0!==t?t:r),i=("/"===n.pathname?r.pathname:n.pathname).replace(/\/$/,""),o=`${n.origin}${i}`;return{origin:n.origin,host:n.host,path:i,base:o,toString:()=>o}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},2962:function(e,t,r){"use strict";r.d(t,{PB:function(){return p}});var n=r(67294),i=r(9008),o=r.n(i);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var l=["keyOverride"],c={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},u=function(e,t,r){void 0===t&&(t=[]);var i=void 0===r?{}:r,o=i.defaultWidth,a=i.defaultHeight;return t.reduce(function(t,r,i){return t.push(n.createElement("meta",{key:"og:"+e+":0"+i,property:"og:"+e,content:r.url})),r.alt&&t.push(n.createElement("meta",{key:"og:"+e+":alt0"+i,property:"og:"+e+":alt",content:r.alt})),r.secureUrl&&t.push(n.createElement("meta",{key:"og:"+e+":secure_url0"+i,property:"og:"+e+":secure_url",content:r.secureUrl.toString()})),r.type&&t.push(n.createElement("meta",{key:"og:"+e+":type0"+i,property:"og:"+e+":type",content:r.type.toString()})),r.width?t.push(n.createElement("meta",{key:"og:"+e+":width0"+i,property:"og:"+e+":width",content:r.
25width.toString()})):o&&t.push(n.createElement("meta",{key:"og:"+e+":width0"+i,property:"og:"+e+":width",content:o.toString()})),r.height?t.push(n.createElement("meta",{key:"og:"+e+":height"+i,property:"og:"+e+":height",content:r.height.toString()})):a&&t.push(n.createElement("meta",{key:"og:"+e+":height"+i,property:"og:"+e+":height",content:a.toString()})),t},[])},d=function(e){var t,r,i,o,d,h=[];e.titleTemplate&&(c.templateTitle=e.titleTemplate);var p="";e.title?(p=e.title,c.templateTitle&&(p=c.templateTitle.replace(/%s/g,function(){return p}))):e.defaultTitle&&(p=e.defaultTitle),p&&h.push(n.createElement("title",{key:"title"},p));var f=e.noindex||c.noindex||e.dangerouslySetAllPagesToNoIndex,m=e.nofollow||c.nofollow||e.dangerouslySetAllPagesToNoFollow,g="";if(e.robotsProps){var y=e.robotsProps,v=y.nosnippet,b=y.maxSnippet,_=y.maxImagePreview,w=y.maxVideoPreview,S=y.noarchive,k=y.noimageindex,x=y.notranslate,E=y.unavailableAfter;g=(v?",nosnippet":"")+(b?",max-snippet:"+b:"")+(_?",max-image-preview:"+_:"")+(S?",noarchive":"")+(E?",unavailable_after:"+E:"")+(k?",noimageindex":"")+(w?",max-video-preview:"+w:"")+(x?",notranslate":"")}if(f||m?(e.dangerouslySetAllPagesToNoIndex&&(c.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(c.nofollow=!0),h.push(n.createElement("meta",{key:"robots",name:"robots",content:(f?"noindex":"index")+","+(m?"nofollow":"follow")+g}))):h.push(n.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+g})),e.description&&h.push(n.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&h.push(n.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&h.push(n.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){h.push(n.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&h.push(n.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&h.push(n.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&h.push(n.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&h.push(n.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||p)&&h.push(n.createElement("meta",{key:"og:title",property:"og:title",content:(null==(o=e.openGraph)?void 0:o.title)||p})),(null!=(r=e.openGraph)&&r.description||e.description)&&h.push(n.createElement("meta",{key:"og:description",property:"og:description",content:(null==(d=e.openGraph)?void 0:d.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&h.push(n.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var T=e.openGraph.type.toLowerCase();h.push(n.createElement("meta",{key:"og:type",property:"og:type",content:T})),"profile"===T&&e.openGraph.profile?(e.openGraph.profile.firstName&&h.push(n.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&h.push(n.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&h.push(n.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&h.push(n.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===T&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach(function(e,t){h.push(n.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&h.push(n.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&h.push(n.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEac
25h(function(e,t){h.push(n.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===T&&e.openGraph.article?(e.openGraph.article.publishedTime&&h.push(n.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&h.push(n.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&h.push(n.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){h.push(n.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&h.push(n.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){h.push(n.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===T||"video.episode"===T||"video.tv_show"===T||"video.other"===T)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&h.push(n.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&h.push(n.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){h.push(n.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){h.push(n.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&h.push(n.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&h.push(n.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
25h(function(e,t){h.push(n.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&h.push(n.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(c.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(c.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&h.push.apply(h,u("image",e.openGraph.images,{defaultWidth:c.defaultOpenGraphImageWidth,defaultHeight:c.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(c.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(c.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&h.push.apply(h,u("video",e.openGraph.videos,{defaultWidth:c.defaultOpenGraphVideoWidth,defaultHeight:c.defaultOpenGraphVideoHeight})),e.openGraph.audio&&h.push.apply(h,u("audio",e.openGraph.audio)),e.openGraph.locale&&h.push(n.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&h.push(n.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&h.push(n.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,r,i=e.keyOverride,o=s(e,l);h.push(n.createElement("meta",a({key:"meta:"+(null!=(t=null!=(r=null!=i?i:o.name)?r:o.property)?t:o.httpEquiv)},o)))}),null!=(i=e.additionalLinkTags)&&i.length&&e.additionalLinkTags.forEach(function(e){var t;h.push(n.createElement("link",a({key:"link"+(null!=(t=e.keyOverride)?t:e.href)+e.rel},e)))}),h},h=function(e){return n.createElement(o(),null,d(e))},p=function(e){var t=e.title,r=e.themeColor,i=e.noindex,o=void 0!==i&&i,a=e.nofollow,s=e.robotsProps,l=e.description,c=e.canonical,u=e.openGraph,p=e.facebook,f=e.twitter,m=e.additionalMetaTags,g=e.titleTemplate,y=e.defaultTitle,v=e.mobileAlternate,b=e.languageAlternates,_=e.additionalLinkTags,w=e.useAppDir,S=void 0!==w&&w;return n.createElement(n.Fragment,null,S?d({title:t,themeColor:r,noindex:o,nofollow:a,robotsProps:s,description:l,canonical:c,facebook:p,openGraph:u,additionalMetaTags:m,twitter:f,titleTemplate:g,defaultTitle:y,mobileAlternate:v,languageAlternates:b,additionalLinkTags:_}):n.createElement(h,{title:t,themeColor:r,noindex:o,nofollow:a,robotsProps:s,description:l,canonical:c,facebook:p,openGraph:u,additionalMetaTags:m,twitter:f,titleTemplate:g,defaultTitle:y,mobileAlternate:v,languageAlternates:b,additionalLinkTags:_}))};RegExp("["+Object.keys(Object.freeze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"})).join("")+"]","g")},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},91118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(99784)}])},58239:function(e,t,r){"use strict";r.d(t,{qe:function(){return w},uE:function(){return S}});var n=r(32415);r(78984),r(2568);var i=r(45312);let o=0,a={},s=[],l={},c="",u={},d="",h="",p="",f=1,m="WRONG_DATA_TYPE",g=e=>Math.floor(e-o),y={},v=(e,t,r,s,l)=>{var c,u,d,h,v,b,_,w,S,k,x,E,T,A;function C(e){return Number(e)===e&&e%1==0}function P(e){return Number(e)===e&&e%1!=0}let I=e=>Object.entries(e).reduce((e,t)=>{let[r,n]=t;return null!==n&&(e[r]="object"==typeof n?I(n):n),e},{}),O=["image","metadata","text","unknown","video","audio"],N=["two_g","three_g","four_g","five_g","wifi","ethernet","other"],D=["buy","rent","subscription"],R=!0,L=["phone","tab","desktop","smart_tv","stb","gaming_console","wearable","car","web","other"],M=["ios","android","roku","firetv","appletv","chromecast","windows","mac","linux","web","other"],j=["thumbnail","link","button","notification"],B=["landing_screen","home_screen","detail_screen","video_screen","search_screen","profile_edit_screen","profile_view_screen","login_screen","registration_screen","forgot_password_screen","sub_upgrade_screen","payment_screen"],{common:U=null,player:F=null,purchase:H=null,registration_fail:z=null,login_fail:$=null,misc:q=null}=t||{},{user_id:W=null,user_category:V="",profile_id:G=null,profile_age_rating:K="",profile_name:Z="",deviceId:Y=""}=U||{},{location_type:J=null,event_location_id:X="",shelves:Q=null}=q||{},ee=Date.now(),et=Y||((0,n.Ki)()?"vir_web"+(0,n.Ki)():"NO_ID");Date.now();let er=f,en=p+"-"+er,ei=(0,n.Mz)(),eo=i.appName,ea=i.appVer,es=i.deviceCat,el=i.devType,ec=i.deviceName,eu=ei.os+ei.osVersion,ed=ei.browser+"-v"+ei.browserMajorVersion,eh="",ep="",ef="".concat(window.screen.width,"x").concat(window.screen.height),em=i.appName,eg="",ey={customer_name:em?"string"==typeof em?em:m:"",app_name:eo?"string"==typeof eo?eo:m:"",app_version:ea?"string"==typeof ea?ea:m:""},ev=es?R?L.includes(es)?es:m:es:"",eb=el?R?M.includes(el)?el:m:el:"",e_={device_id:et?"string"==typeof et?et:m:"",device_name:ec?"string"==typeof ec?ec:m:"",device_category:ev,device_type:eb,manufacturer:eh?"string"==typeof eh?eh:m:"",year_of_mfg:ep?C(ep)||P(ep)?ep:m:null,resolution:ef?"string"==typeof ef?ef:m:null,os_version:eu?"string"==typeof eu?eu:m:null,device_model:ed?"string"==typeof ed?ed:m:null,idfa:"string"==typeof(null==F?void 0:F.idfa)&&F.idfa?F.idfa:"NO_SUB"};e_=I(e_);let ew={user_id:W?"string"==typeof W?W:m:"NO_SUB",user_category:V?"string"==typeof V?V:m:"",profile_id:G?"string"==typeof G?G:m:"NO_SUB",profile_age_rating:K?C(K)?K:m:"NO_SUB",profile_name:Z?"string"==typeof Z?Z:m:""},eS={event_name:e?"string"==typeof e?e:m:"",sequence_id:er?C(er)||P(er)?er:m:"",distinct_id:en?"string"==typeof en?en:m:"",timestamp:ee?C(ee)?ee:m:""};y.application=ey,y.device=e_,y.user=ew;let ek={},ex={},eE={},eT={},eA={}
25,eC={},eP={},eI={};F&&(ek=(e=>{let{subscriber_type:t,asset_type:r,content_type:n,stream_type:i,asset_id:o,asset_title:a,parent_id:s,parent_title:l,runtime:c,duration:u,sub_channel:d,navigation_category:h,season:p,episode:f}=e,g=t,y=r||"",v=n||"",b=i||"";return I({asset_id:o?"string"==typeof o?o:m:"",asset_title:a?"string"==typeof a?a:m:"",parent_id:s?"string"==typeof s?s:m:"",parent_title:l?"string"==typeof l?l:m:"",runtime:c?C(c)||P(c)?c:m:null,duration:u?C(u)||P(u)?u:m:null,asset_type:y,asset_subscriber_type:g,asset_content_type:v,asset_stream_type:b,sub_channel:d&&"string"==typeof d?d:"",navigation_category:h?"string"==typeof h?h:m:"",season:p?C(p)||P(p)?p:m:null,episode:f?C(f)||P(f)?f:m:null})})(F),ex=(e=>{let{drm_type:t,view_time:r}=e,n=null;return s&&null!=s.currentTime&&s.currentTime>=0&&(n=1e3*Math.floor(s.currentTime)),I({player_position:null!==n?n:null,view_time:Math.floor(r)?Math.floor(r):0,drm_type:t||"none"})})(F),eE=(t=>{let{network_type:r,variant_url:n,bandwidth:i,codec:o,delay:a,dropped_frames:s,error_code:c,error_message:u}=t,d=r?R?N.includes(r)?r:m:r:null;return I({variant_url:n?"string"==typeof n?n:m:"",resolution:ef?"string"==typeof ef?ef:m:"",bandwidth:l?C(l)||P(l)?Math.floor(l/1e3):m:0,codec:o?"string"==typeof o?o:m:"",network_type:d||null,delay:("LOADING"==e||"BUFFERING_END"==e)&&a&&C(a)?a:null,dropped_frames:"FRAME_DROP"==e&&s?C(s)?s:m:null,error_code:"PLAYBACK_ERROR"==e&&c?"string"==typeof c?c:m:"",error_message:"PLAYBACK_ERROR"==e&&u?"string"==typeof u?u:m:""})})(F),eT=(e=>{let{ad_url:t,tag_id:r,ad_provider:n,ad_cue_point:i,ad_duration:o}=e;return I({ad_url:t?"string"==typeof t?t:m:"",tag_id:r?"string"==typeof r?r:m:"",ad_provider:n?"string"==typeof n?n:m:"",ad_cue_point:0==i||C(i)?i:P(i)?Math.trunc(i):null,ad_duration:o?C(o)||P(o)?o:m:null})})(F),eA=(e=>{let{bumper_id:t,bumper_title:r,duration:n,bumper_url:i,position:o}=e;return I({bumper_id:t?"string"==typeof t?t:m:"",bumper_title:r?"string"==typeof r?r:m:"",duration:n?C(n)||P(n)?n:m:null,bumper_url:i?"string"==typeof i?i:m:"",position:o?C(o)||P(o)?o:m:null})})(F)),eC=(()=>I({location_type:J,event_location_id:X?"string"==typeof X?X:m:""}))(),eP=(()=>{var e;return I({rating:null==t?void 0:null===(e=t.misc)||void 0===e?void 0:e.rating,rating_type:"thumbsup"})})(),eI=(e=>{var r,n,i,o,a,s,l;return I({search_query:(null==t?void 0:null===(r=t.misc)||void 0===r?void 0:r.search_query)?"string"==typeof(null==t?void 0:null===(n=t.misc)||void 0===n?void 0:n.search_query)?null==t?void 0:null===(i=t.misc)||void 0===i?void 0:i.search_query:m:null,search_result_size:(null==t?void 0:null===(o=t.misc)||void 0===o?void 0:o.search_result_size)?C(null==t?void 0:null===(a=t.misc)||void 0===a?void 0:a.search_result_size)||P(null==t?void 0:null===(s=t.misc)||void 0===s?void 0:s.search_result_size)?null==t?void 0:null===(l=t.misc)||void 0===l?void 0:l.search_result_size:m:null})})(0);let eO=e=>{let{purchase_type:t,product_id:r,price:n,currency:i,offer_token:o,period:a,wallet_deduction:s,error_code:l,direct_deduction:c,error_message:u}=e,d=t?R?D.includes(t)?t:m:t:null;return I({product_id:r?"string"==typeof r?r:m:null,product_type:d,price:n?C(n)||P(n)?n:m:null,currency:i?"string"==typeof i?i:m:null,offer_token:o?"string"==typeof o?o:m:"none",period:a?C(a)||P(a)?a:m:null,wallet_deduction:s?C(s)||P(s)?s:m:null,direct_deduction:c?C(c)||P(c)?c:m:null,error_code:l?"string"==typeof l?l:m:null,error_message:u?"string"==typeof u?u:m:null})},eN={};H&&(eN=eO(H)),eg&&R&&B.includes(eg);let eD=e,eR={};switch(eD){case"INIT":case"LOGIN":case"LAUNCH":case"LOGOUT":case"EXIT":case"REGISTRATION":case"PROFILE_SWITCH":f+=1,eR={event:eS};break;case"REGISTRATION_FAIL":f+=1;let{registration_fail_error_code:eL,registration_fail_error_message:eM}=z;eR={event:eS,email_address:ew.user_id,error_code:eL||"",error_message:eM||""};break;case"LOGIN_FAIL":f+=1;let{login_fail_error_code:ej,login_fail_error_message:eB}=$;eR={event:eS,email_address:ew.user_id,error_code:ej||"",error_message:eB||""};break;case"START":"STOP"!=a.lastEvent&&(f+=1),o=s.currentTime,ex&&(ex.view_time=0),eR={event:eS,asset:ek,video:ex};break;case"STOP":f+=1,a.prevState="",ex.view_time="live"==ek.asset_stream_type?0:g(s.currentTime),o=0,eR={event:eS,asset:ek,video:ex};break;case"PAUSE":"PAUSE"!=a.lastEvent&&(f+=1),ex.view_time="live"==ek.asset_stream_type?0:g(s.currentTime),eR={event:eS,asset:ek,video:ex};break;case"RESUME":f+=1,o=s.currentTime,ex.view_time=0,eR={event:eS,asset:ek,video:ex};break;case"HEARTBEAT":f+=1,o=s.currentTime,ex.view_time=120,eR={event:eS,asset:ek,video:ex};break;case"TRACK_CHANGE":f+=1;let{track_type:eU,track_id:eF,track_language:eH,track_name:ez}=F;eR={event:eS,asset:ek,video:ex,track_type:eU?R?O.includes(eU)?eU:m:eU:null,track_id:eF?"string"==typeof eF?eF:m:"",track_language:eH?"string"==typeof eH?eH:m:"",track_name:ez?"string"==typeof ez?ez:m:""};break;case"AD_BREAK_START":f+=1;let{totalAds:e$,maxDuration:eq}=F;ex.view_time="live"==ek.asset_stream_type?0:(null==s?void 0:null===(c=s.C)||void 0===c?void 0:c.currentTime)?g(null==s?void 0:null===(u=s.C)||void 0===u?void 0:u.currentTime):Math.floor(o),ex.player_position=(null==s?void 0:null===(d=s.C)||void 0===d?void 0:d.currentTime)?1e3*Math.floor(null==s?void 0:null===(h=s.C)||void 0===h?void 0:h.currentTime):1e3*Math.floor(o),eR={event:eS,asset:ek,video:ex,max_ads_requested:e$,total_duration:eq};break;case"AD_BREAK_STOP":f+=1,ex.view_time=0,ex.player_position=(null==s?void 0:null===(v=s.C)||void 0===v?void 0:v.currentTime)?1e3*Math.floor(null==s?void 0:null===(b=s.C)||void 0===b?void 0:b.currentTime):1e3*Math.floor(o),eR={event:eS,asset:ek,video:ex};break;case"START_AD":f+=1,ex.view_time=0,ex.player_position=(null==s?void 0:null===(_=s.C)||void 0===_?void 0:_.currentTime)?1e3*Math.floor(null==s?void 0:null===(w=s.C)||void 0===w?void 0:w.currentTime):1e3*Math.floor(o);let{ad_break_start_id:eW}=F;eR={event:eS,asset:ek,ad:eT,video:ex,ad_break_start_id:eW};break;case"STOP_AD":f+=1;let{ad_duration:eV}=F;ex.view_time=eV,ex.player_position=(null==s?void 0:null===(S=s.C)||void 0===S?void 0:S.currentTime)?1e3*Math.floor(null==s?void 0:null===(k=s.C)||void 0===k?void 0:k.currentTime):1e3*Math.floor(o),eR={event:eS,asset:ek,ad:eT,video:ex};break;case"NO_AD_RCVD":f+=1,ex.player_position=(null==s?void 0:null===(x=s.C
25)||void 0===x?void 0:x.currentTime)?1e3*Math.floor(null==s?void 0:null===(E=s.C)||void 0===E?void 0:E.currentTime):1e3*Math.floor(o),ex.view_time="live"==ek.asset_stream_type?0:(null==s?void 0:null===(T=s.C)||void 0===T?void 0:T.currentTime)?g(null==s?void 0:null===(A=s.C)||void 0===A?void 0:A.currentTime):Math.floor(o),eR={event:eS,asset:ek,ad:eT,video:ex};break;case"BUMPER_START":case"BUMPER_STOP":case"BUMPER_SKIP":case"BUMPER_PAUSE":case"BUMPER_RESUME":case"BUMPER_ERROR":f+=1,eR={event:eS,asset:ek,bumper:eA,video:ex};break;case"CASTER_START":case"CAST_START":case"CAST_STOP":case"CAST_PAUSE":case"CAST_RESUME":case"CAST_HEARTBEAT":case"CASTER_STOP":case"CAST_ERROR":case"CAST_FAIL":case"CAST_AD_BREAK_START":case"CAST_AD_BREAK_STOP":eR={event:eS,asset:ek,video:ex};break;case"CAST_START_AD":case"CAST_STOP_AD":case"CAST_NO_AD_RCVD":eR={event:eS,asset:ek,ad:eT,video:ex};break;case"LOADING":case"BANDWIDTH":f+=1,eR={event:eS,asset:ek,qoe:eE};break;case"BUFFERING_START":f+=1,eR={event:eS,asset:ek,video:ex,qoe:eE};break;case"BUFFERING_END":f+=1;let{buffer_delay:eG}=F;eR={event:eS,asset:ek,video:ex,qoe:eE};break;case"PLAYBACK_ERROR":f+=1;let{player_error_code:eK,player_error_message:eZ}=F;eR={event:eS,asset:ek,video:ex,qoe:eE};break;case"CLICK":let{location_type:eY,event_location_id:eJ,rating_type:eX,rating:eQ,platform:e0,search_query:e1,search_result_size:e2,output_received_at:e4,input_sent_at:e3,output:e6,input:e5,recommendations:e8}=q;eR={event_name:eD,application:ey,device:e_,event:eS,location_type:eY?R?j.includes(eY)?eY:m:eY:"",event_location_id:eJ?"string"==typeof eJ?eJ:m:""};break;case"SCROLL":let e7=q.location_type?R?j.includes(eY)?eY:m:eY:"";eR={event_name:eD,application:ey,device:e_,event:eS,location_type:e7,event_location_id:q.event_location_id?"string"==typeof q.event_location_id?q.event_location_id:m:""};break;case"IMPRESSION":q.location_type&&R&&j.includes(eY),eR={event_name:eD,application:ey,device:e_,event:eS,location_type:e7,event_location_id:q.event_location_id?"string"==typeof q.event_location_id?q.event_location_id:m:""};break;case"VISIT":f+=1,eR={event:eS,user_behaviour:eC};break;case"ASSET_RATE":f+=1,eR={event:eS,asset:ek,rating:eP};break;case"PURCHASE_INIT":f+=1,eR=Object.keys(ek).length>0?{event:eS,asset:ek,purchase:eN}:{event:eS,purchase:eN};break;case"PURCHASE_SUCCESS":case"PURCHASE_ERROR":f+=1,eR={event:eS,asset:ek,purchase:eN};break;case"ADD_TO_WATCHLIST":case"REMOVE_FROM_WATCHLIST":f+=1,eR={event:eS,asset:ek};break;case"SHARE_ASSET":eR={event_name:eD,application:ey,device:e_,event:eS,asset:ek,platform:e0?"string"==typeof e0?e0:m:""};break;case"SEARCH":f+=1,eR={event:eS,search:eI};break;case"CHATBOT_MESSAGE":eR={event_name:eD,application:ey,device:e_,user:ew,event:eS,input:e5?"string"==typeof e5?e5:m:"",input_sent_at:e3?C(e3)||P(e3)?e3:m:"",output:e6?"string"==typeof e6?e6:m:"",output_received_at:e4?C(e4)||P(e4)?e4:m:"",recommendations:e8||[]};break;case"CHATBOT_RATE":eR={event_name:eD,application:ey,device:e_,user:ew,event:eS,input:e5?"string"==typeof e5?e5:m:"",output:e6?"string"==typeof e6?e6:m:"",rating:eQ?C(eQ)||P(eQ)?eQ:m:"",rating_type:RatingType}}return eR},b=async(e,t,r,i)=>{if(Object.keys(l).length>=1){let t={datatype:"json",url:e,bdata:l,type:"analyticslog"},r=t.url?t.url:"";r&&r.trim().length>0&&(0,n.xN)(t,e=>{console.log("Analytics sent successfully",e),l={},s=[]})}};function _(e,t){s.push(t)}function w(e,t,r,n,i){p=window.sessionStorage.getItem("sessionID")?window.sessionStorage.getItem("sessionID"):"",l.session_id=p,c=e,u=r,d=n,h=i;let o=v(t,r,e,n,i);_(t,o),l.common_parameters=y,l.events=s,"EXIT"===t&&S()}function S(){b(c,u,d,h)}},32661:function(e,t,r){"use strict";var n=r(85893),i=r(67294),o=r(89755),a=r.n(o);let s=e=>{let{msg:t,removeAlert:r,type:o}=e;return(0,i.useEffect)(()=>{let e=setTimeout(()=>{r()},2e3);return()=>clearTimeout(e)},[]),(0,n.jsxs)("div",{className:"error"==o?"alert-box-err":"alert-box-success",children:[(0,n.jsx)("div",{children:(0,n.jsx)(a(),{src:"error"==o?"//images/icons/warning.svg":"//images/icons/success.svg",width:"35",height:"35",alt:"warning-icon"})}),(0,n.jsx)("div",{children:(0,n.jsx)("p",{children:t})})]})};t.Z=s},91639:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(45312);let o=e=>{let t=e.className?" "+e.className:"",{devtype:r,type:o}=e;return(0,n.jsxs)("div",{className:"custom-modal-header"+t,children:[(0,n.jsx)("h2",{style:"row8"==o?{color:i.rowEightColor}:(null==e?void 0:e.isTitleColor)?{color:null==e?void 0:e.isTitleColor}:{color:i.appHighlightColor},children:e.title}),"tv"==r?(0,n.jsx)("span",{className:"Subscriptions-will-be-charged",style:{color:(null==e?void 0:e.isTitleColor)?null==e?void 0:e.isTitleColor:i.channelPrimaryColor},children:"Follow the instructions in your tv and enjoy ad free contents."}):(0,n.jsx)("span",{})]})};t.Z=o},34572:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});
25var n=r(85893),i=r(67294),o=r(14312),a=r(93535),s=r(80539),l=r(68777),c=r(45312);function u(e){let{children:t,...r}=e,i=r.textcolor,o=r.bgcolor;return(0,n.jsx)(d,{onClick:()=>r.onClick(),className:"promo-playbtn",style:{color:i,background:o},...r,children:t})}let d=l.ZP.button.withConfig({componentId:"sc-27bbb158-0"})(["background:transparent;border-radius:5px;border:none;font-size:14px;cursor:pointer;outline:none;color:#ffffff;&:disabled{opacity:0.3;}&:hover{color:"," !important;}"],c.appHighlightColor);var h=u;r(89755);var p=r(32415),f=r(95639),m=r(89453),g=e=>{let{open:t}=e,[r,l]=(0,i.useState)(t),c=(e,t)=>{"Escape"!==e.code&&27!==e.keyCode&&l(!1)};return(0,i.useEffect)(()=>(document.querySelector(".main-container")&&(document.documentElement.style.overflow="hidden"),()=>{document.documentElement.style.overflow="auto"}),[e]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"login-signup-space",id:"login_signup_space",children:r&&(0,n.jsx)(a.Z,{"aria-labelledby":"transition-modal-title","aria-describedby":"transition-modal-description",open:r,onClose:c,closeAfterTransition:!0,BackdropComponent:o.Z,BackdropProps:{timeout:500},className:"custom-popup",children:(0,n.jsx)(s.Z,{in:r,children:(0,n.jsxs)("div",{className:"modal-container-full",style:{backgroundColor:e.bgclr?e.bgclr:""},children:[e.noLivedata&&(0,n.jsx)(m.Z,{_className:"back-button-nodata-container",elemid:"back_button_container",router:e.router,IsliveTv:e.IsliveTv}),(0,n.jsx)("div",{className:"modal-popup-button",children:(0,n.jsx)("div",{className:"cancel-log-button",children:e.showCancel&&(0,n.jsx)("div",{className:"log-close-icon",onClick:t=>e.closeModal(),children:(0,n.jsx)(h,{onClick:t=>{((0,p.ej)("rentLinkSignin")||(0,p.ej)("dtlLinkCookieSignin")||(0,p.ej)("searchLinkSignin"))&&((0,p.nJ)("rentLinkSignin"),(0,p.nJ)("searchLinkSignin"),(0,p.nJ)("dtlLinkCookieSignin"),e.closeModal())},children:(0,n.jsx)(f.Z,{})})})})}),e.noClass?(0,n.jsx)("div",{className:"modal-body-new1",children:e.children}):(0,n.jsx)("div",{className:"modal-body-new",children:e.children})]})})})})})}},33778:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(34572),o=r(91639);let a=e=>{let t=e.type;return(0,n.jsx)(i.Z,{open:e.open,showCancel:!1,children:(0,n.jsx)("div",{style:{marginTop:"80px"},className:"custom-modal-container",children:(0,n.jsx)(o.Z,{title:"delete"==t||"row8"==t?"Please Wait.":"Please Wait, Signing You Out.",type:t})})})};t.Z=a},80423:function(e,t,r){"use strict";var n=r(85893),i=r(34572),o=r(59047),a=r(83989),s=r(31028),l=r(91639),c=r(11163),u=r(67294),d=r(32415),h=r(58239),p=r(45312);let f=e=>{let t="Want to watch this movie?",r="You must be a VIP member to watch this title",f=e.okButtonLabel?e.okButtonLabel:"See plans",m=e.cancelButtonLabel?e.cancelButtonLabel:"No, thanks",g=!1!=e.isCancelBtn||e.isCancelBtn;(0,u.useEffect)(()=>{let e=document.getElementById("main-container");return e&&(e.style.height="0vh"),()=>{e.style.height="auto"}},[]);let y=(0,u.useRef)(!1);(0,u.useEffect)(()=>{if("emailnotification"==e.datafor){let t={ironCookie:(null==e?void 0:e.ironCookie)?e.ironCookie:"",selectedProfile:(null==e?void 0:e.selectedProfile)?e.selectedProfile:"",location_type:"page",event_location_id:"notification_screen",shelves:null},r=(0,d.m1)(t),n=e&&e.urls&&e.urls.logURLV2?(0,d.tY)(e.urls.logURLV2):"";!y.current&&(y.current=!0,p.isVisitPageOn&&(0,h.qe)(n,"VISIT",r))}},[]),e.title&&(t=e.title),e.desc&&(r=e.desc);let v=(0,c.useRouter)();return(0,n.jsx)(i.Z,{open:e.showAlert,closeModal:()=>e.setShowAlert(!1),showCancel:!1,children:(0,n.jsxs)("div",{className:"custom-modal-container fadeInOut",children:[(0,n.jsx)(l.Z,{title:t}),(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(o.Z,{children:r}),(0,n.jsxs)("div",{className:"modal-buttons-new",style:{justifyContent:g?"space-between":"center"},children:[(0,n.jsx)(s.Z,{disabled:!1,onClick:()=>{e.okAction?e.okAction():v.push({pathname:"/plans"})},children:f}),g&&(0,n.jsx)(s.Z,{disabled:!1,onClick:()=>{e.cancelButtonAction&&e.cancelButtonAction(),"emailnotification"==e.datafor?e.setShowAlert(!0):e.setShowAlert(!1)},children:m})]})]})]})})};t.Z=f},80235:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(22024),o=r(41664),a=r.n(o),s=r(45312);function l(e){let{children:t,...r}=e,{menuOpen:o,dataFrom:l}=r,c=e=>{e.preventDefault()};return(0,n.jsx)("div",{className:"nav_main_logo_container",onClick:()=>{o||r.colapsemenu()},children:s.isNavLink?(0,n.jsx)(a(),{href:s.isNavLink,target:"_blank",title:s.LoginAppName+" Corp",children:(0,n.jsx)(i.zU,{})}):"hoopla"==l?(0,n.jsx)(a(),{href:"/",onClick:c,className:"curson-auto",children:(0,n.jsx)(i.zU,{})}):(0,n.jsx)(a(),{href:"/",children:(0,n.jsx)(i.zU,{})})})}t.Z=l},15755:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(68777),o=r(45312);let a=e=>{let{children:t,...r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s,{isplaywatchbtnHover:o.isplaywatchbtnHover,...r,children:t})})},s=i.ZP.div.withConfig({componentId:"sc-e33d68e5-0"})(["cursor:pointer;transition:",";&:hover{transform:",";img{filter:",";}}"],e=>e.isplaywatchbtnHover&&"transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),\n    box-shadow 0.25s ease",e=>e.isplaywatchbtnHover&&"translateY(-1px) scale(1.04)",o.isDove?"none":o.svgFilter);t.Z=a},22024:function(e,t,r){"use strict";r.d(t,{Ah:function(){return b},BT:function(){return f},D0:function(){return C},F8:function(){return _},GH:function(){return T},IJ:function(){return A},Oe:function(){return h},RR:function(){return P},Sc:function(){return g},YE:function(){return d},ZJ:function(){return x},_k:function(){return w},hF:function(){return v},hY:function(){return m},jV:function(){return y},kW:function(){return E},nl:function(){return p},o4:function(){return S},z1:function(){return k},zU:function(){return u}});
25var n=r(85893),i=r(89755),o=r.n(i),a=r(96346),s=r(45312),l=r(11163),c=r.n(l);let u=e=>{let t=e.width?e.width:s.logoWidth,r=e.height?e.height:s.logoHeight,i=e.alt?e.alt:s.displayAppName+" Logo ";return(0,n.jsx)(o(),{src:s.channelLogo,alt:i,width:t,height:r,priority:!0,className:"retrocrushlogo"})},d=e=>"genre"===e.renderFrom?e.genreArr&&e.genreArr.map((t,r)=>t.shelf_style&&t.shelf_style.bg_img&&e.initialSlide==r?(0,n.jsx)(o(),{className:"img-fluid",src:t.shelf_style.bg_img,width:767,height:511,alt:"Generic Background"},r):"dove"!==s.appName&&e.initialSlide==r&&(0,n.jsx)(o(),{className:"img-fluid",src:"//images/generic_bg.png",width:767,height:511,alt:"Generic Background"},r)):"watchlist"===e.renderFrom&&e.watchlistArr&&e.watchlistArr.bg_img?(0,n.jsx)(o(),{className:"img-fluid",src:e.watchlistArr.bg_img,width:767,height:511,alt:"Generic Background"}):"dove"!==s.appName&&(0,n.jsx)(o(),{className:"img-fluid",src:"//images/generic_bg.png",width:767,height:511,alt:"Generic Background"}),h=e=>{let t=e.showText;return t="mylibrary"!=e.dataFor&&"continuewatch"!=e.dataFor,(0,n.jsxs)("div",{children:[(0,n.jsx)(o(),{src:t?s.noDataTextIcon:s.noDataFoundNew,width:200,height:200,alt:"No Data Found"}),t?"":"mylibrary"==e.dataFor?(0,n.jsx)("p",{className:s.isDove?"dovewatchlistNoData":"watchlistNoData",children:"You have not added any titles to your Watchlist"}):(0,n.jsx)("p",{className:s.isDove?"dovewatchlistNoData":"watchlistNoData",children:"You have not watched any titles yet"})]})},p=e=>{var t;return(0,n.jsxs)("div",{style:{margin:"190px auto",textAlign:"center",width:"430px"},children:[(0,n.jsx)(o(),{className:"error_msg_img",src:"//images/ServerError.png",width:200,height:130,alt:"Oops! something went wrong. Please try again."}),e.data&&1001==e.data.code?(0,n.jsx)("h2",{style:{color:"grey"},children:e&&(null===(t=e.data)||void 0===t?void 0:t.message)?e.data.message:"Oops! something went wrong. Please try again."}):(0,n.jsx)("h2",{style:{color:"grey"},children:e&&e.msg?e.msg:"Oops! something went wrong. Please try again."}),e.data&&1001==e.data.code?(0,n.jsx)(a.Z,{onClick:()=>{c().push("/home")},style:{marginTop:"16px",textAlign:"center"},className:"login-watchlist",children:"Home"}):(0,n.jsx)(a.Z,{onClick:()=>c().reload(window.location.pathname),style:{marginTop:"16px",textAlign:"center"},className:"login-watchlist",children:"Retry"})]})},f=()=>("undefined"!==document&&document.getElementById("header-nav")&&(document.getElementById("header-nav").style.display="none"),(0,n.jsxs)("div",{style:{margin:"120px auto",textAlign:"center",width:"430px"},children:[(0,n.jsx)("h2",{style:{fontSize:"90px",color:"grey"},children:"✈"}),(0,n.jsx)("h2",{style:{color:"grey"},children:"You're Offline. Try checking your connection."})]})),m=e=>(0,n.jsx)(o(),{className:"img-fluid",src:s.errorPageLink,width:"dove"==s.appName?1e3:600,height:600,alt:"Page Not Found"}),g=e=>(0,n.jsx)(o(),{className:"img-fluid",src:"//images/icons/nodevice.png",width:102,height:102,alt:"Device Not Found"}),y=e=>{let t=e.width?e.width:30,r=e.height?e.height:30,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/arrow-back-white.svg",alt:i,width:t,height:r,className:e.className?e.className:""})},v=e=>{let t=e.width?e.width:30,r=e.height?e.height:30,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/home_icon_svg.svg",alt:i,width:t,height:r,className:e.className?e.className:""})},b=e=>{let t=e.width?e.width:30,r=e.height?e.height:30,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/settings-white.svg",alt:i,width:t,height:r,className:e.className?e.className:""})},_=e=>{let t=e.width?e.width:30,r=e.height?e.height:30,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/content-white.svg",alt:i,width:t,height:r,className:e.className?e.className:""})},w=e=>{let t=e.width?e.width:54,r=e.height?e.height:54,i=e.alt?e.alt:"Cineverse player";
25return(0,n.jsx)(o(),{src:e.fill?"//images/player-icons/cancel_filled.svg":"//images/player-icons/cancel-white.svg",alt:i,width:t,height:r,className:e.className?e.className:"",style:s.isDove&&"more-player"==e.callfrom?{filter:"brightness(0)"}:{},onClick:()=>e.onClick?e.onClick():console.log()})},S=e=>{let t=e.width?e.width:70,r=e.height?e.height:70,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/play_icon.svg",alt:i,width:t,height:r,priority:!0,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})},k=e=>{let t=e.width?e.width:70,r=e.height?e.height:70,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/pause_icon.svg",alt:i,width:t,height:r,priority:!0,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})},x=e=>{let t=e.width?e.width:54,r=e.height?e.height:54,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/replay-10-white.svg",alt:i,width:t,height:r,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})},E=e=>{let t=e.width?e.width:54,r=e.height?e.height:54,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/forward-10-white.svg",alt:i,width:t,height:r,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})},T=e=>{let t=e.width?e.width:30,r=e.height?e.height:30,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/volume_up_white.svg",alt:i,width:t,height:r,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})},A=e=>{let t=e.width?e.width:30,r=e.height?e.height:30,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/volume_off_white.svg",alt:i,width:t,height:r,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})},C=e=>{let t=e.width?e.width:20,r=e.height?e.height:20,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/fullscreen_icon.svg",alt:i,width:t,height:r,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})},P=e=>{let t=e.width?e.width:20,r=e.height?e.height:20,i=e.alt?e.alt:"Cineverse player";return(0,n.jsx)(o(),{src:"//images/player-icons/nomalscreen_icon.svg",alt:i,width:t,height:r,className:e.className?e.className:"",onClick:()=>e.onClick?e.onClick():console.log()})}},96346:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(68777),o=r(45312);function a(e){let{children:t,...r}=e;return(0,n.jsx)(s,{...r,isDove:o.isDove,children:t})}let s=i.ZP.button.withConfig({componentId:"sc-60f76daf-0"})(["background:transparent;border-radius:15px;font-size:19px;font-weight:400;margin:0 20px 0px 0px;border:1px solid ",";color:",";cursor:pointer;width:161px;height:52px;&:disabled{opacity:0.3;}&:hover{background:",";border:1px solid ",";color:#000000;}"],e=>{let{isDove:t}=e;return t?"#353a47":"#ffff"},e=>{let{isDove:t}=e;return t?"#353a47":"white"},o.channelPrimaryColor,o.channelPrimaryColor);t.Z=a},35007:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(68777),o=r(45312);function a(e){let{children:t,...r}=e,i=r.textcolor,o=r.bgcolor;return(0,n.jsx)(s,{onClick:()=>r.onClick(),className:"promo-playbtn",style:{color:i,background:o},...r,children:t})}let s=i.ZP.button.withConfig({componentId:"sc-e72b0145-0"})(["background:transparent;border-radius:5px;border:none;font-size:14px;cursor:pointer;width:147px;height:52px;outline:none;color:#ffffff;&:disabled{opacity:0.3;}&:hover{color:"," !important;}"],e=>(null==e?void 0:e.isDocu_soreal_color)?null==e?void 0:e.isDocu_soreal_color:o.appHighlightColor);t.Z=a},60520:function(e,t,r){"use strict";r.d(t,{D7:function(){return v},DJ:function(){return h},DK:function(){return f},Ft:function(){return g},G7:function(){return p},Ks:function(){return _},UV:function(){return m},VG:function(){return u},cb:function(){return y},fT:function(){return d},g3:function(){return b},rF:function(){return c}});var n=r(85893);r(67294);var i=r(64347),o=r(68573),a=r(84169),s=r(29448),l=r(45312);function c(){return(0,n.jsxs)("div",{className:"homepage-about-space",children:[(0,n.jsxs)("div",{className:"d-flex-column contact-homepage about-sp
25ace",children:[(0,n.jsx)("div",{className:"homeplaceholder-title-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:380,height:45,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW"})}),(0,n.jsx)("div",{className:"homeplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:450,height:25,className:l.isDove?"dove-skeleton-rectangle-div halfW":"skeleton-rectangle-div halfW"})}),(0,n.jsx)("div",{className:"homeplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:450,height:25,className:l.isDove?"dove-skeleton-rectangle-div halfW":"skeleton-rectangle-div halfW"})}),(0,n.jsx)("div",{className:"homeplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:420,height:25,className:l.isDove?"dove-skeleton-rectangle-div halfW":"skeleton-rectangle-div halfW"})}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.ZP,{container:!0,children:[(0,n.jsx)(a.Z,{className:"homeplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:150,height:45,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)(a.Z,{className:"homeplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:150,height:45,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})})]})})]}),(0,n.jsx)("div",{className:"HMS-strip-loader",children:(0,n.jsx)(d,{heightval:150})})]})}function u(){return(0,n.jsxs)("div",{className:"d-flex-column contact channel-about-space",children:[(0,n.jsx)("div",{className:"Channelplaceholder-title-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:400,height:100,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)(d,{heightval:150})]})}function d(e){let t=e.gridno?e.gridno:6,r=e.colmd?e.colmd:3,s=e.collg?e.collg:2;e.widthval&&e.widthval;let c=e.heightval?e.heightval:100,u=e.class?"search_loader":"placeholder-griddiv",d=[];for(let e=0;e<t;e++)d.push((0,n.jsx)(o.ZP,{item:!0,lg:s,md:r,xs:4,sm:4,className:u,children:(0,n.jsx)(a.Z,{spacing:2,children:(0,n.jsx)(i.Z,{className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div",variant:"rectangular",height:c,style:{zIndex:1,margin:"3px"}},"grid-"+e)},"placeholder_"+e)},e+"__scroll_parent_img"));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.ZP,{container:!0,children:d})})}function h(e){let t=e.gridno?e.gridno:6,r=e.colmd?e.colmd:3,s=e.collg?e.collg:2,c=e.heightval?e.heightval:100,u=e.class?"search_loader":"placeholder-griddiv",d=[];for(let e=0;e<t;e++)d.push((0,n.jsx)(o.ZP,{item:!0,lg:s,md:r,xs:4,sm:4,className:u,children:(0,n.jsx)(a.Z,{spacing:2,children:(0,n.jsx)(i.Z,{className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div",variant:"rectangular",height:c,style:{zIndex:1,margin:"3px"}},"grid-"+e)},"placeholder_"+e)},e+"__scroll_parent_img"));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"aboutusplaceholder-title-div home-skeleton",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:180,height:30,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)(o.ZP,{container:!0,children:d})]})}function p(e){let t=e.gridno?e.gridno:6,r=e.colmd?e.colmd:2,s=e.heightval?e.heightval:100,c=e.class?"search_loader":"placeholder-griddiv",u=[];for(let e=0;e<t;e++)u.push((0,n.jsx)(o.ZP,{item:!0,md:r,xs:4,sm:4,className:c,children:(0,n.jsx)(a.Z,{spacing:2,children:(0,n.jsx)(i.Z,{className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div",variant:"rectangular",height:s,style:{zIndex:1,margin:"3px"}},"grid-"+e)},"placeholder_"+e)},e+"__scroll_parent_img"));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.ZP,{container:!0,children:u})})}function f(){return(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("div",{className:"d-flex-column contact-homepage promo-space",children:[(0,n.jsx)("div",{className:"homeplaceholder-title-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:380,height:45,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW"})}),(0,n.jsx)("div",{className:"homeplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:450,height:25,className:l.isDove?"dove-skeleton-rectangle-div halfW":"skeleton-rectangle-div halfW"})}),(0,n.jsx)("div",{className:"homeplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:450,height:25,className:l.isDove?"dove-skeleton-rectangle-div halfW":"skeleton-rectangle-div halfW"})}),(0,n.jsx)("div",{className:"homeplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:420,height:25,className:l.isDove?"dove-skeleton-rectangle-div halfW":"skeleton-rectangle-div halfW"})}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.ZP,{container:!0,children:[(0,n.jsx)(a.Z,{className:"homeplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:150,height:45,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)(a.Z,{className:"homeplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:150,height:45,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})})]})})]})})}function m(){return(0,n.jsx)("div",{className:"d-flex-column contact devices-list-area dove-devices-list-area",children:(0,n.jsx)("div",{children:(0,n.jsxs)(o.ZP,{container:!0,children:[(0,n.jsxs)("div",{className:"device-header",children:[(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",style:{marginLeft:"70px"},children:(0,n.jsx)(i.Z,{variant:"rectangular",width:600,height:25,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",style:{marginLeft:"110px"},children:(0,n.jsx)(i.Z,{variant:"rectangular",width:500,height:25,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})})]}),(0,n.jsxs)("div",{className:"Detailsplaceholder-side-div",children:[(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div device-header",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:700,height:30,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div device-header",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:700,height:30,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div device-header",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:700,height:30,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})})]})]})})})}function g(){return(0,n.jsxs)("div",{className:"d-flex-column contact Detailsplaceholder-space",children:[(0,n.jsx)("div",{className:"Detailsplaceholder-title-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:380,height:45,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:450,height:25,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{children:(0,n.jsx)(o.ZP,{container:!0,children:(0,n.jsx)(a.Z,{className:"Detailsplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:150,height:45,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})})})}),(0,n.jsxs)("div",{className:"d-flex",children:[(0,n.jsx)(a.Z,{className:"Detailsplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"circular",width:45,height:45,className:l.isDove?"dove-skeleton-circular-div":"skeleton-circular-div"})}),(0,n.jsx)(a.Z,{className:"Detailsplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"circular",width:45,height:45,className:l.isDove?"dove-skeleton-circular-div":"skeleton-circular-div"})}),(0,n.jsx)(a.Z,{className:"Detailsplaceholder-button-div",children:(0,n.jsx)(i.Z,{variant:"circular",width:45,height:45,className:l.isDove?"dove-skeleton-circular-div":"skeleton-circular-div"})})]}),(0,n.jsx)("div",{children:(0,n.jsxs)(o.ZP,{container:!0,children:[(0,n.jsxs)("div",{className:"Detailsplaceholder-side-div",children:[(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:710,height:20,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:705,height:20,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:714,height:20,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:703,height:20,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:350,height:20,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:340,height:20,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})}),(0,n.jsx)("div",{className:"Detailsplaceholder-txt-div",children:(0,n.jsx)(i.Z,{variant:"rectangular",width:345,height:20,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div"})})]})]})})]})}let y=()=>(0,n.jsx)("div",{className:"center-loader-div",children:(0,n.jsx)(s.Z,{})});function v(){let e=[];for(let t=0;t<6;t++)e.push((0,n.jsx)(o.ZP,{item:!0,lg:2,md:3,xs:4,sm:4,children:(0,n.jsx)(a.Z,{spacing:2,children:(0,n.jsx)(i.Z,{className:l.isDove?"dove-skeleton-rectangle-div img-border":"skeleton-rectangle-div img-border",variant:"rectangular",width:200,height:190,style:{zIndex:1,margin:"3px"}},"grid-"+t)},"placeholder_"+t)},t+"__scroll_parent_img"));return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:"100%",height:90,className:l.isDove?"dove-skeleton-rectangle-div":"skeleton-rectangle-div",sx:{marginTop:15}})}),(0,n.jsx)("div",{style:{marginTop:50},children:(0,n.jsx)(o.ZP,{className:"profileimg-swiper-div",container:!0,children:e})}),(0,n.jsx)("div",{style:{marginTop:50},children:(0,n.jsx)(o.ZP,{className:"profileimg-swiper-div",container:!0,children:e})}),(0,n.jsx)("div",{style:{marginTop:50},children:(0,n.jsx)(o.ZP,{className:"profileimg-swiper-div",container:!0,children:e})})]})}function b(){return(0,n.jsxs)("div",{className:"skel-parent-cont",children:[(0,n.jsx)("div",{className:"skeleton-container",children:(0,n.jsxs)("div",{className:"skeleton-div-cont",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})})]})}),(0,n.jsx)("div",{className:"skeleton-container",children:(0,n.jsxs)("div",{className:"skeleton-div-cont",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})})]})}),(0,n.jsx)("div",{className:"skeleton-container",children:(0,n.jsxs)("div",{className:"skeleton-div-cont",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !importan
25t"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})})]})}),(0,n.jsx)("div",{className:"skeleton-container",children:(0,n.jsxs)("div",{className:"skeleton-div-cont",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})})]})}),(0,n.jsx)("div",{className:"skeleton-container",children:(0,n.jsxs)("div",{className:"skeleton-div-cont",children:[(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div  fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})}),(0,n.jsx)("div",{children:(0,n.jsx)(i.Z,{variant:"rectangular",width:320,height:180,className:l.isDove?"dove-skeleton-rectangle-div fullW":"skeleton-rectangle-div fullW",animation:"wave",sx:{bgcolor:"grey.800","@media (max-width: 1600px)":{width:"250px !important",height:"150px !important"},"@media (max-width: 1400px)":{width:"150px !important",height:"70px !important"},"@media (max-width: 1200px)":{width:"120px !important",height:"70px !important"}}})})]})})]})}function _(){return(0,n.jsx)("div",{className:"homepage-about-space",children:(0,n.jsxs)("div",{className:"HMS-strip-loader",children:[(0,n.jsx)(d,{heightval:150}),(0,n.jsx)(d,{heightval:150}),(0,n.jsx)(d,{heightval:150})]})})}},93380:function(e,t,r){"use strict";r.d(t,{Z:function(){return e9}});var n=r(85893),i=r(32415),o=r(67294),a=r(11163),s=r(34572),l=r(89755),c=r.n(l),u=r(15755),d=r(32661),h=r(12166),p=r(35591),f=r(96346),m=r(78971),g=r(62985),y=r(71231),v=r(77527),b=r(63366),_=r(87462),w=r(90512),S=r(94780),k=r(50375),x=r(1588),E=r(34867);function T(e){return(0,E.ZP)("MuiFormGroup",e)}(0,x.Z)("MuiFormGroup",["root","row","error"]);var A=r(57280),C=r(88962);let P=["className","row"],I=e=>{let{classes:t,row:r,error:n}=e,i={root:["root",r&&"row",n&&"error"]};return(0,S.Z)(i,T,t)},O=(0,v.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})(e=>{let{ownerState:t}=e;return(0,_.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})});var N=o.forwardRef(function(e,t){let r=(0,k.i)({props:e,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=(0,b.Z)(r,P),s=(0,A.Z)(),l=(0,C.Z)({props:r,muiFormControl:s,states:["error"]}),c=(0,_.Z)({},r,{row:o,error:l.error}),u=I(c);return(0,n.jsx)(O,(0,_.Z)({className:(0,w.Z)(u.root,i),ownerState:c,ref:t},a))}),D=r(2101),R=r(66643),L=r(87486);function M(e){return(0,E.ZP)("MuiSwitch",e)}var j=(0,x.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);let B=["className","color","edge","size","sx"],U=e=>{let{classes:t,edge:r,size:n,color:i,checked:o,disabled:a}=e,s={root:["root",r&&"edge".concat((0,R.Z)(r)),"size".concat((0,R.Z)(n))],switchBase:["switchBase","color".concat((0,R.Z)(i)),o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,S.Z)(s,M,t);return(0,_.Z)({},t,l)},F=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,R.Z)(r.edge))],t["size".concat((0,R.Z)(r.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(j.thumb)]:{width:16,height:16},["& .".concat(j.switchBase)]:{padding:4,["&.".concat(j.checked)]:{transform:"translateX(16px)"}}}}]}),H=(0,v.ZP)(L.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{["& .".concat(j.input)]:t.input},"default"!==r.color&&t["color".concat((0,R.Z)(r.color))]]}})(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(j.checked)]:{transform:"translateX(20px)"},["&.".concat(j.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(j.checked," + .").concat(j.track)]:{opacity:.5},["&.".concat(j.disabled," + .").concat(j.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(j.input)]:{left:"-100%",width:"300%"}}},e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,D.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(e=>{let[,t]=e;return t.main&&t.light}).map(e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(j.checked)]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r].mainCh
25annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,D.Fq)(t.palette[r].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(j.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,D.$n)(t.palette[r].main,.62):(0,D._j)(t.palette[r].main,.55))}},["&.".concat(j.checked," + .").concat(j.track)]:{backgroundColor:(t.vars||t).palette[r].main}}}})]}}),z=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}}),$=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}});var q=o.forwardRef(function(e,t){let r=(0,k.i)({props:e,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,c=(0,b.Z)(r,B),u=(0,_.Z)({},r,{color:o,edge:a,size:s}),d=U(u),h=(0,n.jsx)($,{className:d.thumb,ownerState:u});return(0,n.jsxs)(F,{className:(0,w.Z)(d.root,i),sx:l,ownerState:u,children:[(0,n.jsx)(H,(0,_.Z)({type:"checkbox",icon:h,checkedIcon:h,ref:t,ownerState:u},c,{classes:(0,_.Z)({},d,{root:d.switchBase})})),(0,n.jsx)(z,{className:d.track,ownerState:u})]})}),W=r(68777),V=r(45312),G=r(13077),K=(0,G.Z)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Z=(0,G.Z)((0,n.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Y=r(83008);let J=(0,v.ZP)("span",{shouldForwardProp:Y.Z})({position:"relative",display:"flex"}),X=(0,v.ZP)(K)({transform:"scale(1)"}),Q=(0,v.ZP)(Z)(e=>{let{theme:t,ownerState:r}=e;return(0,_.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})});var ee=function(e){let{checked:t=!1,classes:r={},fontSize:i}=e,o=(0,_.Z)({},e,{checked:t});return(0,n.jsxs)(J,{className:r.root,ownerState:o,children:[(0,n.jsx)(X,{fontSize:i,className:r.background,ownerState:o}),(0,n.jsx)(Q,{fontSize:i,className:r.dot,ownerState:o})]})},et=r(66048),er=o.createContext(void 0);function en(){return o.useContext(er)}function ei(e){return(0,E.ZP)("MuiRadio",e)}var eo=(0,x.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);let ea=["checked","checkedIcon","color","icon","name","onChange","size","className"],es=e=>{let{classes:t,color:r,size:n}=e,i={root:["root","color".concat((0,R.Z)(r)),"medium"!==n&&"size".concat((0,R.Z)(n))]};return(0,_.Z)({},t,(0,S.Z)(i,ei,t))},el=(0,v.ZP)(L.Z,{shouldForwardProp:e=>(0,Y.Z)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"medium"!==r.size&&t["size".concat((0,R.Z)(r.size))],t["color".concat((0,R.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,_.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,D.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(eo.checked)]:{color:(t.vars||t).palette[r.color].main}},{["&.".concat(eo.disabled)]:{color:(t.vars||t).palette.action.disabled}})});function ec(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let eu=(0,n.jsx)(ee,{checked:!0}),ed=(0,n.jsx)(ee,{});var eh=o.forwardRef(function(e,t){var r,i;let a=(0,k.i)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:l=eu,color:c="primary",icon:u=ed,name:d,onChange:h,size:p="medium",className:f}=a,m=(0,b.Z)(a,ea),g=(0,_.Z)({},a,{color:c,size:p}),y=es(g),v=en(),S=s,x=(0,et.Z)(h,v&&v.onChange),E=d;return v&&(void 0===S&&(S=ec(v.value,a.value)),void 0===E&&(E=v.name)),(0,n.jsx)(el,(0,_.Z)({type:"radio",icon:o.cloneElement(u,{fontSize:null!=(r=ed.props.fontSize)?r:p}),checkedIcon:o.cloneElement(l,{fontSize:null!=(i=eu.props.fontSize)?i:p}),ownerState:g,classes:y,name:E,checked:S,onChange:x,ref:t,className:(0,w.Z)(y.root,f)},m))}
25),ep=r(24091),ef=r(35007),em=r(91248),eg=r(60520),ey=r(57358),ev=function(e){let[t,r]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[u,d]=(0,o.useState)(!1),h=(0,a.useRouter)(),p=+new Date,f=async r=>{r&&r.preventDefault(),d(!0);let n=e&&e.urls&&e.urls.checkPasswordURL?(0,i.tY)(e.urls.checkPasswordURL):"",o=e&&e.ironCookie&&e.ironCookie.user&&e.ironCookie.user.email,a=n.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(o)),s={bdata:{password:t,time:p,sig:"123",ver:V.appVer},url:a};try{await (0,i._i)(s,t=>{d(!1),"yes"==t?"delete-pin"==e.ischeckpassopen?(e.handleDeleteProfilePin(),e.setdeleteOpenCheckPass(!1),e.setDeletePinView(!1),e.setDeleteComingFrom("")):"delete-profile"==e.ischeckpassopen?(e.handleDeleteProfile(),e.setDeleteComingFrom(""),e.setDeleteProfileShow(!1),e.setdeleteOpenCheckPass(!1)):e.setOpenCheckPass(!1):(console.log("failure"),c("Invalid Password"))})}catch(e){}};function v(){"delete-pin"==e.ischeckpassopen?(e.setdeleteOpenCheckPass(!1),e.setDeletePinView(!1)):"delete-profile"==e.ischeckpassopen?(e.setdeleteOpenCheckPass(!1),e.setDeleteProfileShow(!1),e.setEditProfileShow(!0)):"maturity-rating"==e.ischeckpassopen?(e.setMaturityShow(!1),e.setEditProfileShow(!0)):(e.setOpenCheckPass(!0),e.setEditProfileShow(!0),e.from&&e.setAuthPin("authPin"),e.setOpenSetPin(!1),e.from&&e.setPinTitle(""))}let b=()=>{h.push("/forgot-password")};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.Z,{open:!0,router:h,bgclr:"black",children:u?(0,n.jsx)(eg.cb,{}):(0,n.jsxs)("div",{children:[(0,n.jsxs)(ey.Z,{className:"custom-multipleprofile-modal-container",onSubmit:f,method:"POST",children:[(0,n.jsx)("h2",{className:"custom-multipleprofile-modal-header",children:"Enter password"}),(0,n.jsxs)("div",{className:"multiprofile-checkpass-input",children:[(0,n.jsx)(y.Z,{type:"password",className:l?"check-password-input errorMargin":"check-password-input normalMargin",placeholder:"Password",autoComplete:"off",value:t,onChange:e=>{let{target:t}=e;r(t.value),c("")},flheight:15}),l?(0,n.jsx)(ep.Z,{children:l}):null]}),(0,n.jsxs)("div",{className:"pin-button-container",children:[(0,n.jsx)(g.Z,{className:"multiple-profile-sbutton checkpass-btn",disabled:!(t.length>0),onClick:()=>{f()},children:"Verify"}),(0,n.jsx)(m.Z,{className:"multiple-profile-sbutton checkpass-btn",onClick:()=>{v()},children:"Back"})]})]}),(0,n.jsx)("div",{className:"forgot-pass-checkpass",children:(0,n.jsx)(em.Z,{className:"forgotText forget-text-align",children:(0,n.jsx)(ef.Z,{className:"forgotButton",onClick:()=>b(),href:"/forgot-password",disabled:!1,textcolor:V.appHighlightColor,children:"Forgot Password?"})})})]})})})},eb=r(84169),e_=r(39707);function ew(e){return(0,E.ZP)("MuiTypography",e)}(0,x.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);let eS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ek=e=>{let{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&"align".concat((0,R.Z)(t)),r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return(0,S.Z)(s,ew,a)},ex=(0,v.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,R.Z)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(e=>{let{theme:t,ownerState:r}=e;return(0,_.Z)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})}),eE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},eT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},eA=e=>eT[e]||e;var eC=o.forwardRef(function(e,t){let r=(0,k.i)({props:e,name:"MuiTypography"}),i=eA(r.color),o=(0,e_.Z)((0,_.Z)({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:h="body1",variantMapping:p=eE}=o,f=(0,b.Z)(o,eS),m=(0,_.Z)({},o,{align:a,color:i,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:h,variantMapping:p}),g=l||(d?"p":p[h]||eE[h])||"span",y=ek(m);return(0,n.jsx)(ex,(0,_.Z)({as:g,ref:t,ownerState:m,className:(0,w.Z)(y.root,s)},f))});
25function eP(e){return(0,E.ZP)("MuiFormControlLabel",e)}var eI=(0,x.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);let eO=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],eN=e=>{let{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled","labelPlacement".concat((0,R.Z)(n)),i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,S.Z)(a,eP,t)},eD=(0,v.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(eI.label)]:t.label},t.root,t["labelPlacement".concat((0,R.Z)(r.labelPlacement))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,_.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(eI.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(eI.label)]:{["&.".concat(eI.disabled)]:{color:(t.vars||t).palette.text.disabled}}})}),eR=(0,v.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(e=>{let{theme:t}=e;return{["&.".concat(eI.error)]:{color:(t.vars||t).palette.error.main}}});var eL=o.forwardRef(function(e,t){var r,i;let a=(0,k.i)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:l={},control:c,disabled:u,disableTypography:d,label:h,labelPlacement:p="end",required:f,slotProps:m={}}=a,g=(0,b.Z)(a,eO),y=(0,A.Z)(),v=null!=(r=null!=u?u:c.props.disabled)?r:null==y?void 0:y.disabled,S=null!=f?f:c.props.required,x={disabled:v,required:S};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===c.props[e]&&void 0!==a[e]&&(x[e]=a[e])});let E=(0,C.Z)({props:a,muiFormControl:y,states:["error"]}),T=(0,_.Z)({},a,{disabled:v,labelPlacement:p,required:S,error:E.error}),P=eN(T),I=null!=(i=m.typography)?i:l.typography,O=h;return null==O||O.type===eC||d||(O=(0,n.jsx)(eC,(0,_.Z)({component:"span"},I,{className:(0,w.Z)(P.label,null==I?void 0:I.className),children:O}))),(0,n.jsxs)(eD,(0,_.Z)({className:(0,w.Z)(P.root,s),ownerState:T,ref:t},g,{children:[o.cloneElement(c,x),S?(0,n.jsxs)(eb.Z,{display:"block",children:[O,(0,n.jsxs)(eR,{ownerState:T,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):O]}))}),eM=r(82330),ej=r(38372),eB=r(92276);function eU(e){return(0,E.ZP)("MuiFormControl",e)}(0,x.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);let eF=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],eH=e=>{let{classes:t,margin:r,fullWidth:n}=e,i={root:["root","none"!==r&&"margin".concat((0,R.Z)(r)),n&&"fullWidth"]};return(0,S.Z)(i,eU,t)},ez=(0,v.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,_.Z)({},t.root,t["margin".concat((0,R.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})(e=>{let{ownerState:t}=e;return(0,_.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})});var e$=o.forwardRef(function(e,t){let r;let i=(0,k.i)({props:e,name:"MuiFormControl"}),{children:a,className:s,color:l="primary",component:c="div",disabled:u=!1,error:d=!1,focused:h,fullWidth:p=!1,hiddenLabel:f=!1,margin:m="none",required:g=!1,size:y="medium",variant:v="outlined"}=i,S=(0,b.Z)(i,eF),x=(0,_.Z)({},i,{color:l,component:c,disabled:u,error:d,fullWidth:p,hiddenLabel:f,margin:m,required:g,size:y,variant:v}),E=eH(x),[T,A]=o.useState(()=>{let e=!1;
25return a&&o.Children.forEach(a,t=>{if(!(0,ej.Z)(t,["Input","Select"]))return;let r=(0,ej.Z)(t,["Select"])?t.props.input:t;r&&(0,eM.B7)(r.props)&&(e=!0)}),e}),[C,P]=o.useState(()=>{let e=!1;return a&&o.Children.forEach(a,t=>{(0,ej.Z)(t,["Input","Select"])&&((0,eM.vd)(t.props,!0)||(0,eM.vd)(t.props.inputProps,!0))&&(e=!0)}),e}),[I,O]=o.useState(!1);u&&I&&O(!1);let N=void 0===h||u?I:h,D=o.useMemo(()=>({adornedStart:T,setAdornedStart:A,color:l,disabled:u,error:d,filled:C,focused:N,fullWidth:p,hiddenLabel:f,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{O(!0)},registerEffect:r,required:g,variant:v}),[T,l,u,d,C,N,p,f,r,g,y,v]);return(0,n.jsx)(eB.Z.Provider,{value:D,children:(0,n.jsx)(ez,(0,_.Z)({as:c,ownerState:x,className:(0,w.Z)(E.root,s),ref:t},S,{children:a}))})});let eq=e=>{let{rating:t,onRatingChange:r,name:i,maturityRating:a,setMaturityShow:s,setEditProfileShow:l,ratingval:c,profilesdata:u,profilerating:d,setOpenCheckPass:h}=e,[p,f]=(0,o.useState)(),[y,v]=(0,o.useState)({width:void 0,height:void 0});return(0,o.useEffect)(()=>{f(c)},[]),(0,o.useEffect)(()=>{function e(){v({width:window.innerWidth,height:window.innerHeight}),window.innerWidth<=1001&&(document.getElementsByClassName("modal-container-full")[0].style.textAlign="left")}return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[y.width,p]),(0,n.jsxs)(n.Fragment,{children:[e.opencheckpass&&(0,n.jsx)(ev,{...e}),(0,n.jsxs)(eW,{children:[(0,n.jsx)(eZ,{children:"Viewing Restrictions"}),(0,n.jsxs)(eK,{children:["Profile Maturity Rating for ",e.name?e.name:"User"]}),(0,n.jsxs)("div",{className:"maturity-linefix",children:[(0,n.jsx)("div",{className:"maturity-radioloop-Container",children:(0,n.jsx)(e$,{className:"mui-redio-formcontrol",children:null==d?void 0:d.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(eG,{children:(0,n.jsx)(eL,{control:(0,n.jsx)(eh,{type:"radio",name:"maturityRating",value:e.actualRating,checked:p===e.actualRating,onChange:()=>{f(e.actualRating)},sx:{"& .MuiSvgIcon-root":{fontSize:25,color:V.appHighlightColor,backgroundColor:"white",borderRadius:"50%"}}}),label:e.label,labelPlacement:y.width>1001?"top":"right"})},e.ratingId)},"maturity_rating-"+t))})}),(0,n.jsx)(eV,{className:"maturity-rating-line"})]}),(0,n.jsxs)("div",{className:"maturityrating-button-container-mt",children:[(0,n.jsx)(g.Z,{className:"edit-multiple-profile-button",onClick:()=>{r(p,p),s(!1),l(!0),h(!0)},children:"Save"}),(0,n.jsx)(m.Z,{className:"edit-multiple-profile-button",onClick:()=>{s(!1),l(!0),h(!0)},children:"Back"})]})]})]})},eW=W.ZP.div.withConfig({componentId:"sc-94fbc445-0"})(["width:100%;height:100%;background:",";overflow:auto;position:relative;"],e=>V.planCardBackgroundColor?V.planCardBackgroundColor:""),eV=W.ZP.div.withConfig({componentId:"sc-94fbc445-1"})(["width:98%;height:4px;left:0%;position:absolute;margin-left:20px;z-index:1;top:66%;background:linear-gradient(to right,"," 100%,gray 0%);@media (max-width:1001px){{height:100%;width:4px;top:0;margin-left:18.8px;background:linear-gradient(to bottom,"," 100%,gray 0%);}"],V.appHighlightColor,V.appHighlightColor),eG=W.ZP.div.withConfig({componentId:"sc-94fbc445-2"})(["margin:0 10px;color:white;border-radius:10%;z-index:2;"]),eK=W.ZP.div.withConfig({componentId:"sc-94fbc445-3"})(["display:flex;color:white;font-size:20px;margin:20px;"]),eZ=W.ZP.div.withConfig({componentId:"sc-94fbc445-4"})(["display:flex;color:grey;font-size:25px;margin:20px;"]);var eY=eq,eJ=r(30719);r(66761),r(84752),r(60853),r(67555);var eX=r(965),eQ=function(e){let t=t=>{e.okAction(t)};return(0,n.jsx)("div",{className:"profileimg-swiper-div",children:(0,n.jsx)(eJ.tq,{slidesPerView:6,spaceBetween:5,slidesPerGroup:6,loop:!1,loopFillGroupWithBlank:!1,pagination:{clickable:!0},navigation:!0,modules:[eX.W_],className:"mySwiper",breakpoints:{300:{slidesPerView:2,spaceBetween:10,slidesPerGroup:2},500:{slidesPerView:3,spaceBetween:10,slidesPerGroup:3},600:{slidesPerView:3,spaceBetween:10,slidesPerGroup:3},800:{slidesPerView:4,spaceBetween:10,slidesPerGroup:4},1200:{slidesPerView:5,spaceBetween:10,slidesPerGroup:5},1500:{slidesPerView:6,spaceBetween:10,slidesPerGroup:6},1600:{slidesPerView:5,spaceBetween:10,slidesPerGroup:5},1800:{slidesPerView:6,spaceBetween:10,slidesPerGroup:6}},children:e.imageListVal&&Object.values(e.imageListVal).map((e,r)=>(0,n.jsx)(eJ.o5,{children:(0,n.jsx)("div",{children:(0,n.jsx)(c(),{className:"titleThumb curson-pointer GridImage img-border",src:e.img_url,alt:V.displayAppName,width:200,height:190,onClick:()=>t(e.img_url)},r)})},r+"__scroll_profilelist_img"))})})},e0=r(33299),e1=function(e){let{status:t}=(0,e0.useSession)(),[r,l]=(0,o.useState)(null),u=(0,a.useRouter)(),d=[];(0,o.useEffect)(()=>{h();let t=document.getElementById("main-container"),r=document.getElementById("footer"),n=document.getElementById("header-nav"),i=document.getElementById("matchpoint_footer");return t&&(t.style.height="100vh"),r&&i&&"account"==e.callfrom&&(r.style.display="none",i.style.display="none"),n&&"account"==e.callfrom&&(n.style.display="none"),o=>{t&&(t.style.height="auto"),r&&i&&"account"==e.callfrom&&(r.style.display="block",i.style.display="block"),n&&"account"==e.callfrom&&(n.style.display="block")}},[]);let h=async()=>{let r=e&&e.urls&&e.urls.profileImageListV2URL?(0,i.tY)(e.urls.profileImageListV2URL):"";try{await (0,i.bf)(r,e=>{for(let[t,r]of Object.entries(e))d.push({key:t,value:r});l(d)},"",!1,null,t)}catch(e){console.log(e,"err message value_____________________")}};return r?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(s.Z,{open:!0,router:u,children:[(0,n.jsx)("div",{className:"Profileimg-header-cust",children:(0,n.jsxs)("div",{className:"profileimg-header-alignment",children:[(0,n.jsxs)("div",{className:"profileimg-header-leftside-item",children:[(0,n.jsx)("div",{className:"img-life-arrow-align",children:(0,n.jsx)(c(),{src:"//images/left-arrow-profileimg.svg",alt:"Profile-img-arrow",width:25,height:25,onClick:()=>{e.setEditImage(e.EditImage),e.setImageListShow(!1),e.setEditProfileShow(!0)}})}),(0,n.jsx)("h1",{className:"custom-multieditprofile-img-modal-header",children:"Choose a profile image"})]}),(0,n.jsxs)("div",{className:"profileimg-header-rightside-item",children:[(0,n.jsx)("h1",{className:"img-username-align",children:e.EditNameVal?e.EditNameVal:"User"}),(0,n.jsx)("div",{className:"padd-50",children:(0,n.jsx)(c(),{src:e.EditImage?e.EditImage:"//images/icons/01james.svg",alt:"Profile-Icon",width:65,height:65,className:"img-border"})})]})]})}),(0,n.jsx)("div",{className:"separator"}),(0,n.jsx)("div",{className:"image-lust-div",children:null==r?void 0:r.map((t,r)=>(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-img-headerline",children:t.value.name}),(0,n.jsx)(eQ,{imageListVal:t.value.list,okAction:t=>{e.setEditImage(t),e.setImageListShow(!1),e.setEditProfileShow(!0)},callfrom:e.callfrom},r+"__imglist")]},"listimageshow_"+r))})]})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.Z,{open:!0,router:u,children:(0,n.jsx)(eg.D7,{})})})};function e2(e){let t=(0,a.useRouter)(),[r,s]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[u,d]=(0,o.useState)(!1),{status:h}=(0,e0.useSession)();(0,o.useEffect)(()=>{var e=document.querySelector(".pin-code"),t=document.getElementsByClassName("pin-in
25puts");e.addEventListener("keyup",function(e){if(e&&e.keyCode&&13==e.keyCode)return!1;var r=e.srcElement;let n="";for(var i=0;i<t.length;i++)n+=t[i].value;s(n);var o=parseInt(r.attributes.maxlength.value,10),a=r.value.length;if(a>=o){var l=r;for(null==l.nextElementSibling?l.disabled=!1:l.disabled=!0;(l=l.nextElementSibling)&&null!=l;)if("input"==l.tagName.toLowerCase()){l.focus();break}}if(0===a){for(var l=r;(l=l.previousElementSibling)&&(l.disabled=!1,null!=l);)if("input"==l.tagName.toLowerCase()){l.focus();break}}},!1)},[r]);let p=async t=>{if(r.trim().length<4){c("Please enter valid PIN!");return}d(!0);let n=e&&e.profileId,o=(0,i.tY)(e.urls.updatePinURL?e.urls.updatePinURL:""),a={bdata:{pin:r},url:o=o.replace("__JTV__PROFILE__ID__",n)};try{await (0,i._i)(a,t=>{s(""),t&&"success"==t.result?(e.showAlert&&e.showAlert(!0,t.message,"success"),e.setSecurePinShow&&e.setSecurePinShow(!0),e.setEditProfileShow&&e.setEditProfileShow(!0),e.setOpenSetPin&&e.setOpenSetPin(!1),e.setOpenCheckPass&&e.setOpenCheckPass(!0),d(!1),"forget-setpin"==e.from&&(e.setAuthPin("authPin"),e.setPinTitle(""))):(c("Something went wrong... Please try again !!!"),d(!1))})}catch(e){c("Something went wrong... Please try again !!!")}},f=async()=>{if(r.trim().length<4){c("Please enter valid PIN!");return}d(!0);let n=e&&e.profileData?e.profileData:null,o=e&&e.profileId,a=n?n.age_rating:"",l=e.urls.verifyProfilePinURL?(0,i.tY)(e.urls.verifyProfilePinURL):"";l=(l=l.replaceAll("__JTV__PROFILE__ID__",o)).replace("__JTV__PROFILE__RATING__",a);let u={type:"selectprofile",bdata:{pin:r,selectedProfile:{selectedDate:new Date,profile:n}},url:l};try{await (0,i._i)(u,e=>{e&&"success"==e.result?(0,i.bY)("",e=>{t.push("/home")},"showprofilehide",!1):(c(e.message?e.message:"Something went wrong! Plaese try again."),s(""),d(!1))})}catch(e){console.log("In Profile Image update erro")}},y=t=>{t&&t.preventDefault(),"authPin"==e.from?f():(e.from,p())};function v(e){let t=e.target.value;t&&(/^[0-9]+$/.test(t)||(e.target.value=""))}return(0,n.jsxs)(n.Fragment,{children:[e.opencheckpass&&(0,n.jsx)(ev,{...e}),(0,n.jsx)("div",{className:"mutliple-big-container",children:(0,n.jsx)("div",{className:"modal-container-full",children:(0,n.jsx)("div",{className:"modal-body-new",children:u?(0,n.jsx)(eg.cb,{}):(0,n.jsxs)(ey.Z,{className:"pin-container",onSubmit:y,method:"POST",isComingSetPin:!0,children:[(0,n.jsx)("h1",{className:"pin_text",children:e.title?e.title:"Set your PIN"}),(0,n.jsxs)("div",{className:"pin-code",children:[(0,n.jsx)("input",{type:"password",maxLength:"1",className:"pin-inputs",autoFocus:!0,onChange:e=>{v(e),c("")}}),(0,n.jsx)("input",{type:"password",maxLength:"1",className:"pin-inputs",onChange:e=>{v(e),c("")}}),(0,n.jsx)("input",{type:"password",maxLength:"1",className:"pin-inputs",onChange:e=>{v(e),c("")}}),(0,n.jsx)("input",{type:"password",maxLength:"1",className:"pin-inputs",onChange:e=>{v(e),c("")}})]}),l&&l.trim().length>0&&(0,n.jsx)("div",{children:(0,n.jsx)("p",{className:"errormsg",children:l})}),(0,n.jsxs)("div",{className:"pin-button-container",children:[(0,n.jsx)(g.Z,{className:"setpin-btn-align",colorBtn:!0,onClick:()=>{y()},children:"Submit"}),(0,n.jsx)(m.Z,{className:"setpin-btn-align",onClick:()=>{e.setOpenCheckPass(!0),e.from?e.setOpenCheckPass(!1):e.setOpenCheckPass(!0),e.setEditProfileShow(!0),e.setOpenSetPin(!1),("authPin"==e.from||"forget-setpin"==e.from)&&(e.setPinTitle(""),e.setAuthPin(""))},children:"Cancel"})]}),"authPin"==e.from&&(0,n.jsx)("div",{className:"forgetpin-align",children:(0,n.jsx)(e4,{className:"forgetpin-text-align",onClick:()=>{c(""),e.setOpenCheckPass(!0),e.setPinTitle("Set Pin"),e.setAuthPin("forget-setpin")},children:"Forget PIN"})})]})})})})]})}r(22024),W.ZP.input.withConfig({componentId:"sc-30c5050c-0"})(["width:50px;height:50px;margin:0 10px;text-align:center;border:1px solid #aaa;border-radius:5px;outline:none;color:white;"]);let e4=W.ZP.span.withConfig({componentId:"sc-30c5050c-1"})(["color:",";"],V.channelPrimaryColor);var e3=e2,e6=function(e){let t=(0,a.useRouter)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.Z,{open:!0,router:t,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"audio-substitle-div",children:"Are you want to delete your Profile PIN"}),(0,n.jsxs)("div",{className:"audio-subtitle-button",children:[(0,n.jsx)(g.Z,{className:"delete-pin-button",onClick:()=>{e.setdeleteOpenCheckPass(!0),e.setDeleteComingFrom("delete-pin")},children:"Yes"}),(0,n.jsx)(m.Z,{className:"delete-pin-button",onClick:()=>{e.setDeletePinView(!1)},children:"No"})]})]})})})},e5=function(e){let{EditImage:t,selectedUser:r,setDeleteProfileShow:i,setEditProfileShow:o,setdeleteOpenCheckPass:l,setDeleteComingFrom:u}=e,d=(0,a.useRouter)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.Z,{open:!0,router:d,children:(0,n.jsxs)("div",{className:"delete-div",children:[(0,n.jsx)("div",{className:"delete-header-div",children:"Delete Profile?"}),(0,n.jsx)("div",{className:"separator"}),(0,n.jsxs)("div",{className:"delete-container-div",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(c(),{className:"img-border",src:t||"//images/icons/01james.svg",alt:"tiktok",width:100,height:100}),(0,n.jsx)("div",{className:"delete-username multiple-profile-name",children:r&&r.profile_name?r.profile_name:""})]}),(0,n.jsx)("div",{className:"delete-para-div",children:"This Profile's history - including My List, ratings and activity - will be gone forever, and you won't be able to access it again."})]}),(0,n.jsx)("div",{className:"separator"}),(0,n.jsxs)("div",{className:"delete-profile-button ",children:[(0,n.jsx)(f.Z,{className:"delete-multiple-profile-button",onClick:()=>{i(!1),o(!0)},children:"Keep Profile"}),(0,n.jsx)(f.Z,{className:"delete-multiple-profile-button",onClick:()=>{l(!0),u("delete-profile")},children:"Delete Profile"})]})]})})})},e8=e=>{let{profilesdata:t,selectedUser:r,profilerating:l,callfrom:u,selectedProfile:d,ProfileDetails:f}=e,b=(0,a.useRouter)(),[_,w]=(0,o.useState)(!0),[S,k]=(0,o.useState)(!0),[x,E]=(0,o.useState)(!1),[T,A]=(0,o.useState)(!1),[C,P]=(0,o.useState)(!1),[I,O]=(0,o.useState)(!1),[D,R]=(0,o.useState)(!0),[L,M]=(0,o.useState)(0),[j,B]=(0,o.useState)(!1),[U,F]=(0,o.useState)(r.img_url),[H,z]=(0,o.useState)(r.profile_name),[$,W]=(0,o.useState)(r.type),[G,K]=(0,o.useState)(r.secure),[Z,Y]=(0,o.useState)(r.age_rating),[J,X]=(0,o.useState)(!0),Q=["Hindi","English","English(United State)","Francais","Dansh"],[ee,et]=(0,o.useState)(!1),[er,en]=(0,o.useState)(!1),[ei,eo]=(0,o.useState)(null);(0,o.useEffect)(()=>{let t=document.getElementById("login_signup_space"),r=document.getElementsByTagName("html");return t&&"account"==e.callfrom&&t.classList.remove("login-signup-space"),t&&"account"==e.callfrom&&(r[0].style.overflow="hidden"),()=>{t&&"account"==e.callfrom&&(t.classList.add("login-signup-space"),t.style.minHeight="550px"),t&&"account"==e.callfrom&&(r[0].style.overflow="auto")}},[e]);let ea=(0,v.ZP)(q)(e=>{let{theme:t}=e;return{width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}}
25,"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:.8,backgroundColor:V.channelPrimaryColor}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:t.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:8,opacity:1,backgroundColor:"dark"===t.palette.mode?"rgba(255,255,255,.35)":"rgba(0,0,0,.25)",boxSizing:"border-box"}}}),es=()=>{E(!0)},el=e=>{R(e.target.checked)},ec=t=>{e.setAutoSwitchShow(t.target.checked)},eu=()=>{e.cancelAction()},ed=async()=>{if(!(null==r?void 0:r.id))return;let t=e.urls.editSubProfileURL?(0,i.tY)(e.urls.editSubProfileURL):"";t=t.replace("__JTV__PROFILE__ID__",r.id);let n={bdata:{profName:H,isChild:!(Z>10)&&D,autoPlay:e.autoswitchshow,imageUrl:U,ageRating:Z},url:t};try{await (0,i._i)(n,t=>{if(t&&"success"==t.result){var n;if(null===(n=e.onProfileUpdated)||void 0===n||n.call(e,{id:r.id,img_url:U,profile_name:H}),"account"==u){let t=e&&e.ironCookie&&e.ironCookie.activeprofile&&e.ironCookie.activeprofile.profile&&e.ironCookie.activeprofile.profile.id?e.ironCookie.activeprofile.profile.id:"";if(r.id==t){let e=document.getElementById("profile_nameDiv"),t=document.getElementById("userProfileImg");e&&(e.innerHTML=H),t&&(t.src=U,t.srcset=""),(0,i.d8)("editProfileName",H),(0,i.d8)("editProfileImg",U)}}}})}catch(e){}k(!1),w(!0)},eh=()=>{e.cancelAction()},ep=async()=>{let t=(0,i.tY)(e.urls.deleteSubProfileURL?e.urls.deleteSubProfileURL:""),n={url:t=t.replace("__JTV__PROFILE__ID__",encodeURIComponent(r.id))};try{await (0,i.ag)(n,t=>{t&&t.data&&200==t.status&&(e.deleteAction(),A(!1),w(!0))})}catch(e){}},ef=(e,t)=>{M(e),Y(t)},em=async()=>{let t=e&&e.urls&&e.urls.deleteProfilePinURL?(0,i.tY)(e.urls.deleteProfilePinURL):"",n={url:t=t.replace("__JTV__PROFILE__ID__",encodeURIComponent(r.id))};try{await (0,i.ag)(n,e=>{et(!1),e&&e.data&&200==e.status&&K(!1)})}catch(e){}};return(0,n.jsxs)(n.Fragment,{children:[S&&(0,n.jsxs)(s.Z,{open:!0,router:b,noClass:!0,className:"colum-direction",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"custom-multiedit-modal-header",children:"Edit Profile"}),(0,n.jsx)("div",{className:"separator"})]}),(0,n.jsxs)("div",{className:"row-direction",children:[(0,n.jsxs)("div",{className:"edit-image",children:[(0,n.jsx)(c(),{src:U||"//images/icons/01james.svg",alt:"tiktok",width:100,height:100,className:"img-border"}),(0,n.jsx)("div",{className:"edit-icon-image",children:(0,n.jsx)(c(),{src:"//images/icons/edit-white.svg",alt:"Avatar",className:"text",width:40,height:40,onClick:()=>{O(!0),k(!1)}})})]}),(0,n.jsxs)("div",{className:"colum-direction-width",children:[(0,n.jsx)("div",{className:"editpage-profilename",children:"Profile Name"}),(0,n.jsx)(y.Z,{type:"text",placeholder:"First Name",className:"editprofile-text-box",widthControlVal:!0,callfrom:"editprofile",value:H||"",onChange:e=>{let{target:t}=e;z(t.value)}}),(0,n.jsx)("div",{className:"editprofile-text-box edit-color-background editbox-bottom-val cursor-pointer",onClick:()=>{k(!1),P(!0),eo("maturity-rating")},children:(0,n.jsxs)("div",{className:"editprofile-div-align",children:[(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/icons/maturity_rating.svg",alt:"Avatar",className:"arrow-sign",width:30,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Maturity Rating"})]}),(0,n.jsx)("div",{className:"editprofile-div-insideright-align",children:(0,n.jsx)(c(),{src:"//images/profile_arrow.png",alt:"Avatar",className:"text",width:20,height:20})})]})}),(0,n.jsx)("div",{className:"editprofile-text-box edit-color-background editbox-bottom-val cursor-pointer",style:{display:"none"},children:(0,n.jsxs)("div",{className:"editprofile-div-align",children:[(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/icons/language_icon.png",alt:"Avatar",className:"text",width:40,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Display Language"})]}),(0,n.jsx)("div",{className:"editprofile-div-insideright-align",children:(0,n.jsx)(c(),{src:"//images/profile_arrow.png",alt:"Avatar",className:"text",width:20,height:20})})]})}),(0,n.jsx)("div",{className:"editprofile-text-box edit-color-background editbox-bottom-val cursor-pointer",onClick:()=>{es(),E(!0)},style:{display:"none"},children:(0,n.jsxs)("div",{className:"editprofile-div-align",children:[(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/icons/subtitles_icon.png",alt:"Avatar",className:"text",width:40,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Audio & Subtitles"})]}),(0,n.jsx)("div",{className:"editprofile-div-insideright-align",children:(0,n.jsx)(c(),{src:"//images/profile_arrow.png",alt:"Avatar",className:"text",width:20,height:20})})]})}),f&&f.max_kid_age==f&&f.profile_ratings&&f.profile_ratings.find(e=>e.actualRating)&&(0,n.jsx)("div",{className:"editprofile-text-box edit-color-background editbox-bottom-val",children:(0,n.jsxs)("div",{className:"editprofile-div-align",children:[(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/icons/kids.svg",alt:"Avatar",className:"arrow-sign",width:30,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Kids"})]}),(0,n.jsx)("div",{className:"editprofile-div-insideright-align",children:(0,n.jsx)(N,{children:(0,n.jsx)(ea,{checked:!(Z>7)&&D,disabled:Z>7,inputProps:{"aria-label":"ant design"},onChange:e=>{el(e)}})})})]})}),(0,n.jsx)("div",{className:"editprofile-text-box edit-color-background editbox-bottom-val",children:(0,n.jsxs)("div",{className:"editprofile-div-align",children:[(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/icons/autoplay.svg",alt:"Avatar",className:"arrow-sign",width:30,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Autoplay Previews"})]}),(0,n.jsx)("div",{className:"editprofile-div-insideright-align",children:(0,n.jsx)(N,{children:(0,n.jsx)(ea,{checked:e.autoswitchshow,inputProps:{"aria-label":"ant design"},onChange:e=>{ec(e)}})})})]})}),Z>7&&(0,n.jsx)("div",{className:"editprofile-text-box edit-color-background editbox-bottom-val cursor-pointer",onClick:()=>{r.secure&&X(!0),B(!0),k(!1)},children:G&&Z>7?(0,n.jsxs)("div",{className:"editprofile-div-align",children:[(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/icons/set-pin.svg",alt:"Avatar",className:"arrow-sign",width:30,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Change Pin"})]}),(0,n.jsx)("div",{className:"editprofile-div-insideright-align",children:(0,n.jsx)(c(),{src:"//images/profile_arrow.png",alt:"Avatar",className:"text",width:20,height:20})})]}):(0,n.jsxs)("div",{className:"editprofile-div-align",children:[(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/icons/set-pin.svg",alt:"Avatar",className:"arrow-sign",width:30,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Set Pin"})]}),(0,n.jsx)("div",{className:"editprofile-div-insideright-align",children:(0,n.jsx)(c(),{src:"//images/profile_arrow.png",alt:"Avatar",className:"text",width:20,height:20})})]})}),G&&Z>7&&(0,n.jsx)("div",{className:"editprofile-text-box edit-color-background editbox-bottom-val cursor-pointer",onClick:()=>{et(!0)},children:(0,n.jsx)("div",{className:"editprofile-div-align",children:(0,n.jsxs)("div",{className:"editprofile-div-insideleft-align",children:[(0,n.jsx)(c(),{src:"//images/buttons_icon/delete_logo.svg",alt:"Avatar",className:"arrow-sign",width:30,height:30}),(0,n.jsx)("div",{className:"editprofile-section-align",children:"Delete Pin"})]})})})]})]}),(0,n.jsxs)("div",{className:"done-button",children:[(0,n.jsx)(g.Z,{className:"editbtn-border-rad",onClick:()=>{eu(),ed()},children:"Done"}),(0,n.jsx)(m.Z,{className:"editbtn-border-rad",onClick:()=>{eh()},children:"Cancel"}
25),"default"!==$&&(!u||"account"==u&&d.id!==r.id)&&(0,n.jsx)(m.Z,{className:"editbtn-border-rad",deletebtn:!0,onClick:()=>{A(!0),k(!1)},children:"Delete Profile"})]})]}),I&&(0,n.jsx)(e1,{setEditImage:e=>F(e),setImageListShow:e=>O(e),setEditProfileShow:e=>k(e),EditImage:U,EditNameVal:H,...e}),x&&(0,n.jsx)(s.Z,{open:!0,router:b,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"audio-substitle-div",children:"Audio & Subtitle"}),(0,n.jsx)("div",{className:"audio-para",children:"Choosing the Language you watch TV shows and movies in helps us set up your audio and subtitles for a better viewing experience."}),(0,n.jsx)("div",{className:"audio-align-div",children:Q.map((e,t)=>(0,n.jsxs)("div",{className:"audio-checkbox-div",children:[(0,n.jsx)(h.Z,{sx:{color:p.Z[300],"&.Mui-checked":{color:p.Z[300]},"& .MuiSvgIcon-root":{fontSize:18,p:0}}}),(0,n.jsx)("span",{className:"audio-distance-btn",children:e})]},"prof-audio-"+t))}),(0,n.jsxs)("div",{className:"audio-subtitle-button",children:[(0,n.jsx)(m.Z,{className:"delete-multiple-profile-button",onClick:()=>{E(!1),k(!0)},children:"Save"}),(0,n.jsx)(m.Z,{className:"delete-multiple-profile-button",onClick:()=>{E(!1),k(!0)},children:"Cancel"})]})]})}),T&&(0,n.jsx)(e5,{setDeleteProfileShow:e=>A(e),setEditProfileShow:e=>k(e),setdeleteOpenCheckPass:e=>en(e),setDeleteComingFrom:e=>eo(e),selectedUser:r,EditImage:U,...e}),C&&(0,n.jsx)(s.Z,{open:!0,router:b,children:(0,n.jsx)(eY,{name:H,maturityRating:L,rating:L,setRatingValueShow:e=>{Y(e)},ratingval:Z,onRatingChange:(e,t)=>
25ef(e,t),setMaturityShow:e=>{P(e)},setEditProfileShow:e=>{k(e)},profilesdata:t,profilerating:l,opencheckpass:J,setOpenCheckPass:e=>X(e),ischeckpassopen:ei,...e})}),j&&(0,n.jsx)(e3,{setEditProfileShow:e=>k(e),setOpenSetPin:e=>B(e),profileId:r.id,setSecurePinShow:e=>K(e),opencheckpass:J,setOpenCheckPass:e=>X(e),notifypin:(e,t)=>notifypin(e,t),showAlert:(t,r,n)=>e.showAlert(t,r,n),...e}),ee&&(0,n.jsx)(e6,{setdeleteOpenCheckPass:e=>en(e),setDeletePinView:e=>et(e),setDeleteComingFrom:e=>eo(e)}),er&&(0,n.jsx)(ev,{...e,ischeckpassopen:ei,handleDeleteProfilePin:()=>em(),setdeleteOpenCheckPass:e=>en(e),setDeletePinView:e=>et(e),setDeleteComingFrom:e=>eo(e),handleDeleteProfile:()=>ep(),setDeleteProfileShow:()=>A(),setEditProfileShow:e=>k(e)})]})},e7=r(58239),e9=function(e){let{status:t}=(0,e0.useSession)(),[r,l]=(0,o.useState)(!0),[y,v]=(0,o.useState)(null),[b,_]=(0,o.useState)(!1),[w,S]=(0,o.useState)(!1),[k,x]=(0,o.useState)(null),[E,T]=(0,o.useState)(""),[A,C]=(0,o.useState)(!1),[P,I]=(0,o.useState)(!!e.callfrom&&"account"==e.callfrom),[O,N]=(0,o.useState)(!0),[D,R]=(0,o.useState)(""),[L,M]=(0,o.useState)({}),[j,B]=(0,o.useState)(!1),[U,F]=(0,o.useState)(!1),[H,z]=(0,o.useState)("authPin"),[$,q]=(0,o.useState)(null),[W,G]=(0,o.useState)(null),[K,Z]=(0,o.useState)(!1),[Y,J]=(0,o.useState)({show:"",msg:"",type:""}),X=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";J({show:e,msg:t,type:r})},Q=e&&e.urls&&e.urls.logURLV2?(0,i.tY)(e.urls.logURLV2):"",ee="",et={ironCookie:(null==e?void 0:e.ironCookie)?e.ironCookie:"",selectedProfile:(null==e?void 0:e.selectedProfile)?e.selectedProfile:"",location_type:"page",event_location_id:"profile_view_screen",shelves:null};ee=(0,i.m1)(et);let er=(0,o.useRef)(!1);(0,o.useEffect)(()=>{!er.current&&(er.current=!0,V.isVisitPageOn&&(0,e7.qe)(Q,"VISIT",ee))},[]),(0,o.useEffect)(()=>{let t=document.getElementById("header-nav"),r=document.getElementById("separatorLine"),n=document.getElementById("footer"),i=document.getElementById("matchpoint_footer"),o=document.getElementById("main-container");return t&&"account"!=e.callfrom&&(t.style.display="none"),r&&"account"!=e.callfrom&&(r.style.display="none"),n&&i&&"account"!=e.callfrom&&(n.style.display="none",i.style.display="none"),o&&"account"!=e.callfrom&&(o.style.height="100vh"),()=>{t&&(t.style.display="flex"),r&&(r.style.display="block"),n&&i&&(n.style.display="block",i.style.display="block"),o&&(o.style.height="auto")}},[e]),(0,o.useEffect)(()=>(en(),e&&e.setIsLoadingdata&&e.setIsLoadingdata(!1),e=>{}),[]);let en=async()=>{let r=e&&e.urls&&e.urls.profileDetailsURL?(0,i.tY)(e.urls.profileDetailsURL):"";e.ironLogin&&(r=r.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(e&&e.ironCookie&&e.ironCookie.user&&e.ironCookie.user.email)));try{await (0,i.sj)(r,t=>{t&&(x(t&&t.response),t&&t.response&&t.response.profiles&&(v(t.response.profiles),q(t.response.profile_ratings)),e&&e.setIsLoadingdata&&e.setIsLoadingdata(!1))},t)}catch(t){e&&e.setIsLoadingdata&&e.setIsLoadingdata(!1),console.log(t,"err message value_____________________")}},ei=(0,a.useRouter)(),eo=()=>{I(!P)},ea=e=>{C(e.target.checked)},es=async t=>{let r=e&&e.ironCookie&&e.ironCookie.user&&e.ironCookie.user.UId,n=e.urls.addSubProfileURL?(0,i.tY)(e.urls.addSubProfileURL):"",o={bdata:{profName:E,isChild:A},url:n=n.replace("__JTV__SUB__UID__",r)};try{await (0,i._i)(o,e=>{e&&"success"==e.result&&(en(),C(!1))})}catch(e){}},el=e=>{M(e)},ec=e=>{(null==e?void 0:e.id)&&v(t=>null==t?void 0:t.map(t=>String(t.id)===String(e.id)?{...t,...e}:t))},eu=async r=>{let n=e.urls.addSelectProfileURL?(0,i.tY)(e.urls.addSelectProfileURL):"";n=n.replace("__JTV__PROFILE__ID__",r.id).replace("__JTV__PROFILE__RATING__",r.age_rating),(0,i.bf)(n,e=>{0==e.code?(U&&eg.cb,(0,i.bY)("",e=>{let t=(0,i.ej)("profileredirectpath")&&"null"!==(0,i.ej)("profileredirectpath")?(0,i.ej)("profileredirectpath"):"";ei.push({pathname:"/"+t}),(0,i.d8)("editProfileImg",r.img_url)},"showprofilehide",!1,null,t)):console.log(e.message)},"selectprofile",!0,JSON.stringify(r),t)},ed=(e,t,r)=>{e?R(r):R(t)};return(0,n.jsxs)(n.Fragment,{children:[r&&(0,n.jsx)("div",{className:e.callfrom&&"account"==e.callfrom?"mutliple-acc-container":"mutliple-big-container",children:(0,n.jsx)("div",{className:e.callfrom&&"account"==e.callfrom?"modal-container-acc":"modal-container-fullscreen",children:(0,n.jsx)("div",{className:"modal-body-new",children:U?(0,n.jsx)(eg.cb,{}):(0,n.jsxs)("div",{className:e.callfrom&&"account"==e.callfrom?"custom-multipleprofile-modal-container":"custom-multipleprofile-mainpage-modal-container",children:[(0,n.jsx)("h1",{className:"custom-multipleprofile-modal-header",children:P?"account"!=e.callfrom?"Manage Profiles":"":"Who's Watching?"}),(0,n.jsxs)("div",{className:"mutliple-profile-container",children:[null==y?void 0:y.map(e=>
25{let t=e.img_url?e.img_url:"kid"==e.type?"//images/cine_profile_kidz_placehoder.jpeg":"//images/cine_prof_bhoot_placehoder.jpeg";return(0,n.jsxs)("div",{className:"multiple-profile-div",children:[(0,n.jsx)(c(),{src:t,alt:"tiktok",width:140,height:140,className:"border-radius-imageprofile",onClick:()=>{el(e),(0,e7.qe)(Q,"PROFILE_SWITCH",ee),e.secure&&e.age_rating>7?B(!0):(F(!0),eu(e))}}),P&&(0,n.jsx)(te,{children:(0,n.jsx)("div",{className:"edit-div-container",onClick:()=>{l(!1),S(!0),el(e)},children:(0,n.jsx)(c(),{src:"//images/icons/edit-outline.svg",alt:"Avatar",className:"text",width:80,height:80})})}),(0,n.jsx)("div",{className:"multiple-profile-name",title:e&&e.profile_name?e.profile_name:"",children:e&&e.profile_name?e.profile_name:""}),e.secure&&e.age_rating>7&&(0,n.jsx)(c(),{src:"//images/icons/icons-lock.svg",alt:"Avatar",className:"text",width:35,height:35})]},"mul-prof-"+e.id)}),y&&y.length<6&&(0,n.jsxs)("div",{className:"multiple-profile-div addProfile",children:[(0,n.jsx)(u.Z,{children:(0,n.jsx)("div",{children:(0,n.jsx)(c(),{src:"//images/icons/add-profile-image.png",width:120,height:120,alt:"watch-button",className:"wishlist-button-image",onClick:()=>{_(!0),l(!1),T("")}})})}),(0,n.jsx)("div",{className:"text-h3 multiple-profile-name",children:"Add Profile"})]})]}),"account"!=e.callfrom&&(0,n.jsx)(f.Z,{className:"multiple-profile-button",onClick:()=>{eo()},children:P?"Done":"Manage Profiles"})]})})})}),b&&(0,n.jsx)(s.Z,{open:!0,router:ei,children:(0,n.jsxs)("div",{className:"add-profile-maindiv",children:[(0,n.jsx)("div",{className:"add-profile-headername",children:"Add Profile"}),(0,n.jsx)("div",{className:"add-profile-para",children:"Add a profile for another person watching Cineverse."}),(0,n.jsx)("div",{className:"separator"}),(0,n.jsxs)("div",{className:"add-profile-image",children:[(0,n.jsx)("div",{className:"editprofile-section-align",children:(0,n.jsx)(c(),{className:"img-border",src:"//images/icons/cartoonImg.jpg",alt:"tiktok",width:100,height:100})}),(0,n.jsxs)("div",{className:"add-profile-input-div",children:[(0,n.jsx)("div",{children:(0,n.jsx)("input",{type:"text",placeholder:"Profile Name",className:"addprofileinput",value:E,onChange:e=>{let{target:t}=e;T(t.value),ed(t.value,"Username is required","")}})}),(0,n.jsx)("div",{className:"add-input-error",children:D?(0,n.jsx)(ep.Z,{children:D}):null})]}),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"checkbox-main-container",children:[(0,n.jsx)("div",{className:"add-profile-checkbox-div",children:(0,n.jsx)(h.Z,{sx:{color:p.Z[300],"&.Mui-checked":{color:p.Z[300]},"& .MuiSvgIcon-root":{fontSize:32}},onChange:e=>{ea(e)}})}),(0,n.jsx)("div",{className:"add-child-checkbox",children:"Child?"})]})})]}),(0,n.jsx)("div",{className:"separator"}),(0,n.jsxs)("div",{className:"add-continue-button",children:[(0,n.jsx)(g.Z,{className:E.length>0?"addprofile-continue-btn":"addprofile-cont-disabled-btn",disabled:!(E.length>0),onClick:()=>{_(!1),l(!0),es()},children:"Continue"}),(0,n.jsx)(m.Z,{className:"addprofile-cancel-btn",onClick:()=>{_(!1),l(!0),R(""),C(!1)},children:"Cancel"})]})]})}),w&&(null==L?void 0:L.id)&&(0,n.jsx)(e8,{...e,setAutoSwitchShow:e=>N(e),autoswitchshow:O,profilesdata:y,ProfileDetails:k,profilerating:$,onProfileUpdated:ec,selectedUser:L,showAlert:(e,t,r)=>X(e,t,r),cancelAction:()=>{l(!0),I(!0),S(!1)},profileDetailsData:()=>en(),deleteAction:()=>{l(!0),I(!0),S(!1),en()}},"edit-profile-".concat(L.id)),j&&(0,n.jsx)(e3,{setEditProfileShow:e=>{},setOpenSetPin:e=>B(e),profileId:L.id,title:W||"Enter your PIN to access this profile",from:H||"authPin",profileData:L,opencheckpass:"authPin"!=H&&K,showAlert:(e,t,r)=>X(e,t,r),setOpenCheckPass:e=>Z(e),setPinTitle:e=>G(e),setAuthPin:e=>z(e),setShow:e=>l(e),...e}),Y.show&&(0,n.jsx)(d.Z,{...Y,removeAlert:X})]})};let te=W.ZP.div.withConfig({componentId:"sc-5d65ec41-0"})(["&:hover{img{filter:"," !important;}}"],V.svgFilter)},89453:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893);r(67294);var i=r(22024),o=r(32415);r(85518);var a=r(38497),s=r(40423),l=r(77527),c=r(45312);function u(e){let t=(0,l.ZP)(e=>{let{className:t,...r}=e;return(0,n.jsx)(a.Z,{...r,classes:{popper:t}})})(e=>{let{theme:t}=e;return{["& .".concat(s.Z.tooltip)]:{backgroundColor:t.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:t.shadows[1],fontSize:13,fontWeight:"semi-bold",borderRadius:"8px",padding:"5x 13px"},["& .".concat(s.Z.arrow)]:{color:t.palette.common.white}}}),r=t=>{try{var r=(0,o.ej)("redirectpath")&&"null"!==(0,o.ej)("redirectpath")?(0,o.ej)("redirectpath"):"";if((0,o.ej)("cxluItemCookie")){var n=(0,o.ej)("cxluItemCookie");r="/category/"+n,(0,o.nJ)("cxluItemCookie")}e.IsliveTv?"comedydynamics"==c.appName?e.router.push("https://www.comedydynamics.com/"):e.router.push({pathname:"/"+r}):e.router.push("/"+r),e.onBackButtonEvent&&e.onBackButtonEvent()}catch(e){console.log(e)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:e._
25className,id:e.elemid,title:"Back",children:(0,n.jsx)("div",{className:"player-back-button",onWheel:e.onWheelBound,onMouseMove:e.onMouseMoveBound,onClick:r,onTouchStart:r,children:(0,n.jsx)(i.jV,{onTouchStart:r})})}),e.IsliveTv&&"comedydynamics"==c.appName&&(0,n.jsx)(t,{title:"Home",arrow:!0,placement:"right",children:(0,n.jsx)("div",{className:"home-button-container",id:e.elemid,children:(0,n.jsx)("div",{className:"home-back-live-icon",onWheel:e.onWheelBound,onMouseMove:e.onMouseMoveBound,onClick:()=>{e.router.push("https://watchfree.comedydynamics.com/")},children:(0,n.jsx)(i.hF,{})})})})]})}},57358:function(e,t,r){"use strict";var n=r(85893);function i(e){let{children:t,...r}=e;return(0,n.jsx)(o,{...r,children:t})}r(67294);let o=r(68777).ZP.form.withConfig({componentId:"sc-70871f11-0"})(["display:flex;flex-direction:column;width:100%;"]);t.Z=i},31028:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(68777),o=r(45312);function a(e){let{children:t,...r}=e;return(0,n.jsx)(s,{...r,children:t})}let s=i.ZP.button.withConfig({componentId:"sc-7efb6954-0"})(["border-radius:6px;background-color:",";font-size:14px;font-weight:bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;border:",";color:",";align-text:center;cursor:pointer;min-height:30px;width:45%;&:disabled{opacity:0.3;cursor:not-allowed;}"],e=>o.isDove?"#f7c1bc":e.btnclr?e.btnclr:o.channelPrimaryColor,e=>o.isDove?"2px solid #fff":"0",e=>o.isDove?"#885a5a !important":e.btnclr?"white":o.formbuttonTextColor);t.Z=a},59047:function(e,t,r){"use strict";var n=r(85893);function i(e){let{children:t,...r}=e;return(0,n.jsx)(o,{...r,children:t})}r(67294);let o=r(68777).ZP.p.withConfig({componentId:"sc-a5c93db1-0"})(["color:rgba(255,255,255,0.78);font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;"]);t.Z=i},24091:function(e,t,r){"use strict";var n=r(85893);function i(e){let{children:t,...r}=e;return(0,n.jsx)(o,{...r,children:t})}r(67294);let o=r(68777).ZP.div.withConfig({componentId:"sc-67dd0459-0"})(["border-radius:6px;min-height:30px;font-size ",";margin:",";color:red;text-align:left;padding-top:5px;display:flex;justify-content:center;align-items:flex-start;flex-direction:column;"],e=>e.isChangePass?"13px":"14px",e=>e.isChangePass?"0 0 0 27px":"0 0 16px");t.Z=i},71231:function(e,t,r){"use strict";var n=r(85893),i=r(67294),o=r(68777),a=r(45312),s=r(89755),l=r.n(s);function c(e){let{children:t,...r}=e,o={...r}.type;({...r}).widthControlVal,o=o.toUpperCase();let[a,s]=(0,i.useState)(!1);return r.type="TEXT"==o||a?"text":"password","PASSWORD"!=o?(0,n.jsx)(u,{...r}):(0,n.jsxs)("div",{style:{position:"relative",padding:0},children:[(0,n.jsx)(u,{...r}),(0,n.jsx)("span",{style:{position:"absolute",top:r.flheight?r.flheight:6,right:10},children:a?(0,n.jsx)(l(),{src:"//images/eye_open.svg",alt:"home",width:18,height:18,onClick:()=>{s(!1)}}):(0,n.jsx)(l(),{src:"//images/eye_hide.svg",alt:"home",width:18,height:18,onClick:()=>{s(!0)}})})]})}let u=o.ZP.input.withConfig({componentId:"sc-1d77e62-0"})(["background:black;border-radius:6px;border:1px solid grey;color:grey;height:30px;width:",";line-height:10px;text-align:left;padding:5px 15px;margin-bottom:15px;&:focus,&:hover,&:active{outline:0px;box-shadow:none;border:"," solid 1px !important;}&:disabled{color:grey;opacity:1;}::placeholder{color:grey;text-align:left;text-transform:none;}@media (max-width:768px){width:100%;}"],e=>e.widthControlVal&&"signup"===e.callfrom?"18vw":"100%",e=>(null==e?void 0:e.isDocu_soreal_color)?null==e?void 0:e.isDocu_soreal_color:a.appHighlightColor);t.Z=c},91248:function(e,t,r){"use strict";var n=r(85893);function i(e){let{children:t,...r}=e;return(0,n.jsx)(o,{className:r.className,...r,children:t})}r(67294);let o=r(68777).ZP.div.withConfig({componentId:"sc-570e426a-0"})(["color:#8c8c8c;font-size:13px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:right;margin-top:8px;margin-right:18px;width:",";@media (max-width:768px){width:100%;}"],e=>e.widthControl?"20vw":"");t.Z=i},83989:function(e,t,r){"use strict";var n=r(85893);function i(e){let{children:t,...r}=e;return(0,n.jsx)(o,{...r,children:t})}r(67294);
25let o=r(68777).ZP.div.withConfig({componentId:"sc-5e878d2a-0"})(["display:flex;flex-direction:column;border-radius:5px;width:100%;padding:0px 68px;justify-content:center;justify-items:center;@media (max-width:550px){padding:0px 20px 40px;}@media (max-width:1200px){padding:0px 35px;}"]);t.Z=i},62985:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(68777),o=r(45312);function a(e){let{children:t,...r}=e;return(0,n.jsx)(s,{...r,onClick:()=>r.onClick(),buttonTexclr:o.buttonTextColor,className:r.className,children:t})}let s=i.ZP.button.withConfig({componentId:"sc-4e585549-0"})(["background:",";border-radius:15px;font-size:16px;border:none;cursor:pointer;width:",";height:50px;color:",";&:disabled{opacity:0.3;cursor:not-allowed;}@media (min-width:600px){&:hover{opacity:0.8;}}"],e=>void 0!==e.button_background&&e.button_background?e.button_background:o.channelPrimaryColor,e=>!0==e.widthprops?"150px !important":"100px",e=>e&&e.buttonTexclr?e.buttonTexclr:"white");t.Z=a},78971:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(68777),o=r(45312);function a(e){let{children:t,...r}=e;return(0,n.jsx)(s,{isDove:o.isDove,isplaywatchbtnHover:o.isplaywatchbtnHover,...r,onClick:()=>r.onClick(),children:t})}let s=i.ZP.button.withConfig({componentId:"sc-e22373fc-0"})(["background:",";backdrop-filter:blur(20px);border-radius:",";font-size:16px;border:",";color:",";cursor:pointer;width:",";height:50px;background-color:",";transition:",";&:disabled{opacity:0.3;}@media (min-width:600px){&:hover{opacity:",";background:",";border:",";transform:",";}&:hover > .season{color:rgba(0,0,0,0.32);}}"],e=>e.isDove?"#f7c1bc":"#ffffff47",e=>e.isDove?"16px !important":"15px",e=>e.isDove?"2px solid white":"none",e=>e.isDove?"#885a5a":"white",e=>!0==e.deletebtn?"130px":"100px",e=>e.colorBtn?o.channelPrimaryColor:"",e=>e.isplaywatchbtnHover&&"transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),\n    box-shadow 0.25s ease,\n    opacity 0.25s ease,\n    background 0.25s ease",e=>e.isDove?"0.75":"1",e=>e.colorBtn?o.channelPrimaryColor:e.isDove?"#f7c1bc":"#ffffff29",e=>e.isDove?"2px solid #885a5a":"none",e=>e.isplaywatchbtnHover&&"translateY(-3px) scale(1.04)");t.Z=a},29448:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(68777),o=r(45312);function a(e){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:e.isComeFromSearch?"spinner-centrealign":"",children:(0,n.jsx)(s,{isComeFromSearch:e.isComeFromSearch})})})}t.Z=a;let s=i.ZP.div.withConfig({componentId:"sc-4922e96d-0"})(["width:50px;height:50px;width:",";height:",";border-radius:50%;background-color:transparent;border:4px solid #2d2d2d;border-top-color:",";-webkit-animation:1s spin linear infinite;animation:1s spin linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"],e=>e.isComeFromSearch?"50px":"75px",e=>e.isComeFromSearch?"50px":"75px",o.channelPrimaryColor)},45312:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0});let i=r(10260),o=r(85893);r(2568);let a=i._(r(89755)),s="1.0",l="staging",c=r(50797),u=r(66825);s=u.ver,l=u.pmode;let d="screambox",h=(null==c?void 0:null===(n=c.apps)||void 0===n?void 0:n[d])||{},p=d.charAt(0).toUpperCase()+d.slice(1);document.body.classList.add("app-".concat(d.toLowerCase()));let f=8,m="staging"===l,g="https://ums.service.junctiontv.net/util/geoip/info/",y={AddingWatchlist:{title:"Want to add this title to your watchlist?",desc:"You need to Sign In to add this title to your watchlist",okButtonLabel:"Sign In",cancelButtonLabel:"No, thanks"},likeWatchlist:{title:"Do you want to like this title?",desc:"You need to Sign In to like this title",okButtonLabel:"Sign In",cancelButtonLabel:"No, thanks"},disLikeWatchlist:{title:"Do you want to dislike this title?",desc:"You need to Sign In to dislike this title",okButtonLabel:"Sign In",cancelButtonLabel:"No, thanks"},playModal:{title:"Want to watch this movie?",desc:"You must be a VIP member to watch this title",okButtonLabel:"Sign In",cancelButtonLabel:"No, thanks"}},v="web",b="Web-Browser",_="web",w=r(42474),S="https://dev-007.cineverse.com/",k="https://ava.cinesearch.com/",x={authorization_url:"https://api.letterboxd.com/api/v0/auth/authorize",token_url:"https://api.letterboxd.com/api/v0/auth/token",userInfo_url:"https://api.letterboxd.com/api/v0/userinfo",userDetails_url:"https://api.letterboxd.com/api/v0/me",userWatchList_url:"https://api.letterboxd.com/api/v0/member/__LetterBoxd__ID__/watchlist?perPage=100",userLikeDislike_url:"https://api.letterboxd.com/api/v0/films?member=__Member__ID&perPage=100",userDiary_url:"https://api.letterboxd.com/api/v0/log-entries?member=__Member__ID&perPage=100",userLike_url:"https://api.letterboxd.com/api/v0/films?member=__Member__ID&memberRelationship=Liked&perPage=100"},E="vir_web"+(()=>{let e=new Date().getTime();return w.createHash("md5").update("customUserAgent"+e).digest("hex")})(),T="NO_PLAN",A=(()=>{let e=!1;return window.location.hostname.includes("car.")&&(e=!0),e})(),C=A?"tivo":"web",P={asiancrush:{needCroppedPromo:!1,footerLogowidth:160,footerLogoheight:40,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that AsianCrush may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetail
25sKeywordEnabled:!0,GTM_ID:"GTM-58T7G56T",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",GA_ADS_SITE_TAG:"",FB_ADS_PIXEL_ID:"",TIKTOK_PIXEL_ID:"",GA_SUBSCRIPTION_CONVERSION_ID:"",STACKADAPT_TAG_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/dec76e5f137207a29678dcd003bdad20/asiancrush",androidLink:"https://play.google.com/store/apps/details?id=com.dmr.asiancrush&hl=en",iosLink:"https://apps.apple.com/us/app/asiancrush-movies-tv/id1123526337",lgWebLink:"https://us.lgappstv.com/main/tvapp/detail?appId=470729&catCode1=&moreYn=N&cateYn=N&orderType=0&headerName=&appRankCode=&sellrUsrNo=",vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:"https://play.google.com/store/apps/details?id=com.dmr.asiancrush.tv",appleTvLink:"https://apps.apple.com/us/app/asiancrush-movies-tv/id1123526337",googleTvLink:"https://play.google.com/store/apps/details?id=com.dmr.asiancrush.tv",comcastXfinityLink:null,amazonLink:"https://www.amazon.com/Digital-Media-Rights-AsianCrush-Movies/dp/B077H71CNX/ref=sr_1_2?crid=3EENALE2EVNYS&keywords=asiancrush+app&qid=1694707144&sprefix=asiancrush+%2Caps%2C287&sr=8-2",tizenLink:"https://www.samsung.com/us/tvs/smart-tv/samsung-tv-plus-and-smart-hub/"},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isDropDown:!0,isCinesearch:!1,isGridView:!0,isAutoPreView:!0,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191c10d-1ac0-7d4b-b6f2-d4ce8d9bfd69/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191bef7-8c3d-721f-ba81-eb9e485c46fa/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191c10d-1ac0-7d4b-b6f2-d4ce8d9bfd69":"0191bef7-8c3d-721f-ba81-eb9e485c46fa",couponHeadline:"Stream Asian Cinema",loggedUsercouponDescription:"Stream for free, or upgrade to get your binge on without ads.",signUpCouponDescription:"",subHeaderPlan:"Best of the East in the West. Endlessly Entertaining.",couponParagraph:"",deepLinkinProtocol:"asiancrush://",isWallet:!1,isRowEight:!1,LoginAppName:"AsianCrush",isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,chromeCastId:m?"EE58FC23":"F889399C",kochavaAppId:m?"koasiancrush-beta-xoe":"koasiancrush-web-660ciivlw",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-cZDevNFbfphGfLJXWvKAbv",recurlyDomain_stage:"screambox-dev",recurlyDomain_production:"asiancrush",recurlyDomain_demo:"screambox",websiteUrl:"https://www.asiancrush.com",websiteUrlDomain:m?"https://stage-03.asiancrush.com/":"https://www.asiancrush.com/",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-asiancrush-monthly",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_desc:"",plan_amt:"$4.99/month",monthlyamt
25:"$4.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-asiancrush-annual",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_desc:"",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#ff4d11","highlight-color":"#ff4d11","logo-height":40,"logo-width":200,"tag-primary-fontcolor":"#ffffff","tag-primary-backgroundColor":"#ed5a21","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#813002","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#953b14","tag-hoverColor":"#ffffff1a","svg-filter":"brightness(0) saturate(100%) invert(36%) sepia(81%) saturate(2856%) hue-rotate(353deg) brightness(103%) contrast(103%)",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image_new",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",backgroundColor:"#3E1300",isLogTable:!1,errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg",rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.","text_hover-color":"#ff4d11","logo-image":"//images/"+d+"/asiancrush_logo_image.png","footer-logo":"//images/"+d+"/asiancrush.svg","svg-filter":"brightness(0) saturate(100%) invert(36%) sepia(81%) saturate(2856%) hue-rotate(353deg) brightness(103%) contrast(103%)","plancard-background-color":"linear-gradient(328deg,rgb(0 0 0) 0%,rgb(63 16 1) 100%)","sub-plancard-background-color":"linear-gradient(328deg,rgb(0 0 0) 0%,rgb(63 16 1) 100%)","epg-primary-color":"#ffb410","epg-secondary-color":"#ff4d11","epg-additional-color":"#ff4d11","button-text-color":"white","formbutton-text-color":"black","playbox-text-color":"#ffcbcb",appTitle:"Stream Asian Cinema | "+p,appTag:"Cinedigm-India-"+p,metaLogoOne:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3ehkz2z1he4dltixitosoocgexi9n12e5jwwzbbjo95u5er1n53x/600x315.png",metaLogoTwo:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e6d7obnjs5plpngfhddelqie0galx0f1jwwzbbjo95u5er1n53x/246x140.png",appdeeplink:"asiancrush.com",isDeepLinkNeeded:!0,companyName:"AsianCrush",custId:"asiancrush",channelName:"asiancrush",liveRampUrl:null,custIdUMS:"asiancrush","social-links":{facebook_link:"https://www.facebook.com/asiancrush.tv",instagram_link:"https://www.instagram.com/asncrsh/",twitter_link:"https://twitter.com/asiancrush",tiktok_link:"",youtube_link:"https://www.youtube.com/user/AsianMedia2010"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/asiancrush-movies-tv/id1123526337",androidAppStore:"https://play.google.com/store/apps/details?id=com.dmr.asiancrush&hl=en",rokuAppStore:"https://channelstore.roku.com/en-gb/details/dec76e5f137207a29678dcd003bdad20/asiancrush"},metaLogoOne:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3ehkz2z1he4dltixitosoocgexi9n12e5jwwzbbjo95u5er1n53x/600x315.png",metaLogoTwo:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e6d7obnjs5plpngfhddelqie0galx0f1jwwzbbjo95u5er1n53x/246x140.png",supportURL:"https://www.asiancrush.com/support",metaLogo:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e6d7obnjs5plpngfhddelqie0galx0f1jwwzbbjo95u5er1n53x/246x140.png",metaLogo310_150:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e4zzt333l6pj2ggm49e0gw8enleklsanrn9m2l0q4601dj3ecfc/metalogo310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e4zzt333l6pj2ggm49e0gw8enknn7axojdbrewybwjn25r70iz5/metalogo144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e4zzt333l6pj2ggm49e0gw8enkg3n1spc4gh9d55dn4ez24hp3h/metalogo310x310.png",metaLogo150_150:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e4zzt333l6pj2ggm49e0gw8enl7whgu7nd59tzwl3a61pt41nex/metalogo150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/8y95rsg1lmugt2rgx7oh05x3e4zzt333l6pj2ggm49e0gw8enkh07crz5lus61j7m4tat03kf3y/metalogo70x70.png",supportLink:"https://support.asiancrush.com/hc/en-us",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v7.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",faviconPath:"//images/"+d+"/ico.png",accountDefaultIconImg:"/images/"+d+"/icons/asiancrush-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/asiancrush-account-hover-img.svg",metaDescription:"The best in Asian entertainment, featuring premium movies & dramas on demand",metaCanonical:"https://www.asiancrush.com/",metaSiteURL:"https://www.asiancrush.com",metaSiteName:"AsianCrush",twitterHandle:"@asiancrush",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],playButtonTextColor:"white",defaultUiConfig:{customer:"asiancrush",device:"web",config:{basic:{logo:"//images/"+d+"/asiancrush_logo_image.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#ff4d11",button_border_color:"",button_background_highlight_color:"#ff4d11",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#gb(255, 21, 21)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#ff4d11",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:m?"http://staging-12.screambox.com":"https://www.screambox.com"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#ff4d11",menu_highlight_color:"#ff4d11",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1123526337",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},midnightpulp:{footerLogowidth:160,footerLogoheight:40,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Midnight Pulp may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"GTM-TJ9V4N6F",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/b29f2ccc81b4bca3dc40ad3b188cee9b/midnight-pulp",androidLink:"https://play.google.com/store/apps/details?id=com.dmr.midnightpulp&hl=en&pli=1",iosLink:"https://apps.apple.com/us/app/midnight-pulp-movies-tv/id1258727736#?platform=iphone",lgWebLink:"https://us.lgappstv.com/main/tvapp/detail?appId=470733&catCode1=&moreYn=N&cateYn=N&orderType=0&headerName=&appRankCode=&sellrUsrNo=",vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:"https://play.google.com/store/apps/details?id=com.dmr.midnightpulp.tv",appleTvLink:"https://apps.apple.com/us/app/midnight-pulp-movies-tv/id1258727736#?platform=iphone",googleTvLink:"https://play.google.com/store/apps/details?id=com.dmr.midnightpulp.tv",comcastXfinityLink:null,amazonLink:"https://www.amazon.com/Digital-Media-Rights-Midnight-Pulp/dp/B077NS2G2Y/ref=sr_1_1?crid=3593UZ4G58TMJ&keywords=midnight+pulp+app&qid=1694707166&sprefix=midnight+pulp+a%2Caps%2C298&sr=8-1",tizenLink:"https://www.samsung.com/us/tvs/smart-tv/samsung-tv-plus-and-smart-hub/"},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isDropDown:!0,isCinesearch:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191c105-3483-79f0-b288-69078ca0a745/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191bef8-5949-799b-9734-b9123e950273/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191c105-3483-79f0-b288-69078ca0a745":"0191bef8-5949-799b-9734-b9123e950273",isGridView:!0,isAutoPreView:!0,couponHeadline:"Stream Something Strange!",loggedUsercouponDescription:"Stream for free, or upgrade to get weird, fun cult films and series without ads.",subHeaderPlan:"Stream something strange.",signUpCouponDescription:"",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Midnight Pulp",isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,deepLinkinProtocol:"midnightpulp://",chromeCastId:m?"5FC0AA6F":"DBDC53AC",kochavaAppId:m?"komidnightpulp-beta-iskf7gy":"komidnightpulp-web-ovybel7c",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-fEE4TsW08kDZxXuj4GtjOq",recurlyDomain_stage:"screambox-dev",recurlyDomain_production:"midnightpulp",recurlyDomain_demo:"screambox",websiteUrl:"https://www.midnightpulp.com",websiteUrlDomain:m?"https://stage-01.midnightpulp.com/":"https://www.midnightpulp.com/",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-midnightpulp-monthly",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$5.99/month",monthlyamt:"$5.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-midnightpulp-annual",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$59.99/year",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$5.99/month",monthlyamt:"$5.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$59.99/year",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#6fef63","highlight-color":"#6fef63","logo-height":40,"logo-width":200,"tag-primary-fontcolor":"#ffffff","tag-primary-backgroundColor":"#466a11","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#4b5e2e","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#466a11","tag-hoverColor":"#ffffff1a","svg-filter":"brightness(0) saturate(100%) invert(76%) sepia(92%) saturate(359%) hue-rotate(54deg) brightness(101%) contrast(87%)","plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(4,36,2,1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(4,36,2,1) 100%)",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",backgroundColor:"#24350E",isLogTable:!1,errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg",rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.","text_hover-color":"#6fef63","logo-image":"//images/"+d+"/midnightpulp_logo_image.png","footer-logo":"//images/"+d+"/midnightpulp.svg","svg-filter":"brightness(0) saturate(100%) invert(76%) sepia(92%) saturate(359%) hue-rotate(54deg) brightness(101%) contrast(87%)","epg-primary-color":"#46C13B","epg-secondary-color":"#2A7B23","epg-additional-color":"#2A7B23","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#00743f",appTitle:"Stream Something Strange | "+p,appTag:"Cinedigm-India-"+p,metaLogoOne:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhon47bg5uyfmauxmz2r4rxqp1irrv38plxkzkjci99x36mj86enp69fnb59pjzi5exz3ppunhn3q/web_midnightpulp.png",metaLogoTwo:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dgpoca083oczg9wll1hjpc7q2bngpy8hc50amvck9x9s70tnxd1lk91mkqn75u5eib18qnm1p423z/WebLinnkLogo-image.png",appdeeplink:"midnightpulp.com",isDeepLinkNeeded:!0,companyName:"Midnight Pulp",custId:"midnightpulp",channelName:"midnightpulp",liveRampUrl:null,custIdUMS:"midnightpulp","social-links":{facebook_link:"https://www.facebook.com/midnightpulp",instagram_link:"https://www.instagram.com/midnight.pulp/",twitter_link:"https://twitter.com/midnight_pulp",tiktok_link:"",youtube_link:"https://www.youtube.com/channel/UCkL074VkFaNIJuhRa7TUEEQ"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/midnight-pulp-movies-tv/id1258727736#?platform=iphone",androidAppStore:"https://play.google.com/store/apps/details?id=com.dmr.midnightpulp&hl=en&pli=1",rokuAppStore:"https://channelstore.roku.com/en-gb/detail
25s/b29f2ccc81b4bca3dc40ad3b188cee9b/midnight-pulp"},metaLogoOne:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhon47bg5uyfmauxmz2r4rxqp1irrv38plxkzkjci99x36mj86enp69fnb59pjzi5exz3ppunhn3q/web_midnightpulp.png",metaLogoTwo:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dgpoca083oczg9wll1hjpc7q2bngpy8hc50amvck9x9s70tnxd1lk91mkqn75u5eib18qnm1p423z/WebLinnkLogo-image.png",supportURL:"https://support.midnightpulp.com/hc/en-us",metaLogo:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhqlegjhq6pboo4yag49qlz9zugl8bixbmtt58she5iajcrmg7k5moa7m2k4kjfek2j8bzupowy12/Midnightpulp_WebLinkLogo.png",metaLogo310_150:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhqlegjhq6pboo4yag49qlz9zuhjnt2ytcszlsc56j2xu0dflxhb2pib65shiup6d8of1xsd11q37/Midnightpulp_logo_310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhqlegjhq6pboo4yag49qlz9zugt1fclvr5lu71z03lciwbp2cokar6kam3y1c57k2ze6e44snw3p/Midnightpulp_logo_144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhqlegjhq6pboo4yag49qlz9zuhjnt2ytcszlsc56j2xu0dflxhao9cl8fd9jcdt3qg86yorxch2z/Midnightpulp_logo_310x310.png",metaLogo150_150:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhqlegjhq6pboo4yag49qlz9zuhl7zsdihx0soisnhaxyaqpppxf0xib65shiup6d8of1xsd11q37/Midnightpulp_logo_150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/igi8pdilqv68vur4q5blsj9dhqlegjhq6pboo4yag49qlz9zuh8h83ok4yleffv5ju5ui6v0705qi15kxs6mrtpz6dnrdf9wt06r/Midnightpulp_logo_70x70.png",supportLink:"https://support.midnightpulp.com/hc/en-us",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",faviconPath:"//images/"+d+"/ico.png",accountDefaultIconImg:"/images/"+d+"/icons/midnightpulp-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/midnightpulp-account-hover-img.svg",metaDescription:"Cult, genre, weird, action, horror, sci-fi, thriller",metaCanonical:"https://www.midnightpulp.com/",metaSiteURL:"https://www.midnightpulp.com",metaSiteName:"Midnight Pulp",twitterHandle:"@midnight_pulp",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],playButtonTextColor:"white",defaultUiConfig:{customer:"midnightpulp",device:"web",config:{basic:{logo:"//images/"+d+"/midnightpulp_logo_image.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#6fef63",button_border_color:"",button_background_highlight_color:"#6fef63",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#gb(255, 21, 21)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#6fef63",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:m?"http://staging-12.screambox.com":"https://www.screambox.com"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#6fef63",menu_highlight_color:"#6fef63",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1258727736",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},fandor:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Fandor may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"GTM-5QK6C9V8",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:A?"":"https://explore.fandor.com/",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"6936",FW_COMMON_TAG_ID:"6942",FW_SUBSCRIPTION_TAG_ID:"6948",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"6940",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"6838",GA_CONVERSION_ID:"AW-17448848261/DJLzCKWbgYkbEIWXoYBB",GA_ANNUAL_CONVERSION_ID:"AW-17448848261/B2w_CILEgYkbEIWXoYBB",GA_MONTHLY_CONVERSION_ID:"AW-17448848261/kZ2_CIjEgYkbEIWXoYBB",GA_SUBMIT_CONVERSION_ID:"AW-17448848261/gUu9CI7EgYkbEIWXoYBB",GA_ANNUAL_SUCCESS_CONVERSION_ID:"AW-17448848261/Q_dsCNPlgokbEIWXoYBB",GA_MONTHLY_SUCCESS_CONVERSION_ID:"AW-17448848261/Vb_-CNblgokbEIWXoYBB",GA_COMMON_CONVERSION_ID:"AW-17448848261/QGpTCJTEgYkbEIWXoYBB",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"AW-17448848261",FB_PIXEL_ID:"847606206508824",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/befef4cfccfcd2fe180c1d086658fb5f/fandor",androidLink:"https://play.google.com/store/apps/details?id=com.cidm.fandor",iosLink:"https://apps.apple.com/us/app/fandor/id1579502333",lgWebLink:null,vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:null,appleTvLink:"https://apps.apple.com/us/app/fandor/id1579502333",googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isNavLink:null,isDove:!1,isLetterBox:!1,isDropDown:!0,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191bee6-d87d-7423-ae30-df11c55aa675/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191bee7-ee34-7880-a40e-9fce9361ca55/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191bee6-d87d-7423-ae30-df11c55aa675":"0191bee7-ee34-7880-a40e-9fce9361ca55",isCinesearch:!1,isGridView:!0,isAutoPreView:!0,couponHeadline:"Artfully Entertaining!",loggedUsercouponDescription:"The home for independent, documentary, and classic films from around the world.",signUpCouponDescription:"",subHeaderPlan:"Stream Independent.",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Fandor",isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,deepLinkinProtocol:"fandor://",chromeCastId:m?"319F07F2":"A3415CE7",kochavaAppId:m?"kofandor-beta-pin8tw3":"kofandor-web-x1yusny",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-6IRYQ80MKuuk6XOKupwsIJ",recurlyDomain_stage:"fandor-dev",recurlyDomain_production:"fandor-dev",recurlyDomain_demo:"fandor",websiteUrl:"https://www.fandor.com",websiteUrlDomain:"https://www.fandor.com/",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-1-month",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!1,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!1,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#a6272a","highlight-color":"#d8c87d","text_hover-color":"#d8c87d","button-text-color":"white","formbutton-text-color":"rgb(244, 188, 190)","playbox-text-color":"#ffcbcb",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo_new.svg"),submitYourFilmImg:"//images/".concat(d,"/iphone-screenshot-fandor.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":70,"logo-width":130,"tag-primary-fontcolor":"#fff","tag-primary-backgroundColor":"#891e21","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#4c0002","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#a51b1e","tag-hoverColor":"#ffffff1a","logo-image":"//images/".concat(d,"/fandor_logo.png"),"footer-logo":"//images/".concat(d,"/fandor.svg"),"svg-filter":"invert(33%) sepia(96%) saturate(7069%) hue-rotate(354deg) brightness(77%) contrast(73%)","plancard-background-color":"linear-gradient(292deg,rgba(0,0,4,1) 0%,rgb(65 10 11) 100%)","sub-plancard-background-color":"linear-gradient(292deg,rgba(0,0,4,1) 0%,rgb(65 10 11) 100%)",appTitle:"Artfully Entertaining | "+p,appTag:"Cinedigm-India-"+p,appdeeplink:"fandor.com",isDeepLinkNeeded:!0,companyName:"Fandor",isSubmitYourFilm:!1,backgroundColor:"#2C0001",isLogTable:!1,isSubmitParagraph:!0,playButtonClass:"play-button-image_new",rentConstructColor:"",rentAbstructColor:"",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Keyframe",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movie-roll_svg.svg"),alt:"keyframe",width:14,height:14,priority:!0}),path:"https://keyframe.fandor.com/",id:"keyframe"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],appLinks:{appleAppStore:"https://apps.apple.com/us/app/fandor/id1579502333",androidAppStore:"https://play.google.com/store/apps/details?id=com.cidm.fandor",rokuAppStore:"https://channelstore.roku.com/en-gb/detail
25s/befef4cfccfcd2fe180c1d086658fb5f/fandor"},supportLink:"https://support.fandor.com/portal/en/home",KeyframeURL:"https://keyframe.fandor.com/",rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo391047cagasilh85c26t5pqqbnwnco94bz5wfidi97i1a2qzzctfuafa6v4dbs4vrw4eeiw6i7eoa94p/fandor_logo1.png",metaLogo310_150:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo39104bk96jfq05qfztc6v1azpy0wpm2gsp3n8hxb3bafl508ead7xako2pvjsghovh6jwdqtcjxb8a4d/Fandor_logo_310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo39104bk96jfq05qfztc6v1azpy0wpnn4j7z98ybrzf0jm409arvgwq3hepvjsghovh6jwdqtcjxb8a4d/Fandor_logo_144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo39104bk96jfq05qfztc6v1azpy0wpm0o9lhaf8hvtao2830amydm5z5lupvjsghovh6jwdqtcjxb8a4d/Fandor_logo_310x310.png",metaLogo150_150:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo39104bk96jfq05qfztc6v1azpy0wpmnqxviq2k93mrg3zwn09jnxfs9wipvjsghovh6jwdqtcjxb8a4d/Fandor_logo_150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo39104bk96jfq05qfztc6v1azpy0wpnlna12ikmdzahdnq0347yonvym7sd2ufqg03d17hgg28sx10d1y/Fandor_logo_70x70.png",metaLogoOne:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo391047cagasilh85c26t5pqqbnwnco94bz5wfidi97i1a2qzzctfuafa6v4dbs4vrw4eeiw6i7eoa94p/fandor_logo1.png",metaLogoTwo:"https://cdn.matchpoint.tv/ear2y2koukr4chfpf0jo391047cagasilh85c26t5pqqbnwnco94bz5wfidi97i1a2qzzctfuafa6v4dbs4vrw4eeiw6i7eoa94p/fandor_logo1.png","social-links":{facebook_link:"https://www.facebook.com/fandor",instagram_link:"https://www.instagram.com/fandorfilms/",twitter_link:"https://twitter.com/Fandor",tiktok_link:null,youtube_link:null},premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/Fandor-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/Fandor-account-hover-img.svg",metaDescription:"Artfully Entertaining, Never Just Content",metaCanonical:"https://www.fandor.com/",metaSiteURL:"https://www.fandor.com",metaSiteName:"Fandor",twitterHandle:"@Fandor",custIdUMS:"fandor",liveRampUrl:null,playButtonTextColor:"white",custId:"fandor",channelName:"fandor",defaultUiConfig:{customer:"fandor",device:"web",config:{basic:{logo:"//images/".concat(d,"/fandor_logo.png"),issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#d8c87d",button_border_color:"",button_background_highlight_color:"rgb(197, 32, 32)",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#d8c87d",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#d8c87d",top_menu_highlight_icon_color:"rgb(197, 32, 32)",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:m?"http://staging.fandor.com":"https://www.fandor.com"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"rgb(197, 32, 32)",menu_highlight_color:"#d8c87d",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1579502333",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},screambox:{footerLogowidth:160,footerLogoheight:40,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Screambox may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"GTM-WF95NBF2",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!0,weblandingURL:A?"":"https://explore.screambox.com/",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"6935",FW_COMMON_TAG_ID:"6941",FW_SUBSCRIPTION_TAG_ID:"6947",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"6939",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"6837",GA_CONVERSION_ID:"AW-17448848261/X8biCKKbgYkbEIWXoYBB",GA_ANNUAL_CONVERSION_ID:"AW-17448848261/ITgiCLSbgYkbEIWXoYBB",GA_MONTHLY_CONVERSION_ID:"AW-17448848261/eexuCIXEgYkbEIWXoYBB",GA_SUBMIT_CONVERSION_ID:"AW-17448848261/1tPsCIvEgYkbEIWXoYBB",GA_ANNUAL_SUCCESS_CONVERSION_ID:"AW-17448848261/RxHZCM3lgokbEIWXoYBB",GA_MONTHLY_SUCCESS_CONVERSION_ID:"AW-17448848261/xlOfCNDlgokbEIWXoYBB",GA_COMMON_CONVERSION_ID:"AW-17448848261/w-ZgCJHEgYkbEIWXoYBB",GA_VIDEO_START_CONVERSION_ID:"AW-17448848261/KQd2CKibgYkbEIWXoYBB",GA_VIDEO_END_CONVERSION_ID:"AW-17448848261/rswhCK6bgYkbEIWXoYBB",GA_GTAG_ID:"",FB_PIXEL_ID:"1261602135745859",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/3acbfd1791f5071a4ad9331ce350e2f0/screambox",androidLink:"https://play.google.com/store/apps/details?id=com.cidm.screambox",iosLink:"https://apps.apple.com/us/app/screambox/id1589278221",lgWebLink:null,vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:"https://play.google.com/store/apps/details?id=com.cidm.screambox.tv",appleTvLink:"https://apps.apple.com/us/app/screambox/id1589278221",googleTvLink:null,comcastXfinityLink:null,amazonLink:"https://www.amazon.com/Cinedigm-OTT-Holdings-LLC-Screambox/dp/B0CW19FBDD/ref=sr_1_1?crid=2KCB2SP13X950&dib=eyJ2IjoiMSJ9.CDxCwlDNfUJFKDhT4WKQ5jnVMjwVYxLh6_8JTgWRP4aecppLa8ofDfScXV-h2b6VexiX26lrxxB1Tv732DdfsShz0fXh8IHZDdhSIPV4hoSFzOe7TgbLOhwP8StRaLVz3qNZqJLeEU42JcaHd6ohgDvYdtu7wuxWLTteOtqNAkAra8tSDk_4Wa2An72wf_dstrSon1-tReFYApMBkISw0SEISecGb2fS3Wl4NLSwPp8.PeuAWKcdG33gPN84GWXtJPpSbkYvc71modudM-YgXO8&dib_tag=se&keywords=screambox+tv&qid=1715779288&s=instant-video&sprefix=screambox+tv%2Cinstant-video%2C361&sr=1-1-catcorr",tizenLink:"https://www.samsung.com/us/tvs/smart-tv/samsung-tv-plus-and-smart-hub/"},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isDropDown:!0,isCinesearch:!1,isGridView:!0,isAutoPreView:!0,couponHeadline:"Stream. Scream. Repeat!",loggedUsercouponDescription:"We are proud to offer you a free premium subscription to watch Screambox to discover horror you won’t find anywhere else. ",signUpCouponDescription:"We are proud to offer you a free premium subscription to watch Screambox which delivers every type of terror imaginable -- Supernatural, Slashers, Classics, Zombies, Extreme, Psychological, Cult, Underground, Banned Movies, and more. Discover horror you won’t find anywhere else.",couponParagraph:"",subHeaderPlan:"Your nightmares, now streaming.",isWallet:!0,isRowEight:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191beec-247e-7b19-950b-7cb8bf746d21/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191bee9-9adb-71c1-a4d7-eee9cf08c3ef/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191beec-247e-7b19-950b-7cb8bf746d21":"0191bee9-9adb-71c1-a4d7-eee9cf08c3ef",LoginAppName:"Screambox",isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,
25chromeCastId:m?"F7925670":"8800AA3B",deepLinkinProtocol:"screambox://",kochavaAppId:m?"koscreambox-beta-hms8":"koscreambox-web-2ekon",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-Upg73PE1iEfoR0ZszOdoew",recurlyDomain_stage:"screambox-dev",recurlyDomain_production:"screambox-dev",recurlyDomain_demo:"screambox",websiteUrl:"https://www.screambox.com",websiteUrlDomain:m?"https://stage-12.screambox.com/":"https://www.screambox.com/",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-1-month",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",plan_amt:"$6.99/month",monthlyamt:"$6.99/MO",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",plan_amt:"$59.99/year",monthlyamt:"$4.99/MO",isactive:!1,isPopular:!0,saveplan:"(Save 29%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",plan_amt:"$6.99/month",monthlyamt:"$6.99/MO",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",plan_amt:"$59.99/year",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!0,saveplan:"(Save 29%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#ff1515","highlight-color":"#f69818","logo-height":40,"logo-width":200,"tag-primary-fontcolor":"#fff","tag-primary-backgroundColor":"#891e21","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#4c0002","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#a51b1e52","tag-hoverColor":"#ffffff1a","svg-filter":"invert(33%) sepia(90%) saturate(1218%) hue-rotate(103deg) brightness(99%) contrast(104%)","plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(48,1,1,1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(48,1,1,1) 100%)",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image_new",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",backgroundColor:"#260F0F",isLogTable:!1,errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg",rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.","text_hover-color":"#ff1515","logo-image":"//images/"+d+"/screambox_logo_image.png","footer-logo":"//images/"+d+"/screambox.svg","svg-filter":"invert(33%) sepia(96%) saturate(7069%) hue-rotate(354deg) brightness(100%) contrast(102%)","epg-primary-color":"#3f0e0e","epg-secondary-color":"#ff1515","epg-additional-color":"#ff1515","button-text-color":"white","formbutton-text-color":"black","playbox-text-color":"#ffcbcb",appTitle:"Pure Horror | "+p,appTag:"Cinedigm-India-"+p,metaLogoOne:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdzeqqha4pzv0fddrcusq2kv7vjme7xb01t8cpu4qd0c0fe31p0gq6p51mkqn75u5eib18qnm1p423z/screambox_meta_logov2.png",metaLogoTwo:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdzeqqha4pzv0fddrcusq2kv7vjme83jum2a3g8mrzimkqzh9foby7i29fnb59pjzi5exz3ppunhn3q/screambox_meta_logo.png",appdeeplink:"screambox.com",isDeepLinkNeeded:!0,companyName:"Screambox",custId:"screambox",channelName:"screambox",liveRampUrl:null,custIdUMS:m?"dove-beta":"screambox","social-links":{facebook_link:"https://www.facebook.com/ScreamboxTV/",instagram_link:"https://www.instagram.com/screamboxtv/?hl=en",twitter_link:"https://twitter.com/SCREAMBOXTV",tiktok_link:null,youtube_link:null},appLinks:{appleAppStore:"https://apps.apple.com/us/app/screambox/id1589278221",androidAppStore:"https://play.google.com/store/apps/details?id=com.cidm.screambox",rokuAppStore:"https://channelstore.roku.com/en-gb/detail
25s/3acbfd1791f5071a4ad9331ce350e2f0/screambox"},metaLogoOne:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdzeqqha4pzv0fddrcusq2kv7vjme7xb01t8cpu4qd0c0fe31p0gq6p51mkqn75u5eib18qnm1p423z/screambox_meta_logov2.png",metaLogoTwo:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdzeqqha4pzv0fddrcusq2kv7vjme83jum2a3g8mrzimkqzh9foby7i29fnb59pjzi5exz3ppunhn3q/screambox_meta_logo.png",supportURL:"https://support.screambox.com/portal/en/home",metaLogo:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7znj9b5rf4u7lcpvg9d4kry732217551mkqn75u5eib18qnm1p423z/Screambox_WebLinkLogo.png",metaLogo310_150:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7znje2xboal3ebil28jbqronl3fmi2gd2ufqg03d17hgg28sx10d1y/Screambox_logo_310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7znjdq23zc5am5ax39y0er6vuqg7bw8d2ufqg03d17hgg28sx10d1y/Screambox_logo_144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7zni4kmujuadae3kftt8lqw4v7q5blkd2ufqg03d17hgg28sx10d1y/Screambox_logo_310x310.png",metaLogo150_150:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7zni2ydlnt400lavu98hzzxv9ir1at4d2ufqg03d17hgg28sx10d1y/Screambox_logo_150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7znji2s6f88vdbaxy1xxrr137d38v4ah7fldjg7wze4mklpvzxrb41/Screambox_logo_70x70.png",supportLink:"https://support.screambox.com/portal/en/home",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",faviconPath:"//images/"+d+"/ico.png",accountDefaultIconImg:"/images/"+d+"/icons/screambox-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/Screambox-hover-img.svg",metaDescription:"Pure Horror",metaCanonical:"https://www.screambox.com/",metaSiteURL:"https://www.screambox.com",metaSiteName:"Screambox",twitterHandle:"@ScreamboxTV",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],playButtonTextColor:"white",defaultUiConfig:{customer:"screambox",device:"web",config:{basic:{logo:"//images/"+d+"/screambox_logo_image.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"rgb(255, 21, 21)",button_border_color:"",button_background_highlight_color:"rgb(255, 21, 21)",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#gb(255, 21, 21)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"rgb(255, 21, 21)",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:m?"http://staging-12.screambox.com":"https://www.screambox.com"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"rgb(255, 21, 21)",menu_highlight_color:"rgb(255, 21, 21)",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1589278221",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},cineverse:{footerLogowidth:200,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"#062a1e",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Cineverse may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"GTM-KD9J7GG4",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/3b71ec73e9fcb6d8de72c67925a5d551/cineverse-stream-movies-and-tv",androidLink:"https://play.google.com/store/apps/details?id=com.dmr.yuyu",iosLink:"https://apps.apple.com/us/app/cineverse-stream-movies-tv/id1249601429",lgWebLink:null,vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:"https://play.google.com/store/apps/details?id=com.dmr.yuyu.tv",appleTvLink:"https://apps.apple.com/us/app/cineverse-stream-movies-tv/id1249601429",googleTvLink:"https://play.google.com/store/apps/details?id=com.dmr.yuyu.tv",comcastXfinityLink:null,amazonLink:"https://www.amazon.com/Cinedigm-OTT-Holdings-LLC-Cineverse/dp/B077H7WQX2/ref=sr_1_10?crid=2Z5644XC155AL&keywords=cineverse&qid=1678952985&sprefix=cineverse,aps,324&sr=8-10",tizenLink:"https://www.samsung.com/us/tvs/smart-tv/samsung-tv-plus-and-smart-hub/"},isSession:!0,isDove:!1,isNavLink:"https://home.cineverse.com/",isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191be62-49dd-7925-9477-83d09a2c96bf-test/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191be34-537d-777e-a52a-36ec2be0a549/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191be62-49dd-7925-9477-83d09a2c96bf-test":"0191be34-537d-777e-a52a-36ec2be0a549",isCinesearch:!1,couponHeadline:"Stream Movies & TV",loggedUsercouponDescription:"Watch unlimited films and TV shows today",signUpCouponDescription:"",subHeaderPlan:"Choose a Plan. Cancel Anytime.",deepLinkinProtocol:"cineverse://",couponParagraph:"",isWallet:!0,isRowEight:!0,LoginAppName:"Cineverse",isAutoPreView:!0,isGridView:!0,isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,isDropDown:!0,chromeCastId:m?"BDBD3AB5":"FA7BDF35",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#00FFBA","highlight-color":"#00FFBA","text_hover-color":"#00FFBA","tag-primary-fontcolor":"#00FFBA","tag-primary-backgroundColor":"#02323c","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#0243507d","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/cineverse.svg","footer-logo":"//images/"+d+"/cineverse_ft.svg","svg-filter":"invert(33%) sepia(90%) saturate(1218%) hue-rotate(110deg) brightness(99%) contrast(104%)","plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","epg-primary-color":"#00FFBA","epg-secondary-color":"#00C48F","epg-additional-color":"#003B2B","rowEight-color":"#64007d","text_hover-color":"#00FFBA","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#006235",appTitle:"Cineverse - Watch Free Movies & TV Shows Online",appTag:"Cinedigm-India-Cineverse",supportLink:"https://support.cineverse.com",websiteUrl:"https://streaming.cineverse.com",websiteUrlDomain:m?"https://stage-13.cineverse.com/":"https://streaming.cineverse.com/",appdeeplink:"cineverse.com",isDeepLinkNeeded:!0,backgroundColor:"#022022",isLogTable:!0,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/acct-hover-icon.png",metaDescription:"Stream your favorite movies and TV shows for free on Cineverse. Join millions of fans watching anime, horror, comedy, true crime and more on any device",metaCanonical:"https://streaming.cineverse.com/",metaSiteURL:"https://streaming.cineverse.com",metaSiteName:"Cineverse",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"About Cineverse – Watch. License. Advertise. Innovate. Explore",signinTitle:"Sign In or Sign Up for Cineverse Here for Free Movies & TV Shows Online",aboutusDescription:"The free streaming service that offers limitless access to the best movies and TV shows from around the world",signinDescription:"Sign In to your Cineverse account or sign up for free today and enjoy a wide variety of movies and TV shows",liveRampUrl:"https://launchpad-wrapper.privacymanager.io/43704492-2b39-4e46-8b83-423f15438fa2/launchpad-liveramp.js",metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7descltxiuh57eg4409suaeg9auj3p3zb8yhwi2fjf1ztjr1gfjt/web_cineverse.png",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d83at18fvzz68wwaxiscng8pdtm0xa0tm70mrdztjag6nsfr2z7ahktu34b6v66l0qvm72q4oc48/WebLinnkLogo-image.png",letterbox_redirect:m?"https://stage-13.cineverse.com/":"https://streaming.cineverse.com/",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:"https://www.facebook.com/cineversetv/",instagram_link:"https://www.instagram.com/cineverse.tv/",twitter_link:"https://twitter.com/cineverse_tv",tiktok_link:"https://www.tiktok.com/@cineverse.tv",youtube_link:"https://www.youtube.com/channel/UCodeZWRjgLXCTX0jjWtZYnA"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/cineverse-stream-movies-tv/id1249601429",androidAppStore:"https://play.google.com/store/apps/details?id=com.dmr.yuyu",rokuAppStore:"https://my.roku.com/account/add/CINEVERSE"},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7znj9b5rf4u7lcpvg9d4kry732217551mkqn75u5eib18qnm1p423z/Screambox_WebLinkLogo.png",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c5f29gqsckq2t7gq1li403lxsoxvw5zxpfw3mp09xdxp142cyf3n/Cineverse_logo_310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c5n9rxfyqfn1bs896rav7ckx5p1r6eta6qyvxlv5ri78673vptw4/Cineverse_logo_144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c5z0m5vh13bghi7a3r1fm6unw62ni53xpfw3mp09xdxp142cyf3n/Cineverse_logo_300x300.png",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c59ah210x4lqn9wbfusdqe4cuvh6bujhpfw3mp09xdxp142cyf3n/Cineverse_logo_150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c4lys0rn25laajs4qycjh6hlhia6lsk5qw7ix4wv41ayguvlx99/Cineverse_logo_70x70.png",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#00FFBA",button_border_color:"",button_background_highlight_color:"#00FFBA",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#00FFBA",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#00FFBA",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:"https://streaming.cineverse.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#00FFBA",menu_highlight_color:"#00FFBA",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},filterItemsWatchlist:["Show All","Netflix","Disney+","HBO Max","HULU","Amazon Prime Video","Paramount+","Letterboxd","Apple TV","Discovery+","Peacock","Pluto TV","The Roku Channel","Tubi TV","Cinesearch"],filterItemsLike:["Show All","Letterboxd","Cinesearch"],filterItemsDislike:["Show All","Cinesearch"],sortItems:["Date Added","A-Z","Z-A","Rating: High to Low","Rating: Low to High"],addressDetailsforSubscription:!0,appId:"1249601429",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},dove:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Dove may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"GTM-MH8K32MP",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:A?"":"https://explore.dovechannel.com/",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/2fc3d60a4c69b420d082a5f721147423/dove-channel",androidLink:"https://play.google.com/store/apps/details?id=com.jtv.dovechannel",iosLink:"https://apps.apple.com/us/app/dove-channel/id1020357030",lgWebLink:null,vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:"https://play.google.com/store/apps/details?id=com.jtv.dovechannel",appleTvLink:"https://apps.apple.com/us/app/dove-channel/id1020357030",googleTvLink:"https://play.google.com/store/apps/details?id=com.jtv.dovechannel",comcastXfinityLink:null,amazonLink:"https://www.amazon.com/The-Dove-Channel-LLC/dp/B074F28MYJ/ref=sr_1_3?crid=LUH0FBXQ4O2Y&keywords=dove+channel+app&qid=1694707212&sprefix=dove+channel+app%2Caps%2C304&sr=8-3",tizenLink:null},isSession:!1,isDove:!0,isNavLink:null,isLetterBox:!1,isDropDown:!0,isCinesearch:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191beec-d80c-7132-b7c4-9c70672f88ca/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191beed-7747-7711-b512-040ab20c05aa/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191beec-d80c-7132-b7c4-9c70672f88ca":"0191beed-7747-7711-b512-040ab20c05aa",isGridView:!0,isAutoPreView:!0,couponHeadline:"",loggedUsercouponDescription:"Through a partnership with the Giving Company, Dove Channel is proud to offer you a Dove Channel premium membership as a 
25subscriber benefit. Sign up now to enjoy our full catalog of family-friendly TV shows and movies absolutely free! Yes, totally free for all Giving Company member subscribers!.",signUpCouponDescription:"",couponParagraph:"Enjoy our full catalog of family-friendly tv shows and movies today!",subHeaderPlan:"Live. Laugh. Dove.",isWallet:!1,isRowEight:!1,isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,LoginAppName:"Dove",chromeCastId:m?"611921CE":"48B3C0DB",deepLinkinProtocol:"dovech://",kochavaAppId:m?"kodove-beta-anb":"kodove-web-uflfqpp",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-dCCUEzGujVDQnMfZ5soYNl",recurlyDomain_stage:"dovechannel-dev",recurlyDomain_production:"dovechannel-dev",recurlyDomain_demo:"dovechannel",stage_plan_data:[{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!1,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Dove Channel without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!1,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#885a5a","highlight-color":"#885a5a","text_hover-color":"#885a5a","button-text-color":"white","formbutton-text-color":"black","playbox-text-color":"#00475a","svg-filter":"brightness(0) saturate(100%) invert(73%) sepia(30%) saturate(370%) hue-rotate(70deg) brightness(86%)","plancard-background-color":"linear-gradient(133deg, #f7c1bc 2%, #fff9ed)","sub-plancard-background-color":"linear-gradient(133deg, #885a5a 2%, #885a5a)","epg-primary-color":"#f7c1bc","epg-secondary-color":"#f7c1bc","epg-additional-color":"#f7c1bc","logo-height":70,"logo-width":130,"tag-primary-fontcolor":"#885a5a","tag-primary-backgroundColor":"#f7c1bc","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#193c6e","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#885a5a","tag-hoverColor":"#ffffff1a","logo-image":"//images/"+d+"/logo.png","footer-logo":"//images/"+d+"/dove-channel.svg",appTitle:"Handpicked Entertainment For Your Whole Family | "+p,appTag:"Cinedigm-India-"+p,appdeeplink:"dovechannel.com",isDeepLinkNeeded:!0,rentConstructColor:"",rentAbstructColor:"",companyName:"Dove",channelName:"dovenew",isSubmitYourFilm:!1,isSubmitParagraph:!1,playButtonClass:"play-button-image_new",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",backgroundColor:"#06162D",isLogTable:!1,errorPageLink:"//images/".concat(d,"/404_page_dove.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.png"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.png"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.png"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.png"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],websiteUrl:m?"http://staging.dovechannel.com":"https://www.dovechannel.tv",websiteUrlDomain:m?"https://staging.dovechannel.com/":"https://www.dovechannel.com/",metaLogoOne:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453dkbnj6acskcjg4dxycjkd7pzuietdis9dnxqmpmigyswdeas4yw29m9fnb59pjzi5exz3ppunhn3q/600x315_metalogo_dovenew.png",metaLogoTwo:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453dkcwqj0vm7lolqjx08678oxjqemphz05tnxqmpmigyswdeas4yw29m9fnb59pjzi5exz3ppunhn3q/246x140_metalogo_dovenew.png",appLinks:{appleAppStore:"https://apps.apple.com/us/app/dove-channel/id1020357030",androidAppStore:"https://play.google.com/store/apps/details?id=com.jtv.dovechannel",rokuAppStore:"https://channelstore.roku.com/en-gb/detail
25s/2fc3d60a4c69b420d082a5f721147423/dove-channel"},supportURL:"https://support.dovechannel.com/portal/en/home",supportLink:"https://support.dovechannel.com/portal/en/home",KeyframeURL:null,rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453dkcwqj0vm7lolqjx08678oxjqemphz05tnxqmpmigyswdeas4yw29m9fnb59pjzi5exz3ppunhn3q/246x140_metalogo_dovenew.png",metaLogo310_150:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453dk5t77hpo3djtlx5768j9g17l58wa6mc1nxqmpmigyswdeas4yw29m9fnb59pjzi5exz3ppunhn3q/310x150_metalogo_dovenew.png",metaLogo144_144:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453dkbcycc3majbqwq2ia5a91mpkj2z6ugepnxqmpmigyswdeas4yw29m9fnb59pjzi5exz3ppunhn3q/144x144_metalogo_dovenew.png",metaLogo310_310:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453dkgvw8xp7rmtssxm84i8prv391ooj324xnxqmpmigyswdeas4yw29m9fnb59pjzi5exz3ppunhn3q/310x310_metalogo_dovenew.png",metaLogo150_150:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453djhtr0iuxnqb9rkp2y5c482l9akqguy6pnxqmpmigyswdeas4yw29m9fnb59pjzi5exz3ppunhn3q/150x150_metalogo_dovenew.png",metaLogo70_70:"https://cdn.matchpoint.tv/r2tisvo74f5e6bcvglc3453djhadmllyq1q2wpgmf2501rymhug3d739nnhga2fghmpspcszkrc2mv4dbs4vrw4eeiw6i7eoa94p/70x70_metalogo_dovenew.png","social-links":{facebook_link:"https://www.facebook.com/thedovechannel/",instagram_link:"https://www.instagram.com/thedovechannel/?hl=en",twitter_link:"https://twitter.com/dovechannel?lang=en",tiktok_link:null,youtube_link:"https://www.youtube.com/@DoveChannelOfficial"},premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/dove-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/dove-account-hover-img.svg",metaDescription:"Handpicked Entertainment For Your Whole Family",metaCanonical:"https://www.dovechannel.com/",metaSiteURL:"https://www.dovechannel.com",metaSiteName:"DoveChannel",twitterHandle:"@thedovechannel",custId:"dovenew",custIdUMS:"dovechannel",liveRampUrl:null,playButtonTextColor:"white",defaultUiConfig:{customer:"dove",device:"web",config:{basic:{logo:"//images/"+d+"/dovechannel_logo_image.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"rgb(131, 176, 130)",button_border_color:"",button_background_highlight_color:"rgb(131, 176, 130)",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"rgb(131, 176, 130)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"rgb(131, 176, 130)",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:m?"http://staging.dovechannel.com":"https://www.dovechannel.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"black",underline_color:"",shelves_title_color:"black",menu_underline_color:"rgb(131, 176, 130)",menu_highlight_color:"rgb(131, 176, 130)",menu_default_color:"#353a47",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"black",asset_title_text_color:"black",asset_detail_text_color:"black",background_color:"white"}}},addressDetailsforSubscription:!0,appId:"1020357030",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},retrocrush:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that RetroCrush may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"GTM-M3DRJMJ4",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/d7f93d5400b49e7748ec450ce90abcb2/retrocrush-watch-free-anime",androidLink:"https://play.google.com/store/apps/details?id=com.dmr.retrocrush&hl=en&gl=US",iosLink:"https://apps.apple.com/us/app/retrocrush-classic-anime/id1501740207?platform=iphone",lgWebLink:"https://us.lgappstv.com/main/tvapp/detail?appId=1211317&catCode1=&moreYn=N&cateYn=N&orderType=0&headerName=&appRankCode=&sellrUsrNo=",vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:"https://play.google.com/store/apps/details?id=com.dmr.retrocrush.tv",appleTvLink:"https://apps.apple.com/us/app/retrocrush-classic-anime/id1501740207?platform=iphone",googleTvLink:"https://play.google.com/store/apps/details?id=com.dmr.retrocrush.tv",comcastXfinityLink:null,amazonLink:"https://www.amazon.com/Digital-Media-Rights-RetroCrush-Classic/dp/B0866DH2PM/ref=sr_1_1?crid=3D75HFBMPKXHU&keywords=retrocrush+app&qid=1694707185&sprefix=retrocrush%2Caps%2C291&sr=8-1",tizenLink:"https://www.samsung.com/us/tvs/smart-tv/samsung-tv-plus-and-smart-hub/"},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isDropDown:!0,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191c10e-2904-7d53-923b-f70bc06acb61/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191beef-2488-7c92-bffd-8acc4c09e1c2/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191c10e-2904-7d53-923b-f70bc06acb61":"0191beef-2488-7c92-bffd-8acc4c09e1c2",isCinesearch:!1,isGridView:!0,isAutoPreView:!0,couponHeadline:"Stream Classic Anime",loggedUsercouponDescription:"Stream for free or upgrade to enjoy ad-free streaming from our library of retro anime, featuring the best and rarest hits from the Golden Age of anime, as well as access to exclusive titles.",signUpCouponDescription:"",subHeaderPlan:"Stream classic anime worth discovering.",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"RetroCrush",isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,chromeCastId:m?"FF80FC85":"77C37443",deepLinkinProtocol:"retrocrush://",kochavaAppId:m?"koretrocrush-beta-xy9ae7j2":"koretrocrush-web-xgf9q6gq",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-yjLjQ2URhh0GB5ltHoQYjF",recurly_public_key_production:"ewr1-yjLjQ2URhh0GB5ltHoQYjF",recurlyDomain_stage:"retrocrush",recurlyDomain_production:"retrocrush",recurlyDomain_demo:"retrocrush",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Retrocrush without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-1-month",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-1-year",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_desc:"",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#FFFF01","highlight-color":"#f69818","text_hover-color":"#FFFF01","logo-height":70,"logo-width":130,"tag-primary-fontcolor":"#ffffff","tag-primary-backgroundColor":"#383838","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#242424","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#363636","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-image":"//logo.png","footer-logo":"//images/"+d+"/retrocrush.svg","svg-filter":"brightness(0) saturate(100%) invert(89%) sepia(59%) saturate(3264%) hue-rotate(358deg) brightness(103%) contrast(103%)","plancard-background-color":"linear-gradient(293deg,rgba(0,0,4,1) 0%,rgb(62 62 8) 100%)","sub-plancard-background-color":"linear-gradient(293deg,rgba(0,0,4,1) 0%,rgb(62 62 8) 100%)","epg-primary-color":"#ED2327","epg-secondary-color":"#ED2327","epg-additional-color":"#6F0002","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#858500",custId:"retrocrush",channelName:"retrocrush",metaDescription:"Stream classic anime worth discovering with RetroCrush!",metaCanonical:"",metaSiteURL:"",metaSiteName:"RetroCrush",twitterHandle:"",backgroundColor:"#1B1B1B",isLogTable:!1,premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/Retrocrush-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/Retrocrush-account-hover-img.svg",liveRampUrl:null,supportURL:"[email protected]",appTitle:"RetroCrush: Stream Classic Anime",appTag:"Cinedigm-India-"+p,supportLink:"https://support.retrocrush.tv/hc/en-us",websiteUrl:"https://www.retrocrush.tv",websiteUrlDomain:m?"https://stage-20.retrocrush.tv/":"https://www.retrocrush.tv/",appdeeplink:"#",isDeepLinkNeeded:!0,metaLogoOne:"https://cdn.matchpoint.tv/0kvlx42ebi8tj4rmw3fqlczr01x76bxtq9le3a74v0q0f9cjou3tpe8tjwwzbbjo95u5er1n53x/600x315.png",metaLogoTwo:"https://cdn.matchpoint.tv/0kvlx42ebi8t
25j4rmw3fqlczr0fel9rh2ujht1v4pgcgu3bkjwo6qd8bhjwwzbbjo95u5er1n53x/246x140.png","social-links":{facebook_link:"https://www.facebook.com/retrocrush.tv",instagram_link:"https://www.instagram.com/retrocrush.tv",twitter_link:"https://twitter.com/retrocrush_tv",tiktok_link:null,youtube_link:"https://www.youtube.com/retrocrush",pinterest_link:"https://in.pinterest.com/retrocrushtv/"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/retrocrush-classic-anime/id1501740207?platform=iphone",androidAppStore:"https://play.google.com/store/apps/details?id=com.dmr.retrocrush&hl=en&gl=US",rokuAppStore:"https://channelstore.roku.com/en-gb/details/d7f93d5400b49e7748ec450ce90abcb2/retrocrush-watch-free-anime"},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/0kvlx42ebi8tj4rmw3fqlczr0fel9rh2ujht1v4pgcgu3bkjwo6qd8bhjwwzbbjo95u5er1n53x/246x140.png",metaLogo310_150:"https://cdn.matchpoint.tv/0kvlx42ebi8tj4rmw3fqlczr0cggatcwu39qsjnoxjllrgbaqi9n12e5jwwzbbjo95u5er1n53x/310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/0kvlx42ebi8tj4rmw3fqlczr0sv6obxtk8zd4qdlp8c5mg356m7p96cdjwwzbbjo95u5er1n53x/144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/0kvlx42ebi8tj4rmw3fqlczr0ror4r25adn81se1wjs5mb0h3o6qd8bhjwwzbbjo95u5er1n53x/300x300.png",metaLogo150_150:"https://cdn.matchpoint.tv/0kvlx42ebi8tj4rmw3fqlczr0okyut5ghuzq1uirmca2oqg3b8ehgsiljwwzbbjo95u5er1n53x/150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/0kvlx42ebi8tj4rmw3fqlczr0owm32qq08tc482dus2ettrpzpn9q86t54sjz1yexq6p883pydi/70x70.png",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.png"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.png"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.png"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.png"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.png"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.png"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.png"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],playButtonTextColor:"black",defaultUiConfig:{customer:"retrocrush",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#FFFF01",button_border_color:"",button_background_highlight_color:"#FFFF01",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#FFFF01",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#FFFF01",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:m?"http://stage-20.retrocrush.tv/":"https://www.retrocrush.tv/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#FFFF01",menu_highlight_color:"#FFFF01",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1501740207",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},christiancinema:{footerLogowidth:160,footerLogoheight:40,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!0,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Christian Cinema may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/3d75c4175741351405430d688b5dc693/christian-cinema",androidLink:"https://play.google.com/store/apps/details?id=com.christiancinema.christiancinema_an&hl=en",iosLink:"https://apps.apple.com/us/app/christian-cinema/id1062422089",lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:"https://apps.apple.com/us/app/christian-cinema/id1062422089",googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isDropDown:!0,isCinesearch:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191c10f-534c-7777-8b4b-591921d8bccd/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191c116-c4a3-7806-b3e8-80d2c169d5a7/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191c10f-534c-7777-8b4b-591921d8bccd":"0191c116-c4a3-7806-b3e8-80d2c169d5a7",isGridView:!0,isAutoPreView:!0,couponHeadline:"Watch Anytime, Anywhere",loggedUsercouponDescription:"We serve families of faith, anytime and anywhere, cinema-worthy content that is watched and discussed.",signUpCouponDescription:"",subHeaderPlan:"Choose a Plan. Cancel Anytime.",couponParagraph:"",isWallet:!0,isRowEight:!0,isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,chromeCastId:m?" 65187895 ":"A23791E1",deepLinkinProtocol:"christiancinema://",LoginAppName:"Christian Cinema",kochavaAppId:m?"kochristiancinema-beta-fc8owo4di":"kochristiancinema-web-ywsy18jpa",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-6PAy5I8tCvR46FWuJ03Rcj",recurlyDomain_stage:"retrocrush",recurlyDomain_production:"christiancinema",recurlyDomain_demo:"retrocrush",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt
25:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:2,plan_title:"MONTHLY",plan_desc:"",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"christiancinema-monthly",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"christiancinema-annual",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#5797ba","highlight-color":"#5797ba","text_hover-color":"#5797ba","logo-height":70,"logo-width":130,"tag-primary-fontcolor":"#ffffff","tag-primary-backgroundColor":"#383838","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#242424","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#363636","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,isSubmitParagraph:!1,rentConstructColor:"#3b718f",rentAbstructColor:"#a0c7ea78",playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-image":"//images/"+d+"/ChristianCinema_logo.png","footer-logo":"//images/"+d+"/christian-cinema.svg","svg-filter":"brightness(0) saturate(100%) invert(58%) sepia(29%) saturate(698%) hue-rotate(157deg) brightness(91%) contrast(84%)","plancard-background-color":"linear-gradient(271deg,rgb(0 11 16) 30%,rgb(13 43 58) 100%)","sub-plancard-background-color":"linear-gradient(271deg,rgb(0 11 16) 30%,rgb(13 43 58) 100%)","epg-primary-color":"#5797ba","epg-secondary-color":"#080690","epg-additional-color":"#282828","button-text-color":"black","formbutton-text-color":"#cccccc","playbox-text-color":"#25485a",custId:"christiancinema",channelName:"christiancinema",metaDescription:"With easy access to your library of movies across multiple devices, watch anywhere and anytime. Find new releases and new discoveries; dramas, documentaries, short films, educational and more. Chosen from the leading Christian filmmakers. In 1999, ChristianCinema.com was born out of a desire to connect audiences with the best in faith-based movies. Christian Cinema has earned the trust of families of faith. Give it a try today!",metaCanonical:"",metaSiteURL:"",metaSiteName:"ChristianCinema",twitterHandle:"",backgroundColor:"#1B1B1B",isLogTable:!1,premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v7.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/christian-cinema-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/christian-cinema-account-hover-img.svg",supportURL:"[email protected]",liveRampLink:"",appTitle:"Christian Movies On Demand",appTag:"Cinedigm-India-"+p,supportLink:"https://support.christiancinema.com/hc/en-us",websiteUrl:"https://www.christiancinema.com",websiteUrlDomain:m?"https://stage-01.christiancinema.org/":"https://www.christiancinema.com",appdeeplink:"#",isDeepLinkNeeded:!0,metaLogoOne:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094oo3tzqk08nri8cjgmtzb693vfv7fd0fckk86xnc15m75fck1bpxs2id8v7yy1i0ii456lwtp4135n/600x315_Metalogo_CC.png",metaLogoTwo:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094onmpz98nx4y8hkk77qiepnmfeun3pphqfg2uhj5v2w56vs9rcskkm2d8v7yy1i0ii456lwtp4135n/246x140_metalogo_cc.png","social-links":{facebook_link:"https://www.facebook.com/ChristianCinema",instagram_link:"https://www.instagram.com/christiancinema/",twitter_link:"https://twitter.com/christiancinema",tiktok_link:null,youtube_link:"https://www.youtube.com/user/christiancinema",pinterest_link:"https://www.pinterest.com/christiancinema/"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/christian-cinema/id1062422089",androidAppStore:"https://play.google.com/store/apps/details?id=com.christiancinema.christiancinema_an&hl=en",rokuAppStore:"https://channelstore.roku.com/en-gb/browse",amazonAppStore:"https://www.amazon.com/Christian-Cinema/dp/B01NCJM8CK/"},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094onmpz98nx4y8hkk77qiepnmfeun3pphqfg2uhj5v2w56vs9rcskkm2d8v7yy1i0ii456lwtp4135n/246x140_metalogo_cc.png",metaLogo310_150:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094oodousateq28a4egkcvne40mpju8a4ozp033velonf6134treomkiid8v7yy1i0ii456lwtp4135n/300x150_metalogo_cc.png",metaLogo144_144:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094ook9z5fljsjbc6vkx40isvbatrasipaiokbz00u3j8snyy136578kipvjsghovh6jwdqtcjxb8a4d/144x144_metlogo_cc.png",metaLogo310_310:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094ons6a0gkn9glacxfyqu48czjrxf3ay1mfof5j9waj0p4ixyi95q4bed8v7yy1i0ii456lwtp4135n/310x310_metalogo_cc.png",metaLogo150_150:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094oowuzg7jjzhaqmup754l5tz6zemc5oh39033velonf6134treomkiid8v7yy1i0ii456lwtp4135n/150x150_metalogo_cc.png",metaLogo70_70:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094oo8oqf0nomhs17oqypaqmfky4hfdtqgarsi79tgrpomin0jqwzf5njbmk8dqgd16h10n57negd110/70x70_metalogo_cc.png",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.png"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.png"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.png"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.png"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.png"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.png"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.png"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],playButtonTextColor:"black",defaultUiConfig:{customer:"retrocrush",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/3obr8ggao1j2kxbvc5cn094oo7lg0xcqfbgkw6v6ksa1x76bz6hl5n2b3j2pmnyuqcyxrlhahvwsvjunplb9i75hpsrs9kv7gv2f/ChristianCinema_logo.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#5797ba",button_border_color:"",button_background_highlight_color:"#5797ba",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#5797ba",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#080690",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:m?"http://stage-15.contv.com/":"https://www.contv.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#5797ba",menu_highlight_color:"#5797ba",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1062422089",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},comedydynamics:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Comedy Dynamics may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://my.roku.com/account/add/P2JNMQ",androidLink:null,iosLink:null,lgWebLink:null,vizioLink:"https://support.vizio.com/s/article/How-to-add-an-App-to-your-VIZIO-Smart-TV?language=en_US",androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:"https://www.comedydynamics.com/",isDropDown:!0,isLetterBox:!1,isCinesearch:!1,isGridView:!0,isAutoPreView:!0,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0191bef1-2473-7fdd-b81a-5075214405d9/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/0191c117-bad2-7ea4-a3ab-f8e55db98138/OtAutoBlock.js",oneTrustDataDomainScript:m?"0191bef1-2473-7fdd-b81a-5075214405d9":"0191c117-bad2-7ea4-a3ab-f8e55db98138",couponHeadline:"",loggedUsercouponDescription:"",subHeaderPlan:"Choose a Plan. Cancel Anytime.",signUpCouponDescription:"",deepLinkinProtocol:"cineverse://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Comedy Dynamics",isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!0,chromeCastId:m?"BDBD3AB5":"FA7BDF35",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt
25:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$4.99 billed every month",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"$49.99 billed every year",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",plan_duration:12,subPlanCode:400}],"primary-color":"#ffbc00","highlight-color":"#ffbc00","text_hover-color":"#ffbc00","tag-primary-fontcolor":"#ffbc00","tag-primary-backgroundColor":"#02323c","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#0243507d","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404-new.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/comedy-dynamics-logo-large.svg","footer-logo":"//images/"+d+"/comedy-dynamics-logo-small.svg","svg-filter":"invert(33%) sepia(92%) saturate(1655%) hue-rotate(359deg) brightness(102%) contrast(105%)","plancard-background-color":"linear-gradient(293deg,rgb(6 6 6) 0%,rgb(24 23 21) 42%,rgb(133 101 10) 100%)","sub-plancard-background-color":"linear-gradient(293deg,rgb(6 6 6) 0%,rgb(24 23 21) 42%,rgb(133 101 10) 100%)","epg-primary-color":"#ffbc00","epg-secondary-color":"#00C48F","epg-additional-color":"#003B2B","rowEight-color":"#64007d","text_hover-color":"#ffbc00","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#634c09",appTitle:"Comedy Dynamics Independent Comedy Production.",appTag:"Cinedigm-India-"+p,supportLink:"https://support.cineverse.com",websiteUrl:"https://www.cineverse.com",websiteUrlDomain:m?"":"https://www.cineverse.com",appdeeplink:"cineverse.com",isDeepLinkNeeded:!0,backgroundColor:"#022022",isLogTable:!1,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/comedy-dynamics-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/comedy-dynamics-account-hover-img.svg",metaDescription:"Comedy Dynamics is the tastemaker for STAND-UP Comedy Specials (Kevin Hart, Jim Gaffigan, Maria Bamford, Sinbad, Mike Birbiglia, Larry the Cable Guy). Our channel features a wide range of established and emerging comedic talent, from the early comedy icons (Sam Kinison, Bill Hicks) to today’s millennial favorites (Tom Segura, Brian Posehn, Michael Ian Black). You will be entertained by some of SNL’s most revered artists (Dennis Miller, Kevin Nealon, Rob Schneider) and some of the strongest women on tour today (Iliza Shlesinger, Whitney Cummings, Janeane Garofalo",metaCanonical:"https://www.cineverse.com/",metaSiteURL:"https://www.cineverse.com",metaSiteName:"Cineverse",custIdUMS:m?"cineverse-beta":"cineverse",liveRampUrl:null,metaLogoOne:"https://cdn.matchpoint.tv/1yqy7eym67ni62bp7e40mok5u6ll3uvrb2kshp3iocufgrfez57a3o8xpr1l29ig7n37ogtu6idivp73ck6dittdn5l17lh5retijl2tdoszzdhu7gu3llq3tblom/ComedyDynamics_600x315.png",metaLogoTwo:"https://cdn.matchpoint.tv/1yqy7eym67ni62bp7e40mok5u6ll3uvrb2kshp3iocufgrfez57a3o8xpr1l29ig7n37ogtu6idq3uwrwm7varht5u2k5ec1hctrf8329oszzdhu7gu3llq3tblom/ComedyDynamics_246x140.png",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:"https://www.facebook.com/comedydynamics",instagram_link:"https://www.instagram.com/comedydynamics/",twitter_link:"https://twitter.com/i/flow/login?redirect_after_login=%2Fcomedydynamics",tiktok_link:null,youtube_link:"https://www.youtube.com/comedydynamics"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/cineverse-stream-movies-tv/id1249601429",androidAppStore:"https://play.google.com/store/apps/details?id=com.dmr.yuyu",rokuAppStore:"https://my.roku.com/account/add/CINEVERSE"},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7znj9b5rf4u7lcpvg9d4kry732217551mkqn75u5eib18qnm1p423z/Screambox_WebLinkLogo.png",metaLogo310_150:"https://cdn.matchpoint.tv/1yqy7eym67ni62bp7e40mok5u6ll3uvrb2kshp3iocufgrfez57a3o8xpr1l29ig7n37ogtu6ie0aeede1unqdyg2g39p2zw1itrf8329oszzdhu7gu3llq3tblom/ComedyDynamics_310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/1yqy7eym67ni62bp7e40mok5u6ll3uvrb2kshp3iocufgrfez57a3o8xpr1l29ig7n37ogtu6ielhduh7zhoav68w1vssbh7dkke0xtohoszzdhu7gu3llq3tblom/ComedyDynamics_144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/1yqy7eym67ni62bp7e40mok5u6ll3uvrb2kshp3iocufgrfez57a3o8xpr1l29ig7n37ogtu6iemmpa5kt3xdnicg3fuf6rd1ra9zqjk1oszzdhu7gu3llq3tblom/ComedyDynamics_310x310.png",metaLogo150_150:"https://cdn.matchpoint.tv/1yqy7eym67ni62bp7e40mok5u6ll3uvrb2kshp3iocufgrfez57a3o8xpr1l29ig7n37ogtu6ieb264cxdqdp416i8rlpiqq8lbdy42o1oszzdhu7gu3llq3tblom/ComedyDynamics_150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/1yqy7eym67ni62bp7e40mok5u6ll3uvrb2kshp3iocufgrfez57a3o8xpr1l29ig7n37ogtu6iemni7v485stwve71h9yp6dtq48kib1a61l0xf2nlbsngh25gvqh/ComedyDynamics_70x70.png",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#ffbc00",button_border_color:"",button_background_highlight_color:"#ffbc00",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#ffbc00",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#ffbc00",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:"https://www.cineverse.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#ffbc00",menu_highlight_color:"#ffbc00",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},lightningfast:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that LightningFAST may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"https://my.roku.com/account/add/lightningfastbeta",androidLink:"https://play.google.com/store/apps/details?id=com.cineverse.lightningfast",iosLink:"https://apps.apple.com/us/app/lightningfast-movies-tv/id6474022473",lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isDropDown:!0,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:"https://cdn.cookielaw.org/consent/0191c112-49ea-7456-a278-2411d3fef394/OtAutoBlock.js",oneTrustDataDomainScript:"0191c112-49ea-7456-a278-2411d3fef394",isLetterBox:!1,isCinesearch:!1,isGridView:!0,isAutoPreView:!0,couponHeadline:"Stream Movies & TV",loggedUsercouponDescription:"Watch unlimited films and TV shows today",subHeaderPlan:"Choose a Plan. Cancel Anytime.",signUpCouponDescription:"",couponParagraph:"",deepLinkinProtocol:" cineverse://",couponParagraph:"",isWallet:!0,isRowEight:!0,LoginAppName:"LightningFAST",isSubscribValue:!0,isMultiProfileActive:!0,isSubscribtionPayment:!1,chromeCastId:m?"BDBD3AB5":"FA7BDF35",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"screambox-dev",recurlyDomain_production:"lightningfast",recurlyDomain_demo:"screambox",websiteUrl:"https://www.lightningfast.com",websiteUrlDomain:m?"":"https://www.lightningfast.com",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt
25:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#dd6d51","highlight-color":"#dd6d51","logo-height":40,"logo-width":200,"tag-primary-fontcolor":"#ffffff","tag-primary-backgroundColor":"#dd6d51","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#dd6d51","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#dd6d51","tag-hoverColor":"#ffffff1a","svg-filter":"brightness(0) saturate(100%) invert(65%) sepia(14%) saturate(6197%) hue-rotate(324deg) brightness(90%) contrast(92%)",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",backgroundColor:"#572518",isLogTable:!1,errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg",rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.","text_hover-color":"#dd6d51","logo-image":"//images/"+d+"/LightningFast_Logo.svg","footer-logo":"//images/"+d+"/LightningFast_Logo.svg","svg-filter":"brightness(0) saturate(100%) invert(65%) sepia(14%) saturate(6197%) hue-rotate(324deg) brightness(90%) contrast(92%)","plancard-background-color":"linear-gradient(328deg,rgb(0 0 0) 0%,rgb(63 16 1) 100%)","sub-plancard-background-color":"linear-gradient(328deg,rgb(0 0 0) 0%,rgb(63 16 1) 100%)","epg-primary-color":"#dd6d51","epg-secondary-color":"#dd6d51","epg-additional-color":"#dd6d51","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#ffcbcb",appTitle:"LightningFAST - Your Ticket to a World of Entertainment Delights | On-Demand Content & Free Linear Channels",a
25ppTag:"Cinedigm-India-"+p,metaLogoOne:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdorae44unmzqm6w3g0y5x6v11j1sxooxee2g45fvqwzd5lakw7ef9limih7fldjg7wze4mklpvzxrb41/600x315_Metalogo.png",metaLogoTwo:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdoraen4b7pukte84926g0cnve194n1vcksz09jwd05i4943xfwfgox9jeh7fldjg7wze4mklpvzxrb41/246x140_metalogo.png",appdeeplink:"lightningfast.com",isDeepLinkNeeded:!0,companyName:"LightingFAST",custId:"lightningfast",channelName:"lightningfast",liveRampUrl:null,custIdUMS:"lightningfast","social-links":{facebook_link:"https://www.facebook.com/cineversetv/",instagram_link:"https://www.instagram.com/cineverse.tv/",twitter_link:"https://twitter.com/cineverse_tv",tiktok_link:"https://www.tiktok.com/@cineverse.tv",youtube_link:"https://www.youtube.com/channel/UCodeZWRjgLXCTX0jjWtZYnA"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/cineverse-stream-movies-tv/id1249601429",androidAppStore:"https://play.google.com/store/apps/details?id=com.dmr.yuyu",rokuAppStore:"https://my.roku.com/account/add/CINEVERSE"},metaLogoOne:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdorae44unmzqm6w3g0y5x6v11j1sxooxee2g45fvqwzd5lakw7ef9limih7fldjg7wze4mklpvzxrb41/600x315_Metalogo.png",metaLogoTwo:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdoraen4b7pukte84926g0cnve194n1vcksz09jwd05i4943xfwfgox9jeh7fldjg7wze4mklpvzxrb41/246x140_metalogo.png",supportURL:"https://www.asiancrush.com/support",metaLogo:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdoraen4b7pukte84926g0cnve194n1vcksz09jwd05i4943xfwfgox9jeh7fldjg7wze4mklpvzxrb41/246x140_metalogo.png",metaLogo310_150:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdoraf4rs677kaevaeermbyou6n09xq6takz6pltbn08lk8q3jb5yslp56h7fldjg7wze4mklpvzxrb41/300x150_metalogo.png",metaLogo144_144:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdoraezva2ls7e9kva6p3fj21tdfe6axaolyqqge05uq97ngc64ugoscca9fnb59pjzi5exz3ppunhn3q/144x144_metlogo.png",metaLogo310_310:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdoraf2gtkwusjxzrjpi4rob8wb65ej5617zodvb5liv4t9jzx6u6iav7uh7fldjg7wze4mklpvzxrb41/310x310_metalogo.png",metaLogo150_150:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdoraf9j4nsbr10b9zn3fz8vhenni12ifxx9upltbn08lk8q3jb5yslp56h7fldjg7wze4mklpvzxrb41/150x150_metalogo.png",metaLogo70_70:"https://cdn.matchpoint.tv/6qkxpl1817jtnz8q0mswdorae8t67djmra08a9qk9442l7r8m4cq0xl4mldp4do2gdbbwz4t69mu6v4dbs4vrw4eeiw6i7eoa94p/70x70_metlogo.png",supportLink:"https://support.cineverse.com",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v7.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",faviconPath:"//images/"+d+"/ico.png",accountDefaultIconImg:"/images/"+d+"/icons/lightning-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/lighning-account-hover-img.svg",metaDescription:"Cineverse is your ticket to a world of entertainment delights, thrilling filmmaker discoveries, and more. From artfully entertaining American indies to the boldest in global film and television, emerging voices, and non-fiction storytelling, Cineverse's library of world-class, on-demand content, and lineup of free linear channels rewards the curious and adventurous. Discover new favorites with Cinedigm's Matchpoint technology that provides content recommendations based on real-time feedback from viewers. Bucking the trend of predictable algorithms, Cineverse offers passionate curation that rewards those who seek something different.",metaCanonical:"https://www.lightningfast.com/",metaSiteURL:"https://www.lightningfast.com",metaSiteName:"lightningfast",twitterHandle:"@lightningfast",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],playButtonTextColor:"white",defaultUiConfig:{customer:"lightningfast",device:"web",config:{basic:{logo:"//images/"+d+"/LightningFast_Logo.svg",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#dd6d51",button_border_color:"",button_background_highlight_color:"#dd6d51",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#gb(255, 21, 21)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#dd6d51",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:m?"http://staging-12.screambox.com":"https://www.screambox.com"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#dd6d51",menu_highlight_color:"#dd6d51",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"6474022473",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},thearchive:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Multicom may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:"https://my.roku.com/account/add/thearchive",androidLink:"https://play.google.com/store/apps/details?id=com.multicom.thearchive",iosLink:"https://apps.apple.com/us/app/thearchivetv/id1477667318?platform=iphone",lgWebLink:null,vizioLink:null,androidTvLink:"https://play.google.com/store/apps/details?id=com.multicom.thearchive.tv",appleTvLink:"https://apps.apple.com/us/app/thearchivetv/id1477667318?platform=appleTV",googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/01961971-8b6d-77e3-99d4-3d0b7cafdcca-test/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/01983716-e2c9-70f0-96bf-d18ff84301cf/OtAutoBlock.js",oneTrustDataDomainScript:m?"01961971-8b6d-77e3-99d4-3d0b7cafdcca-test":"01983716-e2c9-70f0-96bf-d18ff84301cf",isCinesearch:!1,couponHeadline:"Stream Movies & TV",loggedUsercouponDescription:"Watch unlimited films and TV shows today",subHeaderPlan:"Choose a Plan. Cancel Anytime.",signUpCouponDescription:"",deepLinkinProtocol:"thearchive://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Multicom",isAutoPreView:!0,isGridView:!0,isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,isDropDown:!0,chromeCastId:m?"FD39F1EC":"CC3591EA",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-aO5tYTpWtrSeh0xH0nKDjp",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",plan_duration:1,subPlanCode:100,upgrade_button:!0},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",plan_amt:"$35.99/year",monthlyamt:"$2.99/mo",isactive:!0,isPopular:!0,saveplan:"(Save 40%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#0c478dfd","highlight-color":"#00ccff","text_hover-color":"#00ccff","tag-primary-fontcolor":"#106bd5","tag-primary-backgroundColor":"#02323c","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#0243507d","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image_new",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/the_archive.png","footer-logo":"//images/"+d+"/TheArchive.svg","svg-filter":"invert(52%) sepia(78%) saturate(3027%) hue-rotate(216deg) brightness(106%) contrast(98%)","plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","epg-primary-color":"#106bd5","epg-secondary-color":"#106bd5","epg-additional-color":"#106bd5","rowEight-color":"#64007d","button-text-color":"#ffffff","formbutton-text-color":"#ffffff","playbox-text-color":"#ffffff",appTitle:"Rare. Retro. Restored",appTag:"Cinedigm-India-Cineverse",supportLink:"/support-faq",websiteUrl:"https://www.thearchive.com",websiteUrlDomain:m?"https://stage-13.cineverse.com/":"https://www.cineverse.com/",appdeeplink:"thearchive.com",isDeepLinkNeeded:!0,backgroundColor:"#022022",isLogTable:!1,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/account-hover-img.svg",metaDescription:"TheArchive channel exists for lovers of story, craft, and silver screen fun – streaming rare, retro, and restored 4K films and TV. From cult movies to timeless series, a killer horror library to music bios; Reese Witherspoon to Orson Welles, Marilyn Monroe to Samuel L. Jackson, TheArchive has movies and shows you saw, should’ve seen, or should be watching now!",metaCanonical:"https://www.thearchive.com/",metaSiteURL:"https://www.thearchive.com",metaSiteName:"Thearchive",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"About Cineverse – Watch. License. Advertise. Innovate. Explore",signinTitle:"Sign In or Sign Up for Cineverse Here for Free Movies & TV Shows Online",aboutusDescription:"The free streaming service that offers limitless access to the best movies and TV shows from around the world",signinDescription:"Sign In to your Cineverse account or sign up for free today and enjoy a wide variety of movies and TV shows",liveRampUrl:"https://launchpad-wrapper.privacymanager.io/43704492-2b39-4e46-8b83-423f15438fa2/launchpad-liveramp.js",metaLogoOne:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi69jubqsx2z3hn5hfepnceg9ndr3f8m938bobvi6ds7arll8bkbdq00tgxp2arud9phec27ce0tcf/600x315_metalogo_thearchive.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi682gg05tk14hrolvdpnw1jglzzg2cm938bobvi6ds7arll8bkbdq00tgxp2arud9phec27ce0tcf/246x140_metalogo_thearchive.png?user=UnknownUser",letterbox_redirect:m?"https://stage-13.cineverse.com/":"https://cineverse.com/",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:"https://www.facebook.com/TheArchiveApp",instagram_link:"https://www.instagram.com/thearchive_channel/",twitter_link:"https://x.com/thearchivetv?s=21",tiktok_link:null,youtube_link:"https://www.youtube.com/channel/UCunMgh6zlbhjYLOoU5zKTAA"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/thearchivetv/id1477667318",androidAppStore:"https://play.google.com/store/apps/details?id=com.multicom.thearchive",rokuAppStore:"https://my.roku.com/account/add/CINEVERSE"},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi682gg05tk14hrolvdpnw1jglzzg2cm938bobvi6ds7arll8bkbdq00tgxp2arud9phec27ce0tcf/246x140_metalogo_thearchive.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi692uxh90vhlu2r9lp9hs2zr5t1btgm938bobvi6ds7arll8bkbdq00tgxp2arud9phec27ce0tcf/310x150_metalogo_thearchive.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi69dgvuin2
25kl6t41tz0vyq63wgl9g4m938bobvi6ds7arll8bkbdq00tgxp2arud9phec27ce0tcf/144x144_metalogo_thearchive.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi692uxh90vhlu2r9lp9hs2zr5t1btgm938bobvi6ds7arll8bkbdq00tgxp2arud9phec27ce0tcf/310x150_metalogo_thearchive.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi693bb6hcdyzzsagamxtn3adkc9cesm938bobvi6ds7arll8bkbdq00tgxp2arud9phec27ce0tcf/150x150_metalogo_thearchive.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/dafqaolpui6p2jdc5db5ill7squq5wsdmt6redghjohyelhi69spl6zlbzgczmk4ttt33wus6x931r669nxs7xbzc2fjp3boe2vd4vmo1oszzdhu7gu3llq3tblom/70x70_metalogo_thearchive.png?user=UnknownUser",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#8484fd",button_border_color:"",button_background_highlight_color:"#106bd5",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#8484fd",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#8484fd",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:"https://www.thearchive.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#8484fd",menu_highlight_color:"#8484fd",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1477667318",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},fubu:{footerLogowidth:160,footerLogoheight:40,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Fubu may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!1,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:null,FooterImageLinks:{rokuLink:"",androidLink:"",iosLink:"",lgWebLink:null,vizioLink:"",androidTvLink:"",appleTvLink:"",googleTvLink:"",comcastXfinityLink:null,amazonLink:"",tizenLink:""},isSession:!0,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:null,oneTrustAutoBlockCDN:null,oneTrustDataDomainScript:null,isCinesearch:!1,couponHeadline:"",loggedUsercouponDescription:"",signUpCouponDescription:"",subHeaderPlan:"",deepLinkinProtocol:"cineverse://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Fubu",isAutoPreView:!0,isGridView:!0,isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,isDropDown:!0,chromeCastId:"",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt
25:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#ba171d","highlight-color":"#ba171d","text_hover-color":"#ba171d","tag-primary-fontcolor":"#ba171d","tag-primary-backgroundColor":"#02323c","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#0243507d","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/fubu_favicon.png","footer-logo":"//images/"+d+"/cineverse_ft.svg","svg-filter":"brightness(0) saturate(100%) invert(11%) sepia(87%) saturate(4223%) hue-rotate(349deg) brightness(104%) contrast(95%)","plancard-background-color":"linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(92, 19, 22, 1) 100%)","sub-plancard-background-color":"linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(92, 19, 22, 1) 100%)","epg-primary-color":"#ba171d","epg-secondary-color":"#00C48F","epg-additional-color":"#003B2B","rowEight-color":"#64007d","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#006235",appTitle:"Cineverse - Watch Free Movies & TV Shows Online",appTag:"Cinedigm-India-Cineverse",supportLink:"https://support.cineverse.com",websiteUrl:"https://www.cineverse.com",websiteUrlDomain:m?"https://stage-13.cineverse.com/":"https://www.cineverse.com/",appdeeplink:"cineverse.com",isDeepLinkNeeded:!0,backgroundColor:"#022022",isLogTable:!1,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/account-hover-img.svg",metaDescription:"Stream your favorite movies and TV shows for free on Cineverse. Join millions of fans watching anime, horror, comedy, true crime and more on any device",metaCanonical:"https://www.cineverse.com/",metaSiteURL:"https://www.cineverse.com",metaSiteName:"Cineverse",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"About Cineverse – Watch. License. Advertise. Innovate. Explore",signinTitle:"Sign In or Sign Up for Cineverse Here for Free Movies & TV Shows Online",aboutusDescription:"The free streaming service that offers limitless access to the best movies and TV shows from around the world",signinDescription:"Sign In to your Cineverse account or sign up for free today and enjoy a wide variety of movies and TV shows",liveRampUrl:"https://launchpad-wrapper.privacymanager.io/43704492-2b39-4e46-8b83-423f15438fa2/launchpad-liveramp.js",metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7descltxiuh57eg4409suaeg9auj3p3zb8yhwi2fjf1ztjr1gfjt/web_cineverse.png",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d83at18fvzz68wwaxiscng8pdtm0xa0tm70mrdztjag6nsfr2z7ahktu34b6v66l0qvm72q4oc48/WebLinnkLogo-image.png",letterbox_redirect:m?"https://stage-13.cineverse.com/":"https://cineverse.com/",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:"https://www.facebook.com/cineversetv/",instagram_link:"https://www.instagram.com/cineverse.tv/",twitter_link:"https://twitter.com/cineverse_tv",tiktok_link:"https://www.tiktok.com/@cineverse.tv",youtube_link:"https://www.youtube.com/channel/UCodeZWRjgLXCTX0jjWtZYnA"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/cineverse-stream-movies-tv/id1249601429",androidAppStore:"https://play.google.com/store/apps/details?id=com.dmr.yuyu",rokuAppStore:"https://my.roku.com/account/add/CINEVERSE"},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/tii2smadyw8kjyjl1sp5stdze3fuoazy32lv7bdwj6ah7z7znj9b5rf4u7lcpvg9d4kry732217551mkqn75u5eib18qnm1p423z/Screambox_WebLinkLogo.png",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c5f29gqsckq2t7gq1li403lxsoxvw5zxpfw3mp09xdxp142cyf3n/Cineverse_logo_310x150.png",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c5n9rxfyqfn1bs896rav7ckx5p1r6eta6qyvxlv5ri78673vptw4/Cineverse_logo_144x144.png",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c5z0m5vh13bghi7a3r1fm6unw62ni53xpfw3mp09xdxp142cyf3n/Cineverse_logo_300x300.png",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c59ah210x4lqn9wbfusdqe4cuvh6bujhpfw3mp09xdxp142cyf3n/Cineverse_logo_150x150.png",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dmu6ekb6wzz4uzw50550yl5ch101x2i0ff9k3nj8ptuk54j05c4lys0rn25laajs4qycjh6hlhia6lsk5qw7ix4wv41ayguvlx99/Cineverse_logo_70x70.png",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#ba171d",button_border_color:"",button_background_highlight_color:"#ba171d",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#ba171d",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#ba171d",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:"https://www.cineverse.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#ba171d",menu_highlight_color:"#ba171d",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"1249601429",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},joysauce:{footerLogowidth:70,footerLogoheight:40,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that JoySauceTv may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/5b75c0a773aede0960601bf637b3a92d:11c0c8629bac753848e040cfd2e21d27/joysauce",androidLink:"https://play.google.com/store/apps/details?id=com.cnvs.joysauce",iosLink:"https://apps.apple.com/ca/app/joysaucetv/id6754023915",lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isDropDown:!0,isLetterBox:!1,isCinesearch:!1,isGridView:!0,isAutoPreView:!0,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/01988348-8f0a-750f-bb34-c792fa1a85ed/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/019883ee-3cfa-7632-8b13-012a9d66f369/OtAutoBlock.js",oneTrustDataDomainScript:m?"01988348-8f0a-750f-bb34-c792fa1a85ed":"019883ee-3cfa-7632-8b13-012a9d66f369",couponHeadline:"",loggedUsercouponDescription:"Bold Asian Pop Culture",subHeaderPlan:"Choose a Plan. Cancel Anytime.",signUpCouponDescription:"",deepLinkinProtocol:"joysaucetv://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"JoySauceTv",isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!1,chromeCastId:m?"0430C608":"4F5897D4",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$4.99 billed every month",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"$49.99 billed every year",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",plan_duration:12,subPlanCode:400}],"primary-color":"#d92d8a","highlight-color":"#d92d8a","text_hover-color":"#d92d8a","tag-primary-fontcolor":"#d92d8a","tag-primary-backgroundColor":"#02323c","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#0243507d","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image_new",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404-new.png"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/JoysauceLogo_Yellow.svg","footer-logo":"//images/"+d+"/JoysauceLogo_Yellow_update.svg","svg-filter":"brightness(0) saturate(100%) invert(31%) sepia(95%) saturate(1296%) hue-rotate(298deg) brightness(85%) contrast(103%)","plancard-background-color":"linear-gradient(147deg,rgba(0, 0, 255, 1) 0%, rgba(30, 44, 103, 1) 100%)","sub-plancard-background-color":"linear-gradient(293deg,rgb(6 6 6) 0%,rgb(24 23 21) 42%,rgb(133 101 10) 100%)","epg-primary-color":"#d92d8a","epg-secondary-color":"#d92d8a","epg-additional-color":"#800a48ff","rowEight-color":"#64007d","text_hover-color":"#d92d8a","button-text-color":"white","formbutton-text-color":"white","playbox-text-color":"#634c09",appTitle:"Joysauce is the home for AAPI and Asian pop culture",appTag:"Cinedigm-India-"+p,supportLink:"/support-faq",websiteUrl:"https://joysauce.com/",websiteUrlDomain:m?"https://joysauce-stg.service.junctiontv.net/":"https://joysauce.com/",appdeeplink:"cineverse.com",isDeepLinkNeeded:!0,backgroundColor:"#022022",isLogTable:!1,custId:"joysaucetv",channelName:"joysaucetv",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/account-hover-img.svg",metaDescription:"The first digital network dedicated to the Asian American Pacific Islander (AAPI) experience, as well as fans of the hottest Asian pop culture entertainment.  Cinema and series encompass eclectic and elusive action, comedy, anime, thriller, sci-fi, horror and reality genres!  A multi-generational voice for the underserved multi-generational 24 million AAPI audie
25nce, we serve up new, original and exclusive award-winning series found nowhere else.",metaCanonical:"https://joysauce.com/",metaSiteURL:"https://joysauce.com/",metaSiteName:"JoysauceTv",custIdUMS:"joysaucetv",liveRampUrl:null,metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52qe5w0eewk79l6kuwcp9hsjfi7p8hfqdih4ktv6v85txrczr28/246x140.png?user=UnknownUser",metaLogo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52qe5w0eewk79l6kuwcp9hsjfi7p8hfqdih4ktv6v85txrczr28/246x140.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5dl74l4hj6qwig7r1geanp4jgje05vnb4c47d0wuwq4nmlds34n/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r4w58behivhqzfe41qdaaprnth3k7hykknql41tq6npmhl7dszl4rs9y661l0xf2nlbsngh25gvqh/joy_144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5uqthsn2x2uyticri4wgjfmg8d7nl6uqbom2sm5xlfs4t2l786x/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r582jwt5ah0ooiyu6qjn3ygze94iw5vnb4c47d0wuwq4nmlds34n/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3zwpijflo4nefngbmf9jeqtitqhmd8v7yy1i0ii456lwtp4135n/70x70.png?user=UnknownUser",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:"https://www.facebook.com/joysauceofficial",instagram_link:"https://www.instagram.com/joysauceofficial",twitter_link:"https://www.twitter.com/joysauce_",tiktok_link:null,youtube_link:null},appLinks:{appleAppStore:"https://apps.apple.com/ca/app/joysaucetv/id6754023915",androidAppStore:"https://play.google.com/store/apps/details?id=com.cnvs.joysauce",rokuAppStore:null},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",playButtonTextColor:"black",defaultUiConfig:{customer:"joysaucetv",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#d92d8a",button_border_color:"",button_background_highlight_color:"#d92d8a",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#d92d8a",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#d92d8a",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:" https://joysauce.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#d92d8a",menu_highlight_color:"#d92d8a",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"6754023915",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},sweetspiretv:{footerLogowidth:75,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!0,needBackBtn:!0,marketingDesc:"By providing my email address I understand that sweetspireTv may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!0,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:"https://my.roku.com/account/add?channel=SWEETSPIRETV",androidLink:null,iosLink:null,lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isDropDown:!0,isCinesearch:!1,isGridView:!0,isAutoPreView:!0,couponHeadline:"Hidden Gems Cinema & Programs",loggedUsercouponDescription:"More than a streamer—we celebrate cinema, spotlight indies, honor classics, and unite movie lovers.",signUpCouponDescription:"We’re more than a streaming platform—we’re a celebration of cinema. We amplify indie voices, honor timeless storytelling, and offer a home where film lovers can discover bold new works and cherished classics, all in one inspiring space.",couponParagraph:"",subHeaderPlan:"A curated selection of indie treasures and beloved southern classics",isWallet:!0,isRowEight:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/0198e148-be8a-705c-9a4e-eddea90245fc/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/019a8172-71e2-7a7f-8d39-e6c6ce9d31d0/OtAutoBlock.js",oneTrustDataDomainScript:m?"0198e148-be8a-705c-9a4e-eddea90245fc":"019a8172-71e2-7a7f-8d39-e6c6ce9d31d0",LoginAppName:"sweetspireTv",isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!1,chromeCastId:m?"275D07FA":"092D92E8",deepLinkinProtocol:"cineverse://",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",websiteUrl:"https://sweetspire.tv/",websiteUrlDomain:m?"https://sweetspire.web.matchpoint.tv/":"https://sweetspire.tv/",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt
25:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-1-month",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",plan_amt:"$6.99/month",monthlyamt:"$6.99/MO",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",plan_amt:"$59.99/year",monthlyamt:"$4.99/MO",isactive:!1,isPopular:!0,saveplan:"(Save 29%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",plan_amt:"$6.99/month",monthlyamt:"$6.99/MO",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",plan_amt:"$59.99/year",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!0,saveplan:"(Save 29%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#aa2624","highlight-color":"#aa2624","logo-height":40,"logo-width":100,"tag-primary-fontcolor":"#fff","tag-primary-backgroundColor":"#891e21","tag-secondary-fontcolor":"#d5d4d2","tag-secondary-backgroundColor":"#4c0002","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#a51b1e52","tag-hoverColor":"#ffffff1a","svg-filter":"invert(33%) sepia(90%) saturate(1218%) hue-rotate(103deg) brightness(99%) contrast(104%)","plancard-background-color":"linear-gradient(0deg, rgba(97, 34, 7) 0%, rgba(170, 38, 36) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(97, 34, 7) 0%, rgba(170, 38, 36) 100%)",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",backgroundColor:"#260F0F",isLogTable:!1,errorPageLink:"//images/".concat(d,"/404_page.png"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg",rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.","text_hover-color":"#aa2624","logo-image":"//images/"+d+"/sweetspiretv.svg","footer-logo":"//images/"+d+"/sweetspiretv.svg","svg-filter":"invert(33%) sepia(96%) saturate(7069%) hue-rotate(354deg) brightness(100%) contrast(102%)","epg-primary-color":"#aa2624","epg-secondary-color":"#aa2624","epg-additional-color":"#aa2624","button-text-color":"white","formbutton-text-color":"#d5d4d2","playbox-text-color":"#d5d4d2",appTitle:"A curated selection of indie treasures and beloved southern classics | "+p,appTag:"Cinedigm-India-"+p,metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52qe5w0eewk79l6kuwcp9hsjffrvi66bxycgtmv7bs21he02e29/246x140.png?user=UnknownUser",appdeeplink:"cineverse.com",isDeepLinkNeeded:!1,companyName:"Sweetspiretv",custId:"sweetspiretv",channelName:"sweetspiretv",liveRampUrl:null,custIdUMS:m?"dove-beta":"sweetspiretv","social-links":{facebook_link:"https://www.facebook.com/people/Sweetspire-TV/61579212126876/?sk=about",instagram_link:null,twitter_link:null,tiktok_link:null,youtube_link:"https://www.youtube.com/@sweetspiretv"},appLinks:{appleAppStore:null,androidAppStore:null,rokuAppStore:null},supportURL:"https://sweetspire.tv/",metaLogo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4
25nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5dl74l4hj6qwig7r1geanp4jgje05vnb4c47d0wuwq4nmlds34n/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r4vpoyajg3d61bu2gb0rg1o8uhoh0nwohiceo1j323x1yjl4dk60/144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5uqthsn2x2uyticri4wgjfmg8d7nl6uqbom2sm5xlfs4t2l786x/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r582jwt5ah0ooiyu6qjn3ygze94iw5vnb4c47d0wuwq4nmlds34n/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3zwpijflo4nefngbmf9jeqtitqhmd8v7yy1i0ii456lwtp4135n/70x70.png?user=UnknownUser",supportLink:"/support-faq",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",faviconPath:"/sweetspiretv_favicon.ico",accountDefaultIconImg:"/images/"+d+"/icons/sweetspiretv-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/sweetspiretv-hover-img.svg",metaDescription:"More than a streamer—we celebrate cinema, spotlight indies, honor classics, and unite movie lovers.",metaCanonical:"https://sweetspire.tv/",metaSiteURL:"https://sweetspire.tv/",metaSiteName:"Sweetspiretv",twitterHandle:null,navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],playButtonTextColor:"white",defaultUiConfig:{customer:"sweetspiretv",device:"web",config:{basic:{logo:"//images/"+d+"/sweetspiretv.svg",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"rgb(170, 38, 36)",button_border_color:"",button_background_highlight_color:"rgb(170, 38, 36)",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"rgb(170, 38, 36)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"rgb(170, 38, 36)",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:"https://sweetspire.tv/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"rgb(170, 38, 36)",menu_highlight_color:"rgb(170, 38, 36)",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:null,isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},christmasplus:{footerLogowidth:160,footerLogoheight:40,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Christmas Plus may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:null,androidLink:null,iosLink:null,lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/019b9c7f-e0b4-7000-9400-283d5594b498/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/019bb71a-91a1-78c1-9471-5d94cf8e269c/OtAutoBlock.js",oneTrustDataDomainScript:m?"019b9c7f-e0b4-7000-9400-283d5594b498":"019bb71a-91a1-78c1-9471-5d94cf8e269c",isCinesearch:!1,couponHeadline:"Season Streamings All Year Long!",loggedUsercouponDescription:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",signUpCouponDescription:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",subHeaderPlan:"Season Streamings All Year Long!",deepLinkinProtocol:"cineverse://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Christmas Plus",isAutoPreView:!0,isGridView:!0,isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!1,isDropDown:!0,chromeCastId:m?"22324AB8":"73CE6985",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-1-month",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",plan_amt:"$6.99/month",monthlyamt
25:"$6.99/MO",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",plan_amt:"$59.99/year",monthlyamt:"$4.99/MO",isactive:!1,isPopular:!0,saveplan:"(Save 29%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:2,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",plan_amt:"$6.99/month",monthlyamt:"$6.99/MO",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",plan_amt:"$59.99/year",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!0,saveplan:"(Save 29%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#09972E","highlight-color":"#09972E","text_hover-color":"#09972E","tag-primary-fontcolor":"#FFFFFF","tag-primary-backgroundColor":"#200000","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#200000","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#09972E","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image_new",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",errorPageLink:"//images/".concat(d,"/404_page.png"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/christmasplus.svg","footer-logo":"//images/"+d+"/christmasplus.svg","svg-filter":"brightness(0) saturate(100%) invert(37%) sepia(100%) saturate(449%) hue-rotate(84deg) brightness(97%) contrast(97%)","plancard-background-color":"linear-gradient(0deg, rgba(13, 0, 0, 1) 0%, rgba(32, 0, 0, 1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(13, 0, 0, 1) 0%, rgba(32, 0, 0, 1) 100%)","epg-primary-color":"#09972E","epg-secondary-color":"#09972E","epg-additional-color":"#09972E","rowEight-color":"","button-text-color":"white","formbutton-text-color":"#FFFFFF","playbox-text-color":"#FFFFFF",appTitle:"Season Streamings All Year Long!",appTag:"Cinedigm-India-"+p,supportLink:"/support-faq",websiteUrl:"https://www.cineverse.com",websiteUrlDomain:m?"https://christmasplus.web.matchpoint.tv/home":"https://www.christmasplus.tv/",appdeeplink:"",isDeepLinkNeeded:!1,backgroundColor:"#200000",isLogTable:!1,custId:m?"cineverse-beta":"christmasplus",channelName:m?"cineverse-beta":"christmasplus",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/christmasplus-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/christmasplus-hover-img.svg",metaDescription:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",metaCanonical:"https://www.christmasplus.tv/",metaSiteURL:"https://www.christmasplus.tv/",metaSiteName:"Christmas Plus",custIdUMS:m?"cineverse-beta":"christmasplus",liveRampUrl:null,metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52uzkf6ep05teys8q1nhqlwmotv001h8x6fhvpf2bghjnut4jjqatw5ra6pcitfcrsk8xf2bmpfq/Metalogo_600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5td8ag67g3n1pdnrdi120dmedujd6ozkbm0ivq8b4v4uz7wgb4oouh3ja6pcitfcrsk8xf2bmpfq/Metalogo_246x140.png?user=UnknownUser",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:null,instagram_link:null,twitter_link:null,tiktok_link:null,youtube_link:null},appLinks:{appleAppStore:null,androidAppStore:null,rokuAppStore:null},rowEightPlanDesc:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",episodicPlanDesc:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",metaLogo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dhy9893kmo2a0v0ngsefi8c0q2nmx
25ptpj3j4bqulgks6q01pn9dq5h4wd6ik5xkqzca6gyq61p10qlyr5p2arud9phec27ce0tcf/christmas_plus.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r54zluj97fgpgatv5ledvp5gswolvrrkocvc9f7hpuf0q8g75vr4o03kfa6pcitfcrsk8xf2bmpfq/Metalogo_310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3zhg3jnvkf039d7bxf5amruca12mvcxg4jhb00zhb92kh5nfi04fiuj3a6pcitfcrsk8xf2bmpfq/Metalogo_144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r4rv0lqjajtpylyqpr3yeybvk924ic6mj7uo66sgh1sortgnupq9l9kpba6pcitfcrsk8xf2bmpfq/Metalogo_310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52j6zf1oepqhk4up72kdz7yp3tv5sgybtjm22pwb9ccxyuuan2pnqf4fa6pcitfcrsk8xf2bmpfq/Metalogo_150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5himo2adgq0090qbf9dd1n3g71xs3clbgvaq5crhgi79cl8r8pr6xqzr9p7joaumq91f5q3928ig/Metalogo_70x70.png?user=UnknownUser",playButtonTextColor:"white",defaultUiConfig:{customer:"christmasplus",device:"web",config:{basic:{logo:"//images/"+d+"/christmasplus.svg",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"rgb(9, 151, 46)",button_border_color:"",button_background_highlight_color:"rgb(9, 151, 46)",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"rgb(9, 151, 46)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"rgb(9, 151, 46)",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:"https://www.cineverse.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"rgb(9, 151, 46)",menu_highlight_color:"rgb(9, 151, 46)",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"#200000"}}},addressDetailsforSubscription:!0,appId:null,isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},sparktv:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!0,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Spark may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!0,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/bd5cb6dc21bf1d2c5efdaf3f1463ab8f:596d78c4d1c81d6c883abbcdffeb0c0b/spark",androidLink:"https://play.google.com/store/apps/details?id=com.cnvs.spark",iosLink:"https://apps.apple.com/us/app/spark-question-everything/id6757751137",lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:"https://apps.apple.com/us/app/spark-question-everything/id6757751137",googleTvLink:null,comcastXfinityLink:null,amazonLink:"https://www.amazon.com/gp/product/B0GPDNVG8S",tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/019bb289-01a8-7e54-8cf1-5631f28c46cd/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/019c6fd1-1357-7d18-a660-0f73aacd80da/OtAutoBlock.js",oneTrustDataDomainScript:m?"019bb289-01a8-7e54-8cf1-5631f28c46cd":"019c6fd1-1357-7d18-a660-0f73aacd80da",isCinesearch:!1,couponHeadline:"Season Streamings All Year Long!",loggedUsercouponDescription:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",signUpCouponDescription:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",subHeaderPlan:"Season Streamings All Year Long!",deepLinkinProtocol:"spark://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Spark",isAutoPreView:!0,isGridView:!0,isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,isDropDown:!0,chromeCastId:m?"0E6FEA1B":"3F0C811C",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-Y8qn58bTGtDUDwNQp1xi49",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt
25:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-spark-monthly",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$11.11 billed every month",plan_amt:"$11.11/month",monthlyamt:"$11.11/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100}],production_plan_data:[{recurly_plan_id:"web-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$11.11 billed every month",plan_amt:"$11.11/month",monthlyamt:"$11.11/mo",isactive:!1,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100}],"primary-color":"#6c4891","highlight-color":"#6c4891","text_hover-color":"#6c4891","tag-primary-fontcolor":"#FFFFFF","tag-primary-backgroundColor":"#200000","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#200000","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#6c4891","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"",rentAbstructColor:"",isSubmitParagraph:!1,playButtonClass:"play-button-image_new",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"",submitYourFilmImg:"",errorPageLink:"//images/".concat(d,"/404_page.png"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/spark-horizontal-logo.svg","footer-logo":"//images/"+d+"/spark-horizontal-logo3.svg","svg-filter":"brightness(0) saturate(100%) invert(34%) sepia(8%) saturate(3471%) hue-rotate(227deg) brightness(95%) contrast(96%)","plancard-background-color":"linear-gradient(133deg, #6c4891 2%, #0b0f24);","sub-plancard-background-color":"linear-gradient(133deg, #6c4891 2%, #0b0f24);","epg-primary-color":"#6c4891","epg-secondary-color":"#6c4891","epg-additional-color":"#6c4891","rowEight-color":"","button-text-color":"white","formbutton-text-color":"#FFFFFF","playbox-text-color":"#FFFFFF",appTitle:"A next-generation streaming platform for original series, films, and mind-expanding stories exploring UFOs, consciousness, the paranormal, true crime, and the mysteries rewriting our reality.",appTag:"Cinedigm-India-"+p,supportLink:"/support-faq",websiteUrl:"https://watch.sparktv.ai/",websiteUrlDomain:m?"https://spark.web.matchpoint.tv/":"https://watch.sparktv.ai/",appdeeplink:"",isDeepLinkNeeded:!0,backgroundColor:"#200000",isLogTable:!1,custId:m?"cineverse-beta":"christmasplus",channelName:m?"cineverse-beta":"christmasplus",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/sweetspiretv-account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/Sweetspiretv-hover-img.svg",metaDescription:"Spark is your front-row seat to a world transforming in real time — featuring original films and TV series, curated favourites, and groundbreaking content exploring UFOs, consciousness, ancient civilizations, true crime, spirituality, and the frontier of human potential. Stream on-demand or live and journey into the new age of truth, where the paranormal becomes normal and the impossible unfolds before your eyes.",metaCanonical:"https://watch.sparktv.ai/",metaSiteURL:"https://watch.sparktv.ai/",metaSiteName:"Spark",custIdUMS:m?"cineverse-beta":"christmasplus",liveRampUrl:null,metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52qe5w0eewk79l6kuwcp9hsjfidf7y9l4n6omjgyheoh0waos6u/246x140.png?user=UnknownUser",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"},{name:"Spark Shop",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shop_icon.svg"),alt:"shop",width:14,height:14,priority:!0}),path:"/sparkshop",id:"sparkshop"}],"social-links":{facebook_link:"https://www.facebook.com/mysparktv",instagram_link:"https://www.instagram.com/stream
25sparktv/#",twitter_link:null,tiktok_link:null,youtube_link:null},appLinks:{appleAppStore:"https://apps.apple.com/us/app/spark-question-everything/id6757751137",androidAppStore:"https://play.google.com/store/apps/details?id=com.cnvs.spark",rokuAppStore:"https://channelstore.roku.com/details/bd5cb6dc21bf1d2c5efdaf3f1463ab8f:596d78c4d1c81d6c883abbcdffeb0c0b/spark"},rowEightPlanDesc:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",episodicPlanDesc:"Add the ultimate FREE Christmas app to your Fire TV and stream thousands of festive hits, beloved classics, series, specials, and holiday music all season long. From blockbuster titles to cherished favorites - it's all here, at no cost! Start watching today and Season’s Streamings!",metaLogo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5dl74l4hj6qwig7r1geanp4jgje05vnb4c47d0wuwq4nmlds34n/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r4vpoyajg3d61bu2gb0rg1o8uhoh0nwohiceo1j323x1yjl4dk60/144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5uqthsn2x2uyticri4wgjfmg8d7nl6uqbom2sm5xlfs4t2l786x/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r582jwt5ah0ooiyu6qjn3ygze94iw5vnb4c47d0wuwq4nmlds34n/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3zwpijflo4nefngbmf9jeqtitqhmd8v7yy1i0ii456lwtp4135n/70x70.png?user=UnknownUser",playButtonTextColor:"white",defaultUiConfig:{customer:"christmasplus",device:"web",config:{basic:{logo:"//images/"+d+"/christmasplus.svg",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"rgb(108, 72, 145)",button_border_color:"",button_background_highlight_color:"rgb(108, 72, 145)",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"rgb(108, 72, 145)",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"rgb(108, 72, 145)",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:"https://www.spark.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"rgb(108, 72, 145)",menu_highlight_color:"rgb(108, 72, 145)",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"#200000"}}},addressDetailsforSubscription:!0,appId:null,isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},beacontv:{footerLogowidth:85,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that BeaconTV may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:null,androidLink:null,iosLink:null,lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/019bb73b-9eb9-726c-82df-250f87ff4643/OtAutoBlock.js":"",oneTrustDataDomainScript:m?"019bb73b-9eb9-726c-82df-250f87ff4643":"",isCinesearch:!1,couponHeadline:"Stream Movies & TV",loggedUsercouponDescription:"Watch unlimited films and TV shows today",signUpCouponDescription:"",subHeaderPlan:"Choose a Plan. Cancel Anytime.",deepLinkinProtocol:"cineverse://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"BeaconTV",isAutoPreView:!0,isGridView:!0,isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!1,isDropDown:!0,chromeCastId:m?"A279F17A":"A4657D8B",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt
25:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#e40915","highlight-color":"#FFFFFF","text_hover-color":"#e40915","tag-primary-fontcolor":"#FFFFFF","tag-primary-backgroundColor":"#e40915","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#0243507d","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/beacontv.svg","footer-logo":"//images/"+d+"/beacontv.svg","svg-filter":"brightness(0) saturate(100%) invert(15%) sepia(55%) saturate(7493%) hue-rotate(351deg) brightness(87%) contrast(106%)","plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","epg-primary-color":"#000000","epg-secondary-color":"#e40915","epg-additional-color":"#ff0000","rowEight-color":"#64007d","text_hover-color":"#e40915","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#006235",appTitle:"Discover BeaconTV, your premier destination for streaming True Crime, Horror, and Paranormal content!",appTag:"Your guide for Paranormal, True Crime, and Horror video content",supportLink:"/support-faq",websiteUrl:"https://www.cineverse.com",websiteUrlDomain:m?"https://becontv.web.matchpoint.tv/":"https://streambeacontv.com/",appdeeplink:"cineverse.com",isDeepLinkNeeded:!0,backgroundColor:"#022022",isLogTable:!1,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/acct-hover-icon.png",metaDescription:"Discover BeaconTV, your premier destination for streaming True Crime, Horror, and Paranormal content!",metaCanonical:"https://streambeacontv.com/",metaSiteURL:"https://streambeacontv.com/",metaSiteName:"BeaconTV",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"About Cineverse – Watch. License. Advertise. Innovate. Explore",signinTitle:"Sign In or Sign Up for Cineverse Here for Free Movies & TV Shows Online",aboutusDescription:"The free streaming service that offers limitless access to the best movies and TV shows from around the world",signinDescription:"Sign In to your Cineverse account or sign up for free today and enjoy a wide variety of movies and TV shows",liveRampUrl:"https://launchpad-wrapper.privacymanager.io/43704492-2b39-4e46-8b83-423f15438fa2/launchpad-liveramp.js",metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6bufvzxdcgkydo6t5mk0ppk9frp204onaettbflbgam254q2rb14q/600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6buq5yekih4c9fhs6rw4made6a5mq0skqfssu91lt40deln5huq1d/246x140.png?user=UnknownUser",letterbox_redirect:m?"https://stage-13.cineverse.com/":"https://cineverse.com/",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:"https://facebook.com/streambeacontv",instagram_link:"https://instagram.com/streambeacontv",twitter_link:null,tiktok_link:"https://tiktok.com/@streambeacontv",youtube_link:"https://youtube.com/streambeacontv"},appLinks:{appleAppStore:null,androidAppStore:null,rokuAppStore:null},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6bufvzxdcgkydo6t5mk0ppk9frp204onaettbflbgam254q2rb14q/600x315.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6buyba2931ly8gyevjelz4ofdq9869gjwhuhjbwvd3mcew0gik93m/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6budczv5xbh9sokepzf8iio7xw9poi2x29xic3y9679i5n6x4ui28/144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6buii2hluox5m7igoi5s7hr0jthwxy5rb27l87tjaqua0xm0g3756/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6bunef7u7bi0n7g2h2axy4tousvxk1gjwhuhjbwvd3mcew0gik93m/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d8yis7jozjkjcv6y6qudjqu6buar1oq6e09fr50rf2ray53y639lmd8v7yy1i0ii456lwtp4135n/70x70.png?user=UnknownUser",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#e40915",button_border_color:"",button_background_highlight_color:"#e40915",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#e40915",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#e40915",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:"https://www.cineverse.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#e40915",menu_highlight_color:"#e40915",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:null,isGCaptcha:!A,isOTPNeeded:!0,subscribePlansDesc:"",isCaptchaV3:!1},freelivesports:{footerLogowidth:75,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!1,marketingDesc:"By providing my email address I understand that Free Live Sports may send marketing messages. You can opt-out at any time.",isliveMenuActive:!0,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/livetv",apiGetURL:"/api/get",isPixelEnabled:!1,GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:"https://www.freelivesports.tv/devices/roku-tv/",androidLink:"https://www.freelivesports.tv/devices/android-mobile-tablet/",iosLink:"https://www.freelivesports.tv/devices/apple-iphone-ipad/",lgWebLink:null,vizioLink:"https://www.freelivesports.tv/devices/vizio-tv/",androidTvLink:"https://www.freelivesports.tv/devices/google-android-tv/",appleTvLink:"https://www.freelivesports.tv/devices/apple-tv/",googleTvLink:null,comcastXfinityLink:null,amazonLink:"https://www.freelivesports.tv/devices/amazon-fire-tv/",tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/019be5e3-ef77-78a3-a941-c16765ffeac7/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/019bffc2-4ca7-7dac-a9ab-00085cc22942/OtAutoBlock.js",oneTrustDataDomainScript:m?"019be5e3-ef77-78a3-a941-c16765ffeac7":"019bffc2-4ca7-7dac-a9ab-00085cc22942",isCinesearch:!1,couponHeadline:"Live Games, Analysis, and More Featuring your Favorite Sports",loggedUsercouponDescription:"Score big with Free Live Sports! Stream 100+ live TV channels with your favorite action-packed sports—Football, Basketball, Baseball, Tennis, Hockey, Soccer, Volleyball, Racing, and more plus passion sports for die-hard fans, all live, 24/7, and absolutely free. Never miss a moment again!",signUpCouponDescription:"Score big with Free Live Sports! Stream 100+ live TV channels with your favorite action-packed sports—Football, Basketball, Baseball, Tennis, Hockey, Soccer, Volleyball, Racing, and more plus passion sports for die-hard fans, all live, 24/7, and absolutely free. Never miss a moment again!",subHeaderPlan:"Choose a Plan. Cancel Anytime.",deepLinkinProtocol:"freelivesports://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Free Live Sports",isAutoPreView:!0,isGridView:!0,isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!1,isDropDown:!0,chromeCastId:m?"E73C51A4":"9C8A2ECE",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#e62020","highlight-color":"#e62020","text_hover-color":"#e62020","tag-primary-fontcolor":"#FFFFFF","tag-primary-backgroundColor":"#200000","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#200000","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404-page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/FreeLiveSports.svg","footer-logo":"//images/"+d+"/FreeLiveSports.svg","svg-filter":"brightness(0) saturate(100%) invert(21%) sepia(70%) saturate(7498%) hue-rotate(353deg) brightness(95%) contrast(90%)","plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","epg-primary-color":"#200000","epg-secondary-color":"#e62020","epg-additional-color":"#e62020","rowEight-color":"#64007d","text_hover-color":"#e62020","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#FFFFFF",appTitle:"Live Games, Analysis, and More Featuring your Favorite Sports",appTag:"Cinedigm-India-Cineverse",supportLink:"/support-faq",websiteUrl:"https://www.freelivesports.tv/",websiteUrlDomain:m?"https://fls.web.matchpoint.tv/":"https://www.freelivesports.tv/",appdeeplink:"cineverse.com",isDeepLinkNeeded:!1,backgroundColor:"#022022",isLogTable:!1,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/acct-hover-icon.png",metaDescription:"Score big with Free Live Sports! Stream 100+ live TV channels with your favorite action-packed sports—Football, Basketball, Baseball, Tennis, Hockey, Soccer, Volleyball, Racing, and more plus passion sports for die-hard fans, all live, 24/7, and absolutely free. Never miss a moment again!",metaCanonical:"https://www.freelivesports.tv/",metaSiteURL:"https://www.freelivesports.tv/",metaSiteName:"Free Live Sports",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"About Cineverse – Watch. License. Advertise. Innovate. Explore",signinTitle:"Sign In or Sign Up for Cineverse Here for Free Movies & TV Shows Online",aboutusDescription:"Welcome to the ultimate free movies and TV streaming service. Founded in 2020 in Venice, California, with the mission of transforming how viewers access premium film and television content, Fee Movies Plus has entertained tens of millions of viewers with our 20,000+ title library of free content available across major CTV platforms. We work with the some of the most prominent names in movie and television distribution, advertising, and streaming technology to deliver a one-of-a-kind experience to our users.",signinDescription:"Sign In to your Cineverse account or sign up for free today and enjoy a wide variety of movies and TV shows",liveRampUrl:null,metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4
25nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogoTwo:"hhttps://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52qe5w0eewk79l6kuwcp9hsjfh7qbj98msbkysest0v36lkdh2f/246x140.png?user=UnknownUser",letterbox_redirect:m?"https://stage-13.cineverse.com/":"https://cineverse.com/",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"On Demand",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"onDemand",width:14,height:14,priority:!0}),path:"/ondemand",id:"ondemand"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:"https://www.facebook.com/people/Sports-Studio/61575564632862/",instagram_link:null,twitter_link:"https://x.com/FreeLiveSportsX",tiktok_link:null,youtube_link:"youtube.com/@FreeLiveSportsTV"},appLinks:{appleAppStore:null,androidAppStore:null,rokuAppStore:null},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5dl74l4hj6qwig7r1geanp4jgje05vnb4c47d0wuwq4nmlds34n/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r4vpoyajg3d61bu2gb0rg1o8uhoh0nwohiceo1j323x1yjl4dk60/144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5uqthsn2x2uyticri4wgjfmg8d7nl6uqbom2sm5xlfs4t2l786x/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r582jwt5ah0ooiyu6qjn3ygze94iw5vnb4c47d0wuwq4nmlds34n/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3zwpijflo4nefngbmf9jeqtitqhmd8v7yy1i0ii456lwtp4135n/70x70.png?user=UnknownUser",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#e62020",button_border_color:"",button_background_highlight_color:"#e62020",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#e62020",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#e62020",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:"https://www.cineverse.com/"},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#e62020",menu_highlight_color:"#e62020",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},freemoviesplus:{footerLogowidth:75,footerLogoheight:36,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!1,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,marketingDesc:"By providing my email address I understand that Free Movies Plus may send marketing messages. You can opt-out at any time.",isliveMenuActive:!1,isDetailsKeywordEnabled:!0,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,isPurchaseDataLayerEnable:!1,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:null,androidLink:null,iosLink:null,lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!1,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/019bfe24-a823-7f58-b355-ff37baad0fa6/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/019bffc8-1dce-74d8-95bc-bd23efdf2d3d/OtAutoBlock.js",oneTrustDataDomainScript:m?"019bfe24-a823-7f58-b355-ff37baad0fa6":"019bffc8-1dce-74d8-95bc-bd23efdf2d3d",isCinesearch:!1,couponHeadline:"Movies and TV As they Should Be, Free!",loggedUsercouponDescription:"Never pay to watch movies again! Catch thousands of fresh movies, series, and more with your favorite actors, including comedies, horror, action, dramas, family, thrillers, westerns, classics, and award-winners. We love movies and have created the ultimate collection for fans like you! No sign-up process and no fees. Download the free app to start watching today!",signUpCouponDescription:"Never pay to watch movies again! Catch thousands of fresh movies, series, and more with your favorite actors, including comedies, horror, action, dramas, family, thrillers, westerns, classics, and award-winners. We love movies and have created the ultimate collection for fans like you! No sign-up process and no fees. Download the free app to start watching today!",subHeaderPlan:"Choose a Plan. Cancel Anytime.",deepLinkinProtocol:"freemoviesplus://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Free Movies Plus",isAutoPreView:!0,isGridView:!0,isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!1,isDropDown:!0,chromeCastId:m?"80C6E252":"511A6ADE",kochavaAppId:m?"kocineverse-beta-va1sh0":"kocinverse-web-3g2ts5o7",isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-CHmf3wbn2iWzkpf5iAPzFH",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt
25:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"promo-1-month",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web_1_month_v2",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$4.99/month",monthlyamt:"$4.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web_1_year_v2",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"",free_7day:"Get 7-days Free, Then",plan_amt:"$49.99/year",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0,saveplan:"(Save 17%)",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#46FFDF","highlight-color":"#46FFDF","text_hover-color":"#46FFDF","tag-primary-fontcolor":"#FFFFFF","tag-primary-backgroundColor":"#02323c","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#0243507d","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#103840","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#056a4f",rentAbstructColor:"#105a4678",isSubmitParagraph:!1,playButtonClass:"play-button-image",genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/FreeMoviesPlus_logo.svg","footer-logo":"//images/"+d+"/FreeMoviesPlus_logo.svg","svg-filter":"brightness(0) saturate(100%) invert(78%) sepia(58%) saturate(458%) hue-rotate(109deg) brightness(101%) contrast(101%)","plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","sub-plancard-background-color":"linear-gradient(0deg, rgba(0,0,4,1) 0%, rgba(1,1,48,1) 100%)","epg-primary-color":"#200000","epg-secondary-color":"#46FFDF","epg-additional-color":"#46FFDF","rowEight-color":"#64007d","text_hover-color":"#46FFDF","button-text-color":"black","formbutton-text-color":"black","playbox-text-color":"#FFFFFF",appTitle:"Movies and TV As they Should Be, Free!",appTag:"Movies, TV Shows, TV, Free",supportLink:"/support-faq",websiteUrl:"https://www.freemoviesplus.com/",websiteUrlDomain:m?"http://freemoviesplus.web.matcxhpoint.tv/":"https://www.freemoviesplus.com/",appdeeplink:"https://www.freemoviesplus.com/",isDeepLinkNeeded:!1,backgroundColor:"#020F25",isLogTable:!1,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/acct-hover-icon.png",metaDescription:"Never pay to watch movies again! Catch thousands of fresh movies, series, and more with your favorite actors, including comedies, horror, action, dramas, family, thrillers, westerns, classics, and award-winners. We love movies and have created the ultimate collection for fans like you! No sign-up process and no fees. Download the free app to start watching today!",metaCanonical:"https://www.freemoviesplus.com/",metaSiteURL:"https://www.freemoviesplus.com/",metaSiteName:"Free Movies Plus",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"About Cineverse – Watch. License. Advertise. Innovate. Explore",signinTitle:"Sign In or Sign Up for Cineverse Here for Free Movies & TV Shows Online",aboutusDescription:"Welcome to the ultimate free movies and TV streaming service. Founded in 2020 in Venice, California, with the mission of transforming how viewers access premium film and television content, Fee Movies Plus has entertained tens of millions of viewers with our 20,000+ title library of free content available across major CTV platforms. We work with the some of the most prominent names in movie and television distribution, advertising, and streaming technology to deliver a one-of-a-kind experience to our users.",signinDescription:"Sign In to your Cineverse account or sign up for free today and enjoy a wide variety of movies and TV shows",liveRampUrl:null,metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3yqw65j270ckxftv4
25nefilqqktajsgtd28ejj9ad4pt0xo2wk5b/600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52qe5w0eewk79l6kuwcp9hsjfh9hoi35xsmu02ymwh18wgre62a/246x140.png?user=UnknownUser",letterbox_redirect:m?"https://stage-13.cineverse.com/":"https://cineverse.com/",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"}],"social-links":{facebook_link:null,instagram_link:null,twitter_link:null,tiktok_link:null,youtube_link:null},appLinks:{appleAppStore:null,androidAppStore:null,rokuAppStore:null},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/iryfw5rijexztch56r6vimk4vvpilis077gii1uxi8qyeyhpsmmocprhn7zzqzm7tnpxl7doeipzpgarbg6ooywf8iojh7y6h0lbdfmjr9p7joaumq91f5q3928ig/600x315.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/nunqo004eaoftxkf23z3an47fj2ru602l6ndt9kep7uqrkojcsrk96q17u9v30q1chsp5kqjys21dib65shiup6d8of1xsd11q37/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/iryfw5rijexztch56r6vimk4vvpilis077gii1uxi8qyeyhpsn6cwfj0n4hit7s3qjqkpp2ut5foi3do9z6lejuz1gh0x14xlxrcwlalj9p7joaumq91f5q3928ig/144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/iryfw5rijexztch56r6vimk4vvpilis077gii1uxi8qyeyhpsmlaukmhop4mo4o2eelmms9wqattr9s0yrx3jpt2m99o4nii55frljyzr9p7joaumq91f5q3928ig/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/iryfw5rijexztch56r6vimk4vvpilis077gii1uxi8qyeyhpsm1704bvqukphhn20bo7616odj7yoeq9y5j252kdyaemif3q3hjpns2xz9p7joaumq91f5q3928ig/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/iryfw5rijexztch56r6vimk4vvpilis077gii1uxi8qyeyhpsnfgm6gklfj4wh41c5lvinibfqxabejz1kl3uy6m7jztesi7os3i/70x70.png?user=UnknownUser",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#46FFDF",button_border_color:"",button_background_highlight_color:"#46FFDF",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#46FFDF",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#46FFDF",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:"https://www.cineverse.com/"},home:{background_image:"",background_color:"#020F25",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#46FFDF",menu_highlight_color:"#46FFDF",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"",isGCaptcha:!A,subscribePlansDesc:"",isCaptchaV3:!1},gorillacomedyplus:{footerLogowidth:80,footerLogoheight:70,needCroppedPromo:!0,needPlayerDeepLinkModal:!0,isplaywatchbtnHover:!1,isLogTableRegBackColor:"#0f254b",isLoginAppName:!0,needBackBtn:!0,isCaptchaV3:!1,isliveMenuActive:!1,isDetailsKeywordEnabled:!1,GTM_ID:"GTM-WT6BLV6C",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!0,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!0,isGCPGAPixelEnabled:!0,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"G-NWCRKXFN3X",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,GA_ADS_SITE_TAG:"AW-861189193",FB_ADS_PIXEL_ID:"1006225940262894",TIKTOK_PIXEL_ID:"C3CUKBO7M4VETA97REAG",GA_SUBSCRIPTION_CONVERSION_ID:"AW-861189193/HDGUCKu6udMYEMno0poD",STACKADAPT_TAG_ID:"E_ta7M2PNI6E6Tc12CPX7g",isPurchaseDataLayerEnable:!0,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:"https://channelstore.roku.com/details/0a1014107811aca789a128f203c7083f:8baa53f159739c3a9a1dca4b63ad4136/gorilla-comedy",androidLink:"https://play.google.com/store/apps/details?id=com.cnvs.gorillacomedyplus",iosLink:"https://apps.apple.com/us/app/gorilla-comedy/id6761107941",lgWebLink:null,vizioLink:null,androidTvLink:"https://play.google.com/store/apps/details?id=com.cnvs.gorillacomedyplus",appleTvLink:"https://apps.apple.com/us/app/gorilla-comedy/id6761107941",googleTvLink:null,comcastXfinityLink:null,amazonLink:"https://www.amazon.in/800-Pound-Gorilla-Media-LLC/dp/B0GZ7X3JXW/ref=sr_1_1?crid=1SGILH4AH2QDV&dib=eyJ2IjoiMSJ9.32LA8nmNv6mEITu9UbeXUQ.l5UVGvu8-tEPhMRWrXtzbAmnF4QADThAiJXpz8TXV-E&dib_tag=se&keywords=Gorilla+Comedy%2B&qid=1778570883&s=mobile-apps&sprefix=gorilla+comedy%2B%2Cmobile-apps%2C434&sr=1-1&web_form_name=site-search&web_form_page=https%3A%2F%2Fwww.amazon.in%2Fs%3Fk%3DGorilla%2BComedy%252B%26crid%3D1PDKBCSJCX0JV%26sprefix%3Dgorilla%2Bcomedy%252Caps%252C578%26web_form_name%3Dsite-search%26web_form_page%3Dhttps%253A%252F%252Fwww.amazon.in%252F%253Fref_%253Dicp_country_from_us%26ref%3Dnb_sb_noss",tizenLink:null},isSession:!0,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",oneTrustAutoBlockCDN:m?"https://cdn.cookielaw.org/consent/019d24d8-e518-779d-a438-13b6606d8e21/OtAutoBlock.js":"https://cdn.cookielaw.org/consent/019db92e-47d5-77c1-9759-f44ca39078fa/OtAutoBlock.js",oneTrustDataDomainScript:m?"019d24d8-e518-779d-a438-13b6606d8e21":"019db92e-47d5-77c1-9759-f44ca39078fa",isCinesearch:!1,couponHeadline:"Watch stand-up comedy",loggedUsercouponDescription:null,signUpCouponDescription:"",subHeaderPlan:" A streaming platform built entirely for stand-up. Exclusive specials, legendary sets, and the biggest names in comedy all in one place.",deepLinkinProtocol:"gorillacomedyplus://",couponParagraph:"",isWallet:!0,isRowEight:!0,LoginAppName:"Gorilla Comedy+",isAutoPreView:!0,isGridView:!0,isSubscribValue:!0,isMultiProfileActive:!1,isSubscribtionPayment:!0,isDropDown:!0,chromeCastId:m?"F2881AD3":"63DFDD94",kochavaAppId:null,isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-YuObBdtu9KDICMcEmCG4Ez",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt
25:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-gorilla-monthly",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$9.99* billed every month",free_7day:"",plan_amt:"$9.99/month",monthlyamt:"$9.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-gorilla-annual",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"$99.99* billed every year",free_7day:"",plan_amt:"$99.99/year",monthlyamt:"$8.33/mo",isactive:!0,isPopular:!0,saveplan:"",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web-gorilla-monthly",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$9.99*/month",free_7day:"",plan_amt:"$9.99/month",monthlyamt:"$9.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-gorilla-annual",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"$99.99*/year",free_7day:"",plan_amt:"$99.99/year",monthlyamt:"$8.33/mo",isactive:!0,isPopular:!0,saveplan:"",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#005fff","highlight-color":"#005fff","text_hover-color":"#005fff","tag-primary-fontcolor":"#FFFFFF","tag-primary-backgroundColor":"#031026","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#005fff","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#005fff","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#005fff",rentAbstructColor:"#005fff",isSubmitParagraph:!1,genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/gorilla_comedy_plus_logo.svg","footer-logo":"//images/"+d+"/gorilla_comedy_plus_logo.png","svg-filter":"brightness(0) saturate(100%) invert(26%) sepia(80%) saturate(6515%) hue-rotate(217deg) brightness(106%) contrast(102%)","plancard-background-color":"linear-gradient(133deg, #005fff 2%, #0b0f24);","sub-plancard-background-color":"linear-gradient(133deg, #005fff 2%, #0b0f24);","epg-primary-color":"#005fff","epg-secondary-color":"#002356","epg-additional-color":"#005fff","rowEight-color":"","button-text-color":"white","formbutton-text-color":"#FFFFFF","playbox-text-color":"#FFFFFF",appTitle:"Where Comedy Lives",appTag:"Cinedigm-India-Cineverse",supportLink:"https://gorillacomedyplus.com/support/",websiteUrl:"https://watch.gorillacomedyplus.com/",websiteUrlDomain:m?"https://gcp.web.matchpoint.tv/":"https://watch.gorillacomedyplus.com/",appdeeplink:"https://watch.gorillacomedyplus.com/",isDeepLinkNeeded:!1,backgroundColor:"#022022",isLogTable:!0,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/account-hover-img.svg",metaDescription:"Gorilla Comedy+ is the streaming home for stand-up comedy - built for those who get the joke and want the best in comedy, all in one place",metaCanonical:"https://watch.gorillacomedyplus.com/",metaSiteURL:"https://watch.gorillacomedyplus.com/",metaSiteName:"gorillacomedyplus",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"Where Comedy Lives",signinTitle:"Where Comedy Lives",aboutusDescription:"Where Comedy Lives",signinDescription:"Where Comedy Lives",liveRampUrl:"https://launchpad-wrapper.privacymanager.io/43704492-2b39-4e46-8b83-423f15438fa2/launchpad-liveramp.js",metaLogoOne:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dhdap4l020acbfk2g8ji1oxeutlaplpi9vfgp0w3cw5qeyhlo54wypvjsghovh6jwdqtcjxb8a4d/600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r52qe5w0eewk79l6kuwcp9hsjfgr1danvs1duu70mosd16e8l71g/246x140.png?user=UnknownUser",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"},{name:"Spark Shop",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shop_icon.svg"),alt:"shop",width:14,height:14,priority:!0}),path:"/sparkshop",id:"sparkshop"}],"social-links":{facebook_link:"https://800pgr.lnk.to/FacebookWE",instagram_link:"https://800pgr.lnk.to/InstagramWE",twitter_link:"https://800pgr.lnk.to/TwitterWE",tiktok_link:"https://800pgr.lnk.to/TikTokWE",youtube_link:"https://800pgr.lnk.to/YouTubeWE"},appLinks:{appleAppStore:"https://apps.apple.com/us/app/gorilla-comedy/id6761107941",androidAppStore:"https://play.google.com/store/apps/details?id=com.cnvs.gorillacomedyplus",rokuAppStore:"https://channelstore.roku.com/detail
25s/0a1014107811aca789a128f203c7083f:8baa53f159739c3a9a1dca4b63ad4136/gorilla-comedy"},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dhdap4l020acbfk2g8ji1oxeutlaplpi9vfgp0w3cw5qeyhlo54wypvjsghovh6jwdqtcjxb8a4d/600x315.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5dl74l4hj6qwig7r1geanp4jgje05vnb4c47d0wuwq4nmlds34n/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r4vpoyajg3d61bu2gb0rg1o8uhoh0nwohiceo1j323x1yjl4dk60/144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r5uqthsn2x2uyticri4wgjfmg8d7nl6uqbom2sm5xlfs4t2l786x/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r582jwt5ah0ooiyu6qjn3ygze94iw5vnb4c47d0wuwq4nmlds34n/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d9ifv6ygrm6jifplrpse0xy7r3zwpijflo4nefngbmf9jeqtitqhmd8v7yy1i0ii456lwtp4135n/70x70.png?user=UnknownUser",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#005fff",button_border_color:"",button_background_highlight_color:"#005fff",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#005fff",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#005fff",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_t
25imer_color:"white",tv_activation_url:""},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#005fff",menu_highlight_color:"#005fff",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:"6761107941",isGCaptcha:!A,marketingDesc:"By providing my email address I understand that Gorilla Comedy+ may send marketing messages. You can opt-out at any time.",subscribePlansDesc:"* Note: Subscriptions purchased outside the US will be billed in your local currency, based on your card issuer’s terms."},arrayplay:{footerLogowidth:70,footerLogoheight:60,needCroppedPromo:!1,needPlayerDeepLinkModal:!1,isplaywatchbtnHover:!0,isLogTableRegBackColor:"",isLoginAppName:!1,needBackBtn:!0,isCaptchaV3:!1,isliveMenuActive:!1,isDetailsKeywordEnabled:!1,GTM_ID:"",issignupNew:!0,isshop:!1,isAboutUs:!0,isRampupPlans:!1,weblandingURL:"/home",apiGetURL:"/api/get",isPixelEnabled:!1,isFreeWheelPixelEnabled:!1,isGooglePixelEnabled:!1,isGCPGAPixelEnabled:!1,isMetaPixelEnabled:!1,FW_TAG_ID:"",FW_COMMON_TAG_ID:"",FW_SUBSCRIPTION_TAG_ID:"",FW_ANNUAL_SUBSCRIPTION_TAG_ID:"",FW_MONTHLY_SUBSCRIPTION_TAG_ID:"",GA_CONVERSION_ID:"",GA_ANNUAL_CONVERSION_ID:"",GA_MONTHLY_CONVERSION_ID:"",GA_SUBMIT_CONVERSION_ID:"",GA_ANNUAL_SUCCESS_CONVERSION_ID:"",GA_MONTHLY_SUCCESS_CONVERSION_ID:"",GA_COMMON_CONVERSION_ID:"",GA_VIDEO_START_CONVERSION_ID:"",GA_VIDEO_END_CONVERSION_ID:"",GA_GTAG_ID:"",FB_PIXEL_ID:"",isGlobalPixelEnable:!1,GA_ADS_SITE_TAG:"",FB_ADS_PIXEL_ID:"",TIKTOK_PIXEL_ID:"",GA_SUBSCRIPTION_CONVERSION_ID:"",STACKADAPT_TAG_ID:"",isPurchaseDataLayerEnable:!0,supportEmail:"[email protected]",FooterImageLinks:{rokuLink:null,androidLink:null,iosLink:null,lgWebLink:null,vizioLink:null,androidTvLink:null,appleTvLink:null,googleTvLink:null,comcastXfinityLink:null,amazonLink:null,tizenLink:null},isSession:!0,isDove:!1,isNavLink:null,isLetterBox:!1,isVisitPageOn:!0,oneTrustCDN:"",oneTrustAutoBlockCDN:"",oneTrustDataDomainScript:"",isCinesearch:!1,couponHeadline:"Free For The People",loggedUsercouponDescription:null,signUpCouponDescription:"",subHeaderPlan:"",deepLinkinProtocol:"arraynow://",couponParagraph:"",isWallet:!1,isRowEight:!1,LoginAppName:"Array Play",isAutoPreView:!0,isGridView:!0,isSubscribValue:!1,isMultiProfileActive:!1,isSubscribtionPayment:!1,isDropDown:!0,chromeCastId:m?"E1115A9C":"91679FF0",kochavaAppId:null,isKochavaAppId:!1,recurly_public_key_demo:"ewr1-iht3e6RSHa58Bvj1v5TWIr",recurly_public_key_stage:"ewr1-DFWEv9r7kDN8GdG86FUd1j",recurly_public_key_production:"ewr1-YuObBdtu9KDICMcEmCG4Ez",recurlyDomain_stage:"cineverse-dev",recurlyDomain_production:"cineverse-dev",recurlyDomain_demo:"cinedigm",plan_data_array_demo:[{recurly_plan_id:"web-12-month",plan_id:1,plan_title:"YEARLY",plan_desc:"$50 billed every twelve (12) months. Save 10% on the monthly plan.",plan_amt:"$50",monthlyamt:"$4.17/mo",isactive:!0,isPopular:!0},{recurly_plan_id:"web-3-month",plan_id:2,plan_title:"Three Month Plan",plan_desc:"$13.49 billed every three (3) months.",plan_amt:"$13.49",monthlyamt:"$4.50/mo",isactive:!1,isPopular:!1},{recurly_plan_id:"web-1-month",plan_id:3,plan_title:"Monthly Plan: No ads",plan_desc:"$4.99 billed every month. Watch Fandor without ads.",plan_amt:"$4.99",monthlyamt:"$4.99/mo",isactive:!1,isPopular:!1}],stage_plan_data:[{recurly_plan_id:"web-gorilla-monthly",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$9.99* billed every month",free_7day:"",plan_amt:"$9.99/month",monthlyamt:"$9.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-gorilla-annual",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"$99.99* billed every year",free_7day:"",plan_amt:"$99.99/year",monthlyamt
25:"$8.33/mo",isactive:!0,isPopular:!0,saveplan:"",upgrade_button:!1,plan_duration:12,subPlanCode:400}],production_plan_data:[{recurly_plan_id:"web-gorilla-monthly",plan_id:1,plan_title:"MONTHLY",plan_header_title:"Monthly Premium",plan_desc:"$9.99*/month",free_7day:"",plan_amt:"$9.99/month",monthlyamt:"$9.99/mo",isactive:!0,isPopular:!1,saveplan:"",upgrade_button:!0,plan_duration:1,subPlanCode:100},{recurly_plan_id:"web-gorilla-annual",plan_id:1,plan_title:"YEARLY",plan_header_title:"Annual Premium",plan_desc:"$99.99*/year",free_7day:"",plan_amt:"$99.99/year",monthlyamt:"$8.33/mo",isactive:!0,isPopular:!0,saveplan:"",upgrade_button:!1,plan_duration:12,subPlanCode:400}],"primary-color":"#19c1b7","highlight-color":"#19c1b7","text_hover-color":"#19c1b7","tag-primary-fontcolor":"#FFFFFF","tag-primary-backgroundColor":"#031026","tag-secondary-fontcolor":"#fff","tag-secondary-backgroundColor":"#19c1b7","tag-tertiary-fontcolor":"#fff","tag-bordercolor":"#19c1b7","tag-hoverColor":"#ffffff1a",isSubmitYourFilm:!1,rentConstructColor:"#005fff",rentAbstructColor:"#005fff",isSubmitParagraph:!1,genreSliderArrowNextImage:"//images/".concat(d,"/icons/arrowNext.svg"),genreSliderArrowPrevImage:"//images/".concat(d,"/icons/arrowPrev.svg"),smallButtonPlayIcon:"//images/".concat(d,"/buttons_icon/play.png"),submitYourFilmIcon:"//images/".concat(d,"/submit-your-film-logo.svg"),submitYourFilmImg:"//images/".concat(d,"/submit-your-film-phn.png"),errorPageLink:"//images/".concat(d,"/404_page.svg"),noDataTextIcon:"//images/"+d+"/nodata_text.svg",noDataFoundNew:"//images/"+d+"/NoDataFound_new.svg","logo-height":50,"logo-width":155,"logo-image":"//images/"+d+"/logo.svg","footer-logo":"//images/"+d+"/logo.svg","svg-filter":"brightness(0) saturate(100%) invert(80%) sepia(42%) saturate(6086%) hue-rotate(129deg) brightness(96%) contrast(80%)","plancard-background-color":"linear-gradient(133deg, #E7A34B 2%, #0b0f24);","sub-plancard-background-color":"linear-gradient(133deg, #E7A34B 2%, #0b0f24);","epg-primary-color":"#19c1b7","epg-secondary-color":"#002356","epg-additional-color":"#E7A34B","rowEight-color":"","button-text-color":"white","formbutton-text-color":"#FFFFFF","playbox-text-color":"#FFFFFF",appTitle:"Free For The People",appTag:"Cinedigm-India-Cineverse",supportLink:"/support-faq",websiteUrl:"https://arrayplay.com/",websiteUrlDomain:m?"https://gcp.web.matchpoint.tv/":"https://arrayplay.com/",appdeeplink:"https://arrayplay.com/",isDeepLinkNeeded:!1,backgroundColor:"#022022",isLogTable:!1,custId:m?"cineverse-beta":"cineverse",channelName:m?"cineverse-beta":"cineverse",premiumLocksrc:"//images/"+d+"/icons/premium_assets_icon_v6.png",loginPathSrc:"//images/"+d+"/icons/user.svg",accountPathSrc:"/images/"+d+"/icons/user2.png",accountDefaultIconImg:"/images/"+d+"/icons/account-icon-image.svg",accountHoverIconImg:"/images/"+d+"/icons/account-hover-img.svg",metaDescription:"ARRAY Play is not just a platform. It’s a point of view. Every week brings ARRAY Exclusives, indie breakthroughs and reclaimed studio classics — all chosen with one belief: the stories we watch shape who we become. For those who embrace the world, press play and stream with purpose",metaCanonical:"https://arrayplay.com/",metaSiteURL:"https://arrayplay.com/",metaSiteName:"arrayplay",custIdUMS:m?"cineverse-beta":"cineverse",aboutusTitle:"About Cineverse – Watch. License. Advertise. Innovate. Explore",signinTitle:"Sign In or Sign Up for Cineverse Here for Free Movies & TV Shows Online",aboutusDescription:"The free streaming service that offers limitless access to the best movies and TV shows from around the world",signinDescription:"Sign In to your Cineverse account or sign up for free today and enjoy a wide variety of movies and TV shows",liveRampUrl:"https://launchpad-wrapper.privacymanager.io/43704492-2b39-4e46-8b83-423f15438fa2/launchpad-liveramp.js",metaLogoOne:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k0i5wwevs8oqqge8h1nbj0gcxutg07v2bou21pejo9u26s4wvs6c/600x315.png?user=UnknownUser",metaLogoTwo:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k1ciy0rjs1dk65e8kuumbx6sk9hvw836kvn5iirlnne6ubw7p3l/246x140.png?user=UnknownUser",navMainMenu:[{name:"Home",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/home.svg"),alt:"home",width:14,height:14,priority:!0}),path:"/home",id:"home"},{name:"Live TV",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/livetv.svg"),alt:"livetv",width:14,height:14,priority:!0}),path:"/livetv",id:"livetv"},{name:"Movies",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/movies.svg"),alt:"movies",width:14,height:14,priority:!0}),path:"/movies",id:"movies"},{name:"Shows",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shows.svg"),alt:"shows",width:14,height:14,priority:!0}),path:"/shows",id:"shows"},{name:"Genres",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/genres.svg"),alt:"genres",width:14,height:14,priority:!0}),path:"/genres",id:"genres"},{name:"Watchlists",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/watchlist.svg"),alt:"watchlist",width:14,height:14,priority:!0}),path:"/watchlist",id:"watchlist"},{name:"Find",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/search.svg"),alt:"search",width:14,height:14,priority:!0}),path:"/find",id:"find"},{name:"Spark Shop",icon:(0,o.jsx)(a.default,{src:"//images/".concat(d,"/icons/shop_icon.svg"),alt:"shop",width:14,height:14,priority:!0}),path:"/sparkshop",id:"sparkshop"}],"social-links":{facebook_link:null,instagram_link:null,twitter_link:null,tiktok_link:null,youtube_link:null},appLinks:{appleAppStore:null,androidAppStore:null,rokuAppStore:null},rowEightPlanDesc:"will be charged for this rental. You will have 30 days to start watching this video and 48 hours to finish once started.",episodicPlanDesc:"will be charged for this rental. Enjoy this title for 6 months.",metaLogo:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k0i5wwevs8oqqge8h1nbj0gcxutg07v2bou21pejo9u26s4wvs6c/600x315.png?user=UnknownUser",metaLogo310_150:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k154of2h7u9v30q1chsp5kqjys21dib65shiup6d8of1xsd11q37/310x150.png?user=UnknownUser",metaLogo144_144:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k17nh3vpupxoo3ml06ycq39t72cpkqhpesxyofdohweg2b1pr92d/144x144.png?user=UnknownUser",metaLogo310_310:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k05srupy551g3wmg1ipcsvmmd11zdcl8fd9jcdt3qg86yorxch2z/310x310.png?user=UnknownUser",metaLogo150_150:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k1obb0v34r6pzdwkenvybg6h8145tib65shiup6d8of1xsd11q37/150x150.png?user=UnknownUser",metaLogo70_70:"https://cdn.matchpoint.tv/jt6u7kfs8h16fc1okg0jjqtz2ejk07on4nopouop69rv3645k01jm2oxhsdlv01j0xsiltt6s3v36pvjsghovh6jwdqtcjxb8a4d/70x70.png?user=UnknownUser",playButtonTextColor:"black",defaultUiConfig:{customer:"cineverse",device:"web",config:{basic:{logo:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7dwbz5n7zu9en0fipsuvcblm3gfy9636x3eszmmhascwaux99tqj/cineverse.png",issealrequired:"",background_color:"",background_image:"",protrait_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbn
25ail.png",landscape_no_thumb:"https://cdn.matchpoint.tv/lpx0mrehducjeabhge19v1u7d82mln9l59z30sk4ot938mi1jhx4z9di3lztcqnbgbum2y2s3j7/no-thumbnail.png",asset_highlight_color:"#19c1b7",button_border_color:"",button_background_highlight_color:"#19c1b7",button_highlight_color:"",button_default_text_color:"white",cuepoint_color:"#19c1b7",top_menu_default_color:"white",top_menu_border_color:"",top_menu_highlight_color:"#19c1b7",initial_loader_video:"",font:"",page_plus_navigation_animation:"",page_express_navigation_animation:"",progress_timer_color:"white",tv_activation_url:""},home:{background_image:"",background_color:"",asset_short_detail_text_color:"white",underline_color:"",shelves_title_color:"white",menu_underline_color:"#19c1b7",menu_highlight_color:"#19c1b7",menu_default_color:"white",menu_border_color:"",series_background_image:"",series_background_color:"",item_title_selected_color:"",item_title_default_color:""},details:{background_image:"",text_color:"white",asset_title_text_color:"white",asset_detail_text_color:"white",background_color:"black"}}},addressDetailsforSubscription:!0,appId:null,isGCaptcha:!A,marketingDesc:"By providing my email address I understand that Array Play may send marketing messages. You can opt-out at any time.",subscribePlansDesc:"* Note: Subscriptions purchased outside the US will be billed in your local currency, based on your card issuer’s terms."}},I=P[d].isLoginAppName,O=P[d].marketingDesc,N=P[d].subscribePlansDesc,D=P[d].isDetailsKeywordEnabled,R=P[d].GTM_ID,L=P[d].issignupNew,M=P[d].isshop,j=P[d].isAboutUs,B=P[d].isRampupPlans,U=P[d].weblandingURL,F=P[d].apiGetURL,H=P[d].needBackBtn,z=P[d].isLogTableRegBackColor,$=P[d].isplaywatchbtnHover,q=P[d].needPlayerDeepLinkModal,W=P[d].needCroppedPromo,V=P[d].footerLogowidth,G=P[d].footerLogoheight,K=P[d].isLogTable,Z=P[d].backgroundColor,Y=P[d].isRowEight,J=P[d].isWallet,X=P[d].isCinesearch,Q=P[d].isDropDown,ee=P[d].isGridView,et=P[d].isAutoPreView,er=P[d]["text_hover-color"],en=P[d]["primary-color"],ei=P[d]["highlight-color"],eo=P[d]["logo-width"],ea=P[d]["logo-height"],es=P[d]["logo-image"],el=P[d]["footer-logo"],ec=P[d].navMainMenu,eu=P[d]["social-links"],ed=P[d].appLinks,eh=P[d].errorPageLink,ep=P[d]["rowEight-color"],ef=P[d].LoginAppName,em=P[d].rowEightPlanDesc,eg=P[d].episodicPlanDesc,ey=P[d]["svg-filter"],ev=P[d].appTitle,eb=P[d].signinTitle,e_=P[d].aboutusTitle,ew=P[d].signinDescription,eS=P[d].aboutusDescription,ek=P[d].appTag,ex=P[d].supportLink,eE=P[d].custId,eT=P[d].custIdUMS,eA=P[d].websiteUrl,eC=P[d].appdeeplink,eP=P[d].isDeepLinkNeeded,eI=P[d].premiumLocksrc,eO=P[d].loginPathSrc,eN=P[d].noDataTextIcon,eD=P[d].noDataFoundNew,eR=P[d].rentConstructColor,eL=P[d].rentAbstructColor,eM=P[d].FooterImageLinks,ej=P[d].isNavLink,eB=P[d].letterbox_redirect,eU=P[d].companyName,eF=P[d].metaLogoOne,eH=P[d].metaLogoTwo,ez=P[d]["epg-primary-color"],e$=P[d]["epg-secondary-color"],eq=P[d]["epg-additional-color"],eW=P[d]["button-text-color"],eV=P[d].isSubmitYourFilm,eG=P[d].isSubmitParagraph,eK=P[d].genreSliderArrowNextImage,eZ=P[d].genreSliderArrowPrevImage,eY=P[d].smallButtonPlayIcon,eJ=P[d].submitYourFilmIcon,eX=P[d].submitYourFilmImg,eQ=P[d]["formbutton-text-color"],e0=P[d].accountPathSrc,e1=P[d].defaultUiConfig,e2=P[d].playButtonTextColor,e4=P[d].filterItemsWatchlist,e3=P[d].filterItemsLike,e6=P[d].filterItemsDislike,e5=P[d].sortItems,e8=P[d].channelName,e7=P[d].playButtonClass,e9=P[d]["playbox-text-color"],te=P[d].metaDescription,tt=P[d].liveRampUrl,tr=P[d].loggedUsercouponDescription,tn=P[d].signUpCouponDescription,ti=P[d].couponParagraph,to=P[d].couponHeadline,ta=P[d]["tag-primary-fontcolor"],ts=P[d]["tag-primary-backgroundColor"],tl=P[d]["tag-secondary-fontcolor"],tc=P[d]["tag-secondary-backgroundColor"],tu=P[d]["tag-tertiary-fontcolor"],td=P[d]["tag-bordercolor"],th=P[d]["tag-hoverColor"],tp=P[d].isSubscribValue,tf=P[d]["plancard-background-color"],tm=P[d]["sub-plancard-background-color"],tg=P[d].isMultiProfileActive,ty=P[d].isSubscribtionPayment,tv=P[d].accountDefaultIconImg,tb=P[d].accountHoverIconImg,t_=x,tw=P[d].isLetterBox,tS=P[d].websiteUrlDomain,tk=P[d].isSession,tx=P[d].subHeaderPlan,tE=P[d].isDove,tT=P[d].supportEmail,tA=P[d].isVisitPageOn,tC=P[d].isPixelEnabled,tP=P[d].FW_TAG_ID,tI=P[d].FW_COMMON_TAG_ID,tO=P[d].FW_SUBSCRIPTION_TAG_ID,tN=P[d].FW_ANNUAL_SUBSCRIPTION_TAG_ID,tD=P[d].FW_MONTHLY_SUBSCRIPTION_TAG_ID,tR=P[d].GA_CONVERSION_ID,tL=P[d].GA_ANNUAL_CONVERSION_ID,tM=P[d].GA_MONTHLY_CONVERSION_ID,tj=P[d].GA_SUBMIT_CONVERSION_ID,tB=P[d].GA_ANNUAL_SUCCESS_CONVERSION_ID,tU=P[d].GA_MONTHLY_SUCCESS_CONVERSION_ID,tF=P[d].GA_COMMON_CONVERSION_ID,tH=P[d].GA_VIDEO_START_CONVERSION_ID,tz=P[d].GA_GTAG_ID,t$=P[d].GA_VIDEO_END_CONVERSION_ID,tq=P[d].FB_PIXEL_ID,tW=P[d].isFreeWheelPixelEnabled,tV=P[d].isGooglePixelEnabled,tG=P[d].isGCPGAPixelEnabled,tK=P[d].isMetaPixelEnabled,tZ=P[d].GA_ADS_SITE_TAG,tY=P[d].FB_ADS_PIXEL_ID,tJ=P[d].TIKTOK_PIXEL_ID,tX=P[d].GA_SUBSCRIPTION_CONVERSION_ID,tQ=P[d].STACKADAPT_TAG_ID,t0=P[d].isliveMenuActive,t1=P[d].isCaptchaV3,t2=P[d
25].isGlobalPixelEnable,t4=P[d].isPurchaseDataLayerEnable,t3=12,t6="For a superior experience, browse via your desktop computer or download the mobile app. Mobile apps will be available on the Apple App Store and the Google Play Store starting September 15th onwards.",t5=3500,t8=P[d].oneTrustCDN,t7=P[d].oneTrustAutoBlockCDN,t9=P[d].oneTrustDataDomainScript,re=P[d].chromeCastId,rt=P[d].deepLinkinProtocol,rr=P[d].kochavaAppId,rn=P[d].isKochavaAppId,ri=P[d].metaLogo310_150,ro=P[d].metaLogo144_144,ra=P[d].metaLogo310_310,rs=P[d].metaLogo150_150,rl=P[d].metaLogo70_70,rc=P[d].recurly_public_key_demo,ru=P[d].recurly_public_key_stage,rd=P[d].recurly_public_key_production,rh=P[d].recurlyDomain_stage,rp=P[d].recurlyDomain_production,rf=P[d].recurlyDomain_demo,rm=P[d].addressDetailsforSubscription,rg=P[d].appId,ry=P[d].isGCaptcha,rv=P[d].plan_data_array_demo,rb=P[d].stage_plan_data,r_=P[d].production_plan_data,rw="stage",rS=m?"demo"==rw?rc:ru:rd,rk=m?"demo"==rw?"ewr1-DFWEv9r7kDN8GdG86FUd1j":ru:rd,rx=m?"demo"==rw?rf:rh:rp,rE=11,rT={1:"Registered",11:"Subscribed",5:"Expired",3:"HOLD"},rA=448,rC=252,rP=650,rI=448,rO=m?"demo"==rw?rv:rb:r_;function rN(e,t){let r="";switch(e){case"ios":r="https://support.apple.com/en-us/HT202039";break;case"android":case"googleplay":case"google":r="https://support.google.com/googleplay/answer/7018481?hl=en&co=GENIE.Platform%3DAndroid";break;case"roku":r="https://support.roku.com/en-gb/article/208756478";break;case"recurly":r=eA+"/account/#subscription";break;case"samsung":r="https://www.samsungcheckout.com/portal/support/cancellation.do";break;case"vizio":r="https://www.vizio.com/";break;default:r=""}return"ios"==e&&"ios"==t&&(r="itms-apps://apps.apple.com/account/subscriptions"),r}e.exports={isLogTable:K,isWallet:J,oneTrustCDN:t8,oneTrustAutoBlockCDN:t7,oneTrustDataDomainScript:t9,isRowEight:Y,letterbox_redirect:eB,channelPrimaryColor:en,backgroundColor:Z,tagPrimaryFontColor:ta,tagPrimaryBackgroundColor:ts,tagSecondaryFontColor:tl,tagSecondaryBackgroundColor:tc,tagTeritaryFontColor:tu,tagBorderColor:td,tagHoverColor:th,rentConstructColor:eR,rentAbstructColor:eL,appHighlightColor:ei,displayAppName:p,LoginAppName:ef,menuTextHoverColor:er,rowEightColor:ep,isStage:m,FooterImageLinks:eM,isNavLink:ej,isDropDown:Q,isCinesearch:X,isGridView:ee,isAutoPreView:et,findRedirectUrl:rN,channelLogo:es,kochavaAppId:rr,isKochavaAppId:rn,socialLinks:eu,metaLogoOne:eF,metaLogoTwo:eH,userSubscribed:rE,stripCardWidth:rA,stripCardHeight:rC,collectionCardHeight:rP,collectionCardWidth:rI,devType:C,deviceCode:v,deviceName:b,deviceNum:E,footerlogo:el,planStatus:T,appTitle:ev,appVer:s,pmode:l,appName:d,appTag:ek,cacheTimeout:t5,passwordLength:t3,custId:eE,recurly_public_key:rS,recurlyDomain:rx,plan_data_array:rO,supportLink:ex,appLink:ed,logoWidth:eo,logoHeight:ea,chromeCastId:re,dynamicAlertData:y,userSubTypes:rT,metaIcon310_150:ri,metaIcon144_144:ro,metaIcon310_310:ra,metaIcon150_150:rs,metaIcon70_70:rl,buttonTextColor:eW,mobNoti:t6,subscription_flag:rw,ipLocUrl:g,deviceCat:_,websiteUrl:eA,appdeeplink:eC,isDeepLinkNeeded:eP,svgFilter:ey,epgPrimaryColor:ez,epgSecondaryColor:e$,epgAdditionalColor:eq,companyName:eU,custIdUMS:eT,navMainMenu:ec,isSubmitYourFilm:eV,isSubmitParagraph:eG,genreSliderArrowNextImage:eK,genreSliderArrowPrevImage:eZ,premiumLocksrc:eI,loginPathSrc:eO,errorPageLink:eh,noDataTextIcon:eN,noDataFoundNew:eD,smallButtonPlayIcon:eY,submitYourFilmIcon:eJ,submitYourFilmImg:eX,formbuttonTextColor:eQ,accountPathSrc:e0,defaultUiConfig:e1,playButtonTextColor:e2,channelName:e8,playButtonClass:e7,addressDetailsforSubs:rm,playBoxTextColor:e9,rowEightPlanDesc:em,episodicPlanDesc:eg,metaDescription:te,loggedUsercouponDescription:tr,signUpCouponDescription:tn,couponParagraph:ti,couponHeadline:to,couponCodeLength:f,rent_recurly_public_key:rk,deepLinkinProtocol:rt,liveRampUrl:tt,isSubscribValue:tp,planCardBackgroundColor:tf,isMultiProfileActive:tg,isSubscribtionPayment:ty,accountDefaultIconImg:tv,accountHoverIconImg:tb,signinTitle:eb,signinDescription:ew,aboutusTitle:e_,aboutusDescription:eS,LetterBoxID:t_,isLetterBox:tw,appId:rg,websiteUrlDomain:tS,isSession:tk,filterItemsWatchlist:e4,filterItemsLike:e3,filterItemsDislike:e6,sortItems:e5,subHeaderPlan:tx,isDove:tE,stageCinesearchURL:S,liveCinesearchURL:k,subplanCardBckGrnd:tm,isGCaptcha:ry,isTivoOS:A,weblandingURL:U,isAboutUs:j,isRampupPlans:B,apiGetURL:F,supportEmail:tT,isVisitPageOn:tA,isPixelEnabled:tC,FW_TAG_ID:tP,FW_COMMON_TAG_ID:tI,FW_SUBSCRIPTION_TAG_ID:tO,FW_ANNUAL_SUBSCRIPTION_TAG_ID:tN,FW_MONTHLY_SUBSCRIPTION_TAG_ID:tD,GA_CONVERSION_ID:tR,GA_ANNUAL_CONVERSION_ID:tL,GA_MONTHLY_CONVERSION_ID:tM,GA_SUBMIT_CONVERSION_ID:tj,GA_ANNUAL_SUCCESS_CONVERSION_ID:tB,GA_MONTHLY_SUCCESS_CONVERSION_ID:tU,GA_COMMON_CONVERSION_ID:tF,GA_VIDEO_START_CONVERSION_ID:tH,GA_VIDEO_END_CONVERSION_ID:t$,GA_GTAG_ID:tz,FB_PIXEL_ID_NEW:tq,isFreeWheelPixelEnabled:tW,isGooglePixelEnabled:tV,isGCPGAPixelEnabled:tG,isMetaPixelEnabled:tK,isshop:M,issignupNew:L,GTM_ID:R,isDetail
25sKeywordEnabled:D,GA_ADS_SITE_TAG:tZ,FB_ADS_PIXEL_ID:tY,TIKTOK_PIXEL_ID:tJ,GA_SUBSCRIPTION_CONVERSION_ID:tX,STACKADAPT_TAG_ID:tQ,subscribePlansDesc:N,marketingDesc:O,isliveMenuActive:t0,isCaptchaV3:t1,needBackBtn:H,isGlobalPixelEnable:t2,isPurchaseDataLayerEnable:t4,isLoginAppName:I,isLogTableRegBackColor:z,isplaywatchbtnHover:$,appWiselogTable:h,needPlayerDeepLinkModal:q,needCroppedPromo:W,footerLogowidth:V,footerLogoheight:G}},85824:function(e,t,r){"use strict";r.d(t,{B:function(){return i},K:function(){return o}});var n=r(45312);let i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{void 0!==window.fbq&&n.FB_PIXEL_ID_NEW&&window.fbq(e,t,r)}catch(e){console.log(e)}},o=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{void 0!==window.fbq&&n.FB_ADS_PIXEL_ID&&window.fbq(e,t,r)}catch(e){console.log(e)}}},14919:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(45312);let i=(e,t)=>{try{let r=new Date().getTime(),i={LANDING_PAGE:n.FW_TAG_ID,ALL_PAGE:n.FW_COMMON_TAG_ID,SUBMIT_SUBSCRIPTION:n.FW_SUBSCRIPTION_TAG_ID,ANNUAL_SUBSCRIPTION:n.FW_ANNUAL_SUBSCRIPTION_TAG_ID,MONTHLY_SUBSCRIPTION:n.FW_MONTHLY_SUBSCRIPTION_TAG_ID}[e]||"",o="https://cnv.event.prod.bidr.io/log/cnv?tag_id=".concat(i,"&buzz_key=dsp&value=&segment_key=&account_id=144&order=").concat(t,"&ord=").concat(r),a=new Image;a.src=o,a.height=0,a.width=0,a.style.display="none",document.body.appendChild(a)}catch(e){console.log(e)}}},39115:function(e,t,r){"use strict";r.d(t,{BX:function(){return c},J1:function(){return s},LV:function(){return l},YO:function(){return d},go:function(){return u},hE:function(){return h},uU:function(){return a}});var n=r(45312),i=r(34155);let o="G-KSQC8KK9NS";i.env.NEXT_TRACKING_PIXEL,i.env.NEXT_PURCHASE_PIXEL;let a=()=>{try{if(n.GA_GTAG_ID){let t=document.createElement("script");function e(){window.dataLayer.push(arguments)}t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id=".concat(n.GA_GTAG_ID),document.head.appendChild(t),window.dataLayer=window.dataLayer||[],window.gtag=e,e("js",new Date),e("config",n.GA_GTAG_ID)}}catch(e){}},s=()=>{try{if(n.GA_ADS_SITE_TAG){let t=document.createElement("script");function e(){window.dataLayer.push(arguments)}t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id=".concat(n.GA_ADS_SITE_TAG),document.head.appendChild(t),window.dataLayer=window.dataLayer||[],window.gtag=e,e("js",new Date),e("config",n.GA_ADS_SITE_TAG)}}catch(e){}},l=e=>{try{!n.isStage&&o&&window.gtag("config",o,{page_path:e,page_title:"/"==e?"home page":e.replace("/","")+" page"})}catch(e){}},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;try{let i={Details:n.GA_CONVERSION_ID,YEARLY:n.GA_ANNUAL_CONVERSION_ID,MONTHLY:n.GA_MONTHLY_CONVERSION_ID,SUBMIT:n.GA_SUBMIT_CONVERSION_ID,ANNUAL_SUCCESS:n.GA_ANNUAL_SUCCESS_CONVERSION_ID,MONTHLY_SUCCESS:n.GA_MONTHLY_SUCCESS_CONVERSION_ID,COMMON:n.GA_COMMON_CONVERSION_ID,VIDEO_START:n.GA_VIDEO_START_CONVERSION_ID,VIDEO_END:n.GA_VIDEO_END_CONVERSION_ID}[r]||"";void 0!==window.gtag&&i&&window.gtag("event",e,{send_to:i,...t})}catch(e){}},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{void 0!==window.gtag&&n.GA_GTAG_ID&&window.gtag("event",e,{send_to:n.GA_GTAG_ID,...t})}catch(e){}},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;try{console.log(e,"eventName");let i={SUBSCRIPTION:n.GA_SUBSCRIPTION_CONVERSION_ID}[r]||"";console.log(i,"conversionId----"),void 0!==window.gtag&&i&&(console.log("hii i am here"),window.gtag("event",e,{send_to:i,...t}))}catch(e){}},h=e=>{console.log(e,"orderData value:-----");try{{let t=document.createElement("script");t.type="text/javascript",t.innerHTML="\n        window.dataLayer = window.dataLayer || [];\n        window.dataLayer.push({\n          'event': 'purchase_complete',\n          'orderMeta': {\n            'total': ".concat(e.total,",\n            'id': '").concat(e.id,"',\n            'quantity': ").concat(e.quantity,"\n          }\n        });\n      "),document.head.appendChild(t)}}catch(e){}}},11196:function(e,t,r){"use strict";r.d(t,{lJ:function(){return f}}),r(21379);var n=r(62842),i=r.n(n),o=r(45312),a=r(24931),s=r(34155);let l={providers:[{id:"letterboxd",name:"Letterboxd",clientId:s.env.CLIENT_ID,clientSecret:s.env.CLIENT_SECRET,type:"oauth",authorization:{url:o.LetterBoxID&&o.LetterBoxID.authorization_url,params:{scope:"oauth:refresh",response_type:"code"}},token:o.LetterBoxID&&o.LetterBoxID.token_url,userinfo:{url:o.LetterBoxID&&o.LetterBoxID.userInfo_url,async request(e){let{client:t,tokens:r}=e,n=await fetch(o.LetterBoxID&&o.LetterBoxID.userDetails_url,{headers:{Authorization:"Bearer ".concat(r.access_token)}});return await n.json()}},profile:e=>({id:e.member.id.toString(),name:e.member.username,email:e.member.username,image:e.member.id,role:"public"})},(0,a.Z)({id:"anonymous",name:"Guest",credentials:{username:{label:"Username",type:"text"},password:{label:"Password",type:"password"}},authorize:async e=>"guest"===e.username?{id:"guest",name:"Anonymous",role:"public"}:null})],secret:s.env.NEXTAUTH_SECRET,callbacks:{authorized(e){let{req:t,token:r}=e;return!!r},async signIn(e){let{user:t,account:r,profile:n,email:i,credentials:o}=e;return!0},async jwt(e){let{token:t,user:r,account:n}=e;return r&&(t.user=r),n&&(t.accessToken=n.access_token,t.refreshToken=n.refresh_token),t},async session(e){let{session:t,token:r}=e;return(null==r?void 0:r.user)&&(t.user=r.user),(null==r?void 0:r.accessToken)&&(t.accessToken=r.accessToken),(null==r?void 0:r.refreshToken)&&(t.refreshToken=r.refreshToken),t}}};i()(l);var c=r(42474),u=r.n(c);r(34155);let d=new Map,h=new Map;setInterval(()=>{let e=Date.now(),t=6e4;for(let[r,n]of d.entries()){let i=n.filter(r=>e-r<t);0===i.length?d.delete(r):d.set(r,i)}for(let[t,r]of h.entries()){let n=r.filter(t=>e-t<3e5);0===n.length?h.delete(t):h.set(t,n)}},3e5),r(34155);let p=()=>u().randomBytes(32).toString("hex"),f=()=>({sessionToken:p(),timestamp:Date.now()})},46013:function(e,t,r){"use strict";r.d(t,{P:function(){return s}});var n=r(42474),i=r.n(n);r(34155);let o=()=>"e85c33e2d7333ad30dce716633d3b775",a=e=>
25{try{let t=o(),r=i().createHmac("sha256",t);return r.update(e),r.digest("hex")}catch(t){return console.error("Error creating signature:",t),i().createHash("md5").update(e).digest("hex")}},s=(e,t,r)=>{if(!e||!t||!r)return console.warn("generateSimpleSecurityHeaders: Missing parameters, returning empty headers"),{};try{let n=Date.now(),i="".concat(t,":").concat(r,":").concat(n,":").concat(e),o=a(i);return{"x-session-token":e,"x-request-timestamp":n.toString(),"x-request-signature":o}}catch(e){return console.error("generateSimpleSecurityHeaders: Error:",e),{}}}},95639:function(e,t,r){"use strict";var n,i=r(64836);n={value:!0},t.Z=void 0;var o=i(r(33651)),a=r(85893);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},33651:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(95334)},14312:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(63366),i=r(87462),o=r(67294),a=r(90512),s=r(94780),l=r(77527),c=r(50375),u=r(80539),d=r(1588),h=r(34867);function p(e){return(0,h.ZP)("MuiBackdrop",e)}(0,d.Z)("MuiBackdrop",["root","invisible"]);var f=r(85893);let m=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=e=>{let{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,s.Z)(n,p,t)},y=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(e=>{let{ownerState:t}=e;return(0,i.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})});var v=o.forwardRef(function(e,t){var r,o,s;let l=(0,c.i)({props:e,name:"MuiBackdrop"}),{children:d,className:h,component:p="div",components:v={},componentsProps:b={},invisible:_=!1,open:w,slotProps:S={},slots:k={},TransitionComponent:x=u.Z,transitionDuration:E}=l,T=(0,n.Z)(l,m),A=(0,i.Z)({},l,{component:p,invisible:_}),C=g(A),P=null!=(r=S.root)?r:b.root;return(0,f.jsx)(x,(0,i.Z)({in:w,timeout:E},T,{children:(0,f.jsx)(y,(0,i.Z)({"aria-hidden":!0}
25,P,{as:null!=(o=null!=(s=k.root)?s:v.Root)?o:p,className:(0,a.Z)(C.root,h,null==P?void 0:P.className),ownerState:(0,i.Z)({},A,null==P?void 0:P.ownerState),classes:C,ref:t,children:d}))}))})},28425:function(e,t,r){"use strict";r.d(t,{Z:function(){return er}});var n=r(87462),i=r(63366),o=r(67294),a=r(90512),s=r(94780),l=r(77527),c=r(50375),u=r(7491),d=r(30403),h=r(79310),p=r(37340),f=r(97326),m=r(94578),g=r(220);function y(e,t){var r=function(e){return t&&(0,o.isValidElement)(e)?t(e):e},n=Object.create(null);return e&&o.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=r(e)}),n}function v(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];s[i[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}function b(e,t,r){return null!=r[t]?r[t]:e.props[t]}function _(e,t){return y(e.children,function(r){return(0,o.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:b(r,"appear",e),enter:b(r,"enter",e),exit:b(r,"exit",e)})})}function w(e,t,r){var n=y(e.children),i=v(t,n);
25return Object.keys(i).forEach(function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in n,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;c&&(!l||d)?i[a]=(0,o.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:b(s,"exit",e),enter:b(s,"enter",e)}):c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:r.bind(null,s),in:u.props.in,exit:b(s,"exit",e),enter:b(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1})}}),i}var S=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},k={component:"div",childFactory:function(e){return e}},x=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind((0,f.Z)(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,m.Z)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRen
25der?_(e,n):w(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=y(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,n.Z)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=(0,i.Z)(e,["component","childFactory"]),a=this.state.contextValue,s=S(this.state.children).map(r);return(delete n.appear,delete n.enter,delete n.exit,null===t)?o.createElement(g.Z.Provider,{value:a},s):o.createElement(g.Z.Provider,{value:a},o.createElement(t,n,s))},t}(o.Component);x.propTypes={},x.defaultProps=k;var E=x,T=r(70917),A=r(46271),C=r(85893),P=function(e){let{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,p]=o.useState(!1),f=(0,a.Z)(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:l,height:l,top:-(l/2)+s,left:-(l/2)+i},g=(0,a.Z)(r.child,h&&r.childLeaving,n&&r.childPulsate);return c||h||p(!0),o.useEffect(()=>{if(!c&&null!=u){let e=setTimeout(u,d);return()=>{clearTimeout(e)}}},[u,c,d]),(0,C.jsx)("span",{className:f,style:m,children:(0,C.jsx)("span",{className:g})})},I=r(1588),O=(0,I.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function N(){let e=(0,p._)(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"]);return N=function(){return e},e}function D(){let e=(0,p._)(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"]);return D=function(){return e},e}function R(){let e=(0,p._)(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"]);return R=function(){return e},e}function L(){let e=(0,p._)(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]);return L=function(){return e},e}let M=["center","classes","className"],j=e=>e,B,U,F,H,z=550,$=80,q=(0,T.F4)(B||(B=j(N()))),W=(0,T.F4)(U||(U=j(D()))),V=(0,T.F4)(F||(F=j(R()))),G=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),K=(0,l.ZP)(P,{name:"MuiTouchRipple",slot:"Ripple"})(H||(H=j(L(),0,0,0,0,0,0,0,0,0,0,0,0,0,0)),O.rippleVisible,q,z,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},O.ripplePulsate,e=>{let{theme:t}=e;return t.transitions.duration.shorter},O.child,O.childLeaving,W,z,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},O.childPulsate,V,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut});var Z=o.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=r,d=(0,i.Z)(r,M),[h,p]=o.useState([]),f=o.useRef(0),m=o.useRef(null);o.useEffect(()=>{m.current&&(m.current(),m.current=null)},[h]);let g=o.useRef(!1),y=(0,A.Z)(),v=o.useRef(null),b=o.useRef(null),_=o.useCallback(e=>{let{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:o}=e;p(e=>[...e,(0,C.jsx)(K,{classes:{ripple:(0,a.Z)(l.ripple,O.ripple),rippleVisible:(0,a.Z)(l.rippleVisible,O.rippleVisible),ripplePulsate:(0,a.Z)(l.ripplePulsate,O.ripplePulsate),child:(0,a.Z)(l.child,O.child),childLeaving:(0,a.Z)(l.childLeaving,O.childLeaving),childPulsate:(0,a.Z)(l.childPulsate,O.childPulsate)},timeout:z,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},f.current)]),f.current+=1,m.current=o},[l]),w=o.useCallback(function(){let e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:a=!1,center:l=s||i.pulsate,fakeElement:c=!1}=i;if((null==n?void 0:n.type)==="mousedown"&&g.current){g.current=!1;return}(null==n?void 0:n.type)==="touchstart"&&(g.current=!0);let u=c?null:b.current,d=u?u.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!l&&void 0!==n&&(0!==n.clientX||0!==n.clientY)&&(n.clientX||n.touches)){let{clientX:r,clientY:i}=n.touches&&n.touches.length>0?n.touches[0]:n;e=Math.round(r-d.left),t=Math.round(i-d.top)}else e=Math.round(d.width/2),t=Math.round(d.height/2);l?(r=Math.sqrt((2*d.width**2+d.height**2)/3))%2==0&&(r+=1):r=Math.sqrt((2*Math.max(Math.abs((u?u.clientWidth:0)-e),e)+2)**2+(2*Math.max(Math.abs((u?u.clientHeight:0)-t),t)+2)**2),null!=n&&n.touches?null===v.current&&(v.current=()=>{_({pulsate:a,rippleX:e,rippleY:t,rippleSize:r,cb:o})},y.start($,()=>{v.current&&(v.current(),v.current=null)})):_({pulsate:a,rippleX:e,rippleY:t,rippleSize:r,cb:o})},[s,_,y]),S=o.useCallback(()=>{w({},{pulsate:!0})},[w]),k=o.useCallback((e,t)=>{if(y.clear(),(null==e?void 0:e.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{k(e,t)});return}v.current=null,p(e=>e.length>0?e.slice(1):e),m.current=t},[y]);return o.useImperativeHandle(t,()=>({pulsate:S,start:w,stop:k}),[S,w,k]),(0,C.jsx)(G,(0,n.Z)({className:(0,a.Z)(O.root,l.root,u),ref:b},d,{children:(0,C.jsx)(E,{component:null,exit:!0,children:h})}))}),Y=r(34867);function J(e){return(0,Y.ZP)("MuiButtonBase",e)}var X=(0,I.Z)("MuiButtonBase",["root","disabled","focusVisible"]);let Q=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onF
25ocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ee=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,s.Z)(o,J,i);return r&&n&&(a.root+=" ".concat(n)),a},et=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(X.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var er=o.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiButtonBase"}),{action:s,centerRipple:l=!1,children:p,className:f,component:m="button",disabled:g=!1,disableRipple:y=!1,disableTouchRipple:v=!1,focusRipple:b=!1,LinkComponent:_="a",onBlur:w,onClick:S,onContextMenu:k,onDragLeave:x,onFocus:E,onFocusVisible:T,onKeyDown:A,onKeyUp:P,onMouseDown:I,onMouseLeave:O,onMouseUp:N,onTouchEnd:D,onTouchMove:R,onTouchStart:L,tabIndex:M=0,TouchRippleProps:j,touchRippleRef:B,type:U}=r,F=(0,i.Z)(r,Q),H=o.useRef(null),z=o.useRef(null),$=(0,u.Z)(z,B),{isFocusVisibleRef:q,onFocus:W,onBlur:V,ref:G}=(0,h.Z)(),[K,Y]=o.useState(!1);g&&K&&Y(!1),o.useImperativeHandle(s,()=>({focusVisible:()=>{Y(!0),H.current.focus()}}),[]);let[J,X]=o.useState(!1);o.useEffect(()=>{X(!0)},[]);let er=J&&!y&&!g;function en(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return(0,d.Z)(n=>(t&&t(n),!r&&z.current&&z.current[e](n),!0))}o.useEffect(()=>{K&&b&&!y&&J&&z.current.pulsate()},[y,b,K,J]);let ei=en("start",I),eo=en("stop",k),ea=en("stop",x),es=en("stop",N),el=en("stop",e=>{K&&e.preventDefault(),O&&O(e)}),ec=en("start",L),eu=en("stop",D),ed=en("stop",R),eh=en("stop",e=>{V(e),!1===q.current&&Y(!1),w&&w(e)},!1),ep=(0,d.Z)(e=>{H.current||(H.current=e.currentTarget),W(e),!0===q.current&&(Y(!0),T&&T(e)),E&&E(e)}),ef=()=>{let e=H.current;return m&&"button"!==m&&!("A"===e.tagName&&e.href)},em=o.useRef(!1),eg=(0,d.Z)(e=>{b&&!em.current&&K&&z.current&&" "===e.key&&(em.current=!0,z.current.stop(e,()=>{z.current.start(e)})),e.target===e.currentTarget&&ef()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&ef()&&"Enter"===e.key&&!g&&(e.preventDefault(),S&&S(e))}),ey=(0,d.Z)(e=>{b&&" "===e.key&&z.current&&K&&!e.defaultPrevented&&(em.current=!1,z.current.stop(e,()=>{z.current.pulsate(e)})),P&&P(e),S&&e.target===e.currentTarget&&ef()&&" "===e.key&&!e.defaultPrevented&&S(e)}),ev=m;"button"===ev&&(F.href||F.to)&&(ev=_);let eb={};"button"===ev?(eb.type=void 0===U?"button":U,eb.disabled=g):(F.href||F.to||(eb.role="button"),g&&(eb["aria-disabled"]=g));let e_=(0,u.Z)(t,G,H),ew=(0,n.Z)({},r,{centerRipple:l,component:m,disabled:g,disableRipple:y,disableTouchRipple:v,focusRipple:b,tabIndex:M,focusVisible:K}),eS=ee(ew);return(0,C.jsxs)(et,(0,n.Z)({as:ev,className:(0,a.Z)(eS.root,f),ownerState:ew,onBlur:eh,onClick:S,onContextMenu:eo,onFocus:ep,onKeyDown:eg,onKeyUp:ey,onMouseDown:ei,onMouseLeave:el,onMouseUp:es,onDragLeave:ea,onTouchEnd:eu,onTouchMove:ed,onTouchStart:ec,ref:e_,tabIndex:g?-1:M,type:U},eb,F,{children:[p,er?(0,C.jsx)(Z,(0,n.Z)({ref:$,center:l},j)):null]}))})},12166:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(63366),i=r(87462),o=r(67294),a=r(90512),s=r(94780),l=r(2101),c=r(87486),u=r(13077),d=r(85893),h=(0,u.Z)((0,d.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),p=(0,u.Z)((0,d.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=(0,u.Z)((0,d.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),m=r(66643),g=r(50375),y=r(77527),v=r(83
25008),b=r(1588),_=r(34867);function w(e){return(0,_.ZP)("MuiCheckbox",e)}var S=(0,b.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);let k=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],x=e=>{let{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate","color".concat((0,m.Z)(n)),"size".concat((0,m.Z)(o))]},l=(0,s.Z)(a,w,t);return(0,i.Z)({},t,l)},E=(0,y.ZP)(c.Z,{shouldForwardProp:e=>(0,v.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,m.Z)(r.size))],"default"!==r.color&&t["color".concat((0,m.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(S.checked,", &.").concat(S.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(S.disabled)]:{color:(t.vars||t).palette.action.disabled}})}),T=(0,d.jsx)(p,{}),A=(0,d.jsx)(h,{}),C=(0,d.jsx)(f,{});var P=o.forwardRef(function(e,t){var r,s;let l=(0,g.i)({props:e,name:"MuiCheckbox"}),{checkedIcon:c=T,color:u="primary",icon:h=A,indeterminate:p=!1,indeterminateIcon:f=C,inputProps:m,size:y="medium",className:v}=l,b=(0,n.Z)(l,k),_=p?f:h,w=p?f:c,S=(0,i.Z)({},l,{color:u,indeterminate:p,size:y}),P=x(S);return(0,d.jsx)(E,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":p},m),icon:o.cloneElement(_,{fontSize:null!=(r=_.props.fontSize)?r:y}),checkedIcon:o.cloneElement(w,{fontSize:null!=(s=w.props.fontSize)?s:y}),ownerState:S,ref:t,className:(0,a.Z)(P.root,v)},b,{classes:P}))})},50375:function(e,t,r){"use strict";r.d(t,{i:function(){return l}});var n=r(67294),i=r(35971);r(85893);let o=n.createContext(void 0);function a(e){let{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;let o=t.components[r];return o.defaultProps?(0,i.Z)(o.defaultProps,n):o.styleOverrides||o.variants?n:(0,i.Z)(o,n)}function s({props:e,name:t}){return a({props:e,name:t,theme:{components:n.useContext(o)}})}function l(e){return s(e)}},80539:function(e,t,r){"use strict";var n=r(87462),i=r(63366),o=r(67294),a=r(8662),s=r(18745),l=r(93232),c=r(7491),u=r(85893);let d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],h={entering:{opacity:1},entered:{opacity:1}},p=o.forwardRef(function(e,t){let r=(0,s.Z)(),p={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:f,appear:m=!0,children:g,easing:y,in:v,onEnter:b,onEntered:_,onEntering:w,onExit:S,onExited:k,onExiting:x,style:E,timeout:T=p,TransitionComponent:A=a.ZP}=e,C=(0,i.Z)(e,d),P=!0,I=o.useRef(null),O=(0,c.Z)(I,g.ref,t),N=e=>t=>{if(e){let r=I.current;void 0===t?e(r):e(r,t)}},D=N(w),R=N((e,t)=>{(0,l.n)(e);let n=(0,l.C)({style:E,timeout:T,easing:y},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),b&&b(e,t)}),L=N(_),M=N(x),j=N(e=>{let t=(0,l.C)({style:E,timeout:T,easing:y},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),S&&S(e)}),B=N(k),U=e=>{f&&f(I.current,e)};return(0,u.jsx)(A,(0,n.Z)({appear:m,in:v,nodeRef:P?I:void 0,onEnter:R,onEntered:L,onEntering:D,onExit:j,onExited:B,onExiting:M,addEndListener:U,timeout:T},C,{children:(e,t)=>o.cloneElement(g,(0,n.Z)({style:(0,n.Z)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},h[e],E,g.props.style),ref:O},t))}))});t.Z=p},92276:function(e,t,r){"use strict";let n=r(67294).createContext(void 0);t.Z=n},88962:function(e,t,r){"use strict";function n(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce((e,r)=>(e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e),{})}r.d(t,{Z:function(){return n}})},57280:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294),i=r(92276);function o(){return n.useContext(i.Z)}},68573:function(e,t,r){"use strict";r.d(t,{ZP:function(){return R}});var n=r(63366),i=r(87462),o=r(67294),a=r(90512),s=r(95408),l=r(39707),c=r(94780),u=r(77527),d=r(50375),h=r(18745),p=o.createContext(),f=r(1588),m=r(34867);function g(e){return(0,m.ZP)("MuiGrid",e)}let y=[0,1,2,3,4,5,6,7,8,9,10],v=["column-reverse","column","row-reverse","row"],b=["nowrap","wrap-reverse","wrap"],_=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var w=(0,f.Z)("MuiGrid",["root","container","item","zeroMinWidth",...y.map(e=>"spacing-xs-".concat(e)),...v.map(e=>"direction-xs-".concat(e)),...b.map(e=>"wrap-xs-".concat(e)),..._.map(e=>"grid-xs-".concat(e)),..._.map(e=>"grid-sm-".concat(e)),..._.map(e=>"grid-md-".concat(e)),..._.map(e=>"grid-lg-".concat(e)),..._.map(e=>"grid-xl-".concat(e))]),S=r(85893);let k=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function x(e){let t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function E(e){let t,{theme:r,ownerState:n}=e;return r.breakpoints.keys.reduce((e,o)=>{let a={};
25if(n[o]&&(t=n[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let l=(0,s.P$)({values:n.columns,breakpoints:r.breakpoints.values}),c="object"==typeof l?l[o]:l;if(null==c)return e;let u="".concat(Math.round(t/c*1e8)/1e6,"%"),d={};if(n.container&&n.item&&0!==n.columnSpacing){let e=r.spacing(n.columnSpacing);if("0px"!==e){let t="calc(".concat(u," + ").concat(x(e),")");d={flexBasis:t,maxWidth:t}}}a=(0,i.Z)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===r.breakpoints.values[o]?Object.assign(e,a):e[r.breakpoints.up(o)]=a,e},{})}function T(e){let{theme:t,ownerState:r}=e,n=(0,s.P$)({values:r.direction,breakpoints:t.breakpoints.values});return(0,s.k9)({theme:t},n,e=>{let t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(w.item)]={maxWidth:"none"}),t})}function A(e){let{breakpoints:t,values:r}=e,n="";Object.keys(r).forEach(e=>{""===n&&0!==r[e]&&(n=e)});let i=Object.keys(t).sort((e,r)=>t[e]-t[r]);return i.slice(0,i.indexOf(n))}function C(e){let{theme:t,ownerState:r}=e,{container:n,rowSpacing:i}=r,o={};if(n&&0!==i){let e;let r=(0,s.P$)({values:i,breakpoints:t.breakpoints.values});"object"==typeof r&&(e=A({breakpoints:t.breakpoints.values,values:r})),o=(0,s.k9)({theme:t},r,(r,n)=>{var i;let o=t.spacing(r);return"0px"!==o?{marginTop:"-".concat(x(o)),["& > .".concat(w.item)]:{paddingTop:x(o)}}:null!=(i=e)&&i.includes(n)?{}:{marginTop:0,["& > .".concat(w.item)]:{paddingTop:0}}})}return o}function P(e){let{theme:t,ownerState:r}=e,{container:n,columnSpacing:i}=r,o={};if(n&&0!==i){let e;let r=(0,s.P$)({values:i,breakpoints:t.breakpoints.values});"object"==typeof r&&(e=A({breakpoints:t.breakpoints.values,values:r})),o=(0,s.k9)({theme:t},r,(r,n)=>{var i;let o=t.spacing(r);return"0px"!==o?{width:"calc(100% + ".concat(x(o),")"),marginLeft:"-".concat(x(o)),["& > .".concat(w.item)]:{paddingLeft:x(o)}}:null!=(i=e)&&i.includes(n)?{}:{width:"100%",marginLeft:0,["& > .".concat(w.item)]:{paddingLeft:0}}})}return o}function I(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r["spacing-xs-".concat(String(e))]];let n=[];return t.forEach(t=>{let i=e[t];Number(i)>0&&n.push(r["spacing-".concat(t,"-").concat(String(i))])}),n}let O=(0,u.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{container:n,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=r,u=[];n&&(u=I(a,c,t));let d=[];return c.forEach(e=>{let n=r[e];n&&d.push(t["grid-".concat(e,"-").concat(String(n))])}),[t.root,n&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})(e=>{let{ownerState:t}=e;return(0,i.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})},T,C,P,E);function N(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-".concat(String(e))];let r=[];return t.forEach(t=>{let n=e[t];if(Number(n)>0){let e="spacing-".concat(t,"-").concat(String(n));r.push(e)}}),r}let D=e=>{let{classes:t,container:r,direction:n,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e,u=[];r&&(u=N(o,l));let d=[];l.forEach(t=>{let r=e[t];r&&d.push("grid-".concat(t,"-").concat(String(r)))});let h={root:["root",r&&"container",i&&"item",s&&"zeroMinWidth",...u,"row"!==n&&"direction-xs-".concat(String(n)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...d]};return(0,c.Z)(h,g,t)};var R=o.forwardRef(function(e,t){let r=(0,d.i)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,h.Z)(),c=(0,l.Z)(r),{className:u,columns:f,columnSpacing:m,component:g="div",container:y=!1,direction:v="row",item:b=!1,rowSpacing:_,spacing:w=0,wrap:x="wrap",zeroMinWidth:E=!1}=c,T=(0,n.Z)(c,k),A=_||w,C=m||w,P=o.useContext(p),I=y?f||12:P,N={},R=(0,i.Z)({},T);s.keys.forEach(e=>{null!=T[e]&&(N[e]=T[e],delete R[e])});let L=(0,i.Z)({},c,{columns:I,container:y,direction:v,item:b,rowSpacing:A,columnSpacing:C,wrap:x,zeroMinWidth:E,spacing:w},N,{breakpoints:s.keys}),M=D(L);return(0,S.jsx)(p.Provider,{value:I,children:(0,S.jsx)(O,(0,i.Z)({ownerState:L,className:(0,a.Z)(M.root,u),as:g,ref:t},R))})})},21640:function(e,t,r){"use strict";var n=r(87462),i=r(63366),o=r(67294),a=r(46271),s=r(8662),l=r(18745),c=r(93232),u=r(7491),d=r(85893);let h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return"scale(".concat(e,", ").concat(e**2,")")}let f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},m="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),g=o.forwardRef(function(e,t){let{addEndListener:r,appear:g=!0,children:y,easing:v,in:b,onEnter:_,onEntered:w,onEntering:S,onExit:k,onExited:x,onExiting:E,style:T,timeout:A="auto",TransitionComponent:C=s.ZP}=e,P=(0,i.Z)(e,h),I=(0,a.Z)(),O=o.useRef(),N=(0,l.Z)(),D=o.useRef(null),R=(0,u.Z)(D,y.ref,t),L=e=>t=>{if(e){let r=D.current;void 0===t?e(r):e(r,t)}},M=L(S),j=L((e,t)=>{let r;(0,c.n)(e);let{duration:n,delay:i,easing:o}=(0,c.C)({style:T,timeout:A,easing:v},{mode:"enter"});"auto"===A?(r=N.transitions.getAutoHeightDuration(e.clientHeight),O.current=r):r=n,e.style.transition=[N.transitions.create("opacity",{duration:r,delay:i}),N.transitions.create("transform",{duration:m?r:.666*r,delay:i,easing:o})].join(","),_&&_(e,t)}),B=L(w),U=L(E),F=L(e=>{let t;let{duration:r,delay:n,easing:i}=(0,c.C)({style:T,timeout:A,easing:v},{mode:"exit"});"auto"===A?(t=N.transitions.getAutoHeightDuration(e.clientHeight),O.current=t):t=r,e.style.transition=[N.transitions.create("opacity",{duration:t,delay:n}),N.transitions.create("transform",{duration:m?t:.666*t,delay:m?n:n||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=p(.75),k&&k(e)}),H=L(x),z=e=>{"auto"===A&&I.start(O.current||0,e),r&&r(D.current,e)};return(0,d.jsx)(C,(0,n.Z)({appear:g,in:b,nodeRef:D,onEnter:j,onEntered:B,onEntering:M,onExit:F,onExited:H,onExiting:U,addEndListener:z,timeout:"auto"===A?null:A},P,{children:(e,t)=>o.cloneElement(y,(0,n.Z)({style:(0,n.Z)({opacity:0,transform:p(.75),visibility:"exited"!==e||b?void 0:"hidden"},f[e],T,y.props.style),ref:R},t))}))});g.muiSupportAuto=!0,t.Z=g},82330:function(e,t,r){"use strict";function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}r.d(t,{B7:function(){return o},vd:function(){return i}})},93535:function(e,t,r){"use strict";r.d(t,{Z:function(){return K}});var n=r(63366),i=r(87462),o=r(67294),a=r(90512),s=r(94780),l=r(14662),c=r(33703),u=r(82690),d=r(85893);let h='input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])';function p(e){let t=parseInt(e.getAttribute("tabindex")||"",10);
25return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}function f(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}function m(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||f(e))}function g(e){let t=[],r=[];return Array.from(e.querySelectorAll(h)).forEach((e,n)=>{let i=p(e);-1!==i&&m(e)&&(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function y(){return!0}var v=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=g,isEnabled:s=y,open:l}=e,h=o.useRef(!1),p=o.useRef(null),f=o.useRef(null),m=o.useRef(null),v=o.useRef(null),b=o.useRef(!1),_=o.useRef(null),w=(0,c.Z)(t.ref,_),S=o.useRef(null);o.useEffect(()=>{l&&_.current&&(b.current=!r)},[r,l]),o.useEffect(()=>{if(!l||!_.current)return;let e=(0,u.Z)(_.current);return!_.current.contains(e.activeElement)&&(_.current.hasAttribute("tabIndex")||_.current.setAttribute("tabIndex","-1"),b.current&&_.current.focus()),()=>{i||(m.current&&m.current.focus&&(h.current=!0,m.current.focus()),m.current=null)}},[l]),o.useEffect(()=>{if(!l||!_.current)return;let e=(0,u.Z)(_.current),t=t=>{S.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===_.current&&t.shiftKey&&(h.current=!0,f.current&&f.current.focus())},r=()=>{let t=_.current;if(null===t)return;if(!e.hasFocus()||!s()||h.current){h.current=!1;return}if(t.contains(e.activeElement)||n&&e.activeElement!==p.current&&e.activeElement!==f.current)return;if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!b.current)return;let r=[];if((e.activeElement===p.current||e.activeElement===f.current)&&(r=a(_.current)),r.length>0){var i,o;let e=!!((null==(i=S.current)?void 0:i.shiftKey)&&(null==(o=S.current)?void 0:o.key)==="Tab"),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,i,s,l,a]);let k=e=>{null===m.current&&(m.current=e.relatedTarget),b.current=!0,v.current=e.target;let r=t.props.onFocus;r&&r(e)},x=e=>{null===m.current&&(m.current=e.relatedTarget),b.current=!0};return(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)("div",{tabIndex:l?0:-1,onFocus:x,ref:p,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:w,onFocus:k}),(0,d.jsx)("div",{tabIndex:l?0:-1,onFocus:x,ref:f,"data-testid":"sentinelEnd"})]})},b=r(75725),_=r(77527),w=r(50375),S=r(14312),k=r(59948),x=r(91476),E=r(99113),T=r(74161),A=r(29726);function C(e){let t=(0,u.Z)(e);return t.body===e?(0,T.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function P(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I(e){return parseInt((0,T.Z)(e).getComputedStyle(e).paddingRight,10)||0}function O(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}function N(e,t,r,n,i){let o=[t,r,...n];[].forEach.call(e.children,e=>{let t=-1===o.indexOf(e),r=!O(e);t&&r&&P(e,i)})}function D(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function R(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(C(n)){let e=(0,A.Z)((0,u.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(I(n)+e,"px");let t=(0,u.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(I(t)+e,"px")})}if(n.parentNode instanceof DocumentFragment)e=(0,u.Z)(n).body;else{let t=n.parentElement,r=(0,T.Z)(n);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>
25{r.forEach(e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)})}}function L(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}class M{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&P(e.modalRef,!1);let n=L(t);N(t,e.mount,e.modalRef,n,!0);let i=D(this.containers,e=>e.container===t);return -1!==i?this.containers[i].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=D(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=R(n,t))}remove(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;let n=D(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&P(e.modalRef,t),N(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&P(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}}function j(e){return"function"==typeof e?e():e}function B(e){return!!e&&e.props.hasOwnProperty("in")}let U=new M;var F=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=U,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:d,children:h,onClose:p,open:f,rootRef:m}=e,g=o.useRef({}),y=o.useRef(null),v=o.useRef(null),b=(0,c.Z)(v,m),[_,w]=o.useState(!f),S=B(h),T=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(T=!1);let A=()=>(0,u.Z)(y.current),C=()=>(g.current.modalRef=v.current,g.current.mount=y.current,g.current),I=()=>{a.mount(C(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},O=(0,k.Z)(()=>{let e=j(t)||A().body;a.add(C(),e),v.current&&I()}),N=o.useCallback(()=>a.isTopModal(C()),[a]),D=(0,k.Z)(e=>{y.current=e,e&&(f&&N()?I():v.current&&P(v.current,T))}),R=o.useCallback(()=>{a.remove(C(),T)},[T,a]);o.useEffect(()=>()=>{R()},[R]),o.useEffect(()=>{f?O():S&&s||R()},[f,R,S,s,O]);let L=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&N()&&!r&&(t.stopPropagation(),p&&p(t,"escapeKeyDown"))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&p&&p(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,E.Z)(e);delete r.onTransitionEnter,delete r.onTransitionExited;let n=(0,i.Z)({},r,t);return(0,i.Z)({role:"presentation"},n,{onKeyDown:L(n),ref:b})},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return(0,i.Z)({"aria-hidden":!0},t,{onClick:M(t),open:f})},getTransitionProps:()=>{let e=()=>{w(!1),l&&l()},t=()=>{w(!0),d&&d(),s&&R()};return{onEnter:(0,x.Z)(e,null==h?void 0:h.props.onEnter),onExited:(0,x.Z)(t,null==h?void 0:h.props.onExited)}},rootRef:b,portalRef:D,isTopModal:N,exited:_,hasTransition:S}},H=r(1588),z=r(34867);function $(e){return(0,z.ZP)("MuiModal",e)}(0,H.Z)("MuiModal",["root","hidden","backdrop"]);let q=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],W=e=>{let{open:t,exited:r,classes:n}=e,i={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,s.Z)(i,$,n)},V=(0,_.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(e=>{let{theme:t,ownerState:r}=e;return(0,i.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})}),G=(0,_.ZP)(S.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var K=o.forwardRef(function(e,t){var r,s,c,u,h,p;let f=(0,w.i)({name:"MuiModal",props:e}),{BackdropComponent:m=G,BackdropProps:g,className:y,closeAfterTransition:_=!1,children:S,container:k,component:x,components:E={},componentsProps:T={},disableAutoFocus:A=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:P=!1,disablePortal:I=!1,disableRestoreFocus:O=!1,disableScrollLock:N=!1,hideBackdrop:D=!1,keepMounted:R=!1,onBackdropClick:L,open:M,slotProps:j,slots:B}=f,U=(0,n.Z)(f,q),H=(0,i.Z)({},f,{closeAfterTransition:_,disableAutoFocus:A,disableEnforceFocus:C,disableEscapeKeyDown:P,disablePortal:I,disableRestoreFocus:O,disableScrollLock:N,hideBackdrop:D,keepMounted:R}),{getRootProps:z,getBackdropProps:$,getTransitionProps:K,portalRef:Z,isTopModal:Y,exited:J,hasTransition:X}=F((0,i.Z)({},H,{rootRef:t})),Q=(0,i.Z)({},H,{exited:J}),ee=W(Q),et={};if(void 0===S.props.tabIndex&&(et.tabIndex="-1"),X){let{onEnter:e,onExited:t}=K();et.onEnter=e,et.onExited=t}let er=null!=(r=null!=(s=null==B?void 0:B.root)?s:E.Root)?r:V,en=null!=(c=null!=(u=null==B?void 0:B.backdrop)?u:E.Backdrop)?c:m,ei=null!=(h=null==j?void 0:j.root)?h:T.root,eo=null!=(p=null==j?void 0:j.backdrop)?p:T.backdrop,ea=(0,l.Z)({elementType:er,externalSlotProps:ei,externalForwardedProps:U,getSlotProps:z,additionalProps:{ref:t,as:x}
25,ownerState:Q,className:(0,a.Z)(y,null==ei?void 0:ei.className,null==ee?void 0:ee.root,!Q.open&&Q.exited&&(null==ee?void 0:ee.hidden))}),es=(0,l.Z)({elementType:en,externalSlotProps:eo,additionalProps:g,getSlotProps:e=>$((0,i.Z)({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.Z)(null==eo?void 0:eo.className,null==g?void 0:g.className,null==ee?void 0:ee.backdrop),ownerState:Q});return R||M||X&&!J?(0,d.jsx)(b.Z,{ref:Z,container:k,disablePortal:I,children:(0,d.jsxs)(er,(0,i.Z)({},ea,{children:[!D&&m?(0,d.jsx)(en,(0,i.Z)({},es)):null,(0,d.jsx)(v,{disableEnforceFocus:C,disableAutoFocus:A,disableRestoreFocus:O,isEnabled:Y,open:M,children:o.cloneElement(S,et)})]}))}):null})},75725:function(e,t,r){"use strict";var n=r(67294),i=r(73935),o=r(33703),a=r(73546),s=r(27364),l=r(85893);function c(e){return"function"==typeof e?e():e}let u=n.forwardRef(function(e,t){let{children:r,container:u,disablePortal:d=!1}=e,[h,p]=n.useState(null),f=(0,o.Z)(n.isValidElement(r)?r.ref:null,t);if((0,a.Z)(()=>{d||p(c(u)||document.body)},[u,d]),(0,a.Z)(()=>{if(h&&!d)return(0,s.Z)(t,h),()=>{(0,s.Z)(t,null)}},[t,h,d]),d){if(n.isValidElement(r)){let e={ref:f};return n.cloneElement(r,e)}return(0,l.jsx)(n.Fragment,{children:r})}return(0,l.jsx)(n.Fragment,{children:h?i.createPortal(r,h):h})});t.Z=u},64347:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n=r(37340),i=r(63366),o=r(87462),a=r(67294),s=r(90512),l=r(70917),c=r(94780);function u(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d(e){return parseFloat(e)}var h=r(56535),p=r(7610);function f(e,t=0,r=1){return(0,p.Z)(e,t,r)}function m(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function g(e){let t;if(e.type)return e;if("#"===e.charAt(0))return g(m(e));let r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw Error((0,h.Z)(9,e));let i=e.substring(r+1,e.length-1);if("color"===n){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,h.Z)(10,t))}else i=i.split(",");return{type:n,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}function y(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function v(e,t){return e=g(e),t=f(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,y(e)}var b=r(77527),_=r(50375),w=r(1588),S=r(34867);function k(e){return(0,S.ZP)("MuiSkeleton",e)}(0,w.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var x=r(85893);function E(){let e=(0,n._)(["\n  0% {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0.4;\n  }\n\n  100% {\n    opacity: 1;\n  }\n"]);return E=function(){return e},e}function T(){let e=(0,n._)(["\n  0% {\n    transform: translateX(-100%);\n  }\n\n  50% {\n    /* +0.5s of delay between each loop */\n    transform: translateX(100%);\n  }\n\n  100% {\n    transform: translateX(100%);\n  }\n"]);return T=function(){return e},e}function A(){let e=(0,n._)(["\n      animation: "," 2s ease-in-out 0.5s infinite;\n    "]);return A=function(){return e},e}function C(){let e=(0,n._)(["\n      position: relative;\n      overflow: hidden;\n\n      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n      -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n      &::after {\n        animation: "," 2s linear 0.5s infinite;\n        background: linear-gradient(\n          90deg,\n          transparent,\n          ",",\n          transparent\n        );\n        content: '';\n        position: absolute;\n        transform: translateX(-100%); /* Avoid flash during server-side hydration */\n        bottom: 0;\n        left: 0;\n        right: 0;\n        top: 0;\n      }\n    "]);return C=function(){return e},e}let P=["animation","className","component","height","style","variant","width"],I=e=>e,O,N,D,R,L=e=>{let{classes:t,variant:r,animation:n,hasChildren:i,width:o,height:a}=e,s={root:["root",r,n,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]};return(0,c.Z)(s,k,t)},M=(0,l.F4)(O||(O=I(E()))),j=(0,l.F4)(N||(N=I(T()))),B=(0,b.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;
25return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(e=>{let{theme:t,ownerState:r}=e,n=u(t.shape.borderRadius)||"px",i=d(t.shape.borderRadius);return(0,o.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:v(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(i).concat(n,"/").concat(Math.round(i/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})},e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,l.iv)(D||(D=I(A(),0)),M)},e=>{let{ownerState:t,theme:r}=e;return"wave"===t.animation&&(0,l.iv)(R||(R=I(C(),0,0)),j,(r.vars||r).palette.action.hover)});var U=a.forwardRef(function(e,t){let r=(0,_.i)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:a,component:l="span",height:c,style:u,variant:d="text",width:h}=r,p=(0,i.Z)(r,P),f=(0,o.Z)({},r,{animation:n,component:l,variant:d,hasChildren:!!p.children}),m=L(f);return(0,x.jsx)(B,(0,o.Z)({as:l,ref:t,className:(0,s.Z)(m.root,a),ownerState:f},p,{style:(0,o.Z)({width:h,height:c},u)}))})},84169:function(e,t,r){"use strict";r.d(t,{Z:function(){return z}});var n=r(63366),i=r(87462),o=r(67294),a=r(90512),s=r(4953),l=r(34867),c=r(94780),u=r(39402),d=r(17172),h=r(86523);let p=["ownerState"],f=["variants"],m=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function g(e){return 0===Object.keys(e).length}function y(e){return"string"==typeof e&&e.charCodeAt(0)>96}function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let b=(0,d.Z)(),_=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function w({defaultTheme:e,theme:t,themeId:r}){return g(t)?e:t[r]||t}function S(e){return e?(t,r)=>r[e]:null}function k(e,t){let{ownerState:r}=t,o=(0,n.Z)(t,p),a="function"==typeof e?e((0,i.Z)({ownerState:r},o)):e;if(Array.isArray(a))return a.flatMap(e=>k(e,(0,i.Z)({ownerState:r},o)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){let{variants:e=[]}=a,t=(0,n.Z)(a,f);return e.forEach(e=>{let n=!0;"function"==typeof e.props?n=e.props((0,i.Z)({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(n=!1)}),n&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.Z)({ownerState:r},o,r)):e.style))}),t}return a}var x=function(e={}){let{themeId:t,defaultTheme:r=b,rootShouldForwardProp:o=v,slotShouldForwardProp:a=v}=e,l=e=>(0,h.Z)((0,i.Z)({},e,{theme:w((0,i.Z)({},e,{defaultTheme:r,themeId:t}))}));return l.__mui_systemSx=!0,(e,c={})=>{let d;(0,u.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:h,slot:p,skipVariantsResolver:f,skipSx:g,overridesResolver:b=S(_(p))}=c,x=(0,n.Z)(c,m),E=void 0!==f?f:p&&"Root"!==p&&"root"!==p||!1,T=g||!1,A=v;"Root"===p||"root"===p?A=o:p?A=a:y(e)&&(A=void 0);let C=(0,u.default)(e,(0,i.Z)({shouldForwardProp:A,label:d},x)),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.P)(e)?n=>k(e,(0,i.Z)({},n,{theme:w({theme:n.theme,defaultTheme:r,themeId:t})})):e,I=(n,...o)=>{let a=P(n),s=o?o.map(P):[];h&&b&&s.push(e=>{let n=w((0,i.Z)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[h]||!n.components[h].styleOverrides)return null;let o=n.components[h].styleOverrides,a={};return Object.entries(o).forEach(([t,r])=>{a[t]=k(r,(0,i.Z)({},e,{theme:n}))}),b(e,a)}),h&&!E&&s.push(e=>{var n;let o=w((0,i.Z)({},e,{defaultTheme:r,themeId:t}));return k({variants:null==o||null==(n=o.components)||null==(n=n[h])?void 0:n.variants},(0,i.Z)({},e,{theme:o}))}),T||s.push(l);let c=s.length-o.length;if(Array.isArray(n)&&c>0){let e=Array(c).fill("");(a=[...n,...e]).raw=[...n.raw,...e]}let u=C(a,...s);return e.muiName&&(u.muiName=e.muiName),u};return C.withConfig&&(I.withConfig=C.withConfig),I}}(),E=r(20539),T=r(96682);function A({props:e,name:t,defaultTheme:r,themeId:n}){let i=(0,T.Z)(r);return n&&(i=i[n]||i),(0,E.Z)({theme:i,name:t,props:e})}var C=r(39707),P=r(95408),I=r(98700),O=r(85893);let N=["component","direction","spacing","divider","children","className","useFlexGap"],D=(0,d.Z)(),R=x("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function L(e){return A({props:e,name:"MuiStack",defaultTheme:D})}
25function M(e,t){let r=o.Children.toArray(e).filter(Boolean);return r.reduce((e,n,i)=>(e.push(n),i<r.length-1&&e.push(o.cloneElement(t,{key:`separator-${i}`})),e),[])}let j=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],B=({ownerState:e,theme:t})=>{let r=(0,i.Z)({display:"flex",flexDirection:"column"},(0,P.k9)({theme:t},(0,P.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let n=(0,I.hB)(t),i=Object.keys(t.breakpoints.values).reduce((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t),{}),o=(0,P.P$)({values:e.direction,base:i}),a=(0,P.P$)({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach((e,t,r)=>{if(!o[e]){let n=t>0?o[r[t-1]]:"column";o[e]=n}});let l=(t,r)=>e.useFlexGap?{gap:(0,I.NA)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${j(r?o[r]:e.direction)}`]:(0,I.NA)(n,t)}};r=(0,s.Z)(r,(0,P.k9)({theme:t},a,l))}return(0,P.dt)(t.breakpoints,r)};function U(e={}){let{createStyledComponent:t=R,useThemeProps:r=L,componentName:s="MuiStack"}=e,u=()=>{let e={root:["root"]};return(0,c.Z)(e,e=>(0,l.ZP)(s,e),{})},d=t(B);return o.forwardRef(function(e,t){let o=r(e),s=(0,C.Z)(o),{component:l="div",direction:c="column",spacing:h=0,divider:p,children:f,className:m,useFlexGap:g=!1}=s,y=(0,n.Z)(s,N),v={direction:c,spacing:h,useFlexGap:g},b=u();return(0,O.jsx)(d,(0,i.Z)({as:l,ownerState:v,ref:t,className:(0,a.Z)(b.root,m)},y,{children:p?M(f,p):f}))})}var F=r(77527),H=r(50375),z=U({createStyledComponent:(0,F.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,H.i)({props:e,name:"MuiStack"})})},38497:function(e,t,r){"use strict";r.d(t,{Z:function(){return em}});var n=r(63366),i=r(87462),o=r(67294),a=r(90512),s=r(46271),l=r(94780),c=r(2101),u=r(82056),d=r(86542),h=r(77527),p=r(18745),f=r(50375),m=r(66643),g=r(21640),y=r(91070),v=r(33703),b=r(73546),_=r(82690),w=r(45704),S=r(82372),k=r(77421),x=r(36531),E=r(96333),T=r(62556),A={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];(0,T.Re)(i)&&(0,E.Z)(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});(0,T.Re)(n)&&(0,E.Z)(n)&&(Object.assign(n.style,o),Object.keys(i).forEac
25h(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},C=r(82122),P=r(68855),I=r(394),O=r(66896),N=r(19892),D=[S.Z,k.Z,x.Z,A,C.Z,P.Z,I.Z,O.Z,N.Z],R=(0,w.kZ)({defaultModifiers:D}),L=r(14662),M=r(75725),j=r(1588),B=r(34867);function U(e){return(0,B.ZP)("MuiPopper",e)}(0,j.Z)("MuiPopper",["root"]);var F=r(85893);let H=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],z=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function $(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function q(e){return"function"==typeof e?e():e}function W(e){return void 0!==e.nodeType}let V=e=>{let{classes:t}=e,r={root:["root"]};return(0,l.Z)(r,U,t)},G={},K=o.forwardRef(function(e,t){var r;let{anchorEl:a,children:s,direction:l,disablePortal:c,modifiers:u,open:d,placement:h,popperOptions:p,popperRef:f,slotProps:m={},slots:g={},TransitionProps:y}=e,_=(0,n.Z)(e,H),w=o.useRef(null),S=(0,v.Z)(w,t),k=o.useRef(null),x=(0,v.Z)(k,f),E=o.useRef(x);(0,b.Z)(()=>{E.current=x},[x]),o.useImperativeHandle(f,()=>k.current,[]);let T=$(h,l),[A,C]=o.useState(T),[P,I]=o.useState(q(a));o.useEffect(()=>{k.current&&k.current.forceUpdate()}),o.useEffect(()=>{a&&I(q(a))},[a]),(0,b.Z)(()=>{if(!P||!d)return;let e=e=>{C(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:t=>{let{state:r}=t;e(r)}}];null!=u&&(t=t.concat(u)),p&&null!=p.modifiers&&(t=t.concat(p.modifiers));let r=R(P,w.current,(0,i.Z)({placement:T},p,{modifiers:t}));return E.current(r),()=>{r.destroy(),E.current(null)}},[P,c,u,d,p,T]);let O={placement:A};null!==y&&(O.TransitionProps=y);let N=V(e),D=null!=(r=g.root)?r:"div",M=(0,L.Z)({elementType:D,externalSlotProps:m.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:N.root});return(0,F.jsx)(D,(0,i.Z)({},M,{children:"function"==typeof s?s(O):s}))});var Z=o.forwardRef(function(e,t){let r;let{anchorEl:a,children:s,container:l,direction:c="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:h,open:p,placement:f="bottom",popperOptions:m=G,popperRef:g,style:y,transition:v=!1,slotProps:b={},slots:w={}}=e,S=(0,n.Z)(e,z),[k,x]=o.useState(!0),E=()=>{x(!1)},T=()=>{x(!0)};if(!d&&!p&&(!v||k))return null;if(l)r=l;else if(a){let e=q(a);r=e&&W(e)?(0,_.Z)(e).body:(0,_.Z)(null).body}let A=!p&&d&&(!v||k)?"none":void 0,C=v?{in:p,onEnter:E,onExited:T}:void 0;return(0,F.jsx)(M.Z,{disablePortal:u,container:r,children:(0,F.jsx)(K,(0,i.Z)({anchorEl:a,direction:c,disablePortal:u,modifiers:h,ref:t,open:v?!k:p,placement:f,popperOptions:m,popperRef:g,slotProps:b,slots:w},S,{style:(0,i.Z)({position:"fixed",top:0,left:0,display:A},y),TransitionProps:C,children:s}))})});let Y=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],J=(0,h.ZP)(Z,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({});var X=o.forwardRef(function(e,t){var r;let o=(0,y.Z)(),a=(0,f.i)({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:d,disablePortal:h,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:_,transition:w,slots:S,slotProps:k}=a,x=(0,n.Z)(a,Y),E=null!=(r=null==S?void 0:S.root)?r:null==c?void 0:c.Root,T=(0,i.Z)({anchorEl:s,container:d,disablePortal:h,keepMounted:p,modifiers:m,open:g,placement:v,popperOptions:b,popperRef:_,transition:w},x);return(0,F.jsx)(J,(0,i.Z)({as:l,direction:null==o?void 0:o.direction,slots:{root:E},slotProps:null!=k?k:u},T,{ref:t}))}),Q=r(30403),ee=r(7491),et=r(42783),er=r(79310),en=r(95416),ei=r(40423);let eo=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","
25slotProps","slots","title","TransitionComponent","TransitionProps"];function ea(e){return Math.round(1e5*e)/1e5}let es=e=>{let{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,m.Z)(o.split("-")[0]))],arrow:["arrow"]};return(0,l.Z)(a,ei.Q,t)},el=(0,h.ZP)(X,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(e=>{let{theme:t,ownerState:r,open:n}=e;return(0,i.Z)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(ei.Z.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(ei.Z.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(ei.Z.arrow)]:(0,i.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(ei.Z.arrow)]:(0,i.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})}),ec=(0,h.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,m.Z)(r.placement.split("-")[0]))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,i.Z)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,c.Fq)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(ea(16/14),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(ei.Z.popper,'[data-popper-placement*="left"] &')]:(0,i.Z)({transformOrigin:"right center"},r.isRtl?(0,i.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,i.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[".".concat(ei.Z.popper,'[data-popper-placement*="right"] &')]:(0,i.Z)({transformOrigin:"left center"},r.isRtl?(0,i.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,i.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[".".concat(ei.Z.popper,'[data-popper-placement*="top"] &')]:(0,i.Z)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[".".concat(ei.Z.popper,'[data-popper-placement*="bottom"] &')]:(0,i.Z)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})})}),eu=(0,h.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,c.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),ed=!1,eh=new s.V,ep={x:0,y:0};function ef(e,t){return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];t&&t(r,...i),e(r,...i)}}var em=o.forwardRef(function(e,t){var r,l,c,h,m,y,v,b,_,w,S,k,x,E,T,A,C,P,I;let O=(0,f.i)({props:e,name:"MuiTooltip"}),{arrow:N=!1,children:D,components:R={},componentsProps:L={},describeChild:M=!1,disableFocusListener:j=!1,disableHoverListener:B=!1,disableInteractive:U=!1,disableTouchListener:H=!1,enterDelay:z=100,enterNextDelay:$=0,enterTouchDelay:q=700,followCursor:W=!1,id:V,leaveDelay:G=0,leaveTouchDelay:K=1500,onClose:Z,onOpen:Y,open:J,placement:ei="bottom",PopperComponent:ea,PopperProps:em={},slotProps:eg={},slots:ey={},title:ev,TransitionComponent:eb=g.Z,TransitionProps:e_}=O,ew=(0,n.Z)(O,eo),eS=o.isValidElement(D)?D:(0,F.jsx)("span",{children:D}),ek=(0,p.Z)(),ex=(0,u.V)(),[eE,eT]=o.useState(),[eA,eC]=o.useState(null),eP=o.useRef(!1),eI=U||W,eO=(0,s.Z)(),eN=(0,s.Z)(),eD=(0,s.Z)(),eR=(0,s.Z)(),[eL,eM]=(0,en.Z)({controlled:J,default:!1,name:"Tooltip",state:"open"}),ej=eL,eB=(0,et.Z)(V),eU=o.useRef(),eF=(0,Q.Z)(()=>{void 0!==eU.current&&(document.body.style.WebkitUserSelect=eU.current,eU.current=void 0),eR.clear()});o.useEffect(()=>eF,[eF]);let eH=e=>{eh.clear(),ed=!0,eM(!0),Y&&!ej&&Y(e)},ez=(0,Q.Z)(e=>{eh.start(800+G,()=>{ed=!1}),eM(!1),Z&&ej&&Z(e),eO.start(ek.transitions.duration.shortest,()=>{eP.current=!1})}),e$=e=>{eP.current&&"touchstart"!==e.type||(eE&&eE.removeAttribute("title"),eN.clear(),eD.clear(),z||ed&&$?eN.start(ed?$:z,()=>{eH(e)}):eH(e))},eq=e=>{eN.clear(),eD.start(G,()=>{ez(e)})},{isFocusVisibleRef:eW,onBlur:eV,onFocus:eG,ref:eK}
25=(0,er.Z)(),[,eZ]=o.useState(!1),eY=e=>{eV(e),!1===eW.current&&(eZ(!1),eq(e))},eJ=e=>{eE||eT(e.currentTarget),eG(e),!0===eW.current&&(eZ(!0),e$(e))},eX=e=>{eP.current=!0;let t=eS.props;t.onTouchStart&&t.onTouchStart(e)},eQ=e=>{eX(e),eD.clear(),eO.clear(),eF(),eU.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eR.start(q,()=>{document.body.style.WebkitUserSelect=eU.current,e$(e)})},e0=e=>{eS.props.onTouchEnd&&eS.props.onTouchEnd(e),eF(),eD.start(K,()=>{ez(e)})};o.useEffect(()=>{if(ej)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&ez(e)}},[ez,ej]);let e1=(0,ee.Z)(eS.ref,eK,eT,t);ev||0===ev||(ej=!1);let e2=o.useRef(),e4=e=>{let t=eS.props;t.onMouseMove&&t.onMouseMove(e),ep={x:e.clientX,y:e.clientY},e2.current&&e2.current.update()},e3={},e6="string"==typeof ev;M?(e3.title=ej||!e6||B?null:ev,e3["aria-describedby"]=ej?eB:null):(e3["aria-label"]=e6?ev:null,e3["aria-labelledby"]=ej&&!e6?eB:null);let e5=(0,i.Z)({},e3,ew,eS.props,{className:(0,a.Z)(ew.className,eS.props.className),onTouchStart:eX,ref:e1},W?{onMouseMove:e4}:{}),e8={};H||(e5.onTouchStart=eQ,e5.onTouchEnd=e0),B||(e5.onMouseOver=ef(e$,e5.onMouseOver),e5.onMouseLeave=ef(eq,e5.onMouseLeave),eI||(e8.onMouseOver=e$,e8.onMouseLeave=eq)),j||(e5.onFocus=ef(eJ,e5.onFocus),e5.onBlur=ef(eY,e5.onBlur),eI||(e8.onFocus=eJ,e8.onBlur=eY));let e7=o.useMemo(()=>{var e;let t=[{name:"arrow",enabled:!!eA,options:{element:eA,padding:4}}];return null!=(e=em.popperOptions)&&e.modifiers&&(t=t.concat(em.popperOptions.modifiers)),(0,i.Z)({},em.popperOptions,{modifiers:t})},[eA,em]),e9=(0,i.Z)({},O,{isRtl:ex,arrow:N,disableInteractive:eI,placement:ei,PopperComponentProp:ea,touch:eP.current}),te=es(e9),tt=null!=(r=null!=(l=ey.popper)?l:R.Popper)?r:el,tr=null!=(c=null!=(h=null!=(m=ey.transition)?m:R.Transition)?h:eb)?c:g.Z,tn=null!=(y=null!=(v=ey.tooltip)?v:R.Tooltip)?y:ec,ti=null!=(b=null!=(_=ey.arrow)?_:R.Arrow)?b:eu,to=(0,d.Z)(tt,(0,i.Z)({},em,null!=(w=eg.popper)?w:L.popper,{className:(0,a.Z)(te.popper,null==em?void 0:em.className,null==(S=null!=(k=eg.popper)?k:L.popper)?void 0:S.className)}),e9),ta=(0,d.Z)(tr,(0,i.Z)({},e_,null!=(x=eg.transition)?x:L.transition),e9),ts=(0,d.Z)(tn,(0,i.Z)({},null!=(E=eg.tooltip)?E:L.tooltip,{className:(0,a.Z)(te.tooltip,null==(T=null!=(A=eg.tooltip)?A:L.tooltip)?void 0:T.className)}),e9),tl=(0,d.Z)(ti,(0,i.Z)({},null!=(C=eg.arrow)?C:L.arrow,{className:(0,a.Z)(te.arrow,null==(P=null!=(I=eg.arrow)?I:L.arrow)?void 0:P.className)}),e9);return(0,F.jsxs)(o.Fragment,{children:[o.cloneElement(eS,e5),(0,F.jsx)(tt,(0,i.Z)({as:null!=ea?ea:X,placement:ei,anchorEl:W?{getBoundingClientRect:()=>({top:ep.y,left:ep.x,right:ep.x,bottom:ep.y,width:0,height:0})}:eE,popperRef:e2,open:!!eE&&ej,id:eB,transition:!0},e8,to,{popperOptions:e7,children:e=>{let{TransitionProps:t}=e;return(0,F.jsx)(tr,(0,i.Z)({timeout:ek.transitions.duration.shorter},t,ta,{children:(0,F.jsxs)(tn,(0,i.Z)({},ts,{children:[ev,N?(0,F.jsx)(ti,(0,i.Z)({},tl,{ref:eC})):null]}))}))}}))]})})},40423:function(e,t,r){"use strict";r.d(t,{Q:function(){return o}});var n=r(1588),i=r(34867);function o(e){return(0,i.ZP)("MuiTooltip",e)}let a=(0,n.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);t.Z=a},35591:function(e,t){"use strict";let r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};t.Z=r},87486:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(63366),i=r(87462),o=r(67294),a=r(90512),s=r(94780),l=r(66643),c=r(77527),u=r(83008),d=r(95416),h=r(57280),p=r(28425),f=r(1588),m=r(34867);function g(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,f.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var y=r(85893);let v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=e=>{let{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&"edge".concat((0,l.Z)(i))],input:["input"]};return(0,s.Z)(o,g,t)},_=(0,c.ZP)(p.Z)(e=>{let{ownerState:t}=e;return(0,i.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})}),w=(0,c.ZP)("input",{shouldForwardProp:u.Z}
25)({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var S=o.forwardRef(function(e,t){let{autoFocus:r,checked:o,checkedIcon:s,className:l,defaultChecked:c,disabled:u,disableFocusRipple:p=!1,edge:f=!1,icon:m,id:g,inputProps:S,inputRef:k,name:x,onBlur:E,onChange:T,onFocus:A,readOnly:C,required:P=!1,tabIndex:I,type:O,value:N}=e,D=(0,n.Z)(e,v),[R,L]=(0,d.Z)({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),M=(0,h.Z)(),j=e=>{A&&A(e),M&&M.onFocus&&M.onFocus(e)},B=e=>{E&&E(e),M&&M.onBlur&&M.onBlur(e)},U=e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;L(t),T&&T(e,t)},F=u;M&&void 0===F&&(F=M.disabled);let H="checkbox"===O||"radio"===O,z=(0,i.Z)({},e,{checked:R,disabled:F,disableFocusRipple:p,edge:f}),$=b(z);return(0,y.jsxs)(_,(0,i.Z)({component:"span",className:(0,a.Z)($.root,l),centerRipple:!0,focusRipple:!p,disabled:F,tabIndex:null,role:void 0,onFocus:j,onBlur:B,ownerState:z,ref:t},D,{children:[(0,y.jsx)(w,(0,i.Z)({autoFocus:r,checked:o,defaultChecked:c,className:$.input,disabled:F,id:H?g:void 0,name:x,onChange:U,readOnly:C,ref:k,required:P,ownerState:z,tabIndex:I,type:O},"checkbox"===O&&void 0===N?{}:{value:N},S)),R?s:m]}))})},5916:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(87462),i=r(63366),o=r(56535),a=r(4953),s=r(44920),l=r(86523),c=r(17172);function u(e,t){return(0,n.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var d=r(2101),h={black:"#000",white:"#fff"},p=r(35591),f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let _=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:h.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,r,n){let i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,d.$n)(e.main,i):"dark"===t&&(e.dark=(0,d._j)(e.main,o)))}function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";
25return"dark"===e?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}function I(e){let{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,l=(0,i.Z)(e,_),c=e.primary||x(t),u=e.secondary||E(t),f=e.error||T(t),m=e.info||A(t),g=e.success||C(t),y=e.warning||P(t);function v(e){return(0,d.mi)(e,S.text.primary)>=r?S.text.primary:w.text.primary}let b=e=>{let{color:t,name:r,mainShade:i=500,lightShade:a=300,darkShade:l=700}=e;if(!(t=(0,n.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw Error((0,o.Z)(11,r?" (".concat(r,")"):"",i));if("string"!=typeof t.main)throw Error((0,o.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return k(t,"light",a,s),k(t,"dark",l,s),t.contrastText||(t.contrastText=v(t.main)),t},I={dark:S,light:w};return(0,a.Z)((0,n.Z)({common:(0,n.Z)({},h),mode:t,primary:b({color:c,name:"primary"}),secondary:b({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:f,name:"error"}),warning:b({color:y,name:"warning"}),info:b({color:m,name:"info"}),success:b({color:g,name:"success"}),grey:p.Z,contrastThreshold:r,getContrastText:v,augmentColor:b,tonalOffset:s},I[t]),l)}let O=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function N(e){return Math.round(1e5*e)/1e5}let D={textTransform:"uppercase"},R='"Roboto", "Helvetica", "Arial", sans-serif';function L(e,t){let r="function"==typeof t?t(e):t,{fontFamily:o=R,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=r,m=(0,i.Z)(r,O),g=s/14,y=f||(e=>"".concat(e/h*g,"rem")),v=(e,t,r,i,a)=>(0,n.Z)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:r},o===R?{letterSpacing:"".concat(N(i/t),"em")}:{},a,p),b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,D),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,D),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,n.Z)({htmlFontSize:h,pxToRem:y,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}let M=.2,j=.14,B=.12;function U(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(M,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(j,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(B,")")].join(",")}var F=["none",U(0,2,1,-1,0,1,1,0,0,1,3,0),U(0,3,1,-2,0,2,2,0,0,1,5,0),U(0,3,3,-2,0,3,4,0,0,1,8,0),U(0,2,4,-1,0,4,5,0,0,1,10,0),U(0,3,5,-1,0,5,8,0,0,1,14,0),U(0,3,5,-1,0,6,10,0,0,1,18,0),U(0,4,5,-2,0,7,10,1,0,2,16,1),U(0,5,5,-3,0,8,10,1,0,3,14,2),U(0,5,6,-3,0,9,12,1,0,3,16,2),U(0,6,6,-3,0,10,14,1,0,4,18,3),U(0,6,7,-4,0,11,15,1,0,4,20,3),U(0,7,8,-4,0,12,17,2,0,5,22,4),U(0,7,8,-4,0,13,19,2,0,5,24,4),U(0,7,9,-4,0,14,21,2,0,5,26,4),U(0,8,9,-5,0,15,22,2,0,6,28,5),U(0,8,10,-5,0,16,24,2,0,6,30,5),U(0,8,11,-5,0,17,26,2,0,6,32,5),U(0,9,11,-5,0,18,28,2,0,7,34,6),U(0,9,12,-6,0,19,29,2,0,7,36,6
25),U(0,10,13,-6,0,20,31,3,0,8,38,7),U(0,10,13,-6,0,21,33,3,0,8,40,7),U(0,10,14,-6,0,22,35,3,0,8,42,7),U(0,11,14,-7,0,23,36,3,0,9,44,8),U(0,11,15,-7,0,24,38,3,0,9,46,8)];let H=["duration","easing","delay"],z={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function q(e){return"".concat(Math.round(e),"ms")}function W(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function V(e){let t=(0,n.Z)({},z,e.easing),r=(0,n.Z)({},$,e.duration),o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:o=r.standard,easing:a=t.easeInOut,delay:s=0}=n;return(0,i.Z)(n,H),(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof o?o:q(o)," ").concat(a," ").concat("string"==typeof s?s:q(s))).join(",")};return(0,n.Z)({getAutoHeightDuration:W,create:o},e,{easing:t,duration:r})}var G={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let K=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,r=Array(t>1?t-1:0),d=1;d<t;d++)r[d-1]=arguments[d];let{mixins:h={},palette:p={},transitions:f={},typography:m={}}=e,g=(0,i.Z)(e,K);if(e.vars)throw Error((0,o.Z)(18));let y=I(p),v=(0,c.Z)(e),b=(0,a.Z)(v,{mixins:u(v.breakpoints,h),palette:y,shadows:F.slice(),typography:L(y,m),transitions:V(f),zIndex:(0,n.Z)({},G)});return b=(0,a.Z)(b,g),(b=r.reduce((e,t)=>(0,a.Z)(e,t),b)).unstable_sxConfig=(0,n.Z)({},s.Z,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},b}},98251:function(e,t,r){"use strict";let n=(0,r(5916).Z)();t.Z=n},88439:function(e,t){"use strict";t.Z="$$material"},83008:function(e,t,r){"use strict";var n=r(43094);let i=e=>(0,n.Z)(e)&&"classes"!==e;t.Z=i},43094:function(e,t){"use strict";function r(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}t.Z=r},77527:function(e,t,r){"use strict";var n=r(58128),i=r(98251),o=r(88439),a=r(83008);let s=(0,n.ZP)({themeId:o.Z,defaultTheme:i.Z,rootShouldForwardProp:a.Z});t.ZP=s},18745:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}}),r(67294);var n=r(96682),i=r(98251),o=r(88439);function a(){let e=(0,n.Z)(i.Z);return e[o.Z]||e}},93232:function(e,t,r){"use strict";r.d(t,{C:function(){return i},n:function(){return n}});let n=e=>e.scrollTop;function i(e,t){var r,n;let{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof i?i:i[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}},66643:function(e,t,r){"use strict";var n=r(14142);t.Z=n.Z},66048:function(e,t,r){"use strict";var n=r(91476);t.Z=n.Z},13077:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(87462),i=r(67294),o=r(63366),a=r(90512),s=r(94780),l=r(66643),c=r(50375),u=r(77527),d=r(1588),h=r(34867);function p(e){return(0,h.ZP)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=r(85893);let m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=e=>{let{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(r))]};return(0,s.Z)(i,p,n)},y=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.Z)(r.color))],t["fontSize".concat((0,l.Z)(r.fontSize))]]}})(e=>{var t,r,n,i,o,a,s,l,c,u,d,h,p;let{theme:f,ownerState:m}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:m.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=f.transitions)||null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(n=f.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:({inherit:"inherit",small:(null==(i=f.typography)||null==(o=i.pxToRem)?void 0:o.call(i,20))||"1.25rem",medium:(null==(a=f.typography)||null==(s=a.pxToRem)?void 0:s.call(a,24))||"1.5rem",large:(null==(l=f.typography)||null==(c=l.pxToRem)?void 0:c.call(l,35))||"2.1875rem"})[m.fontSize],color:null!=(u=null==(d=(f.vars||f).palette)||null==(d=d[m.color])?void 0:d.main)?u:({action:null==(h=(f.vars||f).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(f.vars||f).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0})[m.color]}}),v=i.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:u="inherit",component:d="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:v=!1,titleAccess:b,viewBox:_="0 0 24 24"}=r,w=(0,o.Z)(r,m),S=i.isValidElement(s)&&"svg"===s.type,k=(0,n.Z)({},r,{color:u,component:d,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:v,viewBox:_,hasSvgAsChild:S}),x={};
25v||(x.viewBox=_);let E=g(k);return(0,f.jsxs)(y,(0,n.Z)({as:d,className:(0,a.Z)(E.root,l),focusable:"false",color:p,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t},x,w,S&&s.props,{ownerState:k,children:[S?s.props.children:s,b?(0,f.jsx)("title",{children:b}):null]}))});v.muiName="SvgIcon";var b=v;function _(e,t){function r(r,i){return(0,f.jsx)(b,(0,n.Z)({"data-testid":"".concat(t,"Icon"),ref:i},r,{children:e}))}return r.muiName=b.muiName,i.memo(i.forwardRef(r))}},27876:function(e,t,r){"use strict";var n=r(39336);t.Z=n.Z},95334:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return a.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return h},setRef:function(){return p},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return f.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return g},useControlled:function(){return y.Z},useEventCallback:function(){return v.Z},useForkRef:function(){return b.Z},useIsFocusVisible:function(){return _.Z}});var n=r(37078),i=r(66643),o=r(66048),a=r(13077),s=r(27876),l=function(e,t){return()=>null},c=r(38372),u=r(83772),d=r(51520);r(87462);var h=function(e,t){return()=>null},p=r(27364).Z,f=r(27229),m=r(42783),g=function(e,t,r,n,i){return null},y=r(95416),v=r(30403),b=r(7491),_=r(79310);let w={configure:e=>{n.Z.configure(e)}}},38372:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),i=function(e,t){var r,i;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},83772:function(e,t,r){"use strict";var n=r(82690);t.Z=n.Z},51520:function(e,t,r){"use strict";var n=r(74161);t.Z=n.Z},95416:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),i=function({controlled:e,default:t,name:r,state:i="value"}){let{current:o}=n.useRef(void 0!==e),[a,s]=n.useState(t);return[o?e:a,n.useCallback(e=>{o||s(e)},[])]}},27229:function(e,t,r){"use strict";var n=r(73546);t.Z=n.Z},30403:function(e,t,r){"use strict";var n=r(59948);t.Z=n.Z},7491:function(e,t,r){"use strict";var n=r(33703);t.Z=n.Z},42783:function(e,t,r){"use strict";var n=r(92996);t.Z=n.Z},79310:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(67294),i=r(46271);let o=!0,a=!1,s=new i.V,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){let{type:t,tagName:r}=e;return"INPUT"===r&&!!l[t]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function d(){o=!1}function h(){"hidden"===this.visibilityState&&a&&(o=!0)}function p(e){e.addEventListener("keydown",u,!0),e.addEventListener("mousedown",d,!0),e.addEventListener("pointerdown",d,!0),e.addEventListener("touchstart",d,!0),e.addEventListener("visibilitychange",h,!0)}function f(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||c(t)}var m=function(){let e=n.useCallback(e=>{null!=e&&p(e.ownerDocument)},[]),t=n.useRef(!1);function r(){return!!t.current&&(a=!0,s.start(100,()=>{a=!1}),t.current=!1,!0)}function i(e){return!!f(e)&&(t.current=!0,!0)}return{isFocusVisibleRef:t,onFocus:i,onBlur:r,ref:e}}},83525:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(14001).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76361:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorage}});let n=r(83525);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
25dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4818:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return o}});let n=r(18119),i=r(47325);class o{get isEnabled(){return this._provider.isEnabled}enable(){let e=n.staticGenerationAsyncStorage.getStore();return e&&(0,i.trackDynamicDataAccessed)(e,"draftMode().enable()"),this._provider.enable()}disable(){let e=n.staticGenerationAsyncStorage.getStore();return e&&(0,i.trackDynamicDataAccessed)(e,"draftMode().disable()"),this._provider.disable()}constructor(e){this._provider=e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cookies:function(){return h},draftMode:function(){return p},headers:function(){return d}});let n=r(9407),i=r(34042),o=r(80255),a=r(76361),s=r(4818),l=r(47325),c=r(18119),u=r(82595);function d(){let e="headers",t=c.staticGenerationAsyncStorage.getStore();if(t){if(t.forceStatic)return i.HeadersAdapter.seal(new Headers({}));(0,l.trackDynamicDataAccessed)(t,e)}return(0,u.getExpectedRequestStore)(e).headers}function h(){let e="cookies",t=c.staticGenerationAsyncStorage.getStore();if(t){if(t.forceStatic)return n.RequestCookiesAdapter.seal(new o.RequestCookies(new Headers({})));(0,l.trackDynamicDataAccessed)(t,e)}let r=(0,u.getExpectedRequestStore)(e),i=a.actionAsyncStorage.getStore();return(null==i?void 0:i.isAction)||(null==i?void 0:i.isAppRoute)?r.mutableCookies:r.cookies}function p(){let e="draftMode",t=(0,u.getExpectedRequestStore)(e);return new s.DraftMode(t.draftMode)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return i}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25329:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(14001).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82595:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return n.requestAsyncStorage}});let n=r(25329);function i(e){let t=n.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
25dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38199:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return c},ACTION_NAVIGATE:function(){return o},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return u},ACTION_SERVER_PATCH:function(){return s},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return d}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",c="fast-refresh",u="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}!function(e){e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary"}(r||(r={})),function(e){e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale"}(n||(n={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25196:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(14001).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n.staticGenerationAsyncStorage}});let n=r(25196);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72700:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return i}});let r="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=r}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87195:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(98337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32903:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return A}});let n=r(10260),i=r(77697),o=r(85893),a=i._(r(67294)),s=n._(r(23867)),l=r(96594),c=r(84229),u=r(23945);r(83179);let d=r(98337);function h(e){return"/"===e[0]?e.slice(1):e}let p=75,f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"",loader:"akamai",dangerouslyAllowSVG:!1,unoptimized:!1},m=new Set,g="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",y=new Map([["default",function(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-p)<Math.abs(e-p)?t:e))||p;return n.endsWith(".svg")&&!r.dangerouslyAllowSVG?n:(0,d.normalizePathTrailingSlash)(r.path)+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+a}],["imgix",function(e){let{config:t,src:r,width:n,quality:i}=e,o=new URL(""+t.path+h(r)),a=o.searchParams;return a.set("auto",a.getAll("auto").join(",")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||n.toString()),i&&a.set("q",i.toString()),o.href}
25],["cloudinary",function(e){let{config:t,src:r,width:n,quality:i}=e,o=["f_auto","c_limit","w_"+n,"q_"+(i||"auto")].join(",")+"/";return""+t.path+o+h(r)}],["akamai",function(e){let{config:t,src:r,width:n}=e;return""+t.path+h(r)+"?imwidth="+n}],["custom",function(e){let{src:t}=e;throw Error('Image with src "'+t+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}]]);function v(e){return void 0!==e.default}function b(e){return void 0!==e.src}function _(e){return"object"==typeof e&&(v(e)||b(e))}function w(e,t,r,n){let{deviceSizes:i,allSizes:o}=e;if(n&&("fill"===r||"responsive"===r)){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t||"fill"===r||"responsive"===r?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}function S(e){let{config:t,src:r,unoptimized:n,layout:i,width:o,quality:a,sizes:s,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:c,kind:u}=w(t,o,i,s),d=c.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:c.map((e,n)=>l({config:t,src:r,quality:a,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:l({config:t,src:r,quality:a,width:c[d]})}}function k(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function x(e){var t;let r=(null==(t=e.config)?void 0:t.loader)||"default",n=y.get(r);if(n)return n(e);throw Error('Unknown "loader" found in "next.config.js". Expected: '+l.VALID_LOADERS.join(", ")+". Received: "+r)}function E(e,t,r,n,i,o){e&&e.src!==g&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentNode&&(m.add(t),"blur"===n&&o(!0),null==i?void 0:i.current)){let{naturalWidth:t,naturalHeight:r}=e;i.current({naturalWidth:t,naturalHeight:r})}}))}let T=e=>{let{imgAttributes:t,heightInt:r,widthInt:n,qualityInt:i,layout:s,className:l,imgStyle:c,blurStyle:u,isLazy:d,placeholder:h,loading:p,srcString:f,config:m,unoptimized:g,loader:y,onLoadingCompleteRef:v,setBlurComplete:b,setIntersection:_,onLoad:w,onError:k,isVisible:x,noscriptSizes:T,...A}=e;return p=d?"lazy":p,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{...A,...t,decoding:"async","data-nimg":s,className:l,style:{...c,...u},ref:(0,a.useCallback)(e=>{_(e),(null==e?void 0:e.complete)&&E(e,f,s,h,v,b)},[_,f,s,h,v,b]),onLoad:e=>{E(e.currentTarget,f,s,h,v,b),w&&w(e)},onError:e=>{"blur"===h&&b(!0),k&&k(e)}}),(d||"blur"===h)&&(0,o.jsx)("noscript",{children:(0,o.jsx)("img",{...A,loading:p,decoding:"async","data-nimg":s,style:c,className:l,...S({config:m,src:f,unoptimized:g,layout:s,width:n,quality:i,sizes:T,loader:y})})})]})};function A(e){let t,{src:r,sizes:n,unoptimized:i=!1,priority:d=!1,loading:h,lazyRoot:p=null,lazyBoundary:y,className:b,quality:w,width:E,height:A,style:C,objectFit:P,objectPosition:I,onLoadingComplete:O,placeholder:N="empty",blurDataURL:D,...R}=e,L=(0,a.useContext)(u.ImageConfigContext),M=(0,a.useMemo)(()=>{var e;let t=f||L||l.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),n=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:n,qualities:i}},[L]),j=R,B=n?"responsive":"intrinsic";"layout"in j&&(j.layout&&(B=j.layout),delete j.layout);let U=x;if("loader"in j){if(j.loader){let e=j.loader;U=t=>{let{config:r,...n}=t;return e(n)}}delete j.loader}let F="";if(_(r)){let e=v(r)?r.default:r;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(D=D||e.blurDataURL,F=e.src,(!B||"fill"!==B)&&(A=A||e.height,E=E||e.width,!e.height||!e.width))throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e))}let H=!d&&("lazy"===h||void 0===h);((r="string"==typeof r?r:F).startsWith("data:")||r.startsWith("blob:"))&&(i=!0,H=!1),m.has(r)&&(H=!1),M.unoptimized&&(i=!0);let[z,$]=(0,a.useState)(!1),[q,W,V]=(0,c.useIntersection)({rootRef:p,rootMargin:y||"200px",disabled:!H}),G=!H||W,K={boxSizing:"border-box",display:"block",overflow:"hidden",
25width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Z={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Y=!1,J={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:P,objectPosition:I},X=k(E),Q=k(A),ee=k(w),et=Object.assign({},C,J),er="blur"!==N||z?{}:{backgroundSize:P||"cover",backgroundPosition:I||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'+D+'")'};if("fill"===B)K.display="block",K.position="absolute",K.top=0,K.left=0,K.bottom=0,K.right=0;else if(void 0!==X&&void 0!==Q){let e=Q/X,r=isNaN(e)?"100%":""+100*e+"%";"responsive"===B?(K.display="block",K.position="relative",Y=!0,Z.paddingTop=r):"intrinsic"===B?(K.display="inline-block",K.position="relative",K.maxWidth="100%",Y=!0,Z.maxWidth="100%",t="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27"+X+"%27%20height=%27"+Q+"%27/%3e"):"fixed"===B&&(K.display="inline-block",K.position="relative",K.width=X,K.height=Q)}let en={src:g,srcSet:void 0,sizes:void 0};G&&(en=S({config:M,src:r,unoptimized:i,layout:B,width:X,quality:ee,sizes:n,loader:U}));let ei=r,eo={imageSrcSet:en.srcSet,imageSizes:en.sizes,crossOrigin:j.crossOrigin,referrerPolicy:j.referrerPolicy},ea=a.default.useLayoutEffect,es=(0,a.useRef)(O),el=(0,a.useRef)(r);(0,a.useEffect)(()=>{es.current=O},[O]),ea(()=>{el.current!==r&&(V(),el.current=r)},[V,r]);let ec={isLazy:H,imgAttributes:en,heightInt:Q,widthInt:X,qualityInt:ee,layout:B,className:b,imgStyle:et,blurStyle:er,loading:h,config:M,unoptimized:i,placeholder:N,loader:U,srcString:ei,onLoadingCompleteRef:es,setBlurComplete:$,setIntersection:q,isVisible:G,noscriptSizes:n,...j};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{style:K,children:[Y?(0,o.jsx)("span",{style:Z,children:t?(0,o.jsx)("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:t}):null}):null,(0,o.jsx)(T,{...ec})]}),d?(0,o.jsx)(s.default,{children:(0,o.jsx)("link",{rel:"preload",as:"image",href:en.srcSet?void 0:en.src,...eo},"__nimg-"+en.src+en.srcSet+en.sizes)}):null]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});let n=r(10260),i=r(85893),o=n._(r(67294)),a=r(36075),s=r(53955),l=r(48041),c=r(99903),u=r(65490),d=r(81928),h=r(60257),p=r(84229),f=r(87195),m=r(89470),g=r(38199),y=new Set;function v(e,t,r,n,i,o){if(o||(0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function _(e,t,r,n,i,a,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(b(e)||!u&&!(0,s.isLocalURL)(r)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:c,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};u?o.default.startTransition(h):h()}function w(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let S=o.default.forwardRef(function(e,t){let r,n;let{href:s,as:l,children:y,prefetch:b=null,passHref:S,replace:k,shallow:x,scroll:E,locale:T,onClick:A,onMouseEnter:C,onTouchStart:P,legacyBehavior:I=!1,...O}=e;r=y,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let N=o.default.useContext(d.RouterContext),D=o.default.useContext(h.AppRouterContext),R=null!=N?N:D,L=!N,M=!1!==b,j=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:B,as:U}=o.default.useMemo(()=>
25{if(!N){let e=w(s);return{href:e,as:l?w(l):e}}let[e,t]=(0,a.resolveHref)(N,s,!0);return{href:e,as:l?(0,a.resolveHref)(N,l):t||e}},[N,s,l]),F=o.default.useRef(B),H=o.default.useRef(U);I&&(n=o.default.Children.only(r));let z=I?n&&"object"==typeof n&&n.ref:t,[$,q,W]=(0,p.useIntersection)({rootMargin:"200px"}),V=o.default.useCallback(e=>{(H.current!==U||F.current!==B)&&(W(),H.current=U,F.current=B),$(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[U,z,B,W,$]);o.default.useEffect(()=>{R&&q&&M&&v(R,B,U,{locale:T},{kind:j},L)},[U,B,q,T,M,null==N?void 0:N.locale,R,L,j]);let G={ref:V,onClick(e){I||"function"!=typeof A||A(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&_(e,R,B,U,k,x,E,T,L)},onMouseEnter(e){I||"function"!=typeof C||C(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(M||!L)&&v(R,B,U,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart:function(e){I||"function"!=typeof P||P(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(M||!L)&&v(R,B,U,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,c.isAbsoluteUrl)(U))G.href=U;else if(!I||S||"a"===n.type&&!("href"in n.props)){let e=void 0!==T?T:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,f.getDomainLocale)(U,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);G.href=t||(0,m.addBasePath)((0,u.addLocale)(U,e,null==N?void 0:N.defaultLocale))}return I?o.default.cloneElement(n,G):(0,i.jsx)("a",{...O,...G,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let n=r(67294),i=r(84474),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}function c(e,t,r){let{id:n,observer:i,elements:o}=l(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}function u(e){let{rootRef:t,rootMargin:r,disabled:a}=e,s=a||!o,[l,u]=(0,n.useState)(!1),d=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(s||l)return;let e=d.current;if(e&&e.tagName)return c(e,e=>e&&u(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!l){let e=(0,i.requestIdleCallback)(()=>u(!0));return()=>(0,i.cancelIdleCallback)(e)}},[s,r,t,l,d.current]),[h,l,(0,n.useCallback)(()=>{u(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97400:function(e,t,r){"use strict";r.d(t,{SC:function(){return h},pi:function(){return u},vE:function(){return c},zG:function(){return d}});var n=r(67294);r(85893);let i=["xxl","xl","lg","md","sm","xs"],o="xs",a=n.createContext({prefixes:{},breakpoints:i,minBreakpoint:o}),{Consumer:s,Provider:l}=a;function c(e,t){let{prefixes:r}=(0,n.useContext)(a);return e||r[t]||t}function u(){let{breakpoints:e}=(0,n.useContext)(a);return e}function d(){let{minBreakpoint:e}=(0,n.useContext)(a);return e}function h(){let{dir:e}=(0,n.useContext)(a);return"rtl"===e}},99784:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return pj}});var n,i,o,a,s,l,c,u,d,h,p,f,m,g,y,v,b,_,w,S,k,x,E,T,A,C,P,I,O,N,D,R,L,M,j,B,U,F,H,z,$,q,W,V,G={};r.r(G),r.d(G,{Any:function(){return oc},BaseBlock:function(){return ip},BaseStringBlock:function(){return ig},BitString:function(){return iD},BmpString:function(){return i0},Boolean:function(){return iP},CharacterString:function(){return ot},Choice:function(){return ou},Constructed:function(){return ix},DATE:function(){return oi},DateTime:function(){return oa},Duration:function(){return os},EndOfContent:function(){return iT},Enumerated:function(){return iU},GeneralString:function(){return oe},GeneralizedTime:function(){return on},GraphicString:function(){return i7},HexBlock:function(){return is},IA5String:function(){return i8},Integer:function(){return iB},Null:function(){return iA},NumericString:function(){return i4},ObjectIdentifier:function(){return iz},OctetString:function(){return iO},Primitive:function(){return iv},PrintableString:function(){return i3},RawData:function(){return oh},RelativeObjectIdentifier:function(){return iW},Repeated:function(){return od},Sequence:function(){return iV},Set:function(){return iG},TIME:function(){return ol},TeletexString:function(){return i6},TimeOfDay:function(){return oo},UTCTime:function(){return or},UniversalString:function(){return i2},Utf8String:function(){return iX},ValueBlock:function(){return ic},VideotexString:function(){return i5},ViewWriter:function(){return nJ},VisibleString:function(){return i9},compareSchema:function(){return op},fromBER:function(){return iw},verifySchema:function(){return of}});var K=r(85893),Z=r(67294),Y=r(1413);function J(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 X=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),Q=function(){return Math.random().toString(36).substring(7).split("").join(".")},ee={INIT:"@@redux/INIT"+Q(),REPLACE:"@@redux/REPLACE"+Q(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Q()}};function et(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 er(e,t,r){if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(J(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(J(1));return r(er)(e,t)}if("function"!=typeof e)throw Error(J(2));var n,i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw Error(J(3));return o}function d(e){if("function"!=typeof e)throw Error(J(4));if(l)throw Error(J(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw Error(J(6));t=!1,c();var r=s.indexOf(e);s.splice(r,1),a=null}}}function h(e){if(!et(e))throw Error(J(7));if(void 0===e.type)throw Error(J(8));if(l)throw Error(J(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,r=0;r<t.length;r++)(0,t[r])();return e}function p(e){if("function"!=typeof e)throw Error(J(10));i=e,h({type:ee.REPLACE})}function f(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(J(11));function r(){e.next&&e.next(u())}return r(),{unsubscribe:t(r)}}})[X]=function(){return this},e}return h({type:ee.INIT}),(n={dispatch:h,subscribe:d,getState:u,replaceReducer:p})[X]=f,n}function en(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:ee.INIT}))throw Error(J(12));if(void 0===r(void 0,{type:ee.PROBE_UNKNOWN_ACTION()}))throw Error(J(13))})}function ei(e){for(var t,r=Object.keys(e),n={},i=0;i<r.length;i++){var o=r[i];"function"==typeof e[o]&&(n[o]=e[o])}var a=Object.keys(n);try{en(n)}catch(e){t=e}return function(e,r){if(void 0===e&&(e={}),t)throw t;for(var i=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,r);if(void 0===d)throw r&&r.type,Error(J(14));o[l]=d,i=i||d!==u}return(i=i||a.length!==Object.keys(e).length)?o:e}}function eo(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];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 ea(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw Error(J(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return n=eo.apply(void 0,o)(r.dispatch),(0,Y.Z)((0,Y.Z)({},r),{},{dispatch:n})}}}var es=r(2664),el=r(11163),ec=function(){return(ec=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eu=function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):i(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},ed=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},eh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},ep="__NEXT_REDUX_WRAPPER_HYDRATE__",ef=function(){return"undefined"==typeof window},em=function(e,t){var r=(void 0===t?{}:t).deserializeState;return r?r(e):e},eg=function(e,t){var r=(void 0===t?{}:t).serializeState;return r?r(e):e},ey=function(e){var t,r,i,o=e.makeStore,a=e.context,s=void 0===a?{}:a,l=function(){return o(s)};if(ef()){var c=(null===(t=s)||void 0===t?void 0:t.req)||(null===(i=null===(r=s)||void 0===r?void 0:r.ctx)||void 0===i?void 0:i.req);return c?(c.__nextReduxWrapperStore||(c.__nextReduxWrapperStore=l()),c.__nextReduxWrapperStore):l()}
25return n||(n=l()),n},ev=function(e,t){void 0===t&&(t={});var r=function(r){var n=r.callback,i=r.context,o=r.addStoreToContext,a=void 0!==o&&o;return eu(void 0,void 0,void 0,function(){var r,o,s,l,c;return ed(this,function(u){switch(u.label){case 0:if(r=ey({context:i,makeStore:e}),t.debug&&console.log("1. getProps created store with state",r.getState()),a&&(i.ctx?i.ctx.store=r:i.store=r),!(l=o=n&&n(r)))return[3,2];return[4,o(i)];case 1:l=u.sent(),u.label=2;case 2:return s=l||{},t.debug&&console.log("3. getProps after dispatches has store state",r.getState()),c=r.getState(),[2,{initialProps:s,initialState:ef()?eg(c,t):c}]}})})},n=function(e){return function(t){return eu(void 0,void 0,void 0,function(){var n,i,o;return ed(this,function(a){switch(a.label){case 0:return[4,r({callback:e,context:t})];case 1:return i=(n=a.sent()).initialProps,o=n.initialState,[2,ec(ec({},i),{props:ec(ec({},i.props),{initialState:o})})]}})})}},i=function(e,r){r&&e.dispatch({type:ep,payload:em(r,t)})},o=function(e,t,r,n,o){var a;r?(i(e,t),i(e,r)):(n||o||t)&&i(e,null!==(a=null!=n?n:o)&&void 0!==a?a:t)},a=function(e,t,r,n,i){var a=(0,el.useRouter)().events,s=(0,Z.useRef)(!0);(0,Z.useEffect)(function(){var e=function(){s.current=!0};return null==a||a.on("routeChangeStart",e),function(){null==a||a.off("routeChangeStart",e)}},[a]),(0,Z.useMemo)(function(){s.current&&(o(e,t,r,n,i),s.current=!1)},[e,t,r,n,i])},s=function(r,n){void 0===n&&(n="useWrappedStore");var i,o,s,l,c,u,d=r.initialState,h=r.initialProps,p=eh(r,["initialState","initialProps"]),f=(null==p?void 0:p.__N_SSG)?null===(i=null==p?void 0:p.pageProps)||void 0===i?void 0:i.initialState:null,m=(null==p?void 0:p.__N_SSP)?null===(o=null==p?void 0:p.pageProps)||void 0===o?void 0:o.initialState:null,g=f||m?null:null!==(l=null===(s=null==p?void 0:p.pageProps)||void 0===s?void 0:s.initialState)&&void 0!==l?l:null;t.debug&&console.log("4.",n,"created new store with",{giapState:d,gspState:f,gsspState:m,gippState:g});var y=(0,Z.useMemo)(function(){return ey({makeStore:e})},[]);a(y,d,f,m,g);var v=p;return h&&h.pageProps&&(v.pageProps=ec(ec({},h.pageProps),p.pageProps)),(null===(c=null==p?void 0:p.pageProps)||void 0===c?void 0:c.initialState)&&(v=ec(ec({},p),{pageProps:ec({},p.pageProps)}),delete v.pageProps.initialState),(null===(u=null==v?void 0:v.pageProps)||void 0===u?void 0:u.initialProps)&&(v.pageProps=ec(ec({},v.pageProps),v.pageProps.initialProps),delete v.pageProps.initialProps),{store:y,props:ec(ec({},h),v)}};return{getServerSideProps:function(e){return function(t){return eu(void 0,void 0,void 0,function(){return ed(this,function(r){switch(r.label){case 0:return[4,n(e)(t)];case 1:return[2,r.sent()]}})})}},getStaticProps:n,getInitialAppProps:function(e){return function(t){return eu(void 0,void 0,void 0,function(){var n,i,o;return ed(this,function(a){switch(a.label){case 0:return[4,r({callback:e,context:t,addStoreToContext:!0})];case 1:return i=(n=a.sent()).initialProps,o=n.initialState,[2,ec(ec({},i),{initialState:o})]}})})}},getInitialPageProps:function(e){return function(t){return eu(void 0,void 0,void 0,function(){return ed(this,function(n){switch(n.label){case 0:if("getState"in t)return[2,e&&e(t)];return[4,r({callback:e,context:t,addStoreToContext:!0})];case 1:return[2,n.sent()]}})})}},withRedux:function(e){console.warn("/!\\ You are using legacy implementation. Please update your code: use createWrapper() and wrapper.useWrappedStore().");var t=function(r){var n=s(r,t.displayName),i=n.store,o=n.props;return Z.createElement(es.zt,{store:i},Z.createElement(e,ec({},o)))};return t.displayName="withRedux(".concat(e.displayName||e.name||"Component",")"),"getInitialProps"in e&&(t.getInitialProps=e.getInitialProps),t},useWrappedStore:s}};function eb(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"==typeof i?i(r,n,e):t(i)}}}}var e_=eb();e_.withExtraArgument=eb;var ew=e_,eS=r(45312),ek=r(32415);let ex={FETCH_DMS_URL:"FETCH_DMS_URL",FETCH_NAV_DATA:"FETCH_NAV_DATA"},eE={urls:[],navdata:[]};function eT(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eE,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ex.FETCH_DMS_URL:return Object.assign({},e,{urls:t.payload});case ex.FETCH_NAV_DATA:return Object.assign({},e,{navdata:t.payload});default:return e}}var eA=r(68741);let eC={genreData:[]},eP={watchlistData:[]},eI={movData:[]},eO={showsData:[]},eN={favData:[]},eD={chnData:[]},eR={roweightData:[]},eL={isPopupModalShow:null},eM={cinebackground:""},ej={cinewatchlist:[]},eB=e=>ea(...e),eU=ei({dmsData:eT,movieData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eI,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.FETCH_MOVIES_DATA?Object.assign({},e,{movData:t.payload}):e},showsData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eO,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.FETCH_SHOWS_DATA?Object.assign({},e,{showsData:t.payload}):e},genreData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eC,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.FETCH_GENRE_DATA?Object.assign({},e,{genreData:t.payload}):e},watchlistData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eP,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.FETCH_WATCHLIST_DATA?Object.assign({},e,{watchlistData:t.payload}):e},favData:function(){let e=arguments.length>
250&&void 0!==arguments[0]?arguments[0]:eN,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.FETCH_FAV_DATA?Object.assign({},e,{favData:t.payload}):e},chnData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eD,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.FETCH_CHANNEL_DATA?Object.assign({},e,{chnData:t.payload}):e},roweightData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eR,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.FETCH_ROWEIGHT_CHANNEL_DATA?Object.assign({},e,{roweightData:t.payload}):e},isPopupModalShow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eL,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.IS_POPUP_MODAL?Object.assign({},e,{isPopupModalShow:t.payload}):e},cinebackground:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eM,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.CINE_BACKGROUND?{...e,cinebackground:t.payload}:e},cinewatchlist:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ej,t=arguments.length>1?arguments[1]:void 0;return t.type===eA.t.CINE_WATCHLIST?{...e,cinewatchlist:t.payload}:e}}),eF=er((e,t)=>t.type===ep?{...e,...t.payload}:eU(e,t),eB([ew])),eH=ev(()=>eF);r(23434),r(42205),r(58905),r(74750),r(93044),r(11688),r(80982),r(81683),r(55703),r(24562),r(3502),r(32116),r(39965),r(34519),r(81257),r(59203),r(61036),r(52080),r(21157),r(47362),r(31830),r(80102),r(76061),r(26829),r(16996),r(31541),r(4709),r(80601),r(3028),r(37913),r(85417),r(40766);var ez=r(68777);function e$(e){let{children:t,...r}=e;return(0,K.jsx)(eq,{...r,children:t})}let eq=ez.ZP.div.withConfig({componentId:"sc-6b87f716-0"})(["@media (max-width:550px){padding:0px 0px;}"]);var eW=e$,eV=r(80235),eG=r(61730);function eK(e){let{children:t,...r}=e,n=(0,el.useRouter)().asPath,[i,o]=(0,Z.useState)(!1),a=(0,eG.Z)("(max-width : 1200px)"),s=()=>{window.scrollY>55?o(!0):o(!1)};return(0,Z.useEffect)(()=>(window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}),[]),(0,K.jsx)(eZ,{...r,isDove:eS.isDove,className:i&&!a?eS.isDove?"fixed-solid-dove":"fixed-solid":"/find"==n?eS.isDove?"dove-menu-background-solid-black":"menu-background-solid-black":"",id:"header-nav",children:(0,K.jsx)("div",{className:"nav-inner-spc",children:t})})}let eZ=ez.ZP.nav.withConfig({componentId:"sc-db502645-0"})(["width:100%;display:flex;justify-content:flex-start;margin-right:auto;margin-left:auto;transition:all 0.4s ease-in-out;padding:0px 50px;top:0;background-color:"," !important;background-image:",";background-repeat:no-repeat;background-position:top;background-size:100%;height:90px;position:fixed;z-index:100;@media (max-width:550px){margin-bottom:100px;}"],e=>(null==e?void 0:e.isDove)?"#fff9ed5c":"",e=>e.isDove?"linear-gradient(to bottom, rgb(255 255 255 / 80%) 20%, rgba(0, 0, 0, 0))":"linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0))");var eY=eK,eJ=function(e){return(0,K.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"230px",height:"138px",background:"linear-gradient( 270deg, rgb(0 0 0 / 0%) 23%, rgb(0 0 0 / 64%) 85% ), linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 60%),url("+e.bgImg+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover",borderRadius:"4px"}})},eX=r(89755),eQ=r.n(eX),e0=r(22024),e1=e=>{let[t,r]=(0,Z.useState)(!0),n=300,i=200,o={};o.width=e.titleImageWidth?e.titleImageWidth:300,o.height=e.titleImageHeight?e.titleImageHeight:200;let a=(0,ek.ev)(o,!0);return n=a.width,i=a.height,(0,K.jsxs)("div",{className:"floating_cast-div",children:[(0,K.jsx)(eJ,{bgImg:e.poster}),(0,K.jsxs)("div",{className:"inner-container",style:{display:"flex",flexDirection:"column",position:"relative",height:"138px",justifyContent:"space-between"},children:[(0,K.jsx)("div",{className:"cast-image-container",children:e.titleImg?(0,K.jsx)(eQ(),{src:e.titleImg,width:n,height:i,alt:"title img",className:"casting_title_image"}):(0,K.jsx)("span",{style:{width:"60",height:"45"},children:e.title})}),(0,K.jsxs)("div",{className:"casting_overlay-container",children:[(0,K.jsx)("button",{style:{width:"33px",height:"33px",background:"none",display:"flex",justifyContent:"center",alignItems:"end",border:"none"},children:(0,K.jsx)("google-cast-launcher",{})}),(0,K.jsxs)("div",{className:"casting_device-name",children:[(0,K.jsx)("div",{className:"first_casting-text",children:"Casting on :"}),(0,K.jsx)("div",{className:"second_casting-text",children:e.device})]})]}),(0,K.jsx)("div",{className:"play_button_overlay",children:(0,K.jsx)("span",{className:"round_button",onClick:()=>{e.playerController&&e.playerController.g&&!e.playerController.g.isPaused?r(!1):r(!0),e.playerController.playOrPause()},children:t?(0,K.jsx)(e0.z1,{className:"mpointer",width:"44",height:"44"}):(0,K.jsx)(e0.o4,{className:"mpointer",width:"44",height:"44"})})})]})]})};let e2=e=>{let{children:t,...r}=e;return(0,K.jsx)(e4,{...r,isDove:eS.isDove,children:t})},e4=ez.ZP.li.withConfig({componentId:"sc-49ec080b-0"})(["cursor:pointer;padding-right:50px;color:",";font-weight:",";margin:1rem 0;position:relative;z-index:10;@media only screen and (max-width:1478px) and (min-width:1195px){cursor:pointer;padding-right:20px !important;color:white !important;margin-top:1rem;margin-bottom:1rem;position:relative;z-index:10;}"],e=>{let{isDove:t}=e;return t?"#353a47":"white"},e=>{let{isDove:t}=e;return t?"bold":""});var e3=e2;let e6=e=>{let{children:t,...r}=e;return(0,K.jsx)(e5,{...r,isDove:eS.isDove,children:t})},e5=ez.ZP.span.withConfig({componentId:"sc-623ab1c6-0"})(["position:relative;font-family:'Open Sans';margin:auto;width:0%;content:'.';font-weight:300;color:",";font-weight:",";&:after{content:'';position:absolute;width:0%;height:1px;transition:all 0.3s ease;bottom:0;left:0;};&:hover:after{width:100%;height:1px;background-color:",";};@media screen and (max-width:600px){.menu-inner-spn{font-size:12px;}"],e=>{let{isDove:t}=e;return t?"#353a47":""},e=>{let{isDove:t}=e;return t?"bold":""},e=>e.menuUnderLineColor?e.menuUnderLineColor:"");var e8=e6,e7=r(93967),e9=r.n(e7),te=Function.prototype.bind.call(Function.prototype.call,[].slice);function tt(e,t){return te(e.querySelectorAll(t))}var tr=!!("undefined"!=typeof window&&window.document&&window.document.createElement),tn=!1,ti=!1;
25try{var to={get passive(){return tn=!0},get once(){return ti=tn=!0}};tr&&(window.addEventListener("test",to,to),window.removeEventListener("test",to,!0))}catch(e){}var ta=function(e,t,r,n){if(n&&"boolean"!=typeof n&&!ti){var i=n.once,o=n.capture,a=r;!ti&&i&&(a=r.__once||function e(n){this.removeEventListener(t,e,o),r.call(this,n)},r.__once=a),e.addEventListener(t,a,tn?n:o)}e.addEventListener(t,r,n)};function ts(e,t,r){let n=(0,Z.useRef)(void 0!==e),[i,o]=(0,Z.useState)(t),a=void 0!==e,s=n.current;return n.current=a,!a&&s&&i!==t&&o(t),[a?e:i,(0,Z.useCallback)((...e)=>{let[t,...n]=e,i=null==r?void 0:r(t,...n);return o(t),i},[r])]}function tl(e){let t=(0,Z.useRef)(null);return(0,Z.useEffect)(()=>{t.current=e}),t.current}function tc(){let[,e]=(0,Z.useReducer)(e=>!e,!1);return e}var tu=function(e){let t=(0,Z.useRef)(e);return(0,Z.useEffect)(()=>{t.current=e},[e]),t};function td(e){let t=tu(e);return(0,Z.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}function th(e,t,r,n=!1){let i=td(r);(0,Z.useEffect)(()=>{let r="function"==typeof e?e():e;return r.addEventListener(t,i,n),()=>r.removeEventListener(t,i,n)},[e])}var tp=Z.createContext(null);function tf(){return(0,Z.useState)(null)}var tm=Object.prototype.hasOwnProperty;function tg(e,t,r){for(r of e.keys())if(ty(r,t))return r}function ty(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&ty(e[n],t[n]););return -1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if((i=n)&&"object"==typeof i&&!(i=tg(t,i))||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if((i=n[0])&&"object"==typeof i&&!(i=tg(t,i))||!ty(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return -1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(tm.call(e,r)&&++n&&!tm.call(t,r)||!(r in t)||!ty(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}function tv(){let e=(0,Z.useRef)(!0),t=(0,Z.useRef)(()=>e.current);return(0,Z.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}var tb=function(e){let t=tv();return[e[0],(0,Z.useCallback)(r=>{if(t())return e[1](r)},[t,e[1]])]},t_=r(66896),tw=r(36531),tS=r(82372),tk=r(68855),tx=r(19892),tE=r(82122),tT=r(77421),tA=r(394);let tC=(0,r(45704).kZ)({defaultModifiers:[tx.Z,tT.Z,tw.Z,tS.Z,tE.Z,tk.Z,tA.Z,t_.Z]}),tP=["enabled","placement","strategy","modifiers"];function tI(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}let tO={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},tN={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:r}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==r.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:r,reference:n}=e.elements,i=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===i&&"setAttribute"in n){let e=n.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(r.id))return;n.setAttribute("aria-describedby",e?`${e},${r.id}`:r.id)}}},tD=[];var tR=function(e,t,r={}){let{enabled:n=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=tD}=r,s=tI(r,tP),l=(0,Z.useRef)(a),c=(0,Z.useRef)(),u=(0,Z.useCallback)(()=>{var e;null==(e=c.current)||e.update()},[]),d=(0,Z.useCallback)(()=>{var e;null==(e=c.current)||e.forceUpdate()},[]),[h,p]=tb((0,Z.useState)({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),f=(0,Z.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},r={};
25Object.keys(e.elements).forEach(n=>{t[n]=e.styles[n],r[n]=e.attributes[n]}),p({state:e,styles:t,attributes:r,update:u,forceUpdate:d,placement:e.placement})}}),[u,d,p]),m=(0,Z.useMemo)(()=>(ty(l.current,a)||(l.current=a),l.current),[a]);return(0,Z.useEffect)(()=>{c.current&&n&&c.current.setOptions({placement:i,strategy:o,modifiers:[...m,f,tO]})},[o,i,f,n,m]),(0,Z.useEffect)(()=>{if(n&&null!=e&&null!=t)return c.current=tC(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...m,tN,f]})),()=>{null!=c.current&&(c.current.destroy(),c.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),h};function tL(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var tM=function(e,t,r,n){var i=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,i),r.__once&&e.removeEventListener(t,r.__once,i)},tj=function(e,t,r,n){return ta(e,t,r,n),function(){tM(e,t,r,n)}};function tB(e){return e&&e.ownerDocument||document}var tU=r(42473),tF=r.n(tU);let tH=()=>{};function tz(e){return 0===e.button}function t$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let tq=e=>e&&("current"in e?e.current:e),tW={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var tV=function(e,t=tH,{disabled:r,clickTrigger:n="click"}={}){let i=(0,Z.useRef)(!1),o=(0,Z.useRef)(!1),a=(0,Z.useCallback)(t=>{let r=tq(e);tF()(!!r,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!r||t$(t)||!tz(t)||!!tL(r,t.target)||o.current,o.current=!1},[e]),s=td(t=>{let r=tq(e);r&&tL(r,t.target)&&(o.current=!0)}),l=td(e=>{i.current||t(e)});(0,Z.useEffect)(()=>{var t,i;if(r||null==e)return;let o=tB(tq(e)),c=o.defaultView||window,u=null!=(t=c.event)?t:null==(i=c.parent)?void 0:i.event,d=null;tW[n]&&(d=tj(o,tW[n],s,!0));let h=tj(o,n,a,!0),p=tj(o,n,e=>{if(e===u){u=void 0;return}l(e)}),f=[];return"ontouchstart"in o.documentElement&&(f=[].slice.call(o.body.children).map(e=>tj(e,"mousemove",tH))),()=>{null==d||d(),h(),p(),f.forEach(e=>e())}},[e,r,n,a,s,l])};function tG(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}function tK(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function tZ({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:l={}}){var c,u,d,h,p;let f=tG(l.modifiers);return Object.assign({},l,{placement:r,enabled:e,strategy:o?"fixed":l.strategy,modifiers:tK(Object.assign({},f,{eventListeners:{enabled:t,options:null==(c=f.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},f.preventOverflow,{options:a?Object.assign({padding:a},null==(u=f.preventOverflow)?void 0:u.options):null==(d=f.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:i},null==(h=f.offset)?void 0:h.options)},arrow:Object.assign({},f.arrow,{enabled:!!s,options:Object.assign({},null==(p=f.arrow)?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!n},f.flip)}))})}let tY=["children","usePopper"];function tJ(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}let tX=()=>{};function tQ(e={}){let t=(0,Z.useContext)(tp),[r,n]=tf(),i=(0,Z.useRef)(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:l=!1,placement:c,popperConfig:u={},enableEventListeners:d=!0,usePopper:h=!!t}=e,p=(null==t?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);let f=e=>{null==t||t.toggle(!1,e)},{placement:m,setMenu:g,menuElement:y,toggleElement:v}=t||{},b=tR(v,y,tZ({placement:c||m||"bottom-start",enabled:h,enableEvents:null==d?p:d,offset:a,flip:o,fixed:l,arrowElement:r,popperConfig:u})),_=Object.assign({ref:g||tX,"aria-labelledby":null==v?void 0:v.id},b.attributes.popper,{style:b.styles.popper}),w={show:p,placement:m,hasShown:i.current,toggle:null==t?void 0:t.toggle,popper:h?b:null,arrowProps:h?Object.assign({ref:n},b.attributes.arrow,{style:b.styles.arrow}):{}};return tV(y,f,{clickTrigger:s,disabled:!p}),[_,w]}function t0(e){let{children:t,usePopper:r=!0}=e,[n,i]=tQ(Object.assign({},tJ(e,tY),{usePopper:r}));return(0,K.jsx)(K.Fragment,{children:t(n,i)})}t0.displayName="DropdownMenu";var t1=t0;let t2={prefix:String(Math.round(1e10*Math.random())),current:0},t4=Z.createContext(t2),t3=Z.createContext(!1),t6=!!("undefined"!=typeof window&&window.document&&window.document.createElement),t5=new WeakMap;function t8(e=!1){let t=(0,Z.useContext)(t4),r=(0,Z.useRef)(null);if(null===r.current&&!e){var n,i;
25let e=null===(i=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i?void 0:null===(n=i.ReactCurrentOwner)||void 0===n?void 0:n.current;if(e){let r=t5.get(e);null==r?t5.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,t5.delete(e))}r.current=++t.current}return r.current}function t7(e){let t=(0,Z.useContext)(t4);t!==t2||t6||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=t8(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function t9(e){let t=Z.useId(),[r]=(0,Z.useState)(ri()),n=r?"react-aria":`react-aria${t2.prefix}`;return e||`${n}-${t}`}let re="function"==typeof Z.useId?t9:t7;function rt(){return!1}function rr(){return!0}function rn(e){return()=>{}}function ri(){return"function"==typeof Z.useSyncExternalStore?Z.useSyncExternalStore(rn,rt,rr):(0,Z.useContext)(t3)}let ro=e=>{var t;return(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())==="menu"},ra=()=>{};function rs(){let e=re(),{show:t=!1,toggle:r=ra,setToggle:n,menuElement:i}=(0,Z.useContext)(tp)||{},o={id:e,ref:n||ra,onClick:(0,Z.useCallback)(e=>{r(!t,e)},[t,r]),"aria-expanded":!!t};return i&&ro(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:r}]}function rl({children:e}){let[t,r]=rs();return(0,K.jsx)(K.Fragment,{children:e(t,r)})}rl.displayName="DropdownToggle";var rc=rl;let ru=Z.createContext(null),rd=(e,t=null)=>null!=e?String(e):t||null;var rh=ru;let rp=Z.createContext(null);rp.displayName="NavContext";var rf=rp;let rm=["as","disabled"];function rg(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function ry(e){return!e||"#"===e.trim()}function rv({tagName:e,disabled:t,href:r,target:n,rel:i,role:o,onClick:a,tabIndex:s=0,type:l}){e||(e=null!=r||null!=n||null!=i?"a":"button");let c={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},c];let u=n=>{if((t||"a"===e&&ry(r))&&n.preventDefault(),t){n.stopPropagation();return}null==a||a(n)},d=e=>{" "===e.key&&(e.preventDefault(),u(e))};return"a"===e&&(r||(r="#"),t&&(r=void 0)),[{role:null!=o?o:"button",disabled:void 0,tabIndex:t?void 0:s,href:r,target:"a"===e?n:void 0,"aria-disabled":t||void 0,rel:"a"===e?i:void 0,onClick:u,onKeyDown:d},c]}let rb=Z.forwardRef((e,t)=>{let{as:r,disabled:n}=e,i=rg(e,rm),[o,{tagName:a}]=rv(Object.assign({tagName:r,disabled:n},i));return(0,K.jsx)(a,Object.assign({},i,o,{ref:t}))});rb.displayName="Button";var r_=rb;let rw="data-rr-ui-";function rS(e){return`${rw}${e}`}let rk=["eventKey","disabled","onClick","active","as"];function rx(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function rE({key:e,href:t,active:r,disabled:n,onClick:i}){let o=(0,Z.useContext)(rh),{activeKey:a}=(0,Z.useContext)(rf)||{},s=rd(e,t),l=null==r&&null!=e?rd(a)===s:r;return[{onClick:td(e=>{n||(null==i||i(e),o&&!e.isPropagationStopped()&&o(s,e))}),"aria-disabled":n||void 0,"aria-selected":l,[rS("dropdown-item")]:""},{isActive:l}]}let rT=Z.forwardRef((e,t)=>{let{eventKey:r,disabled:n,onClick:i,active:o,as:a=r_}=e,s=rx(e,rk),[l]=rE({key:r,href:s.href,disabled:n,onClick:i,active:o});return(0,K.jsx)(a,Object.assign({},s,{ref:t},l))});rT.displayName="DropdownItem";var rA=rT;let rC=(0,Z.createContext)(tr?window:void 0);function rP(){return(0,Z.useContext)(rC)}function rI(){let e=tc(),t=(0,Z.useRef)(null),r=(0,Z.useCallback)(r=>{t.current=r,e()},[e]);return[t,r]}function rO({defaultShow:e,show:t,onSelect:r,onToggle:n,itemSelector:i=`* [${rS("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){let l=rP(),[c,u]=ts(t,e,n),[d,h]=rI(),p=d.current,[f,m]=rI(),g=f.current,y=tl(c),v=(0,Z.useRef)(null),b=(0,Z.useRef)(!1),_=(0,Z.useContext)(rh),w=(0,Z.useCallback)((e,t,r=null==t?void 0:t.type)=>{u(e,{originalEvent:t,source:r})},[u]),S=td((e,t)=>{null==r||r(e,t),w(!1,t,"select"),t.isPropagationStopped()||null==_||_(e,t)}),k=(0,Z.useMemo)(()=>({toggle:w,placement:a,show:c,menuElement:p,toggleElement:g,setMenu:h,setToggle:m}),[w,a,c,p,g,h,m]);p&&y&&!c&&(b.current=p.contains(p.ownerDocument.activeElement));let x=td(()=>
25{g&&g.focus&&g.focus()}),E=td(()=>{let e=v.current,t=o;if(null==t&&(t=!!(d.current&&ro(d.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;let r=tt(d.current,i)[0];r&&r.focus&&r.focus()});(0,Z.useEffect)(()=>{c?E():b.current&&(b.current=!1,x())},[c,b,x,E]),(0,Z.useEffect)(()=>{v.current=null});let T=(e,t)=>{if(!d.current)return null;let r=tt(d.current,i),n=r.indexOf(e)+t;return n=Math.max(0,Math.min(n,r.length)),r[n]};return th((0,Z.useCallback)(()=>l.document,[l]),"keydown",e=>{var t,r;let{key:n}=e,i=e.target,o=null==(t=d.current)?void 0:t.contains(i),a=null==(r=f.current)?void 0:r.contains(i);if(/input|textarea/i.test(i.tagName)&&(" "===n||"Escape"!==n&&o||"Escape"===n&&"search"===i.type)||!o&&!a||"Tab"===n&&(!d.current||!c))return;v.current=e.type;let s={originalEvent:e,source:e.type};switch(n){case"ArrowUp":{let t=T(i,-1);t&&t.focus&&t.focus(),e.preventDefault();return}case"ArrowDown":if(e.preventDefault(),c){let e=T(i,1);e&&e.focus&&e.focus()}else u(!0,s);return;case"Tab":ta(i.ownerDocument,"keyup",e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=d.current)&&t.contains(e.target)||u(!1,s)},{once:!0});break;case"Escape":"Escape"===n&&(e.preventDefault(),e.stopPropagation()),u(!1,s)}}),(0,K.jsx)(rh.Provider,{value:S,children:(0,K.jsx)(tp.Provider,{value:k,children:s})})}rC.Provider,rO.displayName="Dropdown",rO.Menu=t1,rO.Toggle=rc,rO.Item=rA;var rN=rO,rD=r(87462),rR=r(63366);function rL(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function rM(e){var t=rj(e,"string");return"symbol"==typeof t?t:String(t)}function rj(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function rB(e,t,r){var n=(0,Z.useRef)(void 0!==e),i=(0,Z.useState)(t),o=i[0],a=i[1],s=void 0!==e,l=n.current;return n.current=s,!s&&l&&o!==t&&a(t),[s?e:o,(0,Z.useCallback)(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r&&r.apply(void 0,[e].concat(n)),a(e)},[r])]}function rU(e,t){return Object.keys(t).reduce(function(r,n){var i,o=r,a=o[rL(n)],s=o[n],l=(0,rR.Z)(o,[rL(n),n].map(rM)),c=t[n],u=rB(s,a,e[c]),d=u[0],h=u[1];return(0,rD.Z)({},l,((i={})[n]=d,i[c]=h,i))},e)}function rF(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}r(41143),rF.__suppressDeprecationWarning=!0;let rH=Z.createContext({});rH.displayName="DropdownContext";var rz=rH,r$=r(97400);let rq=Z.forwardRef((e,t)=>{let{className:r,bsPrefix:n,as:i="hr",role:o="separator",...a}=e;return n=(0,r$.vE)(n,"dropdown-divider"),(0,K.jsx)(i,{ref:t,className:e9()(r,n),role:o,...a})});rq.displayName="DropdownDivider";var rW=rq;let rV=Z.forwardRef((e,t)=>{let{className:r,bsPrefix:n,as:i="div",role:o="heading",...a}=e;return n=(0,r$.vE)(n,"dropdown-header"),(0,K.jsx)(i,{ref:t,className:e9()(r,n),role:o,...a})});rV.displayName="DropdownHeader";var rG=rV;let rK=void 0!==r.g&&r.g.navigator&&"ReactNative"===r.g.navigator.product;var rZ="undefined"!=typeof document||rK?Z.useLayoutEffect:Z.useEffect;new WeakMap;let rY=["onKeyDown"];function rJ(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function rX(e){return!e||"#"===e.trim()}let rQ=Z.forwardRef((e,t)=>{let{onKeyDown:r}=e,n=rJ(e,rY),[i]=rv(Object.assign({tagName:"a"},n)),o=td(e=>{i.onKeyDown(e),null==r||r(e)});return rX(n.href)||"button"===n.role?(0,K.jsx)("a",Object.assign({ref:t},n,i,{onKeyDown:o})):(0,K.jsx)("a",Object.assign({ref:t},n,{onKeyDown:r}))});rQ.displayName="Anchor";var r0=rQ;let r1=Z.forwardRef((e,t)=>{let{bsPrefix:r,className:n,eventKey:i,disabled:o=!1,onClick:a,active:s,as:l=r0,...c}=e,u=(0,r$.vE)(r,"dropdown-item"),[d,h]=rE({key:i,href:c.href,disabled:o,onClick:a,active:s});return(0,K.jsx)(l,{...c,...d,ref:t,className:e9()(n,u,h.isActive&&"active",o&&"disabled")})});r1.displayName="DropdownItem";var r2=r1;let r4=Z.forwardRef((e,t)=>
25{let{className:r,bsPrefix:n,as:i="span",...o}=e;return n=(0,r$.vE)(n,"dropdown-item-text"),(0,K.jsx)(i,{ref:t,className:e9()(r,n),...o})});r4.displayName="DropdownItemText";var r3=r4;let r6=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;function r5(e,t){let r=r6(e),n=r6(t);return e=>{r&&r(e),n&&n(e)}}var r8=function(e,t){return(0,Z.useMemo)(()=>r5(e,t),[e,t])};let r7=Z.createContext(null);r7.displayName="InputGroupContext";var r9=r7;let ne=Z.createContext(null);ne.displayName="NavbarContext";var nt=ne;function nr(e,t){return e}function nn(e,t,r){let n=r?"top-end":"top-start",i=r?"top-start":"top-end",o=r?"bottom-end":"bottom-start",a=r?"bottom-start":"bottom-end",s=r?"right-start":"left-start",l=r?"right-end":"left-end",c=r?"left-start":"right-start",u=r?"left-end":"right-end",d=e?a:o;return"up"===t?d=e?i:n:"end"===t?d=e?u:c:"start"===t?d=e?l:s:"down-centered"===t?d="bottom":"up-centered"===t&&(d="top"),d}let ni=Z.forwardRef((e,t)=>{let{bsPrefix:r,className:n,align:i,rootCloseEvent:o,flip:a=!0,show:s,renderOnMount:l,as:c="div",popperConfig:u,variant:d,...h}=e,p=!1,f=(0,Z.useContext)(nt),m=(0,r$.vE)(r,"dropdown-menu"),{align:g,drop:y,isRTL:v}=(0,Z.useContext)(rz);i=i||g;let b=(0,Z.useContext)(r9),_=[];if(i){if("object"==typeof i){let e=Object.keys(i);if(e.length){let t=e[0],r=i[t];p="start"===r,_.push("".concat(m,"-").concat(t,"-").concat(r))}}else"end"===i&&(p=!0)}let w=nn(p,y,v),[S,{hasShown:k,popper:x,show:E,toggle:T}]=tQ({flip:a,rootCloseEvent:o,show:s,usePopper:!f&&0===_.length,offset:[0,2],popperConfig:u,placement:w});if(S.ref=r8(nr(t,"DropdownMenu"),S.ref),rZ(()=>{E&&(null==x||x.update())},[E]),!k&&!l&&!b)return null;"string"!=typeof c&&(S.show=E,S.close=()=>null==T?void 0:T(!1),S.align=i);let A=h.style;return null!=x&&x.placement&&(A={...h.style,...S.style},h["x-placement"]=x.placement),(0,K.jsx)(c,{...h,...S,style:A,...(_.length||f)&&{"data-bs-popper":"static"},className:e9()(n,m,E&&"show",p&&"".concat(m,"-end"),d&&"".concat(m,"-").concat(d),..._)})});ni.displayName="DropdownMenu";var no=ni;let na=Z.forwardRef((e,t)=>{let{as:r,bsPrefix:n,variant:i="primary",size:o,active:a=!1,disabled:s=!1,className:l,...c}=e,u=(0,r$.vE)(n,"btn"),[d,{tagName:h}]=rv({tagName:r,disabled:s,...c}),p=h;return(0,K.jsx)(p,{...d,...c,ref:t,disabled:s,className:e9()(l,u,a&&"active",i&&"".concat(u,"-").concat(i),o&&"".concat(u,"-").concat(o),c.href&&s&&"disabled")})});na.displayName="Button";var ns=na;let nl=Z.forwardRef((e,t)=>{let{bsPrefix:r,split:n,className:i,childBsPrefix:o,as:a=ns,...s}=e,l=(0,r$.vE)(r,"dropdown-toggle"),c=(0,Z.useContext)(tp);void 0!==o&&(s.bsPrefix=o);let[u]=rs();return u.ref=r8(u.ref,nr(t,"DropdownToggle")),(0,K.jsx)(a,{className:e9()(i,l,n&&"".concat(l,"-split"),(null==c?void 0:c.show)&&"show"),...u,...s})});nl.displayName="DropdownToggle";var nc=nl;let nu=Z.forwardRef((e,t)=>{let{bsPrefix:r,drop:n="down",show:i,className:o,align:a="start",onSelect:s,onToggle:l,focusFirstItemOnShow:c,as:u="div",navbar:d,autoClose:h=!0,...p}=rU(e,{show:"onToggle"}),f=(0,Z.useContext)(r9),m=(0,r$.vE)(r,"dropdown"),g=(0,r$.SC)(),y=e=>!1===h?"click"===e:"inside"===h?"rootClose"!==e:"outside"!==h||"select"!==e,v=td((e,t)=>{var r;(null==(r=t.originalEvent)||null==(r=r.target)||!r.classList.contains("dropdown-toggle")||"mousedown"!==t.source)&&(t.originalEvent.currentTarget===document&&("keydown"!==t.source||"Escape"===t.originalEvent.key)&&(t.source="rootClose"),y(t.source)&&(null==l||l(e,t)))}),b=nn("end"===a,n,g),_=(0,Z.useMemo)(()=>({align:a,drop:n,isRTL:g}),[a,n,g]),w={down:m,"down-centered":"".concat(m,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,K.jsx)(rz.Provider,{value:_,children:(0,K.jsx)(rN,{placement:b,show:i,onSelect:s,onToggle:v,focusFirstItemOnShow:c,itemSelector:".".concat(m,"-item:not(.disabled):not(:disabled)"),children:f?p.children:(0,K.jsx)(u,{...p,ref:t,className:e9()(o,i&&"show",w[n])})})})});nu.displayName="Dropdown";var nd=Object.assign(nu,{Toggle:nc,Menu:no,Item:r2,ItemText:r3,Divider:rW,Header:rG}),nh=e=>{let{menu:t}=e,[r,n]=(0,Z.useState)(!1),[i,o]=(0,Z.useState)(!1),[a,s]=(0,Z.useState)(!1),[l,c]=(0,Z.useState)(!1);(0,el.useRouter)();
25let[u,d]=(0,Z.useState)(e.selected?e.selected:"");return(0,K.jsx)(K.Fragment,{})},np=r(33778),nf=r(4298),nm=r.n(nf),ng=r(33299),ny=r(58239),nv=function(e){let{children:t}=e,r=(0,el.useRouter)(),{status:n}=(0,ng.useSession)(),i={};try{i=(0,ek.ej)("profile_update_cookie")?JSON.parse((0,ek.ej)("profile_update_cookie")):t.props.children[1].props.children.props.ironCookie}catch(e){console.log("errro in reading data",e)}let o=t.props.children[1].props.children.props.ironLogin;(null==t?void 0:null===(E=t.props)||void 0===E?void 0:null===(x=E.children[1])||void 0===x?void 0:null===(k=x.props)||void 0===k?void 0:null===(S=k.children)||void 0===S?void 0:null===(w=S.props)||void 0===w?void 0:null===(_=w.ironCookie)||void 0===_?void 0:null===(b=_.user)||void 0===b?void 0:b.email)&&t.props.children[1].props.children.props.ironCookie.user.email,(null==t?void 0:null===(O=t.props)||void 0===O?void 0:null===(I=O.children[1])||void 0===I?void 0:null===(P=I.props)||void 0===P?void 0:null===(C=P.children)||void 0===C?void 0:null===(A=C.props)||void 0===A?void 0:null===(T=A.ironCookie)||void 0===T?void 0:T.device_num)?t.props.children[1].props.children.props.ironCookie.device_num:(0,ek.Ki)()&&(0,ek.Ki)();let a="";eS.isMultiProfileActive&&(a=t.props.children[1].props.children.props.selectedProfile);let s=t.props.children[1].props.children.props.selectedProfile&&t.props.children[1].props.children.props.selectedProfile.profile_img?t.props.children[1].props.children.props.selectedProfile.profile_img:"",l=!!t.props.children[1].props.children.props.urls&&!!t.props.children[1].props.children.props.urls.subscriptionAPI,c=(null===(N=t.props.children[1].props.children.props.urls)||void 0===N?void 0:N.logURLV2)?(0,ek.tY)(t.props.children[1].props.children.props.urls.logURLV2):"",{store:u}=(0,Z.useContext)(es.ET),{dmsData:d}=u.getState(),{config:h}=eS.defaultUiConfig,p=d.urls.channelUIConfigURL?(0,ek.tY)(d.urls.channelUIConfigURL):"";p&&(p=p.replace("__JTV__CHANNEL__NAME__",eS.channelName));let f=eS.defaultUiConfig.config.home.menu_highlight_color?eS.defaultUiConfig.config.home.menu_highlight_color:eS.defaultUiConfig.config.basic.top_menu_highlight_color?eS.defaultUiConfig.config.basic.top_menu_highlight_color:"",m=eS.defaultUiConfig.config.home.menu_default_color?eS.defaultUiConfig.config.home.menu_default_color:eS.defaultUiConfig.config.basic.top_menu_default_color?eS.defaultUiConfig.config.basic.top_menu_default_color:"",g=!1,[y,v]=(0,Z.useState)(!1);var b,_,w,S,k,x,E,T,A,C,P,I,O,N,D,R,L,M,j=[];let B={},U={},F=[{keyMenu:"home",menuApi:d.urls.homeNavigationURL},{keyMenu:"livetv",menuApi:d.urls.liveItemEpgURL},{keyMenu:"movies",menuApi:d.urls.movieNavigationURL},{keyMenu:"ondemand",menuApi:d.urls.onDemandNavigationURL},{keyMenu:"shows",menuApi:d.urls.showsNavigationURL},{keyMenu:"genres",menuApi:d.urls.genreNavigationURL},{keyMenu:"channel/cineverse__row8",menuApi:d.urls.channelListURL},{keyMenu:"watchlist",menuApi:d.urls.personalNavigationURL},{keyMenu:"find",menuApi:d.urls.searchURL},{keyMenu:"playlist",menuApi:d.urls.personalNavigationURL},{keyMenu:"sparkshop",menuApi:d.urls.shopURL}];try{g=cast.framework.CastContext.getInstance().getCurrentSession(),B=new cast.framework.RemotePlayer,(U=new cast.framework.RemotePlayerController(B)).addEventListener(cast.framework.RemotePlayerEventType.IS_CONNECTED_CHANGED,(
25)=>{B.isConnected||(v(!0),U.removeEventListener(cast.framework.RemotePlayerEventType.IS_CONNECTED_CHANGED,()=>{}))})}catch(e){}i&&i.user&&i.user.prof_img&&i.user.prof_img,i&&i.user&&i.user.partner&&i.user.partner;let[H,z]=(0,Z.useState)(""),[$,q]=(0,Z.useState)(!1),[W,V]=(0,Z.useState)(!0),[G,Y]=(0,Z.useState)({width:void 0,height:void 0}),[J,X]=(0,Z.useState)(!1),Q=f,[ee,et]=(0,Z.useState)(""),[er,en]=(0,Z.useState)(""),ei=!1,eo=null!==(M=null===(L=t.props.children[1].props.children.props)||void 0===L?void 0:null===(R=L.ironCookie)||void 0===R?void 0:null===(D=R.user)||void 0===D?void 0:D.status)&&void 0!==M?M:"";(0,ek.IM)(eo);let ea="Sign In/Sign Up";(0,Z.useEffect)(()=>{et(a&&a.profile_name?a.profile_name:(0,ek.ej)("editProfileName")?(0,ek.ej)("editProfileName"):""),en((0,ek.ej)("editProfileImg")?(0,ek.ej)("editProfileImg"):s)},[(0,ek.ej)("editProfileName")]),(0,Z.useEffect)(()=>{en((0,ek.ej)("editProfileImg")?(0,ek.ej)("editProfileImg"):s)},[(0,ek.ej)("editProfileImg")]),(0,Z.useEffect)(()=>{function e(){Y({width:window.innerWidth,height:window.innerHeight}),V(!0)}return X(!1),window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[G.width]);let ec=e=>{if(!0===e){let e={ironCookie:i,urls:{logoutURL:d.urls.logoutURL}};(0,ek.FS)(e,function(e){q(e)},"headerCompound",c)}};function eu(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t.props.children[1].props.children.props.setIsLoadingdata&&t.props.children[1].props.children.props.setIsLoadingdata(!0),(0,ek.bY)("",t=>{ed(e,r,!0)},"showprofileview",!1,null,n)}function ed(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(X(!1),eS.isshop&&"/sparkshop"===e){var i;let e=(0,ek.tY)(null==d?void 0:null===(i=d.urls)||void 0===i?void 0:i.shopURL);e&&window.open(e,"_blank"),z(t);return}e&&((0,ek.d8)("navCat",e.replace("/","")),r.push({pathname:e||"/"},void 0,{shallow:n}),z(t))}let eh=[],ep={name:"Switch Profile",path:"/"};eh=i&&i.user&&(i.user.status==eS.userSubscribed&&"hoopla"!==i.user.partner||"active"==i.user.status)?[{name:"Account",path:"/account"},{name:"Sign Out",path:"/login"}]:i&&i.user&&"hoopla"==i.user.partner&&11==i.user.status?[{name:"Sign Out",path:"/login"}]:l?[{name:"Upgrade to Premium",path:"/plans"},{name:"Account",path:"/account"},{name:"Sign Out",path:"/login"}]:[{name:"Account",path:"/account"},{name:"Sign Out",path:"/login"}],eS.isMultiProfileActive&&d&&d.urls.addSubProfileURL&&a&&eh.splice(eh.length-1,0,ep);let ef={name:o?i&&i.user?i&&i.user&&i.user.fname&&i.user.fname.length>10?(0,K.jsx)("span",{id:"profile-name-header",className:eS.isDove?"dove-header-name":"",children:i.user.fname.substring(0,8)+"..."}):(0,K.jsx)("span",{id:"profile-name-header",className:eS.isDove?"dove-color-white":"",children:i.user.fname}):"Hello":ea,icon:(0,K.jsx)("span",{id:"profile_image-header",className:"profileImageIcon",children:(0,K.jsx)(eQ(),{src:s&&eS.isMultiProfileActive?er||eS.loginPathSrc:i&&i.user&&i.user.prof_img?i.user.prof_img:eS.loginPathSrc,alt:"user",width:14,height:14,className:o&&i&&i.user&&i.user.prof_img?"profileimg-thmb":"",priority:!0,id:"userProfileImg"})}),path:G.width<=1200?o?"/account":"/login":o?"":"/login",menu:o?eh:void 0,id:"signin"};(j=eS.navMainMenu)[j.length-1].id&&"signin"===j[j.length-1].id&&j.pop(),j.push(ef);let em=eS.navMainMenu,eg=[],ey={name:"Switch Profile",icon:(0,K.jsx)(eQ(),{src:"/images/icons/manageprofile.svg",alt:"home",width:14,height:14,priority:!0,style:eS.isDove?{filter:"invert(20%) sepia(9%) saturate(800%) hue-rotate(190deg) brightness(20%) contrast(74%)"}:null}),path:"/",id:"manageprofile"};if(eg=i&&i.user&&(i.user.status==eS.userSubscribed&&"hoopla"!==i.user.partner||"active"==i.user.status)?[{name:"Account",icon:(0,K.jsx)(eQ(),{src:"//images/icons/account.svg",alt:"home",width:14,height:14,priority:!0,style:eS.isDove?{filter:"invert(20%) sepia(9%) saturate(800%) hue-rotate(190deg) brightness(20%) contrast(74%)"}:null}),path:"/account",id:"account"},{name:"Sign Out",icon:(0,K.jsx)(eQ(),{src:"//images/icons/signout.svg",alt:"home",width:14,height:14,priority:!0,style:eS.isDove?{filter:"invert(20%) sepia(9%) saturate(800%) hue-rotate(190deg) brightness(20%) contrast(74%)"}:null}),path:"/login",id:"signout"}]:i&&i.user&&"hoopla"==i.user.partner&&11==i.user.status?[{name:"Sign Out",icon:(0,K.jsx)(eQ(),{src:"//images/icons/signout.svg",alt:"home",width:14,height:14,priority:!0,style:eS.isDove?{filter:"invert(20%) sepia(9%) saturate(800%) hue-rotate(190deg) brightness(20%) contrast(74%)"}:null}),path:"/login",id:"signout"}]:l?[{name:"Upgrade to Premium",icon:(0,K.jsx)(eQ(),{src:"//images/icons/premium.svg",alt:"home",width:14,height:14,priority:!0,className:"".concat(eS.isDove?"dove-icon-ham-bug":"")}),path:"/plans",id:"plan"},{name:"Account",icon:(0,K.jsx)(eQ(),{src:"//images/icons/account.svg",alt:"home",width:14,height:14,priority:!0,className:"".concat(eS.isDove?"dove-icon-ham-bug":"")}),path:"/account",id:"account"},{name:"Sign Out",icon:(0,K.jsx)(eQ(),{src:"//images/icons/signout.svg",alt:"home",width:14,height:14,priority:!0,className:"".concat(eS.isDove?"dove-icon-ham-bug":"")}),path:"/login",id:"signout"}]:[{name:"Account",icon:(0,K.jsx)(eQ(),{src:"//images/icons/account.svg",alt:"home",width:14,height:14,priority:!0,style:eS.isDove?{filter:"invert(20%) sepia(9%) saturate(800%) hue-rotate(190deg) brightness(20%) contrast(74%)"}:null}),path:"/account",id:"account"},{name:"Sign Out",icon:(0,K.jsx)(eQ(),{src:"//images/icons/signout.svg",alt:"home",width:14,height:14,priority:!0,style:eS.isDove?{filter:"invert(20%) sepia(9%) saturate(800%) hue-rotate(190deg) brightness(20%) contrast(74%)"}:null}),path:"/login",id:"signout"}],eS.isMultiProfileActive&&d&&d.urls.addSubProfileURL&&a&&eg.splice(eg.length-1,0,ey),o){let e=em.concat(eg);G.width<=1200&&(j=e)}let ev=e=>{let t="";return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)("div",{className:W?"nav__menu":eS.isDove?"dove_menu show-menu":"nav__menu show-menu",id:"nav-menu",children:[(0,K.jsx)(nb,{className:"nav nav__list",children:j.map((e,n)=>{let o,a;let s=e.menu,l="/"===r.pathname?"/home":r.asPath;r.pathname;let u=!1;if("signin"==e.id||"account"==e.id||"signout"==e.id||"manageprofile"==e.id||"plan"==e.id?u=!0:F.map((t,r)=>
25{e.id==t.keyMenu&&void 0!==t.menuApi&&""!==t.menuApi&&(u=!0)}),u){r.pathname=="/"+e.id||l==="/"+e.id?(o=eS.isDove?"#353a47e6":m,a=eS.svgFilter):"/account"===r.pathname||"/account"===l?"signin"==e.id&&(ei=!0):(o=m,a="none");let u=(0,ek.ej)("user_stat")?(0,ek.ej)("user_stat"):1;if(1==u||u==eS.userSubscribed&&"Upgrade to Premium"!=e.name)return(0,K.jsx)(e3,{className:t,id:e.id,onClick:()=>{if(V(!W),"Sign Out"==e.name){q(!0);let e={ironCookie:i,urls:{logoutURL:d.urls.logoutURL}};(0,ek.FS)(e,function(e){q(e)},"headerCompound",c)}else"Switch Profile"==e.name?eu(e.path,n):i&&i.user&&i.user.partner&&"hoopla"==i.user.partner&&"/account"==e.path||ed(e.path,n)},children:e.menu?(0,K.jsxs)(nd,{className:"dropdown-box-align",onMouseOver:()=>{G.width>1200&&X(!0)},onMouseLeave:()=>{G.width>1200&&X(!1)},children:[(0,K.jsx)(nd.Toggle,{as:"span",variant:"dark",className:"dropdown-toggle-box",id:"dropdown-basic",children:(0,K.jsxs)("div",{className:"profile-menu-div",children:[(0,K.jsx)(n_,{className:"profileImageIcon",isaccountPage:ei,children:e.icon}),(0,K.jsx)("div",{id:"signin"!=e.id?e.id+n:"profile_nameDiv",className:eS.isDove?"menu-inner-spn spacebtn-logo-dropdown ":"menu-inner-spn spacebtn-logo-dropdown profile-name-div",children:(0,K.jsx)("span",{className:eS.isDove?"dove-header-name":"",id:"profile-name-header",children:ee||e.name})})]})}),G.width>1200&&(0,K.jsx)(nd.Menu,{className:"dropdown-menu-fontsize",renderOnMount:!1,variant:"dark",bg:"rgba(25,25,25,1)",show:G.width<=550?!J:J,children:Object.keys(e.menu).length>0&&s.map(e=>{if(1==u||u==eS.userSubscribed&&"Upgrade to Premium"!=e.name)return(0,K.jsxs)(nd.Item,{onClick:()=>{if("Sign Out"==e.name){q(!0);let e={ironCookie:i,urls:{logoutURL:d.urls.logoutURL}};(0,ek.FS)(e,function(e){q(e)},"headerCompound",c)}else"Switch Profile"==e.name?(eu(e.path),(0,ek.d8)("profileredirectpath","")):ed(e.path);X(!1)},children:[e.img?(0,K.jsx)(eQ(),{src:e.img,width:14,height:14,alt:"menuData"}):(0,K.jsx)("div",{}),e.name]},e.name)})})]}):(0,K.jsxs)("span",{children:[(0,K.jsx)("span",{style:{filter:a},children:e.icon},"span2_"+n),(0,K.jsx)(e8,{style:{marginLeft:13,color:o},menuUnderLineColor:Q,children:e.name},"span3_"+n)]},"span1_"+n)},"menu_"+n)}})}),(0,K.jsx)("div",{className:eS.isDove?"dove_nav__close":"nav__close",id:"nav-close",onClick:()=>V(!W),children:(0,K.jsx)(eQ(),{src:"//images/icons/svg-cons/hamburger_side.svg",width:"32",height:"32",alt:"hamburger-image",priority:!0,className:"".concat(eS.isDove?"dove-icon-ham-bug":"")})})]}),W?(0,K.jsx)("div",{className:eS.isDove?"dove_nav__toggle":"nav__toggle",id:"nav-toggle",onClick:()=>V(!W),children:(0,K.jsx)(eQ(),{src:"//images/icons/svg-cons/hamburger.svg",width:"32",height:"32",alt:"hamburger-image",priority:!0,className:"".concat(eS.isDove?"dove-icon-ham-bug":"")})}):(0,K.jsx)(K.Fragment,{})]})},eb=()=>{V(!W)};return(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)(eW,{children:[(0,K.jsx)(nh,{changeLogoutState:e=>ec(e),showModal:e=>q(e),menu:j,callback:e=>z(e),selected:H}),(0,K.jsxs)(eY,{className:"nav-space",children:[(0,K.jsx)(eV.Z,{menuOpen:W,colapsemenu:eb}),(0,K.jsx)(ev,{...t.props})]}),g&&!y&&(0,ek.FM)()&&"watch"!==window.location.pathname.substring(window.location.pathname.indexOf("/")+1).split("/")[0].trim()&&(0,K.jsx)("div",{className:"floating_overlay-container",children:(0,K.jsx)(e1,{poster:U&&U.g&&U.g.mediaInfo&&U.g.mediaInfo.metadata&&U.g.mediaInfo.metadata.posterImg,title:U&&U.g&&U.g.mediaInfo&&U.g.mediaInfo.metadata&&U.g.mediaInfo.metadata.title,titleImg:U&&U.g&&U.g.mediaInfo&&U.g.mediaInfo.metadata&&U.g.mediaInfo.metadata.titleImg,device:g&&g.Ya&&g.Ya.friendlyName,titleImageWidth:U&&U.f&&U.f.media&&U.f.media.metadata.dimension&&U.f.media.metadata.dimension.width,titleImageHeight:U&&U.f&&U.f.media&&U.f.media.metadata.dimension&&U.f.media.metadata.dimension.height,playerController:U})}),t,$&&(0,K.jsx)(np.Z,{open:$}),(0,K.jsx)(nm(),{defer:!0,src:"//imasdk.googleapis.com/js/sdkloader/ima3.js"}),(0,K.jsx)(nm(),{defer:!0,src:"https://cdn.sc.gl/videojs-hotkeys/latest/videojs.hotkeys.min.js"})]})})};let nb=ez.ZP.ul.withConfig({componentId:"sc-d7f16d6a-0"})([".selected .menu-inner-spn{color:",";font-weight:500;}.menu-inner-spn:hover:after{width:100%;height:1px;background-color:",";}.active{color:",";}.selected img{filter:",";}@media only screen and (max-width:1478px) and (min-width:1195px){margin-left:1rem !important;}"],eS.menuTextHoverColor,eS.menuTextHoverColor,eS.menuTextHoverColor,eS.svgFilter),n_=ez.ZP.div.withConfig({componentId:"sc-d7f16d6a-1"})([".profileImageIcon{filter:",";}"],e=>e.isaccountPage?eS.svgFilter:"");var nw=r(78071),nS=e=>(nw.lW.isBuffer(e)?e:nw.lW.from(e)).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),nk={encryption:{saltBits:256,algorithm:"aes-256-cbc",iterations:1,minPasswordlength:32},integrity:{saltBits:256,algorithm:"sha256",iterations:1,minPasswordlength:32},ttl:0,timestampSkewSec:60,localtimeOffsetMsec:0},nx=e=>({...e,encryption:{...e.encryption},integrity:{...e.integrity}}),nE={"aes-128-ctr":{keyBits:128,ivBits:128,name:"AES-CTR"},"aes-256-cbc":{keyBits:256,ivBits:128,name:"AES-CBC"},sha256:{keyBits:256,name:"SHA-256"}},nT="2",nA=`Fe26.${nT}`,nC=(e,t)=>{let r=nw.lW.allocUnsafe(t);return e.getRandomValues(r),r},nP=(e,t)=>
25{if(t<1)throw Error("Invalid random bits count");return nC(e,Math.ceil(t/8))},nI=async(e,t,r,n,i,o)=>{let a=new TextEncoder,s=a.encode(t),l=await e.subtle.importKey("raw",s,"PBKDF2",!1,["deriveBits"]),c={name:"PBKDF2",hash:o,salt:a.encode(r),iterations:n},u=await e.subtle.deriveBits(c,l,8*i);return nw.lW.from(u)},nO=async(e,t,r)=>{var n;if(null==t||!t.length)throw Error("Empty password");if(null==r||"object"!=typeof r)throw Error("Bad options");if(!(r.algorithm in nE))throw Error(`Unknown algorithm: ${r.algorithm}`);let i=nE[r.algorithm],o={},a=null!=(n=r.hmac)&&n,s=a?{name:"HMAC",hash:i.name}:{name:i.name},l=a?["sign","verify"]:["encrypt","decrypt"];if("string"==typeof t){if(t.length<r.minPasswordlength)throw Error(`Password string too short (min ${r.minPasswordlength} characters required)`);let{salt:n=""}=r;if(!n){let{saltBits:t=0}=r;if(!t)throw Error("Missing salt and saltBits options");n=nP(e,t).toString("hex")}let a=await nI(e,t,n,r.iterations,i.keyBits/8,"SHA-1"),c=await e.subtle.importKey("raw",a,s,!1,l);o.key=c,o.salt=n}else{if(t.length<i.keyBits/8)throw Error("Key buffer (password) too small");o.key=await e.subtle.importKey("raw",t,s,!1,l),o.salt=""}return r.iv?o.iv=r.iv:"ivBits"in i&&(o.iv=nP(e,i.ivBits)),o},nN=async(e,t,r,n)=>{let i=await nO(e,t,r),o=new TextEncoder().encode(n),a=await e.subtle.encrypt({name:nE[r.algorithm].name,iv:i.iv},i.key,o);return{encrypted:nw.lW.from(a),key:i}},nD=async(e,t,r,n)=>{let i=await nO(e,t,r),o=await e.subtle.decrypt({name:nE[r.algorithm].name,iv:i.iv},i.key,nw.lW.isBuffer(n)?n:nw.lW.from(n));return new TextDecoder().decode(o)},nR=async(e,t,r,n)=>{let i=await nO(e,t,{...r,hmac:!0}),o=new TextEncoder().encode(n),a=await e.subtle.sign({name:"HMAC"},i.key,o);return{digest:nS(nw.lW.from(a)),salt:i.salt}},nL=e=>"object"!=typeof e||nw.lW.isBuffer(e)?{encryption:e,integrity:e}:"secret"in e?{id:e.id,encryption:e.secret,integrity:e.secret}:{id:e.id,encryption:e.encryption,integrity:e.integrity},nM=async(e,t,r,n)=>{if(!r)throw Error("Empty password");let i=nx(n),o=Date.now()+(i.localtimeOffsetMsec||0),a=JSON.stringify(t),s=nL(r),{id:l=""}=s;if(l&&!/^\w+$/.test(l))throw Error("Invalid password id");let{encrypted:c,key:u}=await nN(e,s.encryption,i.encryption,a),d=nS(c),h=nS(u.iv),p=i.ttl?o+i.ttl:"",f=`${nA}*${l}*${u.salt}*${h}*${d}*${p}`,m=await nR(e,s.integrity,i.integrity,f);return`${f}*${m.salt}*${m.digest}`},nj=(e,t)=>{let r=e.length===t.length?0:1;r&&(t=e);for(let n=0;n<e.length;n+=1)r|=e.charCodeAt(n)^t.charCodeAt(n);return 0===r},nB=async(e,t,r,n)=>{let i;if(!r)throw Error("Empty password");let o=nx(n),a=Date.now()+(o.localtimeOffsetMsec||0),s=t.split("*");if(8!==s.length)throw Error("Incorrect number of sealed components");let l=s[0],c=s[1],u=s[2],d=s[3],h=s[4],p=s[5],f=s[6],m=s[7],g=`${l}*${c}*${u}*${d}*${h}*${p}`;if(nA!==l)throw Error("Wrong mac prefix");if(p){if(!/^\d+$/.exec(p))throw Error("Invalid expiration");if(parseInt(p,10)<=a-1e3*o.timestampSkewSec)throw Error("Expired seal")}if(void 0===r||"string"==typeof r&&0===r.length)throw Error("Empty password");if("object"!=typeof r||nw.lW.isBuffer(r))i=r;else{if(!((c||"default")in r))throw Error(`Cannot find password: ${c}`);i=r[c||"default"]}i=nL(i);let y=o.integrity;if(y.salt=f,!nj((await nR(e,i.integrity,y,g)).digest,m))throw Error("Bad hmac value");let v=nw.lW.from(h,"base64"),b=o.encryption;b.salt=u,b.iv=nw.lW.from(d,"base64");let _=await nD(e,i.encryption,b,v);return _?JSON.parse(_):null},nU=r(76489),nF=r(72043);function nH(e,t){let r=0;if(1===e.length)return e[0];for(let n=e.length-1;n>=0;n--)r+=e[e.length-1-n]*Math.pow(2,t*n);return r}function nz(e,t,r=-1){let n=r,i=e,o=0,a=Math.pow(2,t);for(let r=1;r<8;r++){if(e<a){let e;if(n<0)e=new ArrayBuffer(r),o=r;else{if(n<r)return new ArrayBuffer(0);e=new ArrayBuffer(n),o=n}let a=new Uint8Array(e);for(let e=r-1;e>=0;e--){let r=Math.pow(2,e*t);a[o-e-1]=Math.floor(i/r),i-=a[o-e-1]*r}return e}a*=Math.pow(2,t)}return new ArrayBuffer(0)}function n$(...e){let t=0,r=0;for(let r of e)t+=r.length;let n=new Uint8Array(new ArrayBuffer(t));for(let t of e)n.set(t,r),r+=t.length;return n}function nq(){let e=new Uint8Array(this.valueHex);if(this.valueHex.byteLength>=2){let t=255===e[0]&&128&e[1],r=0===e[0]&&(128&e[1])==0;(t||r)&&this.warnings.push("Needlessly long format")}let t=new Uint8Array(new ArrayBuffer(this.valueHex.byteLength));for(let e=0;e<this.valueHex.byteLength;e++)t[e]=0;t[0]=128&e[0];let r=nH(t,8),n=new Uint8Array(new ArrayBuffer(this.valueHex.byteLength));for(let t=0;t<this.valueHex.byteLength;t++)n[t]=e[t];return n[0]&=127,nH(n,8)-r}function nW(e){let t=e<0?-1*e:e,r=128;for(let n=1;n<8;n++){if(t<=r){if(e<0){let e=nz(r-t,8,n),i=new Uint8Array(e);return i[0]|=128,e}let i=nz(t,8,n),o=new Uint8Array(i);if(128&o[0]){let e=i.slice(0),t=new Uint8Array(e);o=new Uint8Array(i=new ArrayBuffer(i.byteLength+1));for(let r=0;r<e.byteLength;r++)o[r+1]=t[r];o[0]=0}return i}r*=256}return new ArrayBuffer(0)}function nV(e,t){if(e.byteLength!==t.byteLength)return!1;let r=new Uint8Array(e),n=new Uint8Array(t);for(let e=0;e<r.length;e++)if(r[e]!==n[e])return!1;return!0}function nG(e,t){let r=e.toString(10);if(t<r.length)return"";let n=t-r.length,i=Array(n);for(let e=0;e<n;e++)i[e]="0";return i.join("").concat(r)}function nK(){if("undefined"==typeof BigInt)throw Error("BigInt is not defined. Your environment doesn't implement BigInt.")}function nZ(e){let t=0,r=0;for(let r=0;r<e.length;r++)t+=e[r].byteLength;let n=new Uint8Array(t);for(let t=0;t<e.length;t++){let i=e[t];n.set(new Uint8Array(i),r),r+=i.byteLength}return n.buffer}function nY(e,t,r,n){return t instanceof Uint8Array?t.byteLength?r<0?(e.error="Wrong parameter: inputOffset less than zero",!1):n<0?(e.error="Wrong parameter: inputLength less than zero",!1):!(t.byteLength-r-n<0)||(e.error="End of input reached before message was fully decoded (inconsistent offset and length values)",!1):(e.error="Wrong parameter: inputBuffer has zero length",!1):(e.error="Wrong parameter: inputBuffer must be 'Uint8Array'",!1)}class nJ{constructor(){this.items=[]}write(e){this.items.push(e)}final(){return nZ(this.items)}}let nX=[new Uint8Array([1])],nQ="0123456789",n0="name",n1="valueHexView",n2="isHexOnly",n4="idBlock",n3="tagClass",n6="tagNumber",n5="isConstructed",n8="fromBER",n7="toBER",n9="local",ie="",it=new ArrayBuffer(0),ir=new Uint8Array(0),ii="EndOfContent",io="OCTET STRING",ia="BIT STRING";function is(e){var t;return(t=class extends e{constructor(...e){var t;super(...e);let r=e[0]||{};this.isHexOnly=null!==(t=r.isHexOnly)&&void 0!==t&&t,this.valueHexView=r.valueHex?nF.vJ.toUint8Array(r.valueHex):ir}get valueHex(){return this.valueHexView.slice().buffer}set valueHex(e){this.valueHexView=new Uint8Array(e)}fromBER(e,t,r){let n=e instanceof ArrayBuffer?new Uint8Array(e):e;if(!nY(this,n,t,r))return -1;let i=t+r;return(this.valueHexView=n.subarray(t,i),this.valueHexView.length)?(this.blockLength=r,
vendor: 4,520 bytes, line 25
25i):(this.warnings.push("Zero buffer length"),t)}toBER(e=!1){return this.isHexOnly?e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.byteLength===this.valueHexView.buffer.byteLength?this.valueHexView.buffer:this.valueHexView.slice().buffer:(this.error="Flag 'isHexOnly' is not set, abort",it)}toJSON(){return{...super.toJSON(),isHexOnly:this.isHexOnly,valueHex:nF.ep.ToHex(this.valueHexView)}}}).NAME="hexBlock",t}class il{constructor({blockLength:e=0,error:t=ie,warnings:r=[],valueBeforeDecode:n=ir}={}){this.blockLength=e,this.error=t,this.warnings=r,this.valueBeforeDecodeView=nF.vJ.toUint8Array(n)}static blockName(){return this.NAME}get valueBeforeDecode(){return this.valueBeforeDecodeView.slice().buffer}set valueBeforeDecode(e){this.valueBeforeDecodeView=new Uint8Array(e)}toJSON(){return{blockName:this.constructor.NAME,blockLength:this.blockLength,error:this.error,warnings:this.warnings,valueBeforeDecode:nF.ep.ToHex(this.valueBeforeDecodeView)}}}il.NAME="baseBlock";class ic extends il{fromBER(e,t,r){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}toBER(e,t){throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'")}}ic.NAME="valueBlock";class iu extends is(il){constructor({idBlock:e={}}={}){var t,r,n,i;super(),e?(this.isHexOnly=null!==(t=e.isHexOnly)&&void 0!==t&&t,this.valueHexView=e.valueHex?nF.vJ.toUint8Array(e.valueHex):ir,this.tagClass=null!==(r=e.tagClass)&&void 0!==r?r:-1,this.tagNumber=null!==(n=e.tagNumber)&&void 0!==n?n:-1,this.isConstructed=null!==(i=e.isConstructed)&&void 0!==i&&i):(this.tagClass=-1,this.tagNumber=-1,this.isConstructed=!1)}toBER(e=!1){let t=0;switch(this.tagClass){case 1:t|=0;break;case 2:t|=64;break;case 3:t|=128;break;case 4:t|=192;break;default:return this.error="Unknown tag class",it}if(this.isConstructed&&(t|=32),this.tagNumber<31&&!this.isHexOnly){let r=new Uint8Array(1);if(!e){let e=this.tagNumber;e&=31,t|=e,r[0]=t}return r.buffer}if(!this.isHexOnly){let r=nz(this.tagNumber,7),n=new Uint8Array(r),i=r.byteLength,o=new Uint8Array(i+1);if(o[0]=31|t,!e){for(let e=0;e<i-1;e++)o[e+1]=128|n[e];o[i]=n[i-1]}return o.buffer}let r=new Uint8Array(this.valueHexView.byteLength+1);if(r[0]=31|t,!e){let e=this.valueHexView;for(let t=0;t<e.length-1;t++)r[t+1]=128|e[t];r[this.valueHexView.byteLength]=e[e.length-1]}return r.buffer}fromBER(e,t,r){let n=nF.vJ.toUint8Array(e);if(!nY(this,n,t,r))return -1;let i=n.subarray(t,t+r);if(0===i.length)return this.error="Zero buffer length",-1;switch(192&i[0]){case 0:this.tagClass=1;break;case 64:this.tagClass=2;break;case 128:this.tagClass=3;break;case 192:this.tagClass=4;break;default:return this.error="Unknown tag class",-1}this.isConstructed=(32&i[0])==32,this.isHexOnly=!1;let o=31&i[0];if(31!==o)this.tagNumber=o,this.blockLength=1;else{let e=1,t=this.valueHexView=new Uint8Array(255),r=255;for(;128&i[e];){if(t[e-1]=127&i[e],++e>=i.length)return this.error="End of input reached before message was fully decoded",-1;if(e===r){let e=new Uint8Array(r+=255);for(let r=0;r<t.length;r++)e[r]=t[r];t=this.valueHexView=new Uint8Array(r)}}this.blockLength=e+1,t[e-1]=127&i[e];let n=new Uint8Array(e);for(let r=0;r<e;r++)n[r]=t[r];(t=this.valueHexView=new Uint8Array(e)).set(n),this.blockLength<=9?this.tagNumber=nH(t,7):(this.isHexOnly=!0,this.warnings.push("Tag too long, represented as hex-coded"))}if(1===this.tagClass&&this.isConstructed)switch(this.tagNumber){case 1:case 2:case 5:case 6:case 9:case 13:case 14:case 23:case 24:case 31:case 32:case 33:case 34:return this.error="Constructed encoding used for primitive type",-1}return t+this.blockLength}toJSON(){return{...super.toJSON(),tagClass:this.tagClass,tagNumber:this.tagNumber,isConstructed:this.isConstructed}}}iu.NAME="identificationBlock";class id extends il{constructor({lenBlock:e={}}={}){var t,r,n;super(),this.isIndefiniteForm=null!==(t=e.isIndefiniteForm)&&void 0!==t&&t,this.longFormUsed=null!==(r=e.longFormUsed)&&void 0!==r&&r,this.length=null!==(n=e.length)&&void 0!==n?n:0}fromBER(e,t,r){let n=nF.vJ.toUint8Array(e);if(!nY(this,n,t,r))return -1;let i=n.subarray(t,t+r);if(0===i.length)return this.error="Zero buffer length",-1;if(255===i[0])return this.error="Length block 0xFF is reserved by standard",-1;if(this.isIndefiniteForm=128===i[0],this.isIndefiniteForm)return this.blockLength=1,t+this.blockLength;if(this.longFormUsed=!!(128&i[0]),!1===this.longFormUsed)return this.length=i[0],this.blockLength=1,t+this.blockLength;let o=127&i[0];if(o>
258)return this.error="Too big integer",-1;if(o+1>i.length)return this.error="End of input reached before message was fully decoded",-1;let a=t+1,s=n.subarray(a,a+o);return 0===s[o-1]&&this.warnings.push("Needlessly long encoded length"),this.length=nH(s,8),this.longFormUsed&&this.length<=127&&this.warnings.push("Unnecessary usage of long length form"),this.blockLength=o+1,t+this.blockLength}toBER(e=!1){let t,r;if(this.length>127&&(this.longFormUsed=!0),this.isIndefiniteForm)return t=new ArrayBuffer(1),!1===e&&((r=new Uint8Array(t))[0]=128),t;if(this.longFormUsed){let n=nz(this.length,8);if(n.byteLength>127)return this.error="Too big length",it;if(t=new ArrayBuffer(n.byteLength+1),e)return t;let i=new Uint8Array(n);(r=new Uint8Array(t))[0]=128|n.byteLength;for(let e=0;e<n.byteLength;e++)r[e+1]=i[e];return t}return t=new ArrayBuffer(1),!1===e&&((r=new Uint8Array(t))[0]=this.length),t}toJSON(){return{...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,longFormUsed:this.longFormUsed,length:this.length}}}id.NAME="lengthBlock";let ih={};class ip extends il{constructor({name:e=ie,optional:t=!1,primitiveSchema:r,...n}={},i){super(n),this.name=e,this.optional=t,r&&(this.primitiveSchema=r),this.idBlock=new iu(n),this.lenBlock=new id(n),this.valueBlock=i?new i(n):new ic(n)}fromBER(e,t,r){let n=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?r:this.lenBlock.length);return -1===n?this.error=this.valueBlock.error:(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength)),n}toBER(e,t){let r=t||new nJ;t||im(this);let n=this.idBlock.toBER(e);if(r.write(n),this.lenBlock.isIndefiniteForm)r.write(new Uint8Array([128]).buffer),this.valueBlock.toBER(e,r),r.write(new ArrayBuffer(2));else{let t=this.valueBlock.toBER(e);this.lenBlock.length=t.byteLength;let n=this.lenBlock.toBER(e);r.write(n),r.write(t)}return t?it:r.final()}toJSON(){let e={...super.toJSON(),idBlock:this.idBlock.toJSON(),lenBlock:this.lenBlock.toJSON(),valueBlock:this.valueBlock.toJSON(),name:this.name,optional:this.optional};return this.primitiveSchema&&(e.primitiveSchema=this.primitiveSchema.toJSON()),e}toString(e="ascii"){return"ascii"===e?this.onAsciiEncoding():nF.ep.ToHex(this.toBER())}onAsciiEncoding(){return`${this.constructor.NAME} : ${nF.ep.ToHex(this.valueBlock.valueBeforeDecodeView)}`}isEqual(e){return this===e||e instanceof this.constructor&&nV(this.toBER(),e.toBER())}}function im(e){if(e instanceof ih.Constructed)for(let t of e.valueBlock.value)im(t)&&(e.lenBlock.isIndefiniteForm=!0);return!!e.lenBlock.isIndefiniteForm}ip.NAME="BaseBlock";class ig extends ip{constructor({value:e=ie,...t}={},r){super(t,r),e&&this.fromString(e)}getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}fromBER(e,t,r){let n=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?r:this.lenBlock.length);return -1===n?this.error=this.valueBlock.error:(this.fromBuffer(this.valueBlock.valueHexView),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength)),n}onAsciiEncoding(){return`${this.constructor.NAME} : '${this.valueBlock.value}'`}}ig.NAME="BaseStringBlock";class iy extends is(ic){constructor({isHexOnly:e=!0,...t}={}){super(t),this.isHexOnly=e}}iy.NAME="PrimitiveValueBlock";class iv extends ip{constructor(e={}){super(e,iy),this.idBlock.isConstructed=!1}}function ib(e,t){if(e instanceof t)return e;let r=new t;return r.idBlock=e.idBlock,r.lenBlock=e.lenBlock,r.warnings=e.warnings,r.valueBeforeDecodeView=e.valueBeforeDecodeView,r}function i_(e,t=0,r=e.length){let n=t,i=new ip({},ic),o=new il;if(!nY(o,e,t,r))return i.error=o.error,{offset:-1,result:i};if(!e.subarray(t,t+r).length)return i.error="Zero buffer length",{offset:-1,result:i};let a=i.idBlock.fromBER(e,t,r);if(i.idBlock.warnings.length&&i.warnings.concat(i.idBlock.warnings),-1===a)return i.error=i.idBlock.error,{offset:-1,result:i};if(t=a,r-=i.idBlock.blockLength,a=i.lenBlock.fromBER(e,t,r),i.lenBlock.warnings.length&&i.warnings.concat(i.lenBlock.warnings),-1===a)return i.error=i.lenBlock.error,{offset:-1,result:i};if(t=a,r-=i.lenBlock.blockLength,!i.idBlock.isConstructed&&i.lenBlock.isIndefiniteForm)return i.error="Indefinite length form used for primitive encoding form",{offset:-1,result:i};let s=ip;if(1===i.idBlock.tagClass){if(i.idBlock.tagNumber>=37&&!1===i.idBlock.isHexOnly)return i.error="UNIVERSAL 37 and upper tags are reserved by ASN.1 standard",{offset:-1,result:i};switch(i.idBlock.tagNumber){case 0:if(i.idBlock.isConstructed&&i.lenBlock.length>0)return i.error="Type [UNIVERSAL 0] is reserved",{offset:-1,result:i};s=ih.EndOfContent;break;case 1:s=ih.Boolean;break;case 2:s=ih.Integer;break;case 3:s=ih.BitString;break;case 4:s=ih.OctetString;break;case 5:s=ih.Null;break;case 6:s=ih.ObjectIdentifier;break;case 10:s=ih.Enumerated;break;case 12:s=ih.Utf8String;break;case 13:s=ih.RelativeObjectIdentifier;break;case 14:s=ih.TIME;break;case 15:return i.error="[UNIVERSAL 15] is reserved by ASN.1 standard",{offset:-1,result:i};case 16:s=ih.Sequence;break;case 17:s=ih.Set;break;case 18:s=ih.NumericString;break;case 19:s=ih.PrintableString;break;case 20:s=ih.TeletexString;break;case 21:s=ih.VideotexString;break;case 22:s=ih.IA5String;break;case 23:s=ih.UTCTime;break;case 24:s=ih.GeneralizedTime;break;case 25:s=ih.GraphicString;break;case 26:s=ih.VisibleString;break;case 27:s=ih.GeneralString;break;case 28:s=ih.UniversalString;break;case 29:s=ih.CharacterString;break;case 30:s=ih.BmpString;break;case 31:s=ih.DATE;break;case 32:s=ih.TimeOfDay;break;case 33:s=ih.DateTime;break;case 34:s=ih.Duration;break;default:{let e=i.idBlock.isConstructed?new ih.Constructed:new ih.Primitive;e.idBlock=i.idBlock,e.lenBlock=i.lenBlock,e.warnings=i.warnings,i=e}}}else s=i.idBlock.isConstructed?ih.Constructed:ih.Primitive;return a=(i=ib(i,s)).fromBER(e,t,i.lenBlock.isIndefiniteForm?r:i.lenBlock.length),i.valueBeforeDecodeView=e.subarray(n,n+i.blockLength),{offset:a,result:i}}function iw(e){if(!e.byteLength){let e=new ip({},ic);return e.error="Input buffer has zero length",{offset:-1,result:e}}return i_(nF.vJ.toUint8Array(e).slice(),0,e.byteLength)}function iS(e,t){return e?1:t}i=iv,(()=>{ih.Primitive=i})(),iv.NAME="PRIMITIVE";class ik extends ic{constructor({value:e=[],isIndefiniteForm:t=!1,...r}={}){super(r),this.value=e,this.isIndefiniteForm=t}fromBER(e,t,r){let n=nF.vJ.toUint8Array(e);if(!nY(this,n,t,r))return -1;if(this.valueBeforeDecodeView=n.subarray(t,t+r),0===this.valueBeforeDecodeView.length)return this.warnings.push("Zero buffer length"),t;let i=t;for(;iS(this.isIndefiniteForm,r)>0;){let e=i_(n,i,r);if(-1===e.offset)return this.error=e.result.error,this.warnings.concat(e.result.warnings),-1;
25if(i=e.offset,this.blockLength+=e.result.blockLength,r-=e.result.blockLength,this.value.push(e.result),this.isIndefiniteForm&&e.result.constructor.NAME===ii)break}return this.isIndefiniteForm&&(this.value[this.value.length-1].constructor.NAME===ii?this.value.pop():this.warnings.push("No EndOfContent block encoded")),i}toBER(e,t){let r=t||new nJ;for(let t=0;t<this.value.length;t++)this.value[t].toBER(e,r);return t?it:r.final()}toJSON(){let e={...super.toJSON(),isIndefiniteForm:this.isIndefiniteForm,value:[]};for(let t of this.value)e.value.push(t.toJSON());return e}}ik.NAME="ConstructedValueBlock";class ix extends ip{constructor(e={}){super(e,ik),this.idBlock.isConstructed=!0}fromBER(e,t,r){this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm;let n=this.valueBlock.fromBER(e,t,this.lenBlock.isIndefiniteForm?r:this.lenBlock.length);return -1===n?this.error=this.valueBlock.error:(this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.valueBlock.error.length||(this.blockLength+=this.valueBlock.blockLength)),n}onAsciiEncoding(){let e=[];for(let t of this.valueBlock.value)e.push(t.toString("ascii").split("\n").map(e=>`  ${e}`).join("\n"));let t=3===this.idBlock.tagClass?`[${this.idBlock.tagNumber}]`:this.constructor.NAME;return e.length?`${t} :
26${e.join("\n")}`:`${t} :`}}o=ix,(()=>{ih.Constructed=o})(),ix.NAME="CONSTRUCTED";class iE extends ic{fromBER(e,t,r){return t}toBER(e){return it}}iE.override="EndOfContentValueBlock";class iT extends ip{constructor(e={}){super(e,iE),this.idBlock.tagClass=1,this.idBlock.tagNumber=0}}a=iT,(()=>{ih.EndOfContent=a})(),iT.NAME=ii;class iA extends ip{constructor(e={}){super(e,ic),this.idBlock.tagClass=1,this.idBlock.tagNumber=5}fromBER(e,t,r){return(this.lenBlock.length>0&&this.warnings.push("Non-zero length of value block for Null type"),this.idBlock.error.length||(this.blockLength+=this.idBlock.blockLength),this.lenBlock.error.length||(this.blockLength+=this.lenBlock.blockLength),this.blockLength+=r,t+r>e.byteLength)?(this.error="End of input reached before message was fully decoded (inconsistent offset and length values)",-1):t+r}toBER(e,t){let r=new ArrayBuffer(2);if(!e){let e=new Uint8Array(r);e[0]=5,e[1]=0}return t&&t.write(r),r}onAsciiEncoding(){return`${this.constructor.NAME}`}}s=iA,(()=>{ih.Null=s})(),iA.NAME="NULL";class iC extends is(ic){constructor({value:e,...t}={}){super(t),t.valueHex?this.valueHexView=nF.vJ.toUint8Array(t.valueHex):this.valueHexView=new Uint8Array(1),e&&(this.value=e)}get value(){for(let e of this.valueHexView)if(e>0)return!0;return!1}set value(e){this.valueHexView[0]=e?255:0}fromBER(e,t,r){let n=nF.vJ.toUint8Array(e);return nY(this,n,t,r)?(this.valueHexView=n.subarray(t,t+r),r>1&&this.warnings.push("Boolean value encoded in more then 1 octet"),this.isHexOnly=!0,nq.call(this),this.blockLength=r,t+r):-1}toBER(){return this.valueHexView.slice()}toJSON(){return{...super.toJSON(),value:this.value}}}iC.NAME="BooleanValueBlock";class iP extends ip{constructor(e={}){super(e,iC),this.idBlock.tagClass=1,this.idBlock.tagNumber=1}getValue(){return this.valueBlock.value}setValue(e){this.valueBlock.value=e}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.getValue}`}}l=iP,(()=>{ih.Boolean=l})(),iP.NAME="BOOLEAN";class iI extends is(ik){constructor({isConstructed:e=!1,...t}={}){super(t),this.isConstructed=e}fromBER(e,t,r){let n=0;if(this.isConstructed){if(this.isHexOnly=!1,-1===(n=ik.prototype.fromBER.call(this,e,t,r)))return n;for(let e=0;e<this.value.length;e++){let t=this.value[e].constructor.NAME;if(t===ii){if(!this.isIndefiniteForm)return this.error="EndOfContent is unexpected, OCTET STRING may consists of OCTET STRINGs only",-1;break}if(t!==io)return this.error="OCTET STRING may consists of OCTET STRINGs only",-1}}else this.isHexOnly=!0,n=super.fromBER(e,t,r),this.blockLength=r;return n}toBER(e,t){return this.isConstructed?ik.prototype.toBER.call(this,e,t):e?new ArrayBuffer(this.valueHexView.byteLength):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),isConstructed:this.isConstructed}}}iI.NAME="OctetStringValueBlock";class iO extends ip{constructor({idBlock:e={},lenBlock:t={},...r}={}){var n,i;null!==(n=r.isConstructed)&&void 0!==n||(r.isConstructed=!!(null===(i=r.value)||void 0===i?void 0:i.length)),super({idBlock:{isConstructed:r.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!r.isIndefiniteForm},...r},iI),this.idBlock.tagClass=1,this.idBlock.tagNumber=4}fromBER(e,t,r){if(this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,0===r)return 0===this.idBlock.error.length&&(this.blockLength+=this.idBlock.blockLength),0===this.lenBlock.error.length&&(this.blockLength+=this.lenBlock.blockLength),t;if(!this.valueBlock.isConstructed){let n=(e instanceof ArrayBuffer?new Uint8Array(e):e).subarray(t,t+r);try{if(n.byteLength){let e=i_(n,0,n.byteLength);-1!==e.offset&&e.offset===r&&(this.valueBlock.value=[e.result])}}catch(e){}}return super.fromBER(e,t,r)}onAsciiEncoding(){return this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length?
26ix.prototype.onAsciiEncoding.call(this):`${this.constructor.NAME} : ${nF.ep.ToHex(this.valueBlock.valueHexView)}`}getValue(){if(!this.idBlock.isConstructed)return this.valueBlock.valueHexView.slice().buffer;let e=[];for(let t of this.valueBlock.value)t instanceof iO&&e.push(t.valueBlock.valueHexView);return nF.vJ.concat(e)}}c=iO,(()=>{ih.OctetString=c})(),iO.NAME=io;class iN extends is(ik){constructor({unusedBits:e=0,isConstructed:t=!1,...r}={}){super(r),this.unusedBits=e,this.isConstructed=t,this.blockLength=this.valueHexView.byteLength}fromBER(e,t,r){if(!r)return t;let n=-1;if(this.isConstructed){if(-1===(n=ik.prototype.fromBER.call(this,e,t,r)))return n;for(let e of this.value){let t=e.constructor.NAME;if(t===ii){if(!this.isIndefiniteForm)return this.error="EndOfContent is unexpected, BIT STRING may consists of BIT STRINGs only",-1;break}if(t!==ia)return this.error="BIT STRING may consists of BIT STRINGs only",-1;let r=e.valueBlock;if(this.unusedBits>0&&r.unusedBits>0)return this.error='Using of "unused bits" inside constructive BIT STRING allowed for least one only',-1;this.unusedBits=r.unusedBits}return n}let i=nF.vJ.toUint8Array(e);if(!nY(this,i,t,r))return -1;let o=i.subarray(t,t+r);if(this.unusedBits=o[0],this.unusedBits>7)return this.error="Unused bits for BitString must be in range 0-7",-1;if(!this.unusedBits){let e=o.subarray(1);try{if(e.byteLength){let t=i_(e,0,e.byteLength);-1!==t.offset&&t.offset===r-1&&(this.value=[t.result])}}catch(e){}}return this.valueHexView=o.subarray(1),this.blockLength=o.length,t+r}toBER(e,t){if(this.isConstructed)return ik.prototype.toBER.call(this,e,t);if(e)return new ArrayBuffer(this.valueHexView.byteLength+1);if(!this.valueHexView.byteLength)return it;let r=new Uint8Array(this.valueHexView.length+1);return r[0]=this.unusedBits,r.set(this.valueHexView,1),r.buffer}toJSON(){return{...super.toJSON(),unusedBits:this.unusedBits,isConstructed:this.isConstructed}}}iN.NAME="BitStringValueBlock";class iD extends ip{constructor({idBlock:e={},lenBlock:t={},...r}={}){var n,i;null!==(n=r.isConstructed)&&void 0!==n||(r.isConstructed=!!(null===(i=r.value)||void 0===i?void 0:i.length)),super({idBlock:{isConstructed:r.isConstructed,...e},lenBlock:{...t,isIndefiniteForm:!!r.isIndefiniteForm},...r},iN),this.idBlock.tagClass=1,this.idBlock.tagNumber=3}fromBER(e,t,r){return this.valueBlock.isConstructed=this.idBlock.isConstructed,this.valueBlock.isIndefiniteForm=this.lenBlock.isIndefiniteForm,super.fromBER(e,t,r)}onAsciiEncoding(){if(this.valueBlock.isConstructed||this.valueBlock.value&&this.valueBlock.value.length)return ix.prototype.onAsciiEncoding.call(this);{let e=[];for(let t of this.valueBlock.valueHexView)e.push(t.toString(2).padStart(8,"0"));let t=e.join("");return`${this.constructor.NAME} : ${t.substring(0,t.length-this.valueBlock.unusedBits)}`}}}function iR(e,t){let r=new Uint8Array([0]),n=new Uint8Array(e),i=new Uint8Array(t),o=n.slice(0),a=o.length-1,s=i.slice(0),l=s.length-1,c=0,u=l<a?a:l,d=0;for(let e=u;e>=0;e--,d++)c=!0==d<s.length?o[a-d]+s[l-d]+r[0]:o[a-d]+r[0],(r[0]=c/10,!0==d>=o.length)?o=n$(new Uint8Array([c%10]),o):o[a-d]=c%10;return r[0]>0&&(o=n$(r,o)),o}function iL(e){if(e>=nX.length)for(let t=nX.length;t<=e;t++){let e=new Uint8Array([0]),r=nX[t-1].slice(0);for(let t=r.length-1;t>=0;t--){let n=new Uint8Array([(r[t]<<1)+e[0]]);e[0]=n[0]/10,r[t]=n[0]%10}e[0]>0&&(r=n$(e,r)),nX.push(r)}return nX[e]}function iM(e,t){let r,n=0,i=new Uint8Array(e),o=new Uint8Array(t),a=i.slice(0),s=a.length-1,l=o.slice(0),c=l.length-1,u=0;for(let e=c;e>=0;e--,u++)!0==(r=a[s-u]-l[c-u]-n)<0?(n=1,a[s-u]=r+10):(n=0,a[s-u]=r);if(n>0)for(let e=s-c+1;e>=0;e--,u++)if((r=a[s-u]-n)<0)n=1,a[s-u]=r+10;else{n=0,a[s-u]=r;break}return a.slice()}u=iD,(()=>{ih.BitString=u})(),iD.NAME=ia;class ij extends is(ic){constructor({value:e,...t}={}){super(t),this._valueDec=0,t.valueHex&&this.setValueHex(),void 0!==e&&(this.valueDec=e)}setValueHex(){this.valueHexView.length>=4?(this.warnings.push("Too big Integer for decoding, hex only"),this.isHexOnly=!0,this._valueDec=0):(this.isHexOnly=!1,this.valueHexView.length>0&&(this._valueDec=nq.call(this)))}set valueDec(e){this._valueDec=e,this.isHexOnly=!1,this.valueHexView=new Uint8Array(nW(e))}get valueDec(){return this._valueDec}fromDER(e,t,r,n=0){let i=this.fromBER(e,t,r);if(-1===i)return i;let o=this.valueHexView;return 0===o[0]&&(128&o[1])!=0?this.valueHexView=o.subarray(1):0!==n&&o.length<n&&(n-o.length>1&&(n=o.length+1),this.valueHexView=o.subarray(n-o.length)),i}toDER(e=!1){let t=this.valueHexView;switch(!0){case(128&t[0])!=0:{let e=new Uint8Array(this.valueHexView.length+1);e[0]=0,e.set(t,1),this.valueHexView=e}break;case 0===t[0]&&(128&t[1])==0:this.valueHexView=this.valueHexView.subarray(1)}return this.toBER(e)}fromBER(e,t,r){let n=super.fromBER(e,t,r);return -1===n||this.setValueHex(),n}toBER(e){return e?new ArrayBuffer(this.valueHexView.length):this.valueHexView.slice().buffer}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}toString(){let e;let t=8*this.valueHexView.length-1,r=new Uint8Array(8*this.valueHexView.length/3),n=0,i=this.valueHexView,o="",a=!1;for(let a=i.byteLength-1;a>=0;a--){e=i[a];for(let i=0;i<8;i++)(1&e)==1&&(n===t?(r=iM(iL(n),r),o="-"):r=iR(r,iL(n))),n++,e>>=1}for(let e=0;e<r.length;e++)r[e]&&(a=!0),a&&(o+=nQ.charAt(r[e]));return!1===a&&(o+=nQ.charAt(0)),o}}d=ij,ij.NAME="IntegerValueBlock",(()=>{Object.defineProperty(d.prototype,"valueHex",{set:function(e){this.valueHexView=new Uint8Array(e),this.setValueHex()},get:function(){return this.valueHexView.slice().buffer}})})();class iB extends ip{constructor(e={}){super(e,ij),this.idBlock.tagClass=1,this.idBlock.tagNumber=2}toBigInt(){return nK(),BigInt(this.valueBlock.toString())}static fromBigInt(e){nK();let t=BigInt(e),r=new nJ,n=t.toString(16).replace(/^-/,""),i=new Uint8Array(nF.ep.FromHex(n));if(t<0){let e=new Uint8Array(i.length+(128&i[0]?1:0));e[0]|=128;let n=BigInt(`0x${nF.ep.ToHex(e)}`)+t,o=nF.vJ.toUint8Array(nF.ep.FromHex(n.toString(16)));o[0]|=128,r.write(o)}else 128&i[0]&&r.write(new Uint8Array([0])),r.write(i);return new iB({valueHex:r.final()})}convertToDER(){let e=new iB({valueHex:this.valueBlock.valueHexView});return e.valueBlock.toDER(),e}convertFromDER(){return new iB({valueHex:0===this.valueBlock.valueHexView[0]?this.valueBlock.valueHexView.subarray(1):this.valueBlock.valueHexView})}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()}`}}h=iB,(()=>{ih.Integer=h})(),iB.NAME="INTEGER";class iU extends iB{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=10}}p=iU,(()=>{ih.Enumerated=p})(),iU.NAME="ENUMERATED";class iF extends is(ic){constructor({valueDec:e=-1,isFirstSid:t=!1,...r}={}){super(r),this.valueDec=e,this.isFirstSid=t}fromBER(e,t,r){if(!r)return t;let n=nF.vJ.toUint8Array(e);if(!nY(this,n,t,r))return -1;let i=n.subarray(t,t+r);this.valueHexView=new Uint8Array(r);for(let e=0;e<r&&(this.valueHexView[e]=127&i[e],this.blockLength++,(128&i[e])!=0);e++);let o=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength;e++)o[e]=this.valueHexView[e];return(this.valueHexView=o,(128&i[this.blockLength-1])!=0)?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=nH(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}set valueBigInt(e){nK();let t=BigInt(e).toString(2);for(;t.length%7;
26)t="0"+t;let r=new Uint8Array(t.length/7);for(let e=0;e<r.length;e++)r[e]=parseInt(t.slice(7*e,7*e+7),2)+(e+1<r.length?128:0);this.fromBER(r.buffer,0,r.length)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);let t=this.valueHexView,r=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)r[e]=128|t[e];return r[this.blockLength-1]=t[this.blockLength-1],r.buffer}let t=nz(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",it;let r=new Uint8Array(t.byteLength);if(!e){let e=new Uint8Array(t),n=t.byteLength-1;for(let t=0;t<n;t++)r[t]=128|e[t];r[n]=e[n]}return r}toString(){let e="";if(this.isHexOnly)e=nF.ep.ToHex(this.valueHexView);else if(this.isFirstSid){let t=this.valueDec;this.valueDec<=39?e="0.":this.valueDec<=79?(e="1.",t-=40):(e="2.",t-=80),e+=t.toString()}else e=this.valueDec.toString();return e}toJSON(){return{...super.toJSON(),valueDec:this.valueDec,isFirstSid:this.isFirstSid}}}iF.NAME="sidBlock";class iH extends ic{constructor({value:e=ie,...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,r){let n=t;for(;r>0;){let t=new iF;if(-1===(n=t.fromBER(e,n,r))){this.blockLength=0,this.error=t.error;break}0===this.value.length&&(t.isFirstSid=!0),this.blockLength+=t.blockLength,r-=t.blockLength,this.value.push(t)}return n}toBER(e){let t=[];for(let r=0;r<this.value.length;r++){let n=this.value[r].toBER(e);if(0===n.byteLength)return this.error=this.value[r].error,it;t.push(n)}return nZ(t)}fromString(e){this.value=[];let t=0,r=0,n="",i=!1;do if(n=-1===(r=e.indexOf(".",t))?e.substring(t):e.substring(t,r),t=r+1,i){let e=this.value[0],t=0;switch(e.valueDec){case 0:break;case 1:t=40;break;case 2:t=80;break;default:this.value=[];return}let r=parseInt(n,10);if(isNaN(r))return;e.valueDec=r+t,i=!1}else{let e=new iF;if(n>Number.MAX_SAFE_INTEGER){nK();let t=BigInt(n);e.valueBigInt=t}else if(e.valueDec=parseInt(n,10),isNaN(e.valueDec))return;this.value.length||(e.isFirstSid=!0,i=!0),this.value.push(e)}while(-1!==r)}toString(){let e="",t=!1;for(let r=0;r<this.value.length;r++){t=this.value[r].isHexOnly;let n=this.value[r].toString();0!==r&&(e=`${e}.`),t?(n=`{${n}}`,this.value[r].isFirstSid?e=`2.{${n} - 80}`:e+=n):e+=n}return e}toJSON(){let e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}iH.NAME="ObjectIdentifierValueBlock";class iz extends ip{constructor(e={}){super(e,iH),this.idBlock.tagClass=1,this.idBlock.tagNumber=6}getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}f=iz,(()=>{ih.ObjectIdentifier=f})(),iz.NAME="OBJECT IDENTIFIER";class i$ extends is(il){constructor({valueDec:e=0,...t}={}){super(t),this.valueDec=e}fromBER(e,t,r){if(0===r)return t;let n=nF.vJ.toUint8Array(e);if(!nY(this,n,t,r))return -1;let i=n.subarray(t,t+r);this.valueHexView=new Uint8Array(r);for(let e=0;e<r&&(this.valueHexView[e]=127&i[e],this.blockLength++,(128&i[e])!=0);e++);let o=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength;e++)o[e]=this.valueHexView[e];return(this.valueHexView=o,(128&i[this.blockLength-1])!=0)?(this.error="End of input reached before message was fully decoded",-1):(0===this.valueHexView[0]&&this.warnings.push("Needlessly long format of SID encoding"),this.blockLength<=8?this.valueDec=nH(this.valueHexView,7):(this.isHexOnly=!0,this.warnings.push("Too big SID for decoding, hex only")),t+this.blockLength)}toBER(e){if(this.isHexOnly){if(e)return new ArrayBuffer(this.valueHexView.byteLength);let t=this.valueHexView,r=new Uint8Array(this.blockLength);for(let e=0;e<this.blockLength-1;e++)r[e]=128|t[e];return r[this.blockLength-1]=t[this.blockLength-1],r.buffer}let t=nz(this.valueDec,7);if(0===t.byteLength)return this.error="Error during encoding SID value",it;let r=new Uint8Array(t.byteLength);if(!e){let e=new Uint8Array(t),n=t.byteLength-1;for(let t=0;t<n;t++)r[t]=128|e[t];r[n]=e[n]}return r.buffer}toString(){return this.isHexOnly?nF.ep.ToHex(this.valueHexView):this.valueDec.toString()}toJSON(){return{...super.toJSON(),valueDec:this.valueDec}}}i$.NAME="relativeSidBlock";class iq extends ic{constructor({value:e=ie,...t}={}){super(t),this.value=[],e&&this.fromString(e)}fromBER(e,t,r){let n=t;for(;r>0;){let t=new i$;if(-1===(n=t.fromBER(e,n,r))){this.blockLength=0,this.error=t.error;break}this.blockLength+=t.blockLength,r-=t.blockLength,this.value.push(t)}return n}toBER(e,t){let r=[];for(let t=0;t<this.value.length;t++){let n=this.value[t].toBER(e);if(0===n.byteLength)return this.error=this.value[t].error,it;r.push(n)}return nZ(r)}fromString(e){this.value=[];let t=0,r=0,n="";do{n=-1===(r=e.indexOf(".",t))?e.substring(t):e.substring(t,r),t=r+1;let i=new i$;if(i.valueDec=parseInt(n,10),isNaN(i.valueDec))break;this.value.push(i)}while(-1!==r);return!0}toString(){let e="",t=!1;for(let r=0;r<this.value.length;r++){t=this.value[r].isHexOnly;let n=this.value[r].toString();0!==r&&(e=`${e}.`),t?e+=n=`{${n}}`:e+=n}return e}toJSON(){let e={...super.toJSON(),value:this.toString(),sidArray:[]};for(let t=0;t<this.value.length;t++)e.sidArray.push(this.value[t].toJSON());return e}}iq.NAME="RelativeObjectIdentifierValueBlock";class iW extends ip{constructor(e={}){super(e,iq),this.idBlock.tagClass=1,this.idBlock.tagNumber=13}getValue(){return this.valueBlock.toString()}setValue(e){this.valueBlock.fromString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.valueBlock.toString()||"empty"}`}toJSON(){return{...super.toJSON(),value:this.getValue()}}}m=iW,(()=>{ih.RelativeObjectIdentifier=m})(),iW.NAME="RelativeObjectIdentifier";class iV extends ix{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=16}}g=iV,(()=>{ih.Sequence=g})(),iV.NAME="SEQUENCE";class iG extends ix{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=17}}y=iG,(()=>{ih.Set=y})(),iG.NAME="SET";class iK extends is(ic){constructor({...e}={}){super(e),this.isHexOnly=!0,this.value=ie}toJSON(){return{...super.toJSON(),value:this.value}}}iK.NAME="StringValueBlock";class iZ extends iK{}iZ.NAME="SimpleStringValueBlock";class iY extends ig{constructor({...e}={}){super(e,iZ)}fromBuffer(e){this.valueBlock.value=String.fromCharCode.apply(null,nF.vJ.toUint8Array(e))}fromString(e){let t=e.length,r=this.valueBlock.valueHexView=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);this.valueBlock.value=e}}iY.NAME="SIMPLE STRING";class iJ extends iY{fromBuffer(e){this.valueBlock.valueHexView=nF.vJ.toUint8Array(e);try{this.valueBlock.value=nF.ep.ToUtf8String(e)}catch(t){this.warnings.push(`Error during "decodeURIComponent": ${t}, using raw string`),this.valueBlock.value=nF.ep.ToBinary(e)}}fromString(e){this.valueBlock.valueHexView=new Uint8Array(nF.ep.FromUtf8String(e)),this.valueBlock.value=e}}iJ.NAME="Utf8StringValueBlock";class iX extends iJ{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=12}}v=iX,(()=>{ih.Utf8String=v})(),iX.NAME="UTF8String";class iQ extends iY{fromBuffer(e){this.valueBlock.value=nF.ep.ToUtf16String(e),this.valueBlock.valueHexView=nF.vJ.toUint8Array(e)}fromString(e){this.valueBlock.value=e,this.valueBlock.valueHexView=new Uint8Array(nF.ep.FromUtf16String(e))}}iQ.NAME="BmpStringValueBlock";class i0 extends iQ{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=30}}b=i0,(()=>{ih.BmpString=b})(),i0.NAME="BMPString";class i1 extends iY{fromBuffer(e){let t=ArrayBuffer.isView(e)?e.slice().buffer:e.slice(0),r=new 
26Uint8Array(t);for(let e=0;e<r.length;e+=4)r[e]=r[e+3],r[e+1]=r[e+2],r[e+2]=0,r[e+3]=0;this.valueBlock.value=String.fromCharCode.apply(null,new Uint32Array(t))}fromString(e){let t=e.length,r=this.valueBlock.valueHexView=new Uint8Array(4*t);for(let n=0;n<t;n++){let t=new Uint8Array(nz(e.charCodeAt(n),8));if(t.length>4)continue;let i=4-t.length;for(let e=t.length-1;e>=0;e--)r[4*n+e+i]=t[e]}this.valueBlock.value=e}}i1.NAME="UniversalStringValueBlock";class i2 extends i1{constructor({...e}={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=28}}_=i2,(()=>{ih.UniversalString=_})(),i2.NAME="UniversalString";class i4 extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=18}}w=i4,(()=>{ih.NumericString=w})(),i4.NAME="NumericString";class i3 extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=19}}S=i3,(()=>{ih.PrintableString=S})(),i3.NAME="PrintableString";class i6 extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=20}}k=i6,(()=>{ih.TeletexString=k})(),i6.NAME="TeletexString";class i5 extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=21}}x=i5,(()=>{ih.VideotexString=x})(),i5.NAME="VideotexString";class i8 extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=22}}E=i8,(()=>{ih.IA5String=E})(),i8.NAME="IA5String";class i7 extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=25}}T=i7,(()=>{ih.GraphicString=T})(),i7.NAME="GraphicString";class i9 extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=26}}A=i9,(()=>{ih.VisibleString=A})(),i9.NAME="VisibleString";class oe extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=27}}C=oe,(()=>{ih.GeneralString=C})(),oe.NAME="GeneralString";class ot extends iY{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=29}}P=ot,(()=>{ih.CharacterString=P})(),ot.NAME="CharacterString";class or extends i9{constructor({value:e,valueDate:t,...r}={}){if(super(r),this.year=0,this.month=0,this.day=0,this.hour=0,this.minute=0,this.second=0,e){this.fromString(e),this.valueBlock.valueHexView=new Uint8Array(e.length);for(let t=0;t<e.length;t++)this.valueBlock.valueHexView[t]=e.charCodeAt(t)}t&&(this.fromDate(t),this.valueBlock.valueHexView=new Uint8Array(this.toBuffer())),this.idBlock.tagClass=1,this.idBlock.tagNumber=23}fromBuffer(e){this.fromString(String.fromCharCode.apply(null,nF.vJ.toUint8Array(e)))}toBuffer(){let e=this.toString(),t=new ArrayBuffer(e.length),r=new 
26Uint8Array(t);for(let t=0;t<e.length;t++)r[t]=e.charCodeAt(t);return t}fromDate(e){this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second))}fromString(e){let t=/(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z/ig.exec(e);if(null===t){this.error="Wrong input string for conversion";return}let r=parseInt(t[1],10);r>=50?this.year=1900+r:this.year=2e3+r,this.month=parseInt(t[2],10),this.day=parseInt(t[3],10),this.hour=parseInt(t[4],10),this.minute=parseInt(t[5],10),this.second=parseInt(t[6],10)}toString(e="iso"){if("iso"===e){let e=Array(7);return e[0]=nG(this.year<2e3?this.year-1900:this.year-2e3,2),e[1]=nG(this.month,2),e[2]=nG(this.day,2),e[3]=nG(this.hour,2),e[4]=nG(this.minute,2),e[5]=nG(this.second,2),e[6]="Z",e.join("")}return super.toString(e)}onAsciiEncoding(){return`${this.constructor.NAME} : ${this.toDate().toISOString()}`}toJSON(){return{...super.toJSON(),year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second}}}I=or,(()=>{ih.UTCTime=I})(),or.NAME="UTCTime";class on extends or{constructor(e={}){var t;super(e),null!==(t=this.millisecond)&&void 0!==t||(this.millisecond=0),this.idBlock.tagClass=1,this.idBlock.tagNumber=24}fromDate(e){super.fromDate(e),this.millisecond=e.getUTCMilliseconds()}toDate(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond))}fromString(e){let t,r=!1,n="",i="",o=0,a=0,s=0;if("Z"===e[e.length-1])n=e.substring(0,e.length-1),r=!0;else{if(isNaN(new Number(e[e.length-1]).valueOf()))throw Error("Wrong input string for conversion");n=e}if(r){if(-1!==n.indexOf("+")||-1!==n.indexOf("-"))throw Error("Wrong input string for conversion")}else{let e=1,t=n.indexOf("+"),r="";if(-1===t&&(t=n.indexOf("-"),e=-1),-1!==t){if(r=n.substring(t+1),n=n.substring(0,t),2!==r.length&&4!==r.length)throw Error("Wrong input string for conversion");let i=parseInt(r.substring(0,2),10);if(isNaN(i.valueOf()))throw Error("Wrong input string for conversion");if(a=e*i,4===r.length){if(isNaN((i=parseInt(r.substring(2,4),10)).valueOf()))throw Error("Wrong input string for conversion");s=e*i}}}let l=n.indexOf(".");if(-1===l&&(l=n.indexOf(",")),-1!==l){let e=new Number(`0${n.substring(l)}`);if(isNaN(e.valueOf()))throw Error("Wrong input string for conversion");o=e.valueOf(),i=n.substring(0,l)}else i=n;switch(!0){case 8===i.length:if(t=/(\d{4})(\d{2})(\d{2})/ig,-1!==l)throw Error("Wrong input string for conversion");break;case 10===i.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})/ig,-1!==l){let e=60*o;this.minute=Math.floor(e),e=60*(e-this.minute),this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 12===i.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/ig,-1!==l){let e=60*o;this.second=Math.floor(e),e=1e3*(e-this.second),this.millisecond=Math.floor(e)}break;case 14===i.length:if(t=/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/ig,-1!==l){let e=1e3*o;this.millisecond=Math.floor(e)}break;default:throw Error("Wrong input string for conversion")}let c=t.exec(i);if(null===c)throw Error("Wrong input string for conversion");for(let e=1;e<c.length;e++)switch(e){case 1:this.year=parseInt(c[e],10);break;case 2:this.month=parseInt(c[e],10);break;case 3:this.day=parseInt(c[e],10);break;case 4:this.hour=parseInt(c[e],10)+a;break;case 5:this.minute=parseInt(c[e],10)+s;break;case 6:this.second=parseInt(c[e],10);break;default:throw Error("Wrong input string for conversion")}if(!1===r){let e=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);this.year=e.getUTCFullYear(),this.month=e.getUTCMonth(),this.day=e.getUTCDay(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds(),this.millisecond=e.getUTCMilliseconds()}}toString(e="iso"){if("iso"===e){let e=[];return e.push(nG(this.year,4)),e.push(nG(this.month,2)),e.push(nG(this.day,2)),e.push(nG(this.hour,2)),e.push(nG(this.minute,2)),e.push(nG(this.second,2)),0!==this.millisecond&&(e.push("."),e.push(nG(this.millisecond,3))),e.push("Z"),e.join("")}return super.toString(e)}toJSON(){return{...super.toJSON(),millisecond:this.millisecond}}}O=on,(()=>{ih.GeneralizedTime=O})(),on.NAME="GeneralizedTime";class oi extends iX{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=31}}N=oi,(()=>{ih.DATE=N})(),oi.NAME="DATE";class oo extends iX{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=32}}D=oo,(()=>{ih.TimeOfDay=D})(),oo.NAME="TimeOfDay";class oa extends iX{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=33}}R=oa,(()=>{ih.DateTime=R})(),oa.NAME="DateTime";class os extends iX{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=34}}
vendor: 3,469 bytes, line 26
26L=os,(()=>{ih.Duration=L})(),os.NAME="Duration";class ol extends iX{constructor(e={}){super(e),this.idBlock.tagClass=1,this.idBlock.tagNumber=14}}M=ol,(()=>{ih.TIME=M})(),ol.NAME="TIME";class oc{constructor({name:e=ie,optional:t=!1}={}){this.name=e,this.optional=t}}class ou extends oc{constructor({value:e=[],...t}={}){super(t),this.value=e}}class od extends oc{constructor({value:e=new oc,local:t=!1,...r}={}){super(r),this.value=e,this.local=t}}class oh{constructor({data:e=ir}={}){this.dataView=nF.vJ.toUint8Array(e)}get data(){return this.dataView.slice().buffer}set data(e){this.dataView=nF.vJ.toUint8Array(e)}fromBER(e,t,r){let n=t+r;return this.dataView=nF.vJ.toUint8Array(e).subarray(t,n),n}toBER(e){return this.dataView.slice().buffer}}function op(e,t,r){if(r instanceof ou){for(let n=0;n<r.value.length;n++)if(op(e,t,r.value[n]).verified)return{verified:!0,result:e};{let e={verified:!1,result:{error:"Wrong values for Choice type"}};return r.hasOwnProperty(n0)&&(e.name=r.name),e}}if(r instanceof oc)return r.hasOwnProperty(n0)&&(e[r.name]=t),{verified:!0,result:e};if(e instanceof Object==!1)return{verified:!1,result:{error:"Wrong root object"}};if(t instanceof Object==!1)return{verified:!1,result:{error:"Wrong ASN.1 data"}};if(r instanceof Object==!1||n4 in r==!1||n8 in r.idBlock==!1||n7 in r.idBlock==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};let n=r.idBlock.toBER(!1);if(0===n.byteLength)return{verified:!1,result:{error:"Error encoding idBlock for ASN.1 schema"}};if(-1===r.idBlock.fromBER(n,0,n.byteLength))return{verified:!1,result:{error:"Error decoding idBlock for ASN.1 schema"}};if(!1===r.idBlock.hasOwnProperty(n3))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.tagClass!==t.idBlock.tagClass)return{verified:!1,result:e};if(!1===r.idBlock.hasOwnProperty(n6))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.tagNumber!==t.idBlock.tagNumber)return{verified:!1,result:e};if(!1===r.idBlock.hasOwnProperty(n5))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.isConstructed!==t.idBlock.isConstructed)return{verified:!1,result:e};if(!(n2 in r.idBlock))return{verified:!1,result:{error:"Wrong ASN.1 schema"}};if(r.idBlock.isHexOnly!==t.idBlock.isHexOnly)return{verified:!1,result:e};if(r.idBlock.isHexOnly){if(n1 in r.idBlock==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema"}};let n=r.idBlock.valueHexView,i=t.idBlock.valueHexView;if(n.length!==i.length)return{verified:!1,result:e};for(let t=0;t<n.length;t++)if(n[t]!==i[1])return{verified:!1,result:e}}if(r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,ie),r.name&&(e[r.name]=t)),r instanceof ih.Constructed){let n=0,i={verified:!1,result:{error:"Unknown error"}},o=r.valueBlock.value.length;if(o>0&&r.valueBlock.value[0]instanceof od&&(o=t.valueBlock.value.length),0===o)return{verified:!0,result:e};if(0===t.valueBlock.value.length&&0!==r.valueBlock.value.length){let t=!0;for(let e=0;e<r.valueBlock.value.length;e++)t=t&&(r.valueBlock.value[e].optional||!1);return t?{verified:!0,result:e}:(r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,ie),r.name&&delete e[r.name]),e.error="Inconsistent object length",{verified:!1,result:e})}for(let a=0;a<o;a++)if(a-n>=t.valueBlock.value.length){if(!1===r.valueBlock.value[a].optional){let t={verified:!1,result:e};return e.error="Inconsistent length between ASN.1 data and schema",r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,ie),r.name&&(delete e[r.name],t.name=r.name)),t}}
26else if(r.valueBlock.value[0]instanceof od){if(!1===(i=op(e,t.valueBlock.value[a],r.valueBlock.value[0].value)).verified){if(!r.valueBlock.value[0].optional)return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,ie),r.name&&delete e[r.name]),i;n++}if(n0 in r.valueBlock.value[0]&&r.valueBlock.value[0].name.length>0){let n={};void 0===(n=n9 in r.valueBlock.value[0]&&r.valueBlock.value[0].local?t:e)[r.valueBlock.value[0].name]&&(n[r.valueBlock.value[0].name]=[]),n[r.valueBlock.value[0].name].push(t.valueBlock.value[a])}}else if(!1===(i=op(e,t.valueBlock.value[a-n],r.valueBlock.value[a])).verified){if(!r.valueBlock.value[a].optional)return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,ie),r.name&&delete e[r.name]),i;n++}if(!1===i.verified){let t={verified:!1,result:e};return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,ie),r.name&&(delete e[r.name],t.name=r.name)),t}return{verified:!0,result:e}}if(r.primitiveSchema&&n1 in t.valueBlock){let n=i_(t.valueBlock.valueHexView);if(-1===n.offset){let t={verified:!1,result:n.result};return r.name&&(r.name=r.name.replace(/^\s+|\s+$/g,ie),r.name&&(delete e[r.name],t.name=r.name)),t}return op(e,n.result,r.primitiveSchema)}return{verified:!0,result:e}}function of(e,t){if(t instanceof Object==!1)return{verified:!1,result:{error:"Wrong ASN.1 schema type"}};let r=i_(nF.vJ.toUint8Array(e));return -1===r.offset?{verified:!1,result:r.result}:op(r.result,r.result,t)}!function(e){e[e.Sequence=0]="Sequence",e[e.Set=1]="Set",e[e.Choice=2]="Choice"}(j||(j={})),function(e){e[e.Any=1]="Any",e[e.Boolean=2]="Boolean",e[e.OctetString=3]="OctetString",e[e.BitString=4]="BitString",e[e.Integer=5]="Integer",e[e.Enumerated=6]="Enumerated",e[e.ObjectIdentifier=7]="ObjectIdentifier",e[e.Utf8String=8]="Utf8String",e[e.BmpString=9]="BmpString",e[e.UniversalString=10]="UniversalString",e[e.NumericString=11]="NumericString",e[e.PrintableString=12]="PrintableString",e[e.TeletexString=13]="TeletexString",e[e.VideotexString=14]="VideotexString",e[e.IA5String=15]="IA5String",e[e.GraphicString=16]="GraphicString",e[e.VisibleString=17]="VisibleString",e[e.GeneralString=18]="GeneralString",e[e.CharacterString=19]="CharacterString",e[e.UTCTime=20]="UTCTime",e[e.GeneralizedTime=21]="GeneralizedTime",e[e.DATE=22]="DATE",e[e.TimeOfDay=23]="TimeOfDay",e[e.DateTime=24]="DateTime",e[e.Duration=25]="Duration",e[e.TIME=26]="TIME",e[e.Null=27]="Null"}(B||(B={}));let om={fromASN:e=>e instanceof iA?null:e.valueBeforeDecodeView,toASN:e=>{if(null===e)return new iA;let t=iw(e);if(t.result.error)throw Error(t.result.error);return t.result}},og={fromASN:e=>e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec,toASN:e=>new iB({value:+e})},oy={fromASN:e=>e.valueBlock.valueDec,toASN:e=>new iU({value:e})},ov={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new iD({valueHex:e})},ob={fromASN:e=>e.valueBlock.toString(),toASN:e=>new iz({value:e})},o_={fromASN:e=>e.valueBlock.value,toASN:e=>new iP({value:e})},ow={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new iO({valueHex:e})};function oS(e){return{fromASN:e=>e.valueBlock.value,toASN:t=>new e({value:t})}}let ok=oS(iX),ox=oS(i0),oE=oS(i2),oT=oS(i4),oA=oS(i3),oC=oS(i6),oP=oS(i5),oI=oS(i8),oO=oS(i7),oN=oS(i9),oD=oS(oe),oR=oS(ot),oL={fromASN:e=>e.toDate(),toASN:e=>new or({valueDate:e})},oM={fromASN:e=>e.toDate(),toASN:e=>new on({valueDate:e})},oj={fromASN:()=>null,toASN:()=>new iA};function oB(e){switch(e){case B.Any:return om;case B.BitString:return ov;case B.BmpString:return ox;case B.Boolean:return o_;case B.CharacterString:return oR;case B.Enumerated:return oy;case B.GeneralString:return oD;case B.GeneralizedTime:return oM;case B.GraphicString:return oO;case B.IA5String:return oI;case B.Integer:return og;case B.Null:return oj;case B.NumericString:return oT;case B.ObjectIdentifier:return ob;
26case B.OctetString:return ow;case B.PrintableString:return oA;case B.TeletexString:return oC;case B.UTCTime:return oL;case B.UniversalString:return oE;case B.Utf8String:return ok;case B.VideotexString:return oP;case B.VisibleString:return oN;default:return null}}function oU(e){return"function"==typeof e&&e.prototype?!!e.prototype.toASN&&!!e.prototype.fromASN||oU(e.prototype):!!(e&&"object"==typeof e&&"toASN"in e&&"fromASN"in e)}function oF(e){var t;if(e){let r=Object.getPrototypeOf(e);return(null===(t=null==r?void 0:r.prototype)||void 0===t?void 0:t.constructor)===Array||oF(r)}return!1}function oH(e,t){if(!(e&&t)||e.byteLength!==t.byteLength)return!1;let r=new Uint8Array(e),n=new Uint8Array(t);for(let t=0;t<e.byteLength;t++)if(r[t]!==n[t])return!1;return!0}class oz{constructor(){this.items=new WeakMap}has(e){return this.items.has(e)}get(e,t=!1){let r=this.items.get(e);if(!r)throw Error(`Cannot get schema for '${e.prototype.constructor.name}' target`);if(t&&!r.schema)throw Error(`Schema '${e.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`);return r}cache(e){let t=this.get(e);t.schema||(t.schema=this.create(e,!0))}createDefault(e){let t={type:j.Sequence,items:{}},r=this.findParentSchema(e);return r&&(Object.assign(t,r),t.items=Object.assign({},t.items,r.items)),t}create(e,t){let r=this.items.get(e)||this.createDefault(e),n=[];for(let e in r.items){let i;let o=r.items[e],a=t?e:"";if("number"==typeof o.type){let e=B[o.type],t=G[e];if(!t)throw Error(`Cannot get ASN1 class by name '${e}'`);i=new t({name:a})}else oU(o.type)?i=new o.type().toSchema(a):o.optional?this.get(o.type).type===j.Choice?i=new oc({name:a}):(i=this.create(o.type,!1)).name=a:i=new oc({name:a});let s=!!o.optional||void 0!==o.defaultValue;if(o.repeated&&(i.name="",i=new("set"===o.repeated?iG:iV)({name:"",value:[new od({name:a,value:i})]})),null!==o.context&&void 0!==o.context){if(o.implicit){if("number"==typeof o.type||oU(o.type)){let e=o.repeated?ix:iv;n.push(new e({name:a,optional:s,idBlock:{tagClass:3,tagNumber:o.context}}))}else{this.cache(o.type);let e=!!o.repeated,t=e?i:this.get(o.type,!0).schema;t="valueBlock"in t?t.valueBlock.value:t.value,n.push(new ix({name:e?"":a,optional:s,idBlock:{tagClass:3,tagNumber:o.context},value:t}))}}else n.push(new ix({optional:s,idBlock:{tagClass:3,tagNumber:o.context},value:[i]}))}else i.optional=s,n.push(i)}switch(r.type){case j.Sequence:return new iV({value:n,name:""});case j.Set:return new iG({value:n,name:""});case j.Choice:return new ou({value:n,name:""});default:throw Error("Unsupported ASN1 type in use")}}set(e,t){return this.items.set(e,t),this}findParentSchema(e){let t=Object.getPrototypeOf(e);return t?this.items.get(t)||this.findParentSchema(t):null}}let o$=new oz,oq=e=>t=>{let r;o$.has(t)?r=o$.get(t):(r=o$.createDefault(t),o$.set(t,r)),Object.assign(r,e)},oW=e=>(t,r)=>{let n;o$.has(t.constructor)?n=o$.get(t.constructor):(n=o$.createDefault(t.constructor),o$.set(t.constructor,n));let i=Object.assign({},e);if("number"==typeof i.type&&!i.converter){let n=oB(e.type);if(!n)throw Error(`Cannot get default converter for property '${r}' of ${t.constructor.name}`);i.converter=n}n.items[r]=i};class oV extends Error{constructor(){super(...arguments),this.schemas=[]}}class oG{static parse(e,t){let r=iw(e);if(r.result.error)throw Error(r.result.error);return this.fromASN(r.result,t)}static fromASN(e,t){var r;try{if(oU(t))return new t().fromASN(e);let n=o$.get(t);o$.cache(t);let i=n.schema;if(e.constructor===ix&&n.type!==j.Choice)for(let t in i=new ix({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:n.schema.valueBlock.value}),n.items)delete e[t];let o=op({},e,i);if(!o.verified)throw new oV(`Data does not match to ${t.name} ASN1 schema. ${o.result.error}`);let a=new t;if(oF(t)){if(!("value"in e.valueBlock&&Array.isArray(e.valueBlock.value)))throw Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");let r=n.itemType;if("number"!=typeof r)return t.from(e.valueBlock.value,e=>this.fromASN(e,r));{let n=oB(r);if(!n)throw Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`);return t.from(e.valueBlock.value,e=>n.fromASN(e))}}
26for(let e in n.items){let t=o.result[e];if(!t)continue;let i=n.items[e],s=i.type;if("number"==typeof s||oU(s)){let n=null!==(r=i.converter)&&void 0!==r?r:oU(s)?new s:null;if(!n)throw Error("Converter is empty");if(i.repeated){if(i.implicit){let r=new("sequence"===i.repeated?iV:iG);r.valueBlock=t.valueBlock;let o=iw(r.toBER(!1));if(-1===o.offset)throw Error(`Cannot parse the child item. ${o.result.error}`);if(!("value"in o.result.valueBlock&&Array.isArray(o.result.valueBlock.value)))throw Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");let s=o.result.valueBlock.value;a[e]=Array.from(s,e=>n.fromASN(e))}else a[e]=Array.from(t,e=>n.fromASN(e))}else{let r=t;if(i.implicit){let e;if(oU(s))e=new s().toSchema("");else{let t=B[s],r=G[t];if(!r)throw Error(`Cannot get '${t}' class from asn1js module`);e=new r}e.valueBlock=r.valueBlock,r=iw(e.toBER(!1)).result}a[e]=n.fromASN(r)}}else if(i.repeated){if(!Array.isArray(t))throw Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");a[e]=Array.from(t,e=>this.fromASN(e,s))}else a[e]=this.fromASN(t,s)}return a}catch(e){throw e instanceof oV&&e.schemas.push(t.name),e}}}class oK{static serialize(e){return e instanceof ip?e.toBER(!1):this.toASN(e).toBER(!1)}static toASN(e){let t;if(e&&"object"==typeof e&&oU(e))return e.toASN();if(!(e&&"object"==typeof e))throw TypeError("Parameter 1 should be type of Object.");let r=e.constructor,n=o$.get(r);o$.cache(r);let i=[];if(n.itemType){if(!Array.isArray(e))throw TypeError("Parameter 1 should be type of Array.");if("number"==typeof n.itemType){let t=oB(n.itemType);if(!t)throw Error(`Cannot get default converter for array item of ${r.name} ASN1 schema`);i=e.map(e=>t.toASN(e))}else i=e.map(e=>this.toAsnItem({type:n.itemType},"[]",r,e))}else for(let t in n.items){let o=n.items[t],a=e[t];if(void 0===a||o.defaultValue===a||"object"==typeof o.defaultValue&&"object"==typeof a&&oH(this.serialize(o.defaultValue),this.serialize(a)))continue;let s=oK.toAsnItem(o,t,r,a);if("number"==typeof o.context){if(o.implicit){if(!o.repeated&&("number"==typeof o.type||oU(o.type))){let e={};e.valueHex=s instanceof iA?s.valueBeforeDecodeView:s.valueBlock.toBER(),i.push(new iv({optional:o.optional,idBlock:{tagClass:3,tagNumber:o.context},...e}))}else i.push(new ix({optional:o.optional,idBlock:{tagClass:3,tagNumber:o.context},value:s.valueBlock.value}))}else i.push(new ix({optional:o.optional,idBlock:{tagClass:3,tagNumber:o.context},value:[s]}))}else o.repeated?i=i.concat(s):i.push(s)}switch(n.type){case j.Sequence:t=new iV({value:i});break;case j.Set:t=new iG({value:i});break;case j.Choice:if(!i[0])throw Error(`Schema '${r.name}' has wrong data. Choice cannot be empty.`);t=i[0]}return t}static toAsnItem(e,t,r,n){let i;if("number"==typeof e.type){let o=e.converter;if(!o)throw Error(`Property '${t}' doesn't have converter for type ${B[e.type]} in schema '${r.name}'`);if(e.repeated){if(!Array.isArray(n))throw TypeError("Parameter 'objProp' should be type of Array.");let t=Array.from(n,e=>o.toASN(e));i=new("sequence"===e.repeated?iV:iG)({value:t})}else i=o.toASN(n)}else if(e.repeated){if(!Array.isArray(n))throw TypeError("Parameter 'objProp' should be type of Array.");let t=Array.from(n,e=>this.toASN(e));i=new("sequence"===e.repeated?iV:iG)({value:t})}else i=this.toASN(n);return i}}class oZ{static serialize(e){return oK.serialize(e)}static parse(e,t){return oG.parse(e,t)}static toString(e){let t=iw(nF.vJ.isBufferSource(e)?nF.vJ.toArrayBuffer(e):oZ.serialize(e));if(-1===t.offset)throw Error(`Cannot decode ASN.1 data. ${t.result.error}`);return t.result.toString()}}var oY=function(e,t){return(oY=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function oJ(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}oY(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var oX=function(){return(oX=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function oQ(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o0(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function o1(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
26class o2 extends Error{constructor(e,t){super(t?`${e}. See the inner exception for more details.`:e),this.message=e,this.innerError=t}}class o4 extends o2{constructor(e,t,r){super(t,r),this.schema=e}}class o3 extends o4{constructor(e,t,r){super(e,`JSON doesn't match to '${e.target.name}' schema. ${t}`,r)}}class o6 extends o2{}class o5 extends o2{constructor(e,t,r){super(`Cannot serialize by '${e}' schema. ${t}`,r),this.schemaName=e}}class o8 extends o3{constructor(e,t,r={}){super(e,"Some keys doesn't match to schema"),this.keys=t,this.errors=r}}function o7(e,t){switch(t){case U.Boolean:return"boolean"==typeof e;case U.Number:return"number"==typeof e;case U.String:return"string"==typeof e}return!0}function o9(e,t){if(!o7(e,t))throw TypeError(`Value must be ${U[t]}`)}function ae(e){return e&&e.prototype?!!e.prototype.toJSON&&!!e.prototype.fromJSON||ae(e.prototype):!!(e&&e.toJSON&&e.fromJSON)}!function(e){e[e.Any=0]="Any",e[e.Boolean=1]="Boolean",e[e.Number=2]="Number",e[e.String=3]="String"}(U||(U={}));class at{constructor(){this.items=new Map}has(e){return this.items.has(e)||!!this.findParentSchema(e)}get(e){let t=this.items.get(e)||this.findParentSchema(e);if(!t)throw Error("Cannot get schema for current target");return t}create(e){let t={names:{}},r=this.findParentSchema(e);if(r)for(let e in Object.assign(t,r),t.names={},r.names)t.names[e]=Object.assign({},r.names[e]);return t.target=e,t}set(e,t){return this.items.set(e,t),this}findParentSchema(e){let t=e.__proto__;return t?this.items.get(t)||this.findParentSchema(t):null}}let ar="default",an=new at;class ai{constructor(e){this.pattern=new RegExp(e)}validate(e){let t=new RegExp(this.pattern.source,this.pattern.flags);if("string"!=typeof e)throw new o6("Incoming value must be string");if(!t.exec(e))throw new o6(`Value doesn't match to pattern '${t.toString()}'`)}}class ao{constructor(e=Number.MIN_VALUE,t=Number.MAX_VALUE){this.min=e,this.max=t}validate(e){if(o9(e,U.Number),!(this.min<=e&&e<=this.max)){let e=this.min===Number.MIN_VALUE?"MIN":this.min,t=this.max===Number.MAX_VALUE?"MAX":this.max;throw new o6(`Value doesn't match to diapason [${e},${t}]`)}}}class aa{constructor(e=Number.MIN_VALUE,t=Number.MAX_VALUE){this.min=e,this.max=t}validate(e){if(o9(e,U.Number),!(this.min<e&&e<this.max)){let e=this.min===Number.MIN_VALUE?"MIN":this.min,t=this.max===Number.MAX_VALUE?"MAX":this.max;throw new o6(`Value doesn't match to diapason (${e},${t})`)}}}class as{constructor(e,t,r){this.length=e,this.minLength=t,this.maxLength=r}validate(e){if(void 0!==this.length){if(e.length!==this.length)throw new o6(`Value length must be exactly ${this.length}.`);return}if(void 0!==this.minLength&&e.length<this.minLength)throw new o6(`Value length must be more than ${this.minLength}.`);if(void 0!==this.maxLength&&e.length>this.maxLength)throw new o6(`Value length must be less than ${this.maxLength}.`)}}class al{constructor(e){this.enumeration=e}validate(e){if(o9(e,U.String),!this.enumeration.includes(e))throw new o6(`Value must be one of ${this.enumeration.map(e=>`'${e}'`).join(", ")}`)}}class ac{static checkValues(e,t){for(let r of Array.isArray(e)?e:[e])for(let n of t.validations)n instanceof as&&t.repeated?n.validate(e):n.validate(r)}static checkTypes(e,t){if(t.repeated&&!Array.isArray(e))throw TypeError("Value must be Array");if("number"==typeof t.type)for(let r of Array.isArray(e)?e:[e])o9(r,t.type)}static getSchemaByName(e,t=ar){return{...e.names[ar],...e.names[t]}}}class au extends ac{static serialize(e,t,r,n){return JSON.stringify(this.toJSON(e,t),r,n)}static toJSON(e,t={}){let r;let n=t.targetSchema,i=t.schemaName||ar;if(ae(e))return e.toJSON();if(Array.isArray(e))for(let n of(r=[],e))r.push(this.toJSON(n,t));else if("object"==typeof e){if(n&&!an.has(n))throw new o2("Cannot get schema for `targetSchema` param");if(n=n||e.constructor,an.has(n)){let t=an.get(n);r={};let o=this.getSchemaByName(t,i);for(let a in o)try{let t;let s=o[a],l=e[a];if(s.optional&&void 0===l||void 0!==s.defaultValue&&l===s.defaultValue)continue;if(!s.optional&&void 0===l)throw new o5(n.name,`Property '${a}' is required.`);t="number"==typeof s.type?s.converter?s.repeated?l.map(t=>s.converter.toJSON(t,e)):s.converter.toJSON(l,e):l:s.repeated?l.map(e=>this.toJSON(e,{schemaName:i})):this.toJSON(l,{schemaName:i}),this.checkTypes(t,s),this.checkValues(t,s),r[s.name||a]=t}catch(e){if(e instanceof o5)throw e;throw new o5(t.target.name,`Property '${a}' is wrong. ${e.message}`,e)}}else for(let t in r={},e)r[t]=this.toJSON(e[t],{schemaName:i})}else r=e;return r}}class ad extends ac{static parse(e,t){let r=JSON.parse(e);return this.fromJSON(r,t)}static fromJSON(e,t){let r=t.targetSchema,n=t.schemaName||ar,i=new r;if(ae(i))return i.fromJSON(e);let o=an.get(r),a=this.getSchemaByName(o,n),s={};for(let r in t.strictProperty&&!Array.isArray(e)&&ad.checkStrictProperty(e,a,o),a)try{let s=a[r],l=s.name||r,c=e[l];
26if(void 0===c&&(s.optional||void 0!==s.defaultValue))continue;if(!s.optional&&void 0===c)throw new o3(o,`Property '${l}' is required.`);if(this.checkTypes(c,s),this.checkValues(c,s),"number"==typeof s.type)s.converter?s.repeated?i[r]=c.map(e=>s.converter.fromJSON(e,i)):i[r]=s.converter.fromJSON(c,i):i[r]=c;else{let e={...t,targetSchema:s.type,schemaName:n};s.repeated?i[r]=c.map(t=>this.fromJSON(t,e)):i[r]=this.fromJSON(c,e)}}catch(e){if(e instanceof o3||(e=new o3(o,`Property '${r}' is wrong. ${e.message}`,e)),t.strictAllKeys)s[r]=e;else throw e}let l=Object.keys(s);if(l.length)throw new o8(o,l,s);return i}static checkStrictProperty(e,t,r){let n=Object.keys(e),i=Object.keys(t),o=[];for(let e of n)-1===i.indexOf(e)&&o.push(e);if(o.length)throw new o8(r,o)}}function ah(e){let t=[];return e.pattern&&t.push(new ai(e.pattern)),(e.type===U.Number||e.type===U.Any)&&((void 0!==e.minInclusive||void 0!==e.maxInclusive)&&t.push(new ao(e.minInclusive,e.maxInclusive)),(void 0!==e.minExclusive||void 0!==e.maxExclusive)&&t.push(new aa(e.minExclusive,e.maxExclusive)),void 0!==e.enumeration&&t.push(new al(e.enumeration))),(e.type===U.String||e.repeated||e.type===U.Any)&&(void 0!==e.length||void 0!==e.minLength||void 0!==e.maxLength)&&t.push(new as(e.length,e.minLength,e.maxLength)),t}let ap=(e={})=>(t,r)=>{let n,i;let o=`Cannot set type for ${r} property of ${t.constructor.name} schema`;an.has(t.constructor)?(n=an.get(t.constructor)).target!==t.constructor&&(n=an.create(t.constructor),an.set(t.constructor,n)):(n=an.create(t.constructor),an.set(t.constructor,n));let a=Object.assign({type:U.Any,validations:[]},e);if(a.validations=ah(a),"number"!=typeof a.type&&!an.has(a.type)&&!ae(a.type))throw Error(`${o}. Assigning type doesn't have schema.`);for(let t of i=Array.isArray(e.schema)?e.schema:[e.schema||ar])n.names[t]||(n.names[t]={}),n.names[t][r]=a};class af extends Error{}class am extends af{}class ag extends af{constructor(e){super(`Unsupported operation: ${e?`${e}`:""}`)}}class ay extends af{}class av extends af{constructor(e){super(`${e}: Missing required property`)}}class ab{static toArrayBuffer(e){let t=e.replace(/-{5}(BEGIN|END) .*-{5}/g,"").replace("\r","").replace("\n","");return nF.ep.FromBase64(t)}static toUint8Array(e){return new Uint8Array(this.toArrayBuffer(e))}static fromBufferSource(e,t){let r;let n=nF.ep.ToBase64(e),i=0,o=[];for(;i<n.length&&(r=n.slice(i,i+64)).length;)o.push(r),i+=64;let a=t.toUpperCase();return`-----BEGIN ${a}-----
27${o.join("\n")}
28-----END ${a}-----`}static isPEM(e){return/-----BEGIN .+-----[A-Za-z0-9+/+=\s\n]+-----END .+-----/i.test(e)}static getTagName(e){if(!this.isPEM(e))throw Error("Bad parameter. Incoming data is not right PEM");let t=/-----BEGIN (.+)-----/.exec(e);if(!t)throw Error("Cannot get tag from PEM");return t[1]}static hasTagName(e,t){let r=this.getTagName(e);return t.toLowerCase()===r.toLowerCase()}static isCertificate(e){return this.hasTagName(e,"certificate")}static isCertificateRequest(e){return this.hasTagName(e,"certificate request")}static isCRL(e){return this.hasTagName(e,"x509 crl")}static isPublicKey(e){return this.hasTagName(e,"public key")}}function a_(e){return"object"==typeof e&&"kty"in e}class aw{async digest(...e){return this.checkDigest.apply(this,e),this.onDigest.apply(this,e)}checkDigest(e,t){this.checkAlgorithmName(e)}async onDigest(e,t){throw new ag("digest")}async generateKey(...e){return this.checkGenerateKey.apply(this,e),this.onGenerateKey.apply(this,e)}checkGenerateKey(e,t,r,...n){let i;if(this.checkAlgorithmName(e),this.checkGenerateKeyParams(e),!(r&&r.length))throw TypeError("Usages cannot be empty when creating a key.");i=Array.isArray(this.usages)?this.usages:this.usages.privateKey.concat(this.usages.publicKey),this.checkKeyUsages(r,i)}checkGenerateKeyParams(e){}async onGenerateKey(e,t,r,...n){throw new ag("generateKey")}async sign(...e){return this.checkSign.apply(this,e),this.onSign.apply(this,e)}checkSign(e,t,r,...n){this.checkAlgorithmName(e),this.checkAlgorithmParams(e),this.checkCryptoKey(t,"sign")}async onSign(e,t,r,...n){throw new ag("sign")}async verify(...e){return this.checkVerify.apply(this,e),this.onVerify.apply(this,e)}checkVerify(e,t,r,n,...i){this.checkAlgorithmName(e),this.checkAlgorithmParams(e),this.checkCryptoKey(t,"verify")}async onVerify(e,t,r,n,...i){throw new ag("verify")}async encrypt(...e){return this.checkEncrypt.apply(this,e),this.onEncrypt.apply(this,e)}checkEncrypt(e,t,r,n={},...i){this.checkAlgorithmName(e),this.checkAlgorithmParams(e),this.checkCryptoKey(t,n.keyUsage?"encrypt":void 0)}async onEncrypt(e,t,r,...n){throw new ag("encrypt")}async decrypt(...e){return this.checkDecrypt.apply(this,e),this.onDecrypt.apply(this,e)}checkDecrypt(e,t,r,n={},...i){this.checkAlgorithmName(e),this.checkAlgorithmParams(e),this.checkCryptoKey(t,n.keyUsage?"decrypt":void 0)}async onDecrypt(e,t,r,...n){throw new ag("decrypt")}
28async deriveBits(...e){return this.checkDeriveBits.apply(this,e),this.onDeriveBits.apply(this,e)}checkDeriveBits(e,t,r,n={},...i){if(this.checkAlgorithmName(e),this.checkAlgorithmParams(e),this.checkCryptoKey(t,n.keyUsage?"deriveBits":void 0),r%8!=0)throw new ay("length: Is not multiple of 8")}async onDeriveBits(e,t,r,...n){throw new ag("deriveBits")}async exportKey(...e){return this.checkExportKey.apply(this,e),this.onExportKey.apply(this,e)}checkExportKey(e,t,...r){if(this.checkKeyFormat(e),this.checkCryptoKey(t),!t.extractable)throw new af("key: Is not extractable")}async onExportKey(e,t,...r){throw new ag("exportKey")}async importKey(...e){return this.checkImportKey.apply(this,e),this.onImportKey.apply(this,e)}checkImportKey(e,t,r,n,i,...o){this.checkKeyFormat(e),this.checkKeyData(e,t),this.checkAlgorithmName(r),this.checkImportParams(r),Array.isArray(this.usages)&&this.checkKeyUsages(i,this.usages)}async onImportKey(e,t,r,n,i,...o){throw new ag("importKey")}checkAlgorithmName(e){if(e.name.toLowerCase()!==this.name.toLowerCase())throw new am("Unrecognized name")}checkAlgorithmParams(e){}checkDerivedKeyParams(e){}checkKeyUsages(e,t){for(let r of e)if(-1===t.indexOf(r))throw TypeError("Cannot create a key using the specified key usages")}checkCryptoKey(e,t){if(this.checkAlgorithmName(e.algorithm),t&&-1===e.usages.indexOf(t))throw new af("key does not match that of operation")}checkRequiredProperty(e,t){if(!(t in e))throw new av(t)}checkHashAlgorithm(e,t){for(let r of t)if(r.toLowerCase()===e.name.toLowerCase())return;throw new ay(`hash: Must be one of ${t.join(", ")}`)}checkImportParams(e){}checkKeyFormat(e){switch(e){case"raw":case"pkcs8":case"spki":case"jwk":break;default:throw TypeError("format: Is invalid value. Must be 'jwk', 'raw', 'spki', or 'pkcs8'")}}checkKeyData(e,t){if(!t)throw TypeError("keyData: Cannot be empty on empty on key importing");if("jwk"===e){if(!a_(t))throw TypeError("keyData: Is not JsonWebToken")}else if(!nF.vJ.isBufferSource(t))throw TypeError("keyData: Is not ArrayBufferView or ArrayBuffer")}prepareData(e){return nF.vJ.toArrayBuffer(e)}}class aS extends aw{checkGenerateKeyParams(e){if(this.checkRequiredProperty(e,"length"),"number"!=typeof e.length)throw TypeError("length: Is not of type Number");switch(e.length){case 128:case 192:case 256:break;default:throw TypeError("length: Must be 128, 192, or 256")}}checkDerivedKeyParams(e){this.checkGenerateKeyParams(e)}}class ak extends aS{constructor(){super(...arguments),this.name="AES-CBC",this.usages=["encrypt","decrypt","wrapKey","unwrapKey"]}checkAlgorithmParams(e){if(this.checkRequiredProperty(e,"iv"),!(e.iv instanceof ArrayBuffer||ArrayBuffer.isView(e.iv)))throw TypeError("iv: Is not of type '(ArrayBuffer or ArrayBufferView)'");if(16!==e.iv.byteLength)throw TypeError("iv: Must have length 16 bytes")}}class ax extends aS{constructor(){super(...arguments),this.name="AES-CMAC",this.usages=["sign","verify"]}checkAlgorithmParams(e){if(this.checkRequiredProperty(e,"length"),"number"!=typeof e.length)throw TypeError("length: Is not a Number");if(e.length<1)throw new ay("length: Must be more than 0")}}class aE extends aS{constructor(){super(...arguments),this.name="AES-CTR",this.usages=["encrypt","decrypt","wrapKey","unwrapKey"]}checkAlgorithmParams(e){if(this.checkRequiredProperty(e,"counter"),!(e.counter instanceof ArrayBuffer||ArrayBuffer.isView(e.counter)))throw TypeError("counter: Is not of type '(ArrayBuffer or ArrayBufferView)'");if(16!==e.counter.byteLength)throw TypeError("iv: Must have length 16 bytes");if(this.checkRequiredProperty(e,"length"),"number"!=typeof e.length)throw TypeError("length: Is not a Number");if(e.length<1)throw new ay("length: Must be more than 0")}}class aT extends aS{constructor(){super(...arguments),this.name="AES-ECB",this.usages=["encrypt","decrypt","wrapKey","unwrapKey"]}}class aA extends aS{constructor(){super(...arguments),this.name="AES-GCM",this.usages=["encrypt","decrypt","wrapKey","unwrapKey"]}checkAlgorithmParams(e){var t;if(this.checkRequiredProperty(e,"iv"),!(e.iv instanceof ArrayBuffer||ArrayBuffer.isView(e.iv)))throw TypeError("iv: Is not of type '(ArrayBuffer or ArrayBufferView)'");if(e.iv.byteLength<1)throw new ay("iv: Must have length more than 0 and less than 2^64 - 1");switch(null!==(t=e.tagLength)&&void 0!==t||(e.tagLength=128),e.tagLength){case 32:case 64:case 96:case 104:case 112:case 120:case 128:break;default:throw new ay("tagLength: Must be one of 32, 64, 96, 104, 112, 120 or 128")}}}class aC extends aS{constructor(){super(...arguments),this.name="AES-KW",this.usages=["wrapKey","unwrapKey"]}}class aP extends aw{constructor(){super(...arguments),this.usages=["encrypt","decrypt","wrapKey","unwrapKey"]}checkAlgorithmParams(e){if(this.ivSize){if(this.checkRequiredProperty(e,"iv"),!(e.iv instanceof ArrayBuffer||ArrayBuffer.isView(e.iv)))throw TypeError("iv: Is not of type '(ArrayBuffer or ArrayBufferView)'");if(e.iv.byteLength!==this.ivSize)throw TypeError(`iv: Must have length ${this.ivSize} bytes`)}}checkGenerateKeyParams(e){if(this.checkRequiredProperty(e,"length"),"number"!=typeof e.length)throw TypeError("length: Is not of type Number");if(e.length!==this.keySizeBits)throw new ay(`algorithm.length: Must be ${this.keySizeBits}`)}checkDerivedKeyParams(e){this.checkGenerateKeyParams(e)}}class aI extends aw{constructor(){super(...arguments),this.hashAlgorithms=["SHA
28-1","SHA-256","SHA-384","SHA-512"]}checkGenerateKeyParams(e){if(this.checkRequiredProperty(e,"hash"),this.checkHashAlgorithm(e.hash,this.hashAlgorithms),this.checkRequiredProperty(e,"publicExponent"),!(e.publicExponent&&e.publicExponent instanceof Uint8Array))throw TypeError("publicExponent: Missing or not a Uint8Array");let t=nF.ep.ToBase64(e.publicExponent);if(!("Aw=="===t||"AQAB"===t))throw TypeError("publicExponent: Must be [3] or [1,0,1]");if(this.checkRequiredProperty(e,"modulusLength"),e.modulusLength%8||e.modulusLength<256||e.modulusLength>16384)throw TypeError("The modulus length must be a multiple of 8 bits and >= 256 and <= 16384")}checkImportParams(e){this.checkRequiredProperty(e,"hash"),this.checkHashAlgorithm(e.hash,this.hashAlgorithms)}}class aO extends aI{constructor(){super(...arguments),this.name="RSASSA-PKCS1-v1_5",this.usages={privateKey:["sign"],publicKey:["verify"]}}}class aN extends aI{constructor(){super(...arguments),this.name="RSA-PSS",this.usages={privateKey:["sign"],publicKey:["verify"]}}checkAlgorithmParams(e){if(this.checkRequiredProperty(e,"saltLength"),"number"!=typeof e.saltLength)throw TypeError("saltLength: Is not a Number");if(e.saltLength<0)throw RangeError("saltLength: Must be positive number")}}class aD extends aI{constructor(){super(...arguments),this.name="RSA-OAEP",this.usages={privateKey:["decrypt","unwrapKey"],publicKey:["encrypt","wrapKey"]}}checkAlgorithmParams(e){if(e.label&&!(e.label instanceof ArrayBuffer||ArrayBuffer.isView(e.label)))throw TypeError("label: Is not of type '(ArrayBuffer or ArrayBufferView)'")}}class aR extends aw{checkGenerateKeyParams(e){this.checkRequiredProperty(e,"namedCurve"),this.checkNamedCurve(e.namedCurve)}checkNamedCurve(e){for(let t of this.namedCurves)if(t.toLowerCase()===e.toLowerCase())return;throw new ay(`namedCurve: Must be one of ${this.namedCurves.join(", ")}`)}}class aL extends aR{constructor(){super(...arguments),this.name="ECDSA",this.hashAlgorithms=["SHA-1","SHA-256","SHA-384","SHA-512"],this.usages={privateKey:["sign"],publicKey:["verify"]},this.namedCurves=["P-256","P-384","P-521","K-256"]}checkAlgorithmParams(e){this.checkRequiredProperty(e,"hash"),this.checkHashAlgorithm(e.hash,this.hashAlgorithms)}}let aM=["secret","private","public"];class aj{static create(e,t,r,n){let i=new this;return i.algorithm=e,i.type=t,i.extractable=r,i.usages=n,i}static isKeyType(e){return -1!==aM.indexOf(e)}get[Symbol.toStringTag](){return"CryptoKey"}}class aB extends aR{constructor(){super(...arguments),this.name="ECDH",this.usages={privateKey:["deriveBits","deriveKey"],publicKey:[]},this.namedCurves=["P-256","P-384","P-521","K-256"]}checkAlgorithmParams(e){if(this.checkRequiredProperty(e,"public"),!(e.public instanceof aj))throw TypeError("public: Is not a CryptoKey");if("public"!==e.public.type)throw new ay("public: Is not a public key");if(e.public.algorithm.name!==this.name)throw new ay(`public: Is not ${this.name} key`)}}class aU extends aB{constructor(){super(...arguments),this.name="ECDH-ES",this.namedCurves=["X25519","X448"]}}class aF extends aR{constructor(){super(...arguments),this.name="EdDSA",this.usages={privateKey:["sign"],publicKey:["verify"]},this.namedCurves=["Ed25519","Ed448"]}}let aH=class{constructor(e){e&&(this.value=e)}};o0([oW({type:B.ObjectIdentifier})],aH.prototype,"value",void 0),aH=o0([oq({type:j.Choice})],aH);class az{constructor(e){Object.assign(this,e)}}o0([oW({type:B.ObjectIdentifier})],az.prototype,"algorithm",void 0),o0([oW({type:B.Any,optional:!0})],az.prototype,"parameters",void 0);class a${constructor(){this.version=0,this.privateKeyAlgorithm=new az,this.privateKey=new ArrayBuffer(0)}}o0([oW({type:B.Integer})],a$.prototype,"version",void 0),o0([oW({type:az})],a$.prototype,"privateKeyAlgorithm",void 0),o0([oW({type:B.OctetString})],a$.prototype,"privateKey",void 0),o0([oW({type:B.Any,optional:!0})],a$.prototype,"attributes",void 0);class aq{constructor(){this.publicKeyAlgorithm=new az,this.publicKey=new ArrayBuffer(0)}}o0([oW({type:az})],aq.prototype,"publicKeyAlgorithm",void 0),o0([oW({type:B.BitString})],aq.prototype,"publicKey",void 0);let aW={fromJSON:e=>nF.ep.FromBase64Url(e),toJSON:e=>nF.ep.ToBase64Url(new Uint8Array(e))},aV={fromASN:e=>new Uint8Array(e.valueBlock.valueHex)[0]?e.valueBlock.valueHex:e.valueBlock.valueHex.slice(1),toASN:e=>new iB({valueHex:new Uint8Array(e)[0]>127?(0,nF.$e)(new Uint8Array([0]).buffer,e):e})};class aG{constructor(){this.version=0,this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0),this.privateExponent=new ArrayBuffer(0),this.prime1=new ArrayBuffer(0),this.prime2=new ArrayBuffer(0),this.exponent1=new ArrayBuffer(0),this.exponent2=new ArrayBuffer(0),this.coefficient=new ArrayBuffer(0)}}o0([oW({type:B.Integer,converter:og}
28)],aG.prototype,"version",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"n",converter:aW})],aG.prototype,"modulus",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"e",converter:aW})],aG.prototype,"publicExponent",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"d",converter:aW})],aG.prototype,"privateExponent",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"p",converter:aW})],aG.prototype,"prime1",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"q",converter:aW})],aG.prototype,"prime2",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"dp",converter:aW})],aG.prototype,"exponent1",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"dq",converter:aW})],aG.prototype,"exponent2",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"qi",converter:aW})],aG.prototype,"coefficient",void 0),o0([oW({type:B.Any,optional:!0})],aG.prototype,"otherPrimeInfos",void 0);class aK{constructor(){this.modulus=new ArrayBuffer(0),this.publicExponent=new ArrayBuffer(0)}}o0([oW({type:B.Integer,converter:aV}),ap({name:"n",converter:aW})],aK.prototype,"modulus",void 0),o0([oW({type:B.Integer,converter:aV}),ap({name:"e",converter:aW})],aK.prototype,"publicExponent",void 0);let aZ=class{constructor(e){this.value=new ArrayBuffer(0),e&&(this.value=e)}toJSON(){let e=new Uint8Array(this.value);if(4!==e[0])throw new af("Wrong ECPoint. Current version supports only Uncompressed (0x04) point");let t=(e=new Uint8Array(this.value.slice(1))).length/2,r=0;return{x:nF.ep.ToBase64Url(e.buffer.slice(r,r+t)),y:nF.ep.ToBase64Url(e.buffer.slice(r+t,r+t+t))}}fromJSON(e){if(!("x"in e))throw Error("x: Missing required property");if(!("y"in e))throw Error("y: Missing required property");let t=nF.ep.FromBase64Url(e.x),r=nF.ep.FromBase64Url(e.y),n=(0,nF.$e)(new Uint8Array([4]).buffer,t,r);return this.value=new Uint8Array(n).buffer,this}};o0([oW({type:B.OctetString})],aZ.prototype,"value",void 0),aZ=o0([oq({type:j.Choice})],aZ);class aY{constructor(){this.version=1,this.privateKey=new ArrayBuffer(0)}fromJSON(e){if(!("d"in e))throw Error("d: Missing required property");if(this.privateKey=nF.ep.FromBase64Url(e.d),"x"in e){let t=new aZ;t.fromJSON(e);let r=oK.toASN(t);"valueHex"in r.valueBlock&&(this.publicKey=r.valueBlock.valueHex)}return this}toJSON(){let e={};return e.d=nF.ep.ToBase64Url(this.privateKey),this.publicKey&&Object.assign(e,new aZ(this.publicKey).toJSON()),e}}o0([oW({type:B.Integer,converter:og})],aY.prototype,"version",void 0),o0([oW({type:B.OctetString})],aY.prototype,"privateKey",void 0),o0([oW({context:0,type:B.Any,optional:!0})],aY.prototype,"parameters",void 0),o0([oW({context:1,type:B.BitString,optional:!0})],aY.prototype,"publicKey",void 0);let aJ={fromASN:e=>{let t=new Uint8Array(e.valueBlock.valueHex);return 0===t[0]?t.buffer.slice(1):t.buffer},toASN:e=>{let t=new Uint8Array(e);if(t[0]>127){let e=new Uint8Array(t.length+1);return e.set(t,1),new iB({valueHex:e.buffer})}return new iB({valueHex:e})}};var aX=Object.freeze({__proto__:null,AsnIntegerWithoutPaddingConverter:aJ});class aQ{static decodePoint(e,t){let r=nF.vJ.toUint8Array(e);if(0===r.length||4!==r[0])throw Error("Only uncompressed point format supported");let n=(r.length-1)/2;if(n!==Math.ceil(t/8))throw Error("Point does not match field size");return{x:r.slice(1,n+1),y:r.slice(n+1,n+1+n)}}static encodePoint(e,t){let r=Math.ceil(t/8);if(e.x.byteLength!==r||e.y.byteLength!==r)throw Error("X,Y coordinates don't match point size criteria");let n=nF.vJ.toUint8Array(e.x),i=nF.vJ.toUint8Array(e.y),o=new Uint8Array(2*r+1);return o[0]=4,o.set(n,1),o.set(i,r+1),o}static getSize(e){return Math.ceil(e/8)}static encodeSignature(e,t){let r=this.getSize(t),n=nF.vJ.toUint8Array(e.r),i=nF.vJ.toUint8Array(e.s),o=new Uint8Array(2*r);return o.set(this.padStart(n,r)),o.set(this.padStart(i,r),r),o}static decodeSignature(e,t){let r=this.getSize(t),n=nF.vJ.toUint8Array(e);if(n.length!==2*r)throw Error("Incorrect size of the signature");let i=n.slice(0,r),o=n.slice(r);return{r:this.trimStart(i),s:this.trimStart(o)}}static trimStart(e){let t=0;for(;t<e.length-1&&0===e[t];)t++;return 0===t?e:e.slice(t,e.length)}static padStart(e,t){if(t===e.length)return e;let r=new Uint8Array(t);return r.set(e,t-e.length),r}}class a0{constructor(){this.r=new ArrayBuffer(0),this.s=new ArrayBuffer(0)}static fromWebCryptoSignature(e){let t=e.byteLength/2,r=aQ.decodeSignature(e,8*t),n=new a0;return n.r=nF.vJ.toArrayBuffer(r.r),n.s=nF.vJ.toArrayBuffer(r.s),n}toWebCryptoSignature(e){return null!=e||(e=8*Math.max(this.r.byteLength,this.s.byteLength)),aQ.encodeSignature(this,e).buffer}}o0([oW({type:B.Integer,converter:aJ})],a0.prototype,"r",void 0),o0([oW({type:B.Integer,converter:aJ})],a0.prototype,"s",void 0);class a1 extends a${}o0([oW({context:1,implicit:!0,type:B.BitString,optional:!0})],a1.prototype,"publicKey",void 0);let a2=class{constructor(){this.value=new ArrayBuffer(0)}fromJSON(e){if(!e.d)throw Error("d: Missing required property");return this.value=nF.ep.FromBase64Url(e.d),this}toJSON(){return{d:nF.ep.ToBase64Url(this.value)}}};o0([oW({type:B.OctetString})],a2.prototype,"value",void 0),a2=o0([oq({type:j.Choice})],a2);let a4=class{constructor(e){this.value=new ArrayBuffer(0),e&&(this.value=e)}toJSON(){return{x:nF.ep.ToBase64Url(this.value)}}fromJSON(e){if(!("x"in e))throw Error("x: Missing required property");return this.value=nF.ep.FromBase64Url(e.x),this}};o0([oW({type:B.BitString})],a4.prototype,"value",void 0),a4=o0([oq({type:j.Choice})],a4);let a3=class{};o0([oW({type:B.OctetString}),ap({type:U.String,converter:aW})],a3.prototype,"d",void 0),a3=o0([oq({type:j.Choice})],a3);let a6="1.2.840.10045.3.1.7",a5="1.3.132.0",a8=`${a5}.34`,a7=`${a5}.35`,a9=`${a5}.10`,se="1.3.36.3.3.2.8.1.1",st=`${se}.1`,sr=`${se}.2`,sn=`${se}.3`,si=`${se}.4`,so=`${se}.5`,sa=`${se}.6`,ss=`${se}.7`,sl=`${se}.8`,sc=`${se}.9`,su=`${se}.10`,sd=`${se}.11`,sh=`${se}.12`,sp=`${se}.13`,sf=`${se}.14`;var sm=Object.freeze({__proto__:null,AlgorithmIdentifier:az,get CurvePrivateKey(){return a3},EcDsaSignature:a0,EcPrivateKey:aY,get EcPublicKey(){return aZ},get EdPrivateKey(){return a2},get EdPublicKey(){return a4},get ObjectIdentifier(){return aH},OneAsymmetricKey:a1,PrivateKeyInfo:a$,PublicKeyInfo:aq,RsaPrivateKey:aG,RsaPublicKey:aK,converters:aX,idBrainpoolP160r1:st,idBrainpoolP160t1:sr,idBrainpoolP192r1:sn,idBrainpoolP192t1:si,idBrainpoolP224r1:so,idBrainpoolP224t1:sa,idBrainpoolP256r1:ss,idBrainpoolP256t1:sl,idBrainpoolP320r1:sc,idBrainpoolP320t1:su,idBrainpoolP384r1:sd,idBrainpoolP384t1:sh,idBrainpoolP512r1:sp,idBrainpoolP512t1:sf,idEd25519:"1.3.101.112",idEd448:"1.3.101.113",idEllipticCurve:a5,idSecp256k1:a9,idSecp256r1:a6,idSecp384r1:a8,idSecp521r1:a7,idVersionOne:se,idX25519:"1.3.101.110",i
28dX448:"1.3.101.111"});class sg{constructor(){}static register(e){let t=new aH;t.value=e.id;let r=oZ.serialize(t);this.items.push({...e,raw:r}),this.names.push(e.name)}static find(e){for(let t of(e=e.toUpperCase(),this.items))if(t.name.toUpperCase()===e||t.id.toUpperCase()===e)return t;return null}static get(e){let t=this.find(e);if(!t)throw Error(`Unsupported EC named curve '${e}'`);return t}}sg.items=[],sg.names=[],sg.register({name:"P-256",id:a6,size:256}),sg.register({name:"P-384",id:a8,size:384}),sg.register({name:"P-521",id:a7,size:521}),sg.register({name:"K-256",id:a9,size:256}),sg.register({name:"brainpoolP160r1",id:st,size:160}),sg.register({name:"brainpoolP160t1",id:sr,size:160}),sg.register({name:"brainpoolP192r1",id:sn,size:192}),sg.register({name:"brainpoolP192t1",id:si,size:192}),sg.register({name:"brainpoolP224r1",id:so,size:224}),sg.register({name:"brainpoolP224t1",id:sa,size:224}),sg.register({name:"brainpoolP256r1",id:ss,size:256}),sg.register({name:"brainpoolP256t1",id:sl,size:256}),sg.register({name:"brainpoolP320r1",id:sc,size:320}),sg.register({name:"brainpoolP320t1",id:su,size:320}),sg.register({name:"brainpoolP384r1",id:sd,size:384}),sg.register({name:"brainpoolP384t1",id:sh,size:384}),sg.register({name:"brainpoolP512r1",id:sp,size:512}),sg.register({name:"brainpoolP512t1",id:sf,size:512});class sy extends aw{constructor(){super(...arguments),this.name="X25519",this.usages={privateKey:["deriveKey","deriveBits"],publicKey:[]}}checkAlgorithmParams(e){this.checkRequiredProperty(e,"public")}}class sv extends aw{constructor(){super(...arguments),this.name="Ed25519",this.usages={privateKey:["sign"],publicKey:["verify"]}}}class sb extends aw{constructor(){super(...arguments),this.name="HMAC",this.hashAlgorithms=["SHA-1","SHA-256","SHA-384","SHA-512"],this.usages=["sign","verify"]}getDefaultLength(e){switch(e.toUpperCase()){case"SHA-1":case"SHA-256":case"SHA-384":case"SHA-512":return 512;default:throw Error(`Unknown algorithm name '${e}'`)}}checkGenerateKeyParams(e){if(this.checkRequiredProperty(e,"hash"),this.checkHashAlgorithm(e.hash,this.hashAlgorithms),"length"in e){if("number"!=typeof e.length)throw TypeError("length: Is not a Number");if(e.length<1)throw RangeError("length: Number is out of range")}}checkImportParams(e){this.checkRequiredProperty(e,"hash"),this.checkHashAlgorithm(e.hash,this.hashAlgorithms)}}class s_ extends aw{constructor(){super(...arguments),this.name="PBKDF2",this.hashAlgorithms=["SHA-1","SHA-256","SHA-384","SHA-512"],this.usages=["deriveBits","deriveKey"]}checkAlgorithmParams(e){if(this.checkRequiredProperty(e,"hash"),this.checkHashAlgorithm(e.hash,this.hashAlgorithms),this.checkRequiredProperty(e,"salt"),!(e.salt instanceof ArrayBuffer||ArrayBuffer.isView(e.salt)))throw TypeError("salt: Is not of type '(ArrayBuffer or ArrayBufferView)'");if(this.checkRequiredProperty(e,"iterations"),"number"!=typeof e.iterations)throw TypeError("iterations: Is not a Number");if(e.iterations<1)throw TypeError("iterations: Is less than 1")}checkImportKey(e,t,r,n,i,...o){if(super.checkImportKey(e,t,r,n,i,...o),n)throw SyntaxError("extractable: Must be 'false'")}}class sw extends aw{constructor(){super(...arguments),this.name="HKDF",this.hashAlgorithms=["SHA-1","SHA-256","SHA-384","SHA-512"],this.usages=["deriveKey","deriveBits"]}checkAlgorithmParams(e){if(this.checkRequiredProperty(e,"hash"),this.checkHashAlgorithm(e.hash,this.hashAlgorithms),this.checkRequiredProperty(e,"salt"),!nF.vJ.isBufferSource(e.salt)||(this.checkRequiredProperty(e,"info"),!nF.vJ.isBufferSource(e.info)))throw TypeError("salt: Is not of type '(ArrayBuffer or ArrayBufferView)'")}checkImportKey(e,t,r,n,i,...o){if(super.checkImportKey(e,t,r,n,i,...o),n)throw SyntaxError("extractable: Must be 'false'")}}class sS extends aw{constructor(){super(...arguments),this.usages=[],this.defaultLength=0}digest(...e){return e[0]={length:this.defaultLength,...e[0]},super.digest.apply(this,e)}checkDigest(e,t){super.checkDigest(e,t);let r=e.length||0;if("number"!=typeof r)throw TypeError("length: Is not a Number");if(r<0)throw TypeError("length: Is negative")}}class sk extends sS{constructor(){super(...arguments),this.name="shake128",this.defaultLength=16}}class sx extends sS{constructor(){super(...arguments),this.name="shake256",this.defaultLength=32}}class sE{get[Symbol.toStringTag](){return"Crypto"}randomUUID(){let e=this.getRandomValues(new Uint8Array(16));e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=nF.ep.ToHex(e).toLowerCase();return`${t.substring(0,8)}-${t.substring(8,12)}-${t.substring(12,16)}-${t.substring(16,20)}-${t.substring(20)}`}}class sT{constructor(){this.items={}}get(e){return this.items[e.toLowerCase()]||null}set(e){this.items[e.name.toLowerCase()]=e}removeAt(e){let t=this.get(e.toLowerCase());return t&&delete this.items[e],t}has(e){return!!this.get(e)}get length(){return Object.keys(this.items).length}get algorithms(){let e=[];for(let t in this.items){let r=this.items[t];e.push(r.name)}return e.sort()}}let sA={jwk:["private","public","secret"],pkcs8:["private"],spki:["public"],raw:["secret","public"]},sC=["pkcs8","spki","raw"];class sP{constructor(){this.providers=new sT}static isHashedAlgorithm(e){return!!e&&"object"==typeof e&&"name"in e&&"hash"in e}get[Symbol.toStringTag](){return"SubtleCrypto"}async digest(...e){this.checkRequiredArguments(e,2,"digest");let[t,r,...n]=e,i=this.prepareAlgorithm(t),o=nF.vJ.toArrayBuffer(r),a=this.getProvider(i.name);return await a.digest(i,o,...n)}async generateKey(...e){this.checkRequiredArguments(e,3,"generateKey");let[t,r,n,...i]=e,o=this.prepareAlgorithm(t),a=this.getProvider(o.name);return await a.generateKey({...o,name:a.name},r,n,...i)}async sign(...e){this.checkRequiredArguments(e,3,"sign");let[t,r,n,...i]=e;this.checkCryptoKey(r);let o=this.prepareAlgorithm(t),a=nF.vJ.toArrayBuffer(n),s=this.getProvider(o.name);return await s.sign({...o,name:s.name},r,a,...i)}async verify(...e){this.checkRequiredArguments(e,4,"verify");let[t,r,n,i,...o]=e;this.checkCryptoKey(r);let a=this.prepareAlgorithm(t),s=nF.vJ.toArrayBuffer(i),l=nF.vJ.toArrayBuffer(n),c=this.getProvider(a.name);return await c.verify({...a,name:c.name},r,l,s,...o)}async encrypt(...e){this.checkRequiredArguments(e,3,"encrypt");let[t,r,n,...i]=e;this.checkCryptoKey(r);let o=this.prepareAlgorithm(t),a=nF.vJ.toArrayBuffer(n),s=this.getProvider(o.name);
28return await s.encrypt({...o,name:s.name},r,a,{keyUsage:!0},...i)}async decrypt(...e){this.checkRequiredArguments(e,3,"decrypt");let[t,r,n,...i]=e;this.checkCryptoKey(r);let o=this.prepareAlgorithm(t),a=nF.vJ.toArrayBuffer(n),s=this.getProvider(o.name);return await s.decrypt({...o,name:s.name},r,a,{keyUsage:!0},...i)}async deriveBits(...e){this.checkRequiredArguments(e,3,"deriveBits");let[t,r,n,...i]=e;this.checkCryptoKey(r);let o=this.prepareAlgorithm(t),a=this.getProvider(o.name);return await a.deriveBits({...o,name:a.name},r,n,{keyUsage:!0},...i)}async deriveKey(...e){this.checkRequiredArguments(e,5,"deriveKey");let[t,r,n,i,o,...a]=e,s=this.prepareAlgorithm(n);this.getProvider(s.name).checkDerivedKeyParams(s);let l=this.prepareAlgorithm(t),c=this.getProvider(l.name);c.checkCryptoKey(r,"deriveKey");let u=await c.deriveBits({...l,name:c.name},r,n.length||512,{keyUsage:!1},...a);return this.importKey("raw",u,n,i,o,...a)}async exportKey(...e){this.checkRequiredArguments(e,2,"exportKey");let[t,r,...n]=e;if(this.checkCryptoKey(r),!sA[t])throw TypeError("Invalid keyFormat argument");if(!sA[t].includes(r.type))throw new DOMException("The key is not of the expected type");let i=this.getProvider(r.algorithm.name);return await i.exportKey(t,r,...n)}async importKey(...e){this.checkRequiredArguments(e,5,"importKey");let[t,r,n,i,o,...a]=e,s=this.prepareAlgorithm(n),l=this.getProvider(s.name);
28if("jwk"===t){if("object"!=typeof r||!r.kty)throw TypeError("Key data must be an object for JWK import")}else if(sC.includes(t)){if(!nF.vJ.isBufferSource(r))throw TypeError("Key data must be a BufferSource for non-JWK formats")}else throw TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView or JsonWebKey)'");return l.importKey(t,r,{...s,name:l.name},i,o,...a)}async wrapKey(e,t,r,n,...i){let o=await this.exportKey(e,t,...i);if("jwk"===e){let e=JSON.stringify(o);o=nF.ep.FromUtf8String(e)}let a=this.prepareAlgorithm(n),s=nF.vJ.toArrayBuffer(o),l=this.getProvider(a.name);return l.encrypt({...a,name:l.name},r,s,{keyUsage:!1},...i)}async unwrapKey(e,t,r,n,i,o,a,...s){let l=this.prepareAlgorithm(n),c=nF.vJ.toArrayBuffer(t),u=this.getProvider(l.name),d=await u.decrypt({...l,name:u.name},r,c,{keyUsage:!1},...s);if("jwk"===e)try{d=JSON.parse(nF.ep.ToUtf8String(d))}catch(t){let e=TypeError("wrappedKey: Is not a JSON");throw e.internal=t,e}return this.importKey(e,d,i,o,a,...s)}checkRequiredArguments(e,t,r){if(e.length<t)throw TypeError(`Failed to execute '${r}' on 'SubtleCrypto': ${t} arguments required, but only ${e.length} present`)}prepareAlgorithm(e){if("string"==typeof e)return{name:e};if(sP.isHashedAlgorithm(e)){let t={...e};return t.hash=this.prepareAlgorithm(e.hash),t}return{...e}}getProvider(e){let t=this.providers.get(e);if(!t)throw new am("Unrecognized name");return t}
28checkCryptoKey(e){if(!(e instanceof aj))throw TypeError("Key is not of type 'CryptoKey'")}}var sI=r(48764),sO=r(42474),sN=r.n(sO),sD=r(34155),sR=r(48764).Buffer;let sL={fromJSON:e=>sI.Buffer.from(nF.ep.FromBase64Url(e)),toJSON:e=>nF.ep.ToBase64Url(e)};class sM extends aj{constructor(){super(...arguments),this.data=sI.Buffer.alloc(0),this.algorithm={name:""},this.extractable=!1,this.type="secret",this.usages=[],this.kty="oct",this.alg=""}}o0([ap({name:"ext",type:U.Boolean,optional:!0})],sM.prototype,"extractable",void 0),o0([ap({name:"key_ops",type:U.String,repeated:!0,optional:!0})],sM.prototype,"usages",void 0),o0([ap({type:U.String})],sM.prototype,"kty",void 0),o0([ap({type:U.String,optional:!0})],sM.prototype,"alg",void 0);class sj extends sM{constructor(){super(...arguments),this.kty="oct",this.type="secret"}}class sB extends sM{}class sU extends sj{get alg(){switch(this.algorithm.name.toUpperCase()){case"AES-CBC":return`A${this.algorithm.length}CBC`;case"AES-CTR":return`A${this.algorithm.length}CTR`;case"AES-GCM":return`A${this.algorithm.length}GCM`;case"AES-KW":return`A${this.algorithm.length}KW`;case"AES-CMAC":return`A${this.algorithm.length}CMAC`;case"AES-ECB":return`A${this.algorithm.length}ECB`;default:throw new am("Unsupported algorithm name")}}set alg(e){}}o0([ap({name:"k",converter:sL})],sU.prototype,"data",void 0);class sF{static async generateKey(e,t,r){let n=new sU;return n.algorithm=e,n.extractable=t,n.usages=r,n.data=sN().randomBytes(e.length>>3),n}static async exportKey(e,t){if(!(t instanceof sU))throw Error("key: Is not AesCryptoKey");switch(e.toLowerCase()){case"jwk":return au.toJSON(t);case"raw":return new Uint8Array(t.data).buffer;default:throw new ay("format: Must be 'jwk' or 'raw'")}}static async importKey(e,t,r,n,i){let o;switch(e.toLowerCase()){case"jwk":o=ad.fromJSON(t,{targetSchema:sU});break;case"raw":(o=new sU).data=sI.Buffer.from(t);break;default:throw new ay("format: Must be 'jwk' or 'raw'")}switch(o.algorithm=r,o.algorithm.length=o.data.length<<3,o.extractable=n,o.usages=i,o.algorithm.length){case 128:case 192:case 256:break;default:throw new ay("keyData: Is wrong key length")}return o}static async encrypt(e,t,r){switch(e.name.toUpperCase()){case"AES-CBC":return this.encryptAesCBC(e,t,sI.Buffer.from(r));case"AES-CTR":return this.encryptAesCTR(e,t,sI.Buffer.from(r));case"AES-GCM":return this.encryptAesGCM(e,t,sI.Buffer.from(r));case"AES-KW":return this.encryptAesKW(e,t,sI.Buffer.from(r));case"AES-ECB":return this.encryptAesECB(e,t,sI.Buffer.from(r));default:throw new ay("algorithm: Is not recognized")}}static async decrypt(e,t,r){if(!(t instanceof sU))throw Error("key: Is not AesCryptoKey");switch(e.name.toUpperCase()){case"AES-CBC":return this.decryptAesCBC(e,t,sI.Buffer.from(r));case"AES-CTR":return this.decryptAesCTR(e,t,sI.Buffer.from(r));case"AES-GCM":return this.decryptAesGCM(e,t,sI.Buffer.from(r));case"AES-KW":return this.decryptAesKW(e,t,sI.Buffer.from(r));case"AES-ECB":return this.decryptAesECB(e,t,sI.Buffer.from(r));default:throw new ay("algorithm: Is not recognized")}}static async encryptAesCBC(e,t,r){let n=sN().createCipheriv(`aes-${t.algorithm.length}-cbc`,t.data,new Uint8Array(e.iv)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async decryptAesCBC(e,t,r){let n=sN().createDecipheriv(`aes-${t.algorithm.length}-cbc`,t.data,new Uint8Array(e.iv)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async encryptAesCTR(e,t,r){let n=sN().createCipheriv(`aes-${t.algorithm.length}-ctr`,t.data,sI.Buffer.from(e.counter)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async decryptAesCTR(e,t,r){let n=sN().createDecipheriv(`aes-${t.algorithm.length}-ctr`,t.data,new Uint8Array(e.counter)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async encryptAesGCM(e,t,r){let n=sN().createCipheriv(`aes-${t.algorithm.length}-gcm`,t.data,sI.Buffer.from(e.iv),{authTagLength:(e.tagLength||128)>>3});e.additionalData&&n.setAAD(sI.Buffer.from(e.additionalData));let i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final(),n.getAuthTag()])).buffer}static async decryptAesGCM(e,t,r){let n=(e.tagLength||128)>>3,i=sN().createDecipheriv(`aes-${t.algorithm.length}-gcm`,t.data,new Uint8Array(e.iv),{authTagLength:n}),o=r.slice(0,r.length-n),a=r.slice(r.length-n);e.additionalData&&i.setAAD(sI.Buffer.from(e.additionalData)),i.setAuthTag(a);let s=i.update(o);return new Uint8Array(s=sI.Buffer.concat([s,i.final()])).buffer}static async encryptAesKW(e,t,r){let n=sN().createCipheriv(`id-aes${t.algorithm.length}-wrap`,t.data,this.AES_KW_IV),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async decryptAesKW(e,t,r){let n=sN().createDecipheriv(`id-aes${t.algorithm.length}-wrap`,t.data,this.AES_KW_IV),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async encryptAesECB(e,t,r){let n=sN().createCipheriv(`aes-${t.algorithm.length}-ecb`,t.data,new Uint8Array(0)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async decryptAesECB(e,t,r){let n=sN().createDecipheriv(`aes-${t.algorithm.length}-ecb`,t.data,new Uint8Array(0)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}}sF.AES_KW_IV=sI.Buffer.from("A6A6A6A6A6A6A6A6","hex");let sH=new WeakMap;function sz(e){let t=sH.get(e);if(!t)throw new ay("Cannot get CryptoKey from secure storage");return t}function s$(e){let t=aj.create(e.algorithm,e.type,e.extractable,e.usages);return Object.freeze(t),sH.set(t,e),t}class sq extends ak{async onGenerateKey(e,t,r){return s$(await sF.generateKey({name:this.name,length:e.length},t,r))}
28async onEncrypt(e,t,r){return sF.encrypt(e,sz(t),new Uint8Array(r))}async onDecrypt(e,t,r){return sF.decrypt(e,sz(t),new Uint8Array(r))}async onExportKey(e,t){return sF.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await sF.importKey(e,t,{name:r.name},n,i))}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof sU))throw TypeError("key: Is not a AesCryptoKey")}}let sW=sI.Buffer.from([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),sV=sI.Buffer.from([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,135]),sG=16;function sK(e){let t=sI.Buffer.alloc(e.length),r=e.length-1;for(let n=0;n<r;n++)t[n]=e[n]<<1,128&e[n+1]&&(t[n]+=1);return t[r]=e[r]<<1,t}function sZ(e,t){let r=Math.min(e.length,t.length),n=sI.Buffer.alloc(r);for(let i=0;i<r;i++)n[i]=e[i]^t[i];return n}function sY(e,t){let r=sN().createCipheriv(`aes${e.length<<3}`,e,sW),n=r.update(t);return r.final(),n}function sJ(e,t){let r=sI.Buffer.alloc(sG),n=t*sG,i=n+sG;return e.copy(r,0,n,i),r}function sX(e,t){let r=sI.Buffer.alloc(sG),n=t*sG,i=e.length;return r.fill(0),e.copy(r,0,n,i),r[i-n]=128,r}function sQ(e){let t=sY(e,sW),r=sK(t);128&t[0]&&(r=sZ(r,sV));let n=sK(r);return 128&r[0]&&(n=sZ(n,sV)),{subkey1:r,subkey2:n}}function s0(e,t){let r,n,i;let o=sQ(e),a=Math.ceil(t.length/sG);0===a?(a=1,r=!1):r=t.length%sG==0;let s=a-1;n=r?sZ(sJ(t,s),o.subkey1):sZ(sX(t,s),o.subkey2);let l=sW;for(let r=0;r<s;r++)l=sY(e,i=sZ(l,sJ(t,r)));return sY(e,i=sZ(n,l))}class s1 extends ax{async onGenerateKey(e,t,r){return s$(await sF.generateKey({name:this.name,length:e.length},t,r))}async onSign(e,t,r){return new Uint8Array(s0(sz(t).data,sI.Buffer.from(r))).buffer}async onVerify(e,t,r,n){let i=await this.sign(e,t,n);return 0===sI.Buffer.from(r).compare(sI.Buffer.from(i))}async onExportKey(e,t){return sF.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await sF.importKey(e,t,{name:r.name},n,i))}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof sU))throw TypeError("key: Is not a AesCryptoKey")}}class s2 extends aE{async onGenerateKey(e,t,r){return s$(await sF.generateKey({name:this.name,length:e.length},t,r))}async onEncrypt(e,t,r){return sF.encrypt(e,sz(t),new Uint8Array(r))}async onDecrypt(e,t,r){return sF.decrypt(e,sz(t),new Uint8Array(r))}async onExportKey(e,t){return sF.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await sF.importKey(e,t,{name:r.name},n,i))}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof sU))throw TypeError("key: Is not a AesCryptoKey")}}class s4 extends aA{async onGenerateKey(e,t,r){return s$(await sF.generateKey({name:this.name,length:e.length},t,r))}async onEncrypt(e,t,r){return sF.encrypt(e,sz(t),new Uint8Array(r))}async onDecrypt(e,t,r){return sF.decrypt(e,sz(t),new Uint8Array(r))}async onExportKey(e,t){return sF.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await sF.importKey(e,t,{name:r.name},n,i))}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof sU))throw TypeError("key: Is not a AesCryptoKey")}}class s3 extends aC{async onGenerateKey(e,t,r){return s$(await sF.generateKey({name:this.name,length:e.length},t,r))}async onExportKey(e,t){return sF.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await sF.importKey(e,t,{name:r.name},n,i))}async onEncrypt(e,t,r){return sF.encrypt(e,sz(t),new Uint8Array(r))}async onDecrypt(e,t,r){return sF.decrypt(e,sz(t),new Uint8Array(r))}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof sU))throw TypeError("key: Is not a AesCryptoKey")}}class s6 extends aT{async onGenerateKey(e,t,r){return s$(await sF.generateKey({name:this.name,length:e.length},t,r))}async onEncrypt(e,t,r){return sF.encrypt(e,sz(t),new Uint8Array(r))}async onDecrypt(e,t,r){return sF.decrypt(e,sz(t),new Uint8Array(r))}async onExportKey(e,t){return sF.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await sF.importKey(e,t,{name:r.name},n,i))}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof sU))throw TypeError("key: Is not a AesCryptoKey")}}class s5 extends sj{get alg(){switch(this.algorithm.name.toUpperCase()){case"DES-CBC":return"DES-CBC";case"DES-EDE3-CBC":return"3DES-CBC";default:throw new am("Unsupported algorithm name")}}set alg(e){}}o0([ap({name:"k",converter:sL})],s5.prototype,"data",void 0);class s8{static async generateKey(e,t,r){let n=new s5;return n.algorithm=e,n.extractable=t,n.usages=r,n.data=sN().randomBytes(e.length>>3),n}static async exportKey(e,t){switch(e.toLowerCase()){case"jwk":return au.toJSON(t);case"raw":return new Uint8Array(t.data).buffer;default:throw new ay("format: Must be 'jwk' or 'raw'")}}static async importKey(e,t,r,n,i){let o;switch(e.toLowerCase()){case"jwk":o=ad.fromJSON(t,{targetSchema:s5});break;case"raw":(o=new s5).data=sI.Buffer.from(t);break;default:throw new ay("format: Must be 'jwk' or 'raw'")}return o.algorithm=r,o.extractable=n,o.usages=i,o}static async encrypt(e,t,r){switch(e.name.toUpperCase()){case"DES-CBC":return this.encryptDesCBC(e,t,sI.Buffer.from(r));case"DES-EDE3-CBC":return this.encryptDesEDE3CBC(e,t,sI.Buffer.from(r));default:throw new ay("algorithm: Is not recognized")}}static async decrypt(e,t,r){if(!(t instanceof s5))throw Error("key: Is not DesCryptoKey");switch(e.name.toUpperCase()){case"DES-CBC":return this.decryptDesCBC(e,t,sI.Buffer.from(r));case"DES-EDE3-CBC":return this.decryptDesEDE3CBC(e,t,sI.Buffer.from(r));default:throw new ay("algorithm: Is not recognized")}}static async encryptDesCBC(e,t,r){let n=sN().createCipheriv("des-cbc",t.data,new Uint8Array(e.iv)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async decryptDesCBC(e,t,r){let n=sN().createDecipheriv("des-cbc",t.data,new Uint8Array(e.iv)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async encryptDesEDE3CBC(e,t,r){let n=sN().createCipheriv("des-ede3-cbc",t.data,sI.Buffer.from(e.iv)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}static async decryptDesEDE3CBC(e,t,r){let n=sN().createDecipheriv("des-ede3-cbc",t.data,new Uint8Array(e.iv)),i=n.update(r);return new Uint8Array(i=sI.Buffer.concat([i,n.final()])).buffer}}class s7 extends aP{constructor(){super(...arguments),this.keySizeBits=64,this.ivSize=8,this.name="DES-CBC"}async onGenerateKey(e,t,r){return s$(await s8.generateKey({name:this.name,length:this.keySizeBits},t,r))}async onEncrypt(e,t,r){return s8.encrypt(e,sz(t),new Uint8Array(r))}async onDecrypt(e,t,r){return s8.decrypt(e,sz(t),new Uint8Array(r))}async onExportKey(e,t){return s8.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){let o=await s8.importKey(e,t,{name:this.name,length:this.keySizeBits},n,i);if(o.data.length!==this.keySizeBits>>3)throw new ay("keyData: Wrong key size");return s$(o)}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof s5))throw TypeError("key: Is not a DesCryptoKey")}}class s9 extends aP{constructor(){super(...arguments),this.keySizeBits=192,this.ivSize=8,this.name="DES-EDE3-CBC"}async onGenerateKey(e,t,r){return s$(await s8.generateKey({name:this.name,length:this.keySizeBits},t,r))}async onEncrypt(e,t,r){return s8.encrypt(e,sz(t),new Uint8Array(r))}async onDecrypt(e,t,r){return s8.decrypt(e,sz(t),new Uint8Array(r))}async onExportKey(e,t){return s8.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){let o=await s8.importKey(e,t,{name:this.name,length:this.keySizeBits},n,i);if(o.data.length!==this.keySizeBits>>3)throw new ay("keyData: Wrong key size");return s$(o)}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof s5))throw TypeError("key: Is not a DesCryptoKey")}}function le(e){switch(e.name.toUpperCase()){case"RSA-OAEP":{let t=/(\d+)$/.exec(e.hash.name)[1];return`RSA-OAEP${"1"!==t?`-${t}`:""}`}case"RSASSA-PKCS1-V1_5":return`RS${/(\d+)$/.exec(e.hash.name)[1]}`;case"RSA-PSS":return`PS${/(\d+)$/.exec(e.hash.name)[1]}`;case"RSA-PKCS1":return"RS1";default:throw new ay("algorithm: Is not recognized")}}class lt extends sB{constructor(){super(...arguments),this.type="private"}getKey(){let e=oG.parse(this.data,sm.PrivateKeyInfo);return oG.parse(e.privateKey,sm.RsaPrivateKey)}toJSON(){let e=this.getKey();return Object.assign({kty:"RSA",alg:le(this.algorithm),key_ops:this.usages,ext:this.extractable},au.toJSON(e))}fromJSON(e){let t=ad.fromJSON(e,{targetSchema:sm.RsaPrivateKey}),r=new sm.PrivateKeyInfo;r.privateKeyAlgorithm.algorithm="1.2.840.113549.1.1.1",r.privateKeyAlgorithm.parameters=null,r.privateKey=oK.seri
28alize(t),this.data=sI.Buffer.from(oK.serialize(r))}}class lr extends sB{constructor(){super(...arguments),this.type="public"}getKey(){let e=oG.parse(this.data,sm.PublicKeyInfo);return oG.parse(e.publicKey,sm.RsaPublicKey)}toJSON(){let e=this.getKey();return Object.assign({kty:"RSA",alg:le(this.algorithm),key_ops:this.usages,ext:this.extractable},au.toJSON(e))}fromJSON(e){let t=ad.fromJSON(e,{targetSchema:sm.RsaPublicKey}),r=new sm.PublicKeyInfo;r.publicKeyAlgorithm.algorithm="1.2.840.113549.1.1.1",r.publicKeyAlgorithm.parameters=null,r.publicKey=oK.serialize(t),this.data=sI.Buffer.from(oK.serialize(r))}}class ln{static async generateKey(e,t,r){let n=new lt;n.algorithm=e,n.extractable=t,n.usages=r.filter(e=>-1!==this.privateKeyUsages.indexOf(e));let i=new lr;i.algorithm=e,i.extractable=!0,i.usages=r.filter(e=>-1!==this.publicKeyUsages.indexOf(e));let o=sI.Buffer.concat([sI.Buffer.alloc(4-e.publicExponent.byteLength,0),sI.Buffer.from(e.publicExponent)]).readInt32BE(0),a=sN().generateKeyPairSync("rsa",{modulusLength:e.modulusLength,publicExponent:o,publicKeyEncoding:{format:"der",type:"spki"},privateKeyEncoding:{format:"der",type:"pkcs8"}});return n.data=a.privateKey,i.data=a.publicKey,{privateKey:n,publicKey:i}}static async exportKey(e,t){switch(e.toLowerCase()){case"jwk":return au.toJSON(t);case"pkcs8":case"spki":return new Uint8Array(t.data).buffer;default:throw new ay("format: Must be 'jwk', 'pkcs8' or 'spki'")}}static async importKey(e,t,r,n,i){switch(e.toLowerCase()){case"jwk":if(t.d){let e=ad.fromJSON(t,{targetSchema:sm.RsaPrivateKey});return this.importPrivateKey(e,r,n,i)}{let e=ad.fromJSON(t,{targetSchema:sm.RsaPublicKey});return this.importPublicKey(e,r,n,i)}case"spki":{let e=oG.parse(new Uint8Array(t),sm.PublicKeyInfo),o=oG.parse(e.publicKey,sm.RsaPublicKey);return this.importPublicKey(o,r,n,i)}case"pkcs8":{let e=oG.parse(new Uint8Array(t),sm.PrivateKeyInfo),o=oG.parse(e.privateKey,sm.RsaPrivateKey);return this.importPrivateKey(o,r,n,i)}default:throw new ay("format: Must be 'jwk', 'pkcs8' or 'spki'")}}static async sign(e,t,r){switch(e.name.toUpperCase()){case"RSA-PSS":case"RSASSA-PKCS1-V1_5":return this.signRsa(e,t,r);default:throw new ay("algorithm: Is not recognized")}}static async verify(e,t,r,n){switch(e.name.toUpperCase()){case"RSA-PSS":case"RSASSA-PKCS1-V1_5":return this.verifySSA(e,t,n,r);default:throw new ay("algorithm: Is not recognized")}}static async encrypt(e,t,r){if("RSA-OAEP"===e.name.toUpperCase())return this.encryptOAEP(e,t,r);throw new ay("algorithm: Is not recognized")}static async decrypt(e,t,r){if("RSA-OAEP"===e.name.toUpperCase())return this.decryptOAEP(e,t,r);throw new ay("algorithm: Is not recognized")}static importPrivateKey(e,t,r,n){let i=new sm.PrivateKeyInfo;i.privateKeyAlgorithm.algorithm="1.2.840.113549.1.1.1",i.privateKeyAlgorithm.parameters=null,i.privateKey=oK.serialize(e);let o=new lt;return o.data=sI.Buffer.from(oK.serialize(i)),o.algorithm=Object.assign({},t),o.algorithm.publicExponent=new Uint8Array(e.publicExponent),o.algorithm.modulusLength=e.modulus.byteLength<<3,o.extractable=r,o.usages=n,o}static importPublicKey(e,t,r,n){let i=new sm.PublicKeyInfo;i.publicKeyAlgorithm.algorithm="1.2.840.113549.1.1.1",i.publicKeyAlgorithm.parameters=null,i.publicKey=oK.serialize(e);let o=new lr;return o.data=sI.Buffer.from(oK.serialize(i)),o.algorithm=Object.assign({},t),o.algorithm.publicExponent=new Uint8Array(e.publicExponent),o.algorithm.modulusLength=e.modulus.byteLength<<3,o.extractable=r,o.usages=n,o}static getCryptoAlgorithm(e){switch(e.hash.name.toUpperCase()){case"SHA-1":return"RSA-SHA1";case"SHA-256":return"RSA-SHA256";case"SHA-384":return"RSA-SHA384";case"SHA-512":return"RSA-SHA512";case"SHA3-256":return"RSA-SHA3-256";case"SHA3-384":return"RSA-SHA3-384";case"SHA3-512":return"RSA-SHA3-512";default:throw new ay("algorithm.hash: Is not recognized")}}static signRsa(e,t,r){let n=this.getCryptoAlgorithm(t.algorithm),i=sN().createSign(n);i.update(sI.Buffer.from(r)),t.pem||(t.pem=`-----BEGIN PRIVATE KEY-----
29${t.data.toString("base64")}
30-----END PRIVATE KEY-----`);let o={key:t.pem};return"RSA-PSS"===e.name.toUpperCase()&&(o.padding=sN().constants.RSA_PKCS1_PSS_PADDING,o.saltLength=e.saltLength),new Uint8Array(i.sign(o)).buffer}static verifySSA(e,t,r,n){let i=this.getCryptoAlgorithm(t.algorithm),o=sN().createVerify(i);o.update(sI.Buffer.from(r)),t.pem||(t.pem=`-----BEGIN PUBLIC KEY-----
31${t.data.toString("base64")}
32-----END PUBLIC KEY-----`);let a={key:t.pem};return"RSA-PSS"===e.name.toUpperCase()&&(a.padding=sN().constants.RSA_PKCS1_PSS_PADDING,a.saltLength=e.saltLength),o.verify(a,n)}static encryptOAEP(e,t,r){let n={key:`-----BEGIN PUBLIC KEY-----
33${t.data.toString("base64")}
34-----END PUBLIC KEY-----`,padding:sN().constants.RSA_PKCS1_OAEP_PADDING};return e.label,new Uint8Array(sN().publicEncrypt(n,r)).buffer}static decryptOAEP(e,t,r){let n={key:`-----BEGIN PRIVATE KEY-----
35${t.data.toString("base64")}
36-----END PRIVATE KEY-----`,padding:sN().constants.RSA_PKCS1_OAEP_PADDING};return e.label,new Uint8Array(sN().privateDecrypt(n,r)).buffer}}ln.publicKeyUsages=["verify","encrypt","wrapKey"],ln.privateKeyUsages=["sign","decrypt","unwrapKey"];class li extends aO{constructor(){super(...arguments),this.hashAlgorithms=["SHA
36-1","SHA-256","SHA-384","SHA-512","shake128","shake256","SHA3-256","SHA3-384","SHA3-512"]}async onGenerateKey(e,t,r){let n=await ln.generateKey({...e,name:this.name},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onSign(e,t,r){return ln.sign(e,sz(t),new Uint8Array(r))}async onVerify(e,t,r,n){return ln.verify(e,sz(t),new Uint8Array(r),new Uint8Array(n))}async onExportKey(e,t){return ln.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await ln.importKey(e,t,{...r,name:this.name},n,i))}checkCryptoKey(e,t){super.checkCryptoKey(e,t);let r=sz(e);if(!(r instanceof lt||r instanceof lr))throw TypeError("key: Is not RSA CryptoKey")}}class lo extends aN{constructor(){super(...arguments),this.hashAlgorithms=["SHA-1","SHA-256","SHA-384","SHA-512","shake128","shake256","SHA3-256","SHA3-384","SHA3-512"]}async onGenerateKey(e,t,r){let n=await ln.generateKey({...e,name:this.name},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onSign(e,t,r){return ln.sign(e,sz(t),new Uint8Array(r))}async onVerify(e,t,r,n){return ln.verify(e,sz(t),new Uint8Array(r),new Uint8Array(n))}async onExportKey(e,t){return ln.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await ln.importKey(e,t,{...r,name:this.name},n,i))}checkCryptoKey(e,t){super.checkCryptoKey(e,t);let r=sz(e);if(!(r instanceof lt||r instanceof lr))throw TypeError("key: Is not RSA CryptoKey")}}class la{static size(e){switch(e.name.toUpperCase()){case"SHA-1":return 160;case"SHA-256":case"SHA3-256":return 256;case"SHA-384":case"SHA3-384":return 384;case"SHA-512":case"SHA3-512":return 512;default:throw Error("Unrecognized name")}}static getAlgorithmName(e){switch(e.name.toUpperCase()){case"SHA-1":return"sha1";case"SHA-256":return"sha256";case"SHA-384":return"sha384";case"SHA-512":return"sha512";case"SHA3-256":return"sha3-256";case"SHA3-384":return"sha3-384";case"SHA3-512":return"sha3-512";default:throw Error("Unrecognized name")}}static digest(e,t){let r=this.getAlgorithmName(e);return new Uint8Array(sN().createHash(r).update(sI.Buffer.from(t)).digest()).buffer}}class ls extends aD{async onGenerateKey(e,t,r){let n=await ln.generateKey({...e,name:this.name},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onEncrypt(e,t,r){let n=sz(t),i=new Uint8Array(r),o=Math.ceil(n.algorithm.modulusLength>>3),a=la.size(n.algorithm.hash)>>3,s=i.byteLength,l=o-s-2*a-2;if(s>o-2*a-2)throw Error("Data too large");let c=new Uint8Array(o),u=c.subarray(1,a+1),d=c.subarray(a+1);d.set(i,a+l+1);let h=sN().createHash(n.algorithm.hash.name.replace("-","")).update(nF.vJ.toUint8Array(e.label||new Uint8Array(0))).digest();d.set(h,0),d[a+l]=1,sN().randomFillSync(u);let p=this.mgf1(n.algorithm.hash,u,d.length);for(let e=0;e<d.length;e++)d[e]^=p[e];let f=this.mgf1(n.algorithm.hash,d,u.length);for(let e=0;e<u.length;e++)u[e]^=f[e];return n.pem||(n.pem=`-----BEGIN PUBLIC KEY-----
37${n.data.toString("base64")}
38-----END PUBLIC KEY-----`),new Uint8Array(sN().publicEncrypt({key:n.pem,padding:sN().constants.RSA_NO_PADDING},sI.Buffer.from(c))).buffer}async onDecrypt(e,t,r){let n=sz(t),i=Math.ceil(n.algorithm.modulusLength>>3),o=la.size(n.algorithm.hash)>>3;if(r.byteLength!==i)throw Error("Bad data");n.pem||(n.pem=`-----BEGIN PRIVATE KEY-----
39${n.data.toString("base64")}
40-----END PRIVATE KEY-----`);let a=sN().privateDecrypt({key:n.pem,padding:sN().constants.RSA_NO_PADDING},sI.Buffer.from(r)),s=a[0],l=a.subarray(1,o+1),c=a.subarray(o+1);if(0!==s)throw Error("Decryption failed");let u=this.mgf1(n.algorithm.hash,c,l.length);for(let e=0;e<l.length;e++)l[e]^=u[e];let d=this.mgf1(n.algorithm.hash,l,c.length);for(let e=0;e<c.length;e++)c[e]^=d[e];let h=sN().createHash(n.algorithm.hash.name.replace("-","")).update(nF.vJ.toUint8Array(e.label||new Uint8Array(0))).digest();for(let e=0;e<o;e++)if(h[e]!==c[e])throw Error("Decryption failed");let p=o;for(;p<c.length;p++){let e=c[p];if(1===e)break;if(0!==e)throw Error("Decryption failed")}if(p===c.length)throw Error("Decryption failed");return new Uint8Array(a=c.subarray(p+1)).buffer}
40async onExportKey(e,t){return ln.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await ln.importKey(e,t,{...r,name:this.name},n,i))}checkCryptoKey(e,t){super.checkCryptoKey(e,t);let r=sz(e);if(!(r instanceof lt||r instanceof lr))throw TypeError("key: Is not RSA CryptoKey")}mgf1(e,t,r=0){let n=la.size(e)>>3,i=new Uint8Array(r),o=new Uint8Array(4),a=Math.ceil(r/n);for(let r=0;r<a;r++){o[0]=r>>>24,o[1]=r>>>16&255,o[2]=r>>>8&255,o[3]=255&r;let a=i.subarray(r*n),s=sN().createHash(e.name.replace("-","")).update(t).update(o).digest();s.length>a.length&&(s=s.subarray(0,a.length)),a.set(s)}return i}}class ll extends aw{constructor(){super(...arguments),this.name="RSAES-PKCS1-v1_5",this.usages={publicKey:["encrypt","wrapKey"],privateKey:["decrypt","unwrapKey"]}}async onGenerateKey(e,t,r){let n=await ln.generateKey({...e,name:this.name},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}checkGenerateKeyParams(e){if(this.checkRequiredProperty(e,"publicExponent"),!(e.publicExponent&&e.publicExponent instanceof Uint8Array))throw TypeError("publicExponent: Missing or not a Uint8Array");let t=nF.ep.ToBase64(e.publicExponent);if(!("Aw=="===t||"AQAB"===t))throw TypeError("publicExponent: Must be [3] or [1,0,1]");switch(this.checkRequiredProperty(e,"modulusLength"),e.modulusLength){case 1024:case 2048:case 4096:break;default:throw TypeError("modulusLength: Must be 1024, 2048, or 4096")}}async onEncrypt(e,t,r){let n=this.toCryptoOptions(t),i=sN().publicEncrypt(n,new Uint8Array(r));return new Uint8Array(i).buffer}async onDecrypt(e,t,r){let n=this.toCryptoOptions(t),i=sN().privateDecrypt(n,new Uint8Array(r));return new Uint8Array(i).buffer}async onExportKey(e,t){return ln.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await ln.importKey(e,t,{...r,name:this.name},n,i))}checkCryptoKey(e,t){super.checkCryptoKey(e,t);let r=sz(e);if(!(r instanceof lt||r instanceof lr))throw TypeError("key: Is not RSA CryptoKey")}toCryptoOptions(e){let t=e.type.toUpperCase();return{key:`-----BEGIN ${t} KEY-----
41${sz(e).data.toString("base64")}
42-----END ${t} KEY-----`,padding:sN().constants.RSA_PKCS1_PADDING}}}let lc={"1.2.840.10045.3.1.7":"P-256","P-256":"1.2.840.10045.3.1.7","1.3.132.0.34":"P-384","P-384":"1.3.132.0.34","1.3.132.0.35":"P-521","P-521":"1.3.132.0.35","1.3.132.0.10":"K-256","K-256":"1.3.132.0.10",brainpoolP160r1:"1.3.36.3.3.2.8.1.1.1","1.3.36.3.3.2.8.1.1.1":"brainpoolP160r1",brainpoolP160t1:"1.3.36.3.3.2.8.1.1.2","1.3.36.3.3.2.8.1.1.2":"brainpoolP160t1",brainpoolP192r1:"1.3.36.3.3.2.8.1.1.3","1.3.36.3.3.2.8.1.1.3":"brainpoolP192r1",brainpoolP192t1:"1.3.36.3.3.2.8.1.1.4","1.3.36.3.3.2.8.1.1.4":"brainpoolP192t1",brainpoolP224r1:"1.3.36.3.3.2.8.1.1.5","1.3.36.3.3.2.8.1.1.5":"brainpoolP224r1",brainpoolP224t1:"1.3.36.3.3.2.8.1.1.6","1.3.36.3.3.2.8.1.1.6":"brainpoolP224t1",brainpoolP256r1:"1.3.36.3.3.2.8.1.1.7","1.3.36.3.3.2.8.1.1.7":"brainpoolP256r1",brainpoolP256t1:"1.3.36.3.3.2.8.1.1.8","1.3.36.3.3.2.8.1.1.8":"brainpoolP256t1",brainpoolP320r1:"1.3.36.3.3.2.8.1.1.9","1.3.36.3.3.2.8.1.1.9":"brainpoolP320r1",brainpoolP320t1:"1.3.36.3.3.2.8.1.1.10","1.3.36.3.3.2.8.1.1.10":"brainpoolP320t1",brainpoolP384r1:"1.3.36.3.3.2.8.1.1.11","1.3.36.3.3.2.8.1.1.11":"brainpoolP384r1",brainpoolP384t1:"1.3.36.3.3.2.8.1.1.12","1.3.36.3.3.2.8.1.1.12":"brainpoolP384t1",brainpoolP512r1:"1.3.36.3.3.2.8.1.1.13","1.3.36.3.3.2.8.1.1.13":"brainpoolP512r1",brainpoolP512t1:"1.3.36.3.3.2.8.1.1.14","1.3.36.3.3.2.8.1.1.14":"brainpoolP512t1"};function lu(e){let t=lc[e];if(!t)throw new ay(`Cannot convert WebCrypto named curve '${e}' to OID`);return t}class ld extends sB{constructor(){super(...arguments),this.type="private"}getKey(){let e=oG.parse(this.data,sm.PrivateKeyInfo);return oG.parse(e.privateKey,sm.EcPrivateKey)}toJSON(){let e=this.getKey();return Object.assign({kty:"EC",crv:this.algorithm.namedCurve,key_ops:this.usages,ext:this.extractable},au.toJSON(e))}fromJSON(e){if(!e.crv)throw new ay("Cannot get named curve from JWK. Property 'crv' is required");let t=new sm.PrivateKeyInfo;t.privateKeyAlgorithm.algorithm="1.2.840.10045.2.1",t.privateKeyAlgorithm.parameters=oK.seri
42alize(new sm.ObjectIdentifier(lu(e.crv)));let r=ad.fromJSON(e,{targetSchema:sm.EcPrivateKey});return t.privateKey=oK.serialize(r),this.data=sI.Buffer.from(oK.serialize(t)),this}}class lh extends sB{constructor(){super(...arguments),this.type="public"}getKey(){let e=oG.parse(this.data,sm.PublicKeyInfo);return new sm.EcPublicKey(e.publicKey)}toJSON(){let e=this.getKey();return Object.assign({kty:"EC",crv:this.algorithm.namedCurve,key_ops:this.usages,ext:this.extractable},au.toJSON(e))}fromJSON(e){if(!e.crv)throw new ay("Cannot get named curve from JWK. Property 'crv' is required");let t=ad.fromJSON(e,{targetSchema:sm.EcPublicKey}),r=new sm.PublicKeyInfo;return r.publicKeyAlgorithm.algorithm="1.2.840.10045.2.1",r.publicKeyAlgorithm.parameters=oK.serialize(new sm.ObjectIdentifier(lu(e.crv))),r.publicKey=oK.toASN(t).valueHex,this.data=sI.Buffer.from(oK.serialize(r)),this}}class lp extends aw{constructor(){super(...arguments),this.name="SHA-1",this.usages=[]}async onDigest(e,t){return la.digest(e,t)}}class lf extends aw{constructor(){super(...arguments),this.name="SHA-256",this.usages=[]}async onDigest(e,t){return la.digest(e,t)}}class lm extends aw{constructor(){super(...arguments),this.name="SHA-384",this.usages=[]}async onDigest(e,t){return la.digest(e,t)}}class lg extends aw{constructor(){super(...arguments),this.name="SHA-512",this.usages=[]}async onDigest(e,t){return la.digest(e,t)}}class ly extends aw{constructor(){super(...arguments),this.name="SHA3-256",this.usages=[]}async onDigest(e,t){return la.digest(e,t)}}class lv extends aw{constructor(){super(...arguments),this.name="SHA3-384",this.usages=[]}async onDigest(e,t){return la.digest(e,t)}}class lb extends aw{constructor(){super(...arguments),this.name="SHA3-512",this.usages=[]}async onDigest(e,t){return la.digest(e,t)}}class l_{static async generateKey(e,t,r){let n=new ld;n.algorithm=e,n.extractable=t,n.usages=r.filter(e=>-1!==this.privateKeyUsages.indexOf(e));let i=new lh;i.algorithm=e,i.extractable=!0,i.usages=r.filter(e=>-1!==this.publicKeyUsages.indexOf(e));let o=sN().generateKeyPairSync("ec",{namedCurve:this.getOpenSSLNamedCurve(e.namedCurve),publicKeyEncoding:{format:"der",type:"spki"},privateKeyEncoding:{format:"der",type:"pkcs8"}});return n.data=o.privateKey,i.data=o.publicKey,{privateKey:n,publicKey:i}}static async sign(e,t,r){let n=la.getAlgorithmName(e.hash),i=sN().createSign(n);i.update(sI.Buffer.from(r)),t.pem||(t.pem=`-----BEGIN PRIVATE KEY-----
43${t.data.toString("base64")}
44-----END PRIVATE KEY-----`);let o={key:t.pem},a=i.sign(o),s=oG.parse(a,sm.EcDsaSignature);return aQ.encodeSignature(s,sg.get(t.algorithm.namedCurve).size).buffer}static async verify(e,t,r,n){let i=la.getAlgorithmName(e.hash),o=sN().createVerify(i);o.update(sI.Buffer.from(n)),t.pem||(t.pem=`-----BEGIN PUBLIC KEY-----
45${t.data.toString("base64")}
46-----END PUBLIC KEY-----`);let a={key:t.pem},s=new sm.EcDsaSignature,l=sg.get(t.algorithm.namedCurve),c=aQ.decodeSignature(r,l.size);s.r=nF.vJ.toArrayBuffer(c.r),s.s=nF.vJ.toArrayBuffer(c.s);let u=sI.Buffer.from(oK.serialize(s));return o.verify(a,u)}static async deriveBits(e,t,r){let n=this.getOpenSSLNamedCurve(t.algorithm.namedCurve),i=sN().createECDH(n),o=oG.parse(t.data,sm.PrivateKeyInfo),a=oG.parse(o.privateKey,sm.EcPrivateKey);i.setPrivateKey(sI.Buffer.from(a.privateKey));let s=oG.parse(e.public.data,sm.PublicKeyInfo),l=i.computeSecret(sI.Buffer.from(s.publicKey));return null===r?l:new Uint8Array(l).buffer.slice(0,r>>3)}static async exportKey(e,t){switch(e.toLowerCase()){case"jwk":return au.toJSON(t);case"pkcs8":case"spki":return new Uint8Array(t.data).buffer;case"raw":return oG.parse(t.data,sm.PublicKeyInfo).publicKey;default:throw new ay("format: Must be 'jwk', 'raw', pkcs8' or 'spki'")}}static async importKey(e,t,r,n,i){switch(e.toLowerCase()){case"jwk":if(t.d){let e=ad.fromJSON(t,{targetSchema:sm.EcPrivateKey});return this.importPrivateKey(e,r,n,i)}{let e=ad.fromJSON(t,{targetSchema:sm.EcPublicKey});return this.importPublicKey(e,r,n,i)}case"raw":{let e=new sm.EcPublicKey(t);return this.importPublicKey(e,r,n,i)}case"spki":{let e=oG.parse(new Uint8Array(t),sm.PublicKeyInfo),o=new sm.EcPublicKey(e.publicKey);return this.assertKeyParameters(e.publicKeyAlgorithm.parameters,r.namedCurve),this.importPublicKey(o,r,n,i)}case"pkcs8":{let e=oG.parse(new Uint8Array(t),sm.PrivateKeyInfo),o=oG.parse(e.privateKey,sm.EcPrivateKey);return this.assertKeyParameters(e.privateKeyAlgorithm.parameters,r.namedCurve),this.importPrivateKey(o,r,n,i)}default:throw new ay("format: Must be 'jwk', 'raw', 'pkcs8' or 'spki'")}}static assertKeyParameters(e,t){if(!e)throw new af("Key info doesn't have required parameters");let r="";try{r=oG.parse(e,sm.ObjectIdentifier).value}catch(e){throw new af("Cannot read key info parameters")}if(lu(t)!==r)throw new af("Key info parameter doesn't match to named curve")}static async importPrivateKey(e,t,r,n){let i=new sm.PrivateKeyInfo;i.privateKeyAlgorithm.algorithm="1.2.840.10045.2.1",i.privateKeyAlgorithm.parameters=oK.seri
46alize(new sm.ObjectIdentifier(lu(t.namedCurve))),i.privateKey=oK.serialize(e);let o=new ld;return o.data=sI.Buffer.from(oK.serialize(i)),o.algorithm=Object.assign({},t),o.extractable=r,o.usages=n,o}static async importPublicKey(e,t,r,n){let i=new sm.PublicKeyInfo;i.publicKeyAlgorithm.algorithm="1.2.840.10045.2.1";let o=lu(t.namedCurve);i.publicKeyAlgorithm.parameters=oK.serialize(new sm.ObjectIdentifier(o)),i.publicKey=e.value;let a=new lh;return a.data=sI.Buffer.from(oK.serialize(i)),a.algorithm=Object.assign({},t),a.extractable=r,a.usages=n,a}static getOpenSSLNamedCurve(e){switch(e.toUpperCase()){case"P-256":return"prime256v1";case"K-256":return"secp256k1";case"P-384":return"secp384r1";case"P-521":return"secp521r1";default:return e}}}l_.publicKeyUsages=["verify"],l_.privateKeyUsages=["sign","deriveKey","deriveBits"];class lw extends aL{constructor(){super(...arguments),this.namedCurves=sg.names,this.hashAlgorithms=["SHA-1","SHA-256","SHA-384","SHA-512","shake128","shake256","SHA3-256","SHA3-384","SHA3-512"]}async onGenerateKey(e,t,r){let n=await l_.generateKey({...e,name:this.name},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onSign(e,t,r){return l_.sign(e,sz(t),new Uint8Array(r))}async onVerify(e,t,r,n){return l_.verify(e,sz(t),new Uint8Array(r),new Uint8Array(n))}async onExportKey(e,t){return l_.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await l_.importKey(e,t,{...r,name:this.name},n,i))}checkCryptoKey(e,t){super.checkCryptoKey(e,t);let r=sz(e);if(!(r instanceof ld||r instanceof lh))throw TypeError("key: Is not EC CryptoKey")}}class lS extends aB{constructor(){super(...arguments),this.namedCurves=sg.names}async onGenerateKey(e,t,r){let n=await l_.generateKey({...e,name:this.name},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onExportKey(e,t){return l_.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await l_.importKey(e,t,{...r,name:this.name},n,i))}checkCryptoKey(e,t){super.checkCryptoKey(e,t);let r=sz(e);if(!(r instanceof ld||r instanceof lh))throw TypeError("key: Is not EC CryptoKey")}async onDeriveBits(e,t,r){return await l_.deriveBits({...e,public:sz(e.public)},sz(t),r)}}let lk={[sm.idEd448]:"Ed448",ed448:sm.idEd448,[sm.idX448]:"X448",x448:sm.idX448,[sm.idEd25519]:"Ed25519",ed25519:sm.idEd25519,[sm.idX25519]:"X25519",x25519:sm.idX25519};function lx(e){let t=lk[e.toLowerCase()];if(!t)throw new ay(`Cannot convert WebCrypto named curve '${e}' to OID`);return t}class lE extends sB{constructor(){super(...arguments),this.type="private"}getKey(){let e=oG.parse(this.data,sm.PrivateKeyInfo);return oG.parse(e.privateKey,sm.CurvePrivateKey)}toJSON(){let e=this.getKey();return Object.assign({kty:"OKP",crv:this.algorithm.namedCurve,key_ops:this.usages,ext:this.extractable},au.toJSON(e))}fromJSON(e){if(!e.crv)throw new ay("Cannot get named curve from JWK. Property 'crv' is required");let t=new sm.PrivateKeyInfo;t.privateKeyAlgorithm.algorithm=lx(e.crv);let r=ad.fromJSON(e,{targetSchema:sm.CurvePrivateKey});return t.privateKey=oK.serialize(r),this.data=sI.Buffer.from(oK.serialize(t)),this}}class lT extends sB{constructor(){super(...arguments),this.type="public"}getKey(){return oG.parse(this.data,sm.PublicKeyInfo).publicKey}toJSON(){let e=this.getKey();return Object.assign({kty:"OKP",crv:this.algorithm.namedCurve,key_ops:this.usages,ext:this.extractable},{x:nF.ep.ToBase64Url(e)})}fromJSON(e){if(!e.crv)throw new ay("Cannot get named curve from JWK. Property 'crv' is required");if(!e.x)throw new ay("Cannot get property from JWK. Property 'x' is required");let t=new sm.PublicKeyInfo;return t.publicKeyAlgorithm.algorithm=lx(e.crv),t.publicKey=nF.ep.FromBase64Url(e.x),this.data=sI.Buffer.from(oK.serialize(t)),this}}class lA{static async generateKey(e,t,r){let n=new lE;n.algorithm=e,n.extractable=t,n.usages=r.filter(e=>-1!==this.privateKeyUsages.indexOf(e));let i=new lT;i.algorithm=e,i.extractable=!0,i.usages=r.filter(e=>-1!==this.publicKeyUsages.indexOf(e));let o=e.namedCurve.toLowerCase(),a=sN().generateKeyPairSync(o,{publicKeyEncoding:{format:"der",type:"spki"},privateKeyEncoding:{format:"der",type:"pkcs8"}});return n.data=a.privateKey,i.data=a.publicKey,{privateKey:n,publicKey:i}}static async sign(e,t,r){t.pem||(t.pem=`-----BEGIN PRIVATE KEY-----
47${t.data.toString("base64")}
48-----END PRIVATE KEY-----`);let n={key:t.pem},i=sN().sign(null,sI.Buffer.from(r),n);return nF.vJ.toArrayBuffer(i)}static async verify(e,t,r,n){t.pem||(t.pem=`-----BEGIN PUBLIC KEY-----
49${t.data.toString("base64")}
50-----END PUBLIC KEY-----`);let i={key:t.pem};return sN().verify(null,sI.Buffer.from(n),i,sI.Buffer.from(r))}static async deriveBits(e,t,r){let n=sN().createPublicKey({key:e.public.data,format:"der",type:"spki"}),i=sN().createPrivateKey({key:t.data,format:"der",type:"pkcs8"});return new Uint8Array(sN().diffieHellman({publicKey:n,privateKey:i})).buffer.slice(0,r>>3)}static async exportKey(e,t){switch(e.toLowerCase()){case"jwk":return au.toJSON(t);case"pkcs8":case"spki":return new Uint8Array(t.data).buffer;case"raw":return oG.parse(t.data,sm.PublicKeyInfo).publicKey;default:throw new ay("format: Must be 'jwk', 'raw', pkcs8' or 'spki'")}}static async importKey(e,t,r,n,i){switch(e.toLowerCase()){case"jwk":{let e=t;if(e.d){let e=ad.fromJSON(t,{targetSchema:sm.CurvePrivateKey});return this.importPrivateKey(e,r,n,i)}if(!e.x)throw TypeError("keyData: Cannot get required 'x' filed");return this.importPublicKey(nF.ep.FromBase64Url(e.x),r,n,i)}case"raw":return this.importPublicKey(t,r,n,i);case"spki":{let e=oG.parse(new Uint8Array(t),sm.PublicKeyInfo);return this.importPublicKey(e.publicKey,r,n,i)}case"pkcs8":{let e=oG.parse(new Uint8Array(t),sm.PrivateKeyInfo),o=oG.parse(e.privateKey,sm.CurvePrivateKey);return this.importPrivateKey(o,r,n,i)}default:throw new ay("format: Must be 'jwk', 'raw', 'pkcs8' or 'spki'")}}static importPrivateKey(e,t,r,n){let i=new lE;return i.fromJSON({crv:t.namedCurve,d:nF.ep.ToBase64Url(e.d)}),i.algorithm=Object.assign({},t),i.extractable=r,i.usages=n,i}static async importPublicKey(e,t,r,n){let i=new lT;return i.fromJSON({crv:t.namedCurve,x:nF.ep.ToBase64Url(e)}),i.algorithm=Object.assign({},t),i.extractable=r,i.usages=n,i}}lA.publicKeyUsages=["verify"],lA.privateKeyUsages=["sign","deriveKey","deriveBits"];class lC extends aF{async onGenerateKey(e,t,r){let n=await lA.generateKey({name:this.name,namedCurve:e.namedCurve.replace(/^ed/i,"Ed")},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onSign(e,t,r){return lA.sign(e,sz(t),new Uint8Array(r))}async onVerify(e,t,r,n){return lA.verify(e,sz(t),new Uint8Array(r),new Uint8Array(n))}async onExportKey(e,t){return lA.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await lA.importKey(e,t,{...r,name:this.name},n,i))}}class lP extends aU{async onGenerateKey(e,t,r){let n=await lA.generateKey({name:this.name,namedCurve:e.namedCurve.toUpperCase()},t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onDeriveBits(e,t,r){return await lA.deriveBits({...e,public:sz(e.public)},sz(t),r)}async onExportKey(e,t){return lA.exportKey(e,sz(t))}async onImportKey(e,t,r,n,i){return s$(await lA.importKey(e,t,{...r,name:this.name},n,i))}}class lI extends sM{constructor(e,t,r,n){super(),this.algorithm=e,this.extractable=t,this.usages=r,this.data=sR.from(n)}toJWK(){return{kty:"OKP",crv:this.algorithm.name,key_ops:this.usages,ext:this.extractable}}}class lO extends lI{constructor(){super(...arguments),this.type="private"}toJWK(){let e=sN().createPublicKey({key:this.data,format:"pem"}).export({format:"jwk"}),t=ab.toUint8Array(this.data.toString()),r=oZ.parse(t,sm.PrivateKeyInfo),n=oZ.parse(r.privateKey,sm.EdPrivateKey).value;return{...super.toJWK(),...e,d:sR.from(new Uint8Array(n)).toString("base64url")}}}class lN extends lI{constructor(){super(...arguments),this.type="public"}toJWK(){let e=sN().createPublicKey({key:this.data,format:"pem"}).export({format:"jwk"});return{...super.toJWK(),...e}}}class lD{static async generateKey(e,t,r){let n=e.name.toLowerCase(),i=sN().generateKeyPairSync(n,{publicKeyEncoding:{format:"pem",type:"spki"},privateKeyEncoding:{format:"pem",type:"pkcs8"}}),o={name:"ed25519"===n?"Ed25519":"X25519"},a=r.filter(e=>this.privateKeyUsages.includes(e)),s=r.filter(e=>this.publicKeyUsages.includes(e));return{privateKey:new lO(o,t,a,i.privateKey),publicKey:new lN(o,!0,s,i.publicKey)}}static async sign(e,t,r){let n=sN().sign(null,sR.from(r),t.data);return nF.vJ.toArrayBuffer(n)}static async verify(e,t,r,n){return sN().verify(null,sR.from(n),t.data,r)}static async exportKey(e,t){switch(e){case"jwk":return t.toJWK();case"pkcs8":case"spki":return ab.toArrayBuffer(t.data.toString());case"raw":{let e=t.toJWK();return nF.ep.FromBase64Url(e.x)}default:return Promise.reject(new ay("format: Must be 'jwk', 'raw', pkcs8' or 'spki'"))}}static async importKey(e,t,r,n,i){switch(e){case"jwk":{let e=t;if(e.d){let t=new sm.EdPrivateKey;t.value=nF.vJ.toArrayBuffer(sR.from(e.d,"base64url"));let o=new sm.PrivateKeyInfo;o.privateKeyAlgorithm.algorithm="ed25519"===r.name.toLowerCase()?sm.idEd25519:sm.idX25519,o.privateKey=oZ.serialize(t);let a=oZ.serialize(o);return new lO(r,n,i,ab.fromBufferSource(a,"PRIVATE KEY"))}if(e.x)return new lN(r,n,i,sN().createPublicKey({format:"jwk",key:e}).export({format:"pem",type:"spki"}));throw new ay("keyData: Cannot import JWK. 'd' or 'x' must be presented")}case"pkcs8":return new lO(r,n,i,ab.fromBufferSource(t,"PRIVATE KEY"));case"spki":return new lN(r,n,i,ab.fromBufferSource(t,"PUBLIC KEY"));case"raw":{let e=t,o=sN().createPublicKey({format:"jwk",key:{kty:"OKP",crv:"ed25519"===r.name.toLowerCase()?"Ed25519":"X25519",x:nF.ep.ToBase64Url(e)}}).export({format:"pem",type:"spki"});return new lN(r,n,i,o)}default:return Promise.reject(new ay("format: Must be 'jwk', 'raw', pkcs8' or 'spki'"))}}}lD.privateKeyUsages=["sign","deriveBits","deriveKey"],lD.publicKeyUsages=["verify"];class lR extends sv{async onGenerateKey(e,t,r){let n=await lD.generateKey(e,t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onSign(e,t,r){let n=sz(t);return lD.sign(e,n,new Uint8Array(r))}onVerify(e,t,r,n){let i=sz(t);return lD.verify(e,i,new Uint8Array(r),new Uint8Array(n))}async onExportKey(e,t){let r=sz(t);return lD.exportKey(e,r)}async onImportKey(e,t,r,n,i){return s$(await lD.importKey(e,t,r,n,i)
50)}}class lL extends sy{async onGenerateKey(e,t,r){let n=await lD.generateKey(e,t,r);return{privateKey:s$(n.privateKey),publicKey:s$(n.publicKey)}}async onDeriveBits(e,t,r){let n=sz(t),i=sz(e.public),o=sN().createPublicKey({key:i.data.toString(),format:"pem",type:"spki"}),a=sN().createPrivateKey({key:n.data.toString(),format:"pem",type:"pkcs8"});return new Uint8Array(sN().diffieHellman({publicKey:o,privateKey:a})).buffer.slice(0,r>>3)}async onExportKey(e,t){let r=sz(t);return lD.exportKey(e,r)}async onImportKey(e,t,r,n,i){return s$(await lD.importKey(e,t,r,n,i))}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof lI))throw TypeError("key: Is not a Ed25519CryptoKey")}}class lM extends sM{}class lj extends s_{async onDeriveBits(e,t,r){return new Promise((n,i)=>{let o=nF.vJ.toArrayBuffer(e.salt),a=e.hash.name.replace("-","");sN().pbkdf2(sz(t).data,sI.Buffer.from(o),e.iterations,r>>3,a,(e,t)=>{e?i(e):n(new Uint8Array(t).buffer)})})}async onImportKey(e,t,r,n,i){if("raw"===e){let e=new lM;return e.data=sI.Buffer.from(t),e.algorithm={name:this.name},e.extractable=!1,e.usages=i,s$(e)}throw new ay("format: Must be 'raw'")}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof lM))throw TypeError("key: Is not PBKDF CryptoKey")}}class lB extends sM{get alg(){let e=this.algorithm.hash.name.toUpperCase();return`HS${e.replace("SHA-","")}`}set alg(e){}}o0([ap({name:"k",converter:sL})],lB.prototype,"data",void 0);class lU extends sb{async onGenerateKey(e,t,r){let n=(e.length||this.getDefaultLength(e.hash.name))>>3<<3,i=new lB;return i.algorithm={...e,length:n,name:this.name},i.extractable=t,i.usages=r,i.data=sN().randomBytes(n>>3),s$(i)}async onSign(e,t,r){let n=la.getAlgorithmName(t.algorithm.hash);return new Uint8Array(sN().createHmac(n,sz(t).data).update(sI.Buffer.from(r)).digest()).buffer}async onVerify(e,t,r,n){let i=la.getAlgorithmName(t.algorithm.hash);return 0===sN().createHmac(i,sz(t).data).update(sI.Buffer.from(n)).digest().compare(sI.Buffer.from(r))}async onImportKey(e,t,r,n,i){let o;switch(e.toLowerCase()){case"jwk":o=ad.fromJSON(t,{targetSchema:lB});break;case"raw":(o=new lB).data=sI.Buffer.from(t);break;default:throw new ay("format: Must be 'jwk' or 'raw'")}return o.algorithm={hash:{name:r.hash.name},name:this.name,length:o.data.length<<3},o.extractable=n,o.usages=i,s$(o)}async onExportKey(e,t){switch(e.toLowerCase()){case"jwk":return au.toJSON(sz(t));case"raw":return new Uint8Array(sz(t).data).buffer;default:throw new ay("format: Must be 'jwk' or 'raw'")}}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof lB))throw TypeError("key: Is not HMAC CryptoKey")}}class lF extends sM{}class lH extends sw{async onImportKey(e,t,r,n,i){if("raw"!==e.toLowerCase())throw new ay("Operation not supported");let o=new lF;return o.data=sI.Buffer.from(t),o.algorithm={name:this.name},o.extractable=n,o.usages=i,s$(o)}async onDeriveBits(e,t,r){let n=e.hash.name.replace("-",""),i=sN().createHash(n).digest().length,o=r/8,a=nF.vJ.toUint8Array(e.info),s=sN().createHmac(n,nF.vJ.toUint8Array(e.salt)).update(nF.vJ.toUint8Array(sz(t).data)).digest(),l=[sI.Buffer.alloc(0)],c=Math.ceil(o/i)+1;for(let e=1;e<c;++e)l.push(sN().createHmac(n,s).update(sI.Buffer.concat([l[e-1],a,sI.Buffer.from([e])])).digest());return sI.Buffer.concat(l).slice(0,o)}checkCryptoKey(e,t){if(super.checkCryptoKey(e,t),!(sz(e) instanceof lF))throw TypeError("key: Is not HKDF CryptoKey")}}class lz{static digest(e,t){return new Uint8Array(sN().createHash(e.name.toLowerCase(),{outputLength:e.length}).update(sI.Buffer.from(t)).digest()).buffer}}class l$ extends sk{async onDigest(e,t){return lz.digest(e,t)}}class lq extends sx{async onDigest(e,t){return lz.digest(e,t)}}class lW extends sP{constructor(){var e;super(),this.providers.set(new sq),this.providers.set(new s2),this.providers.set(new s4),this.providers.set(new s1),this.providers.set(new s3),this.providers.set(new s6),sN().getCiphers().includes("des-cbc")&&this.providers.set(new s7),this.providers.set(new s9),this.providers.set(new li),this.providers.set(new lo),this.providers.set(new ls),this.providers.set(new ll),this.providers.set(new lw),this.providers.set(new lS),this.providers.set(new lp),this.providers.set(new lf),this.providers.set(new lm),this.providers.set(new lg),this.providers.set(new lj),this.providers.set(new lU),this.providers.set(new lH);let t=null===(e=/^v(\d+)/.exec(sD.version))||void 0===e?void 0:e[1];t&&parseInt(t,10)>=12&&(this.providers.set(new l$),this.providers.set(new lq));let r=sN().getHashes();r.includes("sha3-256")&&this.providers.set(new ly),r.includes("sha3-384")&&this.providers.set(new lv),r.includes("sha3-512")&&this.providers.set(new lb),t&&parseInt(t,10)>=14&&(this.providers.set(new lC),this.providers.set(new lP),this.providers.set(new lR),this.providers.set(new lL))}}class lV extends sE{constructor(){super(...arguments),this.subtle=new lW}getRandomValues(e){if(!ArrayBuffer.isView(e))throw TypeError("Failed to execute 'getRandomValues' on 'Crypto': parameter 1 is not of type 'ArrayBufferView'");let t=sI.Buffer.from(e.buffer,e.byteOffset,e.byteLength);return sN().randomFillSync(t),e}}var lG=60,lK=1296e3,lZ=2,lY="~",lJ={ttl:lK,cookieOptions:{httpOnly:!0,secure:!0,sameSite:"lax",path:"/"}};function lX(e,t,r){return async(e,n,i)=>{if(!e||!n||!i||!i.cookieName||!i.password)throw Error('iron-session: Bad usage. Minimum usage is const session = await getIronSession(req, res, { cookieName: "...", password: "...". Check the usage here: https://github.com/vvo/iron-session');let o=l3(i.password);
50Object.values(l3(i.password)).forEach(e=>{if(e.length<32)throw Error("iron-session: Bad usage. Password must be at least 32 characters long.")});let a={...lJ,...i,cookieOptions:{...lJ.cookieOptions,...i.cookieOptions||{}}};0===a.ttl&&(a.ttl=2147483647),i.cookieOptions&&"maxAge"in i.cookieOptions?void 0===i.cookieOptions.maxAge?a.ttl=0:a.cookieOptions.maxAge=l0(i.cookieOptions.maxAge):a.cookieOptions.maxAge=l0(a.ttl);let s=nU.parse("credentials"in e?e.headers.get("cookie")||"":e.headers.cookie||"")[a.cookieName],l=void 0===s?{}:await t(s,{password:o,ttl:a.ttl});return Object.defineProperties(l,{save:{value:async function(){if("headersSent"in n&&!0===n.headersSent)throw Error("iron-session: Cannot set session cookie: session.save() was called after headers were sent. Make sure to call it before any res.send() or res.end()");let e=await r(l,{password:o,ttl:a.ttl}),t=nU.serialize(a.cookieName,e,a.cookieOptions);if(t.length>4096)throw Error(`iron-session: Cookie length is too big ${t.length}, browsers will refuse it. Try to remove some data.`);lQ(t,n)}},destroy:{value:function(){Object.keys(l).forEach(e=>{delete l[e]}),lQ(nU.serialize(a.cookieName,"",{...a.cookieOptions,maxAge:0}),n)}}}),l}}function lQ(e,t){var r;if("headers"in t){t.headers.append("set-cookie",e);return}let n=null!=(r=t.getHeader("set-cookie"))?r:[];"string"==typeof n&&(n=[n]),t.setHeader("set-cookie",[...n,e])}function l0(e){return e-lG}function l1(e){return async(t,{password:r,ttl:n=lK})=>{let i=l3(r),{sealWithoutVersion:o,tokenVersion:a}=l2(t);try{let t=await nB(e,o,i,{...nk,ttl:1e3*n})||{};if(2===a)return t;return{...t.persistent}}catch(e){if(e instanceof Error&&("Expired seal"===e.message||"Bad hmac value"===e.message||e.message.startsWith("Cannot find password: ")||"Incorrect number of sealed components"===e.message))return{};throw e}}}function l2(e){if(e[e.length-2]===lY){let[t,r]=e.split(lY);return{sealWithoutVersion:t,tokenVersion:parseInt(r,10)}}return{sealWithoutVersion:e,tokenVersion:null}}function l4(e){return async(t,{password:r,ttl:n=lK})=>{let i=l3(r),o=Math.max(...Object.keys(i).map(e=>parseInt(e,10))),a={id:o.toString(),secret:i[o]},s=await nM(e,t,a,{...nk,ttl:1e3*n});return`${s}${lY}${lZ}`}}function l3(e){return"string"==typeof e?{1:e}:e}var l6=new lV,l5=l1(l6),l8=l4(l6);function l7(e){let{children:t,...r}=e;return(0,K.jsx)(l9,{...r,id:"footer",className:"footer_morelike",isDove:eS.isDove,children:t})}lX(l6,l5,l8),r(34155).env.IRON_SESSION_PASS,eS.appName.toUpperCase();let l9=ez.ZP.footer.withConfig({componentId:"sc-811b236f-0"})(["margin:auto;padding:0px 56px;position:relative;"," @media (max-width:740px){padding:20px 25px;}@media (max-width:500px){padding:20px 15px;}"],e=>{let{isDove:t}=e;return t&&"\n    border-top: 1px solid #a9a6a6 !important;\n  "});var ce=l7,ct=e=>{let{children:t,...r}=e;return(0,K.jsx)(cr,{...r,children:t})};let cr=ez.ZP.span.withConfig({componentId:"sc-219752d8-0"})(["color:red;"]);function cn(e){let{children:t,...r}=e;return(0,K.jsx)("li",{children:(0,K.jsx)(ci,{href:r.link?r.link:"#",...r,children:t})})}let ci=ez.ZP.a.withConfig({componentId:"sc-85450f59-0"})(["color:#757575;margin-bottom:0px;font-size:13px;"]);var co=cn,ca=r(85518),cs=r(41664),cl=r.n(cs);function cc(e){(0,el.useRouter)();let t=e.isHoopaVal,r=e.partnerName,[n,i]=(0,Z.useState)("");function o(e){let{linkKey:t,isHoopaVal:r,isMobile:i,partnerName:o,children:a}=e,s=eS.FooterImageLinks[t];return s?(0,K.jsx)(cl(),{href:s,target:"_blank",className:(r||"hoopla"===o)&&i?n:"",children:a}):(0,K.jsx)("div",{className:"unclickable",children:a})}return(0,Z.useEffect)(()=>{i("unclickableLink")},[]),(0,K.jsx)(K.Fragment,{children:(0,K.jsxs)(ce,{children:[(0,K.jsxs)("div",{className:"footer-header-text",children:[(0,K.jsxs)("div",{className:"footer-left-con",children:[(0,K.jsx)("div",{children:(0,K.jsx)(cp,{children:(0,K.jsx)("div",{children:"Available Platforms"})})}),(0,K.jsx)("div",{className:"footer-img-con",children:(0,K.jsxs)("div",{className:"img-ft-con",children:[eS.FooterImageLinks.rokuLink||""==eS.FooterImageLinks.rokuLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"rokuLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/Roku_logo.svg",width:"60",height:"17",alt:"Roku",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.androidLink||""==eS.FooterImageLinks.androidLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"androidLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/Android_logo.svg",width:"88",height:"15",alt:"Android Phone",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.iosLink||""==eS.FooterImageLinks.iosLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"iosLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/apple-IOS-icon.svg",width:"56",height:"19",alt:"IOS",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.lgWebLink||""==eS.FooterImageLinks.lgWebLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"lgWebLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/lg-webos.svg",width:"105",height:"16",alt:"Web OS",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.vizioLink||""==eS.FooterImageLinks.vizioLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"vizioLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/vizio.svg",width:"68",height:"18",alt:"Vizio",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.androidTvLink||""==eS.FooterImageLinks.androidTvLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"androidTvLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/AndroidTV_logo.svg",width:"100",height:"14",alt:"Android T
50V",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.appleTvLink||""==eS.FooterImageLinks.appleTvLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"appleTvLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/tv-os.svg",width:"77",height:"22",alt:"TV OS",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.googleTvLink||""==eS.FooterImageLinks.googleTvLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"googleTvLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/Google-tv.svg",width:"115",height:"25",alt:"Google TV",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.comcastXfinityLink||""==eS.FooterImageLinks.comcastXfinityLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"comcastXfinityLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/comcast-xfinity.svg",width:"77",height:"44",alt:"Comcast Xfinity",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.amazonLink||""==eS.FooterImageLinks.amazonLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"amazonLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/Fire_TV_logo.svg",width:"55",height:"22",alt:"Amazon Fire TV",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),eS.FooterImageLinks.tizenLink||""==eS.FooterImageLinks.tizenLink?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{linkKey:"tizenLink",isHoopaVal:t,isMobile:ca.tq,partnerName:r,children:(0,K.jsx)(eQ(),{src:"//images/samsung_logo.svg",width:"80",height:"35",alt:"Tizen",style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})}):(0,K.jsx)(K.Fragment,{}),"thearchive"==eS.appName?(0,K.jsx)("div",{className:"ft-con-img",children:(0,K.jsx)(o,{children:(0,K.jsx)(eQ(),{src:"//images/more-to-come3.svg",width:"100",height:"18",alt:"Vizio",style:{cursor:"default"}})})}):(0,K.jsx)(K.Fragment,{})]})}),(0,K.jsxs)("div",{className:"text-hover-row",children:["cineverse"==eS.appName&&(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{href:"https://home.cineverse.com/",target:"_blank",children:"Corp Home"})})}),eS.isSubmitYourFilm&&(0,K.jsx)(cu,{children:(0,K.jsx)(ct,{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"/submit-your-film",children:"Submit Your Film"})})}),(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:eS.isAboutUs?"/about-us":"https://home.cineverse.com/about-us/",children:"About Us"})})}),(0,K.jsx)(cl(),{href:e&&e.supportURL?e.supportURL:eS.supportLink,target:"_blank",className:eS.isDove?"dove-footer-text":"",children:"Support & FAQ"}),(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"gorillacomedyplus"===eS.appName?"https://gorillacomedyplus.com/terms-of-service/":"/terms-of-use",target:"gorillacomedyplus"===eS.appName?"_blank":void 0,children:"Terms of Use"})})}),(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"gorillacomedyplus"===eS.appName?"https://gorillacomedyplus.com/privacy-policy/":"/privacy-policy",target:"gorillacomedyplus"===eS.appName?"_blank":void 0,children:"Privacy Policy"})})}),"cineverse"==eS.appName&&(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"https://investor.cineverse.com/news/default.aspx",target:"_blank",children:"Press"})})}),"cineverse"==eS.appName&&(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"https://investor.cineverse.com/",target:"_blank",children:"Investors"})})}),"cineverse"==eS.appName&&(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"https://home.cineverse.com/careers",target:"_blank",children:"Careers"})})}),"cineverse"==eS.appName&&(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"https://investor.cineverse.com/governance/management/default.aspx",target:"_blank",children:"Management"})})}),(0,K.jsx)(cu,{children:(0,K.jsx)("span",{children:(0,K.jsx)(cl(),{className:eS.isDove?"dove-footer-text":"",href:"gorillacomedyplus"===eS.appName?"https://gorillacomedyplus.com/cookie-policy/":"/cookie-policy",target:"gorillacomedyplus"===eS.appName?"_blank":void 0,children:"Cookie Policy"})})})]})]}),(0,K.jsxs)("div",{className:"footer-main-logo",children:[(0,K.jsxs)("div",{className:"footer-logo",children:["gorillacomedyplus"==eS.appName&&(0,K.jsx)(cl(),{href:eS.isNavLink||"/",children:(0,K.jsx)(eQ(),{src:"//images/gorillacomedyplus/gorilla_comedy_plus_logo.svg",alt:"footer_img",className:"social_media_icon",width:80,height:60})}),(0,K.jsx)(cl(),{href:"gorillacomedyplus"==eS.appName?"https://800poundgorillamedia.com/":eS.isNavLink||"/",target:"cineverse"===eS.appName||"comedydynamics"===eS.appName||"gorillacomedyplus"===eS.appName?"_blank":void 0,children:(0,K.jsx)(eQ(),{src:eS.footerlogo,alt:"footer_img",className:"social_media_icon",width:eS.footerLogowidth?eS.footerLogowidth:160,height:eS.footerLogoheight?eS.footerLogoheight:40,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(0%) contrast(100%)":null}})})]}),(0,K.jsx)("div",{className:"footer-display",children:(0,K.jsx)(cd,{children:(0,K.jsxs)("ul",{className:"social-link-holder",children:[eS.socialLinks.instagram_link&&(0,K.jsx)(co,{link:eS.socialLinks.instagram_link,target:"_blank",children:(0,K.jsx)(eQ(),{src:"//images/icons/svg-cons/Instagram.svg",alt:"instagram",className:"social_media_icon",width:18,height:13,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})," ",eS.socialLinks.facebook_link&&(0,K.jsx)(co,{link:eS.socialLinks.facebook_link,target:"_blank",children:(0,K.jsx)(eQ(),{className:"footer-icon social_media_icon",src:"//images/icons/svg-cons/faceBook.svg",alt:"facebook",width:18,height:12,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})}),eS.socialLinks.youtube_link&&(0,K.jsx)(co,{link:eS.socialLinks.youtube_link,target:"_blank",children:(0,K.jsx)(eQ(),{src:"//images/icons/svg-cons/youtube.svg",alt:"youtube",className:"social_media_icon",width:20,height:20,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})}),eS.socialLinks.twitter_link&&(0,K.jsx)(co,{link:eS.socialLinks.twitter_link,target:"_blank",children:(0,K.jsx)(eQ(),{src:"//images/icons/svg-cons/twitter-white.svg",alt:"twitter",className:"social_media_icon",width:17,height:17,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})}),eS.socialLinks.tiktok_link&&(0,K.jsx)(co,{link:eS.socialLinks.tiktok_link,target:"_blank",children:(0,K.jsx)(eQ(),{src:"//images/icons/svg-cons/tiktok.svg",alt:"tiktok",className:"social_media_icon",width:20,height:20,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})}),eS.socialLinks.pinterest_link&&(0,K.jsx)(co,{link:eS.socialLinks.pinterest_link,target:"_blank",children:(0,K.jsx)(eQ(),{src:"//images/icons/svg-cons/pinterest.svg",alt:"printerest",className:"social_media_icon",width:20,height:20,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(10%) contrast(95%)":null}})})]})})}),(0,K.jsxs)("p",{className:eS.isDove?"dove-footer-txt":"footer-txt",children:["\xa9 ",new Date().getFullYear()," \xa0",(0,K.jsx)(cl(),{href:"thearchive"==eS.appName?"http://multicom.tv/":"https://home.cineverse.com/",target:"_blank",children:(0,K.jsx)(ch,{appName:eS.appName,children:"thearchive"==eS.appName?"Multicom":" Cineverse"})}),". All Rights Reserved \xa0"]}),(0,K.jsx)(cl(),{href:"https://www.matchpoint.tv",target:"_blank",children:(0,K.jsx)(eQ(),{src:"//images/logo-matchpoint-white.svg",width:"213",height:"21",className:"matchpoint_img",alt:eS.displayAppName,style:{filter:eS.isDove?"invert(22%) sepia(8%) saturate(345%) hue-rotate(180deg) brightness(67%) contrast(90%)":null}})})]})]}),(0,K.jsxs)("p",{className:"footer-version-text",children:["V - ",eS.appVer]})]})})}let cu=ez.ZP.span.withConfig({componentId:"sc-e5c4ee24-0"})(["color:#f0f0f0 !important;cursor:pointer;"]),cd=ez.ZP.div.withConfig({componentId:"sc-e5c4ee24-1"})([".social-link-holder.social_media_icon:hover{filter:",";}"],eS.svgFilter),ch=ez.ZP.span.withConfig({componentId:"sc-e5c4ee24-2"})(["padding-bottom:0px;color:"," &:hover{color:"," !important;}"],e=>{let{appName:t}=e;return eS.isDove?"#353A47 !important":""},eS.appHighlightColor),cp=ez.ZP.div.withConfig({componentId:"sc-e5c4ee24-3"})(["color:",";font-size:23px;margin-bottom:20px;font-weight:",";"],eS.appHighlightColor,eS.isDove&&600);
50var cf=cc,cm=r(91444);r(37677);var cg=()=>(0,K.jsx)("div",{className:"app_main-footer",id:"matchpoint_footer",children:(0,K.jsx)("div",{className:"appversion_footer-first-column"})}),cy=r(93380),cv=r(60520),cb=r(80423),c_=function(e){var t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,y,v,b,_,w,S,k;let{status:x}=(0,ng.useSession)(),E=(0,el.useRouter)(),T="",A="";e.children&&e.children.props&&e.children.props.isHooplaVal&&(T=e.children.props.isHooplaVal),e.children&&e.children.props&&e.children.props.partnerName&&(A=e.children.props.partnerName);let C=(0,el.useRouter)(),[P,I]=(0,Z.useState)([]),[O,N]=(0,Z.useState)(!1),D=(null==e?void 0:null===(i=e.children)||void 0===i?void 0:null===(n=i.props)||void 0===n?void 0:null===(r=n.ironCookie)||void 0===r?void 0:null===(t=r.user)||void 0===t?void 0:t.status)||"";(0,ek.IM)(D),(0,Z.useEffect)(()=>{var t,r;(null==e?void 0:null===(r=e.children)||void 0===r?void 0:null===(t=r.props)||void 0===t?void 0:t.gdprVAL)?(0,ek.d8)("GDPR_VAL",1):(0,ek.d8)("GDPR_VAL",0)},[]);let R=(null==e?void 0:null===(s=e.children)||void 0===s?void 0:null===(a=s.props)||void 0===a?void 0:null===(o=a.urls)||void 0===o?void 0:o.supportURL)?(0,ek.tY)(e.children.props.urls.supportURL):"";(null==e?void 0:null===(u=e.children)||void 0===u?void 0:null===(c=u.props)||void 0===c?void 0:null===(l=c.urls)||void 0===l?void 0:l.logURLV2)&&(0,ek.tY)(e.children.props.urls.logURLV2),(null==e?void 0:null===(f=e.children)||void 0===f?void 0:null===(p=f.props)||void 0===p?void 0:null===(h=p.ironCookie)||void 0===h?void 0:null===(d=h.user)||void 0===d?void 0:d.email)&&e.children.props.ironCookie.user.email,(null==e?void 0:null===(y=e.children)||void 0===y?void 0:null===(g=y.props)||void 0===g?void 0:null===(m=g.selectedProfile)||void 0===m?void 0:m.id)&&e.children.props.selectedProfile.id,(null==e?void 0:null===(_=e.children)||void 0===_?void 0:null===(b=_.props)||void 0===b?void 0:null===(v=b.selectedProfile)||void 0===v?void 0:v.age_rating)&&e.children.props.selectedProfile.age_rating,(null==e?void 0:null===(k=e.children)||void 0===k?void 0:null===(S=k.props)||void 0===S?void 0:null===(w=S.selectedProfile)||void 0===w?void 0:w.profile_name)&&e.children.props.selectedProfile.profile_name;let L=e=>{},M=()=>{let e={android:()=>/Android/i.test(navigator.userAgent),iOS:()=>/iPhone|iPad|iPod/i.test(navigator.userAgent)};if(!ca.tq||!e.android()&&!e.iOS())return;window.location.replace("".concat(eS.deepLinkinProtocol,"home"));let t=e.android()?eS.appLink.androidAppStore:eS.appLink.appleAppStore;t&&setTimeout(()=>{window.location.replace(t)},3e3)};(0,Z.useEffect)(()=>{let t="optimizedExperienceModalShown";ca.tq&&"gorillacomedyplus"==eS.appName&&!window.sessionStorage.getItem(t)&&N(!0),eS.weblandingURL&&eS.weblandingURL.length>0&&E.pathname&&"/"==E.pathname&&(e&&e.children&&e.children.props&&e.children.props.ironLogin?E.push({pathname:"/home"}):E.push({pathname:eS.weblandingURL})),e&&e.children&&e.children.props&&e.children.props.ironLogin&&j(),(0,ek.ej)("profile_update_cookie")&&(0,ek.nJ)("profile_update_cookie")},[e.children.props]),(0,Z.useEffect)(()=>(window.addEventListener("beforeunload",L),()=>{window.removeEventListener("beforeunload",L)}),[]),(0,Z.useEffect)(()=>{let e=setInterval(()=>{(0,ny.uE)()},6e4);return()=>{clearInterval(e)}},[]);let j=async t=>{let r=e.children.props.ironCookie&&e.children.props.ironCookie.user&&e.children.props.ironCookie.user.email?e.children.props.ironCookie.user.email:"",n=(0,ek.tY)(e.children.props.urls.profileDetailsURL?e.children.props.urls.profileDetailsURL:"");(n=n.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(r)))&&(0,ek.bf)(n,e=>{I(e&&e.profiles?e.profiles:[])},"",!1,null,x)},B=!0;if((C.route.includes("forgot-password")||C.route.includes("change-password"))&&(B=!1),e.children.props.ironLogin&&eS.isMultiProfileActive&&B){let t=!1,r=e.children.props&&e.children.props.selectedProfile?e.children.props.selectedProfile:null,n=!!e.children.props&&!!e.children.props.ironCookie&&!!e.children.props.ironCookie.isProfileShow&&e.children.props.ironCookie.isProfileShow;if(null==r)t=!0;else{var U=new Date(e.children.props&&e.children.props.ironCookie&&e.children.props.ironCookie.activeprofile&&e.children.props.ironCookie.activeprofile.selectedDate?e.children.props.ironCookie.activeprofile.selectedDate:"");(0,ek.Aq)(U,new Date)>0&&(t=!0),r&&!P.some(e=>
50e.id===r.id)&&(t=!0)}n&&(t=!0);let i=e.children.props&&e.children.props.urls&&e.children.props.urls.addSubProfileURL?e.children.props.urls.addSubProfileURL:"";if(t&&P.length>0&&i)return(0,K.jsx)("div",{className:"min-height-70",children:(0,K.jsx)(cy.Z,{handleGoToHome:()=>{},...e.children.props})})}return eS.weblandingURL&&eS.weblandingURL.length>0&&E.pathname&&"/"==E.pathname?(0,K.jsx)(K.Fragment,{}):(0,K.jsx)(K.Fragment,{children:e.children.props.isLoadingdata?(0,K.jsx)(cv.cb,{}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(cw,{router:C,appName:eS.appName}),(0,K.jsx)(nv,{setIsLoadingdata:e=>setIsLoadingdata(e),...e,children:(0,K.jsxs)("div",{className:"main-container",children:[(0,K.jsx)(cm.Ix,{className:"fixed_toast",transition:cm.Mi}),(0,K.jsx)("div",{id:"main-container",style:{opacity:1},children:e.children})]})}),O&&(0,K.jsx)(cb.Z,{showAlert:O,setShowAlert:e=>N(e),title:"Switch to the App",desc:"for an optimized experience we highly recommend using our app",okButtonLabel:"Open",cancelButtonLabel:"Cancel",okAction:()=>{window.sessionStorage.setItem("optimizedExperienceModalShown","true"),M()},cancelButtonAction:()=>{window.sessionStorage.setItem("optimizedExperienceModalShown","true")}}),(0,K.jsx)(cf,{isHoopaVal:T,partnerName:A,supportURL:R}),(0,K.jsx)(cg,{})]})})};let cw=(0,ez.vJ)(["body{"," scrollbar-color:",";}body::-webkit-scrollbar-thumb{background-color:",";border-radius:1rem;transition:0.3s;}"],e=>{let{appName:t}=e;return"dove"===t?"\n          background-color: #fff9ed !important;\n        ":""},eS.menuTextHoverColor,eS.menuTextHoverColor);var cS=r(74764),ck=r(2962),cx=r(39115);r(85824);var cE=function(){let e,t,r;return e=document.getElementById("header-nav"),t=document.getElementById("footer"),r=document.getElementById("matchpoint_footer"),e&&(e.style.display="none"),t&&(t.style.display="none"),r&&(r.style.display="none"),(0,K.jsxs)("div",{className:"loca-avail-div",children:[(0,K.jsx)("div",{className:"logo_img",children:(0,K.jsx)(eQ(),{src:eS.channelLogo,alt:"logo",width:"160",height:"50"})}),(0,K.jsxs)("div",{className:"second_column_locAvail",children:[(0,K.jsxs)("div",{className:"first_col_locAvail",children:[(0,K.jsx)("h1",{className:"text-color-h1",children:"We are Sorry."}),(0,K.jsx)("h2",{className:"secondary_text_locAvail",children:"Unfortunately we are not available in your location."})]}),(0,K.jsx)("div",{className:"third_column_locAvail",children:(0,K.jsx)(eQ(),{src:"//images/".concat(eS.appName,"/Cineverse_AvailabilityScreen_tv.png"),width:"550",height:"550",alt:"Cineverse_logo"})})]})]})};function cT(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var cA={};cT(cA,"SSRProvider",()=>cI),cT(cA,"useSSRSafeId",()=>cN),cT(cA,"useIsSSR",()=>cD);let cC={prefix:String(Math.round(1e10*Math.random())),current:0},cP=Z.createContext(cC);function cI(e){let t=(0,Z.useContext)(cP),r=(0,Z.useMemo)(()=>({prefix:t===cC?"":`${t.prefix}-${++t.current}`,current:0}),[t]);return Z.createElement(cP.Provider,{value:r},e.children)}let cO=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function cN(e){let t=(0,Z.useContext)(cP);return t!==cC||cO||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,Z.useMemo)(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function cD(){let e=(0,Z.useContext)(cP)!==cC,[t,r]=(0,Z.useState)(e);return"undefined"!=typeof window&&e&&(0,Z.useLayoutEffect)(()=>{r(!1)},[]),t}let cR="undefined"!=typeof document?Z.useLayoutEffect:()=>{},cL=!!("undefined"!=typeof window&&window.document&&window.document.createElement),cM=new Map;function cj(e){let[t,r]=(0,Z.useState)(e),n=(0,Z.useRef)(null),i=re(t),o=(0,Z.useCallback)(e=>{n.current=e},[]);return cL&&cM.set(i,o),cR(()=>{let e=i;return()=>{cM.delete(e)}},[i]),(0,Z.useEffect)(()=>{let e=n.current;e&&(n.current=null,r(e))}),i}function cB(e,t){if(e===t)return e;let r=cM.get(e);if(r)return r(t),t;let n=cM.get(t);return n?(n(e),e):t}function cU(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function cF(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 cH(e){let t=null;return()=>(null==t&&(t=e()),t)}let cz=cH(function(){return cF(/^Mac/i)}),c$=cH(function(){return cF(/^iPhone/i)}),cq=cH(function(){return cF(/^iPad/i)||cz()&&navigator.maxTouchPoints>1}),cW=cH(function(){return c$()||cq()});cH(function(){return cz()||cW()}
50),cH(function(){return cU(/AppleWebKit/i)&&!cV()});let cV=cH(function(){return cU(/Chrome/i)});function cG(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}function cK(e,t){let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function cZ(e,t){let r=e;for(cK(r,t)&&(r=r.parentElement);r&&!cK(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function cY(e,t){let{id:r,"aria-label":n,"aria-labelledby":i}=e;return r=cj(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),n||i||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":i}}cH(function(){return cU(/Android/i)}),cH(function(){return cU(/Firefox/i)});let cJ=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),cX=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function cQ(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return cJ.has(t.script)}let t=e.split("-")[0];return cX.has(t)}let c0=Symbol.for("react-aria.i18n.locale");function c1(){let e="undefined"!=typeof window&&window[c0]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:cQ(e)?"rtl":"ltr"}}let c2=c1(),c4=new Set;function c3(){for(let e of(c2=c1(),c4))e(c2)}function c6(){let e=ri(),[t,r]=(0,Z.useState)(c2);return((0,Z.useEffect)(()=>(0===c4.size&&window.addEventListener("languagechange",c3),c4.add(r),()=>{c4.delete(r),0===c4.size&&window.removeEventListener("languagechange",c3)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let c5=Z.createContext(null);function c8(){let e=c6();return(0,Z.useContext)(c5)||e}class c7{getStringForLocale(e,t){let r=this.messages[t];r||(r=c9(t,this.messages,this.defaultLocale),this.messages[t]=r);let n=r[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}constructor(e,t="en-US"){this.messages=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}function c9(e,t,r="en-US"){if(t[e])return t[e];let n=ue(e);if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[r]}function ue(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}function ut(e){return e.type===H.literal}function ur(e){return e.type===H.argument}function un(e){return e.type===H.number}function ui(e){return e.type===H.date}function uo(e){return e.type===H.time}function ua(e){return e.type===H.select}function us(e){return e.type===H.plural}function ul(e){return e.type===H.pound}function uc(e){return e.type===H.tag}function uu(e){return!!(e&&"object"==typeof e&&e.type===z.number)}function ud(e){return!!(e&&"object"==typeof e&&e.type===z.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"}(F||(F={})),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"}(H||(H={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(z||(z={}));var uh=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,up=/(?:[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 uf(e){var t={};return e.replace(up,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var um=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ug(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(um).filter(function(e){return e.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),l=0,c=s;l<c.length;l++)if(0===c[l].length)throw Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}function uy(e){return e.replace(/^(.*?)-/,"")}var uv=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ub=/^(@+)?(\+|#+)?[rs]?$/g,u_=/(\*)(0+)|(#+)(0+)|(0+)/g,uw=/^(0+)$/;function uS(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(ub,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function uk(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 ux(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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!uw.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function uE(e){var t={};return uk(e)||t}function uT(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=uy(i.options[0]);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;
50case"scientific":t=oX(oX(oX({},t),{notation:"scientific"}),i.options.reduce(function(e,t){return oX(oX({},e),uE(t))},{}));continue;case"engineering":t=oX(oX(oX({},t),{notation:"engineering"}),i.options.reduce(function(e,t){return oX(oX({},e),uE(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(i.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(i.options.length>1)throw RangeError("integer-width stems only accept a single optional option");i.options[0].replace(u_,function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(uw.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(uv.test(i.stem)){if(i.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(uv,function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var o=i.options[0];"w"===o?t=oX(oX({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=oX(oX({},t),uS(o)));continue}if(ub.test(i.stem)){t=oX(oX({},t),uS(i.stem));continue}var a=uk(i.stem);a&&(t=oX(oX({},t),a));var s=ux(i.stem);s&&(t=oX(oX({},t),s))}return t}var uA={"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
50:["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 uC(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),l="a",c=uP(t);for(("H"==c||"k"==c)&&(s=0);s-- >0;)r+=l;for(;a-- >0;)r=c+r}else"J"===i?r+="H":r+=i}return r}function uP(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(uA[t||""]||uA[n||""]||uA["".concat(n,"-001")]||uA["001"])[0]}var uI=new RegExp("^".concat(uh.source,"*")),uO=new RegExp("".concat(uh.source,"*$"));function uN(e,t){return{start:e,end:t}}var uD=!!String.prototype.startsWith&&"_a".startsWith("a",1),uR=!!String.fromCodePoint,uL=!!Object.fromEntries,uM=!!String.prototype.codePointAt,uj=!!String.prototype.trimStart,uB=!!String.prototype.trimEnd,uU=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},uF=!0;try{var uH=uK("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");uF=(null===($=uH.exec("a"))||void 0===$?void 0:$[0])==="a"}catch(e){uF=!1}var uz=uD?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},u$=uR?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0;i>o;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},uq=uL?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},uW=uM?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},uV=uj?function(e){return e.trimStart()}:function(e){return e.replace(uI,"")},uG=uB?function(e){return e.trimEnd()}:function(e){return e.replace(uO,"")};function uK(e,t){return new RegExp(e,t)}if(uF){var uZ=uK("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=function(e,t){var r;return uZ.lastIndex=t,null!==(r=uZ.exec(e)[1])&&void 0!==r?r:""}}else q=function(e,t){for(var r=[];;){var n=uW(e,t);if(void 0===n||u0(n)||u1(n))break;r.push(n),t+=n>=65536?2:1}return u$.apply(void 0,r)};var uY=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,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,r);if(o.err)return o;n.push(o.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var a=this.clonePosition();this.bump(),n.push({type:H.pound,location:uN(a,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&uJ(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;n.push(o.val)}}else{if(!r)return this.error(F.UNMATCHED_CLOSING_TAG,uN(this.clonePosition(),this.clonePosition()));break}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:H.literal,value:"<".concat(n,"/>"),location:uN(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(F.INVALID_TAG,uN(r,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(!this.bumpIf("</"))return this.error(F.UNCLOSED_TAG,uN(r,this.clonePosition()));if(this.isEOF()||!uJ(this.char()))return this.error(F.INVALID_TAG,uN(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(F.UNMATCHED_CLOSING_TAG,uN(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:H.tag,value:n,children:o,location:uN(r,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,uN(a,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&uQ(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i){n+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var s=uN(r,this.clonePosition());return{val:{type:H.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&uX(this.peek()||0)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
50case 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 r=this.char();if(39===r){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(r);this.bump()}return u$.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),u$(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,uN(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(F.EMPTY_ARGUMENT,uN(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(F.MALFORMED_ARGUMENT,uN(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,uN(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:n,location:uN(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,uN(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(F.MALFORMED_ARGUMENT,uN(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=q(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:uN(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,uN(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),u=this.parseSimpleArgStyleIfPossible();if(u.err)return u;var d=uG(u.val);if(0===d.length)return this.error(F.EXPECT_ARGUMENT_STYLE,uN(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:uN(c,this.clonePosition())}}var h=this.tryParseArgumentClose(n);if(h.err)return h;var p=uN(n,this.clonePosition());if(l&&uz(null==l?void 0:l.style,"::",0)){var f=uV(l.style.slice(2));if("number"===a){var u=this.parseNumberSkeletonFromString(f,l.styleLocation);if(u.err)return u;return{val:{type:H.number,value:r,location:p,style:u.val},err:null}}if(0===f.length)return this.error(F.EXPECT_DATE_TIME_SKELETON,p);var m=f;this.locale&&(m=uC(f,this.locale));var d={type:z.dateTime,pattern:m,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?uf(m):{}};return{val:{type:"date"===a?H.date:H.time,value:r,location:p,style:d},err:null}}return{val:{type:"number"===a?H.number:"date"===a?H.date:H.time,value:r,location:p,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,uN(g,oX({},g)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,uN(this.clonePosition(),this.clonePosition()));this.bumpSpace();var u=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(u.err)return u;this.bumpSpace(),y=this.parseIdentifierIfPossible(),v=u.val}var b=this.tryParsePluralOrSelectOptions(e,a,t,y);if(b.err)return b;var h=this.tryParseArgumentClose(n);if(h.err)return h;var _=uN(n,this.clonePosition());if("select"===a)return{val:{type:H.select,value:r,options:uq(b.val),location:_},err:null};return{val:{type:H.plural,value:r,options:uq(b.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(F.INVALID_ARGUMENT_TYPE,uN(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,uN(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 r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,uN(r,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 r=[];try{r=ug(e)}
vendor: 4,193 bytes, line 50
50catch(e){return this.error(F.INVALID_NUMBER_SKELETON,t)}return{val:{type:z.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?uT(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,l=n.value,c=n.location;;){if(0===l.length){var u=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=uN(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}else break}if(s.has(l))return this.error("select"===t?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,uN(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var f=this.tryParseArgumentClose(h);if(f.err)return f;a.push([l,{value:p.val,location:uN(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,uN(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(F.MISSING_OTHER_CLAUSE,uN(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=uN(n,this.clonePosition());return i?uU(o*=r)?{val:o,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=uW(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(uz(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(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!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()&&u0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function uJ(e){return e>=97&&e<=122||e>=65&&e<=90}function uX(e){return uJ(e)||47===e}function uQ(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 u0(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function u1(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
50===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 u2(e){e.forEach(function(e){if(delete e.location,ua(e)||us(e))for(var t in e.options)delete e.options[t].location,u2(e.options[t].value);else un(e)&&uu(e.style)?delete e.style.location:(ui(e)||uo(e))&&ud(e.style)?delete e.style.location:uc(e)&&u2(e.children)})}function u4(e,t){void 0===t&&(t={});var r=new uY(e,t=oX({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var n=SyntaxError(F[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||u2(r.val),r.val}function u3(e,t){var r=t&&t.cache?t.cache:dn,n=t&&t.serializer?t.serializer:dt;return(t&&t.strategy?t.strategy:u9)(e,{cache:r,serializer:n})}function u6(e){return null==e||"number"==typeof e||"boolean"==typeof e}function u5(e,t,r,n){var i=u6(n)?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function u8(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function u7(e,t,r,n,i){return r.bind(t,e,n,i)}function u9(e,t){var r=1===e.length?u5:u8;return u7(e,this,r,t.cache.create(),t.serializer)}function de(e,t){return u7(e,this,u8,t.cache.create(),t.serializer)}var dt=function(){return JSON.stringify(arguments)};function dr(){this.cache=Object.create(null)}dr.prototype.get=function(e){return this.cache[e]},dr.prototype.set=function(e,t){this.cache[e]=t};var dn={create:function(){return new dr}},di=de;!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(W||(W={}));var da=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return oJ(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ds=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),W.INVALID_VALUE,i)||this}return oJ(t,e),t}(da),dl=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),W.INVALID_VALUE,n)||this}return oJ(t,e),t}(da),dc=function(e){function t(t,r){return e.call(this,'The intl str
50ing context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),W.MISSING_VALUE,r)||this}return oJ(t,e),t}(da);function du(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===V.literal&&t.type===V.literal?r.value+=t.value:e.push(t),e},[])}function dd(e){return"function"==typeof e}function dh(e,t,r,n,i,o,a){if(1===e.length&&ut(e[0]))return[{type:V.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(ut(u)){s.push({type:V.literal,value:u.value});continue}if(ul(u)){"number"==typeof o&&s.push({type:V.literal,value:r.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new dc(d,a);var h=i[d];if(ur(u)){h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?V.literal:V.object,value:h});continue}if(ui(u)){var p="string"==typeof u.style?n.date[u.style]:ud(u.style)?u.style.parsedOptions:void 0;s.push({type:V.literal,value:r.getDateTimeFormat(t,p).format(h)});continue}if(uo(u)){var p="string"==typeof u.style?n.time[u.style]:ud(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:V.literal,value:r.getDateTimeFormat(t,p).format(h)});continue}if(un(u)){var p="string"==typeof u.style?n.number[u.style]:uu(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(h*=p.scale||1),s.push({type:V.literal,value:r.getNumberFormat(t,p).format(h)});continue}if(uc(u)){var f=u.children,m=u.value,g=i[m];if(!dd(g))throw new dl(m,"function",a);var y=g(dh(f,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map(function(e){return{type:"string"==typeof e?V.literal:V.object,value:e}}))}if(ua(u)){var v=u.options[h]||u.options.other;if(!v)throw new ds(u.value,h,Object.keys(u.options),a);s.push.apply(s,dh(v.value,t,r,n,i));continue}if(us(u)){var v=u.options["=".concat(h)];if(!v){if(!Intl.PluralRules)throw new da('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',W.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));v=u.options[b]||u.options.other}if(!v)throw new ds(u.value,h,Object.keys(u.options),a);s.push.apply(s,dh(v.value,t,r,n,i,h-(u.offset||0)));continue}}return du(s)}function dp(e,t){return t?oX(oX(oX({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=oX(oX({},e[n]),t[n]||{}),r},{})):e}function df(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=dp(e[n],t[n]),r},oX({},e)):e}function dm(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function dg(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:u3(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,o1([void 0],t,!1)))},{cache:dm(e.number),strategy:di}),getDateTimeFormat:u3(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,o1([void 0],t,!1)))},{cache:dm(e.dateTime),strategy:di}),getPluralRules:u3(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,o1([void 0],t,!1)))},{cache:dm(e.pluralRules),strategy:di})}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(V||(V={}));var dy=function(){function e(t,r,n,i){var o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===V.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return dh(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=o.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{},s=(a.formatters,oQ(a,["formatters"]));this.ast=e.__parse(t,oX(oX({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=df(e.formats,n),this.formatters=i&&i.formatters||dg(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}
50,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=u4,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}();class dv{format(e,t){let r,n=this.cache[e];if(!n){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw Error(`Could not find intl message ${e} in ${this.locale} locale`);n=new dy(t,this.locale),this.cache[e]=n}return t&&(r=Object.keys(t).reduce((e,r)=>(e[r]=null!=t[r]&&t[r],e),{})),n.format(r)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}let db=new WeakMap;function d_(e){let t=db.get(e);return t||(t=new c7(e),db.set(e,t)),t}function dw(e){let{locale:t}=c8(),r=(0,Z.useMemo)(()=>d_(e),[e]),n=(0,Z.useMemo)(()=>new dv(t,r),[t,r]);return(0,Z.useCallback)((e,t)=>n.format(e,t),[n])}function dS(e){var t=tB(e);return t&&t.defaultView||window}function dk(e,t){return dS(e).getComputedStyle(e,t)}var dx=/([A-Z])/g;function dE(e){return e.replace(dx,"-$1").toLowerCase()}var dT=/^ms-/;function dA(e){return dE(e).replace(dT,"-ms-")}var dC=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function dP(e){return!!(e&&dC.test(e))}var dI=function(e,t){var r="",n="";if("string"==typeof t)return e.style.getPropertyValue(dA(t))||dk(e).getPropertyValue(dA(t));Object.keys(t).forEach(function(i){var o=t[i];o||0===o?dP(i)?n+=i+"("+o+") ":r+=dA(i)+": "+o+";":e.style.removeProperty(dA(i))}),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r};function dO(e){return"nodeType"in e&&e.nodeType===document.DOCUMENT_NODE}function dN(e){return"window"in e&&e.window===e?e:!!dO(e)&&(e.defaultView||!1)}function dD(e){var t="pageXOffset"===e?"scrollLeft":"scrollTop";return function(r,n){var i=dN(r);if(void 0===n)return i?i[e]:r[t];i?i.scrollTo(i[e],n):r[t]=n}}var dR=dD("pageXOffset"),dL=dD("pageYOffset");function dM(e){var t=tB(e),r={top:0,left:0,height:0,width:0},n=t&&t.documentElement;return n&&tL(n,e)?(void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),r={top:r.top+dL(n)-(n.clientTop||0),left:r.left+dR(n)-(n.clientLeft||0),width:r.width,height:r.height}):r}var dj=function(e){return!!e&&"offsetParent"in e};function dB(e){for(var t=tB(e),r=e&&e.offsetParent;dj(r)&&"HTML"!==r.nodeName&&"static"===dI(r,"position");)r=r.offsetParent;return r||t.documentElement}var dU=function(e){return e.nodeName&&e.nodeName.toLowerCase()};function dF(e,t){var r,n={top:0,left:0};if("fixed"===dI(e,"position"))r=e.getBoundingClientRect();else{var i=t||dB(e);r=dM(e),"html"!==dU(i)&&(n=dM(i));var o=String(dI(i,"borderTopWidth")||0);n.top+=parseInt(o,10)-dL(i)||0;var a=String(dI(i,"borderLeftWidth")||0);n.left+=parseInt(a,10)-dR(i)||0}var s=String(dI(e,"marginTop")||0),l=String(dI(e,"marginLeft")||0);return(0,rD.Z)({},r,{top:r.top-n.top-(parseInt(s,10)||0),left:r.left-n.left-(parseInt(l,10)||0)})}function dH(e){let t=(0,Z.useRef)(null);return cR(()=>{t.current=e},[e]),(0,Z.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}let dz=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document};function d$(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=e,o=(0,Z.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=dH(e=>{r&&dq(e,t)&&(i&&i(e),o.current.isPointerDown=!0)}),s=dH(e=>{r&&r(e)});(0,Z.useEffect)(()=>{let e=o.current;if(n)return;let r=dz(t.current);if("undefined"!=typeof PointerEvent){let n=r=>{e.isPointerDown&&dq(r,t)&&s(r),e.isPointerDown=!1};return r.addEventListener("pointerdown",a,!0),r.addEventListener("pointerup",n,!0),()=>{r.removeEventListener("pointerdown",a,!0),r.removeEventListener("pointerup",n,!0)}}{let n=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&dq(r,t)&&s(r),e.isPointerDown=!1},i=r=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&dq(r,t)&&s(r),e.isPointerDown=!1};return r.addEventListener("mousedown",a,!0),r.addEventListener("mouseup",n,!0),r.addEventListener("touchstart",a,!0),r.addEventListener("touchend",i,!0),()=>{r.removeEventListener("mousedown",a,!0),r.removeEventListener("mouseup",n,!0),r.removeEventListener("touchstart",a,!0),r.removeEventListener("touchend",i,!0)}}},[t,n,a,s])}function dq(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}class dW{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function dV(e){let t=(0,Z.useRef)({isFocused:!1,observer:null});cR(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=dH(t=>{null==e||e(t)});return(0,Z.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,i=e=>{t.current.isFocused=!1,n.disabled&&r(new dW("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();
50let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function dG(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,o=(0,Z.useRef)({isFocusWithin:!1}),a=(0,Z.useCallback)(e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(e),i&&i(!1))},[r,i,o]),s=dV(a),l=(0,Z.useCallback)(e=>{o.current.isFocusWithin||document.activeElement!==e.target||(n&&n(e),i&&i(!0),o.current.isFocusWithin=!0,s(e))},[n,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}var dK=r(73935),dZ=r(90512);function dY(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],i=n[e];"function"==typeof r&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=cG(r,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof i?t[e]=(0,dZ.Z)(r,i):"id"===e&&r&&i?t.id=cB(r,i):t[e]=void 0!==i?i:r}}return t}let dJ={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function dX(e={}){let{style:t,isFocusable:r}=e,[n,i]=(0,Z.useState)(!1),{focusWithinProps:o}=dG({isDisabled:!r,onFocusWithinChange:e=>i(e)}),a=(0,Z.useMemo)(()=>n?t:t?{...dJ,...t}:dJ,[n]);return{visuallyHiddenProps:{...o,style:a}}}function dQ(e){let{children:t,elementType:r="div",isFocusable:n,style:i,...o}=e,{visuallyHiddenProps:a}=dX(e);return Z.createElement(r,dY(o,a),t)}function d0(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function d1(e){return e&&e.__esModule?e.default:e}d0({},"useOverlayPosition",()=>hd);let d2={top:"top",bottom:"top",left:"left",right:"left"},d4={top:"bottom",bottom:"top",left:"right",right:"left"},d3={top:"left",left:"top"},d6={top:"height",left:"width"},d5={},d8="undefined"!=typeof window&&window.visualViewport;function d7(e){let t=0,r=0,n=0,i=0,o={};if("BODY"===e.tagName){var a,s;t=null!==(a=null==d8?void 0:d8.width)&&void 0!==a?a:document.documentElement.clientWidth,r=null!==(s=null==d8?void 0:d8.height)&&void 0!==s?s:document.documentElement.clientHeight,o.top=dL(tB(e).documentElement)||dL(e),o.left=dR(tB(e).documentElement)||dR(e)}else({width:t,height:r,top:n,left:i}
50=dM(e)),o.top=dL(e),o.left=dR(e);return{width:t,height:r,scroll:o,top:n,left:i}}function d9(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function he(e,t,r,n,i){let o=n.scroll[e],a=n[d6[e]],s=t-i-o,l=t+i-o+r;return s<0?-s:l>a?Math.max(a-l,-s):0}function ht(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function hr(e){if(d5[e])return d5[e];let[t,r]=e.split(" "),n=d2[t]||"right",i=d3[n];d2[r]||(r="center");let o=d6[n],a=d6[i];return d5[e]={placement:t,crossPlacement:r,axis:n,crossAxis:i,size:o,crossSize:a},d5[e]}function hn(e,t,r,n,i,o,a,s){let{placement:l,crossPlacement:c,axis:u,crossAxis:d,size:h,crossSize:p}=n,f={};f[d]=e[d],"center"===c?f[d]+=(e[p]-r[p])/2:c!==d&&(f[d]+=e[p]-r[p]),f[d]+=o;let m=e[d]+e[p]/2-r[p],g=e[d]+e[p]/2;if(f[d]=Math.min(Math.max(m,f[d]),g),l===u){let r=s?a[h]:t[h];f[d4[u]]=Math.floor(r-e[u]+i)}else f[u]=Math.floor(e[u]+e[h]+i);return f}function hi(e,t,r,n,i,o){return null!=e.top?Math.max(0,t.height+t.top+t.scroll.top-(r.top+e.top)-(i.top+i.bottom+o)):Math.max(0,n.top+r.top-(t.top+t.scroll.top)-(i.top+i.bottom+o))}function ho(e,t,r,n,i,o){let{placement:a,axis:s,size:l}=o;return a===s?Math.max(0,r[s]-e[s]-e.scroll[s]+t[s]-n[s]-n[d4[s]]-i):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-r[s]-r[l]-n[s]-n[d4[s]]-i)}function ha(e,t,r,n,i,o,a,s,l,c,u,d,h){let p=hr(e),{size:f,crossAxis:m,crossSize:g,placement:y,crossPlacement:v}=p,b=hn(t,s,r,p,c,u,l,d),_=c,w=ho(s,l,t,i,o+c,p);if(a&&n[f]>w){let e=hr(`${d4[y]} ${v}`),n=hn(t,s,r,e,c,u,l,d);ho(s,l,t,i,o+c,e)>w&&(p=e,b=n,_=c)}let S=he(m,b[m],r[g],s,o);b[m]+=S;let k=hi(b,s,l,t,i,o);h&&h<k&&(k=h),r.height=Math.min(r.height,k),S=he(m,(b=hn(t,s,r,p,_,u,l,d))[m],r[g],s,o),b[m]+=S;let x={};return x[m]=t[m]-b[m]+t[g]/2,{position:b,maxHeight:k,arrowOffsetLeft:x.left,arrowOffsetTop:x.top,placement:p.placement}}function hs(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:u}=e,d=n.offsetParent||document.body,h="BODY"===d.tagName,p=window.getComputedStyle(d).position,f=!!p&&"static"!==p,m=h?dM(r):dF(r,d);if(!h){let e=String(dI(r,"marginTop")),t=String(dI(r,"marginLeft"));m.top+=parseInt(e,10)||0,m.left+=parseInt(t,10)||0}let g=dM(n),y=ht(n);return g.width+=y.left+y.right,g.height+=y.top+y.bottom,ha(t,m,g,d9(i),y,o,a,d7(s),"BODY"===s.tagName?dM(d):dF(d,s),l,c,f,u)}let hl=new WeakMap;function hc(e){let{triggerRef:t,isOpen:r,onClose:n}=e;(0,Z.useEffect)(()=>{if(!r)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current))return;let i=n||hl.get(t.current);i&&i()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[r,n,t])}let hu="undefined"!=typeof window&&window.visualViewport;function hd(e){let{direction:t}=c8(),{targetRef:r,overlayRef:n,scrollRef:i=n,placement:o="bottom",containerPadding:a=12,shouldFlip:s=!0,boundaryElement:l="undefined"!=typeof document?document.body:null,offset:c=0,crossOffset:u=0,shouldUpdatePosition:d=!0,isOpen:h=!0,onClose:p,maxHeight:f}=e,[m,g]=(0,Z.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),y=[d,o,n.current,r.current,i.current,a,s,l,c,u,h,t,f],v=(0,Z.useCallback)(()=>{!1!==d&&h&&n.current&&r.current&&i.current&&l&&g(hs({placement:hp(o,t),overlayNode:n.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:s,boundaryElement:l,offset:c,crossOffset:u,maxHeight:f}))},y);cR(v,y),hh(v);let b=(0,Z.useRef)(!1);cR(()=>{let e;let t=()=>{b.current=!0,clearTimeout(e),e=setTimeout(()=>{b.current=!1},500),v()};return null==hu||hu.addEventListener("resize",t),()=>{null==hu||hu.removeEventListener("resize",t)}},[v]);let _=(0,Z.useCallback)(()=>{b.current||p()},[p,b]);return hc({triggerRef:r,isOpen:h,onClose:p?_:void 0}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...m.position,maxHeight:m.maxHeight}},placement:m.placement,arrowProps:{style:{left:m.arrowOffsetLeft,top:m.arrowOffsetTop}},updatePosition:v}}function hh(e){cR(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function hp(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}d0({},"useOverlay",()=>hm);let hf=[];function hm(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;(0,Z.useEffect)(()=>(i&&hf.push(t),()=>{let e=hf.indexOf(t);e>=0&&hf.splice(e,1)}),[i,t]);let l=()=>{hf[hf.length-1]===t&&r&&r()},c=e=>{(!s||s(e.target))&&hf[hf.length-1]===t&&(e.stopPropagation(),e.preventDefault())},u=e=>{(!s||s(e.target))&&(hf[hf.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())},d=e=>{"Escape"!==e.key||a||(e.stopPropagation(),e.preventDefault(),l())};d$({ref:t,onInteractOutside:o?u:null,onInteractOutsideStart:c});let{focusWithinProps:h}=dG({isDisabled:!n,onBlurWithin:e=>{(!s||s(e.relatedTarget))&&r()}}),p=e=>{e.target===e.currentTarget&&e.preventDefault()};return{overlayProps:{onKeyDown:d,...h},underlayProps:{onPointerDown:p}}}
50function hg(e,t,r){let n,{type:i}=e,{isOpen:o}=t;(0,Z.useEffect)(()=>{r&&r.current&&hl.set(r.current,t.close)}),"menu"===i?n=!0:"listbox"===i&&(n="listbox");let a=cj();return{triggerProps:{"aria-haspopup":n,"aria-expanded":o,"aria-controls":o?a:null},overlayProps:{id:a}}}d0({},"useOverlayTrigger",()=>hg),d0({},"usePreventScroll",()=>hb);let hy="undefined"!=typeof window&&window.visualViewport,hv=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hb(e={}){let{isDisabled:t}=e;cR(()=>{if(!t)return cW()?hw():h_()},[t])}function h_(){return cG(hS(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hS(document.documentElement,"overflow","hidden"))}function hw(){let e;let t=0,r=r=>{((e=cZ(r.target))!==document.documentElement||e!==document.body)&&(t=r.changedTouches[0].pageY)},n=r=>{if(e===document.documentElement||e===document.body){r.preventDefault();return}let n=r.changedTouches[0].pageY,i=e.scrollTop,o=e.scrollHeight-e.clientHeight;(i<=0&&n>t||i>=o&&n<t)&&r.preventDefault(),t=n},i=e=>{let t=e.target;hE(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},o=e=>{let t=e.target;hE(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",hy&&(hy.height<window.innerHeight?requestAnimationFrame(()=>{hx(t)}):hy.addEventListener("resize",()=>hx(t),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=cG(hS(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hS(document.documentElement,"overflow","hidden"),hS(document.body,"marginTop",`-${l}px`));window.scrollTo(0,0);let u=cG(hk(document,"touchstart",r,{passive:!1,capture:!0}),hk(document,"touchmove",n,{passive:!1,capture:!0}),hk(document,"touchend",i,{passive:!1,capture:!0}),hk(document,"focus",o,!0),hk(window,"scroll",a));return()=>{c(),u(),window.scrollTo(s,l)}}function hS(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function hk(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function hx(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=cZ(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top;n>r+e.clientHeight&&(t.scrollTop+=n-r)}e=t.parentElement}}function hE(e){return e instanceof HTMLInputElement&&!hv.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var hT={};d0(hT,"ModalProvider",()=>hC),d0(hT,"useModalProvider",()=>hP),d0(hT,"OverlayProvider",()=>hO),d0(hT,"OverlayContainer",()=>hN),d0(hT,"useModal",()=>hD);let hA=Z.createContext(null);function hC(e){let{children:t}=e,r=(0,Z.useContext)(hA),[n,i]=(0,Z.useState)(0),o=(0,Z.useMemo)(()=>({parent:r,modalCount:n,addModal(){i(e=>e+1),r&&r.addModal()},removeModal(){i(e=>e-1),r&&r.removeModal()}}),[r,n]);return Z.createElement(hA.Provider,{value:o},t)}function hP(){let e=(0,Z.useContext)(hA);return{modalProviderProps:{"aria-hidden":!!e&&e.modalCount>0||null}}}function hI(e){let{modalProviderProps:t}=hP();return Z.createElement("div",{"data-overlay-container":!0,...e,...t})}function hO(e){return Z.createElement(hC,null,Z.createElement(hI,e))}function hN(e){let{portalContainer:t=document.body,...r}=e;Z.useEffect(()=>{if(t.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[t]);let n=Z.createElement(hO,r);return dK.createPortal(n,t)}function hD(e){let t=(0,Z.useContext)(hA);if(!t)throw Error("Modal is not contained within a provider");return(0,Z.useEffect)(()=>{if((null==e||!e.isDisabled)&&t&&t.parent)return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}},[t,t.parent,null==e?void 0:e.isDisabled]),{modalProps:{"data-ismodal":!(null==e?void 0:e.isDisabled)}}}d0({},"DismissButton",()=>po);var hR={},hL={};hL=JSON.parse('{"dismiss":"تجاهل"}');var hM={};hM=JSON.parse('{"dismiss":"Отхвърляне"}');var hj={};hj=JSON.parse('{"dismiss":"Odstranit"}');var hB={};hB=JSON.parse('{"dismiss":"Luk"}');var hU={};hU=JSON.parse('{"dismiss":"Schlie\xdfen"}');var hF={};hF=JSON.parse('{"dismiss":"Απόρριψη"}');var hH={};hH=JSON.parse('{"dismiss":"Dismiss"}');var hz={};hz=JSON.parse('{"dismiss":"Descartar"}');var h$={};h$=JSON.parse('{"dismiss":"L\xf5peta"}');var hq={};hq=JSON.parse('{"dismiss":"Hylk\xe4\xe4"}');var hW={};hW=JSON.parse('{"dismiss":"Rejeter"}');var hV={};hV=JSON.parse('{"dismiss":"התעלם"}');var hG={};hG=JSON.parse('{"dismiss":"Odbaci"}');var hK={};hK=JSON.parse('{"dismiss":"Elutas\xedt\xe1s"}');var hZ={};hZ=JSON.parse('{"dismiss":"Ignora"}');var hY={};hY=JSON.parse('{"dismiss":"閉じる"}');var hJ={};
50hJ=JSON.parse('{"dismiss":"무시"}');var hX={};hX=JSON.parse('{"dismiss":"Atmesti"}');var hQ={};hQ=JSON.parse('{"dismiss":"Nerādīt"}');var h0={};h0=JSON.parse('{"dismiss":"Lukk"}');var h1={};h1=JSON.parse('{"dismiss":"Negeren"}');var h2={};h2=JSON.parse('{"dismiss":"Zignoruj"}');var h4={};h4=JSON.parse('{"dismiss":"Descartar"}');var h3={};h3=JSON.parse('{"dismiss":"Dispensar"}');var h6={};h6=JSON.parse('{"dismiss":"Revocare"}');var h5={};h5=JSON.parse('{"dismiss":"Пропустить"}');var h8={};h8=JSON.parse('{"dismiss":"Zrušiť"}');var h7={};h7=JSON.parse('{"dismiss":"Opusti"}');var h9={};h9=JSON.parse('{"dismiss":"Odbaci"}');var pe={};pe=JSON.parse('{"dismiss":"Avvisa"}');var pt={};pt=JSON.parse('{"dismiss":"Kapat"}');var pr={};pr=JSON.parse('{"dismiss":"Скасувати"}');var pn={};pn=JSON.parse('{"dismiss":"取消"}');var pi={};function po(e){let{onDismiss:t,...r}=e,n=cY(r,dw(d1(hR))("dismiss")),i=()=>{t&&t()};return Z.createElement(dQ,null,Z.createElement("button",{...n,tabIndex:-1,onClick:i}))}hR={"ar-AE":hL,"bg-BG":hM,"cs-CZ":hj,"da-DK":hB,"de-DE":hU,"el-GR":hF,"en-US":hH,"es-ES":hz,"et-EE":h$,"fi-FI":hq,"fr-FR":hW,"he-IL":hV,"hr-HR":hG,"hu-HU":hK,"it-IT":hZ,"ja-JP":hY,"ko-KR":hJ,"lt-LT":hX,"lv-LV":hQ,"nb-NO":h0,"nl-NL":h1,"pl-PL":h2,"pt-BR":h4,"pt-PT":h3,"ro-RO":h6,"ru-RU":h5,"sk-SK":h8,"sl-SI":h7,"sr-SP":h9,"sv-SE":pe,"tr-TR":pt,"uk-UA":pr,"zh-CN":pn,"zh-TW":pi=JSON.parse('{"dismiss":"關閉"}')},d0({},"ariaHideOutside",()=>ps);let pa=new WeakMap;function ps(e,t=document.body){let r=new Set(e),n=new Set,i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>(t instanceof HTMLElement&&"true"===t.dataset.liveAnnouncer&&r.add(t),r.has(t)||n.has(t.parentElement))?NodeFilter.FILTER_REJECT:t instanceof HTMLElement&&"row"===t.getAttribute("role")||e.some(e=>t.contains(e))?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}),o=e=>{var t;let r=null!==(t=pa.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==r)&&(0===r&&e.setAttribute("aria-hidden","true"),n.add(e),pa.set(e,r+1))},a=i.nextNode();for(;null!=a;)o(a),a=i.nextNode();let s=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...r,...n].some(e=>e.contains(t.target)))for(let e of t.addedNodes)e instanceof HTMLElement&&"true"===e.dataset.liveAnnouncer?r.add(e):e instanceof Element&&o(e)});return s.observe(t,{childList:!0,subtree:!0}),()=>{for(let e of(s.disconnect(),n)){let t=pa.get(e);1===t?(e.removeAttribute("aria-hidden"),pa.delete(e)):pa.set(e,t-1)}}}var pl=r(60275);let pc=(0,pl.zY)({"*, *:before, *:after":{boxSizing:"border-box",textRendering:"geometricPrecision",WebkitTapHighlightColor:"transparent"},html:{fontSize:"$base"},body:{margin:0,padding:0,minHeight:"100%",position:"relative",overflowX:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",fontSize:"$base",lineHeight:"$md",fontFamily:"$sans"},"html, body":{backgroundColor:"$background",color:"$text"},"p, small":{color:"inherit",letterSpacing:"$tighter",fontWeight:"$normal",fontFamily:"$sans"},p:{fontSize:"$base",lineHeight:"$lg"},small:{margin:0,lineHeight:"$xs",fontSize:"$xs"},b:{fontWeight:"$semibold"},span:{fontSize:"inherit",color:"inherit",fontWeight:"inherit"},img:{maxWidth:"100%"},a:{cursor:"pointer",fontSize:"inherit",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitBoxAlign:"center",alignItems:"center",color:"$link",textDecoration:"none"},"a:hover":{textDecoration:"none"},"ul,ol":{padding:0,listStyleType:"none",margin:"$sm $sm $sm $lg",color:"$foreground"},ol:{listStyleType:"decimal"},li:{marginBottom:"$5",fontSize:"$base",lineHeight:"$lg"},"h1,h2,h3,h4,h5,h6":{color:"inherit",margin:"0 0 $5 0"},h1:{letterSpacing:"$tighter",fontSize:"$xl5",lineHeight:"$md",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$xl4",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$xl2",fontWeight:"$semibold"},h4:{letterSpacing:"$tighter",fontSize:"$xl",fontWeight:"$semibold"},h5:{letterSpacing:"$tight",fontSize:"$md",fontWeight:"$semibold"},h6:{letterSpacing:"$tight",fontSize:"$sm",fontWeight:"$semibold"},"button, input, select,textarea":{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",color:"inherit",margin:0},"button:focus, input:focus, select:focus, textarea:focus":{outline:"none"},code:{color:"$code",padding:"$1 $2",borderRadius:"$xs",bg:"$codeLight",fontFamily:"$mono",fontSize:"$sm",whiteSpace:"pre-wrap",transition:"opacity 0.25s ease 0s"},"code:hover":{opacity:.8},pre:{overflow:"auto",whiteSpace:"pre",textAlign:"left",fontSize:"$sm",borderRadius:"$lg",padding:"$md $lg",margin:"$lg 0 ",fontFamily:"$mono",lineHeight:"$md",webkitOverflowScrolling:"touch"},"pre code":{color:"$foreground",fontSize:"$sm",lineHeight:"$sm",whiteSpace:"pre"},"pre code:before,pre code:after":{display:"none"},"pre p":{margin:0},"pre::-webkit-scrollbar":{display:"none",width:0,height:0,background:"transparent"},hr:{background:"$border",borderColor:"transparent",borderWidth:"0px",borderStyle:"none",height:"1px"},details:{backgroundColor:"$accents1",border:"none"},"details:focus, details:hover, details:active":{outline:"none"},summary:{cursor:"pointer",userSelect:"none",listStyle:"none",outline:"none"},"summary::-webkit-details-marker, summary::before":{display:"none"},"summary::-moz-list-bullet":{fontSize:0},"summary:focus, summary:hover, summary:active":{outline:"none",listStyle:"none"},"::selection":{backgroundColor:"$selection"},blockquote:{padding:"$md $lg",color:"$accents7",backgroundColor:"$accents0",borderRadius:"$lg",margin:"$10 0"},"blockquote *:first-child":{marginTop:0},"blockquote *:last-child":{marginBottom:0},kbd:{width:"fit-content",textAlign:"center",display:"inline-block",color:"$accents8",bg:"$accents0",border:"1px solid $border",boxShadow:"0 0 1px 0 rgb(0 0 0 / 14%)",fontFamily:"$s
50ans",borderRadius:"5px",padding:"$1 $3",mx:"$1",lineHeight:"$sm",fontSize:"$sm"},"kbd + kbd":{ml:"$2"}}),pu=({children:e})=>(pc(),(0,K.jsx)(Z.Fragment,{children:e})),pd=Z.memo(pu);pd.flush=()=>(0,K.jsx)("style",{id:"stitches",dangerouslySetInnerHTML:{__html:(0,pl.Gc)()}});var ph=pd;let pp={isDark:!1,theme:pl.rS,type:"light"};var pf=Z.createContext(pp),pm=r(50088);function pg(e){for(var t,r,n=Array.prototype.slice.call(arguments,1);n.length;)for(r in t=n.shift())t.hasOwnProperty(r)&&("object"==typeof e[r]&&e[r]&&"[object Array]"!==Object.prototype.toString.call(e[r])&&"object"==typeof t[r]&&null!==t[r]?e[r]=pg({},e[r],t[r]):e[r]=t[r]);return e}let py=e=>e&&"object"==typeof e,pv=e=>py(e)?e instanceof Array?[...e]:{...e}:e;var pb=r(2524),p_=r(91875),pw=r(61309);let pS=(e,t)=>{if(!document||!e)return"";let r=getComputedStyle(document.documentElement),n=`--${pb.ZP.prefix}-${e}-${t}`,i=r.getPropertyValue(n);return i&&i.includes("var")&&pS(e,i),i},pk=()=>{let e=[...Object.keys(pb.ZP.theme.colors),...Object.keys(p_.Z.colors)],t=Object.keys(p_.Z.shadows);return{colors:e.reduce((e,t)=>{let r=pS("colors",t);return r&&(e[t]={prefix:pb.ZP.prefix,scale:"colors",token:t,value:r}),e},{}),shadows:t.reduce((e,t)=>{let r=pS("shadows",t);return r&&(e[t]={prefix:pb.ZP.prefix,scale:"shadows",token:t,value:r}),e},{})}},px=e=>{var t;let r=(null==e||null==(t=e.getAttribute("style"))?void 0:t.split(";").map(e=>e.trim()).filter(e=>e.includes("color-scheme")))||[],n=r.length>0?r[0].replace("color-scheme: ","").replace(";",""):"";return(null==e?void 0:e.getAttribute("data-theme"))||n},pE=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e,pT=e=>{var t,r;if(!document)return;let n=document.documentElement,i=(null==n||null==(t=n.getAttribute("class"))?void 0:t.split(" ").filter(e=>!e.includes("theme")&&!e.includes("light")&&!e.includes("dark")))||[],o=(null==n||null==(r=n.getAttribute("style"))?void 0:r.split(";").filter(e=>!e.includes("color-scheme")&&e.length).map(e=>`${e};`))||[];null==n||n.setAttribute("class",(0,pw.Z)(i,`${pE(e)}-theme`)),null==n||n.setAttribute("style",(0,pw.Z)(o,`color-scheme: ${e};`))};var pA=r(12532),pC=(0,pm.Z)(({theme:e,disableBaseline:t,children:r})=>{let{isBrowser:n}=(0,pA.Z)(),[i,o]=(0,Z.useState)(pp.type),a=e=>{o(t=>t!==e?e:t)},s=e=>{let t=px(e);t&&a(t)},l=(0,Z.useMemo)(()=>{let e=n?pk():{},t=pg(pv(pp.theme),e),r=pE(i);return{theme:t,type:r,isDark:"dark"===r}},[i,n]);return(0,Z.useEffect)(()=>{var e,t,r;s(null==(e=document)?void 0:e.documentElement);let n=new MutationObserver(e=>{var t,r,n,i,o;if(e&&e.length>0&&"BODY"===(null==(t=e[0])?void 0:t.target.nodeName)){let e=null==(r=document)||null==(n=r.body)||null==(i=n.dataset)?void 0:i.theme;e&&a(e)}else s(null==(o=document)?void 0:o.documentElement)});return n.observe(null==(t=document)?void 0:t.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),n.observe(null==(r=document)?void 0:r.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>n.disconnect()},[]),(0,Z.useEffect)(()=>{n&&e&&null!=e&&e.className&&(pT(e.className),a(pE(e.className)))},[n,e]),(0,K.jsx)(cI,{children:(0,K.jsx)(hO,{children:(0,K.jsxs)(pf.Provider,{value:l,children:[!t&&(0,K.jsx)(ph,{}),r]})})})},{disableBaseline:!1});let pP=(0,Z.createContext)(),pI=e=>{let{children:t}=e,[r,n]=(0,Z.useState)("ON");return(0,K.jsx)(pP.Provider,{value:{toggleState:r,setToggleState:n},children:t})};var pO=r(11196),pN=e=>{let{children:t}=e,{data:r,status:n}=(0,ng.useSession)(),[i,o]=(0,Z.useState)(null),[a,s]=(0,Z.useState)(!1);return((0,Z.useEffect)(()=>{(async()=>{var e;if("loading"!==n){if(sessionStorage.getItem("proxy-session-token")&&"unauthenticated"===n&&(console.log("\uD83E\uDDF9 Cleaning up stale session token on page load"),sessionStorage.removeItem("proxy-session-token"),o(null)),"unauthenticated"===n)try{console.log("\uD83D\uDD04 Creating anonymous session for public user...");let e=await (0,ng.signIn)("anonymous",{username:"guest",password:"guest",redirect:!1});if(null==e?void 0:e.ok){console.log("✅ Anonymous session created successfully");let{sessionToken:e}=(0,pO.lJ)();o(e),sessionStorage.setItem("proxy-session-token",e)}else console.error("❌ Failed to create anonymous session")}catch(e){console.error("Error creating anonymous session:",e)}else if("authenticated"===n&&(null==r?void 0:null===(e=r.user)||void 0===e?void 0:e.role)==="public"){let e=i;if(e||(e=sessionStorage.getItem("proxy-session-token")),e)o(e);else{let{sessionToken:e}=(0,pO.lJ)();o(e),sessionStorage.setItem("proxy-session-token",e)}}s(!0)}})()},[n,r,i]),a)?t:(0,K.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,K.jsx)("div",{className:"text-center",children:(0,K.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"})})})},pD=r(14919),pR=r(50259),pL=e=>{let{children:t}=e;return(0,K.jsx)(pR.pm,{reCaptchaKey:"6LfDokkrAAAAAAZ3E7d0oPyrEy96UZXM3dzRNkfW",children:t})};let pM=()=>{let{status:e}=(0,ng.useSession)();return(0,Z.useEffect)(()=>{"unauthenticated"===e&&(0,ng.signIn)("anonymous",{redirect:!1,username:"guest",password:"guest"})},[e]),null};var pj=e=>{let{Component:t,pageProps:{session:n,...i}}=e,{store:o,props:a}=eH.useWrappedStore(i),[s,l]=(0,Z.useState)(!1),c=(0,el.useRouter)(),u=c.pathname,d=u.includes("/account");(0,Z.useEffect)(()=>{!d&&eS.isPixelEnabled&&((eS.isGooglePixelEnabled||eS.isGCPGAPixelEnabled)&&cx.uU(),eS.isFreeWheelPixelEnabled&&(0,pD.E)("ALL_PAGE",0))},[d,u]),(0,Z.useEffect)(()=>{eS.isGlobalPixelEnable&&cx.J1()},[]),(0,Z.useEffect)(()=>{let e=async e=>{cx.LV(e)};return c.events.on("routeChangeComplete",e),()=>{c.events.off("routeChangeComplete",e)}},[c.events]),"localhost"!=window.location.hostname&&(console.clear(),console.log("%cLOG DISABLED FOR YOU"+String.fromCodePoint(parseInt("1F61C",16)),"background: #222; color: #bada55; font-size: 20px; border-radius: 8px;padding:10px"),console.log=function(){},console.warn=function(){},console.error=function(){});let[h,p]=(0,Z.useState)(null);eS.isKochavaAppId&&(0,Z.useEffect)(()=>{(async()=>
50{if(!h)try{let{Kochava:e}=await r.e(5628).then(r.bind(r,75628)),t=e.createForReact();t.startWithAppGuid(eS.kochavaAppId),p(t)}catch(e){console.log(e)}})()},[]);let f="undefined"!=typeof navigator,m=/Windows.*Chrome|Windows.*Firefox|Linux.*Chrome/,g={enabled:!navigator.onLine&&f&&m.test(navigator.userAgent)&&!0,url:"https://httpbin.org/get",timeout:5e3,interval:5e3},y=!i||!1!=i.locationAllowed||i.locationAllowed;return(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(es.zt,{store:o,children:(0,K.jsx)(pI,{children:(0,K.jsx)(pC,{children:(0,K.jsx)(pL,{children:(0,K.jsx)(ng.SessionProvider,{session:eS.isSession?n:null,children:(0,K.jsxs)(pN,{children:[(0,K.jsx)(pM,{}),(0,K.jsx)(ck.PB,{title:eS.appTitle,description:eS.metaDescription,canonical:eS.metaCanonical,openGraph:{url:{metaSiteURL:eS.metaSiteURL},title:eS.appTitle,description:eS.metaDescription,images:[{url:eS.metaIcon310_150,width:310,height:150,alt:{metaSiteName:eS.metaSiteName},type:"image/jpeg"},{url:eS.metaIcon70_70,width:70,height:70,alt:{metaSiteName:eS.metaSiteName},type:"image/jpeg"}],siteName:eS.displayAppName},twitter:{handle:eS.metaTwitterHandle,site:eS.metaSiteURL,cardType:eS.metaLogoLarge}}),(0,K.jsx)(cS.B6,{polling:g,children:(0,K.jsx)(e0.BT,{})}),(0,K.jsx)(cS.vk,{polling:g,children:y?(0,K.jsx)(c_,{children:(0,K.jsx)(t,{setIsLoadingdata:e=>l(e),isLoadingdata:s,...i})}):(0,K.jsx)(cE,{})})]})})})})})})})}},45358:function(e,t,r){"use strict";var n=r(45312),i=r(32415),o=r(74136);let a=async(e,t)=>{let r=(0,i.Mz)(),a=r.browser+"-v"+r.browserMajorVersion,s=r.os+r.osVersion,l="";"INIT"==e?l=1:"LAUNCH"==e?l=2:"LOGIN"==e&&(l=parseInt((0,i.ej)("seqId"))),(0,i.d8)("seqId",l);let c=t.userInfo&&t.userInfo.device_num?(0,o.N1)(t.userInfo.device_num):"vir_web"+(0,i.Ki)(),u=t._reg.sessionID?(0,o.N1)(t._reg.sessionID):"",d="NO_SUB",h="FREE";null!==t&&t.userInfo&&t.userInfo.user&&(d=t&&t.userInfo&&t.userInfo.user.username?(0,o.N1)(t.userInfo.user.username):"NO_SUB",h=11==t.userInfo.user.status||"active"==t.userInfo.user.status?"PLAN_A":"NO_PLAN");let p=n.appName.toLowerCase(),f={};f.EventType=e,f.Properties={},f.Properties.AppName=p,f.Properties.AppVersion=n.appVer,f.Properties.SessionId=(0,o.N1)(u),f.Properties.DeviceType=n.devType,f.Properties.DeviceId=(0,o.N1)(c),f.Properties.DeviceCat=n.deviceCode,f.Properties.SubId=encodeURIComponent((0,o.N1)(d)),f.Properties.SubCat=h,f.Properties.Timestamp=Date.now(),f.Properties.SeqId=l,f.Properties.DevModel=(0,o.N1)(a),f.Properties.OsVer=(0,o.N1)(s),f.Properties.Manufacturer="",f.Properties.Year="",f.Properties.url=(0,o.N1)(t._reg.regReportUrl);let m=[];m.push(f);let g=t._reg.regReportUrl;if(g){let e={url:g,type:"analytics",bdata:m,datatype:"json"};try{(0,i.xN)(e,e=>{console.log("Analytics sent successfully",e)})}catch(e){}}};t.Z=a},68741:function(e,t,r){"use strict";r.d(t,{t:function(){return n}});let n={FETCH_DMS_URL:"FETCH_DMS_URL",FETCH_NAV_DATA:"FETCH_NAV_DATA",FETCH_GENRE_DATA:"FETCH_GENRE_DATA",FETCH_WATCHLIST_DATA:"FETCH_WATCHLIST_DATA",FETCH_MOVIES_DATA:"FETCH_MOVIES_DATA",FETCH_SHOWS_DATA:"FETCH_SHOWS_DATA",FETCH_SEARCH_DATA:"FETCH_SEARCH_DATA",FETCH_FAV_DATA:"FETCH_FAV_DATA",FETCH_CHANNEL_DATA:"FETCH_CHANNEL_DATA",FETCH_ROWEIGHT_CHANNEL_DATA:"FETCH_ROWEIGHT_CHANNEL_DATA",IS_POPUP_MODAL:"IS_POPUP_MODAL",CINE_BACKGROUND:"CINE_BACKGROUND",CINE_WATCHLIST:"CINE_WATCHLIST"}},32415:function(e,t,r){"use strict";r.d(t,{Aq:function(){return ek},C8:function(){return es},DN:function(){return eu},DZ:function(){return eg},Do:function(){return U},EV:function(){return k},FM:function(){return X},FS:function(){return V},Fe:function(){return x},GJ:function(){return ed},Hi:function(){return e_},IM:function(){return eC},IW:function(){return em},Ki:function(){return L},LP:function(){return T},Ld:function(){return ey},MQ:function(){return ev},Mj:function(){return eh},Mz:function(){return R},O9:function(){return ex},Os:function(){return ew},Po:function(){return eE},Rm:function(){return eT},Rq:function(){return G},Sl:function(){return eI},VZ:function(){return M},WX:function(){return J},YW:function(){return eP},_i:function(){return B},ag:function(){return eS},bY:function(){return en},bf:function(){return er},ci:function(){return $},d8:function(){return A},dx:function(){return eR},eQ:function(){return eb},ej:function(){return C},ev:function(){return ec},ey:function(){return E},fo:function(){return K},iG:function(){return ea},jd:function(){return eO},jx:function(){return N},ln:function(){return Z},m1:function(){return eN},m5:function(){return q},md:function(){return eA},mn:function(){return w},mw:function(){return ef},nJ:function(){return I},p7:function(){return S},pe:function(){return _},pv:function(){return eo},qH:function(){return O},q_:function(){return eL},sQ:function(){return W},sj:function(){return el},tY:function(){return j},v9:function(){return D},vN:function(){return eD},vR:function(){return P},xN:function(){return F}});var n=r(11768),i=r(2568),o=r.n(i),a=r(87066),s=r(45312),l=r(45358),c=r(67294),u=r(11163),d=r.n(u),h=r(58239),p=r(46013),f=r(39115),m=r(48764).Buffer;r(34155);let g=r(81354),y=r(42474),v="aes-256-ctr",b="e85c33e2d7333ad30dce716633d3b775";b=y.createHash("sha256").update(String(b)).digest("base64").substr(0,32);let _=e=>{let t=e.slice(0,16);e=e.slice(16);let r=y.createDecipheriv(v,b,t);return m.concat([r.update(e),r.final()])},w=e=>{let t=document.getElementById("header-nav"),r=document.getElementById("separatorLine"),n=document.getElementById("footer"),i=document.getElementById("matchpoint_footer");e?(t&&(t.style.display="flex"),r&&(r.style.display="block"),n&&i&&(n.style.display="block",i.style.display="block")):(t&&(t.style.display="none"),r&&(r.style.display="none"),n&&i&&(n.style.display="none",i.style.display="none"))},S=e=>{let t="";return e&&(t=(t=(t=e.replaceAll(" ","-")).replaceAll("/","-")).replaceAll("#","-")),t},k=e=>{let t="";return e&&(t=e.replace(/,/g,", ")),t},x=e=>{let t="";return e&&(t=(t=e.split(",").map(e=>e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()).toString(",")).replace(/,/g,", ")),t},E=e=>Math.floor(e/36e5)+" HR "+Math.floor(e/6e4)%60+" MIN",T=e=>Math.floor(e/36e5)+"h "+Math.floor(e/6e4)%60+"m",A=(e,t,r)=>{window.localStorage.setItem(e,M(t))},C=e=>{{let t=window.localStorage.getItem(e);if(!t)return null;let r=j(t);return"true"===r||"false"===r?JSON.parse(r):r}},P=e=>
50{let t=Math.floor(e/3600),r=Math.floor((e%=3600)/60),n=Math.floor(e%60);return t=t.toString(),r=r.toString(),n=n.toString(),(t=t.padStart(2,"0"))+":"+(r=r.padStart(2,"0"))+":"+(n=n.padStart(2,"0"))},I=e=>{X()&&window.localStorage.removeItem(e)},O=async e=>{try{let t=await fetch(e);if(!t.ok)throw Error("Error! status: ".concat(t.status));let r=await t.blob();return new Promise(e=>{{let t=new window.FileReader;t.readAsDataURL(r),t.onloadend=()=>{let r=t.result;e(r)}}})}catch(e){console.log(e)}},N=(e,t)=>{let r=document.getElementById(e);r&&(t?r.classList.add("selected"):r.classList.remove("selected"))},D=(e,t)=>{for(var r=e.split(","),n=r[0].match(/:(.*?);/)[1],i=atob(r[1]),o=i.length,a=new Uint8Array(o);o--;)a[o]=i.charCodeAt(o);return new File([a],t,{type:n})},R=()=>{var e,t,r,n="Unknown",i="",o=window.screen,a=0,s=0;o.width&&(i+=""+(a=o.width?o.width:0)+" x "+(s=o.height?o.height:0));var l=navigator.appVersion,c=navigator.userAgent,u=navigator.appName,d=""+parseFloat(navigator.appVersion),h=parseInt(navigator.appVersion,10);-1!=(t=c.indexOf("Opera"))?(u="Opera",d=c.substring(t+6),-1!=(t=c.indexOf("Version"))&&(d=c.substring(t+8))):-1!=(t=c.indexOf("OPR"))?(u="Opera",d=c.substring(t+4),-1!=(t=c.indexOf("Version"))&&(d=c.substring(t+8))):-1!=(t=c.indexOf("MSIE"))?(u="Microsoft Internet Explorer",d=c.substring(t+5)):"Netscape"==u&&-1!=c.indexOf("Trident/")?(u="Microsoft Internet Explorer",d=c.substring(t+5),-1!=(t=c.indexOf("rv:"))&&(d=c.substring(t+3))):-1!=(t=c.indexOf("Chrome"))?(u="Chrome",d=c.substring(t+7)):-1!=(t=c.indexOf("Safari"))?(u="Safari",d=c.substring(t+7),-1!=(t=c.indexOf("Version"))&&(d=c.substring(t+8)),-1!=c.indexOf("CriOS")&&(u="Chrome")):-1!=(t=c.indexOf("Firefox"))?(u="Firefox",d=c.substring(t+8)):(e=c.lastIndexOf(" ")+1)<(t=c.lastIndexOf("/"))&&(u=c.substring(e,t),d=c.substring(t+1),u.toLowerCase()==u.toUpperCase()&&(u=navigator.appName)),-1!=(r=d.indexOf(";"))&&(d=d.substring(0,r)),-1!=(r=d.indexOf(" "))&&(d=d.substring(0,r)),-1!=(r=d.indexOf(")"))&&(d=d.substring(0,r)),isNaN(h=parseInt(""+d,10))&&(d=""+parseFloat(navigator.appVersion),h=parseInt(navigator.appVersion,10));var p=/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(l),f=!!navigator.cookieEnabled;void 0!==navigator.cookieEnabled||f||(document.cookie="testcookie",f=-1!=document.cookie.indexOf("testcookie"));var m=n,g=[{s:"Windows 3.11",r:/Win16/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows ME",r:/Windows ME/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var y in g){var v=g[y];if(v.r.test(c)){m=v.s;break}}var b=n;if(/Windows/.test(m))try{b=/Windows (.*)/.exec(m)[1],m="Windows"}catch(e){b="Windows"}if(/Linux/.test(m))try{b=/Linux (.* +)/.exec(c)[1],b=navigator.platform.split(" ")[1]}catch(e){b="Linux"}switch(m){case"Mac OS X":try{b=/Mac OS X (10[\.\_\d]+)/.exec(c)[1]}catch(e){b="Mac OS"}break;case"Android":try{b=/Android ([\.\_\d]+)/.exec(c)[1]}catch(e){b="Android"}break;case"iOS":try{b=(b=/OS (\d+)_(\d+)_?(\d+)?/.exec(l))[1]+"."+b[2]+"."+(0|b[3])}catch(e){b="iOS"}}return{screen:i,browser:u=u.toLowerCase(),browserVersion:d,browserMajorVersion:h,mobile:p,os:m=m.toLowerCase(),osVersion:b,cookies:f}},L=()=>{try{{let e=window.sessionStorage.sessId;if(!e){let t=new Date().getTime(),r=navigator.userAgent;e=o()(r+t),window.sessionStorage.sessId=e}return e}}catch(r){let e=new Date().getTime(),t=navigator.userAgent;return hash=o()(t+e)}},M=e=>{let t=e;("number"==typeof t||"boolean"==typeof t)&&(t=t.toString());
50try{return g.AES.encrypt(t,"d0e5a4cf1b791825734aadfe874b3ccf").toString()}catch(e){}},j=e=>g.AES.decrypt(e,"d0e5a4cf1b791825734aadfe874b3ccf").toString(g.enc.Utf8),B=(e,t)=>{var r;(null==e?void 0:null===(r=e.url)||void 0===r?void 0:r.length)>0?(0,a.Z)({method:"post",url:"/api/75a384057459ae8e69fb9a98a249b4f4",data:JSON.stringify(e.bdata),headers:{"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e.url),type:e.type?e.type:"",from:e.type?e.from:"",datatype:e.datatype?e.datatype:""}}).then(e=>{let r=_(e.data.data.data);t(JSON.parse(r=r.toString()))}).catch(e=>{t(e)}):t("No URL Found!!!")},U=(e,t)=>{if(!(null==e?void 0:e.url)){t("No URL Found!!!");return}(0,a.Z)({method:"post",url:"/api/upLoadImage",data:e.formdata,headers:{cauth:o()(s.appTag),"mp-tag":M(e.url),type:"uploadImage",from:e.from||""}}).then(e=>{t(JSON.parse(_(e.data.data.data).toString()))}).catch(e=>{t(e)})},F=(e,t)=>{var r;(null==e?void 0:null===(r=e.url)||void 0===r?void 0:r.length)>0?(0,a.Z)({method:"post",url:"/api/75a384057459ae8e69fb9a98a249b4f4",data:JSON.stringify(e.bdata),headers:{"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e.url),type:e.type?e.type:"",from:e.type?e.from:"",datatype:e.datatype?e.datatype:""}}).then(e=>{let r=_(e.data.data.data);t(JSON.parse(r=r.toString()))}).catch(e=>{t(e)}):t("No URL Found!!!")},H=(e,t)=>(0,a.Z)({method:"put",url:"/api/put",headers:{"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e),type:"rating"}}).then(e=>{t(e)}).catch(e=>{t(e)}),z=async(e,t,r,n)=>{let i=e;i=(i=i.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(t))).replace("__JTV__DEVICE__NUM__",r);try{await er(i,e=>{let t=e.data?e.data:e;"string"==typeof t&&(t=JSON.parse(t)),n(t)},"auth")}catch(e){console.log(e)}},$=e=>{var t;let r=e.ironCookie?e.ironCookie:"",n=e.ironLogin?e.ironLogin:"",i=e&&e.urls&&e.urls.gdprCountryURL?j(e.urls.gdprCountryURL):"",o=e&&e.urls&&e.urls.logURLV2?j(e.urls.logURLV2):"";if(!window.sessionStorage.getItem("sessionStarted")){window.sessionStorage.setItem("sessionStarted",!0);let e=1,t=Date.now(),n=e+"-"+(r&&r.device_num?r.device_num:"vir_web"+L())+"-"+t;window.sessionStorage.setItem("sessionID",n)}eC((null==r?void 0:null===(t=r.user)||void 0===t?void 0:t.status)?r.user.status:"");let a=eN({ironCookie:r||"",location_type:"page",event_location_id:"landing_screen",shelves:null});if(!window.sessionStorage.getItem("initCalled")){window.sessionStorage.setItem("initCalled",!0);let t={};t.regReportUrl=e&&e.urls&&e.urls.regReportUrl?j(e.urls.regReportUrl):"",t.sessionID=window.sessionStorage.getItem("sessionID")?window.sessionStorage.getItem("sessionID"):"",(0,l.Z)("INIT",{_reg:t,userInfo:r}),(0,h.qe)(o,"INIT",a)}if(n&&r.device_num){let t=r&&r.device_num?r.device_num:"",n=r&&r.user.email?r.user.email:"",c=r&&r.user.partner?r.user.partner:"",u=e&&e.urls&&e.urls.authenticationURL?j(e.urls.authenticationURL):"",d=e&&e.urls&&e.urls.partnerUserDetailsURL?j(e.urls.partnerUserDetailsURL):"";d=d.replace("__JTV__DEVICE__NUM__",t).replace("__JTV__DEVICE__CODE__",s.deviceCode).replace("__JTV__USER__TOKEN__",C("token_name")).replace("__JTV__APP__VER__",s.appVer).replace("__JTV__DEVICE__UDID__","");let p=e&&e.urls&&e.urls.profileDetailsURL?j(e.urls.profileDetailsURL):"";p=p.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(n)),n&&n.length>0&&"hoopla"!==c?z(u,n,t,function(t){if(t&&"success"==t.result){el(p,function(e){});let n=t.session,c=document.getElementById("userProfileImg");if(c&&(c.src=n&&n.user&&n.user.prof_img?n.user.prof_img:"/images/icons/user2.png"),!window.sessionStorage.getItem("launchCalled")){window.sessionStorage.setItem("launchCalled",!0);let t={};t.regReportUrl=e&&e.urls&&e.urls.regReportUrl?j(e.urls.regReportUrl):"",t.sessionID=window.sessionStorage.getItem("sessionID")?window.sessionStorage.getItem("sessionID"):"",!window.sessionStorage.getItem("authCalled")&&(window.sessionStorage.setItem("authCalled",!0),(0,l.Z)("LAUNCH",{_reg:t,userInfo:r}),(0,l.Z)("LOGIN",{_reg:t,userInfo:r}),(0,h.qe)(o,"LAUNCH",a),(0,h.qe)(o,"LOGIN",a),s.isPixelEnabled&&s.isGCPGAPixelEnabled&&es(i,e=>{var t,r,n;(0,f.go)("login",{auth_method:"email",platform:"web",device_type:s.devType,user_id:(null==e?void 0:null===(t=e.session)||void 0===t?void 0:t.user)?null==e?void 0:null===(n=e.session)||void 0===n?void 0:null===(r=n.user)||void 0===r?void 0:r.UId:"",user_country:e&&e.geo.country_code?e.geo.country_code:"",user_state:e&&e.geo.country_code?e.geo.state_code:"",user_city:e&&e.geo.country_code?e.geo.city:""})}),s.isVisitPageOn&&(0,h.qe)(o,"VISIT",a))}}else V(e,function(){},"something",o)}):z(d,n,t,function(t){if(t&&"success"==t.result){let n=t.session,c=document.getElementById("userProfileImg");if(c&&(c.src=n&&n.user&&n.user.prof_img?n.user.prof_img:"/images/icons/user2.png"),!window.sessionStorage.getItem("launchCalled")){window.sessionStorage.setItem("launchCalled",!0);let t={};t.regReportUrl=e&&e.urls&&e.urls.regReportUrl?j(e.urls.regReportUrl):"",t.sessionID=window.sessionStorage.getItem("sessionID")?window.sessionStorage.getItem("sessionID"):"",!window.sessionStorage.getItem("authCalled")&&(window.sessionStorage.setItem("authCalled",!0),(0,l.Z)("LAUNCH",{_reg:t,userInfo:r}),(0,l.Z)("LOGIN",{_reg:t,userInfo:r}),(0,h.qe)(o,"LAUNCH",a),(0,h.qe)(o,"LOGIN",a),s.isPixelEnabled&&s.isGCPGAPixelEnabled&&es(i,e=>{var t,r,n;(0,f.go)("login",{auth_method:"email",platform:"web",device_type:s.devType,user_id:(null==e?void 0:null===(t=e.session)||void 0===t?void 0:t.user)?null==e?void 0:null===(n=e.session)||void 0===n?void 0:null===(r=n.user)||void 0===r?void 0:r.UId:"",user_country:e&&e.geo.country_code?e.geo.country_code:"",user_state:e&&e.geo.country_code?e.geo.state_code:"",user_city:e&&e.geo.country_code?e.geo.city:""})}),s.isVisitPageOn&&(0,h.qe)(o,"VISIT",a))}}else V(e,function(){},"something",o)})}else if(!window.sessionStorage.getItem("launchCalled")){window.sessionStorage.setItem("launchCalled",!0);let t={};t.regReportUrl=e&&e.urls&&e.urls.regReportUrl?j(e.urls.regReportUrl):"",t.sessionID=window.sessionStorage.getItem("sessionID")?window.sessionStorage.getItem("sessionID"):"",(0,l.Z)("LAUNCH",{_reg:t,userInfo:r}),(0,h.qe)(o,"LAUNCH",a),s.isVisitPageOn&&(0,h.qe)(o,"VISIT",a)}};function q(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var r=e[t],i=r.indexOf("="),o=i>-1?r.substr(0,i):r;("initCalled"!==o||"launchCalled"!==o)&&o&&n.ZP.remove(o,{path:"/"})}}function W(){for(let[e,t]of Object.entries(window.localStorage))"seqId"!==e&&window.localStorage.removeItem(e)}async function V(e,t,r,n){let i=e.ironCookie,o=e&&e.urls&&e.urls.logoutURL?j(e.urls.logoutURL):"";o=(o=(o=o.replace("__JTV__DEVICE__TYPE__",s.devType)).replace("__JTV__DEVICE__NUM__",i&&i.device_num?i.device_num:"__JTV__DEVICE__NUM__")).replace("__JTV__SUBSCRIBER__ID__",i&&i.user&&i.user.email?encodeURIComponent(i.user.email):"__JTV__SUBSCRIBER__ID__"),(0,h.qe)(n,"LOGOUT"),console.log("COMING----"),window.sessionStorage.removeItem("sessionID"),window.sessionStorage.removeItem("sessionStarted");try{await er(o,e=>{("headerCompound"===r||"deleteAcc"===r)&&(q(),W(),I("user_stat"),I("user_stat_data")),setTimeout(()=>{"headerCompound"===r&&(d().push({pathname:"/login"}),"account"===C("redirectpath")?A("redirectpath","account"):A("redirectpath","home"),t(!1)),"something"===r&&(d().push("/home"),A("redirectpath","home")),"initialPage"===r&&(A("redirectpath",d().asPath.substring(1)),d().push({pathname:"/login"})),"deleteAcc"===r&&t("logout")},2e3)},"logout",!0)}catch(e){}}let G=async(e,t,r)=>{let n=t.item_id,i=t.type,o=t.cust,a=j(e.urls.ratingUpdate?e.urls.ratingUpdate:"");a=(a=(a=(a=(a=a.replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(e.ironCookie.user.email))).replace("__JTV__ASSET__ID__",n)).replace("__JTV__ASSET__TYPE__",i)).replace("__JTV__RATE__VALUE__",r)).replace("__JTV__CUST__TYPE__",o);try{await H(a,e=>{e&&e.data&&e.status})}catch(e){console.log(e)}},K=e=>e,Z=e=>{let t=new Date(e),r=t.getFullYear(),n=t.getMonth()+1,i=t.getDate();return Y(n)+" "+(i<10?"0"+i:i)+" "+r},Y=e=>{switch(e){case 1:return"January";case 2:return"February";case 3:return"March";case 4:return"April";case 5:return"May";case 6:return"June";case 7:return"July";case 8:return"August";case 9:return"September";case 10:return"October";case 11:return"November";default:return"December"}},J=e=>new Date(e).toLocaleDateString({},{timeZone:"UTC",month:"long",day:"2-digit",year:"numeric"}),X=()=>!0,Q=()=>{var e=new Date;return e.setTime(e.getTime()+1e3*s.cacheTimeout),e},ee=()=>"undefined"!=typeof InstallTrigger,et=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e)};if(!r.cauth||!r["mp-tag"])return console.warn("getSecHeaders: Failed to generate basic headers"),null;let n="authenticated"===t?sessionStorage.getItem("proxy-session-token"):null;if("unauthenticated"===t&&sessionStorage.getItem("proxy-session-token")&&(console.log("getSecHeaders: \uD83E\uDDF9 Cleaning up stale session token"),sessionStorage.removeItem("proxy-session-token")),n)try{let e=(0,p.P)(n,r.cauth,r["mp-tag"]);return{...r,...e}}catch(e){console.error("getSecHeaders: Failed to generate security headers",e)}return r},er=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=et(e,o);if(!l){console.error("fetcherGet: Failed to generate headers"),t({error:"Failed to generate request headers"});return}
50let c=n?{...l,"Cache-Control":ee()?"Expires: ".concat(Q()):"max-age=".concat(s.cacheTimeout),type:r,data:i||""}:{...l,type:r};a.Z.get("/api/get",{headers:c}).then(e=>{let r=_(e.data.data.data);t(JSON.parse(r=r.toString()))}).catch(e=>{t(e)})},en=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4?arguments[4]:void 0,l=n?{"Content-Type":"application/json","Cache-Control":ee()?"Expires: ".concat(Q()):"max-age=".concat(s.cacheTimeout),cauth:o()(s.appTag),type:r,"mp-tag":M(e),data:i||""}:{"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e),type:r};a.Z.get("/api/getProfileSelection",{headers:l}).then(e=>{let r=_(e.data.data.data);t(JSON.parse(r=r.toString()))}).catch(e=>{t(e)})},ei=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4?arguments[4]:void 0,l=n?{"Content-Type":"application/json","Cache-Control":ee()?"Expires: ".concat(Q()):"max-age=".concat(s.cacheTimeout),cauth:o()(s.appTag),type:r,"mp-tag":M(e),data:i||""}:{"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e),type:r};a.Z.get("/api/get",{headers:l}).then(e=>{let r=_(e.data.data.data);t(JSON.parse(r=r.toString()))}).catch(e=>{t(e)})},eo=(e,t,r)=>{let n=et(e,r);if(!n){console.error("fetcherGet: Failed to generate headers"),t({error:"Failed to generate request headers"});return}a.Z.get("/api/get",{headers:n}).then(e=>{let r=_(e.data.data.data),n=JSON.parse(r=r.toString());return t&&t(n),n}).catch(e=>{console.log(e,"GET FETCHER ERROR")})},ea=(e,t)=>a.Z.get("/api/get",{headers:{"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e)}}).then(e=>{let r=_(e.data.data.data),n=JSON.parse(r=r.toString());return t&&t(n),n}).catch(e=>{console.log(e,"GET FETCHER ERROR")}),es=async(e,t)=>{try{let r=et(e,null);if(!r){console.error("fetcherGet: Failed to generate headers"),callback({error:"Failed to generate request headers"});return}let n={...r};a.Z.get("/api/4567876545678765",{headers:n}).then(e=>{let r=_(e.data.data.data);r=r.toString();let n=JSON.parse(r);t&&t(n)}).catch(e=>{console.log(e,"GET FETCHER ERROR")})}catch(e){console.log(e)}},el=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=et(e,r);if(!n){console.error("getProfileDetails: Failed to generate headers"),t({error:"Failed to generate request headers"});return}(0,a.Z)({method:"get",url:"/api/getProfileDetails",timeout:6e4,headers:{...n,"Cache-Control":ee()?"Expires: ".concat(Q()):"max-age=".concat(s.cacheTimeout)}}).then(e=>{let r=_(e.data.data.data);t(JSON.parse(r=r.toString()))}).catch(e=>{t(e)})},ec=(e,t)=>{let r=600;r=window.innerWidth&&window.innerWidth>600?window.innerWidth/2:window.innerWidth;let n={width:300,height:200};if(e){let i=.2*r,o=0;t?(o=e.height/e.width*i,n.width=i):((i=(o=200)*e.width/e.height)>r/2&&(o=ep(e,r/2)),n.width=i>r/2?r/2:i),n.height=o}return n},eu=e=>{let t=100,r={width:150,height:50};if(e){let n=t,i=0;i=e.height/e.width*n,r.width=n,r.height=i}return r},ed=e=>{let t=Math.floor(e/1e3),r=Math.floor(t/60),n=Math.floor(r/60);return t%=60,r%=60,n%=24,n=n.toString(),r=r.toString(),t=t.toString(),(n>0?n+"h ":"")+((r=r.padStart(2,"0"))>0?r+"m ":"")},eh=(e,t)=>{let r=500;r=window.innerWidth;let n={width:300,height:200};if(e){let i=.2*r,o=0;t?(o=e.height/e.width*i,n.width=i):((i=(o=200)*e.width/e.height)>r/2&&(o=ep(e,r/2)),n.width=i>r/2?r/2:i),n.height=o}return n},ep=(e,t)=>e.height/e.width*t,ef=async(e,t,r,n,i)=>{if("rental"==e.subscriber_type&&e.sub_channel&&"row8"==e.sub_channel.find(e=>"row8"==e))try{B(t,t=>{try{if(A("Row8ValidaUserRes",t.token),"success"==t.result){let o=e.item_id;o=o.replace("row8_",""),t.title_list&&void 0!==t.title_list[o]?i("rented"):(A("redirectpath",r.asPath),n?i(t):r.push({pathname:"/rent",query:{item_id:e.item_id,title:S(e.title),rtype:"row8"}},void 0,{shallow:!0}))}else i(t)}catch(e){console.log(e)}})}catch(e){console.log(e)}else n?i("rented"):r.push({pathname:"/rent",query:{item_id:e.item_id,title:S(e.title),rtype:"rental"}},void 0,{shallow:!0})},em=e=>{if(!e)return"";let t=new Date(e),r=Math.abs(new Date().valueOf()-t.valueOf())/864e5,n=r%1*24,i=n%1*60,o=i%1*60;return([r,n,i,o]=[Math.floor(r),Math.floor(n),Math.floor(i),Math.floor(o)],r>=1)?"Expires in "+(r>1?r+" days ":r+" day ")+(n>0?n+" hours":""):r<1?n<1&&i>=5?"Expires in "+i+" minutes":n<1&&i<=5?" Expires in few minutes":"Expires in "+n+" hours "+i+" minutes":void 0},eg=(e,t,r,n)=>{try{(0,a.Z)({method:r,url:t,data:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(e=>{console.log("resp lock___________"),console.log(e),n(e)}).catch(e=>{console.log("resp lock___________",e)})}catch(e){console.log(e)}},ey=X()?c.useLayoutEffect:c.useEffect,ev=()=>{let e=L(),t="vir_web"+e,r=1,n=Math.floor(Date.now()/1e3);return{sessionId:r+"-"+t+"-"+n,uniqueId:e,deviceId:t,webPlatformId:r,currentTimeInMS:n}},eb=e=>e.substring(1),e_=e=>"s"==e.charAt(4)?e:"/images/no_epg_program_image.png",ew=e=>{let t="",r="",n="",i="__$$__",o="",a="";return e.channelName&&(a=e.channelName.replace("cineverse__","")),"shows"==e.dataFrom||"movies"==e.dataFrom||"home"==e.dataFrom?(t=e.dataFrom?e.dataFrom:"",r=e.shelfName?i+e.shelfName:""):"genres"==e.callFrom?(t=e.callFrom,n=e.currGenre?i+e.currGenre.name:"",r=""):"moreLikeThis"==e.callFrom?(t="JTV_RECOMMENDED",r=""):"watchlist"==e.callFrom&&("mylibrary"==e.dataFor||"continuewatch"==e.dataFor||"rowEighttab"==e.dataFor)?(t=e.callFrom?e.callFrom:"",r="rowEighttab"==e.dataFor?e.dataFor?i+"rented":"":e.dataFor?i+e.dataFor:""):e.router&&e.router.query&&e.router.query["parent-shelf"]&&e.router.query["sub-shelf"]&&e.router.query.called_from?(t=(e.router.query.called_from?e.router.query.called_from:e.dataComeFrom)+i+e.router.query["parent-shelf"],r=i+e.router.query["sub-shelf"]):"channel"==e.dataFrom?(t=a?"home"+i+a:"",r=e.shelfName?i+e.shelfName:""):"search"==e.dataFrom||"RECO_SEARCH"==e.dataFrom?(t=e.dataFrom,r=""):"player"==e.redirectFrom&&"episode"==e.assetType||"details_page"==e.comingFrom?(t="JTV_RECOMMENDED",r=""):e.catData&&"details"==e.redirectFrom&&!e.dataFrom?(t="details",r=i+e.catData.title):"home"==e.callFrom&&(t="home",r=e.catData.name?i+e.catData.name:""),o=t+n+r},eS=(e,t)=>{(0,a.Z)({method:"post",url:"/api/delete",headers:{"Content-Type":"application/json",cauth:o()(s.appTag),"mp-tag":M(e.url)}}).then(e=>{t(e)}).catch(e=>{t(e)})},ek=(e,t)=>Math.round((t-e)/864e5),ex=()=>{let e=navigator.userAgent+"___"+Date.now();
50return g.AES.encrypt(e,"d0e5a4cf1b791825734aadfe874b3ccf").toString()};function eE(e){let t={};for(let r=0;r<e.length;r++)e[r].hasOwnProperty("streaming_service_id")&&e[r].streaming_service_id&&(t[e[r].streaming_service_id]=e[r]);return t}let eT=(e,t,r,n,i,o)=>{let a=j(t||"").replace("__JTV__SUBSCRIBER__ID__",e);if(a)try{ei(a,e=>{r.dispatch({type:n.FETCH_ROWEIGHT_CHANNEL_DATA,payload:e||[]}),i(e)},"",!1,"")}catch(e){i("Error fetching rowEightURL:",a,e)}},eA=(e,t,r,n,i,o,a)=>{let l=[],c=[],u={},d=[];if(!e||!t)return null;try{let h=j(t);h&&(r&&n&&(h=h.replace("__JTV__PARTNER__NAME__",n)),ei(h,t=>{if(t&&(l=t,i.dispatch({type:o.FETCH_WATCHLIST_DATA,payload:t||[]})),l&&Object.keys(l).length>0&&(c=l.subCategories),null==c||c.map((t,r)=>{if("JTV_MY_FAV"==t.type){let n=t?t.url:"";(n=(n=n.replace("__JTV__DEVICE__CODE__",s.devType)).replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(e)))&&(u.url=n,u.id=r)}}),u.url&&Object.keys(u.url).length>0)try{er(u.url,e=>{e&&(d=e,i.dispatch({type:o.FETCH_FAV_DATA,payload:d||[]})),a(d,l)},"",!1)}catch(e){console.log(e),console.log("watchlist shelf URL error ",new Date)}},"",!1))}catch(e){console.log(e)}},eC=e=>{let t="free";switch(e){case s.userSubscribed:case"active":t="paid";break;case"registered":case 1:t="registered";break;default:t="free"}return t},eP=e=>{if(e)return g.AES.encrypt(e,"d0e5a4cf1b791825734aadfe874b3ccf").toString()},eI=e=>{if(e.ironLogin)try{let t=JSON.parse(C("loggedinUser")),r=t&&t.username?t.username:"",n=e&&e.urls&&e.urls.logURLV2?j(e.urls.logURLV2):"",i=e&&e.ironCookie&&e.ironCookie.user&&e.ironCookie.user.email?e.ironCookie.user.email:"";r!=i&&setTimeout(()=>{V(e,function(){},"headerCompound",n)},100)}catch(t){setTimeout(()=>{V(e,function(){},"headerCompound",logURLV2)},100)}},eO=(e,t,r,n,i)=>{console.log("_url................",e=(e=e.replace("__JTV__SUB__UID__",r)).replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(n))),e&&e.length>0&&er(e,e=>{i(e)},"",!1,null,t)},eN=e=>{var t,r,n,i,o,a,l,c,u,d,h,p,f,m,g,y,v,b,_,w,S,k,x,E,T;let A=eC((null==e?void 0:null===(r=e.ironCookie)||void 0===r?void 0:null===(t=r.user)||void 0===t?void 0:t.status)?null==e?void 0:null===(i=e.ironCookie)||void 0===i?void 0:null===(n=i.user)||void 0===n?void 0:n.status:"");s.isMultiProfileActive&&(null==e||null===(T=e.ironCookie)||void 0===T||null===(E=T.user)||void 0===E||null===(x=E.profiles)||void 0===x||x.map((e,t)=>{"default"===e.type&&(C=e.id,P=e.age_rating,I=e.profile_name)}));let C="",P="",I="";return{common:{user_id:(null==e?void 0:null===(a=e.ironCookie)||void 0===a?void 0:null===(o=a.user)||void 0===o?void 0:o.email)?null==e?void 0:null===(c=e.ironCookie)||void 0===c?void 0:null===(l=c.user)||void 0===l?void 0:l.email:(null==e?void 0:e.email)?e.email:"",user_category:A,profile_id:(null==e?void 0:null===(u=e.selectedProfile)||void 0===u?void 0:u.id)?null==e?void 0:null===(d=e.selectedProfile)||void 0===d?void 0:d.id:C||"",profile_age_rating:(null==e?void 0:null===(h=e.selectedProfile)||void 0===h?void 0:h.age_rating)?null==e?void 0:null===(p=e.selectedProfile)||void 0===p?void 0:p.age_rating:P||"",profile_name:(null==e?void 0:null===(f=e.selectedProfile)||void 0===f?void 0:f.profile_name)?null==e?void 0:null===(m=e.selectedProfile)||void 0===m?void 0:m.profile_name:I||"",deviceId:(null==e?void 0:null===(g=e.ironCookie)||void 0===g?void 0:g.device_num)?null==e?void 0:null===(y=e.ironCookie)||void 0===y?void 0:y.device_num:L()?"vir_web"+L():""},misc:{location_type:e.location_type?e.location_type:"",event_location_id:e.event_location_id?e.event_location_id:"",shelves:e.shelves?e.shelves:null},registration_fail:{registration_fail_error_message:(null==e?void 0:null===(v=e.registration_data)||void 0===v?void 0:v.message)?e.registration_data.message:(null==e?void 0:null===(b=e.registration_data)||void 0===b?void 0:b.error)?e.registration_data.error:"",registration_fail_error_code:(null==e?void 0:null===(_=e.registration_data)||void 0===_?void 0:_.code)?e.registration_data.code:""},login_fail:{login_fail_error_code:(null==e?void 0:null===(w=e.login_data)||void 0===w?void 0:w.err_code)?e.login_data.err_code:"",login_fail_error_message:(null==e?void 0:null===(S=e.login_data)||void 0===S?void 0:S.message)?e.login_data.message:(null==e?void 0:null===(k=e.login_data)||void 0===k?void 0:k.error)?e.login_data.error:""}}},eD=e=>{var t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,y,v,b,_,w,S,k,x,E,T;let{props:A,centAmt:P,Period:I,userSubTypeValue:O,error_code:N,error_message:D}=e,R={common:{user_id:(null==A?void 0:null===(r=A.ironCookie)||void 0===r?void 0:null===(t=r.user)||void 0===t?void 0:t.email)||"",user_category:O,profile_id:(null==A?void 0:null===(n=A.selectedProfile)||void 0===n?void 0:n.id)||"",profile_age_rating:(null==A?void 0:null===(i=A.selectedProfile)||void 0===i?void 0:i.age_rating)||"",profile_name:(null==A?void 0:null===(o=A.selectedProfile)||void 0===o?void 0:o.profile_name)||""},purchase:{product_id:(null==A?void 0:A.planid)||"",product_type:"subscription",price:P,currency:"USD",offer_token:(null==A?void 0:A.promoCode)||"",period:I,direct_deduction:P,error_code:N||"",error_message:D||""}};return(null==A?void 0:A.paytype)==="rent"&&(R.player={asset_id:(null==A?void 0:null===(a=A.itemDetails)||void 0===a?void 0:a.item_id)||"",asset_title:(null==A?void 0:null===(s=A.itemDetails)||void 0===s?void 0:s.title)||"",parent_id:(null==A?void 0:null===(u=A.itemDetails)||void 0===u?void 0:null===(c=u.details)||void 0===c?void 0:null===(l=c.series_details)||void 0===l?void 0:l.item_id)||"",parent_title:(null==A?void 0:null===(p=A.itemDetails)||void 0===p?void 0:null===(h=p.details)||void 0===h?void 0:null===(d=h.series_details)||void 0===d?void 0:d.title)||"",runtime:(null==A?void 0:null===(m=A.itemDetails)||void 0===m?void 0:null===(f=m.details)||void 0===f?void 0:f.duration)||"",duration:(null==A?void 0:null===(y=A.itemDetails)||void 0===y?void 0:null===(g=y.details)||void 0===g?void 0:g.duration)||"",asset_type:(null==A?void 0:null===(v=A.itemDetails)||void 0===v?void 0:v.type)||"",subscriber_type:(null==A?void 0:null===(b=A.itemDetails)||void 0===b?void 0:b.subscriber_type)||"",content_type:(null==A?void 0:null===(_=A.itemDetails)||void 0===_?void 0:_.content_type)||"",stream_type:(null==A?void 0:null===(w=A.itemDetails)||void 0===w?void 0:w.streamtype)||"",sub_channel:(null==A?void 0:null===(S=A.itemDetails)||void 0===S?void 0:S.sub_channel)||[],navigation_category:C("navCat"),season:(null==A?void 0:null===(x=A.itemDetails)||void 0===x?void 0:null===(k=x.details)||void 0===k?void 0:k.season)||"",episode:(null==A?void 0:null===(T=A.itemDetails)||void 0===T?void 0:null===(E=T.details)||void 0===E?void 0:E.episode)||""}),R},eR=e=>{var t,r,n,i,o,a,s,l,c,u,d,h,p;let{props:f,userSubTypeValue:m,catdata:g}=e;return{common:{user_id:(null==f?void 0:null===(r=f.ironCookie)||void 0===r?void 0:null===(t=r.user)||void 0===t?void 0:t.email)||"",user_category:m,profile_id:(null==f?void 0:null===(n=f.selectedProfile)||void 0===n?void 0:n.id)||"",profile_age_rating:(null==f?void 0:null===(i=f.selectedProfile)||void 0===i?void 0:i.age_rating)||"",profile_name:(null==f?void 0:null===(o=f.selectedProfile)||void 0===o?void 0:o.profile_name)||""},player:{asset_id:(null==g?void 0:g.item_id)||"",asset_title:(null==g?void 0:g.title)||"",parent_id:(null==g?void 0:null===(s=g.details)||void 0===s?void 0:null===(a=s.series_details)||void 0===a?void 0:a.item_id)||"",parent_title:(null==g?void 0:null===(c=g.details)||void 0===c?void 0:null===(l=c.series_details)||void 0===l?void 0:l.title)||"",runtime:(null==g?void 0:null===(u=g.details)||void 0===u?void 0:u.duration)||"",duration:(null==g?void 0:null===(d=g.details)||void 0===d?void 0:d.duration)||"",asset_type:(null==g?void 0:g.type)||"",subscriber_type:(null==g?void 0:g.subscriber_type)||"",content_type:(null==g?void 0:g.content_type)||"",stream_type:(null==g?void 0:g.streamtype)||"",sub_channel:(null==g?void 0:g.sub_channel)||[],navigation_category:C("navCat"),season:(null==g?void 0:null===(h=g.details)||void 0===h?void 0:h.season)||"",episode:(null==g?void 0:null===(p=g.details)||void 0===p?void 0:p.episode)||""}}},eL=e=>new Promise(t=>{er(e,e=>{t((null==e?void 0:e.plan)||"NO_SUB")})})},74136:function(e,t,r){"use strict";r.d(t,{N1:function(){return ec},y9:function(){return ed},oO:function(){return el},ic:function(){return eu}});let{entries:n,setPrototypeOf:i,isFrozen:o,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object,{freeze:l,seal:c,create:u}=Object,{apply:d,construct:h}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t,r){return e.apply(t,r)}
50),h||(h=function(e,t){return new e(...t)});let p=A(Array.prototype.forEach),f=A(Array.prototype.lastIndexOf),m=A(Array.prototype.pop),g=A(Array.prototype.push),y=A(Array.prototype.splice),v=A(String.prototype.toLowerCase),b=A(String.prototype.toString),_=A(String.prototype.match),w=A(String.prototype.replace),S=A(String.prototype.indexOf),k=A(String.prototype.trim),x=A(Object.prototype.hasOwnProperty),E=A(RegExp.prototype.test),T=C(TypeError);function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return d(e,t,n)}}function C(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(e,r)}}function P(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;i&&i(e,null);let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){let e=r(i);e!==i&&(o(t)||(t[n]=e),i=e)}e[i]=!0}return e}function I(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function O(e){let t=u(null);for(let[r,i]of n(e))x(e,r)&&(Array.isArray(i)?t[r]=I(i):i&&"object"==typeof i&&i.constructor===Object?t[r]=O(i):t[r]=i);return t}function N(e,t){for(;null!==e;){let r=s(e,t);if(r){if(r.get)return A(r.get);if("function"==typeof r.value)return A(r.value)}e=a(e)}return function(){return null}}let D=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),B=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=l(["#text"]),F=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
50spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=c(/<%[\w\W]*|[\w\W]*%>/gm),V=c(/\$\{[\w\W]*/gm),G=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=c(/^aria-[\-\w]+$/),Z=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=c(/^(?:\w+script|data):/i),J=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=c(/^html$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:c(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:G,DOCTYPE_NAME:X,ERB_EXPR:W,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:q,TMPLIT_EXPR:V});let ee={element:1,text:3,progressingInstruction:7,comment:8,document:9},et=function(){return"undefined"==typeof window?null:window},er=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},en=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ei(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et(),r=e=>ei(e);if(r.version="3.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==ee.document||!t.Element)return r.isSupported=!1,r;let{document:i}=t,o=i,a=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:d,Element:h,NodeFilter:A,NamedNodeMap:C=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:I,DOMParser:q,trustedTypes:W}=t,V=h.prototype,G=N(V,"cloneNode"),K=N(V,"remove"),Y=N(V,"nextSibling"),J=N(V,"childNodes"),eo=N(V,"parentNode");if("function"==typeof c){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ea="",{implementation:es,createNodeIterator:el,createDocumentFragment:ec,getElementsByTagName:eu}=i,{importNode:ed}=o,eh=en();r.isSupported="function"==typeof n&&"function"==typeof eo&&es&&void 0!==es.createHTMLDocument;let{MUSTACHE_EXPR:ep,ERB_EXPR:ef,TMPLIT_EXPR:em,DATA_ATTR:eg,ARIA_ATTR:ey,IS_SCRIPT_OR_DATA:ev,ATTR_WHITESPACE:eb,CUSTOM_ELEMENT:e_}=Q,{IS_ALLOWED_URI:ew}=Q,eS=null,ek=P({},[...D,...R,...L,...j,...U]),ex=null,eE=P({},[...F,...H,...z,...$]),eT=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eA=null,eC=null,eP=!0,eI=!0,eO=!1,eN=!0,eD=!1,eR=!0,eL=!1,eM=!1,ej=!1,eB=!1,eU=!1,eF=!1,eH=!0,ez=!1,e$="user-content-",eq=!0,eW=!1,eV={},eG=null,eK=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eZ=null,eY=P({},["audio","video","img","source","image","track"]),eJ=null,eX=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eQ="http://www.w3.org/1998/Math/MathML",e0="http://www.w3.org/2000/svg",e1="http://www.w3.org/1999/xhtml",e2=e1,e4=!1,e3=null,e6=P({},[eQ,e0,e1],b),e5=P({},["mi","mo","mn","ms","mtext"]),e8=P({},["annotation-xml"]),e7=P({},["title","style","font","a","script"]),e9=null,te=["application/xhtml+xml","text/html"],tt="text/html",tr=null,tn=null,ti=i.createElement("form"),to=function(e){return e instanceof RegExp||e instanceof Function},ta=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!tn||tn!==t){if(t&&"object"==typeof t||(t={}
50),t=O(t),tr="application/xhtml+xml"===(e9=-1===te.indexOf(t.PARSER_MEDIA_TYPE)?tt:t.PARSER_MEDIA_TYPE)?b:v,eS=x(t,"ALLOWED_TAGS")?P({},t.ALLOWED_TAGS,tr):ek,ex=x(t,"ALLOWED_ATTR")?P({},t.ALLOWED_ATTR,tr):eE,e3=x(t,"ALLOWED_NAMESPACES")?P({},t.ALLOWED_NAMESPACES,b):e6,eJ=x(t,"ADD_URI_SAFE_ATTR")?P(O(eX),t.ADD_URI_SAFE_ATTR,tr):eX,eZ=x(t,"ADD_DATA_URI_TAGS")?P(O(eY),t.ADD_DATA_URI_TAGS,tr):eY,eG=x(t,"FORBID_CONTENTS")?P({},t.FORBID_CONTENTS,tr):eK,eA=x(t,"FORBID_TAGS")?P({},t.FORBID_TAGS,tr):O({}),eC=x(t,"FORBID_ATTR")?P({},t.FORBID_ATTR,tr):O({}),eV=!!x(t,"USE_PROFILES")&&t.USE_PROFILES,eP=!1!==t.ALLOW_ARIA_ATTR,eI=!1!==t.ALLOW_DATA_ATTR,eO=t.ALLOW_UNKNOWN_PROTOCOLS||!1,eN=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,eD=t.SAFE_FOR_TEMPLATES||!1,eR=!1!==t.SAFE_FOR_XML,eL=t.WHOLE_DOCUMENT||!1,eB=t.RETURN_DOM||!1,eU=t.RETURN_DOM_FRAGMENT||!1,eF=t.RETURN_TRUSTED_TYPE||!1,ej=t.FORCE_BODY||!1,eH=!1!==t.SANITIZE_DOM,ez=t.SANITIZE_NAMED_PROPS||!1,eq=!1!==t.KEEP_CONTENT,eW=t.IN_PLACE||!1,ew=t.ALLOWED_URI_REGEXP||Z,e2=t.NAMESPACE||e1,e5=t.MATHML_TEXT_INTEGRATION_POINTS||e5,e8=t.HTML_INTEGRATION_POINTS||e8,eT=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&to(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eT.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&to(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eT.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eT.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eD&&(eI=!1),eU&&(eB=!0),eV&&(eS=P({},U),ex=[],!0===eV.html&&(P(eS,D),P(ex,F)),!0===eV.svg&&(P(eS,R),P(ex,H),P(ex,$)),!0===eV.svgFilters&&(P(eS,L),P(ex,H),P(ex,$)),!0===eV.mathMl&&(P(eS,j),P(ex,z),P(ex,$))),t.ADD_TAGS&&(eS===ek&&(eS=O(eS)),P(eS,t.ADD_TAGS,tr)),t.ADD_ATTR&&(ex===eE&&(ex=O(ex)),P(ex,t.ADD_ATTR,tr)),t.ADD_URI_SAFE_ATTR&&P(eJ,t.ADD_URI_SAFE_ATTR,tr),t.FORBID_CONTENTS&&(eG===eK&&(eG=O(eG)),P(eG,t.FORBID_CONTENTS,tr)),eq&&(eS["#text"]=!0),eL&&P(eS,["html","head","body"]),eS.table&&(P(eS,["tbody"]),delete eA.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ea=(e=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===e&&(e=er(W,a)),null!==e&&"string"==typeof ea&&(ea=e.createHTML(""));l&&l(t),tn=t}},ts=P({},[...R,...L,...M]),tl=P({},[...j,...B]),tc=function(e){let t=eo(e);t&&t.tagName||(t={namespaceURI:e2,tagName:"template"});let r=v(e.tagName),n=v(t.tagName);return!!e3[e.namespaceURI]&&(e.namespaceURI===e0?t.namespaceURI===e1?"svg"===r:t.namespaceURI===eQ?"svg"===r&&("annotation-xml"===n||e5[n]):!!ts[r]:e.namespaceURI===eQ?t.namespaceURI===e1?"math"===r:t.namespaceURI===e0?"math"===r&&e8[n]:!!tl[r]:e.namespaceURI===e1?(t.namespaceURI!==e0||!!e8[n])&&(t.namespaceURI!==eQ||!!e5[n])&&!tl[r]&&(e7[r]||!ts[r]):"application/xhtml+xml"===e9&&!!e3[e.namespaceURI])},tu=function(e){g(r.removed,{element:e});try{eo(e).removeChild(e)}catch(t){K(e)}},td=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e){if(eB||eU)try{tu(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},th=function(t){let r=null,n=null;if(ej)t="<remove></remove>"+t;else{let e=_(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===e9&&e2===e1&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let o=e?e.createHTML(t):t;if(e2===e1)try{r=new q().parseFromString(o,e9)}catch(e){}if(!r||!r.documentElement){r=es.createDocument(e2,"template",null);try{r.documentElement.innerHTML=e4?ea:o}catch(e){}}let a=r.body||r.documentElement;return(t&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),e2===e1)?eu.call(r,eL?"html":"body")[0]:eL?r.documentElement:a},tp=function(e){return el.call(e.ownerDocument||e,e,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},tf=function(e){return e instanceof I&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof C)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tm=function(e){return"function"==typeof d&&e instanceof d};function tg(e,t,n){p(e,e=>{e.call(r,t,n,tn)})}
50let ty=function(e){let t=null;if(tg(eh.beforeSanitizeElements,e,null),tf(e))return tu(e),!0;let n=tr(e.nodeName);if(tg(eh.uponSanitizeElement,e,{tagName:n,allowedTags:eS}),eR&&e.hasChildNodes()&&!tm(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent)||e.nodeType===ee.progressingInstruction||eR&&e.nodeType===ee.comment&&E(/<[/\w]/g,e.data))return tu(e),!0;if(!eS[n]||eA[n]){if(!eA[n]&&tb(n)&&(eT.tagNameCheck instanceof RegExp&&E(eT.tagNameCheck,n)||eT.tagNameCheck instanceof Function&&eT.tagNameCheck(n)))return!1;if(eq&&!eG[n]){let t=eo(e)||e.parentNode,r=J(e)||e.childNodes;if(r&&t){let n=r.length;for(let i=n-1;i>=0;--i){let n=G(r[i],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,Y(e))}}}return tu(e),!0}return e instanceof h&&!tc(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&E(/<\/no(script|embed|frames)/i,e.innerHTML)?(tu(e),!0):(eD&&e.nodeType===ee.text&&(t=e.textContent,p([ep,ef,em],e=>{t=w(t,e," ")}),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),tg(eh.afterSanitizeElements,e,null),!1)},tv=function(e,t,r){if(eH&&("id"===t||"name"===t)&&(r in i||r in ti))return!1;if(eI&&!eC[t]&&E(eg,t));else if(eP&&E(ey,t));else if(!ex[t]||eC[t]){if(!(tb(e)&&(eT.tagNameCheck instanceof RegExp&&E(eT.tagNameCheck,e)||eT.tagNameCheck instanceof Function&&eT.tagNameCheck(e))&&(eT.attributeNameCheck instanceof RegExp&&E(eT.attributeNameCheck,t)||eT.attributeNameCheck instanceof Function&&eT.attributeNameCheck(t))||"is"===t&&eT.allowCustomizedBuiltInElements&&(eT.tagNameCheck instanceof RegExp&&E(eT.tagNameCheck,r)||eT.tagNameCheck instanceof Function&&eT.tagNameCheck(r))))return!1}else if(eJ[t]);else if(E(ew,w(r,eb,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===S(r,"data:")&&eZ[e]);else if(eO&&!E(ev,w(r,eb,"")));else if(r)return!1;return!0},tb=function(e){return"annotation-xml"!==e&&_(e,e_)},t_=function(t){tg(eh.beforeSanitizeAttributes,t,null);let{attributes:n}=t;if(!n||tf(t))return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ex,forceKeepAttr:void 0},o=n.length;for(;o--;){let{name:a,namespaceURI:s,value:l}=n[o],c=tr(a),u=l,d="value"===a?u:k(u);if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,tg(eh.uponSanitizeAttribute,t,i),d=i.attrValue,ez&&("id"===c||"name"===c)&&(td(a,t),d=e$+d),eR&&E(/((--!?|])>)|<\/(style|title)/i,d)){td(a,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr||!eN&&E(/\/>/i,d)){td(a,t);continue}eD&&p([ep,ef,em],e=>{d=w(d,e," ")});let h=tr(t.nodeName);if(!tv(h,c,d)){td(a,t);continue}if(e&&"object"==typeof W&&"function"==typeof W.getAttributeType){if(s);else switch(W.getAttributeType(h,c)){case"TrustedHTML":d=e.createHTML(d);break;case"TrustedScriptURL":d=e.createScriptURL(d)}}if(d!==u)try{s?t.setAttributeNS(s,a,d):t.setAttribute(a,d),tf(t)?tu(t):m(r.removed)}catch(e){td(a,t)}}tg(eh.afterSanitizeAttributes,t,null)},tw=function e(t){let r=null,n=tp(t);for(tg(eh.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)tg(eh.uponSanitizeShadowNode,r,null),ty(r),t_(r),r.content instanceof s&&e(r.content);tg(eh.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,l=null,c=null;if((e4=!t)&&(t="<!-->"),"string"!=typeof t&&!tm(t)){if("function"==typeof t.toString){if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}else throw T("toString is not a function")}if(!r.isSupported)return t;if(eM||ta(n),r.removed=[],"string"==typeof t&&(eW=!1),eW){if(t.nodeName){let e=tr(t.nodeName);if(!eS[e]||eA[e])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof d)(a=(i=th("<!---->")).ownerDocument.importNode(t,!0)).nodeType===ee.element&&"BODY"===a.nodeName?i=a:"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!eB&&!eD&&!eL&&-1===t.indexOf("<"))return e&&eF?e.createHTML(t):t;if(!(i=th(t)))return eB?null:eF?ea:""}i&&ej&&tu(i.firstChild);let u=tp(eW?t:i);for(;l=u.nextNode();)ty(l),t_(l),l.content instanceof s&&tw(l.content);if(eW)return t;if(eB){if(eU)for(c=ec.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(ex.shadowroot||ex.shadowrootmode)&&(c=ed.call(o,c,!0)),c}let h=eL?i.outerHTML:i.innerHTML;return eL&&eS["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&E(X,i.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+h),eD&&p([ep,ef,em],e=>{h=w(h,e," ")}),e&&eF?e.createHTML(h):h},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ta(e),eM=!0}
50,r.clearConfig=function(){tn=null,eM=!1},r.isValidAttribute=function(e,t,r){return tn||ta({}),tv(tr(e),tr(t),r)},r.addHook=function(e,t){"function"==typeof t&&g(eh[e],t)},r.removeHook=function(e,t){if(void 0!==t){let r=f(eh[e],t);return -1===r?void 0:y(eh[e],r,1)[0]}return m(eh[e])},r.removeHooks=function(e){eh[e]=[]},r.removeAllHooks=function(){eh=en()},r}var eo=ei(),ea=r(34155);let es={ALLOWED_TAGS:[],ALLOWED_ATTR:[],KEEP_CONTENT:!0,FORBID_SCRIPTS:!0};ea.env.SESSION_SECRET;let el=e=>eo.sanitize(e,{...es}),ec=e=>e&&"string"==typeof e?eo.sanitize(e.trim(),{...es}):"",eu=e=>{var t;if(!e||"string"!=typeof e)return"";let r=ec(e),n=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r),i=!/\s/.test(r),o=r.length<=254,a=(null===(t=r.split("@")[0])||void 0===t?void 0:t.length)<=64,s=/[<>'"\\;(){}[\]]/.test(r);return n&&i&&o&&a&&!s?r.toLowerCase().trim():""},ed=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(null==e)return e;if("string"==typeof e)return el(e);if(Array.isArray(e))return e.map(e=>ed(e,t));if("object"==typeof e){let r={};for(let[n,i]of Object.entries(e))t.includes(n)&&"string"==typeof i?r[n]=el(i):r[n]=ed(i,t);return r}return e}},89079:function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let l of n(o))i.call(e,l)||l===a||t(e,l,{get:()=>o[l],enumerable:!(s=r(o,l))||s.enumerable});return e},a=e=>o(t({},"__esModule",{value:!0}),e),s={};function l(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function u(e){if(!e)return;let[[t,r],...n]=c(e),{domain:i,expires:o,httponly:a,maxage:s,path:l,samesite:u,secure:h,partitioned:f,priority:g}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase(),t]));return d({name:t,value:decodeURIComponent(r),domain:i,...o&&{expires:new Date(o)},...a&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...u&&{sameSite:p(u)},...h&&{secure:!0},...g&&{priority:m(g)},...f&&{partitioned:!0}})}function d(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(s,{RequestCookies:()=>y,ResponseCookies:()=>v,parseCookie:()=>c,parseSetCookie:()=>u,stringifyCookie:()=>l}),e.exports=a(s);var h=["strict","lax","none"];function p(e){return e=e.toLowerCase(),h.includes(e)?e:void 0}var f=["low","medium","high"];function m(e){return e=e.toLowerCase(),f.includes(e)?e:void 0}function g(e){if(!e)return[];var t,r,n,i,o,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function c(){return"="!==(r=e.charAt(s))&&";"!==r&&","!==r}for(;s<e.length;){for(t=s,o=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),i=s;s<e.length&&c();)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}var y=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}
50has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>l(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>l(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},v=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let i=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(i)?i:g(i)){let t=u(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,i=this._parsed;return i.set(t,_({name:t,value:r,...n})),b(i,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(l).join("; ")}};function b(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=l(r);t.append("set-cookie",e)}}function _(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}},27596:function(e,t,r){var n="/",i=r(34155),o=r(48764).Buffer;!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},167:function(e,t,r){"use strict";function n(e){return(n="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})(e)}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var a,s,l=r(23).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,u=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,h=l.ERR_INVALID_RETURN_VALUE,p=l.ERR_MISSING_ARGS,f=r(545),m=r(177).inspect,g=r(177).types,y=g.isPromise,v=g.isRegExp,b=Object.assign?Object.assign:r(604).assign,_=Object.is?Object.is:r(208);function w(){var e=r(176);a=e.isDeepEqual,s=e.isDeepStrictEqual}var S=!1,k=e.exports=C,x={};function E(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function T(e,t,r,n,o){var a,s=arguments.length;if(0===s?a="Failed":1===s?(r=e,e=void 0):(!1===S&&(S=!0,(i.emitWarning?i.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(n="!=")),r instanceof Error)throw r;var l={actual:e,expected:t,operator:void 0===n?"fail":n,stackStartFn:o||T};void 0!==r&&(l.message=r);var c=new f(l);throw a&&(c.message=a,c.generatedMessage=!0),c}function A(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function C(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[C,t.length].concat(t))}function P(e,t,r){if(arguments.length<2)throw new p("actual","expected");void 0===a&&w(),s(e,t)&&E({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:P})}k.fail=T,k.AssertionError=f,k.ok=C,k.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&E({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},k.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&E({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},k.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&w(),a(t,r)||E({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},k.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&w(),a(t,r)&&E({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},k.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&w(),s(t,r)||E({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},k.notDeepStrictEqual=P,k.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");_(t,r)||E({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},k.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");
vendor: 4,130 bytes, line 50
50_(t,r)&&E({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var I=function e(t,r,n){var i=this;o(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&v(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])})};function O(e,t,r,n,i,o){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new f({actual:new I(e,i),expected:new I(t,i,e),operator:"deepStrictEqual",stackStartFn:o});throw a.actual=e,a.expected=t,a.operator=o.name,a}E({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function N(e,t,r,i){if("function"!=typeof t){if(v(t))return t.test(e);if(2==arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var o=new f({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new d("error",t,"may not be an empty object");return void 0===a&&w(),s.forEach(function(n){"string"==typeof e[n]&&v(t[n])&&t[n].test(e[n])||O(e,t,n,r,s,i)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function D(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return x}function R(e){return y(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function L(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!R(t=e()))throw new h("instance of Promise","promiseFn",t)}else if(R(e))t=e;else throw new u("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return x}).catch(function(e){return e})})}function M(e,t,r,i){if("string"==typeof r){if(4==arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(t===x){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var a="rejects"===e.name?"rejection":"exception";E({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!N(t,r,i,e))throw t}function j(e,t,r,n){if(t!==x){if("string"==typeof r&&(n=r,r=void 0),!r||N(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";E({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function B(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[B,t.length].concat(t))}k.throws=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];M.apply(void 0,[e,D(t)].concat(n))},k.rejects=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return L(t).then(function(t){return M.apply(void 0,[e,t].concat(n))})},k.doesNotThrow=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];j.apply(void 0,[e,D(t)].concat(n))},k.doesNotReject=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return L(t).then(function(t){return j.apply(void 0,[e,t].concat(n))})},k.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=m(t);var i=new f({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=i.stack.split("\n"),l=0;l<a.length;l++){var c=s.indexOf(a[l]);if(-1!==c){s=s.slice(0,c);break}}i.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw i}},k.strict=b(B,k,{equal:k.strictEqual,deepEqual:k.deepStrictEqual,notEqual:k.notStr
50ictEqual,notDeepEqual:k.notDeepStrictEqual}),k.strict.strict=k.strict},545:function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function c(e,t){return t&&("object"===v(t)||"function"==typeof t)?t:u(e)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if("function"!=typeof t&&null!==t)throw 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&&g(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||!m(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,y(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,e)})(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function f(e,t,r){return(f=p()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&g(i,r.prototype),i}).apply(null,arguments)}function m(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){return(v="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})(e)}var b=r(177).inspect,_=r(23).codes.ERR_INVALID_ARG_TYPE;function w(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var k="",x="",E="",T="",A={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},C=10;function P(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function I(e){return b(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function O(e,t,r){var n="",o="",a=0,s="",l=!1,c=I(e),u=c.split("\n"),d=I(t).split("\n"),h=0,p="";if("strictEqual"===r&&"object"===v(e)&&"object"===v(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var f=u[0].length+d[0].length;if(f<=C){if(("object"!==v(e)||null===e)&&("object"!==v(t)||null===t)&&(0!==e||0!==t))return"".concat(A[r],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&f<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;u[0][h]===d[0][h];)h++;h>2&&(p="\n  ".concat(S(" ",h),"^"),h=0)}}for(var m=u[u.length-1],g=d[d.length-1];m===g&&(h++<2?s="\n  ".concat(m).concat(s):n=m,u.pop(),d.pop(),0!==u.length&&0!==d.length);)m=u[u.length-1],g=d[d.length-1];var y=Math.max(u.length,d.length);if(0===y){var b=c.split("\n");if(b.length>30)for(b[26]="".concat(k,"...").concat(T);b.length>27;)b.pop();return"".concat(A.notIdentical,"\n\n").concat(b.join("\n"),"\n")}h>
vendor: 4,193 bytes, line 50
503&&(s="\n".concat(k,"...").concat(T).concat(s),l=!0),""!==n&&(s="\n  ".concat(n).concat(s),n="");var _=0,P=A[r]+"\n".concat(x,"+ actual").concat(T," ").concat(E,"- expected").concat(T),O=" ".concat(k,"...").concat(T," Lines skipped");for(h=0;h<y;h++){var N=h-a;if(u.length<h+1)N>1&&h>2&&(N>4?(o+="\n".concat(k,"...").concat(T),l=!0):N>3&&(o+="\n  ".concat(d[h-2]),_++),o+="\n  ".concat(d[h-1]),_++),a=h,n+="\n".concat(E,"-").concat(T," ").concat(d[h]),_++;else if(d.length<h+1)N>1&&h>2&&(N>4?(o+="\n".concat(k,"...").concat(T),l=!0):N>3&&(o+="\n  ".concat(u[h-2]),_++),o+="\n  ".concat(u[h-1]),_++),a=h,o+="\n".concat(x,"+").concat(T," ").concat(u[h]),_++;else{var D=d[h],R=u[h],L=R!==D&&(!w(R,",")||R.slice(0,-1)!==D);L&&w(D,",")&&D.slice(0,-1)===R&&(L=!1,R+=","),L?(N>1&&h>2&&(N>4?(o+="\n".concat(k,"...").concat(T),l=!0):N>3&&(o+="\n  ".concat(u[h-2]),_++),o+="\n  ".concat(u[h-1]),_++),a=h,o+="\n".concat(x,"+").concat(T," ").concat(R),n+="\n".concat(E,"-").concat(T," ").concat(D),_+=2):(o+=n,n="",(1===N||0===h)&&(o+="\n  ".concat(R),_++))}if(_>20&&h<y-2)return"".concat(P).concat(O,"\n").concat(o,"\n").concat(k,"...").concat(T).concat(n,"\n")+"".concat(k,"...").concat(T)}return"".concat(P).concat(l?O:"","\n").concat(o).concat(n).concat(s).concat(p)}var N=function(e){function t(e){if(a(this,t),"object"!==v(e)||null===e)throw new _("options","Object",e);var r,n=e.message,o=e.operator,s=e.stackStartFn,l=e.actual,d=e.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)r=c(this,y(t).call(this,String(n)));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(k="\x1b[34m",x="\x1b[32m",T="\x1b[39m",E="\x1b[31m"):(k="",x="",T="",E="")),"object"===v(l)&&null!==l&&"object"===v(d)&&null!==d&&"stack"in l&&l instanceof Error&&"stack"in d&&d instanceof Error&&(l=P(l),d=P(d)),"deepStrictEqual"===o||"strictEqual"===o)r=c(this,y(t).call(this,O(l,d,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var p=A[o],f=I(l).split("\n");if("notStrictEqual"===o&&"object"===v(l)&&null!==l&&(p=A.notStrictEqualObject),f.length>30)for(f[26]="".concat(k,"...").concat(T);f.length>27;)f.pop();r=1===f.length?c(this,y(t).call(this,"".concat(p," ").concat(f[0]))):c(this,y(t).call(this,"".concat(p,"\n\n").concat(f.join("\n"),"\n")))}else{var m=I(l),g="",b=A[o];"notDeepEqual"===o||"notEqual"===o?(m="".concat(A[o],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(g="".concat(I(d)),m.length>512&&(m="".concat(m.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?m="".concat(b,"\n\n").concat(m,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),r=c(this,y(t).call(this,"".concat(m).concat(g)))}return Error.stackTraceLimit=h,r.generatedMessage=!n,Object.defineProperty(u(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=l,r.expected=d,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(r),s),r.stack,r.name="AssertionError",c(r)}return d(t,e),l(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:b.custom,value:function(e,t){return b(this,n({},t,{customInspect:!1,depth:0}))}}]),t}(h(Error));e.exports=N},23:function(e,t,r){"use strict";function n(e){return(n="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})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){return t&&("object"===n(t)||"function"==typeof t)?t:a(e)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw 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&&c(e,t)}
50function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u,d,h={};function p(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var a=function(t){function r(t,a,l){var c;return i(this,r),(c=o(this,s(r).call(this,n(t,a,l)))).code=e,c}return l(r,t),r}(r);h[e]=a}function f(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function m(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function y(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(e,t,i){if(void 0===u&&(u=r(167)),u("string"==typeof e,"'name' must be a string"),"string"==typeof t&&m(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",g(e," argument"))a="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var o,a,s=y(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(f(t,"type"))}return a+". Received type ".concat(n(i))},TypeError),p("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===d&&(d=r(177));var i=d.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===u&&(u=r(167)),u(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", ")+", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=h},176:function(e,t,r){"use strict";function n(e,t){return a(e)||o(e,t)||i()}function i(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}function a(e){if(Array.isArray(e))return e}function s(e){return(s="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})(e)}var l=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},u=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},d=Object.is?Object.is:r(208),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(718);function f(e){return e.call.bind(e)}var m=f(Object.prototype.hasOwnProperty),g=f(Object.prototype.propertyIsEnumerable),y=f(Object.prototype.toString),v=r(177).types,b=v.isAnyArrayBuffer,_=v.isArrayBufferView,w=v.isDate,S=v.isMap,k=v.isRegExp,x=v.isSet,E=v.isNativeError,T=v.isBoxedPrimitive,A=v.isNumberObject,C=v.isStringObject,P=v.isBooleanObject,I=v.isBigIntObject,O=v.isSymbolObject,N=v.isFloat32Array,D=v.isFloat64Array;function R(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=4294967296}function L(e){return Object.keys(e).filter(R).concat(h(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var j=void 0,B=!0,U=!1,F=0,H=1,z=2,$=3;function q(e,t){return l?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function W(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function V(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function G(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e),new Uint8Array(t))}function K(e,t){return A(e)?A(t)&&d(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):C(e)?C(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):P(e)?P(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):I(e)?I(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):O(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function Z(e,t,r,n){if(e===t)return 0!==e||!r||d(e,t);if(r){if("object"!==s(e))return"number"==typeof e&&p(e)&&p(t);if("object"!==s(t)||null===e||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==s(e))return(null===t||"object"!==s(t))&&e==t;if(null===t||"object"!==s(t))return!1}var i=y(e);if(i!==y(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=L(e,j),a=L(t,j);return o.length===a.length&&J(e,t,r,n,H,o)}if("[object Object]"===i&&(!S(e)&&S(t)||!x(e)&&x(t)))return!1;if(w(e)){if(!w(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(k(e)){if(!k(t)||!q(e,t))return!1}else if(E(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(_(e)){if(!r&&(N(e)||D(e))){if(!W(e,t))return!1}else if(!V(e,t))return!1;var l=L(e,j),c=L(t,j);return l.length===c.length&&J(e,t,r,n,F,l)}else if(x(e))return!!x(t)&&e.size===t.size&&J(e,t,r,n,z);else if(S(e))return!!S(t)&&e.size===t.size&&J(e,t,r,n,$);else if(b(e)){if(!G(e,t))return!1}else if(T(e)&&!K(e,t))return!1;return J(e,t,r,n,F)}function Y(e,t){return t.filter(function(t){return g(e,t)})}function J(e,t,r,n,i,o){if(5==arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!m(t,o[s]))return!1;if(r&&5==arguments.length){var l=h(e);if(0!==l.length){var c=0;for(s=0;s<l.length;s++){var u=l[s];if(g(e,u)){if(!g(t,u))return!1;o.push(u),c++}else if(g(t,u))return!1}var d=h(t);if(l.length!==d.length&&Y(t,d).length!==c)return!1}
50else{var p=h(t);if(0!==p.length&&0!==Y(t,p).length)return!1}}if(0===o.length&&(i===F||i===H&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var f=n.val1.get(e);if(void 0!==f){var y=n.val2.get(t);if(void 0!==y)return f===y}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var v=eo(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),v}function X(e,t,r,n){for(var i=c(e),o=0;o<i.length;o++){var a=i[o];if(Z(t,a,r,n))return e.delete(a),!0}return!1}function Q(e){switch(s(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(p(e))return!1}return!0}function ee(e,t,r){var n=Q(r);return null!=n?n:t.has(n)&&!e.has(n)}function et(e,t,r,n,i){var o=Q(r);if(null!=o)return o;var a=t.get(o);return!!((void 0!==a||t.has(o))&&Z(n,a,!1,i))&&!e.has(o)&&Z(n,a,!1,i)}function er(e,t,r,n){for(var i=null,o=c(e),a=0;a<o.length;a++){var l=o[a];if("object"===s(l)&&null!==l)null===i&&(i=new Set),i.add(l);else if(!t.has(l)){if(r||!ee(e,t,l))return!1;null===i&&(i=new Set),i.add(l)}}if(null!==i){for(var u=c(t),d=0;d<u.length;d++){var h=u[d];if("object"===s(h)&&null!==h){if(!X(i,h,r,n))return!1}else if(!r&&!e.has(h)&&!X(i,h,r,n))return!1}return 0===i.size}return!0}function en(e,t,r,n,i,o){for(var a=c(e),s=0;s<a.length;s++){var l=a[s];if(Z(r,l,i,o)&&Z(n,t.get(l),i,o))return e.delete(l),!0}return!1}function ei(e,t,r,i){for(var o=null,a=u(e),l=0;l<a.length;l++){var c=n(a[l],2),d=c[0],h=c[1];if("object"===s(d)&&null!==d)null===o&&(o=new Set),o.add(d);else{var p=t.get(d);if(void 0===p&&!t.has(d)||!Z(h,p,r,i)){if(r||!et(e,t,d,h,i))return!1;null===o&&(o=new Set),o.add(d)}}}if(null!==o){for(var f=u(t),m=0;m<f.length;m++){var g=n(f[m],2),d=g[0],y=g[1];if("object"===s(d)&&null!==d){if(!en(o,e,d,y,r,i))return!1}else if(!r&&(!e.has(d)||!Z(e.get(d),y,!1,i))&&!en(o,e,d,y,!1,i))return!1}return 0===o.size}return!0}function eo(e,t,r,n,i,o){var a=0;if(o===z){if(!er(e,t,r,i))return!1}else if(o===$){if(!ei(e,t,r,i))return!1}else if(o===H)for(;a<e.length;a++)if(m(e,a)){if(!m(t,a)||!Z(e[a],t[a],r,i))return!1}else{if(m(t,a))return!1;for(var s=Object.keys(e);a<s.length;a++){var l=s[a];if(!m(t,l)||!Z(e[l],t[l],r,i))return!1}if(s.length!==Object.keys(t).length)return!1;return!0}for(a=0;a<n.length;a++){var c=n[a];if(!Z(e[c],t[c],r,i))return!1}return!0}function ea(e,t){return Z(e,t,U)}function es(e,t){return Z(e,t,B)}e.exports={isDeepEqual:ea,isDeepStrictEqual:es}},256:function(e,t,r){"use strict";var n=r(925),i=r(139),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(174),i=r(925),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},69:function(e,t,r){"use strict";var n=r(935),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},c=function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}},u=s&&c(),d=function(e,t,r,n){(!(t in e)||l(n)&&n())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},h=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)d(e,o[s],t[o[s]],r[o[s]])};h.supportsDescriptors=!!u,e.exports=h},604:function(e){"use strict";function t(e,t){if(null==e)throw TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var l=o[a],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(r[l]=i[l])}}return r}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
50configurable:!0,writable:!0,value:t})}e.exports={assign:t,polyfill:r}},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},426:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o,a=this;if("function"!=typeof a||n.call(a)!==i)throw TypeError(t+a);for(var s=r.call(arguments,1),l=function(){if(!(this instanceof o))return a.apply(e,s.concat(r.call(arguments)));var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this},c=Math.max(0,a.length-s.length),u=[],d=0;d<c;d++)u.push("$"+d);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),a.prototype){var h=function(){};h.prototype=a.prototype,o.prototype=new h,h.prototype=null}return o}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new a},u=l?function(){try{return arguments.callee,c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(115)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
50IteratorPrototype%":d?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=h(i.prototype))}return m[t]=r,r},y={"%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"]},v=r(174),b=r(101),_=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),k=v.call(Function.call,String.prototype.slice),x=v.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,A=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,E,function(e,t,r,i){n[n.length]=r?S(i,T,"$1"):t||e}),n},C=function(e,t){var r,n=e;if(b(y,n)&&(n="%"+(r=y[n])[0]+"%"),b(m,n)){var o=m[n];if(o===p&&(o=g(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=A(e),n=r.length>0?r[0]:"",o=C("%"+n+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(n=d[0],w(r,_([0,1],d)));for(var h=1,p=!0;h<r.length;h+=1){var f=r[h],g=k(f,0,1),y=k(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&p||(u=!0),n+="."+f,b(m,s="%"+n+"%"))c=m[s];else if(null!=c){if(!(f in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=r.length){var v=l(c,f);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else p=b(c,f),c=c[f];p&&!u&&(m[s]=c)}}return c}},925:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new a},u=l?function(){try{return arguments.callee,c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(115)(),h=r(504)(),p=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),f={},m="undefined"!=typeof Uint8Array&&p?p(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&p?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
50IteratorPrototype%":d&&p?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&p?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&p?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&p?p(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(p)try{null.error}catch(e){var y=p(p(e));g["%Error.prototype%"]=y}var v=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(r=p(i.prototype))}return g[t]=r,r},b={"%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"]},_=r(174),w=r(101),S=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),x=_.call(Function.call,String.prototype.replace),E=_.call(Function.call,String.prototype.slice),T=_.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,P=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,A,function(e,t,r,i){n[n.length]=r?x(i,C,"$1"):t||e}),n},I=function(e,t){var r,n=e;
50if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(g,n)){var o=g[n];if(o===f&&(o=v(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=P(e),n=r.length>0?r[0]:"",o=I("%"+n+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(n=d[0],k(r,S([0,1],d)));for(var h=1,p=!0;h<r.length;h+=1){var f=r[h],m=E(f,0,1),y=E(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&p||(u=!0),n+="."+f,w(g,s="%"+n+"%"))c=g[s];else if(null!=c){if(!(f in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=r.length){var v=l(c,f);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else p=w(c,f),c=c[f];p&&!u&&(g[s]=c)}}return c}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"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"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"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"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},460:function(e){"use strict";e.exports=function(e){return e!=e}},718:function(e,t,r){"use strict";var n=r(139),i=r(69),o=r(460),a=r(625),s=r(171),l=n(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},625:function(e,t,r){"use strict";var n=r(460);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},171:function(e,t,r){"use strict";var n=r(69),i=r(625);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d=a("String.prototype.slice"),h={},p=n(24),f=Object.getPrototypeOf;l&&p&&f&&i(c,function(e){var t=new r.g[e];
50if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=f(t),i=p(n,Symbol.toStringTag);i||(i=p(f(n),Symbol.toStringTag)),h[e]=i.get});var m=function(e){var t=!1;return i(h,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(l?!!p&&m(e):u(c,d(s(e),8,-1))>-1)}},208:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},579:function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(412),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),f=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var h=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var p=0;p<e.length;++p)d.push(String(p));if(n&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var g in e)!(h&&"prototype"===g)&&i.call(e,g)&&d.push(String(g));if(l)for(var y=f(e),v=0;v<u.length;++v)!(y&&"constructor"===u[v])&&i.call(e,u[v])&&d.push(u[v]);return d}}e.exports=n},935:function(e,t,r){"use strict";var n=Array.prototype.slice,i=r(412),o=Object.keys,a=o?function(e){return o(e)}:r(579),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},412:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},369:function(e){e.exports=function(e){return e instanceof o}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||H(e)}function b(e){return"Uint8Array"===o(e)}function _(e){return"Uint8ClampedArray"===o(e)}function w(e){return"Uint16Array"===o(e)}function S(e){return"Uint32Array"===o(e)}function k(e){return"Int8Array"===o(e)}function x(e){return"Int16Array"===o(e)}function E(e){return"Int32Array"===o(e)}function T(e){return"Float32Array"===o(e)}function A(e){return"Float64Array"===o(e)}function C(e){return"BigInt64Array"===o(e)}function P(e){return"BigUint64Array"===o(e)}function I(e){return"[object Map]"===u(e)}function O(e){return"undefined"!=typeof Map&&(I.working?I(e):e instanceof Map)}function N(e){return"[object Set]"===u(e)}function D(e){return"undefined"!=typeof Set&&(N.working?N(e):e instanceof Set)}function R(e){return"[object WeakMap]"===u(e)}function L(e){return"undefined"!=typeof WeakMap&&(R.working?R(e):e instanceof WeakMap)}function M(e){return"[object WeakSet]"===u(e)}function j(e){return M(e)}function B(e){return"[object ArrayBuffer]"===u(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function F(e){return"[object DataView]"===u(e)}
50function H(e){return"undefined"!=typeof DataView&&(F.working?F(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=y,t.isArrayBufferView=v,t.isUint8Array=b,t.isUint8ClampedArray=_,t.isUint16Array=w,t.isUint32Array=S,t.isInt8Array=k,t.isInt16Array=x,t.isInt32Array=E,t.isFloat32Array=T,t.isFloat64Array=A,t.isBigInt64Array=C,t.isBigUint64Array=P,I.working="undefined"!=typeof Map&&I(new Map),t.isMap=O,N.working="undefined"!=typeof Set&&N(new Set),t.isSet=D,R.working="undefined"!=typeof WeakMap&&R(new WeakMap),t.isWeakMap=L,M.working="undefined"!=typeof WeakSet&&M(new WeakSet),t.isWeakSet=j,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,F.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&F(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=H;var z="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function $(e){return"[object SharedArrayBuffer]"===u(e)}function q(e){return void 0!==z&&(void 0===$.working&&($.working=$(new z)),$.working?$(e):e instanceof z)}function W(e){return"[object AsyncFunction]"===u(e)}function V(e){return"[object Map Iterator]"===u(e)}function G(e){return"[object Set Iterator]"===u(e)}function K(e){return"[object Generator]"===u(e)}function Z(e){return"[object WebAssembly.Module]"===u(e)}function Y(e){return g(e,d)}function J(e){return g(e,h)}function X(e){return g(e,p)}function Q(e){return l&&g(e,f)}function ee(e){return c&&g(e,m)}function et(e){return Y(e)||J(e)||X(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||q(e))}t.isSharedArrayBuffer=q,t.isAsyncFunction=W,t.isMapIterator=V,t.isSetIterator=G,t.isGeneratorObject=K,t.isWebAssemblyCompiledModule=Z,t.isNumberObject=Y,t.isStringObject=J,t.isBooleanObject=X,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])w(s)||!C(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(i.throwDeprecation)throw Error(r);i.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(i.env.NODE_DEBUG){var l=i.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),T(n.showHidden)&&(n.showHidden=!1),T(n.depth)&&(n.depth=2),T(n.colors)&&(n.colors=!1),T(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),p(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function h(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function p(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return x(o)||(o=p(e,o,n)),o}var a=f(e,r);if(a)return a;var s=Object.keys(r),l=h(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(O(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(A(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return m(r)}var u="",d=!1,_=["{","}"];return(b(r)&&(d=!0,_=["[","]"]),O(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),A(r)&&(u=" "+RegExp.prototype.toString.call(r)),P(r)&&(u=" "+Date.prototype.toUTCString.call(r)),I(r)&&(u=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?A(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?g(e,r,n,l,s):s.map(function(t){return y(e,r,n,l,t,d)}),e.seen.pop(),v(i,u,_)):_[0]+u+_[1]}function f(e,t){if(T(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
50return e.stylize(r,"string")}return k(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):w(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)j(t,String(a))?o.push(y(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),j(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=w(r)?p(e,l.value,null):p(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),T(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function w(e){return null===e}function S(e){return null==e}function k(e){return"number"==typeof e}function x(e){return"string"==typeof e}function E(e){return"symbol"==typeof e}function T(e){return void 0===e}function A(e){return C(e)&&"[object RegExp]"===D(e)}function C(e){return"object"==typeof e&&null!==e}function P(e){return C(e)&&"[object Date]"===D(e)}function I(e){return C(e)&&("[object Error]"===D(e)||e instanceof Error)}function O(e){return"function"==typeof e}function N(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function D(e){return Object.prototype.toString.call(e)}function R(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=b,t.isBoolean=_,t.isNull=w,t.isNullOrUndefined=S,t.isNumber=k,t.isString=x,t.isSymbol=E,t.isUndefined=T,t.isRegExp=A,t.types.isRegExp=A,t.isObject=C,t.isDate=P,t.types.isDate=P,t.isError=I,t.types.isNativeError=I,t.isFunction=O,t.isPrimitive=N,t.isBuffer=r(369);var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(e.getSeconds())].join(":");return[e.getDate(),L[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!C(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function F(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(a.bind(null,null,e))},function(e){i.nextTick(U.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(B&&e[B]){var t=e[B];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,
50configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),B&&Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=B,t.callbackify=F},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("String.prototype.slice"),d={},h=n(24),p=Object.getPrototypeOf;l&&h&&p&&i(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=p(t),i=h(n,Symbol.toStringTag);i||(i=h(p(n),Symbol.toStringTag)),d[e]=i.get}});var f=function(e){var t=!1;return i(d,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},m=n(994);e.exports=function(e){return!!m(e)&&(l?f(e):u(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/";var l=s(167);e.exports=l}()},42474:function(e,t,r){var n="/",i=r(48764).Buffer,o=r(34155);!function(){var t={7160:function(e,t,r){var n=t;n.bignum=r(711),n.define=r(495).define,n.base=r(853),n.constants=r(7335),n.decoders=r(6
vendor: 5,057 bytes, line 50
50701),n.encoders=r(3418)},495:function(e,t,r){var n=r(7160),i=r(3782);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var n=r(3782),i=r(853).Reporter,o=r(4300).Buffer;function a(e,t){if(i.call(this,t),!o.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var n=t;n.Reporter=r(1293).b,n.DecoderBuffer=r(6483).C,n.EncoderBuffer=r(6483).R,n.Node=r(9374)},9374:function(e,t,r){var n=r(853).Reporter,i=r(853).EncoderBuffer,o=r(853).DecoderBuffer,a=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),c=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function u(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){var e=this._baseState;l.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},u.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))}
vendor: 5,912 bytes, line 50
50,c.forEach(function(e){u.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){u.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),u.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(a=this._peekTag(e,l,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?i=e.raw(c):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},u.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var l=s._decode(e,t);if(e.isError(l))return!1;n={type:o,value:l},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},u.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},l))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var c=null!==o.implicit?o.implicit:o.tag,u=null===o.implicit?"universal":"context";null===c?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(c,s,u,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i
vendor: 7,415 bytes, line 50
50)),i},u.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var n=r(3782);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var n=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},7335:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(9791)},2259:function(e,t,r){var n=r(3782),i=r(7160),o=i.base,a=i.bignum,s=i.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function d(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=l,l.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r,n=u(e,t);if(e.isError(n))return n;var i=d(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}if(/str$/.test(t))return e.raw().toString();else return e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,(128&a)==0&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,l=i[0]%40;if(n=r?i:[s,l].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),l=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,l,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=new a(e.raw());return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},6701:function(e,t,r){var n=t;n.der=r(2259),n.pem=r(8527)},8527:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(2259);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,c=0;c<r.length;c++){var u=r[c].match(a);
vendor: 4,478 bytes, line 50
50if(null!==u&&u[2]===n){if(-1===s){if("BEGIN"!==u[1])break;s=c}else{if("END"!==u[1])break;l=c;break}}}if(-1===s||-1===l)throw Error("PEM section not found for: "+n);var d=r.slice(s+1,l).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(d,"base64");return o.prototype.decode.call(this,h,t)}},7804:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(7160),a=o.base,s=o.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}function d(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a.Node),c.prototype._encodeComposite=function(e,t,r,n){var o=d(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,l=n.length;l>=256;l>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var l=1+s,c=n.length;c>0;l--,c>>=8)a[l]=255&c;return this._createEncoderBuffer([a,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}for(var s=new i(o),l=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[l--]=127&a;(a>>=7)>0;)s[l--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;
vendor: 4,986 bytes, line 50
50var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},3418:function(e,t,r){var n=t;n.der=r(7804),n.pem=r(1564)},1564:function(e,t,r){var n=r(3782),i=r(7804);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},711:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{l=r(4300).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,a>=49&&a<=54?n|=a-49+10:a>=17&&a<=22?n|=a-17+10:n|=15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,l=Math.min(o,o-a)+r,c=0,u=r;u<l;u+=n)c=s(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=s(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,439 bytes, line 50
50777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;u+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=((s<<i|o)&16777215).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],p=d[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(e);r=(f=f.idivn(p)).isZero()?m+r:c[h-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==l),this.toArrayLike(l,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var l="le"===t,c=new e(s),u=this.clone();if(l){for(o=0;!u.isZero();o++)i=u.andln(255),u.iushrn(8),c[o]=i;for(;o<s;o++)c[o]=0}else{for(o=0;o<s-a;o++)c[o]=0;for(o=0;!u.isZero();o++)i=u.andln(255),u.iushrn(8),c[s-o-1]=i}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 6,726 bytes, line 50
50n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,h=u>>>13,p=0|a[1],f=8191&p,m=p>>>13,g=0|a[2],y=8191&g,v=g>>>13,b=0|a[3],_=8191&b,w=b>>>13,S=0|a[4],k=8191&S,x=S>>>13,E=0|a[5],T=8191&E,A=E>>>13,C=0|a[6],P=8191&C,I=C>>>13,O=0|a[7],N=8191&O,D=O>>>13,R=0|a[8],L=8191&R,M=R>>>13,j=0|a[9],B=8191&j,U=j>>>13,F=0|s[0],H=8191&F,z=F>>>13,$=0|s[1],q=8191&$,W=$>>>13,V=0|s[2],G=8191&V,K=V>>>13,Z=0|s[3],Y=8191&Z,J=Z>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,ec=es>>>13,eu=0|s[8],ed=8191&eu,eh=eu>>>13,ep=0|s[9],ef=8191&ep,em=ep>>>13;r.negative=e.negative^t.negative,r.length=19;var eg=(c+(n=Math.imul(d,H))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(h,H)|0))<<13)|0;c=((o=Math.imul(h,z))+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(f,H),i=(i=Math.imul(f,z))+Math.imul(m,H)|0,o=Math.imul(m,z);var ey=(c+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(h,q)|0))<<13)|0;c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(y,H),i=(i=Math.imul(y,z))+Math.imul(v,H)|0,o=Math.imul(v,z),n=n+Math.imul(f,q)|0,i=(i=i+Math.imul(f,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0;var ev=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(_,H),i=(i=Math.imul(_,z))+Math.imul(w,H)|0,o=Math.imul(w,z),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,W)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0;var eb=(c+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,J)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(k,H),i=(i=Math.imul(k,z))+Math.imul(x,H)|0,o=Math.imul(x,z),n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(f,Y)|0,i=(i=i+Math.imul(f,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var e_=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(T,H),i=(i=Math.imul(T,z))+Math.imul(A,H)|0,o=Math.imul(A,z),n=n+Math.imul(k,q)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var ew=(c+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0))<<13)|0;c=((o=o+Math.imul(h,en)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(P,H),i=(i=Math.imul(P,z))+Math.imul(I,H)|0,o=Math.imul(I,z),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(f,er)|0,i=(i=i+Math.imul(f,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eS=(c+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(h,eo)|0))<<13)|0;c=((o=o+Math.imul(h,ea)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,z))+Math.imul(D,H)|0,o=Math.imul(D,z),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(v,er)|0,o=o+Math.imul(v,en)|0,n=n+Math.imul(f,eo)|0,i=(i=i+Math.imul(f,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var ek=(c+(n=n+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,ec)|0)+Math.imul(h,el)|0))<<13)|0;c=((o=o+Math.imul(h,ec)|0)+(i>>>13)|0)+(ek>>>
vendor: 8,840 bytes, line 50
5026)|0,ek&=67108863,n=Math.imul(L,H),i=(i=Math.imul(L,z))+Math.imul(M,H)|0,o=Math.imul(M,z),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(v,eo)|0,o=o+Math.imul(v,ea)|0,n=n+Math.imul(f,el)|0,i=(i=i+Math.imul(f,ec)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,ec)|0;var ex=(c+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;c=((o=o+Math.imul(h,eh)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,z))+Math.imul(U,H)|0,o=Math.imul(U,z),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,W)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(k,er)|0,i=(i=i+Math.imul(k,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,ec)|0)+Math.imul(v,el)|0,o=o+Math.imul(v,ec)|0,n=n+Math.imul(f,ed)|0,i=(i=i+Math.imul(f,eh)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,eh)|0;var eE=(c+(n=n+Math.imul(d,ef)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(h,ef)|0))<<13)|0;c=((o=o+Math.imul(h,em)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,W))+Math.imul(U,q)|0,o=Math.imul(U,W),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(k,eo)|0,i=(i=i+Math.imul(k,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(_,el)|0,i=(i=i+Math.imul(_,ec)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,ec)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,eh)|0)+Math.imul(v,ed)|0,o=o+Math.imul(v,eh)|0;var eT=(c+(n=n+Math.imul(f,ef)|0)|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(m,ef)|0))<<13)|0;c=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(B,G),i=(i=Math.imul(B,K))+Math.imul(U,G)|0,o=Math.imul(U,K),n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(I,er)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(k,el)|0,i=(i=i+Math.imul(k,ec)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(_,ed)|0,i=(i=i+Math.imul(_,eh)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,eh)|0;var eA=(c+(n=n+Math.imul(y,ef)|0)|0)+((8191&(i=(i=i+Math.imul(y,em)|0)+Math.imul(v,ef)|0))<<13)|0;c=((o=o+Math.imul(v,em)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,J))+Math.imul(U,Y)|0,o=Math.imul(U,J),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(P,eo)|0,i=(i=i+Math.imul(P,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,n=n+Math.imul(T,el)|0,i=(i=i+Math.imul(T,ec)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,ec)|0,n=n+Math.imul(k,ed)|0,i=(i=i+Math.imul(k,eh)|0)+Math.imul(x,ed)|0,o=o+Math.imul(x,eh)|0;var eC=(c+(n=n+Math.imul(_,ef)|0)|0)+((8191&(i=(i=i+Math.imul(_,em)|0)+Math.imul(w,ef)|0))<<13)|0;c=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(L,er)|0,i=(i=i+Math.imul(L,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(P,el)|0,i=(i=i+Math.imul(P,ec)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,ec)|0,n=n+Math.imul(T,ed)|0,i=(i=i+Math.imul(T,eh)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,eh)|0;var eP=(c+(n=n+Math.imul(k,ef)|0)|0)+((8191&(i=(i=i+Math.imul(k,em)|0)+Math.imul(x,ef)|0))<<13)|0;c=((o=o+Math.imul(x,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(B,er),i=(i=Math.imul(B,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(L,eo)|0,i=(i=i+Math.imul(L,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,eh)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,eh)|0;var eI=(c+(n=n+Math.imul(T,ef)|0)|0)+((8191&(i=(i=i+Math.imul(T,em)|0)+Math.imul(A,ef)|0))<<13)|0;c=((o=o+Math.imul(A,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(B,eo),i=(i=Math.imul(B,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(L,el)|0,i=(i=i+Math.imul(L,ec)|0)+Math.imul(M,el)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,eh)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,eh)|0;var eO=(c+(n=n+Math.imul(P,ef)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(I,ef)|0))<<13)|0;c=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(B,el),i=(i=Math.imul(B,ec))+Math.imul(U,el)|0,o=Math.imul(U,ec),n=n+Math.imul(L,ed)|0,i=(i=i+Math.imul(L,eh)|0)+Math.imul(M,ed)|0,o=o+Math.imul(M,eh)|0;var eN=(c+(n=n+Math.imul(N,ef)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ef)|0))<<13)|0;c=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(B,ed),i=(i=Math.imul(B,eh))+Math.imul(U,ed)|0,o=Math.imul(U,eh);var eD=(c+(n=n+Math.imul(L,ef)|0)|0)+((8191&(i=(i=i+Math.imul(L,em)|0)+Math.imul(M,ef)|0))<<13)|0;c=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eD>>>26)|0,eD&=67108863;var eR=(c+(n=Math.imul(B,ef))|0)+((8191&(i=(i=Math.imul(B,em))+Math.imul(U,ef)|0))<<13)|0;return c=((o=Math.imul(U,em))+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,l[0]=eg,l[1]=ey,l[2]=ev,l[3]=eb,l[4]=e_,l[5]=ew,l[6]=eS,l[7]=ek,l[8]=ex,l[9]=eE,l[10]=eT,l[11]=eA,l[12]=eC,l[13]=eP,l[14]=eI,l[15]=eO,l[16]=eN,l[17]=eD,l[18]=eR,0!==c&&(l[19]=c,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;a=a+(d/67108864|0)|0,s=67108863&(h=h+s|0),i+=(a=a+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function g(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(f=p),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):r<63?p(this,e,t):r<1024?m(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,h=c,p=0;p<a;p++){var f=r[u+p],m=n[u+p],g=r[u+p+a],y=n[u+p+a],v=d*g-h*y;y=d*y+h*g,g=v,r[u+p]=f+g,n[u+p]=m+y,r[u+p+a]=f-g,n[u+p+a]=m-y,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},y.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),l=Array(n),c=Array(n),u=Array(n),d=Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,d,n,i);for(var p=0;p<n;
vendor: 4,454 bytes, line 50
50p++){var f=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=f}return this.conjugate(s,l,n),this.transform(s,l,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=h(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,541 bytes, line 50
5026,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var l=i.length-a.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=i.clone()._ishlnsubmul(a,1,l);0===u.negative&&(i=u,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(h=Math.min(h/s|0,67108863),i._ishlnsubmul(a,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=h)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;(t.words[0]&p)==0&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var f=0,m=1;(r.words[0]&m)==0&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;(r.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;(i.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(_,b),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(S,b),i(k,b),k.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new w;else if("p192"===e)t=new S;else if("p25519"===e)t=new k;else throw Error("Unknown prime "+e);return v[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=a;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<f);var y=this.pow(d,new o(1).iushln(f-g-1));h=h.redMul(y),d=y.redSqr(),p=p.redMul(d),f=g}return h},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,l=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],d=c-1;d>=0;d--){var h=u>>d&1;if(a!==n[0]&&(a=this.sqr(a)),0===h&&0===s){l=0;continue}s<<=1,s|=h,(++l===r||0===i&&0===d)&&(a=this.mul(a,n[s]),l=0,s=0)}c=26}return a},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,x),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 4,300 bytes, line 50
50"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{u=r(4300).Buffer}catch(e){}function a(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s<o;s++){var l,c=e.charCodeAt(s)-48;i<<=4,i|=l=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=l}return n(!(240&a),"Invalid character in "+e),i}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var c=e.charCodeAt(l)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,l=Math.min(o,o-a)+r,c=0,u=r;u<l;u+=n)c=s(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=s(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c:o.prototype.inspect=c;var u,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,908 bytes, line 50
50777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=((s<<i|o)&16777215).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?d[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(u).toString(e);r=(f=f.idivn(u)).isZero()?m+r:d[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},u&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(u,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var f=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;u+=(a=(i=0|e.words[f])*(o=0|t.words[p])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=f(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 6,730 bytes, line 50
50n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,h=u>>>13,p=0|a[1],f=8191&p,m=p>>>13,g=0|a[2],y=8191&g,v=g>>>13,b=0|a[3],_=8191&b,w=b>>>13,S=0|a[4],k=8191&S,x=S>>>13,E=0|a[5],T=8191&E,A=E>>>13,C=0|a[6],P=8191&C,I=C>>>13,O=0|a[7],N=8191&O,D=O>>>13,R=0|a[8],L=8191&R,M=R>>>13,j=0|a[9],B=8191&j,U=j>>>13,F=0|s[0],H=8191&F,z=F>>>13,$=0|s[1],q=8191&$,W=$>>>13,V=0|s[2],G=8191&V,K=V>>>13,Z=0|s[3],Y=8191&Z,J=Z>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,ec=es>>>13,eu=0|s[8],ed=8191&eu,eh=eu>>>13,ep=0|s[9],ef=8191&ep,em=ep>>>13;r.negative=e.negative^t.negative,r.length=19;var eg=(c+(n=Math.imul(d,H))|0)+((8191&(i=(i=Math.imul(d,z))+Math.imul(h,H)|0))<<13)|0;c=((o=Math.imul(h,z))+(i>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(f,H),i=(i=Math.imul(f,z))+Math.imul(m,H)|0,o=Math.imul(m,z);var ey=(c+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(h,q)|0))<<13)|0;c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(y,H),i=(i=Math.imul(y,z))+Math.imul(v,H)|0,o=Math.imul(v,z),n=n+Math.imul(f,q)|0,i=(i=i+Math.imul(f,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0;var ev=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(_,H),i=(i=Math.imul(_,z))+Math.imul(w,H)|0,o=Math.imul(w,z),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,W)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0;var eb=(c+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,J)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(k,H),i=(i=Math.imul(k,z))+Math.imul(x,H)|0,o=Math.imul(x,z),n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(f,Y)|0,i=(i=i+Math.imul(f,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var e_=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(T,H),i=(i=Math.imul(T,z))+Math.imul(A,H)|0,o=Math.imul(A,z),n=n+Math.imul(k,q)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var ew=(c+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0))<<13)|0;c=((o=o+Math.imul(h,en)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(P,H),i=(i=Math.imul(P,z))+Math.imul(I,H)|0,o=Math.imul(I,z),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(x,G)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(f,er)|0,i=(i=i+Math.imul(f,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0;var eS=(c+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(h,eo)|0))<<13)|0;c=((o=o+Math.imul(h,ea)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,z))+Math.imul(D,H)|0,o=Math.imul(D,z),n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(I,q)|0,o=o+Math.imul(I,W)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,en)|0)+Math.imul(v,er)|0,o=o+Math.imul(v,en)|0,n=n+Math.imul(f,eo)|0,i=(i=i+Math.imul(f,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0;var ek=(c+(n=n+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,ec)|0)+Math.imul(h,el)|0))<<13)|0;c=((o=o+Math.imul(h,ec)|0)+(i>>>13)|0)+(ek>>>
vendor: 8,831 bytes, line 50
5026)|0,ek&=67108863,n=Math.imul(L,H),i=(i=Math.imul(L,z))+Math.imul(M,H)|0,o=Math.imul(M,z),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,ea)|0)+Math.imul(v,eo)|0,o=o+Math.imul(v,ea)|0,n=n+Math.imul(f,el)|0,i=(i=i+Math.imul(f,ec)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,ec)|0;var ex=(c+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;c=((o=o+Math.imul(h,eh)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,z))+Math.imul(U,H)|0,o=Math.imul(U,z),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,W)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(k,er)|0,i=(i=i+Math.imul(k,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,ec)|0)+Math.imul(v,el)|0,o=o+Math.imul(v,ec)|0,n=n+Math.imul(f,ed)|0,i=(i=i+Math.imul(f,eh)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,eh)|0;var eE=(c+(n=n+Math.imul(d,ef)|0)|0)+((8191&(i=(i=i+Math.imul(d,em)|0)+Math.imul(h,ef)|0))<<13)|0;c=((o=o+Math.imul(h,em)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,W))+Math.imul(U,q)|0,o=Math.imul(U,W),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(k,eo)|0,i=(i=i+Math.imul(k,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(_,el)|0,i=(i=i+Math.imul(_,ec)|0)+Math.imul(w,el)|0,o=o+Math.imul(w,ec)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,eh)|0)+Math.imul(v,ed)|0,o=o+Math.imul(v,eh)|0;var eT=(c+(n=n+Math.imul(f,ef)|0)|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(m,ef)|0))<<13)|0;c=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(B,G),i=(i=Math.imul(B,K))+Math.imul(U,G)|0,o=Math.imul(U,K),n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(I,er)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(k,el)|0,i=(i=i+Math.imul(k,ec)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(_,ed)|0,i=(i=i+Math.imul(_,eh)|0)+Math.imul(w,ed)|0,o=o+Math.imul(w,eh)|0;var eA=(c+(n=n+Math.imul(y,ef)|0)|0)+((8191&(i=(i=i+Math.imul(y,em)|0)+Math.imul(v,ef)|0))<<13)|0;c=((o=o+Math.imul(v,em)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,J))+Math.imul(U,Y)|0,o=Math.imul(U,J),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(P,eo)|0,i=(i=i+Math.imul(P,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,n=n+Math.imul(T,el)|0,i=(i=i+Math.imul(T,ec)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,ec)|0,n=n+Math.imul(k,ed)|0,i=(i=i+Math.imul(k,eh)|0)+Math.imul(x,ed)|0,o=o+Math.imul(x,eh)|0;var eC=(c+(n=n+Math.imul(_,ef)|0)|0)+((8191&(i=(i=i+Math.imul(_,em)|0)+Math.imul(w,ef)|0))<<13)|0;c=((o=o+Math.imul(w,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(L,er)|0,i=(i=i+Math.imul(L,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(P,el)|0,i=(i=i+Math.imul(P,ec)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,ec)|0,n=n+Math.imul(T,ed)|0,i=(i=i+Math.imul(T,eh)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,eh)|0;var eP=(c+(n=n+Math.imul(k,ef)|0)|0)+((8191&(i=(i=i+Math.imul(k,em)|0)+Math.imul(x,ef)|0))<<13)|0;c=((o=o+Math.imul(x,em)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(B,er),i=(i=Math.imul(B,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(L,eo)|0,i=(i=i+Math.imul(L,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(P,ed)|0,i=(i=i+Math.imul(P,eh)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,eh)|0;var eI=(c+(n=n+Math.imul(T,ef)|0)|0)+((8191&(i=(i=i+Math.imul(T,em)|0)+Math.imul(A,ef)|0))<<13)|0;c=((o=o+Math.imul(A,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(B,eo),i=(i=Math.imul(B,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(L,el)|0,i=(i=i+Math.imul(L,ec)|0)+Math.imul(M,el)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,eh)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,eh)|0;var eO=(c+(n=n+Math.imul(P,ef)|0)|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(I,ef)|0))<<13)|0;c=((o=o+Math.imul(I,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(B,el),i=(i=Math.imul(B,ec))+Math.imul(U,el)|0,o=Math.imul(U,ec),n=n+Math.imul(L,ed)|0,i=(i=i+Math.imul(L,eh)|0)+Math.imul(M,ed)|0,o=o+Math.imul(M,eh)|0;var eN=(c+(n=n+Math.imul(N,ef)|0)|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(D,ef)|0))<<13)|0;c=((o=o+Math.imul(D,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,n=Math.imul(B,ed),i=(i=Math.imul(B,eh))+Math.imul(U,ed)|0,o=Math.imul(U,eh);var eD=(c+(n=n+Math.imul(L,ef)|0)|0)+((8191&(i=(i=i+Math.imul(L,em)|0)+Math.imul(M,ef)|0))<<13)|0;c=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eD>>>26)|0,eD&=67108863;var eR=(c+(n=Math.imul(B,ef))|0)+((8191&(i=(i=Math.imul(B,em))+Math.imul(U,ef)|0))<<13)|0;return c=((o=Math.imul(U,em))+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,l[0]=eg,l[1]=ey,l[2]=ev,l[3]=eb,l[4]=e_,l[5]=ew,l[6]=eS,l[7]=ek,l[8]=ex,l[9]=eE,l[10]=eT,l[11]=eA,l[12]=eC,l[13]=eP,l[14]=eI,l[15]=eO,l[16]=eN,l[17]=eD,l[18]=eR,0!==c&&(l[19]=c,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;a=a+(d/67108864|0)|0,s=67108863&(h=h+s|0),i+=(a=a+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return v(e,t,r)}function _(e,t){this.x=e,this.y=t}Math.imul||(y=g),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):r<63?g(this,e,t):r<1024?v(this,e,t):b(this,e,t)},_.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},_.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},_.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},_.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,h=c,p=0;p<a;p++){var f=r[u+p],m=n[u+p],g=r[u+p+a],y=n[u+p+a],v=d*g-h*y;y=d*y+h*g,g=v,r[u+p]=f+g,n[u+p]=m+y,r[u+p+a]=f-g,n[u+p+a]=m-y,p!==s&&(v=l*d-c*h,h=l*h+c*d,d=v)}},_.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},_.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},_.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},_.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},_.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),l=Array(n),c=Array(n),u=Array(n),d=Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,d,n,i);for(var p=0;p<n;
vendor: 4,494 bytes, line 50
50p++){var f=s[p]*u[p]-l[p]*d[p];l[p]=s[p]*d[p]+l[p]*u[p],s[p]=f}return this.conjugate(s,l,n),this.transform(s,l,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=m(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 10,347 bytes, line 50
5026,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var l=i.length-a.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=i.clone()._ishlnsubmul(a,1,l);0===u.negative&&(i=u,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(h=Math.min(h/s|0,67108863),i._ishlnsubmul(a,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=h)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;(t.words[0]&p)==0&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var f=0,m=1;(r.words[0]&m)==0&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;(r.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;(i.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function S(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}S.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},S.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},S.prototype.split=function(e,t){e.iushrn(this.n,0,t)},S.prototype.imulK=function(e){return e.imul(this.k)},i(k,S),k.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,S),i(E,S),i(T,S),T.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
vendor: 6,070 bytes, line 50
50r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(w[e])return w[e];if("k256"===e)t=new k;else if("p224"===e)t=new x;else if("p192"===e)t=new E;else if("p25519"===e)t=new T;else throw Error("Unknown prime "+e);return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=a;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<f);var y=this.pow(d,new o(1).iushln(f-g-1));h=h.redMul(y),d=y.redSqr(),p=p.redMul(d),f=g}return h},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,l=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],d=c-1;d>=0;d--){var h=u>>d&1;if(a!==n[0]&&(a=this.sqr(a)),0===h&&0===s){l=0;continue}s<<=1,s|=h,(++l===r||0===i&&0===d)&&(a=this.mul(a,n[s]),l=0,s=0)}c=26}return a},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new C(e)},i(C,A),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(6113);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},1387:function(e,t,r){var n=r(6911).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,r,n,i){for(var o,a,s,l,c=r[0],u=r[1],d=r[2],h=r[3],p=e[0]^t[0],f=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],y=4,v=1;v<i;v++)o=c[p>>>24]^u[f>>>16&255]^d[m>>>8&255]^h[255&g]^t[y++],a=c[f>>>24]^u[m>>>16&255]^d[g>>>8&255]^h[255&p]^t[y++],s=c[m>>>24]^u[g>>>16&255]^d[p>>>8&255]^h[255&f]^t[y++],l=c[g>>>24]^u[p>>>16&255]^d[f>>>8&255]^h[255&m]^t[y++],p=o,f=a,m=s,g=l;return o=(n[p>>>24]<<24|n[f>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[y++],a=(n[f>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&p])^t[y++],[o>>>=0,a>>>=0,s=((n[m>>>24]<<24|n[g>>>16&255]<<16|n[p>>>8&255]<<8|n[255&f])^t[y++])>>>0,l=((n[g>>>24]<<24|n[p>>>16&255]<<16|n[f>>>8&255]<<8|n[255&m])^t[y++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var u=e[a],d=e[u],h=e[d],p=257*e[c]^16843008*c;i[0][a]=p<<24|p>>>8,i[1][a]=p<<16|p>>>16,i[2][a]=p<<8|p>>>
5024,i[3][a]=p,p=16843009*h^65537*d^257*u^16843008*a,o[0][c]=p<<24|p>>>8,o[1][c]=p<<16|p>>>16,o[2][c]=p<<8|p>>>24,o[3][c]=p,0===a?a=s=1:(a=u^e[e[e[h^u]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=(l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],u=0;u<n;u++){var d=n-u,h=i[d-(u%4?0:4)];u<4||d<=4?c[u]=h:c[u]=l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},6624:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043),a=r(3782),s=r(7225),l=r(4734),c=r(598);function u(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}function d(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var l=8*o,u=i.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var d=i.from(e._finID);return c(d),d}function h(e,t,r,a){o.call(this);var l=i.alloc(4,0);this._cipher=new n.AES(t);var c=this._cipher.encryptBlock(l);this._ghash=new s(c),r=d(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(h,o),h.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&u(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},h.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=h},6594:function(e,t,r){var n=r(2),i=r(2598),o=r(5866);function a(){return Object.keys(o)}t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=a},2598:function(e,t,r){var n=r(6624),i=r(6911).Buffer,o=r(6370),a=r(126),s=r(1043),l=r(1387),c=r(8368);function u(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function p(e,t,r){var s=o[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new u(s.module,t,r)}function f(e,t){var r=o[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return p(e,n.key,n.iv)}r(3782)(u,s),u.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return h(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=f,t.createDecipheriv=p},2:function(e,t,r){var n=r(6370),i=r(6624),o=r(6911).Buffer,a=r(126),s=r(1043),l=r(1387),c=r(8368);function u(e,t,r){s.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3782)(u,s),u.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function p(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new u(s.module,t,r)}function f(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);
50return p(e,i.key,i.iv)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=o.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=p,t.createCipher=f},7225:function(e,t,r){var n=r(6911).Buffer,i=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=o(this.h),n=[0,0,0,0],i=-1;++i<128;){for((this.state[~~(i/8)]&1<<7-i%8)!=0&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),t=(1&r[3])!=0,e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-520093696^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},598:function(e){function t(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}e.exports=t},9825:function(e,t,r){var n=r(4734);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var n=r(6911).Buffer,i=r(4734);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},3147:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){for(var n,i,a,s=-1,l=8,c=0;++s<l;)n=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,c+=(128&(a=n[0]^i))>>s%8,e._prev=o(e._prev,r?i:a);return c}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},2430:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},3361:function(e,t,r){var n=r(4734),i=r(6911).Buffer,o=r(598);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var s=16;t.encrypt=function(e,t){var r=Math.ceil(t.length/s),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(r*s)]);for(var l=0;l<r;l++){var c=a(e),u=o+l*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var d=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,d)}},1590:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},6370:function(e,t,r){var n={ECB:r(1590),CBC:r(9825),CFB:r(321),CFB8:r(2430),CFB1:r(3147),OFB:r(3412),CTR:r(3361),GCM:r(3361)},i=r(5866);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},3412:function(e,t,r){var n=r(4734);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,o(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,r)}},126:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(3782)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},8996:function(e,t,r){var n=r(5238),i=r(6594),o=r(6370),a=r(6280),s=r(8368);function l(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return u(e,i.key,i.iv)}function c(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return d(e,i.key,i.iv)}function u(e,t,r){if(o[e=e.toLowerCase()])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function d(e,t,r){if(o[e=e.toLowerCase()])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function h(){return Object.keys(a).concat(i.getCiphers())}t.createCipher=t.Cipher=l,t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=c,t.createDecipheriv=t.Decipheriv=d,t.listCiphers=t.getCiphers=h},5238:function(e,t,r){var n=r(1043),i=r(9536),o=r(3782),a=r(6911).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),("des-ede"===r||"des-ede-cbc"===r)&&(o=a.concat([o,o.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=i.create({key:o,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=l,o(l,n),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},6280:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},7166:function(e,t,r){var n=r(711),o=r(7223);function a(e){var t=l(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=a(t),o=t.modulus.byteLength();n.mont(t.modulus);var s=new n(e).mul(r.blinder).umod(t.modulus),l=s.toRed(n.mont(t.prime1)),c=s.toRed(n.mont(t.prime2)),u=t.coefficient,d=t.prime1,h=t.prime2,p=l.redPow(t.exponent1),f=c.redPow(t.exponent2);p=p.fromRed(),f=f.fromRed();var m=p.isub(f).imul(u).umod(d);return m.imul(h),f.iadd(m),new i(f.imul(r.unblinder).umod(t.modulus).toArray(!1,o))}function l(e){for(var t=e.modulus.byteLength(),r=new n(o(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(o(t));return r}e.exports=s,s.getr=l},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var n=r(6911).Buffer,i=r(9739),o=r(3726),a=r(3782),s=r(9807),l=r(4013),c=r(2908);function u(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");
vendor: 6,071 bytes, line 50
50this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new u(e)}function p(e){return new d(e)}Object.keys(c).forEach(function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),a(u,o.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(d,o.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=n.from(t,r)),this.end(),l(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:h,Verify:p,createSign:h,createVerify:p}},9807:function(e,t,r){var n=r(6911).Buffer,i=r(4873),o=r(7166),a=r(949).ec,s=r(1670),l=r(9902),c=r(9267);function u(e,t,r,i,a){var s=l(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return d(e,s)}if("dsa"===s.type){if("dsa"!==i)throw Error("wrong private key type");return h(e,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");e=n.concat([a,e]);for(var c=s.modulus.byteLength(),u=[0,1];e.length+u.length+1<c;)u.push(255);u.push(0);for(var p=-1;++p<e.length;)u.push(e[p]);return o(u,s)}function d(e,t){var r=c[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}function h(e,t,r){for(var n,i=t.params.priv_key,o=t.params.p,a=t.params.q,l=t.params.g,c=new s(0),u=m(e,a).mod(a),d=!1,h=f(i,a,e,r);!1===d;)c=v(l,n=y(a,h,r),o,a),0===(d=n.invm(a).imul(u.add(i.mul(c))).mod(a)).cmpn(0)&&(d=!1,c=new s(0));return p(c,d)}function p(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function f(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,l=g(r,t),c=n.alloc(s);c.fill(1);var u=n.alloc(s);return u=i(o,u).update(c).update(n.from([0])).update(e).update(l).digest(),c=i(o,u).update(c).digest(),u=i(o,u).update(c).update(n.from([1])).update(e).update(l).digest(),c=i(o,u).update(c).digest(),{k:u,v:c}}function m(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function g(e,t){e=(e=m(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}function y(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=m(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function v(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=u,e.exports.getKey=f,e.exports.makeKey=y},4013:function(e,t,r){var n=r(6911).Buffer,i=r(1670),o=r(949).ec,a=r(9902),s=r(9267);function l(e,t,r,o,s){var l=a(r);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");return c(e,t,l)}if("dsa"===l.type){if("dsa"!==o)throw Error("wrong public key type");return u(e,t,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");t=n.concat([s,t]);for(var d=l.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<d;)h.push(255),p++;h.push(0);for(var f=-1;++f<t.length;)h.push(t[f]);h=n.from(h);var m=i.mont(l.modulus);e=(e=new i(e).toRed(m)).redPow(new i(l.publicExponent));var g=p<8?1:0;for(d=Math.min((e=n.from(e.fromRed().toArray())).length,h.length),e.length!==h.length&&(g=1),f=-1;++f<d;)g|=e[f]^h[f];return 0===g}function c(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}function u(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,l=r.data.pub_key,c=a.signature.decode(e,"der"),u=c.s,h=c.r;d(u,o),d(h,o);var p=i.mont(n),f=u.invm(o);return 0===s.toRed(p).redPow(new i(t).mul(f).mod(o)).fromRed().mul(l.toRed(p).redPow(h.mul(f).mod(o)).fromRed()).mod(n).mod(o).cmp(h)}function d(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=l},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i(r),o=0;o<r;++o)n[o]=e[o]^t[o];return n}},1043:function(e,t,r){var n=r(6911).Buffer,i=r(2781).Transform,o=r(1576).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3782)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a}
vendor: 7,082 bytes, line 50
50,9942:function(e,t,r){var n=r(949),o=r(711);e.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function l(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new i(e);if(r&&n.length<r){var o=new i(r-n.length);o.fill(0),n=i.concat([o,n])}return t?n.toString(t):n}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),l(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),l(r,e)},s.prototype.getPrivateKey=function(e){return l(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",i.isBuffer(e)||(e=new i(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},9739:function(e,t,r){"use strict";var n=r(3782),i=r(3533),o=r(3225),a=r(4371),s=r(1043);function l(e){s.call(this,"digest"),this._hash=e}n(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new l(a(e))}},450:function(e,t,r){var n=r(3533);e.exports=function(e){return(new n).update(e).digest()}},4873:function(e,t,r){"use strict";var n=r(3782),i=r(8119),o=r(1043),a=r(6911).Buffer,s=r(450),l=r(3225),c=r(4371),u=a.alloc(128);function d(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,u],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(d,o),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(s,t):new d(e,t)}},8119:function(e,t,r){"use strict";var n=r(3782),i=r(6911).Buffer,o=r(1043),a=i.alloc(128),s=64;function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),l=0;l<s;l++)r[l]=54^t[l],n[l]=92^t[l];this._hash=[r]}n(l,o),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=l},9536:function(e,t,r){"use strict";t.utils=r(5334),t.Cipher=r(9876),t.DES=r(1016),t.CBC=r(8641),t.EDE=r(6159)},8641:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function s(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t}t.instantiate=s,o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(var s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(var s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(var s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},9876:function(e,t,r){"use strict";var n=r(3523);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},1016:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(5334),a=r(9876);function s(){this.tmp=[,,],this.keys=null}function l(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(l,a),e.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},l.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt
50(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},l.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];o.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),h=o.permute(d),p=s;s=(a^h)>>>0,a=p}o.rip(s,a,n,i)},l.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];o.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),h=o.permute(d),p=a;a=(s^h)>>>0,s=p}o.rip(a,s,n,i)}},6159:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(9876),a=r(1016);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function l(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(l,o),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,l=0;l<s;l++)o<<=1,o|=e>>>r[l]&1;for(var l=s;l<r.length;l++)a<<=1,a|=t>>>r[l]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},6587:function(e,t,r){var n=r(296),o=r(7992),a=r(373);function s(e){return new a(new i(o[e].prime,"hex"),new i(o[e].gen,"hex"))}var l={binary:!0,hex:!0,base64:!0};function c(e,t,r,o){return i.isBuffer(t)||void 0===l[t]?c(e,"binary",t,r):(t=t||"b
50inary",o=o||"binary",r=r||new i([2]),i.isBuffer(r)||(r=new i(r,o)),"number"==typeof e)?new a(n(e,r),r,!0):(i.isBuffer(e)||(e=new i(e,t)),new a(e,r,!0))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=s,t.createDiffieHellman=t.DiffieHellman=c},373:function(e,t,r){var n=r(711),o=new(r(1354)),a=new n(24),s=new n(11),l=new n(10),c=new n(3),u=new n(7),d=r(296),h=r(7223);function p(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._pub=new n(e),this}function f(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._priv=new n(e),this}e.exports=y;var m={};function g(e,t){var r,n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in m)return m[i];var h=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!o.test(e))return h+=1,"02"===n||"05"===n?h+=8:h+=4,m[i]=h,h;switch(o.test(e.shrn(1))||(h+=2),n){case"02":e.mod(a).cmp(s)&&(h+=8);break;case"05":(r=e.mod(l)).cmp(c)&&r.cmp(u)&&(h+=8);break;default:h+=4}return m[i]=h,h}function y(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=p,this.setPrivateKey=f):this._primeCode=8}function v(e,t){var r=new i(e.toArray());return t?r.toString(t):r}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(e){var t=new i((e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(t.length<r.length){var o=new i(r.length-t.length);o.fill(0),t=i.concat([o,t])}return t},y.prototype.getPublicKey=function(e){return v(this._pub,e)},y.prototype.getPrivateKey=function(e){return v(this._priv,e)},y.prototype.getPrime=function(e){return v(this.__prime,e)},y.prototype.getGenerator=function(e){return v(this._gen,e)},y.prototype.setGenerator=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.__gen=e,this._gen=new n(e),this}},296:function(e,t,r){var n=r(7223);e.exports=v,v.simpleSieve=g,v.fermatTest=y;var i=r(711),o=new i(24),a=new(r(1354)),s=new i(1),l=new i(2),c=new i(5);new i(16),new i(8);var u=new i(10),d=new i(3);new i(7);var h=new i(11),p=new i(4);new i(12);var f=null;function m(){if(null!==f)return f;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;n<e;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<r&&t[o]<=i&&n%t[o]!=0;o++);r!==o&&t[o]<=i||(t[r++]=n)}return f=t,t}function g(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r])){if(0!==e.cmpn(t[r]))return!1;break}return!0}function y(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){var r,f;if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(u).cmp(d);)r.iadd(p)}else for(;r.mod(o).cmp(h);)r.iadd(p);if(g(f=r.shrn(1))&&g(r)&&y(f)&&y(r)&&a.test(f)&&a.test(r))return r}}},949:function(e,t,r){"use strict";var n=t;n.version=r(2531).i8,n.utils=r(4401),n.rand=r(3500),n.curve=r(9359),n.curves=r(6226),n.ec=r(4088),n.eddsa=r(8511)},2727:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw Error("Not implemented")},l.prototype.validate=function(){throw Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],l=0;l<n.length;l+=r.step){for(var c=0,t=l+r.step-1;t>=l;t--)c=(c<<1)+n[t];a.push(c)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(var l=0;l<a.length;l++){var c=a[l];c===h?d=d.mixedAdd(r.points[l]):c===-h&&(d=d.mixedAdd(r.points[l].neg()))}u=u.add(d)}return u.toP()},l.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),l=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,l=l.dblp(t),c<0)break;var u=a[c];s(0!==u),l="affine"===e.type?u>0?l.mixedAdd(i[u-1>>1]):l.mixedAdd(i[-u-1>>1].neg()):u>0?l.add(i[u-1>>1]):l.add(i[-u-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,l=this._wnafT2,c=this._wnafT3,u=0,d=0;d<n;
vendor: 15,440 bytes, line 50
50d++){var h=t[d],p=h._getNAFPoints(e);s[d]=p.wnd,l[d]=p.points}for(var d=n-1;d>=1;d-=2){var f=d-1,m=d;if(1!==s[f]||1!==s[m]){c[f]=o(r[f],s[f],this._bitLength),c[m]=o(r[m],s[m],this._bitLength),u=Math.max(c[f].length,u),u=Math.max(c[m].length,u);continue}var g=[t[f],null,null,t[m]];0===t[f].y.cmp(t[m].y)?(g[1]=t[f].add(t[m]),g[2]=t[f].toJ().mixedAdd(t[m].neg())):0===t[f].y.cmp(t[m].y.redNeg())?(g[1]=t[f].toJ().mixedAdd(t[m]),g[2]=t[f].add(t[m].neg())):(g[1]=t[f].toJ().mixedAdd(t[m]),g[2]=t[f].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[f],r[m]);u=Math.max(v[0].length,u),c[f]=Array(u),c[m]=Array(u);for(var b=0;b<u;b++){var _=0|v[0][b],w=0|v[1][b];c[f][b]=y[(_+1)*3+(w+1)],c[m][b]=0,l[f]=g}}for(var S=this.jpoint(null,null,null),k=this._wnafT4,d=u;d>=0;d--){for(var x=0;d>=0;){for(var E=!0,b=0;b<n;b++)k[b]=0|c[b][d],0!==k[b]&&(E=!1);if(!E)break;x++,d--}if(d>=0&&x++,S=S.dblp(x),d<0)break;for(var b=0;b<n;b++){var h,T=k[b];0!==T&&(T>0?h=l[b][T-1>>1]:T<0&&(h=l[b][-T-1>>1].neg()),S="affine"===h.type?S.mixedAdd(h):S.add(h))}}for(var d=0;d<n;d++)l[d]=null;return i?S:S.toP()},l.BasePoint=c,c.prototype.eq=function(){throw Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},2705:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function l(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(l,a),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),l=i.redMul(a),c=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var l=this.z.redSqr(),c=s.redSub(l).redISub(l);e=n.redSub(i).redISub(o).redMul(c),t=s.redMul(a.redSub(o)),r=s.redMul(c)}}else{var a=i.redAdd(o),l=this.curve._mulC(this.z).redSqr(),c=a.redSub(l).redSub(l);e=this.curve._mulC(n.redISub(a)).redMul(c),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(c)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),l=r.redAdd(t),c=o.redMul(a),u=s.redMul(l),d=o.redMul(l),h=a.redMul(s);return this.curve.point(c,u,h,d)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=l.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},9359:function(e,t,r){"use strict";var n=t;n.base=r(2727),n.short=r(4720),n.mont=r(6653),n.edwards=r(2705)},6653:function(e,t,r){"use strict";var n=r(711),i=r(3782),o=r(2727),a=r(4401);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(l,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},l.prototype.add=function(){throw Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},l.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function l(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(l,a),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,p=this.n.clone(),f=new i(1),m=new i(0),g=new i(0),y=new i(1),v=0;0!==h.cmpn(0);){var b=p.div(h);c=p.sub(b.mul(h)),u=g.sub(b.mul(f));var _=y.sub(b.mul(m));if(!n&&0>c.cmp(d))t=l.neg(),r=f,n=c.neg(),o=u;else if(n&&2==++v)break;l=c,p=h,h=c,g=f,f=u,y=m,m=_}a=c.neg(),s=u;var w=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),l=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),n[2*o]=s,n[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},o(c,a.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 4,158 bytes, line 50
50omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),p=l.redMul(d.redISub(h)).redISub(o.redMul(u)),f=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,p,f)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;
vendor: 4,062 bytes, line 50
50var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=r.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(c)),p=this.z.redMul(a);return this.curve.jpoint(d,h,p)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}for(var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a),r=0;r<e;r++){var u=o.redSqr(),d=c.redSqr(),h=d.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),f=o.redMul(d),m=p.redSqr().redISub(f.redAdd(f)),g=f.redISub(m),y=p.redMul(g);y=y.redIAdd(y).redISub(h);var v=c.redMul(s);r+1<e&&(l=l.redMul(h)),o=m,s=v,c=y}return this.curve.jpoint(o,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),p=this.x.redAdd(d).redSqr().redISub(u).redISub(h);p=p.redIAdd(p);var f=u.redAdd(u).redIAdd(u),m=f.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(p).redISub(p),t=f.redMul(p.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var f=h.redIAdd(h),m=(f=f.redIAdd(f)).redAdd(f);e=p.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=p.redMul(f.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=s.redMul(d).redISub(h),f=r.redAdd(r).redMul(n);return this.curve.jpoint(u,p,f)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,h,p)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 5,347 bytes, line 50
50,u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var n,i=t,o=r(7028),a=r(9359),s=r(4401).assert;function l(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(9702)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
50,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4088:function(e,t,r){"use strict";var n=r(711),i=r(4910),o=r(4401),a=r(6226),s=r(3500),l=o.assert,c=r(4724),u=r(7526);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),l=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),h=0;;h++){var p=o.k?o.k(h):new n(c.generate(this.n.byteLength()));if(!(0>=(p=this._truncateToN(p,!0)).cmpn(1)||p.cmp(d)>=0)){var f=this.g.mul(p);if(!f.isInfinity()){var m=f.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var y=p.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(f.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new u({r:g,s:y,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(l,r.getPublic(),c);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(o)}var d=this.g.jmulAdd(l,r.getPublic(),c);return!d.isInfinity()&&d.eqXToP(o)},d.prototype.recoverPubKey=function(e,t,r,i){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,d=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var p=t.r.invm(o),f=o.sub(a).mul(p).umod(o),m=c.mul(p).umod(o);return this.g.mulAdd(f,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var n=r(711),i=r(4401).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=l(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=l(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u||e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}
vendor: 4,425 bytes, line 50
50if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(c),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,r){"use strict";var n=r(7028),i=r(6226),o=r(4401),a=o.assert,s=o.parseBytes,l=r(9917),c=r(9314);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);var e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),l=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},9917:function(e,t,r){"use strict";var n=r(4401),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},9314:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},9702:function(e
vendor: 26,140 bytes, line 50
50){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
504401:function(e,t,r){"use strict";var n=t,i=r(711),o=r(3523),a=r(6545);function s(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n}function l(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s=e.andln(3)+n&3,l=t.andln(3)+i&3;if(3===s&&(s=-1),3===l&&(l=-1),(1&s)==0)o=0;else{var c=e.andln(7)+n&7;o=(3===c||5===c)&&2===l?-s:s}if(r[0].push(o),(1&l)==0)a=0;else{var c=t.andln(7)+i&7;a=(3===c||5===c)&&2===s?-l:l}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function c(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function u(e){return"string"==typeof e?n.toArray(e,"hex"):e}function d(e){return new i(e,"hex","le")}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=s,n.getJSF=l,n.cachedProperty=c,n.parseBytes=u,n.intFromLE=d},8368:function(e,t,r){var n=r(6911).Buffer,i=r(3533);function o(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),l=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(a>0){var h=s.length-a;d=Math.min(a,c.length),c.copy(s,h,0,d),a-=d}if(d<c.length&&o>0){var p=l.length-o,f=Math.min(o,c.length-d);c.copy(l,p,d,d+f),o-=f}}return c.fill(0),{key:s,iv:l}}e.exports=o},9029:function(e,t,r){"use strict";var n=r(6911).Buffer,i=r(3726).Transform;function o(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(o(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,l=8*e.length;l>0;++s)this._length[s]+=l,(l=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*l);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},7028:function(e,t,r){var n=t;n.utils=r(263),n.common=r(1330),n.sha=r(301),n.ripemd=r(3079),n.hmac=r(3092),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1330:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
vendor: 9,424 bytes, line 50
50t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},3092:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=(new this.Hash).update(e);t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},3079:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],v=r,b=n,_=i,w=c,S=u,k=0;k<80;k++){var x=a(o(l(r,d(k,n,i,c),e[f[k]+t],h(k)),g[k]),u);r=u,u=c,c=o(i,10),i=n,n=x,x=a(o(l(v,d(79-k,b,_,w),e[m[k]+t],p(k)),y[k]),S),v=S,S=w,w=o(_,10),_=b,b=x}x=s(this.h[1],i,w),this.h[1]=s(this.h[2],c,S),this.h[2]=s(this.h[3],u,v),this.h[3]=s(this.h[4],r,b),this.h[4]=s(this.h[0],n,_),this.h[0]=x},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},301:function(e,t,r){"use strict";t.sha1=r(2742),t.sha224=r(7105),t.sha256=r(1525),t.sha384=r(9948),t.sha512=r(1319)},2742:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=n.rotl32,s=n.sum32,l=n.sum32_5,c=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],h=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var f=~~(n/20),m=l(a(i,5),c(f,o,u,h),p,r[n],d[f]);p=h,h=u,u=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],p)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7105:function(e,t,r){"use strict";var n=r(263),i=r(1525);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},1525:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=r(3523),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=o.ch32,d=o.maj32,h=o.s0_256,p=o.s1_256,f=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],f(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],y=this.h[3],v=this.h[4],b=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var S=c(w,p(v),u(v,b,_),this.k[n],r[n]),k=s(h(i),d(i,o,g));w=_,_=b,b=v,v=s(y,S),y=g,g=o,o=i,i=s(S,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],w)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},9948:function(e,t,r){"use strict";var n=r(263),i=r(1319);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},1319:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(3523),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,h=n.sum64_lo,p=n.sum64_4_hi,f=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,y=i.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
501126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=Array(160)}function _(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function S(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function k(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function x(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function C(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(b,y),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=I(r[n-4],r[n-3]),o=O(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=C(r[n-30],r[n-29]),c=P(r[n-30],r[n-29]),u=r[n-32],d=r[n-31];r[n]=p(i,o,a,s,l,c,u,d),r[n+1]=f(i,o,a,s,l,c,u,d)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],p=this.h[6],f=this.h[7],y=this.h[8],v=this.h[9],b=this.h[10],C=this.h[11],P=this.h[12],I=this.h[13],O=this.h[14],N=this.h[15];o(this.k.length===r.length);for(var D=0;D<r.length;D+=2){var R=O,L=N,M=T(y,v),j=A(y,v),B=_(y,v,b,C,P,I),U=w(y,v,b,C,P,I),F=this.k[D],H=this.k[D+1],z=r[D],$=r[D+1],q=m(R,L,M,j,B,U,F,H,z,$),W=g(R,L,M,j,B,U,F,H,z,$);R=x(n,i);var V=d(R,L=E(n,i),M=S(n,i,a,s,l,c),j=k(n,i,a,s,l,c)),G=h(R,L,M,j);O=P,N=I,P=b,I=C,b=y,C=v,y=d(p,f,q,W),v=h(f,f,q,W),p=l,f=c,l=a,c=s,a=n,s=i,n=d(q,W,V,G),i=h(q,W,V,G)}u(this.h,0,n,i),u(this.h,2,a,s),u(this.h,4,l,c),u(this.h,6,p,f),u(this.h,8,y,v),u(this.h,10,b,C),u(this.h,12,P,I),u(this.h,14,O,N)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},2975:function(e,t,r){"use strict";var n=r(263).rotr32;function i(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?s(t,r,n):2===e?a(t,r,n):void 0}function o(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}function l(e){return n(e,2)^n(e,13)^n(e,22)}function c(e){return n(e,6)^n(e,11)^n(e,25)}function u(e){return n(e,7)^n(e,18)^e>>>3}function d(e){return n(e,17)^n(e,19)^e>>>10}t.ft_1=i,t.ch32=o,t.maj32=a,t.p32=s,t.s0_256=l,t.s1_256=c,t.g0_256=u,t.g1_256=d},263:function(e,t,r){"use strict";var n=r(3523),i=r(3782);function o(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function a(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:(o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r}function s(e){for(var t="",r=0;r<e.length;r++)t+=u(e[r].toString(16));return t}function l(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=l(i)),r+=d(i.toString(16))}return r}function u(e){return 1===e.length?"0"+e:e}function d(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}function h(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),l=0,c=t;l<s.length;l++,c+=4)o="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[l]=o>>>0;return s}function p(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function f(e,t){return e>>>t|e<<32-t}function m(e,t){return e<<t|e>>>32-t}function g(e,t){return e+t>>>0}function y(e,t,r){return e+t+r>>>0}function v(e,t,r,n){return e+t+r+n>>>0}function b(e,t,r,n,i){return e+t+r+n+i>>>0}function _(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>
500,e[t+1]=o}function w(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0}function S(e,t,r,n){return t+n>>>0}function k(e,t,r,n,i,o,a,s){var l,c=t;return e+r+i+a+(l=0+((c=c+n>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+s>>>0)<s?1:0))>>>0}function x(e,t,r,n,i,o,a,s){return t+n+o+s>>>0}function E(e,t,r,n,i,o,a,s,l,c){var u,d=t;return e+r+i+a+l+(u=0+((d=d+n>>>0)<t?1:0)+((d=d+o>>>0)<o?1:0)+((d=d+s>>>0)<s?1:0)+((d=d+c>>>0)<c?1:0))>>>0}function T(e,t,r,n,i,o,a,s,l,c){return t+n+o+s+c>>>0}function A(e,t,r){return(t<<32-r|e>>>r)>>>0}function C(e,t,r){return(e<<32-r|t>>>r)>>>0}function P(e,t,r){return e>>>r}function I(e,t,r){return(e<<32-r|t>>>r)>>>0}t.inherits=i,t.toArray=a,t.toHex=s,t.htonl=l,t.toHex32=c,t.zero2=u,t.zero8=d,t.join32=h,t.split32=p,t.rotr32=f,t.rotl32=m,t.sum32=g,t.sum32_3=y,t.sum32_4=v,t.sum32_5=b,t.sum64=_,t.sum64_hi=w,t.sum64_lo=S,t.sum64_4_hi=k,t.sum64_4_lo=x,t.sum64_5_hi=E,t.sum64_5_lo=T,t.rotr64_hi=A,t.rotr64_lo=C,t.shr64_hi=P,t.shr64_lo=I},4910:function(e,t,r){"use strict";var n=r(7028),i=r(6545),o=r(3523);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},3782:function(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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3533:function(e,t,r){"use strict";var n=r(3782),i=r(9029),o=r(6911).Buffer,a=Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return l(e+(t&r|~t&n)+i+o|0,a)+t|0}function u(e,t,r,n,i,o,a){return l(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return l(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return l(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),n=c(n,i,o,r,e[15],1236535329,22),r=u(r,n,i,o,e[1],4129170786,5),o=u(o,r,n,i,e[6],3225465664,9),i=u(i,o,r,n,e[11],643717713,14),n=u(n,i,o,r,e[0],3921069994,20),r=u(r,n,i,o,e[5],3593408605,5),o=u(o,r,n,i,e[10],38016083,9),i=u(i,o,r,n,e[15],3634488961,14),n=u(n,i,o,r,e[4],3889429448,20),r=u(r,n,i,o,e[9],568446438,5),o=u(o,r,n,i,e[14],3275163606,9),i=u(i,o,r,n,e[3],4107603335,14),n=u(n,i,o,r,e[8],1163531501,20),r=u(r,n,i,o,e[13],2850285829,5),o=u(o,r,n,i,e[2],4243563512,9),i=u(i,o,r,n,e[7],1735328473,14),n=u(n,i,o,r,e[12],2368359562,20),r=d(r,n,i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),n=d(n,i,o,r,e[2],3299628645,23),r=h(r,n,i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r
vendor: 6,686 bytes, line 50
50=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var n=r(711),i=r(3500);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0);return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(o),d=!0;t>0;t--){var h=this._randrange(new n(2),s);r&&r(h);var p=h.toRed(o).redPow(c);if(0!==p.cmp(a)&&0!==p.cmp(u)){for(var f=1;f<l;f++){if(0===(p=p.redSqr()).cmp(a))return!1;if(0===p.cmp(u))break}if(f===l)return!1}}return d},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var l=e.shrn(s),c=a.toRed(i);t>0;t--){var u=this._randrange(new n(2),a),d=e.gcd(u);if(0!==d.cmpn(1))return d;var h=u.toRed(i).redPow(l);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var p=1;p<s;p++){if(0===(h=h.redSqr()).cmp(o))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(p===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},3523:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},6545:function(e,t){"use strict";var r=t;function n(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r}function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}r.toArray=n,r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},8687:function(e,t,r){"use strict";var n=r(7160);t.certificate=r(8782);var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=a;var s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),l=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=l;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=c;var u=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=u,t.DSAparam=n.define("DSAparam",function(){this.int()});var d=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(e,t,r){"use strict";var n=r(7160),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),l=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(l)}),u=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),d=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}
50),f=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});e.exports=f},6501:function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=r(8368),s=r(6594),l=r(6911).Buffer;e.exports=function(e,t){var r,c=e.toString(),u=c.match(n);if(u){var d="aes"+u[1],h=l.from(u[2],"hex"),p=l.from(u[3].replace(/[\r\n]/g,""),"base64"),f=a(t,h.slice(0,8),parseInt(u[1],10)).key,m=[],g=s.createDecipheriv(d,f,h);m.push(g.update(p)),m.push(g.final()),r=l.concat(m)}else r=new l(c.match(o)[2].replace(/[\r\n]/g,""),"base64");return{tag:c.match(i)[1],data:r}}},9902:function(e,t,r){var n=r(8687),i=r(2510),o=r(6501),a=r(6594),s=r(4978),l=r(6911).Buffer;function c(e){"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var t,r,i,a=o(e,t),s=a.tag,c=a.data;switch(s){case"CERTIFICATE":i=n.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=n.PublicKey.decode(c,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=n.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw Error("unknown key id "+r)}throw Error("unknown key type "+s);case"ENCRYPTED PRIVATE KEY":c=u(c=n.EncryptedPrivateKey.decode(c,"der"),t);case"PRIVATE KEY":switch(r=(i=n.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:n.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=n.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw Error("unknown key id "+r)}throw Error("unknown key type "+s);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=n.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw Error("unknown key type "+s)}}function u(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,h=s.pbkdf2Sync(t,r,n,d,"sha1"),p=a.createDecipheriv(o,h,c),f=[];return f.push(p.update(u)),f.push(p.final()),l.concat(f)}e.exports=c,c.signature=n.signature},4978:function(e,t,r){var n=r(6113),i=r(5349),o=r(7007),a=r(5407);function s(e,t,r,s,l,c){if(i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),"function"==typeof l&&(c=l,l="sha1"),"function"!=typeof c)throw Error("No callback provided to pbkdf2");return n.pbkdf2(e,t,r,s,l,c)}function l(e,t,r,s,l){return i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),l=l||"sha1",n.pbkdf2Sync(e,t,r,s,l)}n.pbkdf2Sync&&-1!==n.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=l,t.pbkdf2=s):(t.pbkdf2Sync=r(2127),t.pbkdf2=r(9601))},9601:function(e,t,n){var i,a=n(6911).Buffer,s=n(5349),l=n(7007),c=n(2127),u=n(5407),d=r.g.crypto&&r.g.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[];function f(e){if(r.g.process&&!r.g.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==p[e])return p[e];var t=m(i=i||a.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return p[e]=t,t}function m(e,t,r,n,i){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return a.from(e)})}function g(e,t){e.then(function(e){o.nextTick(function(){t(null,e)})},function(e){o.nextTick(function(){t(e)})})}
50e.exports=function(e,t,n,i,a,d){"function"==typeof a&&(d=a,a=void 0);var p=h[(a=a||"sha1").toLowerCase()];if(!p||"function"!=typeof r.g.Promise)return o.nextTick(function(){var r;try{r=c(e,t,n,i,a)}catch(e){return d(e)}d(null,r)});if(s(n,i),e=u(e,l,"Password"),t=u(t,l,"Salt"),"function"!=typeof d)throw Error("No callback provided to pbkdf2");g(f(p).then(function(r){return r?m(e,t,n,i,p):c(e,t,n,i,a)}),d)}},7007:function(e){var t;t="utf-8",e.exports=t},5349:function(e){var t=1073741823;e.exports=function(e,r){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof r)throw TypeError("Key length not a number");if(r<0||r>t||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=r(4873),o=r(6911).Buffer,a=r(5349),s=r(7007),l=r(5407);function c(e,t,r,c,u){a(r,c),e=l(e,s,"Password"),t=l(t,s,"Salt"),u=u||"sha1";var d=o.allocUnsafe(c),h=o.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,f=n[u],m=Math.ceil(c/f),g=1;g<=m;g++){h.writeUInt32BE(g,t.length);for(var y=i(u,e).update(h).digest(),v=y,b=1;b<r;b++){v=i(u,e).update(v).digest();for(var _=0;_<f;_++)y[_]^=v[_]}y.copy(d,p),p+=f}return d}e.exports=c},5407:function(e,t,r){var n=r(6911).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(e,t,r){t.publicEncrypt=r(3995),t.privateDecrypt=r(4366),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},5520:function(e,t,r){var n=r(9739),i=r(6911).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},4366:function(e,t,r){var n=r(9902),i=r(5520),o=r(6386),a=r(711),s=r(7166),l=r(9739),c=r(1607),u=r(6911).Buffer;function d(e,t){var r=e.modulus.byteLength(),n=l("sha1").update(u.alloc(0)).digest(),a=n.length;if(0!==t[0])throw Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),d=o(s,i(c,a)),h=o(c,i(d,r-a-1));if(p(n,h.slice(0,a)))throw Error("decryption error");for(var f=a;0===h[f];)f++;if(1!==h[f++])throw Error("decryption error");return h.slice(f)}function h(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function p(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}e.exports=function(e,t,r){i=e.padding?e.padding:r?1:4;var i,o,l=n(e),p=l.modulus.byteLength();if(t.length>p||new a(t).cmp(l.modulus)>=0)throw Error("decryption error");o=r?c(new a(t),l):s(t,l);var f=u.alloc(p-o.length);if(o=u.concat([f,o],p),4===i)return d(l,o);if(1===i)return h(l,o,r);if(3===i)return o;throw Error("unknown padding")}},3995:function(e,t,r){var n=r(9902),i=r(7223),o=r(9739),a=r(5520),s=r(6386),l=r(711),c=r(1607),u=r(7166),d=r(6911).Buffer;function h(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(d.alloc(0)).digest(),u=c.length,h=2*u;if(n>r-h-2)throw Error("message too long");var p=d.alloc(r-n-h-2),f=r-u-1,m=i(u),g=s(d.concat([c,p,d.alloc(1,1),t],f),a(m,f)),y=s(m,a(g,u));return new l(d.concat([d.alloc(1),y,g],r))}function p(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?d.alloc(o-i-3,255):f(o-i-3),new l(d.concat([d.from([0,r?1:2]),n,d.alloc(1),t],o))}function f(e){for(var t,r=d.allocUnsafe(e),n=0,o=i(2*e),a=0;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}e.exports=function(e,t,r){i=e.padding?e.padding:r?1:4;var i,o,a=n(e);if(4===i)o=h(a,t);else if(1===i)o=p(a,t,r);else if(3===i){if((o=new l(t)).cmp(a.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?u(o,a):c(o,a)}},1607:function(e,t,r){var n=r(711),i=r(6911).Buffer;function o(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}
50e.exports=o},6386:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},7223:function(e,t,n){"use strict";var i=65536,a=4294967295;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var l=n(6911).Buffer,c=r.g.crypto||r.g.msCrypto;function u(e,t){if(e>a)throw RangeError("requested too many random bytes");var r=l.allocUnsafe(e);if(e>0){if(e>i)for(var n=0;n<e;n+=i)c.getRandomValues(r.slice(n,n+i));else c.getRandomValues(r)}return"function"==typeof t?o.nextTick(function(){t(null,r)}):r}c&&c.getRandomValues?e.exports=u:e.exports=s},6445:function(e,t,n){"use strict";function i(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(6911);n(7223);var s=a.Buffer,l=a.kMaxLength,c=r.g.crypto||r.g.msCrypto,u=4294967295;function d(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>u||e<0)throw TypeError("offset must be a uint32");if(e>l||e>t)throw RangeError("offset out of range")}function h(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>u||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>l)throw RangeError("buffer too small")}function p(e,t,n,i){if(!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return d(t,e.length),h(n,t,e.length),f(e,t,n,i)}function f(e,t,r,n){var i=new Uint8Array(e.buffer,t,r);if(c.getRandomValues(i),n){o.nextTick(function(){n(null,e)});return}return e}function m(e,t,n){if(void 0===t&&(t=0),!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===n&&(n=e.length-t),h(n,t,e.length),f(e,t,n)}c&&c.getRandomValues?(t.randomFill=p,t.randomFillSync=m):(t.randomFill=i,t.randomFillSync=i)},4646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,l;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))l=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${s} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(1709),a=r(7337);r(3782)(u,i);for(var s=n(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||o.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},7889:function(e,t,r){"use strict";e.exports=i;var n=r(1170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},1709:function(e,t,n){"use strict";e.exports=P,P.ReadableState=C,n(2361).EventEmitter;var i,a,s,l,c,u=function(e,t){return e.listeners(t).length},d=n(4678),h=n(4300).Buffer,p=r.g.Uint8Array||function(){};function f(e){return h.from(e)}function m(e){return h.isBuffer(e)||e instanceof p}var g=n(3837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var y=n(4379),v=n(7025),b=n(6776).getHighWaterMark,_=n(4646).q,w=_.ERR_INVALID_ARG_TYPE,S=_.ERR_STREAM_PUSH_AFTER_EOF,k=_.ERR_METHOD_NOT_IMPLEMENT
vendor: 11,281 bytes, line 50
50ED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(3782)(P,d);var E=v.errorOrDestroy,T=["error","close","destroy","pause","resume"];function A(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function C(e,t,r){i=i||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(3704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function P(e){if(i=i||n(2403),!(this instanceof P))return new P(e);var t=this instanceof i;this._readableState=new C(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function I(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,M(e,s);else if(i||(o=N(s,t)),o)E(e,o);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=f(t)),n)s.endEmitted?E(e,new x):O(e,s,t,!0);else if(s.ended)E(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):U(e,s)):O(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),U(e,t)}function N(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),I(this,e,t,!1,r)},P.prototype.unshift=function(e){return I(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){s||(s=n(3704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var D=1073741824;function R(e){return e>=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function M(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function j(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function U(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function H(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,V(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){a("readable nexttick read 0"),e.read(0)}function q(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(W,e,t))}function W(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function G(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}P.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):j(this),null;if(0===(e=L(e,r))&&r.ended)return 0===r.length&&K(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=L(n,r))),null===(t=e>0?G(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){E(this,new k("_read()"))},P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?y:l;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function l(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var c=H(r);e.on("drain",c);var d=!1;function h(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",p),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function p(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Y(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){a("onerror",t),y(),e.removeListener("error",f),0===u(e,"error")&&E(e,t)}function m(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",p),A(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Y(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?j(this):n.reading||o.nextTick($,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(z,this),r},P.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(z,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},P.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<T.length;o++)e.on(T[o],this.emit.bind(this,T[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(6871)),l(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=G,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===c&&(c=n(9727)),c(P,e,t)})},1170:function(e,t,r){"use strict";e.exports=u;
vendor: 2,284 bytes, line 50
50var n=r(4646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(2403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(3782)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},7337:function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}e.exports=C,C.WritableState=A;var a,s,l={deprecate:n(6769)},c=n(4678),u=n(4300).Buffer,d=r.g.Uint8Array||function(){};function h(e){return u.from(e)}function p(e){return u.isBuffer(e)||e instanceof d}var f=n(7025),m=n(6776).getHighWaterMark,g=n(4646).q,y=g.ERR_INVALID_ARG_TYPE,v=g.E
vendor: 14,674 bytes, line 50
50RR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,S=g.ERR_STREAM_NULL_VALUES,k=g.ERR_STREAM_WRITE_AFTER_END,x=g.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function T(){}function A(e,t,r){a=a||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function C(e){var t=this instanceof(a=a||n(2403));if(!t&&!s.call(C,this))return new C(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function P(e,t){var r=new k;E(e,r),o.nextTick(t,r)}function I(e,t,r,n){var i;return null===r?i=new S:"string"==typeof r||t.objectMode||(i=new y("chunk",["string","Buffer"],r)),!i||(E(e,i),o.nextTick(n,i),!1)}function O(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function N(e,t,r,n,i,o){if(!r){var a=O(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else D(e,t,!1,s,n,i,o);return l}function D(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick($,e,t),e._writableState.errorEmitted=!0,E(e,n)):(i(n),e._writableState.errorEmitted=!0,E(e,n),$(e,t))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new b;if(L(r),t)R(e,r,n,t,i);else{var a=F(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?o.nextTick(j,e,r,a,i):j(e,r,a,i)}}function j(e,t,r,n){r||B(e,t),t.pendingcb--,n(),$(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,D(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(D(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function F(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function H(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),$(e,t)})}function z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(H,e,t)))}function $(e,t){var r=F(t);if(r&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function q(e,t,r){t.ending=!0,$(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(3782)(C,c),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===C&&e&&e._writableState instanceof A}})):s=function(e){return e instanceof this},C.prototype.pipe=function(){E(this,new _)},C.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&p(e);return o&&!u.isBuffer(e)&&(e=h(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=T),n.ending?P(this,r):(o||I(this,n,e,r))&&(n.pendingcb++,i=N(this,n,o,e,t,r)),i},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,r){r(new v("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||q(this,n,r),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=f.destroy,C.prototype._undestroy=f.undestroy,C.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(9698),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[p].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(f(r,!1)))}}function g(e){o.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[u]){r(f(void 0,!0));return}t[h](r,n)},n)}}var v=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n(i={get stream(){return this[p]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(f(void 0,!0));if(this[p].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[c]?r(t[c]):e(f(void 0,!0))})});var n=this[d];if(n)e=new Promise(y(n,this));else{var i=this[p].read();if(null!==i)return Promise.resolve(f(i,!1));e=new Promise(this[h])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(f(void 0,!0))})})}),i),v),_=function(e){var t,r=Object.create(b,(n(t={},p,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:e._readableState.endEmitted,writable:!0}),n(t,h,{value:function(e,t){var n=r[p].read();n?(r[d]=null,r[s]=null,r[l]=null,e(f(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(f(void 0,!0))),r[u]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=_},4379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(4300).Buffer,u=r(3837).inspect,d=u&&u.custom||"inspect";function h(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)h(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return u(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(n,i):(i._writableState.errorEmitted=!0,o.nextTick(r,i,e)):o.nextTick(r,i,e):t?(o.nextTick(n,i),t(e)):o.nextTick(n,i)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:i,errorOrDestroy:s}},9698:function(e,t,r){"use strict";var n=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||r.call(e)},p=e._readableState&&e._readableState.endEmitted,f=function(){l=!1,p=!0,c||r.call(e)},m=function(t){r.call(e,t)},g=function(){var t;return l&&!p?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",h)};return a(e)?(e.on("complete",h),e.on("abort",g),e.req?y():e.on("request",y)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",y),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",f),e.removeListener("error",m),e.removeListener("close",g)}}
50e.exports=s},9727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=r(4646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return u.apply(this,arguments)}function u(){return(u=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}e.exports=c},8442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(4646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(9698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function d(e){e()}function h(e,t){return e.pipe(t)}function p(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}function f(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return u(t,a,n>0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(h)}e.exports=f},6776:function(e,t,r){"use strict";var n=r(4646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var n=r(2781);"disable"===o.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(1709)).Stream=n||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var n=r(4300).Buffer,i=r(3782),o=r(9029),a=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function p(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,o,a,s){return f(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return f(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return f(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return f(e+(t&n|r&~n)+o+a|0,s)+i|0}
vendor: 7,568 bytes, line 50
50function b(e,t,r,n,i,o,a,s){return f(e+(t^(r|~n))+o+a|0,s)+i|0}i(p,o),p.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,p=0|this._c,_=0|this._d,w=0|this._e,S=0|this._a,k=0|this._b,x=0|this._c,E=0|this._d,T=0|this._e,A=0;A<80;A+=1)A<16?(e=m(i,o,p,_,w,r[s[A]],d[0],c[A]),t=b(S,k,x,E,T,r[l[A]],h[0],u[A])):A<32?(e=g(i,o,p,_,w,r[s[A]],d[1],c[A]),t=v(S,k,x,E,T,r[l[A]],h[1],u[A])):A<48?(e=y(i,o,p,_,w,r[s[A]],d[2],c[A]),t=y(S,k,x,E,T,r[l[A]],h[2],u[A])):A<64?(e=v(i,o,p,_,w,r[s[A]],d[3],c[A]),t=g(S,k,x,E,T,r[l[A]],h[3],u[A])):(e=b(i,o,p,_,w,r[s[A]],d[4],c[A]),t=m(S,k,x,E,T,r[l[A]],h[4],u[A])),i=w,w=_,_=f(p,10),p=o,o=e,S=T,T=E,E=f(x,10),x=k,k=t;var C=this._b+p+E|0;this._b=this._c+_+T|0,this._c=this._d+w+S|0,this._d=this._e+i+k|0,this._e=this._a+o+x|0,this._a=C},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=p},5055:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6911:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},2858:function(e,t,r){var n=r(6911).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var l=a%i,c=Math.min(o-s,i-l),u=0;u<c;u++)r[l+u]=e[s+u];a+=c,s+=c,a%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4018),n.sha1=r(4179),n.sha224=r(532),n.sha256=r(1843),n.sha384=r(7455),n.sha512=r(9934)},4018:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var h=0;h<80;++h){var p=~~(h/20),f=c(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=u(n),n=r,r=f}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},4179:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=c(t[l-3]^t[l-8]^t[l-14]^t[l-16]);for(var p=0;p<80;++p){var f=~~(p/20),m=u(r)+h(f,n,i,o)+s+t[p]+a[f]|0;s=o,o=i,i=d(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},532:function(e,t,r){var n=r(3782),i=r(1843),o=r(2858),a=r(6911).Buffer,s=Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},1843:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 3,872 bytes, line 50
50734187,3204031479,3329325298],s=Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function f(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(l,i),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)t[y]=e.readInt32BE(4*y);for(;y<64;++y)t[y]=f(t[y-2])+t[y-7]+p(t[y-15])+t[y-16]|0;for(var v=0;v<64;++v){var b=g+h(s)+c(s,l,m)+a[v]+t[v]|0,_=d(r)+u(r,n,i)|0;g=m,m=l,l=s,s=o+b|0,o=i,i=n,n=r,r=b+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=l+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},7455:function(e,t,r){var n=r(3782),i=r(9934),o=r(2858),a=r(6911).Buffer,s=Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}n(l,i),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},9934:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
vendor: 1,678 bytes, line 50
501126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}n(l,i),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,l=0|this._fh,v=0|this._gh,b=0|this._hh,_=0|this._al,w=0|this._bl,S=0|this._cl,k=0|this._dl,x=0|this._el,E=0|this._fl,T=0|this._gl,A=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var P=t[C-30],I=t[C-30+1],O=p(P,I),N=f(I,P),D=m(P=t[C-4],I=t[C-4+1]),R=g(I,P),L=t[C-14],M=t[C-14+1],j=t[C-32],B=t[C-32+1],U=N+M|0,F=O+L+y(U,N)|0;F=(F=F+D+y(U=U+R|0,R)|0)+j+y(U=U+B|0,B)|0,t[C]=F,t[C+1]=U}for(var H=0;H<160;H+=2){F=t[H],U=t[H+1];var z=u(r,n,i),$=u(_,w,S),q=d(r,_),W=d(_,r),V=h(s,x),G=h(x,s),K=a[H
50],Z=a[H+1],Y=c(s,l,v),J=c(x,E,T),X=A+G|0,Q=b+V+y(X,A)|0;Q=(Q=(Q=Q+Y+y(X=X+J|0,J)|0)+K+y(X=X+Z|0,Z)|0)+F+y(X=X+U|0,U)|0;var ee=W+$|0,et=q+z+y(ee,W)|0;b=v,A=T,v=l,T=E,l=s,E=x,s=o+Q+y(x=k+X|0,k)|0,o=i,k=S,i=n,S=w,n=r,w=_,r=Q+et+y(_=X+ee|0,X)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+k|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+T|0,this._hl=this._hl+A|0,this._ah=this._ah+r+y(this._al,_)|0,this._bh=this._bh+n+y(this._bl,w)|0,this._ch=this._ch+i+y(this._cl,S)|0,this._dh=this._dh+o+y(this._dl,k)|0,this._eh=this._eh+s+y(this._el,x)|0,this._fh=this._fh+l+y(this._fl,E)|0,this._gh=this._gh+v+y(this._gl,T)|0,this._hh=this._hh+b+y(this._hl,A)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},3704:function(e,t,r){"use strict";var n=r(5055).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function h(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},6769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
50e.exports=t},4300:function(e){"use strict";e.exports=r(48764)},6113:function(e){"use strict";e.exports=r(42474)},2361:function(e){"use strict";e.exports=r(25293)},2781:function(e){"use strict";e.exports=r(79681)},1576:function(e){"use strict";e.exports=r(32553)},3837:function(e){"use strict";e.exports=r(79720)},6144:function(e){"use strict";e.exports=r(51951)},5866:function(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
5007b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(e){"use strict";e.exports={i8:"6.5.3"}},2510:function(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={id:e,loaded:!1,exports:{}},i=!0;try{t[e].call(n.exports,n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.loaded=!0,n.exports}!function(){s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),s.ab=n+"/";var l={};!function(){"use strict";var e=l;e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=s(7223),e.createHash=e.Hash=s(9739),e.createHmac=e.Hmac=s(4873);var t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(s(9276)));e.getHashes=function(){return t};var r=s(4978);e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync;var n=s(8996);e.Cipher=n.Cipher,e.createCipher=n.createCipher,e.Cipheriv=n.Cipheriv,e.createCipheriv=n.createCipheriv,e.Decipher=n.Decipher,e.createDecipher=n.createDecipher,e.Decipheriv=n.Decipheriv,e.createDecipheriv=n.createDecipheriv,e.getCiphers=n.getCiphers,e.listCiphers=n.listCiphers;var i=s(6587);e.DiffieHellmanGroup=i.DiffieHellmanGroup,e.createDiffieHellmanGroup=i.createDiffieHellmanGroup,e.getDiffieHellman=i.getDiffieHellman,e.createDiffieHellman=i.createDiffieHellman,e.DiffieHellman=i.DiffieHellman;var o=s(4078);e.createSign=o.createSign,e.Sign=o.Sign,e.createVerify=o.createVerify,e.Verify=o.Verify,e.createECDH=s(9942);var a=s(9783);e.publicEncrypt=a.publicEncrypt,e.privateEncrypt=a.privateEncrypt,e.publicDecrypt=a.publicDecrypt,e.privateDecrypt=a.privateDecrypt;var c=s(6445);e.randomFill=c.randomFill,e.randomFillSync=c.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),e.exports=l}()},25293:function(e){var t="/";!function(){"use strict";var r={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=v,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(l(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,u=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,i(u)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?y(i):m(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function y(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function v(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}_(e,t,o,{once:!0}),"error"!==t&&b(e,i,{once:!0})})}function b(e,t,r){"function"==typeof e.on&&_(e,"error",t,r)}function _(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var c=l.length,u=m(l,c),r=0;r<c;++r)n(u[r],this,t);return!0},a.prototype.addListener=function(e,t){return u(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return u(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,a;if(l(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
50("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():g(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},a.prototype.listenerCount=f,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/";var o=i(864);e.exports=o}()},78428:function(e,t,r){var n="/";!function(){var t={528:function(e,t,r){var n=r(685),i=r(310),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},685:function(e){"use strict";e.exports=r(22321)},310:function(e){"use strict";e.exports=r(11987)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab=n+"/";var a=o(528);e.exports=a}()},3502:function(){},37677:function(){},67555:function(){},60853:function(){},84752:function(){},66761:function(){},40766:function(){},58905:function(){},26829:function(){},42205:function(){},3028:function(){},16996:function(){},39965:function(){},21157:function(){},52080:function(){},23434:function(){},24562:function(){},93044:function(){},55703:function(){},80102:function(){},59203:function(){},32116:function(){},37913:function(){},80982:function(){},11688:function(){},61036:function(){},4709:function(){},74750:function(){},31541:function(){},81257:function(){},85417:function(){},76061:function(){},80601:function(){},34519:function(){},81683:function(){},47362:function(){},31830:function(){},11987:function(e,t,r){var n="/";!function(){var t={452:function(e){"use strict";e.exports=r(97334)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab=n+"/";var a={};!function(){var e,t=a,r=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function i(e){"string"==typeof e&&(e=b(e));var t=function(e,t,r){var n=e.auth,i=e.hostname,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?c=n+e.host:i&&(c=n+(~i.indexOf(":")?"["+i+"]":i),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=t.encode(l));var u=e.search||l&&"?"+l||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||r.test(o))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),{protocol:o,host:c,pathname:a=a.replace(/[?#]/g,encodeURIComponent),search:u=u.replace("#","%23"),hash:s}}(e,r,n);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var s="http://",l="w.w",c=s+l,u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,d=/https?|ftp|gopher|file/;function h(e,t){var r="string"==typeof e?b(e):e;e="object"==typeof e?i(e):e;var n=b(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,t=t.replace(n.protocol,"")));var a=e.match(u);a&&!n.protocol&&(e=e.substr((o=a[1]+(a[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var l=new URL(e,c+"/"),h=new URL(t,l).toString().replace(c,""),p=n.protocol||r.protocol;return p+=r.slashes||n.slashes?"//":"",!o&&p?h=h.replace(s,p):o&&(h=h.replace(s,"")),d.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),o&&(h=o+("/"===h[0]?h.substr(1):h)),h}function p(){}p.prototype.parse=b,p.prototype.format=i,p.prototype.resolve=h,p.prototype.resolveObject=h;var f=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof p)return e;var o=(e=e.trim()).match(m);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(g),s=y.test(e),u="";a&&(f.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(s=!1,f.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var d,h=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=h&&h[1],_=new p,w="",S="";try{d=new URL(e)}catch(t){w=t,u||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{d=new URL(e,c)}catch(e){return _.protocol=u,_.href=u,_}}_.slashes=s&&!S,_.host=d.host===l?"":d.host,_.hostname=d.hostname===l?"":d.hostname.replace(/(\[|\])/g,""),_.protocol=w?u||null:d.protocol,_.search=d.search.replace(/\\/g,"%5C"),_.hash=d.hash.replace(/\\/g,"%5C");var k=e.split("#");!_.search&&~k[0].indexOf("?")&&(_.search="?"),_.hash||""!==k[1]||(_.hash="#"),_.query=t?r.decode(d.search.substr(1)):_.search.substr(1),_.pathname=S+(a?function(e){return e.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}})}(d.pathname):d.pathname),"about:"===_.protocol&&"blank"===_.pathname&&(_.protocol="",_.pathname=""),w&&"/"!==e[0]&&(_.pathname=_.pathname.substr(1)),u&&!f.test(u)&&"/"!==e.slice(-1)&&"/"===_.pathname&&(_.pathname=""),_.path=_.pathname+_.search,_.auth=[d.username,d.password].map(decodeURIComponent).filter(
50Boolean).join(":"),_.port=d.port,b&&!_.host.endsWith(b)&&(_.host+=b,_.port=b.slice(1)),_.href=S?""+_.pathname+_.search+_.hash:i(_);var x=/^(file)/.test(_.href)?["host","hostname"]:[];return Object.keys(_).forEach(function(e){~x.indexOf(e)||(_[e]=_[e]||null)}),_}t.parse=b,t.format=i,t.resolve=h,t.resolveObject=function(e,t){return b(h(e,t))},t.Url=p}(),e.exports=a}()},97334:function(e){var t="/";!function(){"use strict";var r={815:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,o){n=n||"&",i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(n);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,h,p,f,m=e[u].replace(s,"%20"),g=m.indexOf(i);g>=0?(d=m.substr(0,g),h=m.substr(g+1)):(d=m,h=""),p=decodeURIComponent(d),f=decodeURIComponent(h),t(a,p)?r(a[p])?a[p].push(f):a[p]=[a[p],f]:a[p]=f}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/";var o={};!function(){var e=o;e.decode=e.parse=i(815),e.encode=e.stringify=i(577)}(),e.exports=o}()},79681:function(e,t,r){var n="/",i=r(34155);!function(){var t={782:function(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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,l;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))l=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${s} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(709),a=r(337);r(782)(u,o);for(var s=n(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=P,P.ReadableState=C,n(361).EventEmitter;var o,a,s,l,c,u=function(e,t){return e.listeners(t).length},d=n(678),h=n(300).Buffer,p=r.g.Uint8Array||function(){};function f(e){return h.from(e)}function m(e){return h.isBuffer(e)||e instanceof p}var g=n(837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var y=n(379),v=n(25),b=n(776).getHighWaterMark,_=n(646).q,w=_.ERR_INVALID_ARG_TYPE,S=_.ERR_STREAM_PUSH_AFTER_EOF,k=_.ERR_METHOD_NOT_IMPLEMENT
vendor: 11,273 bytes, line 50
50ED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(P,d);var E=v.errorOrDestroy,T=["error","close","destroy","pause","resume"];function A(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function C(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function P(e){if(o=o||n(403),!(this instanceof P))return new P(e);var t=this instanceof o;this._readableState=new C(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function I(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,M(e,s);else if(i||(o=N(s,t)),o)E(e,o);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=f(t)),n)s.endEmitted?E(e,new x):O(e,s,t,!0);else if(s.ended)E(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):U(e,s)):O(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),U(e,t)}function N(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),I(this,e,t,!1,r)},P.prototype.unshift=function(e){return I(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var D=1073741824;function R(e){return e>=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function M(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function j(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function H(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,V(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){a("readable nexttick read 0"),e.read(0)}function q(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(W,e,t))}function W(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function G(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}P.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):j(this),null;if(0===(e=L(e,r))&&r.ended)return 0===r.length&&K(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=L(n,r))),null===(t=e>0?G(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){E(this,new k("_read()"))},P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:l;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function l(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=H(r);e.on("drain",c);var d=!1;function h(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",p),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function p(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Y(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){a("onerror",t),y(),e.removeListener("error",f),0===u(e,"error")&&E(e,t)}function m(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",p),A(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Y(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?j(this):n.reading||i.nextTick($,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),r},P.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(z,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},P.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<T.length;o++)e.on(T[o],this.emit.bind(this,T[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(871)),l(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=G,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===c&&(c=n(727)),c(P,e,t)})},170:function(e,t,r){"use strict";e.exports=u;
vendor: 2,273 bytes, line 50
50var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}e.exports=C,C.WritableState=A;var a,s,l={deprecate:n(769)},c=n(678),u=n(300).Buffer,d=r.g.Uint8Array||function(){};function h(e){return u.from(e)}function p(e){return u.isBuffer(e)||e instanceof d}var f=n(25),m=n(776).getHighWaterMark,g=n(646).q,y=g.ERR_INVALID_ARG_TYPE,v=g.E
vendor: 15,706 bytes, line 50
50RR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,S=g.ERR_STREAM_NULL_VALUES,k=g.ERR_STREAM_WRITE_AFTER_END,x=g.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function T(){}function A(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function C(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(C,this))return new C(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function P(e,t){var r=new k;E(e,r),i.nextTick(t,r)}function I(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(E(e,o),i.nextTick(n,o),!1)}function O(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function N(e,t,r,n,i,o){if(!r){var a=O(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else D(e,t,!1,s,n,i,o);return l}function D(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick($,e,t),e._writableState.errorEmitted=!0,E(e,n)):(o(n),e._writableState.errorEmitted=!0,E(e,n),$(e,t))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(L(r),t)R(e,r,n,t,o);else{var a=F(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?i.nextTick(j,e,r,a,o):j(e,r,a,o)}}function j(e,t,r,n){r||B(e,t),t.pendingcb--,n(),$(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,D(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(D(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function F(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function H(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),$(e,t)})}function z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(H,e,t)))}function $(e,t){var r=F(t);if(r&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function q(e,t,r){t.ending=!0,$(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(C,c),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===C&&e&&e._writableState instanceof A}})):s=function(e){return e instanceof this},C.prototype.pipe=function(){E(this,new _)},C.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&p(e);return o&&!u.isBuffer(e)&&(e=h(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=T),n.ending?P(this,r):(o||I(this,n,e,r))&&(n.pendingcb++,i=N(this,n,o,e,t,r)),i},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,r){r(new v("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||q(this,n,r),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=f.destroy,C.prototype._undestroy=f.undestroy,C.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[p].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(f(r,!1)))}}function g(e){i.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[u]){r(f(void 0,!0));return}t[h](r,n)},n)}}var v=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n(o={get stream(){return this[p]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(f(void 0,!0));if(this[p].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(f(void 0,!0))})});var n=this[d];if(n)e=new Promise(y(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(f(o,!1));e=new Promise(this[h])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(f(void 0,!0))})})}),o),v),_=function(e){var t,r=Object.create(b,(n(t={},p,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:e._readableState.endEmitted,writable:!0}),n(t,h,{value:function(e,t){var n=r[p].read();n?(r[d]=null,r[s]=null,r[l]=null,e(f(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(f(void 0,!0))),r[u]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=_},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,u=r(837).inspect,d=u&&u.custom||"inspect";function h(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)h(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return u(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||r.call(e)},p=e._readableState&&e._readableState.endEmitted,f=function(){l=!1,p=!0,c||r.call(e)},m=function(t){r.call(e,t)},g=function(){var t;return l&&!p?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",h)};return a(e)?(e.on("complete",h),e.on("abort",g),e.req?y():e.on("request",y)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",y),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",f),e.removeListener("error",m),e.removeListener("close",g)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
50var l=r(646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return u.apply(this,arguments)}function u(){return(u=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}e.exports=c},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function d(e){e()}function h(e,t){return e.pipe(t)}function p(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}function f(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return u(t,a,n>0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(h)}e.exports=f},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
50case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function h(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=t},300:function(e){"use strict";e.exports=r(48764)},361:function(e){"use strict";e.exports=r(25293)},781:function(e){"use strict";e.exports=r(25293).EventEmitter},837:function(e){"use strict";e.exports=r(79720)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/";var s=a(173);e.exports=s}()},22321:function(e,t,r){var n="/",i=r(34155),o=r(48764).Buffer;!function(){var t={523:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Parti
50al 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:"Unordered Collection",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"}},782:function(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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,l;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))l=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${s} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(709),a=r(337);r(782)(u,o);for(var s=n(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=P,P.ReadableState=C,n(361).EventEmitter;var o,a,s,l,c,u=function(e,t){return e.listeners(t).length},d=n(678),h=n(300).Buffer,p=r.g.Uint8Array||function(){};function f(e){return h.from(e)}function m(e){return h.isBuffer(e)||e instanceof p}var g=n(837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var y=n(379),v=n(25),b=n(776).getHighWaterMark,_=n(646).q,w=_.ERR_INVALID_ARG_TYPE,S=_.ERR_STREAM_PUSH_AFTER_EOF,k=_.ERR_METHOD_NOT_IMPLEMENT
vendor: 11,273 bytes, line 50
50ED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(P,d);var E=v.errorOrDestroy,T=["error","close","destroy","pause","resume"];function A(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function C(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function P(e){if(o=o||n(403),!(this instanceof P))return new P(e);var t=this instanceof o;this._readableState=new C(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function I(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,M(e,s);else if(i||(o=N(s,t)),o)E(e,o);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=f(t)),n)s.endEmitted?E(e,new x):O(e,s,t,!0);else if(s.ended)E(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):U(e,s)):O(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),U(e,t)}function N(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),I(this,e,t,!1,r)},P.prototype.unshift=function(e){return I(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var D=1073741824;function R(e){return e>=D?e=D:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function M(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function j(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function H(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,V(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){a("readable nexttick read 0"),e.read(0)}function q(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(W,e,t))}function W(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function G(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Z,t,e))}function Z(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}P.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):j(this),null;if(0===(e=L(e,r))&&r.ended)return 0===r.length&&K(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=L(n,r))),null===(t=e>0?G(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){E(this,new k("_read()"))},P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:l;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function l(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=H(r);e.on("drain",c);var d=!1;function h(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",p),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function p(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Y(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){a("onerror",t),y(),e.removeListener("error",f),0===u(e,"error")&&E(e,t)}function m(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",p),A(e,"error",f),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Y(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?j(this):n.reading||i.nextTick($,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),r},P.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(z,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},P.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<T.length;o++)e.on(T[o],this.emit.bind(this,T[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(871)),l(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=G,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===c&&(c=n(727)),c(P,e,t)})},170:function(e,t,r){"use strict";e.exports=u;
vendor: 2,273 bytes, line 50
50var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}e.exports=C,C.WritableState=A;var a,s,l={deprecate:n(769)},c=n(678),u=n(300).Buffer,d=r.g.Uint8Array||function(){};function h(e){return u.from(e)}function p(e){return u.isBuffer(e)||e instanceof d}var f=n(25),m=n(776).getHighWaterMark,g=n(646).q,y=g.ERR_INVALID_ARG_TYPE,v=g.E
vendor: 15,706 bytes, line 50
50RR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,S=g.ERR_STREAM_NULL_VALUES,k=g.ERR_STREAM_WRITE_AFTER_END,x=g.ERR_UNKNOWN_ENCODING,E=f.errorOrDestroy;function T(){}function A(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function C(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(C,this))return new C(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function P(e,t){var r=new k;E(e,r),i.nextTick(t,r)}function I(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(E(e,o),i.nextTick(n,o),!1)}function O(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function N(e,t,r,n,i,o){if(!r){var a=O(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else D(e,t,!1,s,n,i,o);return l}function D(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick($,e,t),e._writableState.errorEmitted=!0,E(e,n)):(o(n),e._writableState.errorEmitted=!0,E(e,n),$(e,t))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(L(r),t)R(e,r,n,t,o);else{var a=F(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?i.nextTick(j,e,r,a,o):j(e,r,a,o)}}function j(e,t,r,n){r||B(e,t),t.pendingcb--,n(),$(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,D(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(D(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function F(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function H(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),$(e,t)})}function z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(H,e,t)))}function $(e,t){var r=F(t);if(r&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function q(e,t,r){t.ending=!0,$(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(C,c),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===C&&e&&e._writableState instanceof A}})):s=function(e){return e instanceof this},C.prototype.pipe=function(){E(this,new _)},C.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&p(e);return o&&!u.isBuffer(e)&&(e=h(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=T),n.ending?P(this,r):(o||I(this,n,e,r))&&(n.pendingcb++,i=N(this,n,o,e,t,r)),i},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,r){r(new v("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||q(this,n,r),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=f.destroy,C.prototype._undestroy=f.undestroy,C.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[p].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(f(r,!1)))}}function g(e){i.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[u]){r(f(void 0,!0));return}t[h](r,n)},n)}}var v=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n(o={get stream(){return this[p]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(f(void 0,!0));if(this[p].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(f(void 0,!0))})});var n=this[d];if(n)e=new Promise(y(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(f(o,!1));e=new Promise(this[h])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(f(void 0,!0))})})}),o),v),_=function(e){var t,r=Object.create(b,(n(t={},p,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:e._readableState.endEmitted,writable:!0}),n(t,h,{value:function(e,t){var n=r[p].read();n?(r[d]=null,r[s]=null,r[l]=null,e(f(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(f(void 0,!0))),r[u]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=_},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,u=r(837).inspect,d=u&&u.custom||"inspect";function h(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)h(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return u(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||r.call(e)},p=e._readableState&&e._readableState.endEmitted,f=function(){l=!1,p=!0,c||r.call(e)},m=function(t){r.call(e,t)},g=function(){var t;return l&&!p?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},y=function(){e.req.on("finish",h)};return a(e)?(e.on("complete",h),e.on("abort",g),e.req?y():e.on("request",y)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",y),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",f),e.removeListener("error",m),e.removeListener("close",g)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
50var l=r(646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return u.apply(this,arguments)}function u(){return(u=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}e.exports=c},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function d(e){e()}function h(e,t){return e.pipe(t)}function p(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}function f(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return u(t,a,n>0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(h)}e.exports=f},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var n=r(781);"disable"===i.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(709)).Stream=n||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},813:function(e,t,n){var i=n(450),o=n(254),a=n(911),s=n(523),l=n(310),c=t;c.request=function(e,t){e="string"==typeof e?l.parse(e):a(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||n,s=e.hostname||e.host,c=e.port,u=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new i(e);return t&&d.on("response",t),d},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=i,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=s,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(e,t){var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),n=null},450:function(e,t,n){var a=n(301),s=n(782),l=n(254),c=n(726),u=l.IncomingMessage,d=l.readyStates;function h(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":"text"}var p=e.exports=function(e){var t,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+o.from(e.auth).toString("base64")),Object.keys(e.headers).forEac
50h(function(t){r.setHeader(t,e.headers[t])});var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else t=!0;r._mode=h(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function f(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}s(p,c.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===m.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===e._mode){var l=null;if(a.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var u=e._xhr=new r.g.XMLHttpRequest;try{u.open(e._opts.method,e._opts.url,!0)}catch(t){i.nextTick(function(){e.emit("error",t)});return}"responseType"in u&&(u.responseType=e._mode),"withCredentials"in u&&(u.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in u&&u.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(u.timeout=t.requestTimeout,u.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){u.setRequestHeader(e[0],e[1])}),e._response=null,u.onreadystatechange=function(){switch(u.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(u.onprogress=function(){e._onXHRProgress()}),u.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{u.send(o)}catch(t){i.nextTick(function(){e.emit("error",t)});return}}}},p.prototype._onXHRProgress=function(){var e=this;f(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){var e=this;e._destroyed=!0,r.g.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},p.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(e,t,n){var a=n(301),s=n(782),l=n(726),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=t.IncomingMessage=function(e,t,n,s){var c=this;if(l.Readable.call(c),c._mode=n,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){i.nextTick(function(){c.emit("close")})}),"fetch"===n){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEac
50h(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),a.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(t,r){c._destroyed?r():c.push(o.from(e))?t():c._resumeFetch=t})},close:function(){r.g.clearTimeout(s),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{t.body.pipeTo(u).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)});return}catch(e){}}var d=t.body.getReader();function h(){d.read().then(function(e){if(!c._destroyed){if(e.done){r.g.clearTimeout(s),c.push(null);return}c.push(o.from(e.value)),h()}}).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)})}h()}else if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!a.overrideMimeType){var p=c.rawHeaders["mime-type"];if(p){var f=p.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(u,l.Readable),u.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},u.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text":if((n=t.responseText).length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=o.alloc(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);e.push(a)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(o.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(o.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var l=new r.g.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(o.from(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function h(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
50e.exports=t},911:function(e){e.exports=r;var t=Object.prototype.hasOwnProperty;function r(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e}},300:function(e){"use strict";e.exports=r(48764)},361:function(e){"use strict";e.exports=r(25293)},781:function(e){"use strict";e.exports=r(79681)},310:function(e){"use strict";e.exports=r(11987)},837:function(e){"use strict";e.exports=r(79720)}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/";var l=s(813);e.exports=l}()},79720:function(e,t,r){var n="/",i=r(48764).Buffer,o=r(34155);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(925),i=r(139),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(174),i=r(925),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},426:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o,a=this;if("function"!=typeof a||n.call(a)!==i)throw TypeError(t+a);for(var s=r.call(arguments,1),l=function(){if(!(this instanceof o))return a.apply(e,s.concat(r.call(arguments)));var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this},c=Math.max(0,a.length-s.length),u=[],d=0;d<c;d++)u.push("$"+d);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),a.prototype){var h=function(){};h.prototype=a.prototype,o.prototype=new h,h.prototype=null}return o}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new a},u=l?function(){try{return arguments.callee,c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(115)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
50IteratorPrototype%":d?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=h(i.prototype))}return m[t]=r,r},y={"%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"]},v=r(174),b=r(101),_=v.call(Function.call,Array.prototype.concat),w=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),k=v.call(Function.call,String.prototype.slice),x=v.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,A=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,E,function(e,t,r,i){n[n.length]=r?S(i,T,"$1"):t||e}),n},C=function(e,t){var r,n=e;if(b(y,n)&&(n="%"+(r=y[n])[0]+"%"),b(m,n)){var o=m[n];if(o===p&&(o=g(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=A(e),n=r.length>0?r[0]:"",o=C("%"+n+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(n=d[0],w(r,_([0,1],d)));for(var h=1,p=!0;h<r.length;h+=1){var f=r[h],g=k(f,0,1),y=k(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&p||(u=!0),n+="."+f,b(m,s="%"+n+"%"))c=m[s];else if(null!=c){if(!(f in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=r.length){var v=l(c,f);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else p=b(c,f),c=c[f];p&&!u&&(m[s]=c)}}return c}},925:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new a},u=l?function(){try{return arguments.callee,c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=r(115)(),h=r(504)(),p=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),f={},m="undefined"!=typeof Uint8Array&&p?p(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&p?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
50IteratorPrototype%":d&&p?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&p?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&p?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&p?p(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(p)try{null.error}catch(e){var y=p(p(e));g["%Error.prototype%"]=y}var v=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(r=p(i.prototype))}return g[t]=r,r},b={"%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"]},_=r(174),w=r(101),S=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),x=_.call(Function.call,String.prototype.replace),E=_.call(Function.call,String.prototype.slice),T=_.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,P=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,A,function(e,t,r,i){n[n.length]=r?x(i,C,"$1"):t||e}),n},I=function(e,t){var r,n=e;
50if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(g,n)){var o=g[n];if(o===f&&(o=v(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=P(e),n=r.length>0?r[0]:"",o=I("%"+n+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(n=d[0],k(r,S([0,1],d)));for(var h=1,p=!0;h<r.length;h+=1){var f=r[h],m=E(f,0,1),y=E(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&p||(u=!0),n+="."+f,w(g,s="%"+n+"%"))c=g[s];else if(null!=c){if(!(f in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=r.length){var v=l(c,f);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[f]}else p=w(c,f),c=c[f];p&&!u&&(g[s]=c)}}return c}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"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"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"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"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d=a("String.prototype.slice"),h={},p=n(24),f=Object.getPrototypeOf;l&&p&&f&&i(c,function(e){var t=new r.g[e];
50if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=f(t),i=p(n,Symbol.toStringTag);i||(i=p(f(n),Symbol.toStringTag)),h[e]=i.get});var m=function(e){var t=!1;return i(h,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(l?!!p&&m(e):u(c,d(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||H(e)}function b(e){return"Uint8Array"===o(e)}function _(e){return"Uint8ClampedArray"===o(e)}function w(e){return"Uint16Array"===o(e)}function S(e){return"Uint32Array"===o(e)}function k(e){return"Int8Array"===o(e)}function x(e){return"Int16Array"===o(e)}function E(e){return"Int32Array"===o(e)}function T(e){return"Float32Array"===o(e)}function A(e){return"Float64Array"===o(e)}function C(e){return"BigInt64Array"===o(e)}function P(e){return"BigUint64Array"===o(e)}function I(e){return"[object Map]"===u(e)}function O(e){return"undefined"!=typeof Map&&(I.working?I(e):e instanceof Map)}function N(e){return"[object Set]"===u(e)}function D(e){return"undefined"!=typeof Set&&(N.working?N(e):e instanceof Set)}function R(e){return"[object WeakMap]"===u(e)}function L(e){return"undefined"!=typeof WeakMap&&(R.working?R(e):e instanceof WeakMap)}function M(e){return"[object WeakSet]"===u(e)}function j(e){return M(e)}function B(e){return"[object ArrayBuffer]"===u(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function F(e){return"[object DataView]"===u(e)}function H(e){return"undefined"!=typeof DataView&&(F.working?F(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=y,t.isArrayBufferView=v,t.isUint8Array=b,t.isUint8ClampedArray=_,t.isUint16Array=w,t.isUint32Array=S,t.isInt8Array=k,t.isInt16Array=x,t.isInt32Array=E,t.isFloat32Array=T,t.isFloat64Array=A,t.isBigInt64Array=C,t.isBigUint64Array=P,I.working="undefined"!=typeof Map&&I(new Map),t.isMap=O,N.working="undefined"!=typeof Set&&N(new Set),t.isSet=D,R.working="undefined"!=typeof WeakMap&&R(new WeakMap),t.isWeakMap=L,M.working="undefined"!=typeof WeakSet&&M(new WeakSet),t.isWeakSet=j,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,F.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&F(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=H;var z="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function $(e){return"[object SharedArrayBuffer]"===u(e)}function q(e){return void 0!==z&&(void 0===$.working&&($.working=$(new z)),$.working?$(e):e instanceof z)}function W(e){return"[object AsyncFunction]"===u(e)}function V(e){return"[object Map Iterator]"===u(e)}function G(e){return"[object Set Iterator]"===u(e)}function K(e){return"[object Generator]"===u(e)}function Z(e){return"[object WebAssembly.Module]"===u(e)}function Y(e){return g(e,d)}function J(e){return g(e,h)}function X(e){return g(e,p)}function Q(e){return l&&g(e,f)}function ee(e){return c&&g(e,m)}function et(e){return Y(e)||J(e)||X(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||q(e))}t.isSharedArrayBuffer=q,t.isAsyncFunction=W,t.isMapIterator=V,t.isSetIterator=G,t.isGeneratorObject=K,t.isWebAssemblyCompiledModule=Z,t.isNumberObject=Y,t.isStringObject=J,t.isBooleanObject=X,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])w(s)||!C(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;
vendor: 4,911 bytes, line 50
50return function(){if(!n){if(o.throwDeprecation)throw Error(r);o.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(o.env.NODE_DEBUG){var l=o.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),T(n.showHidden)&&(n.showHidden=!1),T(n.depth)&&(n.depth=2),T(n.colors)&&(n.colors=!1),T(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),p(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function h(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function p(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return x(o)||(o=p(e,o,n)),o}var a=f(e,r);if(a)return a;var s=Object.keys(r),l=h(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(O(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(A(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return m(r)}var u="",d=!1,_=["{","}"];return(b(r)&&(d=!0,_=["[","]"]),O(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),A(r)&&(u=" "+RegExp.prototype.toString.call(r)),P(r)&&(u=" "+Date.prototype.toUTCString.call(r)),I(r)&&(u=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?A(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?g(e,r,n,l,s):s.map(function(t){return y(e,r,n,l,t,d)}),e.seen.pop(),v(i,u,_)):_[0]+u+_[1]}function f(e,t){if(T(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return k(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):w(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)j(t,String(a))?o.push(y(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),j(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=w(r)?p(e,l.value,null):p(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),T(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function w(e){return null===e}function S(e){return null==e}function k(e){return"number"==typeof e}function x(e){return"string"==typeof e}function E(e){return"symbol"==typeof e}function T(e){return void 0===e}function A(e){return C(e)&&"[object RegExp]"===D(e)}function C(e){return"object"==typeof e&&null!==e}function P(e){return C(e)&&"[object Date]"===D(e)}function I(e){return C(e)&&("[object Error]"===D(e)||e instanceof Error)}function O(e){return"function"==typeof e}function N(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function D(e){return Object.prototype.toString.call(e)}function R(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=b,t.isBoolean=_,t.isNull=w,t.isNullOrUndefined=S,t.isNumber=k,t.isString=x,t.isSymbol
50=E,t.isUndefined=T,t.isRegExp=A,t.types.isRegExp=A,t.isObject=C,t.isDate=P,t.types.isDate=P,t.isError=I,t.types.isNativeError=I,t.isFunction=O,t.isPrimitive=N,t.isBuffer=r(369);var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(e.getSeconds())].join(":");return[e.getDate(),L[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!C(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function F(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(U.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(B&&e[B]){var t=e[B];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),B&&Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=B,t.callbackify=F},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("String.prototype.slice"),d={},h=n(24),p=Object.getPrototypeOf;l&&h&&p&&i(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=p(t),i=h(n,Symbol.toStringTag);i||(i=h(p(n),Symbol.toStringTag)),d[e]=i.get}});var f=function(e){var t=!1;return i(d,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},m=n(994);e.exports=function(e){return!!m(e)&&(l?f(e):u(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/";var l=s(177);e.exports=l}()},51951:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decode
50URI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},84040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getPathname:function(){return i},isFullStringUrl:function(){return o},parseUrl:function(){return a}});let r="http://n";function n(e){return new URL(e,r)}function i(e){return n(e).pathname}function o(e){return/https?:\/\//.test(e)}function a(e){let t;try{t=new URL(e,r)}catch{}return t}},47325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Postpone:function(){return h},createPostponedAbortSignal:function(){return v},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return g},markCurrentScopeAsDynamic:function(){return u},trackDynamicDataAccessed:function(){return d},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return m}});let n=s(r(67294)),i=r(1539),o=r(72700),a=r(84040);function s(e){return e&&e.__esModule?e:{default:e}}let l="function"==typeof n.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function u(e,t){let r=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${r} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)f(e.prerenderState,t,r);else if(e.revalidate=0,e.isStaticGeneration){let n=new i.DynamicServerError(`Route ${r} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=n.stack,n}}}function d(e,t){let r=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${r} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${r} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)f(e.prerenderState,t,r);else if(e.revalidate=0,e.isStaticGeneration){let n=new i.DynamicServerError(`Route ${r} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=n.stack,n}}function h({reason:e,prerenderState:t,pathname:r}){f(t,e,r)}function p(e,t){e.prerenderState&&f(e.prerenderState,t,e.urlPathname)}function f(e,t,r){y();let i=`Route ${r} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),n.default.unstable_postpone(i)}function m(e){return e.dynamicAccesses.length>0}function g(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
51${t}`))}function y(){if(!l)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function v(e){y();let t=new AbortController;try{n.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},34042:function(e,t,r){"use strict";
51Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HeadersAdapter:function(){return o},ReadonlyHeadersError:function(){return i}});let n=r(47246);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,i){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,i);let o=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==a)return n.ReflectAdapter.get(t,a,i)},set(t,r,i,o){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,i,o);let a=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===a);return n.ReflectAdapter.set(t,s??r,i,o)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0!==o&&n.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0===o||n.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},47246:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},9407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MutableRequestCookiesAdapter:function(){return d},ReadonlyRequestCookiesError:function(){return a},RequestCookiesAdapter:function(){return s},appendMutableCookies:function(){return u},getModifiedCookieValues:function(){return c}});let n=r(80255),i=r(47246),o=r(18119);class a extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new a}}class s{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return a.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let l=Symbol.for("next.mutated.cookies");function c(e){let t=e[l];return t&&Array.isArray(t)&&0!==t.length?t:[]}function u(e,t){let r=c(t);if(0===r.length)return!1;let i=new n.ResponseCookies(e),o=i.getAll();for(let e of r)i.set(e);for(let e of o)i.set(e);return!0}class d{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let a=[],s=new Set,c=()=>{let e=o.staticGenerationAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=!0),a=r.getAll().filter(e=>s.has(e.name)),t){let e=[];for(let t of a){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case l:return a;
51case"delete":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{c()}};case"set":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{c()}};default:return i.ReflectAdapter.get(e,t,r)}}})}}},80255:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies},stringifyCookie:function(){return n.stringifyCookie}});let n=r(89079)},9008:function(e,t,r){e.exports=r(23867)},14970:function(e,t,r){e.exports=r(36849)},89755:function(e,t,r){e.exports=r(32903)},41664:function(e,t,r){e.exports=r(98342)},11163:function(e,t,r){e.exports=r(43079)},4298:function(e,t,r){e.exports=r(23381)},79169:function(e,t,r){t.OAuth=r(33503).OAuth,t.OAuthEcho=r(33503).OAuthEcho,t.OAuth2=r(72327).OAuth2},58742:function(e){e.exports.isAnEarlyCloseHost=function(e){return e&&e.match(".*google(apis)?.com$")}},33503:function(e,t,r){var n=r(48764).Buffer,i=r(42474),o=r(80969),a=r(22321),s=r(78428),l=r(11987),c=r(97334),u=r(58742);t.OAuth=function(e,t,r,n,i,o,a,s,l){if(this._isEcho=!1,this._requestUrl=e,this._accessUrl=t,this._consumerKey=r,this._consumerSecret=this._encodeData(n),"RSA-SHA1"==a&&(this._privateKey=n),this._version=i,void 0===o?this._authorize_callback="oob":this._authorize_callback=o,"PLAINTEXT"!=a&&"HMAC-SHA1"!=a&&"RSA-SHA1"!=a)throw Error("Un-supported signature method: "+a);this._signatureMethod=a,this._nonceSize=s||32,this._headers=l||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._clientOptions=this._defaultClientOptions={requestTokenHttpMethod:"POST",accessTokenHttpMethod:"POST",followRedirects:!0},this._oauthParameterSeperator=","},t.OAuthEcho=function(e,t,r,n,i,o,a,s){if(this._isEcho=!0,this._realm=e,this._verifyCredentials=t,this._consumerKey=r,this._consumerSecret=this._encodeData(n),"RSA-SHA1"==o&&(this._privateKey=n),this._version=i,"PLAINTEXT"!=o&&"HMAC-SHA1"!=o&&"RSA-SHA1"!=o)throw Error("Un-supported signature method: "+o);this._signatureMethod=o,this._nonceSize=a||32,this._headers=s||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._oauthParameterSeperator=","},t.OAuthEcho.prototype=t.OAuth.prototype,t.OAuth.prototype._getTimestamp=function(){return Math.floor(new Date().getTime()/1e3)},t.OAuth.prototype._encodeData=function(e){return null==e||""==e?"":encodeURIComponent(e).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},t.OAuth.prototype._decodeData=function(e){return null!=e&&(e=e.replace(/\+/g," ")),decodeURIComponent(e)},t.OAuth.prototype._getSignature=function(e,t,r,n){var i=this._createSignatureBase(e,t,r);return this._createSignature(i,n)},t.OAuth.prototype._normalizeUrl=function(e){var t=l.parse(e,!0),r="";return t.port&&("http:"==t.protocol&&"80"!=t.port||"https:"==t.protocol&&"443"!=t.port)&&(r=":"+t.port),t.pathname&&""!=t.pathname||(t.pathname="/"),t.protocol+"//"+t.hostname+r+t.pathname},t.OAuth.prototype._isParameterNameAnOAuthParameter=function(e){var t=e.match("^oauth_");return!!t&&"oauth_"===t[0]},t.OAuth.prototype._buildAuthorizationHeaders=function(e){var t="OAuth ";this._isEcho&&(t+='realm="'+this._realm+'",');for(var r=0;r<e.length;r++)this._isParameterNameAnOAuthParameter(e[r][0])&&(t+=""+this._encodeData(e[r][0])+'="'+this._encodeData(e[r][1])+'"'+this._oauthParameterSeperator);return t.substring(0,t.length-this._oauthParameterSeperator.length)},t.OAuth.prototype._makeArrayOfArgumentsHash=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)t[t.length]=[r,n[i]];else t[t.length]=[r,n]}return t}
51,t.OAuth.prototype._sortRequestParams=function(e){return e.sort(function(e,t){return e[0]==t[0]?e[1]<t[1]?-1:1:e[0]<t[0]?-1:1}),e},t.OAuth.prototype._normaliseRequestParams=function(e){for(var t=this._makeArrayOfArgumentsHash(e),r=0;r<t.length;r++)t[r][0]=this._encodeData(t[r][0]),t[r][1]=this._encodeData(t[r][1]);t=this._sortRequestParams(t);for(var e="",r=0;r<t.length;r++)e+=t[r][0]+"="+t[r][1],r<t.length-1&&(e+="&");return e},t.OAuth.prototype._createSignatureBase=function(e,t,r){return t=this._encodeData(this._normalizeUrl(t)),r=this._encodeData(r),e.toUpperCase()+"&"+t+"&"+r},t.OAuth.prototype._createSignature=function(e,t){if(void 0===t)var t="";else t=this._encodeData(t);var r=this._consumerSecret+"&"+t,n="";return"PLAINTEXT"==this._signatureMethod?n=r:"RSA-SHA1"==this._signatureMethod?(r=this._privateKey||"",n=i.createSign("RSA-SHA1").update(e).sign(r,"base64")):n=i.Hmac?i.createHmac("sha1",r).update(e).digest("base64"):o.HMACSHA1(r,e),n},t.OAuth.prototype.NONCE_CHARS=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"],t.OAuth.prototype._getNonce=function(e){for(var t,r=[],n=this.NONCE_CHARS,i=n.length,o=0;o<e;o++)t=Math.floor(Math.random()*i),r[o]=n[t];return r.join("")},t.OAuth.prototype._createClient=function(e,t,r,n,i,o){var l,c={host:t,port:e,path:n,method:r,headers:i};return(l=o?s:a).request(c)},t.OAuth.prototype._prepareParameters=function(e,t,r,n,i){var o={oauth_timestamp:this._getTimestamp(),oauth_nonce:this._getNonce(this._nonceSize),oauth_version:this._version,oauth_signature_method:this._signatureMethod,oauth_consumer_key:this._consumerKey};if(e&&(o.oauth_token=e),this._isEcho)u=this._getSignature("GET",this._verifyCredentials,this._normaliseRequestParam
51s(o),t);else{if(i)for(var a in i)i.hasOwnProperty(a)&&(o[a]=i[a]);var s=l.parse(n,!1);if(s.query){var u,d,h=c.parse(s.query);for(var a in h){var p=h[a];if("object"==typeof p)for(d in p)o[a+"["+d+"]"]=p[d];else o[a]=p}}u=this._getSignature(r,n,this._normaliseRequestParams(o),t)}var f=this._sortRequestParams(this._makeArrayOfArgumentsHash(o));return f[f.length]=["oauth_signature",u],f},t.OAuth.prototype._performSecureRequest=function(e,t,r,i,o,a,s,d){var h,p,f=this._prepareParameters(e,t,r,i,o);s||(s="application/x-www-form-urlencoded");var m=l.parse(i,!1);"http:"!=m.protocol||m.port||(m.port=80),"https:"!=m.protocol||m.port||(m.port=443);var g={},y=this._buildAuthorizationHeaders(f);for(var v in this._isEcho?g["X-Verify-Credentials-Authorization"]=y:g.Authorization=y,g.Host=m.host,this._headers)this._headers.hasOwnProperty(v)&&(g[v]=this._headers[v]);for(var v in o)this._isParameterNameAnOAuthParameter(v)&&delete o[v];("POST"==r||"PUT"==r)&&null==a&&null!=o&&(a=c.stringify(o).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")),a?n.isBuffer(a)?g["Content-length"]=a.length:g["Content-length"]=n.byteLength(a):g["Content-length"]=0,g["Content-Type"]=s,m.pathname&&""!=m.pathname||(m.pathname="/"),h=m.query?m.pathname+"?"+m.query:m.pathname,p="https:"==m.protocol?this._createClient(m.port,m.hostname,r,h,g,!0):this._createClient(m.port,m.hostname,r,h,g);var b=this._clientOptions;if(!d)return("POST"==r||"PUT"==r)&&null!=a&&""!=a&&p.write(a),p;var _="",w=this,S=u.isAnEarlyCloseHost(m.hostname),k=!1,x=function(n){k||(k=!0,n.statusCode>=200&&n.statusCode<=299?d(null,_,n):(301==n.statusCode||302==n.statusCode)&&b.followRedirects&&n.headers&&n.headers.location?w._performSecureRequest(e,t,r,n.headers.location,o,a,s,d):d({statusCode:n.statusCode,data:_},_,n))};p.on("response",function(e){e.setEncoding("utf8"),e.on("data",function(e){_+=e}),e.on("end",function(){x(e)}),e.on("close",function(){S&&x(e)})}),p.on("error",function(e){k||(k=!0,d(e))}),("POST"==r||"PUT"==r)&&null!=a&&""!=a&&p.write(a),p.end()},t.OAuth.prototype.setClientOptions=function(e){var t,r={},n=Object.prototype.hasOwnProperty;for(t in this._defaultClientOptions)n.call(e,t)?r[t]=e[t]:r[t]=this._defaultClientOptions[t];this._clientOptions=r},t.OAuth.prototype.getOAuthAccessToken=function(e,t,r,n){var i={};"function"==typeof r?n=r:i.oauth_verifier=r,this._performSecureRequest(e,t,this._clientOptions.accessTokenHttpMethod,this._accessUrl,i,null,null,function(e,t,r){if(e)n(e);else{var i=c.parse(t),o=i.oauth_token;delete i.oauth_token;var a=i.oauth_token_secret;delete i.oauth_token_secret,n(null,o,a,i)}})},t.OAuth.prototype.getProtectedResource=function(e,t,r,n,i){this._performSecureRequest(r,n,t,e,null,"",null,i)},t.OAuth.prototype.delete=function(e,t,r,n){return this._performSecureRequest(t,r,"DELETE",e,null,"",null,n)},t.OAuth.prototype.get=function(e,t,r,n){return this._performSecureRequest(t,r,"GET",e,null,"",null,n)},t.OAuth.prototype._putOrPost=function(e,t,r,i,o,a,s){var l=null;return"function"==typeof a&&(s=a,a=null),"string"==typeof o||n.isBuffer(o)||(a="application/x-www-form-urlencoded",l=o,o=null),this._performSecureRequest(r,i,e,t,l,o,a,s)},t.OAuth.prototype.put=function(e,t,r,n,i,o){return this._putOrPost("PUT",e,t,r,n,i,o)},t.OAuth.prototype.post=function(e,t,r,n,i,o){return this._putOrPost("POST",e,t,r,n,i,o)},t.OAuth.prototype.getOAuthRequestToken=function(e,t){"function"==typeof e&&(t=e,e={}),this._authorize_callback&&(e.oauth_callback=this._authorize_callback),this._performSecureRequest(null,null,this._clientOptions.requestTokenHttpMethod,this._requestUrl,e,null,null,function(e,r,n){if(e)t(e);else{var i=c.parse(r),o=i.oauth_token,a=i.oauth_token_secret;delete i.oauth_token,delete i.oauth_token_secret,t(null,o,a,i)}})},t.OAuth.prototype.signUrl=function(e,t,r,n){if(void 0===n)var n="GET";for(var i=this._prepareParameters(t,r,n,e,{}),o=l.parse(e,!1),a="",s=0;s<i.length;s++)a+=i[s][0]+"="+this._encodeData(i[s][1])+"&";return a=a.substring(0,a.length-1),o.protocol+"//"+o.host+o.pathname+"?"+a},t.OAuth.prototype.authHeader=function(e,t,r,n){if(void 0===n)var n="GET";var i=this._prepareParameters(t,r,n,e,{});return this._buildAuthorizationHeaders(i)}},72327:function(e,t,r){var n=r(48764).Buffer,i=r(97334),o=(r(42474),r(78428)),a=r(22321),s=r(11987),l=r(58742);t.OAuth2=function(e,t,r,n,i,o){this._clientId=e,this._clientSecret=t,this._baseSite=r,this._authorizeUrl=n||"/oauth/authorize",this._accessTokenUrl=i||"/oauth/access_token",this._accessTokenName="access_token",this._authMethod="Bearer",this._customHeaders=o||{},this._useAuthorizationHeaderForGET=!1,this._agent=void 0},t.OAuth2.prototype.setAgent=function(e){this._agent=e},t.OAuth2.prototype.setAccessTokenName=function(e){this._accessTokenName=e},t.OAuth2.prototype.setAuthMethod=function(e){this._authMethod=e},t.OAuth2.prototype.useAuthorizationHeaderforGET=function(e){this._useAuthorizationHeaderForGET=e},t.OAuth2.prototype._getAccessTokenUrl=function(){return this._baseSite+this._accessTokenUrl},t.OAuth2.prototype.buildAuthHeader=function(e){return this._authMethod+" "+e},t.OAuth2.prototype._chooseHttpLibrary=function(e){var t=o;return"https:"!=e.protocol&&(t=a),t},t.OAuth2.prototype._request=function(e,t,r,o,a,l){var c=s.parse(t,!0);"https:"!=c.protocol||c.port||(c.port=443);var u=this._chooseHttpLibrary(c),d={};for(var h in this._customHeaders)d[h]=this._customHeaders[h];if(r)for(var h in r)d[h]=r[h];d.Host=c.host,d["User-Agent"]||(d["User-Agent"]="Node-oauth"),o?n.isBuffer(o)?d["Content-Length"]=o.length:d["Content-Length"]=n.byteLength(o):d["Content-length"]=0,!a||"Authorization"in d||(c.query||(c.query={}),c.query[this._accessTokenName]=a);var p=i.stringify(c.query);p&&(p="?"+p);var f={host:c.hostname,port:c.port,path:c.pathname+p,method:e,headers:d};this._executeRequest(u,f,o,l)},t.OAuth2.prototype._executeRequest=function(e,t,r,n){var i=l.isAnEarlyCloseHost(t.host),o=!1;function a(e,t){o||(o=!0,e.statusCode>=200&&e.statusCode<=299||301==e.statusCode||302==e.statusCode?n(null,t,e):n({statusCode:e.statusCode,data:t}))}var s="";this._agent&&(t.agent=this._agent);var c=e.request(t);c.on("response",function(e){e.on("data",function(e){s+=e}),e.on("close",function(t){i&&a(e,s)}),e.addListener("end",function(){a(e,s)})}),c.on("error",function(e){o=!0,n(e)}),("POST"==t.method||"PUT"==t.method)&&r&&c.write(r),c.end()},t.OAuth2.prototype.getAuthorizeUrl=function(e){var e=e||{};return e.client_id=this._clientId,this._baseSite+this._authorizeUrl+"?"+i.stringify(e)},t.OAuth2.prototype.getOAuthAccessToken=function(e,t,r){var t=t||{};t.client_id=this._clientId,t.client_secret=this._clientSecret;var n="refresh_token"===t.grant_type?"refresh_token":"code";t[n]=e;var o=i.stringify(t),a={"Content-Type":"application/x-www-form-urlencoded"};this._request("POST",this._getAccessTokenUrl(),a,o,null,function(e,t,n){if(e)r(e);else{try{o=JSON.parse(t)}catch(e){o=i.parse(t)}var o,a=o.access_token,s=o.refresh_token;delete o.refresh_token,r(null,a,s,o)}})},t.OAuth2.prototype.getProtectedResource=function(e,t,r){this._request("GET",e,{},"",t,r)},t.OAuth2.prototype.get=function(e,t,r){if(this._useAuthorizationHeaderForGET){var n={Authorization:this.buildAuthHeader(t)};t=null}else n={};this._request("GET",e,n,"",t,r)}},80969:function(e,t){var r="=";function n(e,t){return o(i(a(e),a(t)))}function i(e,t){var r=s(e);r.length>16&&(r=c(r,8*e.length));for(var n=Array(16),i=Array(16),o=0;o<16;o++)n[o]=909522486^r[o],i[o]=1549556828^r[o];var a=c(n.concat(s(t)),512+8*t.length);return l(c(i.concat(a),672))}function o(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
51+/",n="",i=e.length,o=0;o<i;o+=3)for(var a=e.charCodeAt(o)<<16|(o+1<i?e.charCodeAt(o+1)<<8:0)|(o+2<i?e.charCodeAt(o+2):0),s=0;s<4;s++)8*o+6*s>8*e.length?n+=r:n+=t.charAt(a>>>6*(3-s)&63);return n}function a(e){for(var t,r,n="",i=-1;++i<e.length;)t=e.charCodeAt(i),r=i+1<e.length?e.charCodeAt(i+1):0,55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t=65536+((1023&t)<<10)+(1023&r),i++),t<=127?n+=String.fromCharCode(t):t<=2047?n+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?n+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(n+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return n}function s(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(var r=0;r<8*e.length;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<24-r%32;return t}function l(e){for(var t="",r=0;r<32*e.length;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}function c(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var r=Array(80),n=1732584193,i=-271733879,o=-1732584194,a=271733878,s=-1009589776,l=0;l<e.length;l+=16){for(var c=n,f=i,m=o,g=a,y=s,v=0;v<80;v++){v<16?r[v]=e[l+v]:r[v]=p(r[v-3]^r[v-8]^r[v-14]^r[v-16],1);var b=h(h(p(n,5),u(v,i,o,a)),h(h(s,r[v]),d(v)));s=a,a=o,o=p(i,30),i=n,n=b}n=h(n,c),i=h(i,f),o=h(o,m),a=h(a,g),s=h(s,y)}return[n,i,o,a,s]}function u(e,t,r,n){return e<20?t&r|~t&n:e<40?t^r^n:e<60?t&r|t&n|r&n:t^r^n}function d(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function h(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function p(e,t){return e<<t|e>>>32-t}t.HMACSHA1=function(e,t){return n(e,t)}},40705:function(e){!function(t){e.exports=t()}(function(){return(function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var l=void 0;if(!s&&l)return require(a,!0);if(o)return o(a,!0);throw Error("Cannot find module '"+a+"'")}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i})({1:[function(e,t,r){(function(n,i,o,a,s,l,c,u,d){"use strict";var h=e("crypto");function p(e,t){return function(e,t){if(void 0===(r="passthrough"!==t.algorithm?h.createHash(t.algorithm):new b).write&&(r.write=r.update,r.end=r.update),v(t,r).dispatch(e),r.update||r.end(""),r.digest)return r.digest("buffer"===t.encoding?void 0:t.encoding);var r,n=r.read();return"buffer"!==t.encoding?n.toString(t.encoding):n}(e,t=g(e,t))}(r=t.exports=p).sha1=function(e){return p(e)},r.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var f=h.getHashes?h.getHashes().slice():["sha1","md5"];f.push("passthrough");var m=["buffer","hex","binary","base64"];function g(e,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var n=0;n<f.length;++n)f[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=f[n]);if(-1===f.indexOf(r.algorithm))throw Error('Algorithm "'+r.algorithm+'"  not supported. supported values: '+f.join(", "));if(-1===m.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw Error('Encoding "'+r.encoding+'"  not supported. supported values: '+m.join(", "));return r}function y(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function v(e,t,r){function n(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return r=r||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var i,a=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(a);if(s=(s=s?s[1]:"unknown:["+a+"]").toLowerCase(),0<=(i=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+i+"]");if(r.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s||"asyncfunction"===s){var l=Object.keys(t);e.unorderedObjects&&(l=l.sort()),!1===e.respectType||y(t)||l.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(l=l.filter(function(t){return!e.excludeKeys(t)})),n("object:"+l.length+":");var c=this;return l.forEach(function(r){c.dispatch(r),n(":"),e.excludeValues||c.dispatch(t[r]),n(",")})}if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(n("array:"+t.length+":"),!i||t.length<=1)return t.forEach(function(e){return o.dispatch(e)});var a=[],s=t.map(function(t){var n=new b,i=r.slice();return v(e,n,i).dispatch(t),a=a.concat(i.slice(r.length)),n.read().toString()});return r=r.concat(a),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())}
vendor: 4,216 bytes, line 51
51,_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),y(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){n("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_bigint:function(e){return n("bigint:"+e.toString())},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function b(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}r.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),v(t=g(e,t),r).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,r){(function(e,t,n,i,o,a,s,l,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,r=43,n=47,i=48,o=97,a=65,s=45,l=95;function c(e){var t=e.charCodeAt(0);return t===r||t===s?62:t===n||t===l?63:t<i?-1:t<i+10?t-i+26+26:t<a+26?t-a:t<o+26?t-o+26:void 0}e.toByteArray=function(e){if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");var r,n,i=e.length,o="="===e.charAt(i-2)?2:"="===e.charAt(i-1)?1:0,a=new t(3*e.length/4-o),s=0<o?e.length-4:e.length,l=0;function u(e){a[l++]=e}for(r=0;r<s;r+=4)u((16711680&(n=c(e.charAt(r))<<18|c(e.charAt(r+1))<<12|c(e.charAt(r+2))<<6|c(e.charAt(r+3))))>>16),u((65280&n)>>8),u(255&n);return 2==o?u(255&(n=c(e.charAt(r))<<2|c(e.charAt(r+1))>>4)):1==o&&(u((n=c(e.charAt(r))<<10|c(e.charAt(r+1))<<4|c(e.charAt(r+2))>>2)>>8&255),u(255&n)),a},e.fromByteArray=function(e){var t,r,n,i,o=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
51+/".charAt(e)}for(t=0,n=e.length-o;t<n;t+=3)a+=s((i=r=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((r=e[e.length-1])>>2)+s(r<<4&63)+"==";break;case 2:a+=s((r=(e[e.length-2]<<8)+e[e.length-1])>>10)+s(r>>4&63)+s(r<<2&63)+"="}return a}}(void 0===r?this.base64js={}:r)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,r){(function(t,n,i,o,a,s,l,c,u){var d=e("base64-js"),h=e("ieee754");function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);var n,o,a,s,l,c=typeof e;if("base64"===t&&"string"==c)for(e=(n=e).trim?n.trim():n.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)o=I(e);else if("string"==c)o=i.byteLength(e,t);else{if("object"!=c)throw Error("First argument needs to be a number, array or string.");o=I(e.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(o)):((a=this).length=o,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(O(l=e)||i.isBuffer(l)||l&&"object"==typeof l&&"number"==typeof l.length)for(s=0;s<o;s++)i.isBuffer(e)?a[s]=e.readUInt8(s):a[s]=e[s];else if("string"==c)a.write(e,0,t);else if("number"==c&&!i._useTypedArrays&&!r)for(s=0;s<o;s++)a[s]=0;return a}function p(e,t,r,n){return i._charsWritten=L(function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function f(e,t,r,n){return i._charsWritten=L(function(e){for(var t,r,n=[],i=0;i<e.length;i++)r=(t=e.charCodeAt(i))>>8,n.push(t%256),n.push(r);return n}(t),e,r,n)}function m(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;i++)n+=String.fromCharCode(e[i]);return n}function g(e,t,r,n){n||(F("boolean"==typeof r,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+1<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return r?(i=e[t],t+1<o&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<o&&(i|=e[t+1])),i}function y(e,t,r,n){n||(F("boolean"==typeof r,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+3<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return r?(t+2<o&&(i=e[t+2]<<16),t+1<o&&(i|=e[t+1]<<8),i|=e[t],t+3<o&&(i+=e[t+3]<<24>>>0)):(t+1<o&&(i=e[t+1]<<16),t+2<o&&(i|=e[t+2]<<8),t+3<o&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function v(e,t,r,n){if(n||(F("boolean"==typeof r,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=g(e,t,r,!0);return 32768&i?-1*(65535-i+1):i}}function b(e,t,r,n){if(n||(F("boolean"==typeof r,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=y(e,t,r,!0);return 2147483648&i?-1*(4294967295-i+1):i}}function _(e,t,r,n){return n||(F("boolean"==typeof r,"missing or invalid endian"),F(t+3<e.length,"Trying to read beyond buffer length")),h.read(e,t,r,23,4)}function w(e,t,r,n){return n||(F("boolean"==typeof r,"missing or invalid endian"),F(t+7<e.length,"Trying to read beyond buffer length")),h.read(e,t,r,52,8)}function S(e,t,r,n,i){i||(F(null!=t,"missing value"),F("boolean"==typeof n,"missing or invalid endian"),F(null!=r,"missing offset"),F(r+1<e.length,"trying to write beyond buffer length"),j(t,65535));var o=e.length;if(!(o<=r))for(var a=0,s=Math.min(o-r,2);a<s;a++)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function k(e,t,r,n,i){i||(F(null!=t,"missing value"),F("boolean"==typeof n,"missing or invalid endian"),F(null!=r,"missing offset"),F(r+3<e.length,"trying to write beyond buffer length"),j(t,4294967295));var o=e.length;if(!(o<=r))for(var a=0,s=Math.min(o-r,4);a<s;a++)e[r+a]=t>>>8*(n?a:3-a)&255}function x(e,t,r,n,i){i||(F(null!=t,"missing value"),F("boolean"==typeof n,"missing or invalid endian"),F(null!=r,"missing offset"),F(r+1<e.length,"Trying to write beyond buffer length"),B(t,32767,-32768)),e.length<=r||S(e,0<=t?t:65535+t+1,r,n,i)}function E(e,t,r,n,i){i||(F(null!=t,"missing value"),F("boolean"==typeof n,"missing or invalid endian"),F(null!=r,"missing offset"),F(r+3<e.length,"Trying to write beyond buffer length"),B(t,2147483647,-2147483648)),e.length<=r||k(e,0<=t?t:4294967295+t+1,r,n,i)}function T(e,t,r,n,i){i||(F(null!=t,"missing value"),F("boolean"==typeof n,"missing or invalid endian"),F(null!=r,"missing offset"),F(r+3<e.length,"Trying to write beyond buffer length"),U(t,34028234663852886e22,-34028234663852886e22)),e.length<=r||h.write(e,t,r,n,23,4)}function A(e,t,r,n,i){i||(F(null!=t,"missing value"),F("boolean"==typeof n,"missing or invalid endian"),F(null!=r,"missing offset"),F(r+7<e.length,"Trying to write beyond buffer length"),U(t,17976931348623157e292,-17976931348623157e292)),e.length<=r||h.write(e,t,r,n,52,8)}r.Buffer=i,r.SlowBuffer=i,r.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=D(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=R(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw Error("Unknown encoding")}return r},i.concat=function(e,t){if(F(O(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var r=new i(t),n=0,o=0;o<e.length;o++){var a=e[o];a.copy(r,n),n+=a.length}return r}
vendor: 5,009 bytes, line 51
51,i.prototype.write=function(e,t,r,n){isFinite(t)?isFinite(r)||(n=r,r=void 0):(o=n,n=t,t=r,r=o),t=Number(t)||0;var o,a,s,l,c,u,d,h,m,g,y=this.length-t;switch((!r||y<(r=Number(r)))&&(r=y),n=String(n||"utf8").toLowerCase()){case"hex":a=function(e,t,r,n){r=Number(r)||0;var o=e.length-r;(!n||o<(n=Number(n)))&&(n=o);var a=t.length;F(a%2==0,"Invalid hex string"),a/2<n&&(n=a/2);for(var s=0;s<n;s++){var l=parseInt(t.substr(2*s,2),16);F(!isNaN(l),"Invalid hex string"),e[r+s]=l}return i._charsWritten=2*s,s}(this,e,t,r);break;case"utf8":case"utf-8":d=this,h=e,m=t,g=r,a=i._charsWritten=L(D(h),d,m,g);break;case"ascii":case"binary":a=p(this,e,t,r);break;case"base64":s=this,l=e,c=t,u=r,a=i._charsWritten=L(R(l),s,c,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=f(this,e,t,r);break;default:throw Error("Unknown encoding")}return a},i.prototype.toString=function(e,t,r){var n,i,o,a,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(r=void 0!==r?Number(r):r=s.length)===t)return"";switch(e){case"hex":n=function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=t;o<r;o++)i+=N(e[o]);return i}(s,t,r);break;case"utf8":case"utf-8":n=function(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;o<r;o++)e[o]<=127?(n+=M(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+M(i)}(s,t,r);break;case"ascii":case"binary":n=m(s,t,r);break;case"base64":i=s,a=r,n=0===(o=t)&&a===i.length?d.fromByteArray(i):d.fromByteArray(i.slice(o,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(s,t,r);break;default:throw Error("Unknown encoding")}return n},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t=t||0,n!==r&&0!==e.length&&0!==this.length){F(r<=n,"sourceEnd < sourceStart"),F(0<=t&&t<e.length,"targetStart out of bounds"),F(0<=r&&r<this.length,"sourceStart out of bounds"),F(0<=n&&n<=this.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(o<100||!i._useTypedArrays)for(var a=0;a<o;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+o),t)}},i.prototype.slice=function(e,t){var r=this.length;if(e=P(e,r,0),t=P(t,r,r),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var n=t-e,o=new i(n,void 0,!0),a=0;a<n;a++)o[a]=this[a+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(F(null!=e,"missing offset"),F(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return g(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return g(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return y(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return y(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(F(null!=e,"missing offset"),F(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return b(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return b(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return _(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return _(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return w(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return w(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,r){r||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t<this.length,"trying to write beyond buffer length"),j(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,r){S(this,e,t,!0,r)},i.prototype.writeUInt16BE=function(e,t,r){S(this,e,t,!1,r)},i.prototype.writeUInt32LE=function(e,t,r){k(this,e,t,!0,r)},i.prototype.writeUInt32BE=function(e,t,r){k(this,e,t,!1,r)},i.prototype.writeInt8=function(e,t,r){r||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t<this.length,"Trying to write beyond buffer length"),B(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},i.prototype.writeInt16LE=function(e,t,r){x(this,e,t,!0,r)},i.prototype.writeInt16BE=function(e,t,r){x(this,e,t,!1,r)},i.prototype.writeInt32LE=function(e,t,r){E(this,e,t,!0,r)},i.prototype.writeInt32BE=function(e,t,r){E(this,e,t,!1,r)},i.prototype.writeFloatLE=function(e,t,r){T(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){T(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){A(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){A(this,e,t,!1,r)}
51,i.prototype.fill=function(e,t,r){if(e=e||0,t=t||0,r=r||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),F("number"==typeof e&&!isNaN(e),"value is not a number"),F(t<=r,"end < start"),r!==t&&0!==this.length){F(0<=t&&t<this.length,"start out of bounds"),F(0<=r&&r<=this.length,"end out of bounds");for(var n=t;n<r;n++)this[n]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=N(this[n]),n===r.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;t<r;t+=1)e[t]=this[t];return e.buffer};var C=i.prototype;function P(e,t,r){return"number"!=typeof e?r:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function I(e){return(e=~~Math.ceil(+e))<0?0:e}function O(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function N(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(e.charCodeAt(r));else{var i=r;55296<=n&&n<=57343&&r++;for(var o=encodeURIComponent(e.slice(i,r+1)).substr(1).split("%"),a=0;a<o.length;a++)t.push(parseInt(o[a],16))}}return t}function R(e){return d.toByteArray(e)}function L(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function M(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function j(e,t){F("number"==typeof e,"cannot write a non-number as a number"),F(0<=e,"specified a negative value for writing an unsigned value"),F(e<=t,"value is larger than maximum value for type"),F(Math.floor(e)===e,"value has a fractional component")}function B(e,t,r){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(r<=e,"value smaller than minimum allowed value"),F(Math.floor(e)===e,"value has a fractional component")}function U(e,t,r){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(r<=e,"value smaller than minimum allowed value")}function F(e,t){if(!e)throw Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=C.get,e.set=C.set,e.write=C.write,e.toString=C.toString,e.toLocaleString=C.toString,e.toJSON=C.toJSON,e.copy=C.copy,e.slice=C.slice,e.readUInt8=C.readUInt8,e.readUInt16LE=C.readUInt16LE,e.readUInt16BE=C.readUInt16BE,e.readUInt32LE=C.readUInt32LE,e.readUInt32BE=C.readUInt32BE,e.readInt8=C.readInt8,e.readInt16LE=C.readInt16LE,e.readInt16BE=C.readInt16BE,e.readInt32LE=C.readInt32LE,e.readInt32BE=C.readInt32BE,e.readFloatLE=C.readFloatLE,e.readFloatBE=C.readFloatBE,e.readDoubleLE=C.readDoubleLE,e.readDoubleBE=C.readDoubleBE,e.writeUInt8=C.writeUInt8,e.writeUInt16LE=C.writeUInt16LE,e.writeUInt16BE=C.writeUInt16BE,e.writeUInt32LE=C.writeUInt32LE,e.writeUInt32BE=C.writeUInt32BE,e.writeInt8=C.writeInt8,e.writeInt16LE=C.writeInt16LE,e.writeInt16BE=C.writeInt16BE,e.writeInt32LE=C.writeInt32LE,e.writeInt32BE=C.writeInt32BE,e.writeFloatLE=C.writeFloatLE,e.writeFloatBE=C.writeFloatBE,e.writeDoubleLE=C.writeDoubleLE,e.writeDoubleBE=C.writeDoubleBE,e.fill=C.fill,e.inspect=C.inspect,e.toArrayBuffer=C.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){var i=e("buffer").Buffer,d=4,h=new i(4);h.fill(0),t.exports={hash:function(e,t,r,n){return i.isBuffer(e)||(e=new i(e)),function(e,t,r){for(var n=new i(t),o=r?n.writeInt32BE:n.writeInt32LE,a=0;a<e.length;a++)o.call(n,e[a],4*a,!0);return n}(t(function(e,t){var r;e.length%d!=0&&(r=e.length+(d-e.length%d),e=i.concat([e,h],r));for(var n=[],o=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=d)n.push(o.call(e,a));return n}
51(e,n),8*e.length),r,n)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,r){(function(t,n,i,o,a,s,l,c,u){var i=e("buffer").Buffer,d=e("./sha"),h=e("./sha256"),p=e("./rng"),f={sha1:d,sha256:h,md5:e("./md5")},m=64,g=new i(64);function y(e,t){var r=f[e=e||"sha1"],n=[];return r||v("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),n.push(e),e.length,this},digest:function(e){var o=i.concat(n),a=t?function(e,t,r){i.isBuffer(t)||(t=new i(t)),i.isBuffer(r)||(r=new i(r)),t.length>m?t=e(t):t.length<m&&(t=i.concat([t,g],m));for(var n=new i(m),o=new i(m),a=0;a<m;a++)n[a]=54^t[a],o[a]=92^t[a];var s=e(i.concat([n,r]));return e(i.concat([o,s]))}(r,t,o):r(o);return n=null,e?a.toString(e):a}}}function v(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}g.fill(0),r.createHash=function(e){return y(e)},r.createHmac=y,r.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}},function(e,t){for(var r in e)t(e[r],r)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){r[e]=function(){v("sorry,",e,"is not implemented yet")}})}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,l=n,c=i,u=o,r=f(r,n,i,o,e[a+0],7,-680876936),o=f(o,r,n,i,e[a+1],12,-389564586),i=f(i,o,r,n,e[a+2],17,606105819),n=f(n,i,o,r,e[a+3],22,-1044525330);r=f(r,n,i,o,e[a+4],7,-176418897),o=f(o,r,n,i,e[a+5],12,1200080426),i=f(i,o,r,n,e[a+6],17,-1473231341),n=f(n,i,o,r,e[a+7],22,-45705983),r=f(r,n,i,o,e[a+8],7,1770035416),o=f(o,r,n,i,e[a+9],12,-1958414417),i=f(i,o,r,n,e[a+10],17,-42063),n=f(n,i,o,r,e[a+11],22,-1990404162),r=f(r,n,i,o,e[a+12],7,1804603682),o=f(o,r,n,i,e[a+13],12,-40341101),i=f(i,o,r,n,e[a+14],17,-1502002290),r=m(r,n=f(n,i,o,r,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=m(o,r,n,i,e[a+6],9,-1069501632),i=m(i,o,r,n,e[a+11],14,643717713),n=m(n,i,o,r,e[a+0],20,-373897302),r=m(r,n,i,o,e[a+5],5,-701558691),o=m(o,r,n,i,e[a+10],9,38016083),i=m(i,o,r,n,e[a+15],14,-660478335),n=m(n,i,o,r,e[a+4],20,-405537848),r=m(r,n,i,o,e[a+9],5,568446438),o=m(o,r,n,i,e[a+14],9,-1019803690),i=m(i,o,r,n,e[a+3],14,-187363961),n=m(n,i,o,r,e[a+8],20,1163531501),r=m(r,n,i,o,e[a+13],5,-1444681467),o=m(o,r,n,i,e[a+2],9,-51403784),i=m(i,o,r,n,e[a+7],14,1735328473),r=g(r,n=m(n,i,o,r,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=g(o,r,n,i,e[a+8],11,-2022574463),i=g(i,o,r,n,e[a+11],16,1839030562),n=g(n,i,o,r,e[a+14],23,-35309556),r=g(r,n,i,o,e[a+1],4,-1530992060),o=g(o,r,n,i,e[a+4],11,1272893353),i=g(i,o,r,n,e[a+7],16,-155497632),n=g(n,i,o,r,e[a+10],23,-1094730640),r=g(r,
51n,i,o,e[a+13],4,681279174),o=g(o,r,n,i,e[a+0],11,-358537222),i=g(i,o,r,n,e[a+3],16,-722521979),n=g(n,i,o,r,e[a+6],23,76029189),r=g(r,n,i,o,e[a+9],4,-640364487),o=g(o,r,n,i,e[a+12],11,-421815835),i=g(i,o,r,n,e[a+15],16,530742520),r=y(r,n=g(n,i,o,r,e[a+2],23,-995338651),i,o,e[a+0],6,-198630844),o=y(o,r,n,i,e[a+7],10,1126891415),i=y(i,o,r,n,e[a+14],15,-1416354905),n=y(n,i,o,r,e[a+5],21,-57434055),r=y(r,n,i,o,e[a+12],6,1700485571),o=y(o,r,n,i,e[a+3],10,-1894986606),i=y(i,o,r,n,e[a+10],15,-1051523),n=y(n,i,o,r,e[a+1],21,-2054922799),r=y(r,n,i,o,e[a+8],6,1873313359),o=y(o,r,n,i,e[a+15],10,-30611744),i=y(i,o,r,n,e[a+6],15,-1560198380),n=y(n,i,o,r,e[a+13],21,1309151649),r=y(r,n,i,o,e[a+4],6,-145523070),o=y(o,r,n,i,e[a+11],10,-1120210379),i=y(i,o,r,n,e[a+2],15,718787259),n=y(n,i,o,r,e[a+9],21,-343485551),r=v(r,s),n=v(n,l),i=v(i,c),o=v(o,u)}return[r,n,i,o]}function p(e,t,r,n,i,o){var a,s;return v((a=v(v(t,e),v(n,o)))<<(s=i)|a>>>32-s,r)}function f(e,t,r,n,i,o,a){return p(t&r|~t&n,e,t,i,o,a)}function m(e,t,r,n,i,o,a){return p(t&n|r&~n,e,t,i,o,a)}function g(e,t,r,n,i,o,a){return p(t^r^n,e,t,i,o,a)}function y(e,t,r,n,i,o,a){return p(r^(t|~n),e,t,i,o,a)}function v(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,r){(function(e,r,n,i,o,a,s,l,c){var u,d;d=function(e){for(var t,r=Array(e),n=0;n<e;n++)0==(3&n)&&(t=4294967296*Math.random()),r[n]=t>>>((3&n)<<3)&255;return r},t.exports=u||d}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,i,o,a,s=Array(80),l=1732584193,c=-271733879,u=-1732584194,d=271733878,h=-1009589776,m=0;m<e.length;m+=16){for(var g=l,y=c,v=u,b=d,_=h,w=0;w<80;w++){s[w]=w<16?e[m+w]:f(s[w-3]^s[w-8]^s[w-14]^s[w-16],1);var S=p(p(f(l,5),(i=c,o=u,a=d,(n=w)<20?i&o|~i&a:!(n<40)&&n<60?i&o|i&a|o&a:i^o^a)),p(p(h,s[w]),(r=w)<20?1518500249:r<40?1859775393:r<60?-1894007588:-899497514)),h=d,d=u,u=f(c,30),c=l,l=S}l=p(l,g),c=p(c,y),u=p(u,v),d=p(d,b),h=p(h,_)}return[l,c,u,d,h]}function p(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function f(e,t){return e<<t|e>>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){function d(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function h(e,t){return e>>>t|e<<32-t}function p(e,t){var r,n,i,o,a,s,l,c,u,p,f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],m=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],g=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;
51for(var y,v,b,_,w,S,k,x,E=0;E<e.length;E+=16){r=m[0],n=m[1],i=m[2],o=m[3],a=m[4],s=m[5],l=m[6],c=m[7];for(var T=0;T<64;T++)g[T]=T<16?e[T+E]:d(d(d(h(x=g[T-2],17)^h(x,19)^x>>>10,g[T-7]),h(k=g[T-15],7)^h(k,18)^k>>>3),g[T-16]),u=d(d(d(d(c,h(S=a,6)^h(S,11)^h(S,25)),(w=a)&s^~w&l),f[T]),g[T]),p=d(h(_=r,2)^h(_,13)^h(_,22),(y=r)&(v=n)^y&(b=i)^v&b),c=l,l=s,s=a,a=d(o,u),o=i,i=n,n=r,r=d(u,p);m[0]=d(r,m[0]),m[1]=d(n,m[1]),m[2]=d(i,m[2]),m[3]=d(o,m[3]),m[4]=d(a,m[4]),m[5]=d(s,m[5]),m[6]=d(l,m[6]),m[7]=d(c,m[7])}return m}var f=e("./helpers");t.exports=function(e){return f.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,r){(function(e,r,n,i,o,a,s,l,c){function u(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=u,e.addListener=u,e.once=u,e.off=u,e.removeListener=u,e.removeAllListeners=u,e.emit=u,e.binding=function(e){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,r){(function(e,t,n,i,o,a,s,l,c){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,h=r?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;0<u;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;0<u;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?5960464477539062e-23:0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+d?h/l:h*Math.pow(2,1-d))*l&&(a++,l/=2),u<=a+d?(s=0,a=u):1<=a+d?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));8<=i;e[r+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;e[r+p]=255&a,p+=f,a/=256,c-=8);e[r+p-f]|=128*m}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})},23567:function(e,t,r){let n;var i=r(48764).Buffer;let{strict:o}=r(27596),{createHash:a}=r(42474),{format:s}=r(79720),l=r(22477);if(i.isEncoding("base64url"))n=e=>e.toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=t=>e(t.toString("base64"))}function c(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return a("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return a("sha384");case"HS512":case"RS512":case"PS512":case"ES512":return a("sha512");case"EdDSA":switch(t){case"Ed25519":return a("sha512");case"Ed448":if(!l)throw TypeError("Ed448 *_hash calculation is not supported in your Node.js runtime version");return a("shake256",{outputLength:114});default:throw TypeError("unrecognized or invalid EdDSA curve provided")}default:throw TypeError("unrecognized or invalid JWS algorithm provided")}}function u(e,t,r){let i=c(t,r).update(e).digest();return n(i.slice(0,i.length/2))}function d(e,t,r,n,i){let a,l;if("string"!=typeof e.claim||!e.claim)throw TypeError("names.claim must be a non-empty string");if("string"!=typeof e.source||!e.source)throw TypeError("names.source must be a non-empty string");o("string"==typeof t&&t,`${e.claim} must be a non-empty string`),o("string"==typeof r&&r,`${e.source} must be a non-empty string`);try{a=u(r,n,i)}catch(t){l=s("%s could not be validated (%s)",e.claim,t.message)}l=l||s("%s mismatch, expected %s, got: %s",e.claim,a,t),o.equal(a,t,l)}e.exports={validate:d,generate:u}},22477:function(e,t,r){var n=r(34155);let i=r(42474),[o,a]=n.version.substring(1).split(".").map(e=>parseInt(e,10)),s=(o>12||12===o&&a>=8)&&i.getHashes().includes("shake256");e.exports=s},62251:function(e,t,r){let n;var i=r(34155),o=r(48764).Buffer;let{inspect:a}=r(79720),s=r(22321),l=r(42474),{strict:c}=r(27596),u=r(97334),d=r(11987),{URL:h,URLSearchParams:p}=r(11987),f=r(45595),m=r(23567),g=r(92793),y=r(77749),v=r(42806),b=r(51892),_=r(88026),{assertSigningAlgValuesSupport:w,assertIssuerConfiguration:S}=r(8867),k=r(76038),x=r(51303),E=r(47787),T=r(81911),{OPError:A,RPError:C}
51=r(67486),P=r(96891),{random:I}=r(68767),O=r(3862),{CLOCK_TOLERANCE:N}=r(78026),{keystores:D}=r(64385),R=r(42485),L=r(71050),{authenticatedPost:M,resolveResponseType:j,resolveRedirectUri:B}=r(4944),{queryKeyStore:U}=r(17042),F=r(27649),[H,z]=i.version.slice(1).split(".").map(e=>parseInt(e,10)),$=H>=17||16===H&&z>=9,q=Symbol(),W=Symbol(),V=Symbol();function G(e){return k(e,"access_token","code","error_description","error_uri","error","expires_in","id_token","iss","response","session_state","state","token_type")}function K(e,t="Bearer"){return`${t} ${e}`}function Z(e){let t=d.parse(e);return t.search?u.parse(t.search.substring(1)):{}}function Y(e,t,r){if(void 0===e[r])throw new C({message:`missing required JWT property ${r}`,jwt:t})}function J(e){let t={client_id:this.client_id,scope:"openid",response_type:j.call(this),redirect_uri:B.call(this),...e};return Object.entries(t).forEach(([e,r])=>{null==r?delete t[e]:"claims"===e&&"object"==typeof r?t[e]=JSON.stringify(r):"resource"===e&&Array.isArray(r)?t[e]=r:"string"!=typeof r&&(t[e]=String(r))}),t}function X(e){if(!x(e)||!Array.isArray(e.keys)||e.keys.some(e=>!x(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");return R.fromJWKS(e,{onlyPrivate:!0})}function Q(e,t){try{let r=e.issuer.token_endpoint_auth_methods_supported;!r.includes(t.token_endpoint_auth_method)&&r.includes("client_secret_post")&&(t.token_endpoint_auth_method="client_secret_post")}catch(e){}}function ee(e,t,r){if(t.token_endpoint_auth_method||Q(e,r),t.redirect_uri){if(t.redirect_uris)throw TypeError("provide a redirect_uri or redirect_uris, not both");r.redirect_uris=[t.redirect_uri],delete r.redirect_uri}if(t.response_type){if(t.response_types)throw TypeError("provide a response_type or response_types, not both");r.response_types=[t.response_type],delete r.response_type}}function et(e,t,r){if(!t[`${e}_endpoint`])return;let n=r.token_endpoint_auth_method,i=r.token_endpoint_auth_signing_alg,o=`${e}_endpoint_auth_method`,a=`${e}_endpoint_auth_signing_alg`;void 0===r[o]&&void 0===r[a]&&(void 0!==n&&(r[o]=n),void 0!==i&&(r[a]=i))}class er{#e;#t;#r;#n;constructor(e,t,r={},n,i){if(this.#e=new Map,this.#t=e,this.#r=t,"string"!=typeof r.client_id||!r.client_id)throw TypeError("client_id is required");let o={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic",...this.fapi()?{grant_types:["authorization_code","implicit"],id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",response_types:["code id_token"],tls_client_certificate_bound_access_tokens:!0,token_endpoint_auth_method:void 0}:void 0,...r};if(this.fapi())switch(o.token_endpoint_auth_method){case"self_signed_tls_client_auth":case"tls_client_auth":break;case"private_key_jwt":if(!n)throw TypeError("jwks is required");break;case void 0:throw TypeError("token_endpoint_auth_method is required");default:throw TypeError("invalid or unsupported token_endpoint_auth_method")}if(ee(this,r,o),w("token",this.issuer,o),["introspection","revocation"].forEach(e=>{et(e,this.issuer,o),w(e,this.issuer,o)}),Object.entries(o).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),void 0!==n){let e=X.call(this,n);D.set(this,e)}null!=i&&i.additionalAuthorizedParties&&(this.#n=L(i.additionalAuthorizedParties)),this[N]=0}authorizationUrl(e={}){if(!x(e))throw TypeError("params must be a plain object");S(this.issuer,"authorization_endpoint");let t=new h(this.issuer.authorization_endpoint);for(let[r,n]of Object.entries(J.call(this,e)))if(Array.isArray(n))for(let e of(t.searchParams.delete(r),n))t.searchParams.append(r,e);else t.searchParams.set(r,n);return t.href.replace(/\+/g,"%20")}authorizationPost(e={}){if(!x(e))throw TypeError("params must be a plain object");let t=J.call(this,e),r=Object.keys(t).map(e=>`<input type="hidden" name="${e}" value="${t[e]}"/>`).join("\n");return`<!DOCTYPE html>
52<head>
53<title>Requesting Authorization</title>
54</head>
55<body onload="javascript:document.forms[0].submit()">
56<form method="post" action="${this.issuer.authorization_endpoint}">
57  ${r}
58</form>
59</body>
60</html>`}endSessionUrl(e={}){let t;S(this.issuer,"end_session_endpoint");let{0:r,length:n}=this.post_logout_redirect_uris||[],{post_logout_redirect_uri:i=1===n?r:void 0}=e;if({id_token_hint:t,...e}=e,t instanceof T){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let o=d.parse(this.issuer.end_session_endpoint),a=b(Z(this.issuer.end_session_endpoint),e,{post_logout_redirect_uri:i,client_id:this.client_id},{id_token_hint:t});
60return Object.entries(a).forEach(([e,t])=>{null==t&&delete a[e]}),o.search=null,o.query=a,d.format(o)}callbackParams(e){let t=e instanceof s.IncomingMessage||e&&e.method&&e.url;if("string"!=typeof e&&!t)throw TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike");if(!t)return G(Z(e));switch(e.method){case"GET":return G(Z(e.url));case"POST":if(void 0===e.body)throw TypeError("incoming message body missing, include a body parser prior to this method call");switch(typeof e.body){case"object":case"string":if(o.isBuffer(e.body))return G(u.parse(e.body.toString("utf-8")));if("string"==typeof e.body)return G(u.parse(e.body));return G(e.body);default:throw TypeError("invalid IncomingMessage body object")}default:throw TypeError("invalid IncomingMessage method")}}async callback(e,t,r={},{exchangeBody:n,clientAssertionPayload:i,DPoP:o}={}){let a=G(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new C({message:"expected a JARM response",checks:r,params:a});if(this.default_max_age&&!r.max_age&&(r.max_age=this.default_max_age),a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new C({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new C({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(S(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new C({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new C({message:"iss missing from the response",params:a});if(a.error)throw new A(a);let s={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(r.response_type){for(let e of r.response_type.split(" "))if("none"===e){if(a.code||a.id_token||a.access_token)throw new C({message:'unexpected params encountered for "none" response',checks:r,params:a})}else for(let t of s[e])if(!a[t])throw new C({message:`${t} missing from response`,checks:r,params:a})}if(a.id_token){let e=new T(a);if(await this.decryptIdToken(e),await this.validateIdToken(e,r.nonce,"authorization",r.max_age,r.state),!a.code)return e}if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:i,DPoP:o});return await this.decryptIdToken(t),await this.validateIdToken(t,r.nonce,"token",r.max_age),a.session_state&&(t.session_state=a.session_state),t}return new T(a)}async oauthCallback(e,t,r={},{exchangeBody:n,clientAssertionPayload:i,DPoP:o}={}){let a=G(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new C({message:"expected a JARM response",checks:r,params:a});if(a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new C({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new C({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(S(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new C({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new C({message:"iss missing from the response",params:a});if(a.error)throw new A(a);if("string"==typeof a.id_token&&a.id_token.length)throw new C({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});delete a.id_token;let s={code:["code"],token:["access_token","token_type"]};if(r.response_type)for(let e of r.response_type.split(" ")){if("none"===e&&(a.code||a.id_token||a.access_token))throw new C({message:'unexpected params encountered for "none" response',checks:r,params:a});if(s[e]){for(let t of s[e])if(!a[t])throw new C({message:`${t} missing from response`,checks:r,params:a})}}
60if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:i,DPoP:o});if("string"==typeof t.id_token&&t.id_token.length)throw new C({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});return delete t.id_token,t}return new T(a)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg)return e;let t=e;if(t instanceof T){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let r=this.id_token_encrypted_response_alg,n=this.id_token_encrypted_response_enc,i=await this.decryptJWE(t,r,n);return e instanceof T?(e.id_token=i,e):i}async validateJWTUserinfo(e){let t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg)return e;let t=this.authorization_encrypted_response_alg,r=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg)return e;let t=this.userinfo_encrypted_response_alg,r=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWE(e,t,r="A128CBC-HS256"){let n;let i=JSON.parse(v.decode(e.split(".")[0]));if(i.alg!==t)throw new C({printf:["unexpected JWE alg received, expected %s, got: %s",t,i.alg],jwt:e});if(i.enc!==r)throw new C({printf:["unexpected JWE enc received, expected %s, got: %s",r,i.enc],jwt:e});let o=e=>new TextDecoder().decode(e.plaintext);if(t.match(/^(?:RSA|ECDH)/)){let t=await D.get(this),r=f.decodeProtectedHeader(e);for(let i of t.all({...r,use:"enc"}))if(n=await f.compactDecrypt(e,await i.keyObject(r.alg)).then(o,()=>{}))break}else n=await f.compactDecrypt(e,this.secretForAlg("dir"===t?r:t)).then(o,()=>{});if(!n)throw new C({message:"failed to decrypt JWE",jwt:e});return n}async validateIdToken(e,t,r,n,i){let o=e,a=this.id_token_signed_response_alg;if(o instanceof T){if(!o.id_token)throw TypeError("id_token not present in TokenSet");o=o.id_token}o=String(o);let s=P(),{protected:l,payload:c,key:u}=await this.validateJWT(o,a);if("number"==typeof n||n!==V&&this.require_auth_time){if(!c.auth_time)throw new C({message:"missing required JWT property auth_time",jwt:o});if("number"!=typeof c.auth_time)throw new C({message:"JWT auth_time claim must be a JSON numeric value",jwt:o})}if("number"==typeof n&&c.auth_time+n<s-this[N])throw new C({printf:["too much time has elapsed since the last End-User authentication, max_age %i, auth_time: %i, now %i",n,c.auth_time,s-this[N]],now:s,tolerance:this[N],auth_time:c.auth_time,jwt:o});if(t!==W&&(c.nonce||void 0!==t)&&c.nonce!==t)throw new C({printf:["nonce mismatch, expected %s, got: %s",t,c.nonce],jwt:o});if("authorization"===r){if(!c.at_hash&&e.access_token)throw new C({message:"missing required property at_hash",jwt:o});if(!c.c_hash&&e.code)throw new C({message:"missing required property c_hash",jwt:o});if(this.fapi()&&!c.s_hash&&(e.state||i))throw new C({message:"missing required property s_hash",jwt:o});if(c.s_hash){if(!i)throw TypeError('cannot verify s_hash, "checks.state" property not provided');try{m.validate({claim:"s_hash",source:"state"},c.s_hash,i,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new C({message:e.message,jwt:o})}}}if(this.fapi()&&c.iat<s-3600)throw new C({printf:["JWT issued too far in the past, now %i, iat %i",s,c.iat],now:s,tolerance:this[N],iat:c.iat,jwt:o});if(e.access_token&&void 0!==c.at_hash)try{m.validate({claim:"at_hash",source:"access_token"},c.at_hash,e.access_token,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new C({message:e.message,jwt:o})}if(e.code&&void 0!==c.c_hash)try{m.validate({claim:"c_hash",source:"code"},c.c_hash,e.code,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new C({message:e.message,jwt:o})}return e}async validateJWT(e,t,r=["iss","sub","aud","exp","iat"]){let n,i,o;let a="https://self-issued.me"===this.issuer.issuer,s=P();try{({header:n,payload:i}=y(e,{complete:!0}))}catch(t){throw new C({printf:["failed to decode JWT (%s: %s)",t.name,t.message],jwt:e})}if(n.alg!==t)throw new C({printf:["unexpected JWT alg received, expected %s, got: %s",t,n.alg],jwt:e});if(a&&(r=[...r,"sub_jwk"]),r.forEach(Y.bind(void 0,i,e)),void 0!==i.iss){let t=this.issuer.issuer;if(this.#r&&(t=this.issuer.issuer.replace("{tenantid}",i.tid)),i.iss!==t)throw new C({printf:["unexpected iss value, expected %s, got: %s",t,i.iss],jwt:e})}if(void 0!==i.iat&&"number"!=typeof i.iat)throw new C({message:"JWT iat claim must be a JSON numeric value",jwt:e});if(void 0!==i.nbf){if("number"!=typeof i.nbf)throw new C({message:"JWT nbf claim must be a JSON numeric value",jwt:e});if(i.nbf>s+this[N])throw new C({printf:["JWT not active yet, now %i, nbf %i",s+this[N],i.nbf],now:s,tolerance:this[N],nbf:i.nbf,jwt:e})}if(void 0!==i.exp){if("number"!=typeof i.exp)throw new C({message:"JWT exp claim must be a JSON numeric value",jwt:e});if(s-this[N]>
60=i.exp)throw new C({printf:["JWT expired, now %i, exp %i",s-this[N],i.exp],now:s,tolerance:this[N],exp:i.exp,jwt:e})}if(void 0!==i.aud){if(Array.isArray(i.aud)){if(i.aud.length>1&&!i.azp)throw new C({message:"missing required JWT property azp",jwt:e});if(!i.aud.includes(this.client_id))throw new C({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,i.aud],jwt:e})}else if(i.aud!==this.client_id)throw new C({printf:["aud mismatch, expected %s, got: %s",this.client_id,i.aud],jwt:e})}if(void 0!==i.azp){let t=this.#n;if(!(t="string"==typeof t?[this.client_id,t]:Array.isArray(t)?[this.client_id,...t]:[this.client_id]).includes(i.azp))throw new C({printf:["azp mismatch, got: %s",i.azp],jwt:e})}if(a){try{c(x(i.sub_jwk));let e=await f.importJWK(i.sub_jwk,n.alg);c.equal(e.type,"public"),o=[{keyObject:()=>e}]}catch(t){throw new C({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(await f.calculateJwkThumbprint(i.sub_jwk)!==i.sub)throw new C({message:"failed to match the subject with sub_jwk",jwt:e})}else n.alg.startsWith("HS")?o=[this.secretForAlg(n.alg)]:"none"!==n.alg&&(o=await U.call(this.issuer,{...n,use:"sig"}));if(!o&&"none"===n.alg)return{protected:n,payload:i};for(let t of o){let r=await f.compactVerify(e,t instanceof Uint8Array?t:await t.keyObject(n.alg)).catch(()=>{});if(r)return{payload:i,protected:r.protectedHeader,key:t}}throw new C({message:"failed to validate JWT signature",jwt:e})}async refresh(e,{exchangeBody:t,clientAssertionPayload:r,DPoP:n}={}){let i=e;if(i instanceof T){if(!i.refresh_token)throw TypeError("refresh_token not present in TokenSet");i=i.refresh_token}let o=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(i)},{clientAssertionPayload:r,DPoP:n});if(o.id_token&&(await this.decryptIdToken(o),await this.validateIdToken(o,W,"token",V),e instanceof T&&e.id_token)){let t=e.claims().sub,r=o.claims().sub;if(r!==t)throw new C({printf:["sub mismatch, expected %s, got: %s",t,r],jwt:o.id_token})}return o}async requestResource(e,t,{method:r,headers:n,body:i,DPoP:o,tokenType:a=o?"DPoP":t instanceof T?t.token_type:"Bearer"}={},s){if(t instanceof T){if(!t.access_token)throw TypeError("access_token not present in TokenSet");t=t.access_token}if(t){if("string"!=typeof t)throw TypeError("invalid access token provided")}else throw TypeError("no access token provided");let l={headers:{Authorization:K(t,a),...n},body:i},c=!!this.tls_client_certificate_bound_access_tokens,u=await O.call(this,{...l,responseType:"buffer",method:r,url:e},{accessToken:t,mTLS:c,DPoP:o}),d=u.headers["www-authenticate"];return s!==q&&d&&d.toLowerCase().startsWith("dpop ")&&"use_dpop_nonce"===_(d).error?this.requestResource(e,t,{method:r,headers:n,body:i,DPoP:o,tokenType:a}):u}async userinfo(e,{method:t="GET",via:r="header",tokenType:n,params:i,DPoP:o}={}){let a;S(this.issuer,"userinfo_endpoint");let s={tokenType:n,method:String(t).toUpperCase(),DPoP:o};if("GET"!==s.method&&"POST"!==s.method)throw TypeError("#userinfo() method can only be POST or a GET");if("body"===r&&"POST"!==s.method)throw TypeError("can only send body on POST");let l=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);l?s.headers={Accept:"application/jwt"}:s.headers={Accept:"application/json"},this.tls_client_certificate_bound_access_tokens&&this.issuer.mtls_endpoint_aliases&&(a=this.issuer.mtls_endpoint_aliases.userinfo_endpoint),a=new h(a||this.issuer.userinfo_endpoint),"body"===r&&(s.headers.Authorization=void 0,s.headers["Content-Type"]="application/x-www-form-urlencoded",s.body=new p,s.body.append("access_token",e instanceof T?e.access_token:e)),i&&("GET"===s.method?Object.entries(i).forEach(([e,t])=>{a.searchParams.append(e,t)}):s.body?Object.entries(i).forEach(([e,t])=>{s.body.append(e,t)}):(s.body=new p,s.headers["Content-Type"]="application/x-www-form-urlencoded",Object.entries(i).forEach(([e,t])=>{s.body.append(e,t)}))),s.body&&(s.body=s.body.toString());let u=await this.requestResource(a,e,s),d=E(u,{bearer:!0});if(l){if(!/^application\/jwt/.test(u.headers["content-type"]))throw new C({message:"expected application/jwt response from the userinfo_endpoint",response:u});let e=u.body.toString(),t=await this.decryptJWTUserinfo(e);if(this.userinfo_signed_response_alg)({payload:d}=await this.validateJWTUserinfo(t));else try{d=JSON.parse(t),c(x(d))}catch(e){throw new C({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else try{d=JSON.parse(u.body)}catch(e){throw Object.defineProperty(e,"response",{value:u}),e}if(e instanceof T&&e.id_token){let t=e.claims().sub;if(d.sub!==t)throw new C({printf:["userinfo sub mismatch, expected %s, got: %s",t,d.sub],body:d,jwt:e.id_token})}return d}encryptionSecret(e){let t=e<=256?"sha256":e<=384?"sha384":e<=512&&"sha512";if(!t)throw Error("unsupported symmetric encryption key derivation");return l.createHash(t).update(this.client_secret).digest().slice(0,e/8)}secretForAlg(e){if(!this.client_secret)throw TypeError("client_secret is required");return/^A(\d{3})(?:GCM)?KW$/.test(e)?this.encryptionSecret(parseInt(RegExp.$1,10)):/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)?this.encryptionSecret(parseInt(RegExp.$2||RegExp.$1,10)):new TextEncoder().encode(this.client_secret)}async grant(e,{clientAssertionPayload:t,DPoP:r}={},n){let i;S(this.issuer,"token_endpoint");let o=await M.call(this,"token",{form:e,responseType:"json"},{clientAssertionPayload:t,DPoP:r});try{i=E(o)}catch(i){if(n!==q&&i instanceof A&&"use_dpop_nonce"===i.error)return this.grant(e,{clientAssertionPayload:t,DPoP:r},q);throw i}return new T(i)}async deviceAuthorization(e={},{exchangeBody:t,clientAssertionPayload:r,DPoP:n}={}){S(this.issuer,"device_authorization_endpoint"),S(this.issuer,"token_endpoint");let i=J.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e}),o=E(await M.call(this,"device_authorization",{responseType:"json",form:i},{clientAssertionPayload:r,endpointAuthMethod:"token"}));return new F({client:this,exchangeBody:t,clientAssertionPayload:r,response:o,maxAge:e.max_age,DPoP:n})}async revoke(e,t,{revokeBody:r,clientAssertionPayload:n}={}){if(S(this.issuer,"revocation_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let i={...r,token:e};t&&(i.token_type_hint=t),E(await M.call(this,"revocation",{form:i},{clientAssertionPayload:n}),{body:!1})}async introspect(e,t,{introspectBody:r,clientAssertionPayload:n}={}){if(S(this.issuer,"introspection_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let i={...r,token:e};return t&&(i.token_type_hint=t),E(await M.call(this,"introspection",{form:i,responseType:"json"},{clientAssertionPayload:n}))}static async register(e,t={}){let{initialAccessToken:r,jwks:n,...i}=t;if(S(this.issuer,"registration_endpoint"),void 0!==n&&!(e.jwks||e.jwks_uri)){let t=await X.call(this,n);e.jwks=t.toJWKS()}return new this(E(await O.call(this,{headers:{Accept:"application/json",...r?{Authorization:K(r)}:void 0},responseType:"json",json:e,url:this.issuer.registration_endpoint,method:"POST"}),{statusCode:201,bearer:!0}),n,i)}get metadata(){return L(Object.fromEntries(this.#e.entries()))}static async fromUri(e,t,r,n){return new this(E(await O.call(this,{method:"GET",url:e,responseType:"json",headers:{Authorization:K(t),Accept:"application/json"}}),{bearer:!0}),r,n)}async requestObject(e={},{sign:t=this.request_object_signing_alg||"none",encrypt:{alg:r=this.request_object_encryption_alg,enc:n=this.request_object_encryption_enc||"A128CBC-HS256"}={}}={}){let i,o;if(!x(e))throw TypeError("requestObject must be a plain object");let a=P(),s={alg:t,typ:"oauth-authz-req+jwt"},l=JSON.stringify(b({},e,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:I(),iat:a,exp:a+300,...this.fapi()?{nbf:a}:void 0}));if("none"===t)i=[v.encode(JSON.stringify(s)),v.encode(l),""].join(".");else{let e=t.startsWith("HS");if(e)o=this.secretForAlg(t);else{let e=await D.get(this);if(!e)throw TypeError(`no keystore present for client, cannot sign using alg ${t}`);if(!(o=e.get({alg:t,use:"sig"})))throw TypeError(`no key to sign with found for alg ${t}`)}i=await new f.CompactSign(new TextEncoder().encode(l)).setProtectedHeader({...s,kid:e?void 0:o.jwk.kid}).sign(e?o:await o.keyObject(t))}if(!r)return i;let c={alg:r,enc:n,cty:"oauth-authz-req+jwt"};return c.alg.match(/^(RSA|ECDH)/)?[o]=await U.call(this.issuer,{alg:c.alg,use:"enc"},{allowMulti:!0}):o=this.secretForAlg("dir"===c.alg?c.enc:c.alg),new f.CompactEncrypt(new TextEncoder().encode(i)).setProtectedHeader({...c,kid:o instanceof Uint8Array?void 0:o.jwk.kid}
60).encrypt(o instanceof Uint8Array?o:await o.keyObject(c.alg))}async pushedAuthorizationRequest(e={},{clientAssertionPayload:t}={}){S(this.issuer,"pushed_authorization_request_endpoint");let r={..."request"in e?e:J.call(this,e),client_id:this.client_id},n=await M.call(this,"pushed_authorization_request",{responseType:"json",form:r},{clientAssertionPayload:t,endpointAuthMethod:"token"}),i=E(n,{statusCode:201});if(!("expires_in"in i))throw new C({message:"expected expires_in in Pushed Authorization Successful Response",response:n});if("number"!=typeof i.expires_in)throw new C({message:"invalid expires_in value in Pushed Authorization Successful Response",response:n});if(!("request_uri"in i))throw new C({message:"expected request_uri in Pushed Authorization Successful Response",response:n});if("string"!=typeof i.request_uri)throw new C({message:"invalid request_uri value in Pushed Authorization Successful Response",response:n});return i}get issuer(){return this.#t}[a.custom](){return`${this.constructor.name} ${a(this.metadata,{depth:1/0,colors:i.stdout.isTTY,compact:!1,sorted:!0})}`}fapi(){return"FAPI1Client"===this.constructor.name}async validateJARM(e){let t=this.authorization_signed_response_alg,{payload:r}=await this.validateJWT(e,t,["iss","exp","aud"]);return G(r)}async dpopProof(e,t,r){let i;if(!x(e))throw TypeError("payload must be a plain object");if(g(t))i=t;else if("CryptoKey"===t[Symbol.toStringTag])i=t;else if("node:crypto"===f.cryptoRuntime)i=l.createPrivateKey(t);else throw TypeError("unrecognized crypto runtime");if("private"!==i.type)throw TypeError('"DPoP" option must be a private key');let o=n.call(this,i,t);if(!o)throw TypeError("could not determine DPoP JWS Algorithm");return new f.SignJWT({ath:r?v.encode(l.createHash("sha256").update(r).digest()):void 0,...e}).setProtectedHeader({alg:o,typ:"dpop+jwt",jwk:await es(i,t)}).setIssuedAt().setJti(I()).sign(i)}}
60function en(e){switch(e.algorithm.name){case"Ed25519":case"Ed448":return"EdDSA";case"ECDSA":switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512"}break;case"RSASSA-PKCS1-v1_5":return`RS${e.algorithm.hash.name.slice(4)}`;case"RSA-PSS":return`PS${e.algorithm.hash.name.slice(4)}`;default:throw TypeError("unsupported DPoP private key")}}if("node:crypto"===f.cryptoRuntime){n=function(e,t){if("CryptoKey"===t[Symbol.toStringTag])return en(e);switch(e.asymmetricKeyType){case"ed25519":case"ed448":return"EdDSA";case"ec":return eo(e,t);case"rsa":case $&&"rsa-pss":return ei(e,t,this.issuer.dpop_signing_alg_values_supported);default:throw TypeError("unsupported DPoP private key")}};let e=/^(?:RS|PS)(?:256|384|512)$/;function ei(t,r,n){if("object"==typeof r&&"jwk"===r.format&&r.key&&r.key.alg)return r.key.alg;if(Array.isArray(n)){let r=n.filter(RegExp.prototype.test.bind(e));return"rsa-pss"===t.asymmetricKeyType&&(r=r.filter(e=>e.startsWith("PS"))),["PS256","PS384","PS512","RS256","RS384","RS384"].find(e=>r.includes(e))}return"PS256"}let t=o.from([42,134,72,206,61,3,1,7]),r=o.from([43,129,4,0,34]),i=o.from([43,129,4,0,35]),a=o.from([43,129,4,0,10]);function eo(e,n){switch("object"==typeof n&&"object"==typeof n.key&&n.key.crv){case"P-256":return"ES256";case"secp256k1":return"ES256K";case"P-384":return"ES384";case"P-512":return"ES512"}let o=e.export({format:"der",type:"pkcs8"}),s=o[1]<128?17:18,l=o[s],c=o.slice(s+1,s+1+l);if(c.equals(t))return"ES256";if(c.equals(r))return"ES384";if(c.equals(i))return"ES512";if(c.equals(a))return"ES256K";throw TypeError("unsupported DPoP private key curve")}}else n=en;let ea=new WeakMap;async function es(e,t){if("node:crypto"===f.cryptoRuntime&&"object"==typeof t&&"object"==typeof t.key&&"jwk"===t.format)return k(t.key,"kty","crv","x","y","e","n");if(ea.has(t))return ea.get(t);let r=k(await f.exportJWK(e),"kty","crv","x","y","e","n");return(g(t)||"WebCryptoAPI"===f.cryptoRuntime)&&ea.set(t,r),r}e.exports=(e,t=!1)=>class extends er{constructor(...r){super(e,t,...r)}static get issuer(){return e}},e.exports.BaseClient=er},27649:function(e,t,r){var n=r(34155);let{inspect:i}=r(79720),{RPError:o,OPError:a}=r(67486),s=r(96891);class l{#i;#o;#a;#s;#l;#c;#u;#d;#h;constructor({client:e,exchangeBody:t,clientAssertionPayload:r,response:n,maxAge:i,DPoP:a}){if(["verification_uri","user_code","device_code"].forEach(e=>{if("string"!=typeof n[e]||!n[e])throw new o(`expected ${e} string to be returned by Device Authorization Response, got %j`,n[e])}),!Number.isSafeInteger(n.expires_in))throw new o("expected expires_in number to be returned by Device Authorization Response, got %j",n.expires_in);this.#c=s()+n.expires_in,this.#o=e,this.#s=a,this.#d=i,this.#l=t,this.#a=r,this.#h=n,this.#u=1e3*n.interval||5e3}abort(){this.#i=!0}async poll({signal:e}={}){let t;if(e&&e.aborted||this.#i)throw new o("polling aborted");if(this.expired())throw new o("the device code %j has expired and the device authorization session has concluded",this.device_code);await new Promise(e=>setTimeout(e,this.#u));try{t=await this.#o.grant({...this.#l,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},{clientAssertionPayload:this.#a,DPoP:this.#s})}catch(t){switch(t instanceof a&&t.error){case"slow_down":this.#u+=5e3;case"authorization_pending":return this.poll({signal:e});default:throw t}}return"id_token"in t&&(await this.#o.decryptIdToken(t),await this.#o.validateIdToken(t,void 0,"token",this.#d)),t}get device_code(){return this.#h.device_code}get user_code(){return this.#h.user_code}get verification_uri(){return this.#h.verification_uri}get verification_uri_complete(){return this.#h.verification_uri_complete}get expires_in(){return Math.max.apply(null,[this.#c-s(),0])}expired(){return 0===this.expires_in}[i.custom](){return`${this.constructor.name} ${i(this.#h,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=l},67486:function(e,t,r){let{format:n}=r(79720);class i extends Error{constructor({error_description:e,error:t,error_uri:r,session_state:n,state:i,scope:o},a){super(e?`${t} (${e})`:t),Object.assign(this,{error:t},e&&{error_description:e},r&&{error_uri:r},i&&{state:i},o&&{scope:o},n&&{session_state:n}),a&&Object.defineProperty(this,"response",{value:a}),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}
60class o extends Error{constructor(...e){if("string"==typeof e[0])super(n(...e));else{let{message:t,printf:r,response:i,...o}=e[0];r?super(n(...r)):super(t),Object.assign(this,o),i&&Object.defineProperty(this,"response",{value:i})}this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}e.exports={OPError:i,RPError:o}},8867:function(e){function t(e,t,r){if(!t[`${e}_endpoint`])return;let n=`${e}_endpoint_auth_method`,i=`${e}_endpoint_auth_signing_alg`,o=`${e}_endpoint_auth_signing_alg_values_supported`;if(r[n]&&r[n].endsWith("_jwt")&&!r[i]&&!t[o])throw TypeError(`${o} must be configured on the issuer if ${i} is not defined on a client`)}function r(e,t){if(!e[t])throw TypeError(`${t} must be configured on the issuer`)}e.exports={assertSigningAlgValuesSupport:t,assertIssuerConfiguration:r}},42806:function(e,t,r){let n;var i=r(48764).Buffer;if(i.isEncoding("base64url"))n=(e,t="utf8")=>i.from(e,t).toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=(t,r="utf8")=>e(i.from(t,r).toString("base64"))}let o=e=>i.from(e,"base64");e.exports.decode=o,e.exports.encode=n},4944:function(e,t,r){var n=r(48764).Buffer;let i=r(45595),{RPError:o}=r(67486),{assertIssuerConfiguration:a}=r(8867),{random:s}=r(68767),l=r(96891),c=r(3862),{keystores:u}=r(64385),d=r(65047),h=e=>encodeURIComponent(e).replace(/%20/g,"+");async function p(e,t){let r=this[`${e}_endpoint_auth_signing_alg`];if(r||a(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`),"client_secret_jwt"===this[`${e}_endpoint_auth_method`]){if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>/^HS(?:256|384|512)/.test(e))}if(!r)throw new o(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);return new i.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r}).sign(this.secretForAlg(r))}let s=await u.get(this);if(!s)throw TypeError("no client jwks provided for signing a client assertion with");if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>s.get({alg:e,use:"sig"}))}if(!r)throw new o(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);let l=s.get({alg:r,use:"sig"});if(!l)throw new o(`no key found in client jwks to sign a client assertion with using alg ${r}`);return new i.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r,kid:l.jwk&&l.jwk.kid}).sign(await l.keyObject(r))}async function f(e,{clientAssertionPayload:t}={}){switch(this[`${e}_endpoint_auth_method`]){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{form:{client_id:this.client_id}};case"client_secret_post":if("string"!=typeof this.client_secret)throw TypeError("client_secret_post client authentication method requires a client_secret");return{form:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{let r=l(),n=[...new Set([this.issuer.issuer,this.issuer.token_endpoint].filter(Boolean))],i=await p.call(this,e,{iat:r,exp:r+60,jti:s(),iss:this.client_id,sub:this.client_id,aud:n,...t});return{form:{client_id:this.client_id,client_assertion:i,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}case"client_secret_basic":{if("string"!=typeof this.client_secret)throw TypeError("client_secret_basic client authentication method requires a client_secret");let e=`${h(this.client_id)}:${h(this.client_secret)}`,t=n.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}default:throw TypeError(`missing, or unsupported, ${e}_endpoint_auth_method`)}}function m(){let{length:e,0:t}=this.response_types;if(1===e)return t}function g(){let{length:e,0:t}=this.redirect_uris||[];if(1===e)return t}async function y(e,t,{clientAssertionPayload:r,endpointAuthMethod:n=e,DPoP:i}={}){let o;let a=d(t,await f.call(this,n,{clientAssertionPayload:r})),s=this[`${n}_endpoint_auth_method`].includes("tls_client_auth")||"token"===e&&this.tls_client_certificate_bound_access_tokens;if(s&&this.issuer.mtls_endpoint_aliases&&(o=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]),o=o||this.issuer[`${e}_endpoint`],"form"in a)for(let[e,t]of Object.entries(a.form))void 0===t&&delete a.form[e];return c.call(this,{...a,method:"POST",url:o,headers:{..."revocation"!==e?{Accept:"application/json"}:void 0,...a.headers}},{mTLS:s,DPoP:i})}
60e.exports={resolveResponseType:m,resolveRedirectUri:g,authFor:f,authenticatedPost:y}},78026:function(e){let t=Symbol(),r=Symbol();e.exports={CLOCK_TOLERANCE:r,HTTP_OPTIONS:t}},77749:function(e,t,r){let n=r(42806);e.exports=e=>{if("string"!=typeof e||!e)throw TypeError("JWT must be a string");let{0:t,1:r,2:i,length:o}=e.split(".");if(5===o)throw TypeError("encrypted JWTs cannot be decoded");if(3!==o)throw Error("JWTs must have three components");try{return{header:JSON.parse(n.decode(t)),payload:JSON.parse(n.decode(r)),signature:i}}catch(e){throw Error("JWT is malformed")}}},71050:function(e){e.exports=globalThis.structuredClone||(e=>JSON.parse(JSON.stringify(e)))},51892:function(e,t,r){let n=r(51303);function i(e,t,...r){for(let o of r)if(n(o))for(let[r,a]of Object.entries(o))"__proto__"!==r&&"constructor"!==r&&(void 0===t[r]&&void 0!==a&&(t[r]=a),e&&n(t[r])&&n(a)&&i(!0,t[r],a));return t}e.exports=i.bind(void 0,!1),e.exports.deep=i.bind(void 0,!0)},68767:function(e,t,r){let{createHash:n,randomBytes:i}=r(42474),o=r(42806),a=(e=32)=>o.encode(i(e));e.exports={random:a,state:a,nonce:a,codeVerifier:a,codeChallenge:e=>o.encode(n("sha256").update(e).digest())}},92793:function(e,t,r){let n=r(79720),i=r(42474);e.exports=n.types.isKeyObject||(e=>e&&e instanceof i.KeyObject)},51303:function(e){e.exports=e=>!!e&&e.constructor===Object},17042:function(e,t,r){let n=r(40705),i=r(39593),{RPError:o}=r(67486),{assertIssuerConfiguration:a}=r(8867),s=r(42485),{keystores:l}=r(64385),c=r(47787),u=r(3862),d=new WeakMap,h=new WeakMap,p=e=>(h.has(e)||h.set(e,new i({max:100})),h.get(e));async function f(e=!1){a(this,"jwks_uri");let t=l.get(this),r=p(this);return e||!t?(d.has(this)||(r.reset(),d.set(this,(async()=>{let e=c(await u.call(this,{method:"GET",responseType:"json",url:this.jwks_uri,headers:{Accept:"application/json, application/jwk-set+json"}}).finally(()=>{d.delete(this)})),t=s.fromJWKS(e,{onlyPublic:!0});return r.set("throttle",!0,6e4),l.set(this,t),t})())),d.get(this)):t}async function m({kid:e,kty:t,alg:r,use:i},{allowMulti:a=!1}={}){let s=p(this),l={kid:e,kty:t,alg:r,use:i},c=n(l,{algorithm:"sha256",ignoreUnknown:!0,unorderedArrays:!0,unorderedSets:!0,respectType:!1}),u=s.get(c)||s.get("throttle"),d=await f.call(this,!u),h=d.all(l);if(delete l.use,0===h.length)throw new o({printf:["no valid key found in issuer's jwks_uri for key parameters %j",l],jwks:d});if(!a&&h.length>1&&!e)throw new o({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",l],jwks:d});return s.set(c,!0),h}e.exports.queryKeyStore=m,e.exports.keystore=f},42485:function(e,t,r){let n=r(45595),i=r(71050),o=r(51303),a=Symbol(),s=(e,{alg:t,use:r})=>{let n=0;return t&&e.alg&&n++,r&&e.use&&n++,n};function l(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:return}}function c(e,t,r,i){if(t)return new Set([t]);switch(r){case"EC":{let t=[];if(("enc"===e||void 0===e)&&(t=t.concat(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"])),"sig"===e||void 0===e)switch(i){case"P-256":case"P-384":t=t.concat([`ES${i.slice(-3)}`]);break;case"P-521":t=t.concat(["ES512"]);break;case"secp256k1":"node:crypto"===n.cryptoRuntime&&(t=t.concat(["ES256K"]))}return new Set(t)}case"OKP":return new Set(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"]);case"RSA":{let t=[];return("enc"===e||void 0===e)&&(t=t.concat(["RSA-OAEP","RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512"]),"node:crypto"===n.cryptoRuntime&&(t=t.concat(["RSA1_5"]))),("sig"===e||void 0===e)&&(t=t.concat(["PS256","PS384","PS512","RS256","RS384","RS512"])),new Set(t)}default:throw Error("unreachable")}}e.exports=class{#p;constructor(e,t){if(e!==a)throw Error("invalid constructor call");this.#p=t}toJWKS(){return{keys:this.map(({jwk:{d:e,p:t,q:r,dp:n,dq:i,qi:o,...a}})=>a)}}all({alg:e,kid:t,use:r}={}){if(!r||!e)throw Error();let n=l(e),i={alg:e,use:r};return this.filter(i=>{let o=!0;return void 0!==n&&i.jwk.kty!==n&&(o=!1),o&&void 0!==t&&i.jwk.kid!==t&&(o=!1),o&&void 0!==r&&void 0!==i.jwk.use&&i.jwk.use!==r&&(o=!1),o&&i.jwk.alg&&i.jwk.alg!==e?o=!1:i.algorithms.has(e)||(o=!1),o}).sort((e,t)=>
60s(t,i)-s(e,i))}get(...e){return this.all(...e)[0]}static async fromJWKS(e,{onlyPublic:t=!1,onlyPrivate:r=!1}={}){if(!o(e)||!Array.isArray(e.keys)||e.keys.some(e=>!o(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");let s=[];for(let o of e.keys){let{kty:e,kid:a,crv:l}=o=i(o),{alg:u,use:d}=o;if("string"==typeof e&&e&&(void 0===d||"sig"===d||"enc"===d)&&("string"==typeof u||void 0===u)&&("string"==typeof a||void 0===a)){if("EC"===e&&"sig"===d)switch(l){case"P-256":u="ES256";break;case"P-384":u="ES384";break;case"P-521":u="ES512"}if("secp256k1"===l&&(d="sig",u="ES256K"),"OKP"===e)switch(l){case"Ed25519":case"Ed448":d="sig",u="EdDSA";break;case"X25519":case"X448":d="enc"}if(u&&!d)switch(!0){case u.startsWith("ECDH"):case u.startsWith("RSA"):d="enc"}if(r&&("oct"===o.kty||!o.d))throw Error("jwks must only contain private keys");t&&(o.d||o.k)||s.push({jwk:{...o,alg:u,use:d},async keyObject(e){if(this[e])return this[e];let t=await n.importJWK(this.jwk,e);return this[e]=t,t},get algorithms(){return Object.defineProperty(this,"algorithms",{value:c(this.jwk.use,this.jwk.alg,this.jwk.kty,this.jwk.crv),enumerable:!0,configurable:!1}),this.algorithms}})}}return new this(a,s)}filter(...e){return this.#p.filter(...e)}find(...e){return this.#p.find(...e)}every(...e){return this.#p.every(...e)}some(...e){return this.#p.some(...e)}map(...e){return this.#p.map(...e)}forEach(...e){return this.#p.forEach(...e)}reduce(...e){return this.#p.reduce(...e)}sort(...e){return this.#p.sort(...e)}*[Symbol.iterator](){for(let e of this.#p)yield e}}},65047:function(e,t,r){let n=r(51303);function i(e,...t){for(let r of t)if(n(r))for(let[t,o]of Object.entries(r))"__proto__"!==t&&"constructor"!==t&&(n(e[t])&&n(o)?e[t]=i(e[t],o):void 0!==o&&(e[t]=o));return e}e.exports=i},76038:function(e){e.exports=function(e,...t){let r={};for(let n of t)void 0!==e[n]&&(r[n]=e[n]);return r}},47787:function(e,t,r){var n=r(48764).Buffer;let{STATUS_CODES:i}=r(22321),{format:o}=r(79720),{OPError:a}=r(67486),s=r(88026),l=e=>{let t=s(e.headers["www-authenticate"]);if(t.error)throw new a(t,e)},c=e=>{let t=!1;try{let r;r="object"!=typeof e.body||n.isBuffer(e.body)?JSON.parse(e.body):e.body,(t="string"==typeof r.error&&r.error.length)&&Object.defineProperty(e,"body",{value:r,configurable:!0})}catch(e){}return t};function u(e,{statusCode:t=200,body:r=!0,bearer:n=!1}={}){if(e.statusCode!==t){if(n&&l(e),c(e))throw new a(e.body,e);throw new a({error:o("expected %i %s, got: %i %s",t,i[t],e.statusCode,i[e.statusCode])},e)}if(r&&!e.body)throw new a({error:o("expected %i %s with body but no body was returned",t,i[t])},e);return e.body}e.exports=u},3862:function(e,t,r){let n;var i=r(48764).Buffer;let o=r(27596),a=r(97334),s=r(22321),l=r(78428),{once:c}=r(25293),{URL:u}=r(11987),d=r(39593),h=r(82696),{RPError:p}=r(67486),f=r(76038),{deep:m}=r(51892),{HTTP_OPTIONS:g}=r(78026),y=/^[\x21\x23-\x5B\x5D-\x7E]+$/,v=["agent","ca","cert","crl","headers","key","lookup","passphrase","pfx","timeout"],b=(e,t)=>{n=m({},e.length?f(t,...e):t,n)};function _(e,t,r){r&&(e.removeHeader("content-type"),e.setHeader("content-type",r)),t&&(e.removeHeader("content-length"),e.setHeader("content-length",i.byteLength(t)),e.write(t)),e.end()}b([],{headers:{"User-Agent":`${h.name}/${h.version} (${h.homepage})`,"Accept-Encoding":"identity"},timeout:3500});let w=new d({max:100});e.exports=async function(e,{accessToken:t,mTLS:r=!1,DPoP:d}={}){let h,b,S,k,x,E,T;try{h=new u(e.url),delete e.url,o(/^(https?:)$/.test(h.protocol))}catch(e){throw TypeError("only valid absolute URLs can be requested")}let A=this[g],C=e,P=`${h.origin}${h.pathname}`;if(d&&"dpopProof"in this&&(C.headers=C.headers||{},C.headers.DPoP=await this.dpopProof({htu:`${h.origin}${h.pathname}`,htm:e.method,nonce:w.get(P)},d,t)),A&&(b=f(A.call(this,h,m({},C,n)),...v)),C=m({},b,C,n),r&&!C.pfx&&!(C.key&&C.cert))throw TypeError("mutual-TLS certificate and key not set");if(C.searchParams)for(let[e,t]of Object.entries(C.searchParams))h.searchParams.delete(e),h.searchParams.set(e,t);for(let[e,t]of({form:k,responseType:S,json:x,body:E,...C}=C,Object.entries(C.headers||{})))void 0===t&&delete C.headers[e];let I=("https:"===h.protocol?l.request:s.request)(h.href,C);return(async()=>
60{if(x?_(I,JSON.stringify(x),"application/json"):k?_(I,a.stringify(k),"application/x-www-form-urlencoded"):E?_(I,E):_(I),[T]=await Promise.race([c(I,"response"),c(I,"timeout")]),!T)throw I.destroy(),new p(`outgoing request timed out after ${C.timeout}ms`);let e=[];for await(let t of T)e.push(t);if(e.length)switch(S){case"json":Object.defineProperty(T,"body",{get(){let t=i.concat(e);try{t=JSON.parse(t)}catch(e){throw Object.defineProperty(e,"response",{value:T}),e}finally{Object.defineProperty(T,"body",{value:t,configurable:!0})}return t},configurable:!0});break;case void 0:case"buffer":Object.defineProperty(T,"body",{get(){let t=i.concat(e);return Object.defineProperty(T,"body",{value:t,configurable:!0}),t},configurable:!0});break;default:throw TypeError("unsupported responseType request option")}return T})().catch(e=>{throw T&&Object.defineProperty(e,"response",{value:T}),e}).finally(()=>{let e=T&&T.headers["dpop-nonce"];e&&y.test(e)&&w.set(P,e)})},e.exports.setDefaults=b.bind(void 0,v)},96891:function(e){e.exports=()=>Math.floor(Date.now()/1e3)},64385:function(e){e.exports.keystores=new WeakMap},44818:function(e){let t=/^\d+$/;function r(e){if(e.includes("://"))return!0;let r=e.replace(/(\/|\?)/g,"#").split("#")[0];if(r.includes(":")){let e=r.indexOf(":"),n=r.slice(e+1);if(!t.test(n))return!0}return!1}function n(e){if(!e.includes("@"))return!1;let t=e.split("@"),r=t[t.length-1];return!(r.includes(":")||r.includes("/")||r.includes("?"))}function i(e){let t;if("string"!=typeof e)throw TypeError("input must be a string");return(t=r(e)?e:n(e)?`acct:${e}`:`https://${e}`).split("#")[0]}e.exports=i},88026:function(e){let t=/(\w+)=("[^"]*")/g;e.exports=e=>{let r={};try{for(;null!==t.exec(e);)RegExp.$1&&RegExp.$2&&(r[RegExp.$1]=RegExp.$2.slice(1,-1))}catch(e){}return r}},1831:function(e,t,r){let n=r(29704),{OPError:i,RPError:o}=r(67486),a=r(29330),s=r(81911),{CLOCK_TOLERANCE:l,HTTP_OPTIONS:c}=r(78026),u=r(68767),{setDefaults:d}=r(3862);e.exports={Issuer:n,Strategy:a,TokenSet:s,errors:{OPError:i,RPError:o},custom:{setHttpOptionsDefaults:d,http_options:c,clock_tolerance:l},generators:u}},29704:function(e,t,r){var n=r(34155);let{inspect:i}=r(79720),o=r(11987),{RPError:a}=r(67486),s=r(62251),l=r(30748),c=r(47787),u=r(44818),d=r(3862),h=r(71050),{keystore:p}=r(17042),f=["https://login.microsoftonline.com/common/.well-known/openid-configuration","https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"],m=Symbol(),g={claim_types_supported:["normal"],claims_parameter_supported:!1,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:!1,request_uri_parameter_supported:!0,require_request_uri_registration:!1,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};class y{#e;constructor(e={}){let t=e[m];delete e[m],["introspection","revocation"].forEach(t=>{e[`${t}_endpoint`]&&void 0===e[`${t}_endpoint_auth_methods_supported`]&&void 0===e[`${t}_endpoint_auth_signing_alg_values_supported`]&&(e.token_endpoint_auth_methods_supported&&(e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported),e.token_endpoint_auth_signing_alg_values_supported&&(e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported))}),this.#e=new Map,Object.entries(e).forEach(([e,t])=>{this.#e.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#e.get(e)},enumerable:!0})}),l.set(this.issuer,this);let r=s(this,t);Object.defineProperties(this,{Client:{value:r,enumerable:!0},FAPI1Client:{value:class extends r{},enumerable:!0}})}get metadata(){return h(Object.fromEntries(this.#e.entries()))}static async webfinger(e){let t=u(e),{host:r}=o.parse(t),n=`https://${r}/.well-known/webfinger`,i=c(await d.call(this,{method:"GET",url:n,responseType:"json",searchParams:{resource:t,rel:"http://openid.net/specs/connect/1.0/issuer"},headers:{Accept:"application/json"}})),s=Array.isArray(i.links)&&i.links.find(e=>"object"==typeof e&&"http://openid.net/specs/connect/1.0/issuer"===e.rel&&e.href);if(!s)throw new a({message:"no issuer found in webfinger response",body:i});if("string"!=typeof s.href||!s.href.startsWith("https://"))throw new a({printf:["invalid issuer location %s",s.href],body:i});let h=s.href;if(l.has(h))return l.get(h);let p=await this.discover(h);if(p.issuer!==h)throw l.del(p.issuer),new a("discovered issuer mismatch, expected %s, got: %s",h,p.issuer);return p}static async discover(e){let t=v(e),r=c(await d.call(this,{method:"GET",responseType:"json",url:t,headers:{Accept:"application/json"}}));return new y({...g,...r,[m]:!!f.find(e=>t.startsWith(e))})}async reloadJwksUri(){await p.call(this,!0)}[i.custom](){return`${this.constructor.name} ${i(this.metadata,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0}
60)}`}}function v(e){let t=o.parse(e);if(t.pathname.includes("/.well-known/"))return e;{let e;return e=t.pathname.endsWith("/")?`${t.pathname}.well-known/openid-configuration`:`${t.pathname}/.well-known/openid-configuration`,o.format({...t,pathname:e})}}e.exports=y},30748:function(e,t,r){let n=r(39593);e.exports=new n({max:100})},29330:function(e,t,r){let n=r(11987),{format:i}=r(79720),o=r(71050),{RPError:a,OPError:s}=r(67486),{BaseClient:l}=r(62251),{random:c,codeChallenge:u}=r(68767),d=r(76038),{resolveResponseType:h,resolveRedirectUri:p}=r(4944);function f(e,t,r={}){e?this.error(e):t?this.success(t,r):this.fail(r)}function m({client:e,params:t={},passReqToCallback:r=!1,sessionKey:i,usePKCE:a=!0,extras:s={}}={},c){if(!(e instanceof l))throw TypeError("client must be an instance of openid-client Client");if("function"!=typeof c)throw TypeError("verify callback must be a function");if(!e.issuer||!e.issuer.issuer)throw TypeError("client must have an issuer with an identifier");if(this._client=e,this._issuer=e.issuer,this._verify=c,this._passReqToCallback=r,this._usePKCE=a,this._key=i||`oidc:${n.parse(this._issuer.issuer).hostname}`,this._params=o(t),delete this._params.state,delete this._params.nonce,this._extras=o(s),this._params.response_type||(this._params.response_type=h.call(e)),this._params.redirect_uri||(this._params.redirect_uri=p.call(e)),this._params.scope||(this._params.scope="openid"),!0===this._usePKCE){let e=!!Array.isArray(this._issuer.code_challenge_methods_supported)&&this._issuer.code_challenge_methods_supported;if(e&&e.includes("S256"))this._usePKCE="S256";else if(e&&e.includes("plain"))this._usePKCE="plain";else if(e)throw TypeError("neither code_challenge_method supported by the client is supported by the issuer");else this._usePKCE="S256"}else if("string"==typeof this._usePKCE&&!["plain","S256"].includes(this._usePKCE))throw TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`);this.name=n.parse(e.issuer.issuer).hostname}m.prototype.authenticate=function(e,t){(async()=>{let r=this._client;if(!e.session)throw TypeError("authentication requires session support");let n=r.callbackParams(e),o=this._key,{0:s,length:l}=Object.keys(n);if(0===l||1===l&&"iss"===s){let n={state:c(),...this._params,...t};if(!n.nonce&&n.response_type.includes("id_token")&&(n.nonce=c()),e.session[o]=d(n,"nonce","state","max_age","response_type"),this._usePKCE&&n.response_type.includes("code")){let t=c();switch(e.session[o].code_verifier=t,this._usePKCE){case"S256":n.code_challenge=u(t),n.code_challenge_method="S256";break;case"plain":n.code_challenge=t}}this.redirect(r.authorizationUrl(n));return}let h=e.session[o];if(0===Object.keys(h||{}).length)throw Error(i('did not find expected authorization request details in session, req.session["%s"] is %j',o,h));let{state:p,nonce:m,max_age:g,code_verifier:y,response_type:v}=h;try{delete e.session[o]}catch(e){}let b={redirect_uri:this._params.redirect_uri,...t},_={state:p,nonce:m,max_age:g,code_verifier:y,response_type:v},w=await r.callback(b.redirect_uri,n,_,this._extras),S=this._passReqToCallback,k=this._verify.length>(S?3:2)&&r.issuer.userinfo_endpoint,x=[w,f.bind(this)];if(k){if(!w.access_token)throw new a({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:w});let e=await r.userinfo(w);x.splice(1,0,e)}S&&x.unshift(e),this._verify(...x)})().catch(e=>{e instanceof s&&"server_error"!==e.error&&!e.error.startsWith("invalid")||e instanceof a?this.fail(e):this.error(e)})},e.exports=m},81911:function(e,t,r){let n=r(42806),i=r(96891);class o{constructor(e){Object.assign(this,e);let{constructor:t,...r}=Object.getOwnPropertyDescriptors(this.constructor.prototype);Object.defineProperties(this,r)}set expires_in(e){this.expires_at=i()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-i(),0])}expired(){return 0===this.expires_in}claims(){if(!this.id_token)throw TypeError("id_token not present in TokenSet");return JSON.parse(n.decode(this.id_token.split(".")[1]))}}e.exports=o},57649:function(e,t,r){"use strict";r.r(t),r.d(t,{render:function(){return x},renderToStaticMarkup:function(){return x},renderToString:function(){return x},shallowRender:function(){return S}});var n=r(6400),i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,a=/[\s\n\\/='"\0<>]/,s=/^xlink:?./,l=/["&<]/;function c(e){if(!1===l.test(e+=""))return e;for(var t=0,r=0,n="",i="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=i,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var u=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"	"))},d=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},h={},p=/([A-Z])/g;function f(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:h[r]||(h[r]=r.replace(p,"-$1").toLowerCase()),t="number"==typeof n&&!1===i.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function m(e,t){return Array.isArray(t)?t.reduce(m,e):null!=t&&!1!==t&&e.push(t),e}function g(){this.__d=!0}function y(e,t){return{__v:e,context:t,props:e.props,setState:g,forceUpdate:g,__d:!0,__h:[]}}function v(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var b=[];function _(e,t,r,i,l,h){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);var p=r.pretty,g=p&&"string"==typeof p?p:"	";if(Array.isArray(e)){for(var w="",S=0;S<e.length;S++)p&&S>0&&(w+="\n"),w+=_(e[S],t,r,i,l,h);return w}if(void 0!==e.constructor)return"";var k,x=e.type,E=e.props,T=!1;if("function"==typeof x){if(T=!0,!r.shallow||!i&&!1!==r.renderRootComponent){if(x===n.Fragment){var A=[];return m(A,e.props.children),_(A,t,r,!1!==r.shallowHighOrder,l,h)}var C,P=e.__c=y(e,t);n.options.__b&&n.options.__b(e);var I=n.options.__r;if(x.prototype&&"function"==typeof x.prototype.render){var O=v(x,t);(P=e.__c=new x(E,O)).__v=e,P._dirty=P.__d=!0,P.props=E,null==P.state&&(P.state={}),null==P._nextState&&null==P.__s&&(P._nextState=P.__s=P.state),P.context=O,x.getDerivedStateFromProps?P.state=Object.assign({},P.state,x.getDerivedStateFromProps(P.props,P.state)):P.componentWillMount&&(P.componentWillMount(),P.state=P._nextState!==P.state?P._nextState:P.__s!==P.state?P.__s:P.state),I&&I(e),C=P.render(P.props,P.state,P.context)}else for(var N=v(x,t),D=0;P.__d&&D++<25;)P.__d=!1,I&&I(e),C=x.call(e.__c,E,N);return P.getChildContext&&(t=Object.assign({},t,P.getChildContext())),n.options.diffed&&n.options.diffed(e),_(C,t,r,!1!==r.shallowHighOrder,l,h)}x=(k=x).displayName||k!==Function&&k.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=b.length;n--;)if(b[n]===e){r=n;break}r<0&&(r=b.push(e)-1),t="UnnamedComponent"+r}return t}(k)}var R,L,M="<"+x;if(E){var j=Object.keys(E);
60r&&!0===r.sortAttributes&&j.sort();for(var B=0;B<j.length;B++){var U=j[B],F=E[U];if("children"!==U){if(!a.test(U)&&(r&&r.allAttributes||"key"!==U&&"ref"!==U&&"__self"!==U&&"__source"!==U)){if("defaultValue"===U)U="value";else if("defaultChecked"===U)U="checked";else if("defaultSelected"===U)U="selected";else if("className"===U){if(void 0!==E.class)continue;U="class"}else l&&s.test(U)&&(U=U.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===U){if(E.for)continue;U="for"}"style"===U&&F&&"object"==typeof F&&(F=f(F)),"a"===U[0]&&"r"===U[1]&&"boolean"==typeof F&&(F=String(F));var H=r.attributeHook&&r.attributeHook(U,F,t,r,T);if(H||""===H)M+=H;else if("dangerouslySetInnerHTML"===U)L=F&&F.__html;else if("textarea"===x&&"value"===U)R=F;else if((F||0===F||""===F)&&"function"!=typeof F){if(!(!0!==F&&""!==F||(F=U,r&&r.xml))){M=M+" "+U;continue}if("value"===U){if("select"===x){h=F;continue}"option"===x&&h==F&&void 0===E.selected&&(M+=" selected")}M=M+" "+U+'="'+c(F)+'"'}}}else R=F}}if(p){var z=M.replace(/\n\s*/," ");z===M||~z.indexOf("\n")?p&&~M.indexOf("\n")&&(M+="\n"):M=z}if(M+=">",a.test(x))throw Error(x+" is not a valid HTML tag name in "+M);var $,q=o.test(x)||r.voidElements&&r.voidElements.test(x),W=[];if(L)p&&d(L)&&(L="\n"+g+u(L,g)),M+=L;else if(null!=R&&m($=[],R).length){for(var V=p&&~M.indexOf("\n"),G=!1,K=0;K<$.length;K++){var Z=$[K];if(null!=Z&&!1!==Z){var Y=_(Z,t,r,!0,"svg"===x||"foreignObject"!==x&&l,h);if(p&&!V&&d(Y)&&(V=!0),Y){if(p){var J=Y.length>0&&"<"!=Y[0];G&&J?W[W.length-1]+=Y:W.push(Y),G=J}else W.push(Y)}}}if(p&&V)for(var X=W.length;X--;)W[X]="\n"+g+u(W[X],g)}if(W.length||L)M+=W.join("");else if(r&&r.xml)return M.substring(0,M.length-1)+" />";return!q||$||L?(p&&~M.indexOf("\n")&&(M+="\n"),M=M+"</"+x+">"):M=M.replace(/>$/," />"),M}var w={shallow:!0};x.render=x;var S=function(e,t){return x(e,t,w)},k=[];function x(e,t,r){t=t||{};var i=n.options.__s;n.options.__s=!0;var o,a=(0,n.h)(n.Fragment,null);return a.__k=[e],o=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?_(e,t,r):I(e,t,!1,void 0,a),n.options.__c&&n.options.__c(e,k),n.options.__s=i,k.length=0,o}function E(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(0,n.h)(null,null,e):e}function T(e,t){return"className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&s.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function A(e,t){return"style"===e&&null!=t&&"object"==typeof t?f(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var C=Array.isArray,P=Object.assign;function I(e,t,r,i,s){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);if(C(e)){var l="";s.__k=e;for(var u=0;u<e.length;u++)l+=I(e[u],t,r,i,s),e[u]=E(e[u]);return l}if(void 0!==e.constructor)return"";e.__=s,n.options.__b&&n.options.__b(e);var d=e.type,h=e.props;if("function"==typeof d){if(d===n.Fragment)p=h.children;else{p=d.prototype&&"function"==typeof d.prototype.render?function(e,t){var r=e.type,i=v(r,t),o=new r(e.props,i);e.__c=o,o.__v=e,o.__d=!0,o.props=e.props,null==o.state&&(o.state={}),null==o.__s&&(o.__s=o.state),o.context=i,r.getDerivedStateFromProps?o.state=P({},o.state,r.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o.__s!==o.state?o.__s:o.state);var a=n.options.__r;return a&&a(e),o.render(o.props,o.state,o.context)}(e,t):function(e,t){var r,i=y(e,t),o=v(e.type,t);e.__c=i;for(var a=n.options.__r,s=0;i.__d&&s++<25;)i.__d=!1,a&&a(e),r=e.type.call(i,e.props,o);return r}(e,t);var p,f=e.__c;f.getChildContext&&(t=P({},t,f.getChildContext()))}var m=I(p=null!=p&&p.type===n.Fragment&&null==p.key?p.props.children:p,t,r,i,e);return n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),m}var g,b,_="<";if(_+=d,h)for(var w in g=h.children,h){var S=h[w];if(!("key"===w||"ref"===w||"__self"===w||"__source"===w||"children"===w||"className"===w&&"class"in h||"htmlFor"===w&&"for"in h||a.test(w))){if(S=A(w=T(w,r),S),"dangerouslySetInnerHTML"===w)b=S&&S.__html;else if("textarea"===d&&"value"===w)g=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=w,_=_+" "+w;continue}if("value"===w){if("select"===d){i=S;continue}"option"!==d||i!=S||"selected"in h||(_+=" selected")}_=_+" "+w+'="'+c(S)+'"'}}}var k=_;if(_+=">",a.test(d))throw Error(d+" is not a valid HTML tag name in "+_);var x="",O=!1;if(b)x+=b,O=!0;else if("string"==typeof g)x+=c(g),O=!0;else if(C(g)){e.__k=g;for(var N=0;N<g.length;N++){var D=g[N];if(g[N]=E(D),null!=D&&!1!==D){var R=I(D,t,"svg"===d||"foreignObject"!==d&&r,i,e);R&&(x+=R,O=!0)}}}else if(null!=g&&!1!==g&&!0!==g){e.__k=[E(g)];var L=I(g,t,"svg"===d||"foreignObject"!==d&&r,i,e);L&&(x+=L,O=!0)}if(n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),O)_+=x;else if(o.test(d))return k+" />";return _+"</"+d+">"}x.shallowRender=S,t.default=x},6400:function(e,t,r){"use strict";r.r(t),r.d(t,{Component:function(){return E},Fragment:function(){return x},cloneElement:function(){return V},createContext:function(){return G},createElement:function(){return w},createRef:function(){return k},h:function(){return w},hydrate:function(){return W},isValidElement:function(){return a},options:function(){return i},render:function(){return q},toChildArray:function(){return D}});var n,i,o,a,s,l,c,u,d,h,p,f,m={},g=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function b(e,t){for(var r in t)e[r]=t[r];return e}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function w(e,t,r){var i,o,a,s={};
vendor: 4,832 bytes, line 60
60for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return S(e,s,i,o,null)}function S(e,t,r,n,a){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=i.vnode&&i.vnode(s),s}function k(){return{current:null}}function x(e){return e.children}function E(e,t){this.props=e,this.context=t}function T(e,t){if(null==t)return e.__?T(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?T(e):null}function A(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return A(e)}}function C(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!P.__r++||l!==i.debounceRendering)&&((l=i.debounceRendering)||c)(P)}function P(){var e,t,r,n,o,a,l,c;for(s.sort(u);e=s.shift();)e.__d&&(t=s.length,n=void 0,a=(o=(r=e).__v).__e,l=[],c=[],r.__P&&((n=b({},o)).__v=o.__v+1,i.vnode&&i.vnode(n),B(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,l,null==a?T(o):a,!!(32&o.__u),c),n.__v=o.__v,n.__.__k[n.__i]=n,U(l,n,c),n.__e!=a&&A(n)),s.length>t&&s.sort(u));P.__r=0}function I(e,t,r,n,i,o,a,s,l,c,u){var d,h,p,f,y,v=n&&n.__k||g,b=t.length;for(r.__d=l,O(r,t,v),l=r.__d,d=0;d<b;d++)null!=(p=r.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(h=-1===p.__i?m:v[p.__i]||m,p.__i=d,B(e,p,h,i,o,a,s,l,c,u),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&H(h.ref,null,p),u.push(p.ref,p.__c||f,p)),null==y&&null!=f&&(y=f),65536&p.__u||h.__k===p.__k?l=N(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);r.__d=l,r.__e=y}function O(e,t,r){var n,i,o,a,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)a=n+d,null!=(i=e.__k[n]=null==(i=t[n])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?S(null,i,null,null,null):v(i)?S(x,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?S(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=R(i,r,a,u),i.__i=s,o=null,-1!==s&&(u--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s==a-1?d=s-a:s==a+1?d++:s>a?u>l-a?d+=s-a:d--:s<a&&d++,s!==n+d&&(i.__u|=65536))):(o=r[a])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=T(o)),z(o,o,!1),r[a]=null,u--);if(u)for(n=0;n<c;n++)null!=(o=r[n])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=T(o)),z(o,o))}function N(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=N(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=T(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8===t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(v(e)?e.some(function(e){D(e,t)}):t.push(e)),t}function R(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&o===l.type&&0==(131072&l.__u))return r;if(n>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return -1}function L(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||y.test(t)?r:r+"px"}function M(e,t,r,n,i){var o;e:if("style"===t){if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||L(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||L(e.style,t,r[t])}}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase() in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=d,e.addEventListener(t,o?p:h,o)):e.removeEventListener(t,o?p:h,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function j(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<r.u)return;return r(i.event?i.event(t):t)}}}function B(e,t,r,n,o,a,s,l,c,u){var d,h,p,f,m,g,y,_,w,S,k,T,A,C,P,O,N=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),a=[l=t.__e=r.__e]),(d=i.__b)&&d(t);
vendor: 4,481 bytes, line 60
60e:if("function"==typeof N)try{if(_=t.props,w="prototype"in N&&N.prototype.render,S=(d=N.contextType)&&n[d.__c],k=d?S?S.props.value:d.__:n,r.__c?y=(h=t.__c=r.__c).__=h.__E:(w?t.__c=h=new N(_,k):(t.__c=h=new E(_,k),h.constructor=N,h.render=$),S&&S.sub(h),h.props=_,h.state||(h.state={}),h.context=k,h.__n=n,p=h.__d=!0,h.__h=[],h._sb=[]),w&&null==h.__s&&(h.__s=h.state),w&&null!=N.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=b({},h.__s)),b(h.__s,N.getDerivedStateFromProps(_,h.__s))),f=h.props,m=h.state,h.__v=t,p)w&&null==N.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),w&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(w&&null==N.getDerivedStateFromProps&&_!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,k),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,k)||t.__v===r.__v)){for(t.__v!==r.__v&&(h.props=_,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,k),w&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(f,m,g)})}if(h.context=k,h.props=_,h.__P=e,h.__e=!1,A=i.__r,C=0,w){for(h.state=h.__s,h.__d=!1,A&&A(t),d=h.render(h.props,h.state,h.context),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[]}else do h.__d=!1,A&&A(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(n=b(b({},n),h.getChildContext())),w&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(f,m)),I(e,v(O=null!=d&&d.type===x&&null==d.key?d.props.children:d)?O:[O],t,r,n,o,a,s,l,c,u),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),y&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=a){for(t.__u|=c?160:32;l&&8===l.nodeType&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,t.__e=l}else t.__e=r.__e,t.__k=r.__k;i.__e(e,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=F(r.__e,t,r,n,o,a,s,c,u);(d=i.diffed)&&d(t)}function U(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)H(r[n],r[++n],r[++n]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function F(e,t,r,i,o,a,s,l,c){var u,d,h,p,f,g,y,b=r.props,w=t.props,S=t.type;if("svg"===S?o="http://www.w3.org/2000/svg":"math"===S?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=a){for(u=0;u<a.length;u++)if((f=a[u])&&"setAttribute"in f==!!S&&(S?f.localName===S:3===f.nodeType)){e=f,a[u]=null;break}}if(null==e){if(null===S)return document.createTextNode(w);e=document.createElementNS(o,S,w.is&&w),a=null,l=!1}if(null===S)b===w||l&&e.data===w||(e.data=w);else{if(a=a&&n.call(e.childNodes),b=r.props||m,!l&&null!=a)for(b={},u=0;u<e.attributes.length;u++)b[(f=e.attributes[u]).name]=f.value;for(u in b)if(f=b[u],"children"==u);else if("dangerouslySetInnerHTML"==u)h=f;else if("key"!==u&&!(u in w)){if("value"==u&&"defaultValue"in w||"checked"==u&&"defaultChecked"in w)continue;M(e,u,null,f,o)}for(u in w)f=w[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?d=f:"value"==u?g=f:"checked"==u?y=f:"key"===u||l&&"function"!=typeof f||b[u]===f||M(e,u,f,b[u],o);if(d)l||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=""),I(e,v(p)?p:[p],t,r,i,"foreignObject"===S?"http://www.w3.org/1999/xhtml":o,a,s,a?a[0]:r.__k&&T(r,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&_(a[u]);l||(u="value",void 0===g||g===e[u]&&("progress"!==S||g)&&("option"!==S||g===b[u])||M(e,u,g,b[u],o),u="checked",void 0!==y&&y!==e[u]&&M(e,u,y,b[u],o))}return e}function H(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,r)}}function z(e,t,r){var n,o;if(i.unmount&&i.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||H(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){i.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&z(n[o],t,r||"function"!=typeof e.type);r||null==e.__e||_(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function $(e,t,r){return this.constructor(e,r)}function q(e,t,r){var o,a,s,l;i.__&&i.__(e,t),a=(o="function"==typeof r)?null:r&&r.__k||t.__k,s=[],l=[],B(t,e=(!o&&r||t).__k=w(x,null,[e]),a||m,m,t.namespaceURI,!o&&r?[r]:a?null:t.firstChild?n.call(t.childNodes):null,
vendor: 1,675 bytes, line 60
60s,!o&&r?r:a?a.__e:t.firstChild,o,l),U(s,e,l)}function W(e,t){q(e,t,W)}function V(e,t,r){var i,o,a,s,l=b({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?i=t[a]:"ref"==a?o=t[a]:l[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),S(e.type,l,i||e.key,o||e.ref,null)}function G(e,t){var r={__c:t="__cC"+f++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(function(e){e.__e=!0,C(e)})},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}n=g.slice,i={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&null==e.constructor},E.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},r),this.props)),e&&b(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},E.prototype.render=x,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
60ise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},P.__r=0,d=0,h=j(!1),p=j(!0),f=0},34155:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(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(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function l(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],u=!1,d=-1;function h(){u&&n&&(u=!1,n.length?c=n.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(n=c,c=[];++d<t;)n&&n[d].run();d=-1,t=c.length}n=null,u=!1,l(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||u||s(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=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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 r={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:o,resetWarningCache:i}
60;return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},72043:function(e,t,r){"use strict";var n,i=r(48764).Buffer;let o="[object ArrayBuffer]";class a{static isArrayBuffer(e){return Object.prototype.toString.call(e)===o}static toArrayBuffer(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength||0===e.byteOffset&&e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e.buffer).slice(e.byteOffset,e.byteOffset+e.byteLength).buffer}static toUint8Array(e){return this.toView(e,Uint8Array)}static toView(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}static isArrayBufferView(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}static isEqual(e,t){let r=a.toUint8Array(e),n=a.toUint8Array(t);if(r.length!==n.byteLength)return!1;for(let e=0;e<r.length;e++)if(r[e]!==n[e])return!1;return!0}static concat(...e){let t;t=!Array.isArray(e[0])||e[1]instanceof Function?Array.isArray(e[0])&&e[1]instanceof Function?e[0]:e[e.length-1]instanceof Function?e.slice(0,e.length-1):e:e[0];let r=0;for(let e of t)r+=e.byteLength;let n=new Uint8Array(r),i=0;for(let e of t){let t=this.toUint8Array(e);n.set(t,i),i+=t.length}return e[e.length-1]instanceof Function?this.toView(n,e[e.length-1]):n.buffer}}let s="string",l=/^[0-9a-f]+$/i,c=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,u=/^[a-zA-Z0-9-_]+$/;class d{static fromString(e){let t=unescape(encodeURIComponent(e)),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}static toString(e){let t=a.toUint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return decodeURIComponent(escape(r))}}class h{static toString(e,t=!1){let r=a.toArrayBuffer(e),n=new DataView(r),i="";for(let e=0;e<r.byteLength;e+=2)i+=String.fromCharCode(n.getUint16(e,t));return i}static fromString(e,t=!1){let r=new ArrayBuffer(2*e.length),n=new DataView(r);for(let r=0;r<e.length;r++)n.setUint16(2*r,e.charCodeAt(r),t);return r}}class p{static isHex(e){return typeof e===s&&l.test(e)}static isBase64(e){return typeof e===s&&c.test(e)}static isBase64Url(e){return typeof e===s&&u.test(e)}static ToString(e,t="utf8"){let r=a.toUint8Array(e);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(r);case"binary":return this.ToBinary(r);case"hex":return this.ToHex(r);case"base64":return this.ToBase64(r);case"base64url":return this.ToBase64Url(r);case"utf16le":return h.toString(r,!0);case"utf16":case"utf16be":return h.toString(r);default:throw Error(`Unknown type of encoding '${t}'`)}}static FromString(e,t="utf8"){if(!e)return new ArrayBuffer(0);switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(e);case"binary":return this.FromBinary(e);case"hex":return this.FromHex(e);case"base64":return this.FromBase64(e);case"base64url":return this.FromBase64Url(e);case"utf16le":return h.fromString(e,!0);case"utf16":case"utf16be":return h.fromString(e);default:throw Error(`Unknown type of encoding '${t}'`)}}static ToBase64(e){let t=a.toUint8Array(e);return"undefined"!=typeof btoa?btoa(this.ToString(t,"binary")):i.from(t).toString("base64")}static FromBase64(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!p.isBase64(t))throw TypeError("Argument 'base64Text' is not Base64 encoded");return"undefined"!=typeof atob?this.FromBinary(atob(t)):new Uint8Array(i.from(t,"base64")).buffer}static FromBase64Url(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!p.isBase64Url(t))throw TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(t.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(e){return this.ToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(e,t=p.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.FromBinary(e);case"utf8":return d.fromString(e);case"utf16":case"utf16be":return h.fromString(e);case"utf16le":case"usc2":return h.fromString(e,!0);default:throw Error(`Unknown type of encoding '${t}'`)}}static ToUtf8String(e,t=p.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.ToBinary(e);case"utf8":return d.toString(e);case"utf16":case"utf16be":return h.toString(e);case"utf16le":case"usc2":return h.toString(e,!0);default:throw Error(`Unknown type of encoding '${t}'`)}}static FromBinary(e){let t=e.length,r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);return r.buffer}static ToBinary(e){let t=a.toUint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return r}static ToHex(e){let t=a.toUint8Array(e),r="",n=t.length;for(let e=0;e<n;e++){let n=t[e];n<16&&(r+="0"),r+=n.toString(16)}return r}static FromHex(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!p.isHex(t))throw TypeError("Argument 'hexString' is not HEX encoded");t.length%2&&(t=`0${t}`);let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2){let n=t.slice(e,e+2);r[e/2]=parseInt(n,16)}return r.buffer}static ToUtf16String(e,t=!1){return h.toString(e,t)}static FromUtf16String(e,t=!1){return h.fromString(e,t)}static Base64Padding(e){let t=4-e.length%4;if(t<4)for(let r=0;r<t;r++)e+="=";return e}static formatString(e){return(null==e?void 0:e.replace(/[\n\r\t ]/g,""))||""}}function f(e,...t){let r=arguments[0];for(let e=1;e<arguments.length;e++){let t=arguments[e];for(let e in t)r[e]=t[e]}return r}function m(...e){let t=new Uint8Array(e.map(e=>e.byteLength).reduce((e,t)=>
60e+t)),r=0;return e.map(e=>new Uint8Array(e)).forEach(e=>{for(let n of e)t[r++]=n}),t.buffer}p.DEFAULT_UTF8_ENCODING="utf8",t.vJ=a,t.ep=p,n=f,t.$e=m},11768:function(e,t,r){"use strict";var n,i=r(34155);n={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};n=p,n=f,n=m,n=g,n=y,n=v,n=b;var a=l(r(8567)),s=l(r(96086));function l(e){return e&&e.__esModule?e:{default:e}}var c="undefined"==typeof document||void 0!==i&&i.env&&!1,u={},d=void 0;function h(){return d&&!d.headersSent}function p(e,t){var r=c?u:a.default.parse(document.cookie),n=r&&r[e];if(void 0===t&&(t=!n||"{"!==n[0]&&"["!==n[0]),!t)try{n=JSON.parse(n)}catch(e){}return n}function f(e){var t=c?u:a.default.parse(document.cookie);if(void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]),!e)try{t=JSON.parse(t)}catch(e){}return t}function m(e){var t=c?u:a.default.parse(document.cookie);return t?e?Object.keys(t).reduce(function(r,n){if(!e.test(n))return r;var i={};return i[n]=t[n],(0,s.default)({},r,i)},{}):t:{}}function g(e,t,r){u[e]=t,(void 0===t?"undefined":o(t))==="object"&&(u[e]=JSON.stringify(t)),c||(document.cookie=a.default.serialize(e,u[e],r)),h()&&d.cookie&&d.cookie(e,t,r)}function y(e,t){delete u[e],t=void 0===t?{}:"string"==typeof t?{path:t}:(0,s.default)({},t),"undefined"!=typeof document&&(t.expires=new Date(1970,1,1,0,0,1),t.maxAge=0,document.cookie=a.default.serialize(e,"",t)),h()&&d.clearCookie&&d.clearCookie(e,t)}function v(e){u=e?a.default.parse(e):{}}function b(e,t){return e.cookie?u=e.cookie:e.cookies?u=e.cookies:e.headers&&e.headers.cookie?v(e.headers.cookie):u={},d=t,function(){d=null,u={}}}t.ZP={setRawCookie:v,load:p,loadAll:f,select:m,save:g,remove:y,plugToRequest:b}},8567:function(e,t){"use strict";t.parse=a,t.serialize=s;var r=decodeURIComponent,n=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},o=t||{},a=e.split(i),s=o.decode||r,c=0;c<a.length;c++){var u=a[c],d=u.indexOf("=");if(!(d<0)){var h=u.substr(0,d).trim(),p=u.substr(++d,u.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),void 0==n[h]&&(n[h]=l(p,s))}}return n}function s(e,t,r){var i=r||{},a=i.encode||n;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!o.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c))throw Error("maxAge should be a Number");l+="; Max-Age="+Math.floor(c)}if(i.domain){if(!o.test(i.domain))throw TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invali
60d");l+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;default:throw TypeError("option sameSite is invalid")}return l}function l(e,t){try{return t(e)}catch(t){return e}}},74764:function(e,t,r){"use strict";n={value:!0},n=t.B6=t.vk=void 0;var n,i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(67294),a=s(r(45697));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function d(e,t){if("function"!=typeof t&&null!==t)throw 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)}var h="undefined"!=typeof navigator,p=/Windows.*Chrome|Windows.*Firefox|Linux.*Chrome/,f=function(e){var t=e.url,r=e.timeout;return new Promise(function(e){var n=function(){return e(!0)},i=function(){return e(!1)},o=new XMLHttpRequest;o.onerror=i,o.ontimeout=i,o.onreadystatechange=function(){o.readyState===o.HEADERS_RECEIVED&&(o.status?n():i())},o.open("GET",t),o.timeout=r,o.send()})},m={children:a.default.node,onChange:a.default.func,polling:a.default.oneOfType([a.default.shape({url:a.default.string,interval:a.default.number,timeout:a.default.number}),a.default.bool]),wrapperType:a.default.string},g={polling:!0,wrapperType:"span"},y={enabled:h&&p.test(navigator.userAgent),url:"https://httpbin.org/get",timeout:5e3,interval:5e3},v=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={online:!h||"boolean"!=typeof navigator.onLine||navigator.onLine},e.goOnline=e.goOnline.bind(e),e.goOffline=e.goOffline.bind(e),e}return d(t,e),i(t,[{key:"componentDidMount",value:function(){window.addEventListener("online",this.goOnline),window.addEventListener("offline",this.goOffline),this.getPollingConfig().enabled&&this.startPolling()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("online",this.goOnline),window.removeEventListener("offline",this.goOffline),this.pollingId&&this.stopPolling()}},{key:"renderChildren",value:function(){var e=this.props,t=e.children,r=e.wrapperType;return(0,o.isValidElement)(t)?t:t?o.createElement.apply(void 0,[r,{}].concat(l(o.Children.toArray(t)))):null}},{key:"getPollingConfig",value:function(){switch(this.props.polling){case!0:return y;case!1:return{enabled:!1};default:return Object.assign({},y,this.props.polling)}}},{key:"goOnline",value:function(){this.state.online||(this.callOnChangeHandler(!0),this.setState({online:!0}))}},{key:"goOffline",value:function(){this.state.online&&(this.callOnChangeHandler(!1),this.setState({online:!1}))}},{key:"callOnChangeHandler",value:function(e){this.props.onChange&&this.props.onChange(e)}},{key:"startPolling",value:function(){var e=this,t=this.getPollingConfig().interval;this.pollingId=setInterval(function(){var t=e.getPollingConfig();f({url:t.url,timeout:t.timeout}).then(function(t){t?e.goOnline():e.goOffline()})},t)}},{key:"stopPolling",value:function(){clearInterval(this.pollingId)}}]),t}(o.Component);v.propTypes=m,v.defaultProps=g;var b=t.vk=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"render",value:function(){return this.state.online?this.renderChildren():null}}]),t}(v);b.propTypes=m,b.defaultProps=g;var _=t.B6=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"render",value:function(){return this.state.online?null:this.renderChildren()}}]),t}(v);_.propTypes=m,_.defaultProps=g;var w=n=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"render",value:function(){return this.props.render({online:this.state.online})}}]),t}(v);w.propTypes=Object.assign({},m,{render:a.default.func.isRequired}),w.defaultProps=g},85518:function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}i={value:!0};var i,o=r(67294),a=n(o),s=r(23451),l=new s,c=l.getBrowser(),u=l.getCPU(),d=l.getDevice(),h=l.getEngine(),p=l.getOS(),f=l.getUA(),m=function(e){return l.setUA(e)},g=function(e){if(!e){console.error("No userAgent string was provided");return}var t=new s(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}},y=Object.freeze({ClientUAInstance:l,browser:c,cpu:u,device:d,engine:h,os:p,ua:f,setUa:m,parseUserAgent:g});function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
60t%2?v(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function x(e,t){if(null==e)return{};var r,n,i=k(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function E(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){if(Array.isArray(e))return e}function A(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}function C(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function I(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var O={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},N={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},D={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},R={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},L=function(e){switch(e){case O.Mobile:return{isMobile:!0};case O.Tablet:return{isTablet:!0};case O.SmartTv:return{isSmartTV:!0};case O.Console:return{isConsole:!0};case O.Wearable:return{isWearable:!0};case O.Browser:return{isBrowser:!0};case O.Embedded:return{isEmbedded:!0};default:return R}},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},j=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},B=function(e){var t=j();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},U=function(e,t,r,n,i){return{isBrowser:e,browserMajorVersion:M(t.major),browserFullVersion:M(t.version),browserName:M(t.name),engineName:M(r.name),engineVersion:M(r.version),osName:M(n.name),osVersion:M(n.version),userAgent:M(i)}},F=function(e,t,r,n){return b({},e,{vendor:M(t.vendor),model:M(t.model),os:M(r.name),osVersion:M(r.version),ua:M(n)})},H=function(e,t,r,n){return{isSmartTV:e,engineName:M(t.name),engineVersion:M(t.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(n)}},z=function(e,t,r,n){return{isConsole:e,engineName:M(t.name),engineVersion:M(t.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(n)}},$=function(e,t,r,n){return{isWearable:e,engineName:M(t.name),engineVersion:M(t.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(n)}}
60,q=function(e,t,r,n,i){return{isEmbedded:e,vendor:M(t.vendor),model:M(t.model),engineName:M(r.name),engineVersion:M(r.version),osName:M(n.name),osVersion:M(n.version),userAgent:M(i)}};function W(e){var t=e?g(e):y,r=t.device,n=t.browser,i=t.engine,o=t.os,a=t.ua,s=L(r.type),l=s.isBrowser,c=s.isMobile,u=s.isTablet,d=s.isSmartTV,h=s.isConsole,p=s.isWearable,f=s.isEmbedded;return l?U(l,n,i,o,a):d?H(d,i,o,a):h?z(h,i,o,a):c||u?F(s,r,o,a):p?$(p,i,o,a):f?q(f,r,i,o,a):void 0}var V=function(e){return e.type===O.Mobile},G=function(e){return e.type===O.Tablet},K=function(e){var t=e.type;return t===O.Mobile||t===O.Tablet},Z=function(e){return e.type===O.SmartTv},Y=function(e){return e.type===O.Browser},J=function(e){return e.type===O.Wearable},X=function(e){return e.type===O.Console},Q=function(e){return e.type===O.Embedded},ee=function(e){return M(e.vendor)},et=function(e){return M(e.model)},er=function(e){return M(e.type,"browser")},en=function(e){return e.name===D.Android},ei=function(e){return e.name===D.Windows},eo=function(e){return e.name===D.MAC_OS},ea=function(e){return e.name===D.WindowsPhone},es=function(e){return e.name===D.IOS},el=function(e){return M(e.version)},ec=function(e){return M(e.name)},eu=function(e){return e.name===N.Chrome},ed=function(e){return e.name===N.Firefox},eh=function(e){return e.name===N.Chromium},ep=function(e){return e.name===N.Edge},ef=function(e){return e.name===N.Yandex},em=function(e){var t=e.name;return t===N.Safari||t===N.MobileSafari},eg=function(e){return e.name===N.MobileSafari},ey=function(e){return e.name===N.Opera},ev=function(e){var t=e.name;return t===N.InternetExplorer||t===N.Ie},eb=function(e){return e.name===N.MIUI},e_=function(e){return e.name===N.SamsungBrowser},ew=function(e){return M(e.version)},eS=function(e){return M(e.major)},ek=function(e){return M(e.name)},ex=function(e){return M(e.name)},eE=function(e){return M(e.version)},eT=function(){var e=j(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},eA=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},eC=function(){var e=j();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},eP=function(){return B("iPad")},eI=function(){return B("iPhone")},eO=function(){return B("iPod")},eN=function(e){return M(e)};function eD(e){var t=e||y,r=t.device,n=t.browser,i=t.os,o=t.engine,a=t.ua;return{isSmartTV:Z(r),isConsole:X(r),isWearable:J(r),isEmbedded:Q(r),isMobileSafari:eg(n)||eP(),isChromium:eh(n),isMobile:K(r)||eP(),isMobileOnly:V(r),isTablet:G(r)||eP(),isBrowser:Y(r),isDesktop:Y(r),isAndroid:en(i),isWinPhone:ea(i),isIOS:es(i)||eP(),isChrome:eu(n),isFirefox:ed(n),isSafari:em(n),isOpera:ey(n),isIE:ev(n),osVersion:el(i),osName:ec(i),fullBrowserVersion:ew(n),browserVersion:eS(n),browserName:ek(n),mobileVendor:ee(r),mobileModel:et(r),engineName:ex(o),engineVersion:eE(o),getUA:eN(a),isEdge:ep(n)||eA(a),isYandex:ef(n),deviceType:er(r),isIOS13:eC(),isIPad13:eP(),isIPhone13:eI(),isIPod13:eO(),isElectron:eT(),isEdgeChromium:eA(a),isLegacyEdge:ep(n)&&!eA(a),isWindows:ei(i),isMacOs:eo(i),isMIUI:eb(n),isSamsungBrowser:e_(n)}}var eR=Z(d),eL=X(d),eM=J(d),ej=Q(d),eB=(eg(c)||eP(),eh(c)),eU=K(d)||eP(),eF=V(d),eH=G(d)||eP(),ez=Y(d),e$=Y(d),eq=en(p),eW=ea(p),eV=es(p)||eP(),eG=eu(c),eK=ed(c),eZ=(em(c),ey(c),ev(c)),eY=(el(p),ec(p),ew(c)),eJ=eS(c),eX=ek(c),eQ=(ee(d),et(d),ex(h)),e0=eE(h),e1=eN(f),e2=ep(c)||eA(f),e4=(ef(c),er(d)),e3=eC(),e6=eP(),e5=eI(),e8=eO(),e7=eT(),e9=eA(f),te=ep(c)&&!eA(f),tt=(ei(p),eo(p)),tr=eb(c),tn=(e_(c),function(e){if(!e||"string"!=typeof e){console.error("No valid user agent string was provided");return}var t=g(e);return eD({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}),ti=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return ez?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},to=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eZ?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},ta=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eV?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},ts=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eU?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},tl=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eH?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},tc=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eW?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},tu=function(e){var t=e.renderWithFragment,r=e.children,n=(e.viewClassName,e.style,x(e,["renderWithFragment","children","viewClassName","style"]));return eF?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},td=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eR?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},th=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eL?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},tp=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eM?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},tf=function(e){var t=e.renderWithFragment,r=e.children,n=(e.viewClassName,e.style,e.condition),i=x(e,["renderWithFragment","children","viewClassName","style","condition"]);return n?t?a.createElement(o.Fragment,null,r):a.createElement("div",i,r):null};i=function(e){var t=e.renderWithFragment,r=e.children,n=x(e,["renderWithFragment","children"]);return eq?t?a.createElement(o.Fragment,null,r):a.createElement("div",n,r):null},i=N,i=ti,i=th,i=tf,i=to,i=ta,i=tu,i=ts,i=D,i=td,i=tl,i=tp,i=tc,i=eX,i=eJ,i=W,i=e4,i=eQ,i=e0,i=eY,i=tn,i=e1,i=eq,i=ez,i=eG,i=eB,i=eL,i=e$,i=e2,i=e9,i=e7,i=ej,i=eK,i=eZ,i=eV,i=e3,i=e6,i=e5,i=e8,i=te,i=tr,i=tt,t.tq=eU},50259:function(e,t,r){"use strict";r.d(t,{pm:function(){return h},xX:function(){return p}});var n,i=r(67294),o=r(34155),a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e){var t;e?function(e){if(e)for(;e.lastChild;
60)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(t=document.querySelector(".grecaptcha-badge"))&&t.parentNode&&document.body.removeChild(t.parentNode)},l=function(e,t){s(t),window.___grecaptcha_cfg=void 0;var r=document.querySelector("#"+e);r&&r.remove(),function(){var e=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]');e&&e.remove()}()},c=function(e){var t=e.render,r=e.onLoadCallbackName,n=e.language,i=e.onLoad,o=e.useRecaptchaNet,a=e.useEnterprise,s=e.scriptProps,l=void 0===s?{}:s,c=l.nonce,u=void 0===c?"":c,d=l.defer,h=void 0!==d&&d,p=l.async,f=void 0!==p&&p,m=l.id,g=void 0===m?"":m,y=l.appendTo,v=g||"google-recaptcha-v3";if(function(e){return!!document.querySelector("#"+e)}(v))i();else{var b=function(e){return"https://www."+(e.useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(e.useEnterprise?"enterprise.js":"api.js")}({useEnterprise:a,useRecaptchaNet:o}),_=document.createElement("script");_.id=v,_.src=b+"?render="+t+("explicit"===t?"&onload="+r:"")+(n?"&hl="+n:""),u&&(_.nonce=u),_.defer=!!h,_.async=!!f,_.onload=i,("body"===y?document.body:document.getElementsByTagName("head")[0]).appendChild(_)}},u=function(e){void 0===o||o.env,console.warn(e)};!function(e){e.SCRIPT_NOT_AVAILABLE="Recaptcha script is not available"}(n||(n={}));var d=(0,i.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function h(e){var t=e.reCaptchaKey,r=e.useEnterprise,o=void 0!==r&&r,s=e.useRecaptchaNet,h=void 0!==s&&s,p=e.scriptProps,f=e.language,m=e.container,g=e.children,y=(0,i.useState)(null),v=y[0],b=y[1],_=(0,i.useRef)(t),w=JSON.stringify(p),S=JSON.stringify(null==m?void 0:m.parameters);(0,i.useEffect)(function(){if(t){var e=(null==p?void 0:p.id)||"google-recaptcha-v3",r=(null==p?void 0:p.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[r]=function(){var e=o?window.grecaptcha.enterprise:window.grecaptcha,r=a({badge:"inline",size:"invisible",sitekey:t},(null==m?void 0:m.parameters)||{});_.current=e.render(null==m?void 0:m.element,r)},c({render:(null==m?void 0:m.element)?"explicit":t,onLoadCallbackName:r,useEnterprise:o,useRecaptchaNet:h,scriptProps:p,language:f,onLoad:function(){if(window&&window.grecaptcha){var e=o?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){b(e)})}else u("<GoogleRecaptchaProvider /> "+n.SCRIPT_NOT_AVAILABLE)},onError:function(){u("Error loading google recaptcha script")}}),function(){l(e,null==m?void 0:m.element)}}u("<GoogleReCaptchaProvider /> recaptcha key not provided")},[o,h,w,S,f,t,null==m?void 0:m.element]);var k=(0,i.useCallback)(function(e){if(!v||!v.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return v.execute(_.current,{action:e})},[v,_]),x=(0,i.useMemo)(function(){return{executeRecaptcha:v?k:void 0,container:null==m?void 0:m.element}},[k,v,null==m?void 0:m.element]);return i.createElement(d.Provider,{value:x},g)}d.Consumer;var p=function(){return(0,i.useContext)(d)};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var m="function"==typeof Symbol&&Symbol.for,g=m?Symbol.for("react.element"):60103,y=m?Symbol.for("react.portal"):60106,v=m?Symbol.for("react.fragment"):60107,b=m?Symbol.for("react.strict_mode"):60108,_=m?Symbol.for("react.profiler"):60114,
60w=m?Symbol.for("react.provider"):60109,S=m?Symbol.for("react.context"):60110,k=m?Symbol.for("react.async_mode"):60111,x=m?Symbol.for("react.concurrent_mode"):60111,E=m?Symbol.for("react.forward_ref"):60112,T=m?Symbol.for("react.suspense"):60113,A=m?Symbol.for("react.suspense_list"):60120,C=m?Symbol.for("react.memo"):60115,P=m?Symbol.for("react.lazy"):60116,I=m?Symbol.for("react.block"):60121,O=m?Symbol.for("react.fundamental"):60117,N=m?Symbol.for("react.responder"):60118,D=m?Symbol.for("react.scope"):60119;function R(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case g:switch(e=e.type){case k:case x:case v:case _:case b:case T:return e;default:switch(e=e&&e.$$typeof){case S:case E:case P:case C:case w:return e;default:return t}}case y:return t}}}function L(e){return R(e)===x}var M={AsyncMode:k,ConcurrentMode:x,ContextConsumer:S,ContextProvider:w,Element:g,ForwardRef:E,Fragment:v,Lazy:P,Memo:C,Portal:y,Profiler:_,StrictMode:b,Suspense:T,isAsyncMode:function(e){return L(e)||R(e)===k},isConcurrentMode:L,isContextConsumer:function(e){return R(e)===S},isContextProvider:function(e){return R(e)===w},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===g},isForwardRef:function(e){return R(e)===E},isFragment:function(e){return R(e)===v},isLazy:function(e){return R(e)===P},isMemo:function(e){return R(e)===C},isPortal:function(e){return R(e)===y},isProfiler:function(e){return R(e)===_},isStrictMode:function(e){return R(e)===b},isSuspense:function(e){return R(e)===T},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===v||e===x||e===_||e===b||e===T||e===A||"object"==typeof e&&null!==e&&(e.$$typeof===P||e.$$typeof===C||e.$$typeof===w||e.$$typeof===S||e.$$typeof===E||e.$$typeof===O||e.$$typeof===N||e.$$typeof===D||e.$$typeof===I)},typeOf:R},j=f(function(e,t){}),B=(j.AsyncMode,j.ConcurrentMode,j.ContextConsumer,j.ContextProvider,j.Element,j.ForwardRef,j.Fragment,j.Lazy,j.Memo,j.Portal,j.Profiler,j.StrictMode,j.Suspense,j.isAsyncMode,j.isConcurrentMode,j.isContextConsumer,j.isContextProvider,j.isElement,j.isForwardRef,j.isFragment,j.isLazy,j.isMemo,j.isPortal,j.isProfiler,j.isStrictMode,j.isSuspense,j.isValidElementType,j.typeOf,f(function(e){e.exports=M})),U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F={};F[B.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},F[B.Memo]=U},69921:function(e,t){"use strict";var r,n,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case a:case l:case s:case p:case f:return e;default:switch(e=e&&e.$$typeof){case d:case u:case h:case g:case m:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),r=u,r=c,r=i,t.ForwardRef=h,r=a,r=g,t.Memo=m,r=o,r=l,r=s,r=p,r=f,r=function(){return!1},r=function(){return!1},t.isContextConsumer=function(e){return v(e)===u},r=function(e){return v(e)===c},r=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},r=function(e){return v(e)===h},r=function(e){return v(e)===a},r=function(e){return v(e)===g},r=function(e){return v(e)===m},r=function(e){return v(e)===o},r=function(e){return v(e)===l},r=function(e){return v(e)===s},r=function(e){return v(e)===p},r=function(e){return v(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===l||e===s||e===p||e===f||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},59864:function(e,t,r){"use strict";e.exports=r(69921)},2664:function(e,t,r){"use strict";r.d(t,{zt:function(){return K},ET:function(){return h},$j:function(){return G}});var n=r(61688),i=r(52798),o=r(73935);let a=function(e){e()},s=e=>a=e,l=()=>a;
60var c=r(67294);let u=Symbol.for("react-redux-context"),d="undefined"!=typeof globalThis?globalThis:{},h=function(){var e;if(!c.createContext)return{};let t=null!=(e=d[u])?e:d[u]=new Map,r=t.get(c.createContext);return r||(r=c.createContext(null),t.set(c.createContext,r)),r}(),p=null,f=e=>{p=e};var m=r(87462),g=r(63366),y=r(8679),v=r.n(y),b=r(59864);let _=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function w(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,c,u,d,h=!1;function p(i,o){return c=e(s=i,l=o),u=t(n,l),d=r(c,u,l),h=!0,d}function f(){return c=e(s,l),t.dependsOnOwnProps&&(u=t(n,l)),d=r(c,u,l)}function m(){return e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(n,l)),d=r(c,u,l)}function g(){let t=e(s,l),n=!a(t,c);return c=t,n&&(d=r(c,u,l)),d}function y(e,t){let r=!o(t,l),n=!i(e,s,t,l);return(s=e,l=t,r&&n)?f():r?m():n?g():d}return function(e,t){return h?y(e,t):p(e,t)}}function S(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,o=(0,g.Z)(t,_),a=r(e,o);return w(a,n(e,o),i(e,o),e,o)}function k(e,t){let r={};for(let n in e){let i=e[n];"function"==typeof i&&(r[n]=(...e)=>t(i(...e)))}return r}function x(e){return function(t){let r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function E(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function T(e,t){return function(t,{displayName:r}){let n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=E(e);let i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=E(i),i=n(t,r)),i},n}}function A(e,t){return(r,n)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function C(e){return e&&"object"==typeof e?x(t=>k(e,t)):e?"function"==typeof e?T(e,"mapDispatchToProps"):A(e,"mapDispatchToProps"):x(e=>({dispatch:e}))}function P(e){return e?"function"==typeof e?T(e,"mapStateToProps"):A(e,"mapStateToProps"):x(()=>({}))}function I(e,t,r){return(0,m.Z)({},r,e,t)}function O(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let i,o=!1;return function(t,r,a){let s=e(t,r,a);return o?n(s,i)||(i=s):(o=!0,i=s),i}}}function N(e){return e?"function"==typeof e?O(e):A(e,"mergeProps"):()=>I}function D(){let e=l(),t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}let R={notify(){},get:()=>[]};function L(e,t){let r;let n=R,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=D())}function l(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=R)}let c={addNestedSub:function(e){s();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>n};return c}let M="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function B(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!j(e[r[n]],t[r[n]]))return!1;return!0}let U=["reactReduxForwardedRef"],F=()=>{throw Error("uSES not initialized!")},H=e=>{F=e},z=[null,null];function $(e,t,r){M(()=>e(...t),r)}function q(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function W(e,t,r,n,i,o,a,s,l,c,u){if(!e)return()=>{};let d=!1,h=null,p=()=>{let e,r;if(d||!s.current)return;let p=t.getState();try{e=n(p,i.current)}catch(e){r=e,h=e}r||(h=null),e===o.current?a.current||c():(o.current=e,l.current=e,a.current=!0,u())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function V(e,t){return e===t}var G=function(e,t,r,{pure:n,areStatesEqual:i=V,areOwnPropsEqual:o=B,areStatePropsEqual:a=B,areMergedPropsEqual:s=B,forwardRef:l=!1,context:u=h}={}){let d=u,p=P(e),f=C(t),y=N(r),_=!!e;return e=>
60{let t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:_,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:y,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function u(t){let r;let[i,o,a]=c.useMemo(()=>{let{reactReduxForwardedRef:e}=t,r=(0,g.Z)(t,U);return[t.context,e,r]},[t]),s=c.useMemo(()=>i&&i.Consumer&&(0,b.isContextConsumer)(c.createElement(i.Consumer,null))?i:d,[i,d]),l=c.useContext(s),u=!!t.store&&!!t.store.getState&&!!t.store.dispatch,h=!!l&&!!l.store,p=u?t.store:l.store,f=h?l.getServerState:p.getState,y=c.useMemo(()=>S(p.dispatch,n),[p]),[v,w]=c.useMemo(()=>{if(!_)return z;let e=L(p,u?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[p,u,l]),k=c.useMemo(()=>u?l:(0,m.Z)({},l,{subscription:v}),[u,l,v]),x=c.useRef(),E=c.useRef(a),T=c.useRef(),A=c.useRef(!1);c.useRef(!1);let C=c.useRef(!1),P=c.useRef();M(()=>(C.current=!0,()=>{C.current=!1}),[]);let I=c.useMemo(()=>()=>T.current&&a===E.current?T.current:y(p.getState(),a),[p,a]),O=c.useMemo(()=>e=>v?W(_,p,v,y,E,x,A,C,T,w,e):()=>{},[v]);$(q,[E,x,A,a,T,w]);try{r=F(O,I,f?()=>y(f(),a):I)}catch(e){throw P.current&&(e.message+=`
61The error may be correlated with this previous error:
62${P.current.stack}
63
64`),e}M(()=>{P.current=void 0,T.current=void 0,x.current=r});let N=c.useMemo(()=>c.createElement(e,(0,m.Z)({},r,{ref:o})),[o,e,r]);return c.useMemo(()=>_?c.createElement(s.Provider,{value:k},N):N,[s,N,k])}let h=c.memo(u);if(h.WrappedComponent=e,h.displayName=u.displayName=r,l){let t=c.forwardRef(function(e,t){return c.createElement(h,(0,m.Z)({},e,{reactReduxForwardedRef:t}))});return t.displayName=r,t.WrappedComponent=e,v()(t,e)}return v()(h,e)}},K=function({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){let a=c.useMemo(()=>{let t=L(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),s=c.useMemo(()=>e.getState(),[e]);M(()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,s]);let l=t||h;return c.createElement(l.Provider,{value:a},r)};f(i.useSyncExternalStoreWithSelector),H(n.useSyncExternalStore),s(o.unstable_batchedUpdates)},8662:function(e,t,r){"use strict";r.d(t,{ZP:function(){return y}});var n=r(63366),i=r(94578),o=r(67294),a=r(73935),s={disabled:!1},l=r(220),c=function(e){return e.scrollTop},u="unmounted",d="exited",h="entering",p="entered",f="exiting",m=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,o=r,a=o&&!o.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=d,n.appearStatus=h):i=p:i=t.unmountOnExit||t.mountOnEnter?u:d,n.state={status:i},n.nextCallback=null,n}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==h&&r!==p&&(t=h):(r===h||r===p)&&(t=f)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);r&&c(r)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[a.findDOMNode(this),n],o=i[0],l=i[1],c=this.getTimeouts(),u=n?c.appear:c.enter;if(!e&&!r||s.disabled){this.safeSetState({status:p},function(){t.props.onEntered(o)});return}this.props.onEnter(o,l),this.safeSetState({status:h},function(){t.props.onEntering(o,l),t.onTransitionEnd(u,function(){t.safeSetState({status:p},function(){t.props.onEntered(o,l)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:a.findDOMNode(this);if(!t||s.disabled){this.safeSetState({status:d},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:f},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,r=t.children,i=(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,n.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(l.Z.Provider,{value:null},"function"==typeof r?r(e,i):o.cloneElement(o.Children.only(r),i))},t}(o.Component);function g(){}m.contextType=l.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
64:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=u,m.EXITED=d,m.ENTERING=h,m.ENTERED=p,m.EXITING=f;var y=m},220:function(e,t,r){"use strict";var n=r(67294);t.Z=n.createContext(null)},89509:function(e,t,r){var n=r(48764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},75974:function(e){e.exports=t;function t(e,t){var r,n=null;try{r=JSON.parse(e,t)}catch(e){n=e}return[n,r]}},96774:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=r?r.call(n,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},32553:function(e,t,r){"use strict";var n=r(89509).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function h(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},68777:function(e,t,r){"use strict";r.d(t,{vJ:function(){return eM},ZP:function(){return ej}});var n=r(59864),i=r(67294),o=r(96774),a=r.n(o),s=function(e){function t(e,n,l,c,u){for(var p,f,m,g,y,w=0,k=0,x=0,E=0,T=0,A=0,D=m=p=0,L=0,j=0,B=0,U=0,F=l.length,H=F-1,z="",$="",q="",W="";L<F;){if(f=l.charCodeAt(L),L===H&&0!==k+E+x+w&&(0!==k&&(f=47===k?10:47),E=x=w=0,F++,H++),0===k+E+x+w){if(L===H&&(0<j&&(z=z.replace(h,"")),0<z.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(L)}f=59}
vendor: 7,549 bytes, line 64
64switch(f){case 123:for(p=(z=z.trim()).charCodeAt(0),m=1,U=++L;L<F;){switch(f=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(f=l.charCodeAt(L+1)){case 42:case 47:t:{for(D=L+1;D<H;++D)switch(l.charCodeAt(D)){case 47:if(42===f&&42===l.charCodeAt(D-1)&&L+2!==D){L=D+1;break t}break;case 10:if(47===f){L=D+1;break t}}L=D}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<H&&l.charCodeAt(L)!==f;);}if(0===m)break;L++}if(m=l.substring(U,L),0===p&&(p=(z=z.replace(d,"").trim()).charCodeAt(0)),64===p){switch(0<j&&(z=z.replace(h,"")),f=z.charCodeAt(1)){case 100:case 109:case 115:case 45:j=n;break;default:j=N}if(U=(m=t(n,j,m,f,u+1)).length,0<R&&(y=s(3,m,j=r(N,z,B),n,P,C,U,f,u,c),z=j.join(""),void 0!==y&&0===(U=(m=y.trim()).length)&&(f=0,m="")),0<U)switch(f){case 115:z=z.replace(S,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(v,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===c&&($+=m,m="")}else m=""}else m=t(n,r(n,z,B),m,c,u+1);q+=m,m=B=j=D=p=0,z="",f=l.charCodeAt(++L);break;case 125:case 59:if(1<(U=(z=(0<j?z.replace(h,""):z).trim()).length))switch(0===D&&(45===(p=z.charCodeAt(0))||96<p&&123>p)&&(U=(z=z.replace(" ",":")).length),0<R&&void 0!==(y=s(1,z,n,e,P,C,$.length,c,u,c))&&0===(U=(z=y.trim()).length)&&(z="\0\0"),p=z.charCodeAt(0),f=z.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){W+=z+l.charAt(L);break}default:58!==z.charCodeAt(U-1)&&($+=i(z,p,f,z.charCodeAt(2)))}B=j=D=p=0,z="",f=l.charCodeAt(++L)}}switch(f){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<z.length&&(j=1,z+="\0"),0<R*M&&s(0,z,n,e,P,C,$.length,c,u,c),C=1,P++;break;case 59:case 125:if(0===k+E+x+w){C++;break}default:switch(C++,g=l.charAt(L),f){case 9:case 32:if(0===E+w+k)switch(T){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===E+k+w&&(j=B=1,g="\f"+g);break;case 108:if(0===E+k+w+I&&0<D)switch(L-D){case 2:112===T&&58===l.charCodeAt(L-3)&&(I=T);case 8:111===A&&(I=A)}break;case 58:0===E+k+w&&(D=L);break;case 44:0===k+x+E+w&&(j=1,g+="\r");break;case 34:case 39:0===k&&(E=E===f?0:0===E?f:E);break;case 91:0===E+k+x&&w++;break;case 93:0===E+k+x&&w--;break;case 41:0===E+k+w&&x--;break;case 40:0===E+k+w&&(0===p&&(2*T+3*A==533||(p=1)),x++);break;case 64:0===k+x+E+w+D+m&&(m=1);break;case 42:case 47:if(!(0<E+w+x))switch(k){case 0:switch(2*f+3*l.charCodeAt(L+1)){case 235:k=47;break;case 220:U=L,k=42}break;case 42:47===f&&42===T&&U+2!==L&&(33===l.charCodeAt(U+2)&&($+=l.substring(U,L+1)),g="",k=0)}}0===k&&(z+=g)}A=T,T=f,L++}if(0<(U=$.length)){if(j=n,0<R&&void 0!==(y=s(2,$,j,e,P,C,U,c,u,c))&&0===($=y).length)return W+$+q;if($=j.join(",")+"{"+$+"}",0!=O*I){switch(2!==O||o($,2)||(I=0),I){case 111:$=$.replace(_,":-moz-$1")+$;break;case 112:$=$.replace(b,"::-webkit-input-$1")+$.replace(b,"::-moz-$1")+$.replace(b,":-ms-input-$1")+$}I=0}}return W+$+q}function r(e,t,r){var i=t.trim().split(g);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===O||2===O&&o(l,1)?"-webkit-"+l+l:l}if(0===O||2===O&&!o(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(A,"$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"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),L(2!==t?n:n.replace(E,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,l,c){for(var d,h=0,p=t;h<R;++h)switch(d=D[h].call(u,e,p,r,n,i,o,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){switch(e){case void 0:case null:R=D.length=0;break;default:if("function"==typeof e)D[R++]=e;else if("object"==typeof e)for(var t=0,r=e.length;t<r;++t)l(e[t]);else M=0|!!e}return l}function c(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?O=1:(O=2,L=e):O=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[j=n],0<R){var i=s(-1,r,n,n,P,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(N,n,r,0,0);return 0<R&&void 0!==(i=s(-2,o,n,n,P,C,o.length,0,0,0))&&(o=i),j="",I=0,C=P=1,o}var d=/^\0+/g,h=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,_=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}
64/,S=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,x=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,C=1,P=1,I=0,O=1,N=[],D=[],R=0,L=null,M=0,j="";return u.use=l,u.set=c,void 0!==e&&c(e),u},l={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},c=r(45042),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|disableRemotePlayback|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,c.Z)(function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),h=r(8679),p=r.n(h),f=r(34155);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,902 bytes, line 64
64for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var g=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},y=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},v=Object.freeze([]),b=Object.freeze({});function _(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var k=void 0!==f&&void 0!==f.env&&(f.env.REACT_APP_SC_ATTR||f.env.SC_ATTR)||"data-styled",x="undefined"!=typeof window&&"HTMLElement"in window,E=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==f&&void 0!==f.env&&(void 0!==f.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==f.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==f.env.REACT_APP_SC_DISABLE_SPEEDY&&f.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==f.env.SC_DISABLE_SPEEDY&&""!==f.env.SC_DISABLE_SPEEDY&&"false"!==f.env.SC_DISABLE_SPEEDY&&f.env.SC_DISABLE_SPEEDY)),T={};function A(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.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,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&A(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),P=new Map,I=new Map,O=1,N=function(e){if(P.has(e))return P.get(e);for(;I.has(O);)O++;var t=O++;return P.set(e,t),I.set(t,e),t},D=function(e){return I.get(e)},R=function(e,t){t>=O&&(O=t+1),P.set(e,t),I.set(t,e)},L="style["+k+'][data-styled-version="5.3.11"]',M=RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),j=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},B=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(M);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(R(c,l),j(e,c,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},U=function(){return r.nc},F=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(k))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(k,"active"),n.setAttribute("data-styled-version","5.3.11");var a=U();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},H=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,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}A(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}(),z=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 r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||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}(),$=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}(),q=x,W={isServer:!x,useCSSOMInjection:!E},V=function(){function e(e,t,r){void 0===e&&(e=b),void 0===t&&(t={}),this.options=m({},W,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&x&&q&&(q=!1,function(e){for(var t=document.querySelectorAll(L),r=0,n=t.length;r<n;r++){var i=t[r];
vendor: 4,633 bytes, line 64
64i&&"active"!==i.getAttribute(k)&&(B(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return N(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(m({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new C(t?new $(n):r?new H(n):new z(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(N(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o=D(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var l=k+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),G=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Z(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(G,"$1-$2")}var Y=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return Y(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(_(r)&&!S(r))return!1}return!0}var Q=J("5.3.11"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&X(e),this.componentId=t,this.baseHash=Y(Q,t),this.baseStyle=r,V.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=ev(this.rules,e,t,r).join(""),a=Z(Y(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}}else{for(var l=this.rules.length,c=Y(this.baseHash,r.hash),u="",d=0;d<l;d++){var h=this.rules[d];if("string"==typeof h)u+=h;else if(h){var p=ev(h,e,t,r),f=Array.isArray(p)?p.join(""):p;c=Y(c,f+d),u+=f}}if(u){var m=Z(c>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,er=[":","[",".","#"];function en(e){var t,r,n,i,o=void 0===e?b:e,a=o.options,l=void 0===a?b:a,c=o.plugins,u=void 0===c?v:c,d=new s(l),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),f=function(e,n,o){return 0===n&&-1!==er.indexOf(o[r.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var l=e.replace(et,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),i=RegExp("(\\"+r+"\\b){2,}"),d(a||!o?"":o,c)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,f))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),m.hash=u.length?u.reduce(function(e,t){return t.name||A(15),Y(e,t.name)},5381).toString():"",m}var ei=i.createContext(),eo=(ei.Consumer,i.createContext()),ea=(eo.Consumer,new V),es=en();function el(){return(0,i.useContext)(ei)||ea}function ec(){return(0,i.useContext)(eo)||es}function eu(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],o=el(),s=(0,i.useMemo)(function(){var t=o;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]),l=(0,i.useMemo)(function(){return en({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,i.useEffect)(function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),i.createElement(ei.Provider,{value:s},i.createElement(eo.Provider,{value:l},e.children))}var ed=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=es);var n=r.name+t.hash;
vendor: 7,592 bytes, line 64
64e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return A(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=es),this.name+e.hash},e}(),eh=/([A-Z])/,ep=/([A-Z])/g,ef=/^ms-/,em=function(e){return"-"+e.toLowerCase()};function eg(e){return eh.test(e)?e.replace(ep,em).replace(ef,"-ms-"):e}var ey=function(e){return null==e||!1===e||""===e};function ev(e,t,r,n){if(Array.isArray(e)){for(var i,o,a=[],s=0,c=e.length;s<c;s+=1)""!==(o=ev(e[s],t,r,n))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}return ey(e)?"":S(e)?"."+e.styledComponentId:_(e)?"function"!=typeof(i=e)||i.prototype&&i.prototype.isReactComponent||!t?e:ev(e(t),t,r,n):e instanceof ed?r?(e.inject(r,n),e.getName(n)):e:y(e)?function e(t,r){var n,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!ey(t[a])&&(Array.isArray(t[a])&&t[a].isCss||_(t[a])?o.push(eg(a)+":",t[a],";"):y(t[a])?o.push.apply(o,e(t[a],a)):o.push(eg(a)+": "+(n=a,null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in l||n.startsWith("--")?String(i).trim():i+"px")+";"));return r?[r+" {"].concat(o,["}"]):o}(e):e.toString()}var eb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function e_(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return _(e)||y(e)?eb(ev(g(v,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:eb(ev(g(e,r)))}var ew=function(e,t,r){return void 0===r&&(r=b),e.theme!==r.theme&&e.theme||t||r.theme},eS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ek=/(^-|-$)/g;function ex(e){return e.replace(eS,"-").replace(ek,"")}var eE=function(e){return Z(J(e)>>>0)};function eT(e){return"string"==typeof e}var eA=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eC=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function eP(e,t,r){var n=e[r];eA(t)&&eA(n)?eI(n,t):e[r]=t}function eI(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(eA(a))for(var s in a)eC(s)&&eP(e,a[s],s)}return e}var eO=i.createContext();eO.Consumer;var eN={};function eD(e,t,r){var n=S(e),o=!eT(e),a=t.attrs,s=void 0===a?v:a,l=t.componentId,c=void 0===l?function(e,t){var r="string"!=typeof e?"sc":ex(e);eN[r]=(eN[r]||0)+1;var n=r+"-"+eE("5.3.11"+r+eN[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):l,u=t.displayName,h=void 0===u?function(e){return eT(e)?"styled."+e:"Styled("+w(e)+")"}(e):u,f=t.displayName&&t.componentId?ex(t.displayName)+"-"+t.componentId:t.componentId||c,g=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,y=t.shouldForwardProp;n&&e.shouldForwardProp&&(y=t.shouldForwardProp?function(r,n,i){return e.shouldForwardProp(r,n,i)&&t.shouldForwardProp(r,n,i)}:e.shouldForwardProp);var k,x=new ee(r,f,n?e.componentStyle:void 0),E=x.isStatic&&0===s.length,T=function(e,t){return function(e,t,r,n){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,h=e.target,p=function(e,t,r){void 0===e&&(e=b);var n=m({},t,{theme:e}),i={};return r.forEach(function(e){var t,r,o,a=e;for(t in _(a)&&(a=a(n)),a)n[t]=i[t]="className"===t?(r=i[t],o=a[t],r&&o?r+" "+o:r||o):a[t]}),[n,i]}(ew(t,(0,i.useContext)(eO),s)||b,t,o),f=p[0],g=p[1],y=function(e,t,r,n){var i=el(),o=ec();return t?e.generateAndInjectStyles(b,i,o):e.generateAndInjectStyles(r,i,o)}(a,n,f,0),v=r,w=g.$as||t.$as||g.as||t.as||h,S=eT(w),k=g!==t?m({},t,{},g):t,x={};for(var E in k)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?x.as=k[E]:(c?c(E,d,w):!S||d(E))&&(x[E]=k[E]));return t.style&&g.style!==t.style&&(x.style=m({},t.style,{},g.style)),x.className=Array.prototype.concat(l,u,y!==u?y:null,t.className,g.className).filter(Boolean).join(" "),x.ref=v,(0,i.createElement)(w,x)}(k,e,t,E)};return T.displayName=h,(k=i.forwardRef(T)).attrs=g,k.componentStyle=x,k.displayName=h,k.shouldForwardProp=y,k.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,k.styledComponentId=f,k.target=n?e.target:e,k.withComponent=function(e){var n=t.componentId,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(t,["componentId"]),o=n&&n+"-"+(eT(e)?e:ex(w(e)));return eD(e,m({},i,{attrs:g,componentId:o}),r)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?eI({},e.defaultProps,t):t}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),o&&p()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var eR=function(e){return function e(t,r,i){if(void 0===i&&(i=b),!(0,n.isValidElementType)(r))return A(1,String(r));var o=function(){return t(r,i,e_.apply(void 0,arguments))};return o.withConfig=function(n){return e(t,r,m({},i,{},n))},o.attrs=function(n){return e(t,r,m({},i,{attrs:Array.prototype.concat(i.attrs,n).filter(Boolean)}))},o}(eD,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){eR[e]=eR(e)});var eL=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),V.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ev(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eM(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=e_.apply(void 0,[e].concat(r)),a="sc-global-"+eE(JSON.stringify(o)),s=new eL(o,a);function l(e){var t=el(),r=ec(),n=(0,i.useContext)(eO),o=(0,i.useRef)(t.allocateGSInstance(a)).current;return t.server&&c(o,e,t,n,r),(0,i.useLayoutEffect)(function(){if(!t.server)return c(o,e,t,n,r),function(){return s.removeStyles(o,t)}},[o,e,t,n,r]),null}function c(e,t,r,n,i){if(s.isStatic)s.renderStyles(e,T,r,i);else{var o=m({},t,{theme:ew(t,n,l.defaultProps)});s.renderStyles(e,o,r,i)}}return i.memo(l)}!function(){var e=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=U();return"<style "+[r&&'nonce="'+r+'"',k+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?A(2):e._emitSheetCSS()}
64,this.getStyleElement=function(){if(e.sealed)return A(2);var t,r=((t={})[k]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=U();return n&&(r.nonce=n),[i.createElement("style",m({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}).prototype;e.collectStyles=function(e){return this.sealed?A(2):i.createElement(eu,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return A(3)}}();var ej=eR},23451:function(e,t,r){var n;!function(i,o){"use strict";var a="1.0.38",s="",l="?",c="function",u="undefined",d="object",h="string",p="major",f="model",m="name",g="type",y="vendor",v="version",b="architecture",_="console",w="mobile",S="tablet",k="smarttv",x="wearable",E="embedded",T=500,A="Amazon",C="Apple",P="ASUS",I="BlackBerry",O="Browser",N="Chrome",D="Firefox",R="Google",L="Huawei",M="LG",j="Microsoft",B="Motorola",U="Opera",F="Samsung",H="Sharp",z="Sony",$="Xiaomi",q="Zebra",W="Facebook",V="Chromium OS",G="Mac OS",K=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},Z=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Y=function(e,t){return typeof e===h&&-1!==J(t).indexOf(J(e))},J=function(e){return e.toLowerCase()},X=function(e){return typeof e===h?e.replace(/[^\d\.]/g,s).split(".")[0]:void 0},Q=function(e,t){if(typeof e===h)return e=e.replace(/^\s\s*/,s),typeof t===u?e:e.substring(0,T)},ee=function(e,t){for(var r,n,i,a,s,l,u=0;u<t.length&&!s;){var h=t[u],p=t[u+1];for(r=n=0;r<h.length&&!s&&h[r];)if(s=h[r++].exec(e))for(i=0;i<p.length;i++)l=s[++n],typeof(a=p[i])===d&&a.length>0?2===a.length?typeof a[1]==c?this[a[0]]=a[1].call(this,l):this[a[0]]=a[1]:3===a.length?typeof a[1]!==c||a[1].exec&&a[1].test?this[a[0]]=l?l.replace(a[1],a[2]):void 0:this[a[0]]=l?a[1].call(this,l,a[2]):void 0:4===a.length&&(this[a[0]]=l?a[3].call(this,l.replace(a[1],a[2])):o):this[a]=l||o;u+=2}},et=function(e,t){for(var r in t)if(typeof t[r]===d&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(Y(t[r][n],e))return r===l?o:r}else if(Y(t[r],e))return r===l?o:r;return e},er={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},en={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,v],[/opios[\/ ]+([\w\.]+)/i],[v,[m,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[m,U+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[m,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[m,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,v],[/\bddg\/([\w\.]+)/i],[v,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[m,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[m,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+
vendor: 5,743 bytes, line 64
64)/,"$1 Secure "+O],v],[/\bfocus\/([\w\.]+)/i],[v,[m,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[m,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[m,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[m,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[v,[m,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+O],v],[/samsungbrowser\/([\w\.]+)/i],[v,[m,F+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],v],[/metasr[\/ ]?([\d\.]+)/i],[v,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[m,v],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,W],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[m,N+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,N+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[m,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[v,et,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[m,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[m,D+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[m,v],[/(cobalt)\/([\w\.]+)/i],[m,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,J]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,s,J]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,J]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[y,F],[g,S]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[y,F],[g,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[y,C],[g,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[y,C],[g,S]],[/(macintosh);/i],[f,[y,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[y,H],[g,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[y,L],[g,S]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[y,L],[g,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[y,$],[g,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[y,$],[g,S]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[y,"OPPO"],[g,w]],[/\b(opd2\d{3}a?) bui/i],[f,[y,"OPPO"],[g,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[y,"Vivo"],[g,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[y,"Realme"],[g,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[y,B],[g,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[y,B],[g,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[y,M],[g,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[y,M],[g,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[y,"Lenovo"],[g,S]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[y,"Nokia"],[g,w]],[/(pixel c)\b/i],[f,[y,R],[g,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[y,R],[g,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[y,z],[g,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[y,z],[g,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[y,"OnePlus"],[g,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[y,A],[g,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[
vendor: 5,315 bytes, line 64
64y,A],[g,w]],[/(playbook);[-\w\),; ]+(rim)/i],[f,y,[g,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[y,I],[g,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[y,P],[g,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[y,P],[g,w]],[/(nexus 9)/i],[f,[y,"HTC"],[g,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[y,[f,/_/g," "],[g,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[y,"Acer"],[g,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[y,"Meizu"],[g,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[y,"Ulefone"],[g,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[y,f,[g,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[y,f,[g,S]],[/(surface duo)/i],[f,[y,j],[g,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[y,"Fairphone"],[g,w]],[/(u304aa)/i],[f,[y,"AT&T"],[g,w]],[/\bsie-(\w*)/i],[f,[y,"Siemens"],[g,w]],[/\b(rct\w+) b/i],[f,[y,"RCA"],[g,S]],[/\b(venue[\d ]{2,7}) b/i],[f,[y,"Dell"],[g,S]],[/\b(q(?:mv|ta)\w+) b/i],[f,[y,"Verizon"],[g,S]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[y,"Barnes & Noble"],[g,S]],[/\b(tm\d{3}\w+) b/i],[f,[y,"NuVision"],[g,S]],[/\b(k88) b/i],[f,[y,"ZTE"],[g,S]],[/\b(nx\d{3}j) b/i],[f,[y,"ZTE"],[g,w]],[/\b(gen\d{3}) b.+49h/i],[f,[y,"Swiss"],[g,w]],[/\b(zur\d{3}) b/i],[f,[y,"Swiss"],[g,S]],[/\b((zeki)?tb.*\b) b/i],[f,[y,"Zeki"],[g,S]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[y,"Dragon Touch"],f,[g,S]],[/\b(ns-?\w{0,9}) b/i],[f,[y,"Insignia"],[g,S]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[y,"NextBook"],[g,S]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],f,[g,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],f,[g,w]],[/\b(ph-1) /i],[f,[y,"Essential"],[g,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[y,"Envizen"],[g,S]],[/\b(trio[-\w\. ]+) b/i],[f,[y,"MachSpeed"],[g,S]],[/\btu_(1491) b/i],[f,[y,"Rotor"],[g,S]],[/(shield[\w ]+) b/i],[f,[y,"Nvidia"],[g,S]],[/(sprint) (\w+)/i],[y,f,[g,w]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[y,j],[g,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[y,q],[g,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[y,q],[g,w]],[/smart-tv.+(samsung)/i],[y,[g,k]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[y,F],[g,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,M],[g,k]],[/(apple) ?tv/i],[y,[f,C+" TV"],[g,k]],[/crkey/i],[[f,N+"cast"],[y,R],[g,k]],[/droid.+aft(\w+)( bui|\))/i],[f,[y,A],[g,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[y,H],[g,k]],[/(bravia[\w ]+)( bui|\))/i],[f,[y,z],[g,k]],[/(mitv-\w{5}) bui/i],[f,[y,$],[g,k]],[/Hbbtv.*(technisat) (.*);/i],[y,f,[g,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[y,Q],[f,Q],[g,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,f,[g,_]],[/droid.+; (shield) bui/i],[f,[y,"Nvidia"],[g,_]],[/(playstation [345portablevi]+)/i],[f,[y,z],[g,_]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[y,j],[g,_]],[/((pebble))app/i],[y,f,[g,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[y,C],[g,x]],[/droid.+; (glass) \d/i],[f,[y,R],[g,x]],[/droid.+; (wt63?0{2,3})\)/i],[f,[y,q],[g,x]],[/(quest( \d| pro)?)/i],[f,[y,W],[g,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[g,E]],[/(aeobc)\b/i],[f,[y,A],[g,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[g,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[g,S]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,S]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,w]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[m,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[m,[v,et,er]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,et,er],[m,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,G],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,v],[/\(bb(10);
64/i],[v,[m,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[m,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[m,N+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,V],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,v],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,v]]},ei=function(e,t){if(typeof e===d&&(t=e,e=o),!(this instanceof ei))return new ei(e,t).getResult();var r=typeof i!==u&&i.navigator?i.navigator:o,n=e||(r&&r.userAgent?r.userAgent:s),a=r&&r.userAgentData?r.userAgentData:o,l=t?K(en,t):en,_=r&&r.userAgent==n;return this.getBrowser=function(){var e={};return e[m]=o,e[v]=o,ee.call(e,n,l.browser),e[p]=X(e[v]),_&&r&&r.brave&&typeof r.brave.isBrave==c&&(e[m]="Brave"),e},this.getCPU=function(){var e={};return e[b]=o,ee.call(e,n,l.cpu),e},this.getDevice=function(){var e={};return e[y]=o,e[f]=o,e[g]=o,ee.call(e,n,l.device),_&&!e[g]&&a&&a.mobile&&(e[g]=w),_&&"Macintosh"==e[f]&&r&&typeof r.standalone!==u&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[f]="iPad",e[g]=S),e},this.getEngine=function(){var e={};return e[m]=o,e[v]=o,ee.call(e,n,l.engine),e},this.getOS=function(){var e={};return e[m]=o,e[v]=o,ee.call(e,n,l.os),_&&!e[m]&&a&&a.platform&&"Unknown"!=a.platform&&(e[m]=a.platform.replace(/chrome os/i,V).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===h&&e.length>T?Q(e,T):e,this},this.setUA(n),this};ei.VERSION=a,ei.BROWSER=Z([m,v,p]),ei.CPU=Z([b]),ei.DEVICE=Z([f,y,g,_,w,k,S,x,E]),ei.ENGINE=ei.OS=Z([m,v]),typeof t!==u?("object"!==u&&e.exports&&(t=e.exports=ei),t.UAParser=ei):"function"===c&&r.amdO?o!==(n=(function(){return ei}).call(t,r,t,e))&&(e.exports=n):typeof i!==u&&(i.UAParser=ei);var eo=typeof i!==u&&(i.jQuery||i.Zepto);if(eo&&!eo.ua){var ea=new ei;eo.ua=ea.getResult(),eo.ua.get=function(){return ea.getUA()},eo.ua.set=function(e){ea.setUA(e);var t=ea.getResult();for(var r in t)eo.ua[r]=t[r]}}}("object"==typeof window?window:this)},49945:function(e){!function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var o=a.parseURL(t);if(!o)throw Error("Error trying to parse relative URL.");if(o.scheme)return r.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):t;var s=a.parseURL(e);if(!s)throw Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=n.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var c={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(c.netLoc=s.netLoc,"/"!==o.path[0])){if(o.path){var u=s.path,d=u.substring(0,u.lastIndexOf("/")+1)+o.path;c.path=a.normalizePath(d)}else c.path=s.path,o.params||(c.params=s.params,o.query||(c.query=s.query))}return null===c.path&&(c.path=r.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(c)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(o,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=a}(0)},53250:function(e,t,r){"use strict";var n=r(67294);function i(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:i,a=n.useState,s=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue;function u(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return l(function(){i.value=r,i.getSnapshot=t,d(i)&&o({inst:i})},[e,r,t]),s(function(){return d(i)&&o({inst:i}),e(function(){d(i)&&o({inst:i})})},[e]),c(r),r}function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}function h(e,t){return t()}var p="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?h:u;t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:p},50139:function(e,t,r){"use strict";var n=r(67294),i=r(61688);function o(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var a="function"==typeof Object.is?Object.is:o,s=i.useSyncExternalStore,l=n.useRef,c=n.useEffect,u=n.useMemo,d=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=l(null);if(null===o.current){var h={hasValue:!1,value:null};o.current=h}else h=o.current;var p=s(e,(o=u(function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(o=e,s=r)}
64var o,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],o[1]);return c(function(){h.hasValue=!0,h.value=p},[p]),d(p),p}},61688:function(e,t,r){"use strict";e.exports=r(53250)},52798:function(e,t,r){"use strict";e.exports=r(50139)},71555:function(e,t,r){"use strict";let n,i,o,a,s,l;r.r(t),r.d(t,{default:function(){return so}});var c,u=r(58908),d=r.n(u),h=r(89144),p=r.n(h),f=r(75974),m=r.n(f),g=r(9603),y=r.n(g),v=r(13407),b=r.n(v),_=r(87462),w=r(49945),S=r.n(w),k="http://example.com",x=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=d().location&&d().location.href||"");var r="function"==typeof d().URL,n=/^\/\//.test(e),i=!d().location&&!/\/\//i.test(e);if(r?e=new(d()).URL(e,d().location||k):/\/\//i.test(e)||(e=S().buildAbsoluteURL(d().location&&d().location.href||"",e)),r){var o=new URL(t,e);return i?o.href.slice(k.length):n?o.href.slice(o.protocol.length):o.href}return S().buildAbsoluteURL(e,t)},E=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var r=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(r,1),r>-1},t.trigger=function(e){var t=this.listeners[e];if(t){if(2==arguments.length)for(var r=t.length,n=0;n<r;++n)t[n].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,a=0;a<o;++a)t[a].apply(this,i)}},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),T=r(48764).Buffer,A=function(e){return d().atob?d().atob(e):T.from(e,"base64").toString("binary")};function C(e){for(var t=A(e),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}class P extends E{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}let I="	",O=function(e){let t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),r={};return t[1]&&(r.length=parseInt(t[1],10)),t[2]&&(r.offset=parseInt(t[2],10)),r},N=function(){return RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},D=function(e){let t;let r={};if(!e)return r;let n=e.split(N()),i=n.length;for(;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r};class R extends E{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,r;if(0!==(e=e.trim()).length){if("#"!==e[0]){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((t,r)=>{let n=r(e);return n===e?t:t.concat([n])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0!==e.indexOf("#EXT")){this.trigger("data",{type:"comment",text:e.slice(1)});return}if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e)){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e)){r={type:"tag",tagType:"inf"},t[1]&&(r.duration=parseFloat(t[1])),t[2]&&(r.title=t[2]),this.trigger("data",r);return}if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e)){r={type:"tag",tagType:"targetduration"},t[1]&&(r.duration=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e)){r={type:"tag",tagType:"version"},t[1]&&(r.version=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){r={type:"tag",tagType:"media-sequence"},t[1]&&(r.number=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){r={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(r.number=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e)){r={type:"tag",tagType:"playlist-type"},t[1]&&(r.playlistType=t[1]),this.trigger("data",r);return}if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e)){r=(0,_.Z)(O(t[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",r);return}if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e)){r={type:"tag",tagType:"allow-cache"},t[1]&&(r.allowed=!/NO/.test(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-MAP:(.*)$/.exec(e)){if(r={type:"tag",tagType:"map"},t[1]){let e=D(t[1]);e.URI&&(r.uri=e.URI),e.BYTERANGE&&(r.byterange=O(e.BYTERANGE))}this.trigger("data",r);return}if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e)){if(r={type:"tag",tagType:"stream-inf"},t[1]){if(r.attributes=D(t[1]),r.attributes.RESOLUTION){let e=r.attributes.RESOLUTION.split("x"),t={};e[0]&&(t.width=parseInt(e[0],10)),e[1]&&(t.height=parseInt(e[1],10)),r.attributes.RESOLUTION=t}r.attributes.BANDWIDTH&&(r.attributes.BANDWIDTH=parseInt(r.attributes.BANDWIDTH,10)),r.attributes["FRAME-RATE"]&&(r.attributes["FRAME-RATE"]=parseFloat(r.attributes["FRAME-RATE"])),r.attributes["PROGRAM-ID"]&&(r.attributes["PROGRAM-ID"]=parseInt(r.attributes["PROGRAM-ID"],10))}this.trigger("data",r);return}if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e)){r={type:"tag",tagType:"media"},t[1]&&(r.attributes=D(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-ENDLIST/.exec(e)){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(t=/^#EXT-X-DISCONTINUITY/.exec(e)){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e)){r={type:"tag",tagType:"program-date-time"}
vendor: 4,302 bytes, line 64
64,t[1]&&(r.dateTimeString=t[1],r.dateTimeObject=new Date(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-KEY:(.*)$/.exec(e)){r={type:"tag",tagType:"key"},t[1]&&(r.attributes=D(t[1]),r.attributes.IV&&("0x"===r.attributes.IV.substring(0,2).toLowerCase()&&(r.attributes.IV=r.attributes.IV.substring(2)),r.attributes.IV=r.attributes.IV.match(/.{8}/g),r.attributes.IV[0]=parseInt(r.attributes.IV[0],16),r.attributes.IV[1]=parseInt(r.attributes.IV[1],16),r.attributes.IV[2]=parseInt(r.attributes.IV[2],16),r.attributes.IV[3]=parseInt(r.attributes.IV[3],16),r.attributes.IV=new Uint32Array(r.attributes.IV))),this.trigger("data",r);return}if(t=/^#EXT-X-START:(.*)$/.exec(e)){r={type:"tag",tagType:"start"},t[1]&&(r.attributes=D(t[1]),r.attributes["TIME-OFFSET"]=parseFloat(r.attributes["TIME-OFFSET"]),r.attributes.PRECISE=/YES/.test(r.attributes.PRECISE)),this.trigger("data",r);return}if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-out-cont"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-out"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if(t=/^#EXT-X-CUE-IN:(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-in"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"skip"}).attributes=D(t[1]),r.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(r.attributes["SKIPPED-SEGMENTS"]=parseInt(r.attributes["SKIPPED-SEGMENTS"],10)),r.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(r.attributes["RECENTLY-REMOVED-DATERANGES"]=r.attributes["RECENTLY-REMOVED-DATERANGES"].split(I)),this.trigger("data",r);return}if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"part"}).attributes=D(t[1]),["DURATION"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/.test(r.attributes[e]))}),r.attributes.hasOwnProperty("BYTERANGE")&&(r.attributes.byterange=O(r.attributes.BYTERANGE)),this.trigger("data",r);return}if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"server-control"}).attributes=D(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/.test(r.attributes[e]))}),this.trigger("data",r);return}if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"part-inf"}).attributes=D(t[1]),["PART-TARGET"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),this.trigger("data",r);return}if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"preload-hint"}).attributes=D(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseInt(r.attributes[e],10);let t="BYTERANGE-LENGTH"===e?"length":"offset";r.attributes.byterange=r.attributes.byterange||{},r.attributes.byterange[t]=r.attributes[e],delete r.attributes[e]}}),this.trigger("data",r);return}if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"rendition-report"}).attributes=D(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseInt(r.attributes[e],10))}),this.trigger("data",r);return}if((t=/^#EXT-X-DATERANGE:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"daterange"}).attributes=D(t[1]),["ID","CLASS"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=String(r.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=new Date(r.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/i.test(r.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=r.attributes[e].toString(16))});let e=/^X-([A-Z]+-)+[A-Z]+$/;
64for(let t in r.attributes){if(!e.test(t))continue;let n=/[0-9A-Fa-f]{6}/g.test(r.attributes[t]),i=/^\d+(\.\d+)?$/.test(r.attributes[t]);r.attributes[t]=n?r.attributes[t].toString(16):i?parseFloat(r.attributes[t]):String(r.attributes[t])}this.trigger("data",r);return}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e)){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e)){(r={type:"tag",tagType:"content-steering"}).attributes=D(t[1]),this.trigger("data",r);return}this.trigger("data",{type:"tag",data:e.slice(4)})})}}addParser({expression:e,customType:t,dataParser:r,segment:n}){"function"!=typeof r&&(r=e=>e),this.customParsers.push(i=>{if(e.exec(i))return this.trigger("data",{type:"custom",data:r(i),customType:t,segment:n}),!0})}addTagMapper({expression:e,map:t}){let r=r=>e.test(r)?t(r):r;this.tagMappers.push(r)}}let L=e=>e.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),M=function(e){let t={};return Object.keys(e).forEach(function(r){t[L(r)]=e[r]}),t},j=function(e){let{serverControl:t,targetDuration:r,partTargetDuration:n}=e;if(!t)return;let i="#EXT-X-SERVER-CONTROL",o="holdBack",a="partHoldBack",s=r&&3*r,l=n&&2*n;r&&!t.hasOwnProperty(o)&&(t[o]=s,this.trigger("info",{message:`${i} defaulting HOLD-BACK to targetDuration * 3 (${s}).`})),s&&t[o]<s&&(this.trigger("warn",{message:`${i} clamping HOLD-BACK (${t[o]}) to targetDuration * 3 (${s})`}),t[o]=s),n&&!t.hasOwnProperty(a)&&(t[a]=3*n,this.trigger("info",{message:`${i} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),n&&t[a]<l&&(this.trigger("warn",{message:`${i} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${l}).`}),t[a]=l)};class B extends E{constructor(){let e,t;super(),this.lineStream=new P,this.parseStream=new R,this.lineStream.pipe(this.parseStream),this.lastProgramDateTime=null;let r=this,n=[],i={},o=!1,a=function(){},s={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},l="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};let u=0,d=0,h={};this.on("end",()=>{!i.uri&&(i.parts||i.preloadHints)&&(!i.map&&e&&(i.map=e),!i.key&&t&&(i.key=t),i.timeline||"number"!=typeof c||(i.timeline=c),this.manifest.preloadSegment=i)}),this.parseStream.on("data",function(p){let f,m;({tag(){(({version(){p.version&&(this.manifest.version=p.version)},"allow-cache"(){this.manifest.allowCache=p.allowed,"allowed"in p||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){let e={};"length"in p&&(i.byterange=e,e.length=p.length,"offset"in p||(p.offset=u)),"offset"in p&&(i.byterange=e,e.offset=p.offset),u=e.offset+e.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),p.title&&(i.title=p.title),p.duration>0&&(i.duration=p.duration),0===p.duration&&(i.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!p.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===p.attributes.METHOD){t=null;return}if(!p.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===p.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:p.attributes};return}if("com.microsoft.playready"===p.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:p.attributes.URI};return}if(p.attributes.KEYFORMAT===l){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(p.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===p.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==p.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(p.attributes.KEYID&&"0x"===p.attributes.KEYID.substring(0,2))){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:p.attributes.KEYFORMAT,keyId:p.attributes.KEYID.substring(2)},pssh:C(p.attributes.URI.split(",")[1])};return}p.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),t={method:p.attributes.METHOD||"AES-128",uri:p.attributes.URI},void 0!==p.attributes.IV&&(t.iv=p.attributes.IV)},"media-sequence"(){if(!isFinite(p.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+p.number});return}this.manifest.mediaSequence=p.number},"discontinuity-sequence"(){if(!isFinite(p.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+p.number});return}this.manifest.discontinuitySequence=p.number,c=p.number},"playlist-type"(){if(!/VOD|EVENT/.test(p.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+p.playlist});return}this.manifest.playlistType=p.playlistType},map(){e={},p.uri&&(e.uri=p.uri),p.byterange&&(e.byterange=p.byterange),t&&(e.key=t)}
64,"stream-inf"(){if(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||s,!p.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}i.attributes||(i.attributes={}),(0,_.Z)(i.attributes,p.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||s,!(p.attributes&&p.attributes.TYPE&&p.attributes["GROUP-ID"]&&p.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}let e=this.manifest.mediaGroups[p.attributes.TYPE];e[p.attributes["GROUP-ID"]]=e[p.attributes["GROUP-ID"]]||{},f=e[p.attributes["GROUP-ID"]],(m={default:/yes/i.test(p.attributes.DEFAULT)}).default?m.autoselect=!0:m.autoselect=/yes/i.test(p.attributes.AUTOSELECT),p.attributes.LANGUAGE&&(m.language=p.attributes.LANGUAGE),p.attributes.URI&&(m.uri=p.attributes.URI),p.attributes["INSTREAM-ID"]&&(m.instreamId=p.attributes["INSTREAM-ID"]),p.attributes.CHARACTERISTICS&&(m.characteristics=p.attributes.CHARACTERISTICS),p.attributes.FORCED&&(m.forced=/yes/i.test(p.attributes.FORCED)),f[p.attributes.NAME]=m},discontinuity(){c+=1,i.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=p.dateTimeString,this.manifest.dateTimeObject=p.dateTimeObject),i.dateTimeString=p.dateTimeString,i.dateTimeObject=p.dateTimeObject;let{lastProgramDateTime:e}=this;this.lastProgramDateTime=new Date(p.dateTimeString).getTime(),null===e&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(p.duration)||p.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+p.duration});return}this.manifest.targetDuration=p.duration,j.call(this,this.manifest)},start(){if(!p.attributes||isNaN(p.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:p.attributes["TIME-OFFSET"],precise:p.attributes.PRECISE}},"cue-out"(){i.cueOut=p.data},"cue-out-cont"(){i.cueOutCont=p.data},"cue-in"(){i.cueIn=p.data},skip(){this.manifest.skip=M(p.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",p.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;let e=this.manifest.segments.length,t=M(p.attributes);i.parts=i.parts||[],i.parts.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=d),d=t.byterange.offset+t.byterange.length);let r=i.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${r} for segment #${e}`,p.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){let e=this.manifest.serverControl=M(p.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),j.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){let e=this.manifest.segments.length,t=M(p.attributes),r=t.type&&"PART"===t.type;i.preloadHints=i.preloadHints||[],i.preloadHints.push(t),t.byterange&&!t.byterange.hasOwnProperty("offset")&&(t.byterange.offset=r?d:0,r&&(d=t.byterange.offset+t.byterange.length));let n=i.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${n} for segment #${e}`,p.attributes,["TYPE","URI"]),t.type)for(let r=0;r<i.preloadHints.length-1;r++){let o=i.preloadHints[r];o.type&&o.type===t.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${n} for segment #${e} has the same TYPE ${t.type} as preload hint #${r}`})}},"rendition-report"(){let e=M(p.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);let t=this.manifest.renditionReports.length-1,r=["LAST-MSN","URI"];o&&r.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${t}`,p.attributes,r)},"part-inf"(){this.manifest.partInf=M(p.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",p.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),j.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(M(p.attributes));let e=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${e}`,p.attributes,["ID","START-DATE"]);let t=this.manifest.dateRanges[e];t.endDate&&t.startDate&&new Date(t.endDate)<new Date(t.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),t.duration&&t.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),t.plannedDuration&&t.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});let r=!!t.endOnNext;if(r&&!t.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
64=YES attribute must have a CLASS attribute"}),r&&(t.duration||t.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),t.duration&&t.endDate){let r=t.startDate.getTime()+1e3*t.duration;this.manifest.dateRanges[e].endDate=new Date(r)}if(h[t.id]){for(let e in h[t.id])if(t[e]&&JSON.stringify(h[t.id][e])!==JSON.stringify(t[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}let e=this.manifest.dateRanges.findIndex(e=>e.id===t.id);this.manifest.dateRanges[e]=(0,_.Z)(this.manifest.dateRanges[e],t),h[t.id]=(0,_.Z)(h[t.id],t),this.manifest.dateRanges.pop()}else h[t.id]=t},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=M(p.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",p.attributes,["SERVER-URI"])}})[p.tagType]||a).call(r)},uri(){i.uri=p.uri,n.push(i),!this.manifest.targetDuration||"duration"in i||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),i.duration=this.manifest.targetDuration),t&&(i.key=t),i.timeline=c,e&&(i.map=e),d=0,null!==this.lastProgramDateTime&&(i.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*i.duration),i={}},comment(){},custom(){p.segment?(i.custom=i.custom||{},i.custom[p.customType]=p.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[p.customType]=p.data)}})[p.type].call(r)})}warnOnMissingAttributes_(e,t,r){let n=[];r.forEach(function(e){t.hasOwnProperty(e)||n.push(e)}),n.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${n.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var U={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},F=["video","audio","text"],H=["Video","Audio","Text"],z=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,r){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)}):e},$=function(e){void 0===e&&(e="");var t=e.split(","),r=[];return t.forEach(function(e){var t;e=e.trim(),F.forEach(function(n){var i=U[n].exec(e.toLowerCase());if(i&&!(i.length<=1)){t=n;var o=e.substring(0,i[1].length),a=e.replace(o,"");r.push({type:o,details:a,mediaType:n})}}),t||r.push({type:e,details:"",mediaType:"unknown"})}),r},q=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var r=e.mediaGroups.AUDIO[t];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return $(i.playlists[0].attributes.CODECS)}return null},W=function(e){return void 0===e&&(e=""),U.audio.test(e.trim().toLowerCase())},V=function(e){return void 0===e&&(e=""),U.text.test(e.trim().toLowerCase())},G=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return z(e.trim())}),r="video";1===t.length&&W(t[0])?r="audio":1===t.length&&V(t[0])&&(r="application");var n="mp4";return t.every(function(e){return U.mp4.test(e)})?n="mp4":t.every(function(e){return U.webm.test(e)})?n="webm":t.every(function(e){return U.ogg.test(e)})&&(n="ogg"),r+"/"+n+';codecs="'+e+'"'}},K=function(e){return void 0===e&&(e=""),d().MediaSource&&d().MediaSource.isTypeSupported&&d().MediaSource.isTypeSupported(G(e))||!1},Z=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<H.length;t++)if(U["muxer"+H[t]].test(e))return!0;return!1})},Y="mp4a.40.2",J="avc1.4d400d",X=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Q=/^application\/dash\+xml/i,ee=function(e){return X.test(e)?"hls":Q.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},et=function(e){return e.toString(2).length},er=function(e){return Math.ceil(et(e)/8)},en=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},ei=function(e){return en(e)},eo=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||ei(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},ea=d().BigInt||Number,es=[ea("0x1"),ea("0x100"),ea("0x10000"),ea("0x1000000"),ea("0x100000000"),ea("0x10000000000"),ea("0x1000000000000"),ea("0x100000000000000"),ea("0x10000000000000000")];!function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();var el=function(e,t){var r=void 0===t?{}:t,n=r.signed,i=void 0!==n&&n,o=r.le,a=void 0!==o&&o;e=eo(e);var s=a?"reduce":"reduceRight",l=(e[s]?e[s]:Array.prototype[s]).call(e,function(t,r,n){var i=a?n:Math.abs(n+1-e.length);return t+ea(r)*es[i]},ea(0));if(i){var c=es[e.length]/ea(2)-ea(1);(l=ea(l))>c&&(l-=c,l-=c,l-=ea(2))}return Number(l)},ec=function(e,t){var r=(void 0===t?{}:t).le,n=void 0!==r&&r;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var i=er(e=ea(e)),o=new Uint8Array(new ArrayBuffer(i)),a=0;a<i;a++){var s=n?a:Math.abs(a+1-o.length);o[s]=Number(e/es[a]&ea(255)),e<0&&(o[s]=Math.abs(~o[s]),o[s]-=0===a?1:2)}return o},eu=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,eo(e));try{return decodeURIComponent(escape(t))}catch(e){}return t},ed=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));
64for(var r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r},eh=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return eo(t[0]);var n=new Uint8Array(t.reduce(function(e,t,r){return e+(t.byteLength||t.length)},0)),i=0;return t.forEach(function(e){e=eo(e),n.set(e,i),i+=e.byteLength}),n},ep=function(e,t,r){var n=void 0===r?{}:r,i=n.offset,o=void 0===i?0:i,a=n.mask,s=void 0===a?[]:a;e=eo(e);var l=(t=eo(t)).every?t.every:Array.prototype.every;return t.length&&e.length-o>=t.length&&l.call(t,function(t,r){return t===(s[r]?s[r]&e[o+r]:e[o+r])})},ef=function(e,t,r){t.forEach(function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n])r(e.mediaGroups[t][n][i],t,n,i)})},em=r(48764).Buffer,eg=function(e){return d().atob?d().atob(e):em.from(e,"base64").toString("binary")};function ey(e){for(var t=eg(e),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}var ev=r(3969);let eb=e=>!!e&&"object"==typeof e,e_=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(r=>{Array.isArray(e[r])&&Array.isArray(t[r])?e[r]=e[r].concat(t[r]):eb(e[r])&&eb(t[r])?e[r]=e_(e[r],t[r]):e[r]=t[r]}),e),{}),ew=e=>Object.keys(e).map(t=>e[t]),eS=(e,t)=>{let r=[];for(let n=e;n<t;n++)r.push(n);return r},ek=e=>e.reduce((e,t)=>e.concat(t),[]),ex=e=>{if(!e.length)return[];let t=[];for(let r=0;r<e.length;r++)t.push(e[r]);return t},eE=(e,t)=>e.reduce((e,r,n)=>(r[t]&&e.push(n),e),[]),eT=(e,t)=>ew(e.reduce((e,r)=>(r.forEach(r=>{e[t(r)]=r}),e),{}));var eA={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};let eC=({baseUrl:e="",source:t="",range:r="",indexRange:n=""})=>{let i={uri:t,resolvedUri:x(e||"",t)};if(r||n){let e;let t=(r||n).split("-"),o=d().BigInt?d().BigInt(t[0]):parseInt(t[0],10),a=d().BigInt?d().BigInt(t[1]):parseInt(t[1],10);o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),"bigint"==typeof(e="bigint"==typeof a||"bigint"==typeof o?d().BigInt(a)-d().BigInt(o)+d().BigInt(1):a-o+1)&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),i.byterange={length:e,offset:o}}return i},eP=e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?d().BigInt(e.offset)+d().BigInt(e.length)-d().BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`},eI=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e))?null:e,eO={static(e){let{duration:t,timescale:r=1,sourceDuration:n,periodDuration:i}=e,o=eI(e.endNumber),a=t/r;return"number"==typeof o?{start:0,end:o}:"number"==typeof i?{start:0,end:i/a}:{start:0,end:n/a}},dynamic(e){let{NOW:t,clientOffset:r,availabilityStartTime:n,timescale:i=1,duration:o,periodStart:a=0,minimumUpdatePeriod:s=0,timeShiftBufferDepth:l=1/0}=e,c=eI(e.endNumber),u=(t+r)/1e3,d=n+a,h=Math.ceil((u+s-d)*i/o),p=Math.floor((u-d-l)*i/o),f=Math.floor((u-d)*i/o);return{start:Math.max(0,p),end:"number"==typeof c?c:Math.min(h,f)}}},eN=e=>t=>{let{duration:r,timescale:n=1,periodStart:i,startNumber:o=1}=e;return{number:o+t,duration:r/n,timeline:i,time:t*r}},eD=e=>{let{type:t,duration:r,timescale:n=1,periodDuration:i,sourceDuration:o}=e,{start:a,end:s}=eO[t](e),l=eS(a,s).map(eN(e));if("static"===t){let e=l.length-1,t="number"==typeof i?i:o;l[e].duration=t-r/n*e}return l},eR=e=>{let{baseUrl:t,initialization:r={},sourceDuration:n,indexRange:i="",periodStart:o,presentationTime:a,number:s=0,duration:l}=e;if(!t)throw Error(eA.NO_BASE_URL);let c=eC({baseUrl:t,source:r.sourceURL,range:r.range}),u=eC({baseUrl:t,source:t,indexRange:i});if(u.map=c,l){let t=eD(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else n&&(u.duration=n,u.timeline=o);return u.presentationTime=a||o,u.number=s,[u]},eL=(e,t,r)=>{let n;let i=e.sidx.map?e.sidx.map:null,o=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,l=s.offset+s.length,c=t.timescale,u=t.references.filter(e=>1!==e.referenceType),h=[],p=e.endList?"static":"dynamic",f=e.sidx.timeline,m=f,g=e.mediaSequence||0;n="bigint"==typeof t.firstOffset?d().BigInt(l)+t.firstOffset:l+t.firstOffset;for(let e=0;e<u.length;e++){let s;let l=t.references[e],u=l.referencedSize,y=l.subsegmentDuration;s="bigint"==typeof n?n+d().BigInt(u)-d().BigInt(1):n+u-1;let v=eR({baseUrl:r,timescale:c,timeline:a,periodStart:f,presentationTime:m,number:g,duration:y,sourceDuration:o,indexRange:`${n}-${s}`,type:p})[0];i&&(v.map=i),h.push(v),"bigint"==typeof n?n+=d().BigInt(u):n+=u,m+=y/c,g++}return e.segments=h,e},eM=["AUDIO","SUBTITLES"],ej=1/60,eB=e=>eT(e,({timeline:e})=>e).sort((e,t)=>
vendor: 4,189 bytes, line 64
64e.timeline>t.timeline?1:-1),eU=(e,t)=>{for(let r=0;r<e.length;r++)if(e[r].attributes.NAME===t)return e[r];return null},eF=e=>{let t=[];return ef(e,eM,(e,r,n,i)=>{t=t.concat(e.playlists||[])}),t},eH=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,r)=>{t.number=e.mediaSequence+r})},ez=({oldPlaylists:e,newPlaylists:t,timelineStarts:r})=>{t.forEach(t=>{t.discontinuitySequence=r.findIndex(function({timeline:e}){return e===t.timeline});let n=eU(e,t.attributes.NAME);if(!n||t.sidx)return;let i=t.segments[0],o=n.segments.findIndex(function(e){return Math.abs(e.presentationTime-i.presentationTime)<ej});if(-1===o){eH({playlist:t,mediaSequence:n.mediaSequence+n.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!n.segments.length&&t.timeline>n.timeline||n.segments.length&&t.timeline>n.segments[n.segments.length-1].timeline)&&t.discontinuitySequence--;return}n.segments[o].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),eH({playlist:t,mediaSequence:n.segments[o].number})})},e$=({oldManifest:e,newManifest:t})=>{let r=e.playlists.concat(eF(e)),n=t.playlists.concat(eF(t));return t.timelineStarts=eB([e.timelineStarts,t.timelineStarts]),ez({oldPlaylists:r,newPlaylists:n,timelineStarts:t.timelineStarts}),t},eq=e=>e&&e.uri+"-"+eP(e.byterange),eW=e=>{let t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),r=[];return Object.values(t).forEach(e=>{let t=ew(e.reduce((e,t)=>{let r=t.attributes.id+(t.attributes.lang||"");return e[r]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[r].segments.push(...t.segments)),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):(e[r]=t,e[r].attributes.timelineStarts=[]),e[r].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));r=r.concat(t)}),r.map(e=>(e.discontinuityStarts=eE(e.segments||[],"discontinuity"),e))},eV=(e,t)=>{let r=eq(e.sidx),n=r&&t[r]&&t[r].sidx;return n&&eL(e,n,e.sidx.resolvedUri),e},eG=(e,t={})=>{if(!Object.keys(t).length)return e;for(let r in e)e[r]=eV(e[r],t);return e},eK=({attributes:e,segments:t,sidx:r,mediaSequence:n,discontinuitySequence:i,discontinuityStarts:o},a)=>{let s={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:i,discontinuityStarts:o,timelineStarts:e.timelineStarts,mediaSequence:n,segments:t};return e.contentProtection&&(s.contentProtection=e.contentProtection),e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),r&&(s.sidx=r),a&&(s.attributes.AUDIO="audio",s.attributes.SUBTITLES="subs"),s},eZ=({attributes:e,segments:t,mediaSequence:r,discontinuityStarts:n,discontinuitySequence:i})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let o={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(o.CODECS=e.codecs);let a={attributes:o,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:n,discontinuitySequence:i,mediaSequence:r,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a},eY=(e,t={},r=!1)=>{let n;let i=e.reduce((e,i)=>{let o=i.attributes.role&&i.attributes.role.value||"",a=i.attributes.lang||"",s=i.attributes.label||"main";if(a&&!i.attributes.label){let e=o?` (${o})`:"";s=`${i.attributes.lang}${e}`}e[s]||(e[s]={language:a,autoselect:!0,default:"main"===o,playlists:[],uri:""});let l=eV(eK(i,r),t);return e[s].playlists.push(l),void 0===n&&"main"===o&&((n=i).default=!0),e},{});if(!n){let e=Object.keys(i)[0];i[e].default=!0}return i},eJ=(e,t={})=>e.reduce((e,r)=>{let n=r.attributes.label||r.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(eV(eZ(r),t)),e},{}),eX=e=>e.reduce((e,t)=>
64(t&&t.forEach(t=>{let{channel:r,language:n}=t;e[n]={autoselect:!1,default:!1,instreamId:r,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e),{}),eQ=({attributes:e,segments:t,sidx:r,discontinuityStarts:n})=>{let i={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:n,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(i.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(i.contentProtection=e.contentProtection),e.serviceLocation&&(i.attributes.serviceLocation=e.serviceLocation),r&&(i.sidx=r),i},e0=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,e1=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,e2=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,e4=(e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})},e3=e=>e?Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(n.playlists)},[]):[],e6=({dashPlaylists:e,locations:t,contentSteering:r,sidxMapping:n={},previousManifest:i,eventStream:o})=>{if(!e.length)return{};let{sourceDuration:a,type:s,suggestedPresentationDelay:l,minimumUpdatePeriod:c}=e[0].attributes,u=eW(e.filter(e0)).map(eQ),d=eW(e.filter(e1)),h=eW(e.filter(e2)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:eG(u,n)};c>=0&&(f.minimumUpdatePeriod=1e3*c),t&&(f.locations=t),r&&(f.contentSteering=r),"dynamic"===s&&(f.suggestedPresentationDelay=l),o&&o.length>0&&(f.eventStream=o);let m=0===f.playlists.length,g=d.length?eY(d,n,m):null,y=h.length?eJ(h,n):null,v=u.concat(e3(g),e3(y)),b=v.map(({timelineStarts:e})=>e);return(f.timelineStarts=eB(b),e4(v,f.timelineStarts),g&&(f.mediaGroups.AUDIO.audio=g),y&&(f.mediaGroups.SUBTITLES.subs=y),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=eX(p)),i)?e$({oldManifest:i,newManifest:f}):f},e5=(e,t,r)=>{let{NOW:n,clientOffset:i,availabilityStartTime:o,timescale:a=1,periodStart:s=0,minimumUpdatePeriod:l=0}=e;return Math.ceil((((n+i)/1e3+l-(o+s))*a-t)/r)},e8=(e,t)=>{let{type:r,minimumUpdatePeriod:n=0,media:i="",sourceDuration:o,timescale:a=1,startNumber:s=1,periodStart:l}=e,c=[],u=-1;for(let d=0;d<t.length;d++){let h;let p=t[d],f=p.d,m=p.r||0,g=p.t||0;if(u<0&&(u=g),g&&g>u&&(u=g),m<0){let s=d+1;h=s===t.length?"dynamic"===r&&n>0&&i.indexOf("$Number$")>0?e5(e,u,f):(o*a-u)/f:(t[s].t-u)/f}else h=m+1;let y=s+c.length+h,v=s+c.length;for(;v<y;)c.push({number:v,duration:f/a,time:u,timeline:l}),u+=f,v++}return c},e7=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,e9=e=>(t,r,n,i)=>{if("$$"===t)return"$";if(void 0===e[r])return t;let o=""+e[r];return"RepresentationID"===r?o:(i=n?parseInt(i,10):1,o.length>=i)?o:`${Array(i-o.length+1).join("0")}${o}`},te=(e,t)=>e.replace(e7,e9(t)),tt=(e,t)=>e.duration||t?e.duration?eD(e):e8(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}],tr=(e,t)=>{let r={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:n={sourceURL:"",range:""}}
vendor: 4,229 bytes, line 64
64=e,i=eC({baseUrl:e.baseUrl,source:te(n.sourceURL,r),range:n.range});return tt(e,t).map(t=>{r.Number=t.number,r.Time=t.time;let n=te(e.media||"",r),o=e.timescale||1,a=e.presentationTimeOffset||0,s=e.periodStart+(t.time-a)/o;return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:x(e.baseUrl||"",n),map:i,number:t.number,presentationTime:s}})},tn=(e,t)=>{let{baseUrl:r,initialization:n={}}=e,i=eC({baseUrl:r,source:n.sourceURL,range:n.range}),o=eC({baseUrl:r,source:t.media,range:t.mediaRange});return o.map=i,o},ti=(e,t)=>{let r;let{duration:n,segmentUrls:i=[],periodStart:o}=e;if(!n&&!t||n&&t)throw Error(eA.SEGMENT_TIME_UNSPECIFIED);let a=i.map(t=>tn(e,t));return n&&(r=eD(e)),t&&(r=e8(e,t)),r.map((t,r)=>{if(a[r]){let n=a[r],i=e.timescale||1,s=e.presentationTimeOffset||0;return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n.presentationTime=o+(t.time-s)/i,n}}).filter(e=>e)},to=({attributes:e,segmentInfo:t})=>{let r,n;t.template?(n=tr,r=e_(e,t.template)):t.base?(n=eR,r=e_(e,t.base)):t.list&&(n=ti,r=e_(e,t.list));let i={attributes:e};if(!n)return i;let o=n(r,t.segmentTimeline);if(r.duration){let{duration:e,timescale:t=1}=r;r.duration=e/t}else o.length?r.duration=o.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):r.duration=0;return i.attributes=r,i.segments=o,t.base&&r.indexRange&&(i.sidx=o[0],i.segments=[]),i},ta=e=>e.map(to),ts=(e,t)=>ex(e.childNodes).filter(({tagName:e})=>e===t),tl=e=>e.textContent.trim(),tc=e=>parseFloat(e.split("/").reduce((e,t)=>e/t)),tu=e=>{let t=31536e3,r=2592e3,n=86400,i=3600,o=60,a=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!a)return 0;let[s,l,c,u,d,h]=a.slice(1);return parseFloat(s||0)*t+parseFloat(l||0)*r+parseFloat(c||0)*n+parseFloat(u||0)*i+parseFloat(d||0)*o+parseFloat(h||0)},td=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),th={mediaPresentationDuration:e=>tu(e),availabilityStartTime:e=>td(e)/1e3,minimumUpdatePeriod:e=>tu(e),suggestedPresentationDelay:e=>tu(e),type:e=>e,timeShiftBufferDepth:e=>tu(e),start:e=>tu(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>tc(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){let t=parseInt(e,10);return isNaN(t)?tu(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},tp=e=>e&&e.attributes?ex(e.attributes).reduce((e,t)=>{let r=th[t.name]||th.DEFAULT;return e[t.name]=r(t.value),e},{}):{},tf={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"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:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},tm=(e,t)=>t.length?ek(e.map(function(e){return t.map(function(t){let r=tl(t),n=x(e.baseUrl,r),i=e_(tp(t),{baseUrl:n});return n!==r&&!i.serviceLocation&&e.serviceLocation&&(i.serviceLocation=e.serviceLocation),i})})):e,tg=e=>{let t=ts(e,"SegmentTemplate")[0],r=ts(e,"SegmentList")[0],n=r&&ts(r,"SegmentURL").map(e=>e_({tag:"SegmentURL"},tp(e))),i=ts(e,"SegmentBase")[0],o=r||t,a=o&&ts(o,"SegmentTimeline")[0],s=r||i||t,l=s&&ts(s,"Initialization")[0],c=t&&tp(t);c&&l?c.initialization=l&&tp(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});let u={template:c,segmentTimeline:a&&ts(a,"S").map(e=>tp(e)),list:r&&e_(tp(r),{segmentUrls:n,initialization:tp(l)}),base:i&&e_(tp(i),{initialization:tp(l)})};return Object.keys(u).forEach(e=>{u[e]||delete u[e]}),u},ty=(e,t,r)=>n=>{let i=tm(t,ts(n,"BaseURL")),o=e_(e,tp(n)),a=tg(n);return i.map(e=>({segmentInfo:e_(r,a),attributes:e_(o,e)}))},tv=e=>e.reduce((e,t)=>{let r=tp(t);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());let n=tf[r.schemeIdUri];if(n){e[n]={attributes:r};let i=ts(t,"cenc:pssh")[0];if(i){let t=tl(i);e[n].pssh=t&&ey(t)}}return e},{}),tb=e=>"urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t,r;return r=e,/^CC\d=/.test(e)?[t,r]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:r}}
64):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(e=>{let t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[r,n=""]=e.split("=");t.channel=r,t.language=e,n.split(",").forEach(e=>{let[r,n]=e.split(":");"lang"===r?t.language=n:"er"===r?t.easyReader=Number(n):"war"===r?t.aspectRatio=Number(n):"3D"===r&&(t["3D"]=Number(n))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0,t_=e=>ek(ts(e.node,"EventStream").map(t=>{let r=tp(t),n=r.schemeIdUri;return ts(t,"Event").map(t=>{let i=tp(t),o=i.presentationTime||0,a=r.timescale||1,s=i.duration||0,l=o/a+e.attributes.start;return{schemeIdUri:n,value:r.value,id:i.id,start:l,end:l+s/a,messageData:tl(t)||i.messageData,contentEncoding:r.contentEncoding,presentationTimeOffset:r.presentationTimeOffset||0}})})),tw=(e,t,r)=>n=>{let i=tp(n),o=tm(t,ts(n,"BaseURL")),a=e_(e,i,{role:tp(ts(n,"Role")[0])}),s=tb(tp(ts(n,"Accessibility")[0]));s&&(a=e_(a,{captionServices:s}));let l=ts(n,"Label")[0];l&&l.childNodes.length&&(a=e_(a,{label:l.childNodes[0].nodeValue.trim()}));let c=tv(ts(n,"ContentProtection"));Object.keys(c).length&&(a=e_(a,{contentProtection:c}));let u=tg(n),d=ts(n,"Representation"),h=e_(r,u);return ek(d.map(ty(a,o,h)))},tS=(e,t)=>(r,n)=>{let i=tm(t,ts(r.node,"BaseURL")),o=e_(e,{periodStart:r.attributes.start});"number"==typeof r.attributes.duration&&(o.periodDuration=r.attributes.duration);let a=ts(r.node,"AdaptationSet"),s=tg(r.node);return ek(a.map(tw(o,i,s)))},tk=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;let r=e_({serverURL:tl(e[0])},tp(e[0]));return r.queryBeforeStart="true"===r.queryBeforeStart,r},tx=({attributes:e,priorPeriodAttributes:t,mpdType:r})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==r?null:0,tE=(e,t={})=>{let{manifestUri:r="",NOW:n=Date.now(),clientOffset:i=0,eventHandler:o=function(){}}=t,a=ts(e,"Period");
64if(!a.length)throw Error(eA.INVALID_NUMBER_OF_PERIOD);let s=ts(e,"Location"),l=tp(e),c=tm([{baseUrl:r}],ts(e,"BaseURL")),u=ts(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=n,l.clientOffset=i,s.length&&(l.locations=s.map(tl));let d=[];return a.forEach((e,t)=>{let r=tp(e),n=d[t-1];r.start=tx({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:l.type}),d.push({node:e,attributes:r})}),{locations:l.locations,contentSteeringInfo:tk(u,o),representationInfo:ek(d.map(tS(l,c))),eventStream:ek(d.map(t_))}},tT=e=>{let t,r;if(""===e)throw Error(eA.DASH_EMPTY_MANIFEST);let n=new ev.DOMParser;try{r=(t=n.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw Error(eA.DASH_INVALID_XML);return r},tA=e=>{let t=ts(e,"UTCTiming")[0];if(!t)return null;let r=tp(t);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;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":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw Error(eA.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},tC=(e,t={})=>{let r=tE(tT(e),t);return e6({dashPlaylists:ta(r.representationInfo),locations:r.locations,contentSteering:r.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:r.eventStream})},tP=e=>tA(tT(e));var tI=r(20087),tO=r.n(tI),tN=eo([73,68,51]),tD=function(e,t){void 0===t&&(t=0);var r=(e=eo(e))[t+5],n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&r)>>4?n+20:n+10},tR=function e(t,r){return(void 0===r&&(r=0),(t=eo(t)).length-r<10||!ep(t,tN,{offset:r}))?r:(r+=tD(t,r),e(t,r))};new Uint8Array([79,112,117,115,72,101,97,100]);var tL=function(e){return"string"==typeof e?ed(e):e},tM=function(e){return Array.isArray(e)?e.map(function(e){return tL(e)}):[tL(e)]},tj=function(e){e=eo(e);for(var t=[],r=0;e.length>r;){var n=e[r],i=0,o=0,a=e[++o];for(o++;128&a;)i=(127&a)<<7,a=e[o],o++;i+=127&a;for(var s=0;s<c.length;s++){var l=c[s],u=l.id,d=l.parser;if(n===u){t.push(d(e.subarray(o,o+i)));break}}r+=i+o}return t};c=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var r=e[t.size];t.url=eu(e.subarray(t.size+1,t.size+1+r)),t.size+=r}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=tj(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:tj(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var tB=function e(t,r,n){void 0===n&&(n=!1),r=tM(r),t=eo(t);var i=[];if(!r.length)return i;for(var o=0;o<t.length;){var a=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,s=t.subarray(o+4,o+8);if(0===a)break;var l=o+a;if(l>t.length){if(n)break;l=t.length}var c=t.subarray(o+8,l);ep(s,r[0])&&(1===r.length?i.push(c):i.push.apply(i,e(c,r.slice(1),n))),o=l}return i},tU={EBML:eo([26,69,223,163]),DocType:eo([66,130]),Segment:eo([24,83,128,103]),SegmentInfo:eo([21,73,169,102]),Tracks:eo([22,84,174,107]),Track:eo([174]),TrackNumber:eo([215]),DefaultDuration:eo([35,227,131]),TrackEntry:eo([174]),TrackType:eo([131]),FlagDefault:eo([136]),CodecID:eo([134]),CodecPrivate:eo([99,162]),VideoTrack:eo([224]),AudioTrack:eo([225]),Cluster:eo([31,67,182,117]),Timestamp:eo([231]),TimestampScale:eo([42,215,177]),BlockGroup:eo([160]),BlockDuration:eo([155]),Block:eo([161]),SimpleBlock:eo([163])},tF=[128,64,32,16,8,4,2,1],tH=function(e){for(var t=1,r=0;r<tF.length&&!(e&tF[r]);r++)t++;return t},tz=function(e,t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i=tH(e[t]),o=e.subarray(t,t+i);return r&&(o=Array.prototype.slice.call(e,t,t+i),o[0]^=tF[i-1]),{length:i,value:el(o,{signed:n}),bytes:o}},t$=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?ec(t):t},tq=function(e){return Array.isArray(e)?e.map(function(e){return t$(e)}):[t$(e)]},tW=function e(t,r,n){if(n>=r.length)return r.length;var i=tz(r,n,!1);if(ep(t.bytes,i.bytes))return n;var o=tz(r,n+i.length);return e(t,r,n+o.length+o.value+i.length)},tV=function e(t,r){r=tq(r),t=eo(t);var n=[];if(!r.length)return n;for(var i=0;i<t.length;){var o=tz(t,i,!1),a=tz(t,i+o.length),s=i+o.length+a.length;
64127===a.value&&(a.value=tW(o,t,s),a.value!==t.length&&(a.value-=s));var l=s+a.value>t.length?t.length:s+a.value,c=t.subarray(s,l);ep(r[0],o.bytes)&&(1===r.length?n.push(c):n=n.concat(e(c,r.slice(1)))),i+=o.length+a.length+c.length}return n},tG=eo([0,0,0,1]),tK=eo([0,0,1]),tZ=eo([0,0,3]),tY=function(e){for(var t=[],r=1;r<e.length-2;)ep(e.subarray(r,r+3),tZ)&&(t.push(r+2),r++),r++;if(0===t.length)return e;var n=e.length-t.length,i=new Uint8Array(n),o=0;for(r=0;r<n;o++,r++)o===t[0]&&(o++,t.shift()),i[r]=e[o];return i},tJ=function(e,t,r,n){void 0===n&&(n=1/0),e=eo(e),r=[].concat(r);for(var i,o=0,a=0;o<e.length&&(a<n||i);){var s=void 0;if(ep(e.subarray(o),tG)?s=4:ep(e.subarray(o),tK)&&(s=3),!s){o++;continue}if(a++,i)return tY(e.subarray(i,o));var l=void 0;"h264"===t?l=31&e[o+s]:"h265"===t&&(l=e[o+s]>>1&63),-1!==r.indexOf(l)&&(i=o+s),o+=s+("h264"===t?1:2)}return e.subarray(0,0)},tX=function(e,t,r){return tJ(e,"h264",t,r)},tQ=function(e,t,r){return tJ(e,"h265",t,r)},t0={webm:eo([119,101,98,109]),matroska:eo([109,97,116,114,111,115,107,97]),flac:eo([102,76,97,67]),ogg:eo([79,103,103,83]),ac3:eo([11,119]),riff:eo([82,73,70,70]),avi:eo([65,86,73]),wav:eo([87,65,86,69]),"3gp":eo([102,116,121,112,51,103]),mp4:eo([102,116,121,112]),fmp4:eo([115,116,121,112]),mov:eo([102,116,121,112,113,116]),moov:eo([109,111,111,118]),moof:eo([109,111,111,102])},t1={aac:function(e){var t=tR(e);return ep(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=tR(e);return ep(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){return ep(tV(e,[tU.EBML,tU.DocType])[0],t0.webm)},mkv:function(e){return ep(tV(e,[tU.EBML,tU.DocType])[0],t0.matroska)},mp4:function(e){return!(t1["3gp"](e)||t1.mov(e))&&(!!(ep(e,t0.mp4,{offset:4})||ep(e,t0.fmp4,{offset:4})||ep(e,t0.moof,{offset:4})||ep(e,t0.moov,{offset:4}))||void 0)},mov:function(e){return ep(e,t0.mov,{offset:4})},"3gp":function(e){return ep(e,t0["3gp"],{offset:4})},ac3:function(e){var t=tR(e);return ep(e,t0.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=tR(e);return ep(e,t0.flac,{offset:t})},ogg:function(e){return ep(e,t0.ogg)},avi:function(e){return ep(e,t0.riff)&&ep(e,t0.avi,{offset:8})},wav:function(e){return ep(e,t0.riff)&&ep(e,t0.wav,{offset:8})},h264:function(e){return tX(e,7,3).length},h265:function(e){return tQ(e,[32,33],3).length}},t2=Object.keys(t1).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);t2.forEach(function(e){var t=t1[e];t1[e]=function(e){return t(eo(e))}});var t4=t1,t3=function(e){e=eo(e);for(var t=0;t<t2.length;t++){var r=t2[t];if(t4[r](e))return r}return""},t6=function(e){return tB(e,["moof"]).length>0},t5=r(3699),t8="8.16.1";let t7={},t9=function(e,t){return t7[e]=t7[e]||[],t&&(t7[e]=t7[e].concat(t)),t7[e]},re=function(e,t){t9(e,t)},rt=function(e,t){let r=t9(e).indexOf(t);return!(r<=-1)&&(t7[e]=t7[e].slice(),t7[e].splice(r,1),!0)},rr=function(e,t){t9(e,[].concat(t).map(t=>{let r=(...n)=>(rt(e,r),t(...n));return r}))},rn={prefixed:!0},ri=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],ro=ri[0];for(let e=0;e<ri.length;e++)if(ri[e][1]in p()){n=ri[e];break}if(n){for(let e=0;e<n.length;e++)rn[ro[e]]=n[e];rn.prefixed=n[0]!==ro[0]}let ra=[],rs=(e,t,r)=>(n,i,o)=>{let a=t.levels[i],s=RegExp(`^(${a})$`),l=e;if("log"!==n&&o.unshift(n.toUpperCase()+":"),r&&(l=`%c${e}`,o.unshift(r)),o.unshift(l+":"),ra){ra.push([].concat(o));let e=ra.length-1e3;ra.splice(0,e>0?e:0)}if(!d().console)return;let c=d().console[n];c||"debug"!==n||(c=d().console.info||d().console.log),c&&a&&s.test(n)&&c[Array.isArray(o)?"apply":"call"](d().console,o)};function rl(e,t=":",r=""){let n,i="info";function o(...e){n("log",i,e)}return n=rs(e,o,r),o.createLogger=(n,i,o)=>{let a=void 0!==i?i:t;return rl(`${e} ${a} ${n}`,a,void 0!==o?o:r)},o.createNewLogger=(e,t,r)=>rl(e,t,r),o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},o.level=e=>{if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw Error(`"${e}" in not a valid log level`);i=e}return i},o.history=()=>ra?[].concat(ra):[],o.history.filter=e=>(ra||[]).filter(t=>RegExp(`.*${e}.*`).test(t[0])),o.history.clear=()=>{ra&&(ra.length=0)},o.history.disable=()=>{null!==ra&&(ra.length=0,ra=null)},o.history.enable=()=>{null===ra&&(ra=[])},o.error=(...e)=>n("error",i,e),o.warn=(...e)=>n("warn",i,e),o.debug=(...e)=>n("debug",i,e),o}let rc=rl("VIDEOJS"),ru=rc.createLogger,rd=Object.prototype.toString,rh=function(e){return rm(e)?Object.keys(e):[]};function rp(e,t){rh(e).forEach(r=>t(e[r],r))}function rf(e,t,r=0){return rh(e).reduce((r,n)=>t(r,e[n],n),r)}function rm(e){return!!e&&"object"==typeof e}function rg(e){return rm(e)&&"[object Object]"===rd.call(e)&&e.constructor===Object}function ry(...e){let t={};
64return e.forEach(e=>{e&&rp(e,(e,r)=>{if(!rg(e)){t[r]=e;return}rg(t[r])||(t[r]={}),t[r]=ry(t[r],e)})}),t}function rv(e={}){let t=[];for(let r in e)if(e.hasOwnProperty(r)){let n=e[r];t.push(n)}return t}function rb(e,t,r,n=!0){let i=r=>Object.defineProperty(e,t,{value:r,enumerable:!0,writable:!0}),o={configurable:!0,enumerable:!0,get(){let e=r();return i(e),e}};return n&&(o.set=i),Object.defineProperty(e,t,o)}var r_=Object.freeze({__proto__:null,each:rp,reduce:rf,isObject:rm,isPlain:rg,merge:ry,values:rv,defineLazyProperty:rb});let rw=!1,rS=null,rk=!1,rx=!1,rE=!1,rT=!1,rA=!1,rC=null,rP=null,rI=!!(d().cast&&d().cast.framework&&d().cast.framework.CastReceiverContext),rO=null,rN=!1,rD=!1,rR=!1,rL=!1,rM=!1,rj=!1,rB=!1,rU=!!(rV()&&("ontouchstart"in d()||d().navigator.maxTouchPoints||d().DocumentTouch&&d().document instanceof d().DocumentTouch)),rF=d().navigator&&d().navigator.userAgentData;if(rF&&rF.platform&&rF.brands&&(rk="Android"===rF.platform,rE=!!rF.brands.find(e=>"Microsoft Edge"===e.brand),rT=!!rF.brands.find(e=>"Chromium"===e.brand),rA=!rE&&rT,rC=rP=(rF.brands.find(e=>"Chromium"===e.brand)||{}).version||null,rD="Windows"===rF.platform),!rT){let e=d().navigator&&d().navigator.userAgent||"";rw=/iPod/i.test(e),rS=function(){let t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),rk=/Android/i.test(e),i=function(){let t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;let r=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return r&&n?parseFloat(t[1]+"."+t[2]):r||null}(),rx=/Firefox/i.test(e),rE=/Edg/i.test(e),rT=/Chrome/i.test(e)||/CriOS/i.test(e),rA=!rE&&rT,rC=rP=function(){let t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),rO=function(){let t=/MSIE\s(\d+)\.\d/.exec(e),r=t&&parseFloat(t[1]);return!r&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(r=11),r}(),rM=/Tizen/i.test(e),rj=/Web0S/i.test(e),rB=rM||rj,rN=/Safari/i.test(e)&&!rA&&!rk&&!rE&&!rB,rD=/Windows/i.test(e),rR=/iPad/i.test(e)||rN&&rU&&!/iPhone/i.test(e),rL=/iPhone/i.test(e)&&!rR}let rH=rL||rR||rw,rz=(rN||rH)&&!rA;var r$=Object.freeze({__proto__:null,get IS_IPOD(){return rw},get IOS_VERSION(){return rS},get IS_ANDROID(){return rk},get ANDROID_VERSION(){return i},get IS_FIREFOX(){return rx},get IS_EDGE(){return rE},get IS_CHROMIUM(){return rT},get IS_CHROME(){return rA},get CHROMIUM_VERSION(){return rC},get CHROME_VERSION(){return rP},IS_CHROMECAST_RECEIVER:rI,get IE_VERSION(){return rO},get IS_SAFARI(){return rN},get IS_WINDOWS(){return rD},get IS_IPAD(){return rR},get IS_IPHONE(){return rL},get IS_TIZEN(){return rM},get IS_WEBOS(){return rj},get IS_SMART_TV(){return rB},TOUCH_ENABLED:rU,IS_IOS:rH,IS_ANY_SAFARI:rz});function rq(e){return"string"==typeof e&&!!e.trim()}function rW(e){if(e.indexOf(" ")>=0)throw Error("class has illegal whitespace characters")}function rV(){return p()===d().document}function rG(e){return rm(e)&&1===e.nodeType}function rK(){try{return d().parent!==d().self}catch(e){return!0}}function rZ(e){return function(t,r){if(!rq(t))return p()[e](null);rq(r)&&(r=p().querySelector(r));let n=rG(r)?r:p();return n[e]&&n[e](t)}}function rY(e="div",t={},r={},n){let i=p().createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){let r=t[e];"textContent"===e?rJ(i,r):(i[e]!==r||"tabIndex"===e)&&(i[e]=r)}),Object.getOwnPropertyNames(r).forEach(function(e){i.setAttribute(e,r[e])}),n&&na(i,n),i}function rJ(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function rX(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function rQ(e,t){return rW(t),e.classList.contains(t)}function r0(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function r1(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(rc.warn("removeClass was called with an element that doesn't exist"),null)}function r2(e,t,r){return"function"==typeof r&&(r=r(e,t)),"boolean"!=typeof r&&(r=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,r)),e}function r4(e,t){Object.getOwnPropertyNames(t).forEach(function(r){let n=t[r];null==n||!1===n?e.removeAttribute(r):e.setAttribute(r,!0===n?"":n)})}function r3(e){let t={},r=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){let n=e.attributes;for(let e=n.length-1;e>=0;e--){let i=n[e].name,o=n[e].value;r.includes(i)&&(o=null!==o),t[i]=o}}return t}function r6(e,t){return e.getAttribute(t)}function r5(e,t,r){e.setAttribute(t,r)}function r8(e,t){e.removeAttribute(t)}function r7(){p().body.focus(),p().onselectstart=function(){return!1}}function r9(){p().onselectstart=function(){return!0}}function ne(e){if(e&&e.getBoundingClientRect&&e.parentNode){let t=e.getBoundingClientRect(),r={};return["bottom","height","left","right","top","width"].forEach(e
64=>{void 0!==t[e]&&(r[e]=t[e])}),r.height||(r.height=parseFloat(nd(e,"height"))),r.width||(r.width=parseFloat(nd(e,"width"))),r}}function nt(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};let t=e.offsetWidth,r=e.offsetHeight,n=0,i=0;for(;e.offsetParent&&e!==p()[rn.fullscreenElement];)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{left:n,top:i,width:t,height:r}}function nr(e,t){let r={x:0,y:0};if(rH){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){let e=nd(t,"transform");if(/^matrix/.test(e)){let t=e.slice(7,-1).split(/,\s/).map(Number);r.x+=t[4],r.y+=t[5]}else if(/^matrix3d/.test(e)){let t=e.slice(9,-1).split(/,\s/).map(Number);r.x+=t[12],r.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&d().WebKitCSSMatrix){let e=d().getComputedStyle(t.assignedSlot.parentElement).transform,n=new(d()).WebKitCSSMatrix(e);r.x+=n.m41,r.y+=n.m42}t=t.parentNode||t.host}}let n={},i=nt(t.target),o=nt(e),a=o.width,s=o.height,l=t.offsetY-(o.top-i.top),c=t.offsetX-(o.left-i.left);return t.changedTouches&&(c=t.changedTouches[0].pageX-o.left,l=t.changedTouches[0].pageY+o.top,rH&&(c-=r.x,l-=r.y)),n.y=1-Math.max(0,Math.min(1,l/s)),n.x=Math.max(0,Math.min(1,c/a)),n}
64function nn(e){return rm(e)&&3===e.nodeType}function ni(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function no(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"==typeof e&&(e=e()),rG(e)||nn(e))?e:"string"==typeof e&&/\S/.test(e)?p().createTextNode(e):void 0).filter(e=>e)}function na(e,t){return no(t).forEach(t=>e.appendChild(t)),e}function ns(e,t){return na(ni(e),t)}function nl(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||"mousedown"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}let nc=rZ("querySelector"),nu=rZ("querySelectorAll");function nd(e,t){if(!e||!t)return"";if("function"==typeof d().getComputedStyle){let r;try{r=d().getComputedStyle(e)}catch(e){return""}return r?r.getPropertyValue(t)||r[t]:""}return""}function nh(e){[...p().styleSheets].forEach(t=>{try{let r=[...t.cssRules].map(e=>e.cssText).join(""),n=p().createElement("style");n.textContent=r,e.document.head.appendChild(n)}catch(n){let r=p().createElement("link");r.rel="stylesheet",r.type=t.type,r.media=t.media.mediaText,r.href=t.href,e.document.head.appendChild(r)}})}var np=Object.freeze({__proto__:null,isReal:rV,isEl:rG,isInFrame:rK,createEl:rY,textContent:rJ,prependTo:rX,hasClass:rQ,addClass:r0,removeClass:r1,toggleClass:r2,setAttributes:r4,getAttributes:r3,getAttribute:r6,setAttribute:r5,removeAttribute:r8,blockTextSelection:r7,unblockTextSelection:r9,getBoundingClientRect:ne,findPosition:nt,getPointerPosition:nr,isTextNode:nn,emptyEl:ni,normalizeContent:no,appendContent:na,insertContent:ns,isSingleLeftClick:nl,$:nc,$$:nu,computedStyle:nd,copyStyleSheetsToWindow:nh});let nf=!1,nm=function(){if(!1===o.options.autoSetup)return;let e=Array.prototype.slice.call(p().getElementsByTagName("video")),t=Array.prototype.slice.call(p().getElementsByTagName("audio")),r=Array.prototype.slice.call(p().getElementsByTagName("video-js")),n=e.concat(t,r);if(n&&n.length>0)for(let e=0,t=n.length;e<t;e++){let t=n[e];if(t&&t.getAttribute)void 0===t.player&&null!==t.getAttribute("data-setup")&&o(t);else{ng(1);break}}else nf||ng(1)};function ng(e,t){rV()&&(t&&(o=t),d().setTimeout(nm,e))}function ny(){nf=!0,d().removeEventListener("load",ny)}rV()&&("complete"===p().readyState?ny():d().addEventListener("load",ny));let nv=function(e){let t=p().createElement("style");return t.className=e,t},nb=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var n_=new WeakMap;let nw=3;function nS(){return nw++}function nk(e,t){if(!n_.has(e))return;let r=n_.get(e);0===r.handlers[t].length&&(delete r.handlers[t],e.removeEventListener?e.removeEventListener(t,r.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,r.dispatcher)),Object.getOwnPropertyNames(r.handlers).length<=0&&(delete r.handlers,delete r.dispatcher,delete r.disabled),0===Object.getOwnPropertyNames(r).length&&n_.delete(e)}function nx(e,t,r,n){r.forEach(function(r){e(t,r,n)})}function nE(e){if(e.fixed_)return e;function t(){return!0}function r(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){let n=e||d().event;e={};let i=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(let t in n)i.includes(t)||"returnValue"===t&&n.preventDefault||(e[t]=n[t]);if(e.target||(e.target=e.srcElement||p()),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=r,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=r,null!==e.clientX&&void 0!==e.clientX){let t=p().documentElement,r=p().body;e.pageX=e.clientX+(t&&t.scrollLeft||r&&r.scrollLeft||0)-(t&&t.clientLeft||r&&r.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||r&&r.scrollTop||0)-(t&&t.clientTop||r&&r.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}let nT=function(){if("boolean"!=typeof a){a=!1;try{let e=Object.defineProperty({},"passive",{get(){a=!0}});d().addEventListener("test",null,e),d().removeEventListener("test",null,e)}catch(e){}}return a},nA=["touchstart","touchmove"];function nC(e,t,r){if(Array.isArray(t))return nx(nC,e,t,r);n_.has(e)||n_.set(e,{});let n=n_.get(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),r.guid||(r.guid=nS()),n.handlers[t].push(r),n.dispatcher||(n.disabled=!1,n.dispatcher=function(t,r){if(n.disabled)return;t=nE(t);let i=n.handlers[t.type];if(i){let n=i.slice(0);for(let i=0,o=n.length;i<o&&!t.isImmediatePropagationStopped();i++)try{n[i].call(e,t,r)}catch(e){rc.error(e)}}}),1===n.handlers[t].length){if(e.addEventListener){let r=!1;nT()&&nA.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}}function nP(e,t,r){if(!n_.has(e))return;let n=n_.get(e);if(!n.handlers)return;if(Array.isArray(t))return nx(nP,e,t,r);let i=function(e,t){n.handlers[t]=[],nk(e,t)};if(void 0===t){for(let t in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},t)&&i(e,t);return}let o=n.handlers[t];if(o){if(!r){i(e,t);return}if(r.guid)for(let e=0;e<o.length;e++)o[e].guid===r.guid&&o.splice(e--,1);nk(e,t)}}function nI(e,t,r){let n=n_.has(e)?n_.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=nE(t),n.dispatcher&&n.dispatcher.call(e,t,r),i&&!t.isPropagationStopped()&&!0===t.bubbles)nI.call(null,i,t,r);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){n_.has(t.target)||n_.set(t.target,{});let e=n_.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function nO(e,t,r){if(Array.isArray(t))return nx(nO,e,t,r);let n=function(){nP(e,t,n),r.apply(this,arguments)};n.guid=r.guid=r.guid||nS(),nC(e,t,n)}function nN(e,t,r){let n=function(){nP(e,t,n),r.apply(this,arguments)};n.guid=r.guid=r.guid||nS(),nC(e,t,n)}var nD=Object.freeze({__proto__:null,fixEvent:nE,on:nC,off:nP,trigger:nI,one:nO,any:nN}
64);let nR=30,nL=function(e,t,r){t.guid||(t.guid=nS());let n=t.bind(e);return n.guid=r?r+"_"+t.guid:t.guid,n},nM=function(e,t){let r=d().performance.now();return function(...n){let i=d().performance.now();i-r>=t&&(e(...n),r=i)}},nj=function(e,t,r,n=d()){let i;let o=()=>{n.clearTimeout(i),i=null},a=function(){let o=this,a=arguments,s=function(){i=null,s=null,r||e.apply(o,a)};!i&&r&&e.apply(o,a),n.clearTimeout(i),i=n.setTimeout(s,t)};return a.cancel=o,a};var nB=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:30,bind_:nL,throttle:nM,debounce:nj});class nU{on(e,t){let r=this.addEventListener;this.addEventListener=()=>{},nC(this,e,t),this.addEventListener=r}off(e,t){nP(this,e,t)}one(e,t){let r=this.addEventListener;this.addEventListener=()=>{},nO(this,e,t),this.addEventListener=r}any(e,t){let r=this.addEventListener;this.addEventListener=()=>{},nN(this,e,t),this.addEventListener=r}trigger(e){let t=e.type||e;"string"==typeof e&&(e={type:t}),e=nE(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),nI(this,e)}queueTrigger(e){s||(s=new Map);let t=e.type||e,r=s.get(this);r||(r=new Map,s.set(this,r));let n=r.get(t);r.delete(t),d().clearTimeout(n);let i=d().setTimeout(()=>{r.delete(t),0===r.size&&(r=null,s.delete(this)),this.trigger(e)},0);r.set(t,i)}}nU.prototype.allowedEvents_={},nU.prototype.addEventListener=nU.prototype.on,nU.prototype.removeEventListener=nU.prototype.off,nU.prototype.dispatchEvent=nU.prototype.trigger;let nF=e=>"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,nH=e=>e instanceof nU||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"==typeof e[t]),nz=(e,t)=>{nH(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},n$=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,nq=(e,t,r)=>{if(!e||!e.nodeName&&!nH(e))throw Error(`Invalid target for ${nF(t)}#${r}; must be a DOM node or evented object.`)},nW=(e,t,r)=>{if(!n$(e))throw Error(`Invalid event type for ${nF(t)}#${r}; must be a non-empty string or array.`)},nV=(e,t,r)=>{if("function"!=typeof e)throw Error(`Invalid listener for ${nF(t)}#${r}; must be a function.`)},nG=(e,t,r)=>{let n,i,o;let a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return a?(n=e.eventBusEl_,t.length>=3&&t.shift(),[i,o]=t):[n,i,o]=t,nq(n,e,r),nW(i,e,r),nV(o,e,r),{isTargetingSelf:a,target:n,type:i,listener:o=nL(e,o)}},nK=(e,t,r,n)=>{nq(e,e,t),e.nodeName?nD[t](e,r,n):e[t](r,n)},nZ={on(...e){let{isTargetingSelf:t,target:r,type:n,listener:i}=nG(this,e,"on");if(nK(r,"on",n,i),!t){let e=()=>this.off(r,n,i);e.guid=i.guid;let t=()=>this.off("dispose",e);t.guid=i.guid,nK(this,"on","dispose",e),nK(r,"on","dispose",t)}},one(...e){let{isTargetingSelf:t,target:r,type:n,listener:i}=nG(this,e,"one");if(t)nK(r,"one",n,i);else{let e=(...t)=>{this.off(r,n,e),i.apply(null,t)};e.guid=i.guid,nK(r,"one",n,e)}},any(...e){let{isTargetingSelf:t,target:r,type:n,listener:i}=nG(this,e,"any");if(t)nK(r,"any",n,i);else{let e=(...t)=>{this.off(r,n,e),i.apply(null,t)};e.guid=i.guid,nK(r,"any",n,e)}},off(e,t,r){if(!e||n$(e))nP(this.eventBusEl_,e,t);else{let n=e,i=t;nq(n,this,"off"),nW(i,this,"off"),nV(r,this,"off"),r=nL(this,r),this.off("dispose",r),n.nodeName?(nP(n,i,r),nP(n,"dispose",r)):nH(n)&&(n.off(i,r),n.off("dispose",r))}},trigger(e,t){if(nq(this.eventBusEl_,this,"trigger"),!n$(e&&"string"!=typeof e?e.type:e))throw Error(`Invalid event type for ${nF(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return nI(this.eventBusEl_,e,t)}};function nY(e,t={}){let{eventBusKey:r}=t;if(r){if(!e[r].nodeName)throw Error(`The eventBusKey "${r}" does not refer to an element.`);e.eventBusEl_=e[r]}else e.eventBusEl_=rY("span",{className:"vjs-event-bus"});return Object.assign(e,nZ),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&n_.has(e)&&n_.delete(e)}),d().setTimeout(()=>{e.eventBusEl_=null},0)}),e}let nJ={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),rp(e,(e,r)=>{this.state[r]!==e&&((t=t||{})[r]={from:this.state[r],to:e}),this.state[r]=e}),t&&nH(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function nX(e,t){return Object.assign(e,nJ),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&nH(e)&&e.on("statechanged",e.handleStateChanged),e}let nQ=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toLowerCase())},n0=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},n1=function(e,t){return n0(e)===n0(t)};var n2=Object.freeze({__proto__:null,toLowerCase:nQ,toTitleCase:n0,titleCaseEquals:n1});
64class n4{constructor(e,t,r){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=ry({},this.options_),t=this.options_=ry(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){let t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${nS()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(e=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(nY(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),nX(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(r),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e&&(this.options_=ry(this.options_,e)),this.options_}el(){return this.el_}createEl(e,t,r){return rY(e,t,r)}localize(e,t,r=e){let n=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[n],a=n&&n.split("-")[0],s=i&&i[a],l=r;return o&&o[e]?l=o[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,r){let n=t[r-1],i=n;return void 0===n&&(i=e),i})),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let r=0;r<e.length;r++)if(!(t=t.getChild(e[r]))||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;let r="http://www.w3.org/2000/svg",n=rY("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),i=p().createElementNS(r,"svg");i.setAttributeNS(null,"viewBox","0 0 512 512");let o=p().createElementNS(r,"use");return i.appendChild(o),o.setAttributeNS(null,"href",`#vjs-icon-${e}`),n.appendChild(i),this.iconIsSet_?t.replaceChild(n,t.querySelector(".vjs-icon-placeholder")):t.appendChild(n),this.iconIsSet_=!0,n}addChild(e,t={},r=this.children_.length){let n,i;if("string"==typeof e){i=n0(e);let r=t.componentClass||i;t.name=i;let o=n4.getComponent(r);if(!o)throw Error(`Component ${r} does not exist`);if("function"!=typeof o)return null;n=new o(this.player_||this,t)}else n=e;if(n.parentComponent_&&n.parentComponent_.removeChild(n),this.children_.splice(r,0,n),n.parentComponent_=this,"function"==typeof n.id&&(this.childIndex_[n.id()]=n),(i=i||n.name&&n0(n.name()))&&(this.childNameIndex_[i]=n,this.childNameIndex_[nQ(i)]=n),"function"==typeof n.el&&n.el()){let e=null;this.children_[r+1]&&(this.children_[r+1].el_?e=this.children_[r+1].el_:rG(this.children_[r+1])&&(e=this.children_[r+1])),this.contentEl().insertBefore(n.el(),e)}return n}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){t=!0,this.children_.splice(r,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[n0(e.name())]=null,this.childNameIndex_[nQ(e.name())]=null;let r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){let e=this.options_.children;if(e){let t;let r=this.options_,n=e=>{let t=e.name,n=e.opts;if(void 0!==r[t]&&(n=r[t]),!1===n)return;!0===n&&(n={}),n.playerOptions=this.options_.playerOptions;let i=this.addChild(t,n);i&&(this[t]=i)},i=n4.getComponent("Tech");(t=Array.isArray(e)?e:Object.keys(e)).concat(Object.keys(this.options_).filter(function(e){return!t.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(t=>{let r,n;return"string"==typeof t?n=e[r=t]||this.options_[r]||{}:(r=t.name,n=t),{name:r,opts:n}}).filter(e=>
64{let t=n4.getComponent(e.opts.componentClass||n0(e.name));return t&&!i.isTech(t)}).forEach(n)}}buildCSSClass(){return""}ready(e,t=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){let e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}$(e,t){return nc(e,t||this.contentEl())}$$(e,t){return nu(e,t||this.contentEl())}hasClass(e){return rQ(this.el_,e)}addClass(...e){r0(this.el_,...e)}removeClass(...e){r1(this.el_,...e)}toggleClass(e,t){r2(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return r6(this.el_,e)}setAttribute(e,t){r5(this.el_,e,t)}removeAttribute(e){r8(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,r){if(void 0!==t){(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",r||this.trigger("componentresize");return}if(!this.el_)return 0;let n=this.el_.style[e],i=n.indexOf("px");return -1!==i?parseInt(n.slice(0,i),10):parseInt(this.el_["offset"+n0(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw Error("currentDimension only accepts width or height value");if(0===(t=parseFloat(t=nd(this.el_,e)))||isNaN(t)){let r=`offset${n0(e)}`;t=this.el_[r]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){let e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&("Tab"===e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e,t=0,r=null,n=10,i=200;this.on("touchstart",function(n){1===n.touches.length&&(r={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=d().performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(r){let i=t.touches[0].pageX-r.pageX,o=t.touches[0].pageY-r.pageY;Math.sqrt(i*i+o*o)>n&&(e=!1)}});let o=function(){e=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(n){r=null,!0===e&&d().performance.now()-t<i&&(n.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){let e;if(!this.player()||!this.player().reportUserActivity)return;let t=nL(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});let r=function(r){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",r),this.on("touchcancel",r)}setTimeout(e,t){var r;return e=nL(this,e),this.clearTimersOnDispose_(),r=d().setTimeout(()=>{this.setTimeoutIds_.has(r)&&this.setTimeoutIds_.delete(r),e()},t),this.setTimeoutIds_.add(r),r}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),d().clearTimeout(e)),e}setInterval(e,t){e=nL(this,e),this.clearTimersOnDispose_();let r=d().setInterval(e,t);return this.setIntervalIds_.add(r),r}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),d().clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=nL(this,e),t=d().requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=nL(this,t);let r=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,r),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),d().cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
64h(([e,t])=>{this[e].forEach((e,r)=>this[t](r))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(e){let t=d().getComputedStyle(e,null),r=t.getPropertyValue("visibility"),n=t.getPropertyValue("display"),i=["hidden","collapse"];return"none"!==n&&!i.includes(r)}function r(e){return!!(t(e.parentElement)&&t(e)&&"0"!==e.style.opacity&&"0px"!==d().getComputedStyle(e).height&&"0px"!==d().getComputedStyle(e).width)}function n(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;let t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0||t.x>(p().documentElement.clientWidth||d().innerWidth)||t.y<0||t.y>(p().documentElement.clientHeight||d().innerHeight))return!1;let r=p().elementFromPoint(t.x,t.y);for(;r;){if(r===e)return!0;if(!r.parentNode)return!1;r=r.parentNode}}return e||(e=this.el()),!!(n(e)&&r(e))&&(!e.parentElement||e.tabIndex>=0)}static registerComponent(e,t){if("string"!=typeof e||!e)throw Error(`Illegal component name, "${e}"; must be a non-empty string.`);let r=n4.getComponent("Tech"),n=r&&r.isTech(t),i=n4===t||n4.prototype.isPrototypeOf(t.prototype);if(n||!i){let t;throw t=n?"techs must be registered using Tech.registerTech()":"must be a Component subclass",Error(`Illegal component, "${e}"; ${t}.`)}e=n0(e),n4.components_||(n4.components_={});let o=n4.getComponent("Player");if("Player"===e&&o&&o.players){let e=o.players,t=Object.keys(e);if(e&&t.length>0&&t.map(t=>e[t]).every(Boolean))throw Error("Can not register Player component after player has been created.")}return n4.components_[e]=t,n4.components_[nQ(e)]=t,t}static getComponent(e){if(e&&n4.components_)return n4.components_[e]}}function n3(e,t,r){if("number"!=typeof t||t<0||t>r)throw Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${r}).`)}function n6(e,t,r,n){return n3(e,n,r.length-1),r[n][t]}function n5(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw Error("This TimeRanges object is empty")},end(){throw Error("This TimeRanges object is empty")}}:{length:e.length,start:n6.bind(null,"start",0,e),end:n6.bind(null,"end",1,e)},d().Symbol&&d().Symbol.iterator&&(t[d().Symbol.iterator]=()=>(e||[]).values()),t}function n8(e,t){return Array.isArray(e)?n5(e):void 0===e||void 0===t?n5():n5([[e,t]])}n4.registerComponent("Component",n4);let n7=function(e,t){let r=Math.floor((e=e<0?0:e)%60),n=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=n=r="-"),n=(((i=i>0||a>0?i+":":"")||o>=10)&&n<10?"0"+n:n)+":",i+n+(r=r<10?"0"+r:r)},n9=n7;function ie(e){n9=e}function it(){n9=n7}function ir(e,t=e){return n9(e,t)}var ii=Object.freeze({__proto__:null,createTimeRanges:n8,createTimeRange:n8,setFormatTime:ie,resetFormatTime:it,formatTime:ir});function io(e,t){let r,n,i=0;if(!t)return 0;e&&e.length||(e=n8(0,0));for(let o=0;o<e.length;o++)r=e.start(o),(n=e.end(o))>t&&(n=t),i+=n-r;return i/t}function ia(e){if(e instanceof ia)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:rm(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=ia.defaultMessages[this.code]||"")}function is(e){return null!=e&&"function"==typeof e.then}function il(e){is(e)&&e.then(null,e=>{})}ia.prototype.code=0,ia.prototype.message="",ia.prototype.status=null,ia.prototype.metadata=null,ia.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ia.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},ia.MEDIA_ERR_CUSTOM=0,ia.prototype.MEDIA_ERR_CUSTOM=0,ia.MEDIA_ERR_ABORTED=1,ia.prototype.MEDIA_ERR_ABORTED=1,ia.MEDIA_ERR_NETWORK=2,ia.prototype.MEDIA_ERR_NETWORK=2,ia.MEDIA_ERR_DECODE=3,ia.prototype.MEDIA_ERR_DECODE=3,ia.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ia.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ia.MEDIA_ERR_ENCRYPTED=5,ia.prototype.MEDIA_ERR_ENCRYPTED=5;let ic=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,r,n)=>(e[r]&&(t[r]=e[r]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};var iu=function(e){let t=e.$$("track"),r=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){let t=ic(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return -1===r.indexOf(e)}).map(ic))},id=function(e,t){return e.forEach(function(e){let r=t.addRemoteTextTrack(e).track;
64!e.src&&e.cues&&e.cues.forEach(e=>r.addCue(e))}),t.textTracks()};let ih="vjs-modal-dialog";class ip extends n4{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=rY("div",{className:`${ih}-content`},{role:"document"}),this.descEl_=rY("p",{className:`${ih}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),rJ(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ih} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}let e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;let e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){let t=this.closeable_=!!e,r=this.getChild("closeButton");if(t&&!r){let e=this.contentEl_;this.contentEl_=this.el_,r=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(r,"close",this.close_)}!t&&r&&(this.off(r,"close",this.close_),this.removeChild(r),r.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}
vendor: 5,239 bytes, line 64
64fillWith(e){let t=this.contentEl(),r=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,r.removeChild(t),this.empty(),ns(t,e),this.trigger("modalfill"),n?r.insertBefore(t,n):r.appendChild(t);let i=this.getChild("closeButton");i&&r.appendChild(i.el_)}empty(){this.trigger("beforemodalempty"),ni(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){let e=p().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){let t;if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable()){e.preventDefault(),this.close();return}if("Tab"!==e.key)return;let r=this.focusableEls_(),n=this.el_.querySelector(":focus");for(let e=0;e<r.length;e++)if(n===r[e]){t=e;break}p().activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(r[r.length-1].focus(),e.preventDefault()):e.shiftKey||t!==r.length-1||(r[0].focus(),e.preventDefault())}focusableEls_(){let e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(e instanceof d().HTMLAnchorElement||e instanceof d().HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof d().HTMLInputElement||e instanceof d().HTMLSelectElement||e instanceof d().HTMLTextAreaElement||e instanceof d().HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof d().HTMLIFrameElement||e instanceof d().HTMLObjectElement||e instanceof d().HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable"))}}ip.prototype.options_={pauseOnOpen:!0,temporary:!0},n4.registerComponent("ModalDialog",ip);class im extends nU{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){let t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},nH(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let r=0,n=this.length;r<n;r++)if(this[r]===e){(t=this[r]).off&&t.off(),this.tracks_.splice(r,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let r=0,n=this.length;r<n;r++){let n=this[r];if(n.id===e){t=n;break}}return t}}for(let e in im.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},im.prototype.allowedEvents_)im.prototype["on"+e]=null;let ig=function(e,t){for(let r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].enabled=!1)};class iy extends im{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){ig(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&ig(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,ig(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}let iv=function(e,t){for(let r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].selected=!1)};class ib extends im{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){iv(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return -1},set(){}})}addTrack(e){e.selected&&iv(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,iv(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class i_ extends im{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class iw{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,r=e.length;t<r;t++)this.addTrackElement_(e[t])}addTrackElement_(e){let t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}
64),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let r=0,n=this.trackElements_.length;r<n;r++)if(e===this.trackElements_[r].track){t=this.trackElements_[r];break}return t}removeTrackElement_(e){for(let t=0,r=this.trackElements_.length;t<r;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}}class iS{constructor(e){iS.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){let t=this.length||0,r=0,n=e.length;this.cues_=e,this.length_=e.length;let i=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<n)for(r=t;r<n;r++)i.call(this,r)}getCueById(e){let t=null;for(let r=0,n=this.length;r<n;r++){let n=this[r];if(n.id===e){t=n;break}}return t}}let ik={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},ix={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},iE={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},iT={disabled:"disabled",hidden:"hidden",showing:"showing"};class iA extends nU{constructor(e={}){super();let t={id:e.id||"vjs_track_"+nS(),kind:e.kind||"",language:e.language||""},r=e.label||"";for(let e in t)Object.defineProperty(this,e,{get:()=>t[e],set(){}});Object.defineProperty(this,"label",{get:()=>r,set(e){e!==r&&(r=e,this.trigger("labelchange"))}})}}let iC=function(e){return new URL(e,p().baseURI)},iP=function(e){return new URL(e,p().baseURI).href},iI=function(e){if("string"==typeof e){let t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},iO=function(e,t=d().location){return iC(e).origin!==t.origin};var iN=Object.freeze({__proto__:null,parseUrl:iC,getAbsoluteURL:iP,getFileExtension:iI,isCrossOrigin:iO});let iD=function(e,t){let r=new(d()).WebVTT.Parser(d(),d().vttjs,d().WebVTT.StringDecoder()),n=[];r.oncue=function(e){t.addCue(e)},r.onparsingerror=function(e){n.push(e)},r.onflush=function(){t.trigger({type:"loadeddata",target:t})},r.parse(e),n.length>0&&(d().console&&d().console.groupCollapsed&&d().console.groupCollapsed(`Text Track parsing errors for ${t.src}`),n.forEach(e=>rc.error(e)),d().console&&d().console.groupEnd&&d().console.groupEnd()),r.flush()},iR=function(e,t){let r={uri:e},n=iO(e);n&&(r.cors=n);let i="use-credentials"===t.tech_.crossOrigin();i&&(r.withCredentials=i),y()(r,nL(this,function(e,r,n){if(e)return rc.error(e,r);t.loaded_=!0,"function"!=typeof d().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],e=>{if("vttjserror"===e.type){rc.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return iD(n,t)}):iD(n,t)}))};class iL extends iA{constructor(e={}){if(!e.tech)throw Error("A tech was not provided.");let t=ry(e,{kind:iE[e.kind]||"subtitles",language:e.language||e.srclang||""}),r=iT[t.mode]||"disabled",n=t.default;("metadata"===t.kind||"chapters"===t.kind)&&(r="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;let i=new iS(this.cues_),o=new iS(this.activeCues_),a=!1;this.timeupdateHandler=nL(this,function(e={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,a&&(this.trigger("cuechange"),a=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});let s=()=>{this.stopTracking()};this.tech_.one("dispose",s),"disabled"!==r&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>n,set(){}},mode:{get:()=>r,set(e){iT[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||iR(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?i:null},set(){}}
vendor: 6,066 bytes, line 64
64,activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return o;let e=this.tech_.currentTime(),t=[];for(let r=0,n=this.cues.length;r<n;r++){let n=this.cues[r];n.startTime<=e&&n.endTime>=e&&t.push(n)}if(a=!1,t.length!==this.activeCues_.length)a=!0;else for(let e=0;e<t.length;e++)-1===this.activeCues_.indexOf(t[e])&&(a=!0);return this.activeCues_=t,o.setCues_(this.activeCues_),o},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&iR(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){for(let r in t=new(d()).vttjs.VTTCue(e.startTime,e.endTime,e.text),e)r in t||(t[r]=e[r]);t.id=e.id,t.originalCue_=e}let r=this.tech_.textTracks();for(let e=0;e<r.length;e++)r[e]!==this&&r[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){let r=this.cues_[t];if(r===e||r.originalCue_&&r.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}iL.prototype.allowedEvents_={cuechange:"cuechange"};class iM extends iA{constructor(e={}){let t=ry(e,{kind:ix[e.kind]||""});super(t);let r=!1;Object.defineProperty(this,"enabled",{get:()=>r,set(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class ij extends iA{constructor(e={}){let t=ry(e,{kind:ik[e.kind]||""});super(t);let r=!1;Object.defineProperty(this,"selected",{get:()=>r,set(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class iB extends nU{constructor(e={}){let t;super();let r=new iL(e);this.kind=r.kind,this.src=r.src,this.srclang=r.language,this.label=r.label,this.default=r.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>r}}),t=iB.NONE,r.addEventListener("loadeddata",()=>{t=iB.LOADED,this.trigger({type:"load",target:this})})}}iB.prototype.allowedEvents_={load:"load"},iB.NONE=0,iB.LOADING=1,iB.LOADED=2,iB.ERROR=3;let iU={audio:{ListClass:iy,TrackClass:iM,capitalName:"Audio"},video:{ListClass:ib,TrackClass:ij,capitalName:"Video"},text:{ListClass:i_,TrackClass:iL,capitalName:"Text"}};Object.keys(iU).forEach(function(e){iU[e].getterName=`${e}Tracks`,iU[e].privateName=`${e}Tracks_`});let iF={remoteText:{ListClass:i_,TrackClass:iL,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:iw,TrackClass:iB,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},iH=Object.assign({},iU,iF);function iz(e,t,r,n,i={}){let o=e.textTracks();i.kind=t,r&&(i.label=r),n&&(i.language=n),i.tech=e;let a=new iH.text.TrackClass(i);return o.addTrack(a),a}iF.names=Object.keys(iF),iU.names=Object.keys(iU),iH.names=[].concat(iF.names).concat(iU.names);class i$ extends n4{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),iH.names.forEach(t=>{let r=iH[t];e&&e[r.getterName]&&(this[r.privateName]=e[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:(!0===e.nativeCaptions||!0===e.nativeTextTracks)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new iH.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(nL(this,function(){let e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return n8(0,0)}bufferedPercent(){return io(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(iU.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}
64clearTracks(e){(e=[].concat(e)).forEach(e=>{let t=this[`${e}Tracks`]()||[],r=t.length;for(;r--;){let n=t[r];"text"===e&&this.removeRemoteTextTrack(n),t.removeTrack(n)}})}cleanupAutoTextTracks(){let e=this.autoRemoteTextTracks_||[],t=e.length;for(;t--;){let r=e[t];this.removeRemoteTextTrack(r)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new ia(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?n8(0,0):n8()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){iU.names.forEach(e=>{let t=iU[e],r=()=>{this.trigger(`${e}trackchange`)},n=this[t.getterName]();n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),this.on("dispose",()=>{n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r)})})}addWebVttScript_(){if(!d().WebVTT){if(p().body.contains(this.el())){if(!this.options_["vtt.js"]&&rg(b())&&Object.keys(b()).length>0){this.trigger("vttjsloaded");return}let e=p().createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),d().WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}}emulateTextTracks(){let e=this.textTracks(),t=this.remoteTextTracks(),r=t=>e.addTrack(t.track),n=t=>e.removeTrack(t.track);t.on("addtrack",r),t.on("removetrack",n),this.addWebVttScript_();let i=()=>this.trigger("texttrackchange"),o=()=>{i();for(let t=0;t<e.length;t++){let r=e[t];r.removeEventListener("cuechange",i),"showing"===r.mode&&r.addEventListener("cuechange",i)}};o(),e.addEventListener("change",o),e.addEventListener("addtrack",o),e.addEventListener("removetrack",o),this.on("dispose",function(){t.off("addtrack",r),t.off("removetrack",n),e.removeEventListener("change",o),e.removeEventListener("addtrack",o),e.removeEventListener("removetrack",o);for(let t=0;t<e.length;t++)e[t].removeEventListener("cuechange",i)})}addTextTrack(e,t,r){if(!e)throw Error("TextTrack kind is required but was not provided");return iz(this,e,t,r)}createRemoteTextTrack(e){let t=ry(e,{tech:this});return new iF.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){let r=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(r.track)),r}removeRemoteTextTrack(e){let t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){let t=nS();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return i$.canPlayType(e.type)}static isTech(e){return e.prototype instanceof i$||e instanceof i$||e===i$}static registerTech(e,t){if(i$.techs_||(i$.techs_={}),!i$.isTech(t))throw Error(`Tech ${e} must be a Tech`);if(!i$.canPlayType)throw Error("Techs must have a static canPlayType method on them");if(!i$.canPlaySource)throw Error("Techs must have a static canPlaySource method on them");return e=n0(e),i$.techs_[e]=t,i$.techs_[nQ(e)]=t,"Tech"!==e&&i$.defaultTechOrder_.push(e),t}static getTech(e){return e?i$.techs_&&i$.techs_[e]?i$.techs_[e]:(e=n0(e),d()&&d().videojs&&d().videojs[e])?(rc.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),d().videojs[e]):void 0:void 0}}
64iH.names.forEach(function(e){let t=iH[e];i$.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),i$.prototype.featuresVolumeControl=!0,i$.prototype.featuresMuteControl=!0,i$.prototype.featuresFullscreenResize=!1,i$.prototype.featuresPlaybackRate=!1,i$.prototype.featuresProgressEvents=!1,i$.prototype.featuresSourceset=!1,i$.prototype.featuresTimeupdateEvents=!1,i$.prototype.featuresNativeTextTracks=!1,i$.prototype.featuresVideoFrameCallback=!1,i$.withSourceHandlers=function(e){e.registerSourceHandler=function(t,r){let n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),void 0===r&&(r=n.length),n.splice(r,0,t)},e.canPlayType=function(t){let r;let n=e.sourceHandlers||[];for(let e=0;e<n.length;e++)if(r=n[e].canPlayType(t))return r;return""},e.selectSourceHandler=function(t,r){let n=e.sourceHandlers||[];for(let e=0;e<n.length;e++)if(n[e].canHandleSource(t,r))return n[e];return null},e.canPlaySource=function(t,r){let n=e.selectSourceHandler(t,r);return n?n.canHandleSource(t,r):""},["seekable","seeking","duration"].forEach(function(e){let t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let r=e.selectSourceHandler(t,this.options_);r||(e.nativeSourceHandler?r=e.nativeSourceHandler:rc.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),r!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=r.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},n4.registerComponent("Tech",i$),i$.registerTech("Tech",i$),i$.defaultTechOrder_=[];let iq={},iW={},iV={};function iG(e,t){iq[e]=iq[e]||[],iq[e].push(t)}function iK(e,t,r){e.setTimeout(()=>i5(t,iq[t.type],r,e),1)}function iZ(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}function iY(e,t,r){return e.reduceRight(i2(r),t[r]())}function iJ(e,t,r,n){return t[r](e.reduce(i2(r),n))}function iX(e,t,r,n=null){let i="call"+n0(r),o=e.reduce(i2(i),n),a=o===iV,s=a?null:t[r](o);return i4(e,r,s,a),s}let iQ={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},i0={setCurrentTime:1,setMuted:1,setVolume:1},i1={play:1,pause:1};function i2(e){return(t,r)=>t===iV?iV:r[e]?r[e](t):t}function i4(e,t,r,n){for(let i=e.length-1;i>=0;i--){let o=e[i];o[t]&&o[t](n,r)}}function i3(e){iW[e.id()]=null}function i6(e,t){let r=iW[e.id()],n=null;if(null==r)return n=t(e),iW[e.id()]=[[t,n]],n;for(let e=0;e<r.length;e++){let[i,o]=r[e];i===t&&(n=o)}return null===n&&(n=t(e),r.push([t,n])),n}function i5(e={},t=[],r,n,i=[],o=!1){let[a,...s]=t;if("string"==typeof a)i5(e,iq[a],r,n,i,o);else if(a){let t=i6(n,a);if(!t.setSource)return i.push(t),i5(e,s,r,n,i,o);t.setSource(Object.assign({},e),function(a,l){if(a)return i5(e,s,r,n,i,o);i.push(t),i5(l,e.type===l.type?s:iq[l.type],r,n,i,o)})}else s.length?i5(e,s,r,n,i,o):o?r(e,i):i5(e,iq["*"],r,n,i,!0)}let i8={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},i7=function(e=""){return i8[iI(e).toLowerCase()]||""},i9=(e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;let r=e.cache_.sources.filter(e=>e.src===t);if(r.length)return r[0].type;let n=e.$$("source");for(let e=0;e<n.length;e++){let r=n[e];if(r.type&&r.src&&r.src===t)return r.type}return i7(t)},oe=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){Array.isArray(e=oe(e))?t=t.concat(e):rm(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[ot({src:e})]:rm(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[ot(e)]:[];return e};function ot(e){if(!e.type){let t=i7(e.src);t&&(e.type=t)}return e}var or=
vendor: 17,747 bytes, line 64
64'<svg xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n      <path d="M16 10v28l22-14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n    </symbol>\n    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n      <circle cx="24" cy="24" r="20"></circle>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n    </symbol>\n    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n      <path fill="none" d="M-1-3h24v24H-1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n      <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n    </symbol>\n  </defs>\n</svg>'
64;let on=rM?10009:rj?461:8,oi={codes:{play:415,pause:19,ff:417,rw:412,back:on},names:{415:"play",19:"pause",417:"ff",412:"rw",[on]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!!this.names[e.keyCode]&&this.names[e.keyCode]===t},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){let t=this.codes[e.code];return this.names[t]}return null}},oo=5;class oa extends nU{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0)}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){let t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();let e=t.key.substring(5).toLowerCase();this.move(e)}else if(oi.isEventKey(t,"play")||oi.isEventKey(t,"pause")||oi.isEventKey(t,"ff")||oi.isEventKey(t,"rw")){t.preventDefault();let e=oi.getEventName(t);this.performMediaAction_(e)}else oi.isEventKey(t,"Back")&&e.target&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+oo);break;case"rw":this.userSeek_(this.player_.currentTime()-oo)}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){let t=e.relatedTarget,r=null,n=this.getCurrentComponent(e.target);t&&(r=!!t.closest(".video-js"),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!e.currentTarget.contains(e.relatedTarget)&&!r||!t)&&("CloseButton"===n.name()?this.refocusComponent():(this.pause(),n&&n.el()&&(this.lastFocusedComponent_=n)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){let e=this.player_,t=[];function r(e){for(let n of e)n.hasOwnProperty("el_")&&n.getIsFocusable()&&n.getIsAvailableToBeFocused(n.el())&&t.pu
64sh(n),n.hasOwnProperty("children_")&&n.children_.length>0&&r(n.children_)}return e.children_.forEach(e=>{if(e.hasOwnProperty("el_")){if(e.getIsFocusable&&e.getIsAvailableToBeFocused&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())){t.push(e);return}e.hasOwnProperty("children_")&&e.children_.length>0?r(e.children_):e.hasOwnProperty("items")&&e.items.length>0?r(e.items):this.findSuitableDOMChild(e)&&t.push(e)}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){function t(r){if(e.getIsFocusable(r)&&e.getIsAvailableToBeFocused(r))return r;for(let e=0;e<r.children.length;e++){let n=t(r.children[e]);if(n)return n}return null}return t(e.el())}getCurrentComponent(e){this.updateFocusableComponents();let t=e||document.activeElement;if(this.focusableComponents.length){for(let e of this.focusableComponents)if(e.el()===t)return e}}add(e){let t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name()){this.focusableComponents.splice(t,1),this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents});return}}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){let t=this.getCurrentComponent();if(!t)return;let r=t.getPositions(),n=this.focusableComponents.filter(n=>n!==t&&this.isInDirection_(r.boundingClientRect,n.getPositions().boundingClientRect,e)),i=this.findBestCandidate_(r.center,n,e);i?this.focus(i):this.trigger({type:"endOfFocusableComponents",direction:e,focu
vendor: 4,325 bytes, line 64
64sedComponent:t})}findBestCandidate_(e,t,r){let n=1/0,i=null;for(let o of t){let t=o.getPositions().center,a=this.calculateDistance_(e,t,r);a<n&&(n=a,i=o)}return i}isInDirection_(e,t,r){switch(r){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name()){this.focus(this.focusableComponents[e]);return}}else this.focus(this.updateFocusableComponents()[0])}focus(e){e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus()}calculateDistance_(e,t,r){let n;let i=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);switch(r){case"right":case"left":n=i+100*o;break;case"up":n=2*o+.5*i;break;case"down":n=5*o+i;break;default:n=i+o}return n}searchForTrackSelect_(){let e=this;for(let t of e.updateFocusableComponents())if("TextTrackSelect"===t.constructor.name){e.focus(t);break}}}class os extends n4{constructor(e,t,r){if(super(e,ry({createEl:!1},t),r),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let r=0,n=t.playerOptions.techOrder;r<n.length;r++){let t=n0(n[r]),i=i$.getTech(t);if(t||(i=n4.getComponent(t)),i&&i.isSupported()){e.loadTech_(t);break}}}}n4.registerComponent("MediaLoader",os);class ol extends n4{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},r={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&rc.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),r=Object.assign({role:"button"},r),this.tabIndex_=t.tabIndex;let n=rY(e,t,r);return this.player_.options_.experimentalSvgIcons||n.appendChild(rY("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=rY("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";let r=this.localize(e);this.controlText_=e,rJ(this.controlTextEl_,r),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",r)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}n4.registerComponent("ClickableComponent",ol);class oc extends ol{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return rY("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;
64if(null!==e&&"anonymous"!==e&&"use-credentials"!==e){this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.$("img")&&(this.$("img").crossOrigin=e)}update(e){let t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(rY("picture",{className:"vjs-poster",tabIndex:-1},{},rY("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?il(this.player_.play()):this.player_.pause())}}oc.prototype.crossorigin=oc.prototype.crossOrigin,n4.registerComponent("PosterImage",oc);let ou="#222",od="#ccc",oh={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function op(e,t){let r;if(4===e.length)r=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(7===e.length)r=e.slice(1);else throw Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(r.slice(0,2),16)+","+parseInt(r.slice(2,4),16)+","+parseInt(r.slice(4,6),16)+","+t+")"}function of(e,t,r){try{e.style[t]=r}catch(e){return}}function om(e){return e?`${e}px`:""}class og extends n4{constructor(e,t,r){super(e,t,r);let n=e=>this.updateDisplay(e),i=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("texttrackchange",n),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(nL(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks){this.hide();return}e.on("fullscreenchange",i),e.on("playerresize",i);let t=d().screen.orientation||d(),r=d().screen.orientation?"change":"orientationchange";t.addEventListener(r,i),e.on("dispose",()=>t.removeEventListener(r,i));let n=this.options_.playerOptions.tracks||[];for(let e=0;e<n.length;e++)this.player_.addRemoteTextTrack(n[e],!0);this.preselectTrack()}))}preselectTrack(){let e,t,r;let n={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage;for(let a=0;a<i.length;a++){let s=i[a];o&&o.enabled&&o.language&&o.language===s.language&&s.kind in n?s.kind===o.kind?r=s:r||(r=s):o&&!o.enabled?(r=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in n&&!t&&(t=s):e=s)}r?r.mode="showing":t?t.mode="showing":e&&(e.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof d().WebVTT&&d().WebVTT.processCues(d(),[],this.el_)}updateDisplay(){let e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){let t=[];for(let r=0;r<e.length;++r){let n=e[r];"showing"===n.mode&&t.push(n)}this.updateForTrack(t);return}let r=null,n=null,i=e.length;for(;i--;){let t=e[i];"showing"===t.mode&&("descriptions"===t.kind?r=t:n=t)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):r&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(r))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!d().CSS.supports("inset-inline: 10px"))return;let e=this.player_.currentWidth(),t=this.player_.currentHeight(),r=e/t,n=this.player_.videoWidth()/this.player_.videoHeight(),i=0,o=0;Math.abs(r-n)>.1&&(r>n?i=Math.round((e-t*n)/2):o=Math.round((t-e/n)/2)),of(this.el_,"insetInline",om(i)),of(this.el_,"insetBlock",om(o))}updateDisplayState(e){let t=this.player_.textTrackSettings.getValues(),r=e.activeCues,n=r.length;for(;n--;){let e=r[n];if(!e)continue;let i=e.displayState;if(t.color&&(i.firstChild.style.color=t.color),t.textOpacity&&of(i.firstChild,"color",op(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(i.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&of(i.firstChild,"backgroundColor",op(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?of(i,"backgroundColor",op(t.windowColor,t.windowOpacity)):i.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?i.firstChild.style.textShadow=`2px 2px 3px ${ou}, 2px 2px 4px ${ou}, 2px 2px 5px ${ou}`:"raised"===t.edgeStyle?i.firstChild.style.textShadow=`1px 1px ${ou}, 2px 2px ${ou}, 3px 3px ${ou}`:"depressed"===t.edgeStyle?i.firstChild.style.textShadow=`1px 1px ${od}, 0 1px ${od}, -1px -1px ${ou}, 0 -1px ${ou}`:"uniform"===t.edgeStyle&&(i.firstChild.style.textShadow=`0 0 4px ${ou}, 0 0 4px ${ou}, 0 0 4px ${ou}, 0 0 4px ${ou}`)),t.fontPercent&&1!==t.fontPercent){let e=d().parseFloat(i.style.fontSize);i.style.fontSize=e*t.fontPercent+"px",i.style.height="auto",i.style.top="auto"}
vendor: 16,898 bytes, line 64
64t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?i.firstChild.style.fontVariant="small-caps":i.firstChild.style.fontFamily=oh[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof d().WebVTT||e.every(e=>!e.activeCues))return;let t=[];for(let r=0;r<e.length;++r){let n=e[r];for(let e=0;e<n.activeCues.length;++e)t.push(n.activeCues[e])}d().WebVTT.processCues(d(),t,this.el_);for(let t=0;t<e.length;++t){let r=e[t];for(let e=0;e<r.activeCues.length;++e){let n=r.activeCues[e].displayState;r0(n,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:t)),r.language&&r5(n,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}n4.registerComponent("TextTrackDisplay",og);class oy extends n4{createEl(){let e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),r=rY("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),n=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return n.appendChild(r),n}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}n4.registerComponent("LoadingSpinner",oy);class ov extends ol{createEl(e,t={},r={}){e="button",t=Object.assign({className:this.buildCSSClass()},t),r=Object.assign({type:"button"},r);let n=rY(e,t,r);return this.player_.options_.experimentalSvgIcons||n.appendChild(rY("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}addChild(e,t={}){let r=this.constructor.name;return rc.warn(`Adding an actionable (user controllable) child to a Button (${r}) is not supported; use a ClickableComponent instead.`),n4.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){if(" "===e.key||"Enter"===e.key){e.stopPropagation();return}super.handleKeyDown(e)}}n4.registerComponent("Button",ov);class ob extends ov{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){let t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e){il(t),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}let r=this.player_.getChild("controlBar"),n=r&&r.getChild("playToggle");if(!n){this.player_.tech(!0).focus();return}let i=()=>n.focus();is(t)?t.then(i,()=>{}):this.setTimeout(i,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}ob.prototype.controlText_="Play Video",n4.registerComponent("BigPlayButton",ob);class o_ extends ov{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}n4.registerComponent("CloseButton",o_);class ow extends ov{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?il(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}ow.prototype.controlText_="Play",n4.registerComponent("PlayToggle",ow);class oS extends n4{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],e=>this.update(e)),this.updateTextNode_()}createEl(){let e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),r=rY("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}\u00a0`},{role:"presentation"});return t.appendChild(r),this.contentEl_=rY("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=ir(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,rc.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=p().createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}oS.prototype.labelText_="Time",oS.prototype.controlText_="Time",n4.registerComponent("TimeDisplay",oS);class ok extends oS{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}ok.prototype.labelText_="Current Time",ok.prototype.controlText_="Current Time",n4.registerComponent("CurrentTimeDisplay",ok);class ox extends oS{constructor(e,t){super(e,t);let r=e=>this.updateContent(e);this.on(e,"durationchange",r),this.on(e,"loadstart",r),this.on(e,"loadedmetadata",r)}buildCSSClass(){return"vjs-duration"}updateContent(e){let t=this.player_.duration();this.updateTextNode_(t)}}ox.prototype.labelText_="Duration",ox.prototype.controlText_="Duration",n4.registerComponent("DurationDisplay",ox);class oE extends n4{createEl(){let e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),r=super.createEl("span",{textContent:"/"});return t.appendChild(r),e.appendChild(t),e}}n4.registerComponent("TimeDivider",oE);class oT extends oS{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){let e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(rY("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){let t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))}}oT.prototype.labelText_="Remaining Time",oT.prototype.controlText_="Remaining Time",n4.registerComponent("RemainingTimeDisplay",oT);class oA extends n4{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){let e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=rY("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(rY("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}\u00a0`})),this.contentEl_.appendChild(p().createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}}n4.registerComponent("LiveDisplay",oA);class oC extends ov{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){let e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=rY("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function oP(e,t,r){return Math.min(r,Math.max(t,isNaN(e=Number(e))?t:e))}oC.prototype.controlText_="Seek to live, currently playing live",n4.registerComponent("SeekToLive",oC);var oI=Object.freeze({__proto__:null,clamp:oP});class oO extends n4{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;let e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},r={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),r=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},r),super.createEl(e,t,r)}handleMouseDown(e){let t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||rA||e.preventDefault(),r7(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){let t=this.bar.el_.ownerDocument;r9(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;let e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{let t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(oP(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){let t=nr(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){let t=this.options_.playerOptions.spatialNavigation,r=t&&t.enabled,n=t&&t.horizontalSeek;r?n&&"ArrowLeft"===e.key||!n&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):n&&"ArrowRight"===e.key||!n&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}n4.registerComponent("Slider",oO);let oN=(e,t)=>oP(e/t*100,0,100).toFixed(2)+"%";class oD extends n4{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){let e=super.createEl("div",{className:"vjs-load-progress"}),t=rY("span",{className:"vjs-control-text"}),r=rY("span",{textContent:this.localize("Loaded")}),n=p().createTextNode(": ");return this.percentageEl_=rY("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(r),t.appendChild(n),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{let e=this.player_.liveTracker,t=this.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():this.player_.duration(),n=this.player_.bufferedEnd(),i=this.partEls_,o=oN(n,r);this.percent_!==o&&(this.el_.style.width=o,rJ(this.percentageEl_,o),this.percent_=o);for(let e=0;e<t.length;e++){let r=t.start(e),o=t.end(e),a=i[e];a||(a=this.el_.appendChild(rY()),i[e]=a),(a.dataset.start!==r||a.dataset.end!==o)&&(a.dataset.start=r,a.dataset.end=o,a.style.left=oN(r,n),a.style.width=oN(o-r,n))}for(let e=i.length;e>t.length;e--)this.el_.removeChild(i[e-1]);i.length=t.length})}}n4.registerComponent("LoadProgressBar",oD);class oR extends n4{constructor(e,t){super(e,t),this.update=nM(nL(this,this.update),nR)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,r){let n=nt(this.el_),i=ne(this.player_.el()),o=e.width*t;if(!i||!n)return;let a=e.left-i.left+o,s=e.width-o+(i.right-e.right);s||(s=e.width-o,a=o);let l=n.width/2;a<l?l+=l-a:s<l&&(l=s),l<0?l=0:l>n.width&&(l=n.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(r)}write(e){rJ(this.el_,e)}updateTime(e,t,r,n){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let i;let o=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){let e=this.player_.liveTracker.liveWindow(),r=e-t*e;i=(r<1?"":"-")+ir(r,e)}else i=ir(r,o);this.update(e,t,i),n&&n()})}}n4.registerComponent("TimeTooltip",oR);class oL extends n4{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=nM(nL(this,this.update),nR)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){let r=this.getChild("timeTooltip");if(!r)return;let n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();r.updateTime(e,t,n)}}oL.prototype.options_={children:[]},rH||rk||oL.prototype.options_.children.push("timeTooltip"),n4.registerComponent("PlayProgressBar",oL);class oM extends n4{constructor(e,t){super(e,t),this.update=nM(nL(this,this.update),nR)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){let r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,()=>{this.el_.style.left=`${e.width*t}px`})}}oM.prototype.options_={children:["timeTooltip"]},n4.registerComponent("MouseTimeDisplay",oM);let oj=5,oB=12;class oU extends oO{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=nL(this,this.update),this.update=nM(this.update_,nR),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in p()&&"visibilityState"in p()&&this.on(p(),"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===p().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,
64nR))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||!this.updateInterval||(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===p().visibilityState)return;let t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{let e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker,n=this.player_.duration();r&&r.isLive()&&(n=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),(this.currentTime_!==e||this.duration_!==n)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ir(e,n),ir(n,n)],"{1} of {2}")),this.currentTime_=e,this.duration_=n),this.bar&&this.bar.update(ne(this.el()),this.getProgress())}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){let e;let t=this.getCurrentTime_(),r=this.player_.liveTracker;return r&&r.isLive()?(e=(t-r.seekableStart())/r.liveWindow(),r.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e}handleMouseDown(e){nl(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){let r;if(!nl(e)||isNaN(this.player_.duration()))return;t||this.player_.scrubbing()||this.player_.scrubbing(!0);let n=this.calculateDistance(e),i=this.player_.liveTracker;if(i&&i.isLive()){if(n>=.99){i.seekToLiveEdge();return}let e=i.seekableStart(),t=i.liveCurrentTime();if((r=e+n*i.liveWindow())>=t&&(r=t),r<=e&&(r=e+.1),r===1/0)return}else(r=n*this.player_.duration())===this.player_.duration()&&(r-=.1);this.userSeek_(r),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();let e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();let e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?il(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+oj)}stepBack(){this.userSeek_(this.player_.currentTime()-oj)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){let t=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();let r=.1*parseInt(e.key,10);t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-oj*oB)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+oj*oB)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in p()&&"visibilityState"in p()&&this.off(p(),"visibilitychange",this.toggleVisibility_),super.dispose()}}oU.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},rH||rk||oU.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),n4.registerComponent("SeekBar",oU);class oF extends n4{constructor(e,t){super(e,t),this.handleMouseMove=nM(nL(this,this.handleMouseMove),nR),this.throttledHandleMouseSeek=nM(nL(this,this.handleMouseSeek),nR),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){let t=this.getChild("seekBar");if(!t)return;let r=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(!r&&!n)return;let i=t.el(),o=nt(i),a=nr(i,e).x;a=oP(a,0,1),n&&n.update(o,a),r&&r.update(o,t.getProgress())}handleMouseSeek(e){let t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}
vendor: 4,096 bytes, line 64
64disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){let e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&il(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){let e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){let t=this.el_.ownerDocument,r=this.getChild("seekBar");r&&r.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}oF.prototype.options_={children:["seekBar"]},n4.registerComponent("ProgressControl",oF);class oH extends ov{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!("audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){p().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in d()?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof p().exitPictureInPicture&&super.show()}}oH.prototype.controlText_="Picture-in-Picture",n4.registerComponent("PictureInPictureToggle",oH);class oz extends ov{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===p()[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}oz.prototype.controlText_="Fullscreen",n4.registerComponent("FullscreenToggle",oz);let o$=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};class oq extends n4{createEl(){let e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}
vendor: 4,205 bytes, line 64
64n4.registerComponent("VolumeLevel",oq);class oW extends n4{constructor(e,t){super(e,t),this.update=nM(nL(this,this.update),nR)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,r,n){if(!r){let r=ne(this.el_),n=ne(this.player_.el()),i=e.width*t;if(!n||!r)return;let o=e.left-n.left+i,a=e.width-i+(n.right-e.right),s=r.width/2;o<s?s+=s-o:a<s&&(s=a),s<0?s=0:s>r.width&&(s=r.width),this.el_.style.right=`-${s}px`}this.write(`${n}%`)}write(e){rJ(this.el_,e)}updateVolume(e,t,r,n,i){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,r,n.toFixed(0)),i&&i()})}}n4.registerComponent("VolumeLevelTooltip",oW);class oV extends n4{constructor(e,t){super(e,t),this.update=nM(nL(this,this.update),nR)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,r){let n=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,r,n,()=>{r?this.el_.style.bottom=`${e.height*t}px`:this.el_.style.left=`${e.width*t}px`})}}oV.prototype.options_={children:["volumeLevelTooltip"]},n4.registerComponent("MouseVolumeLevelDisplay",oV);class oG extends oO{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){nl(e)&&super.handleMouseDown(e)}handleMouseMove(e){let t=this.getChild("mouseVolumeLevelDisplay");if(t){let r=this.el(),n=ne(r),i=this.vertical(),o=nr(r,e);o=oP(o=i?o.y:o.x,0,1),t.update(n,o,i)}nl(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){let t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){let e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}oG.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},rH||rk||oG.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),oG.prototype.playerEvent="volumechange",n4.registerComponent("VolumeBar",oG);class oK extends n4{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||rg(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),o$(this,e),this.throttledHandleMouseMove=nM(nL(this,this.handleMouseMove),nR),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){let t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}oK.prototype.options_={children:["volumeBar"]}
vendor: 4,284 bytes, line 64
64,n4.registerComponent("VolumeControl",oK);let oZ=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};class oY extends ov{constructor(e,t){super(e,t),oZ(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){let t=this.player_.volume(),r=this.player_.lastVolume_();if(0===t){let e=r<.1?.1:r;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){let e=this.player_.volume(),t=3;this.setIcon("volume-high"),rH&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),r1(this.el_,[0,1,2,3].reduce((e,t)=>e+`${t?" ":""}vjs-vol-${t}`,"")),r0(this.el_,`vjs-vol-${t}`)}updateControlText_(){let e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}oY.prototype.controlText_="Mute",n4.registerComponent("MuteToggle",oY);class oJ extends n4{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||rg(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){"Escape"===e.key&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),nC(p(),"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),nP(p(),"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}oJ.prototype.options_={children:["muteToggle","volumeControl"]},n4.registerComponent("VolumePanel",oJ);class oX extends ov{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){let e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){let t;if(isNaN(this.player_.duration()))return;let r=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()?n.seekableEnd():this.player_.duration();t=r+this.skipTime<=i?r+this.skipTime:i,this.player_.currentTime(t)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}oX.prototype.controlText_="Skip Forward",n4.registerComponent("SkipForward",oX);class oQ extends ov{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1}
64 seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){let e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){let t;let r=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()&&n.seekableStart();t=i&&r-this.skipTime<=i?i:r>=this.skipTime?r-this.skipTime:0,this.player_.currentTime(t)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}oQ.prototype.controlText_="Skip Backward",n4.registerComponent("SkipBackward",oQ);class o0 extends n4{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof n4&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof n4&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){let t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){let e=this.options_.contentElType||"ul";this.contentEl_=rY(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");let t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),nC(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){let t=e.relatedTarget||p().activeElement;if(!this.children().some(e=>e.el()===t)){let e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();let t=this.children();if(!Array.isArray(t))return;let r=t.filter(t=>t.el()===e.target)[0];r&&"CaptionSettingsMenuItem"!==r.name()&&this.menuButton_.focus()}}handleKeyDown(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):("ArrowRight"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){let t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}n4.registerComponent("Menu",o0);class o1 extends n4{constructor(e,t={}){super(e,t),this.menuButton_=new ov(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");let r=ov.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+r,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;let n=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",n),this.on(this.menuButton_,"click",n),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),nC(p(),"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){let e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){let e=new o0(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){let t=rY("li",{className:"vjs-menu-title",textContent:n0(this.options_.title),tabIndex:-1}),r=new n4(this.player_,{el:t});e.addItem(r)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";let t=ov.prototype.buildCSSClass();return`vjs-menu-button ${e} ${t} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),nP(p(),"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){"Esc"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),e.key):"Up"!==e.key&&("Down"!==e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)||this.buttonPressed_||(e.preventDefault(),this.pressButton())}handleMenuKeyUp(e){("Esc"===e.key||"Tab"===e.key)&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}
64handleSubmenuKeyDown(e){("Esc"===e.key||"Tab"===e.key)&&(this.buttonPressed_&&this.unpressButton(),e.key)}pressButton(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),rH&&rK()||this.menu.focus())}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}n4.registerComponent("MenuButton",o1);class o2 extends o1{constructor(e,t){let r=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!r)return;let n=nL(this,this.update);r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),r.addEventListener("labelchange",n),this.player_.on("ready",n),this.player_.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n),r.removeEventListener("labelchange",n)})}}n4.registerComponent("TrackButton",o2);class o4 extends ol{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,r){this.nonIconControl=!0;let n=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),r),i=rY("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?n.appendChild(i):n.replaceChild(i,n.querySelector(".vjs-icon-placeholder")),n}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.key)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}n4.registerComponent("MenuItem",o4);class o3 extends o4{constructor(e,t){let r=t.track,n=e.textTracks();t.label=r.label||r.language||"Unknown",t.selected="showing"===r.mode,super(e,t),this.track=r,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);let i=(...e)=>{this.handleTracksChange.apply(this,e)},o=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],i),n.addEventListener("change",i),n.addEventListener("selectedlanguagechange",o),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],i),n.removeEventListener("change",i),n.removeEventListener("selectedlanguagechange",o)}),void 0===n.onchange){let e;this.on(["tap","click"],function(){if("object"!=typeof d().Event)try{e=new(d()).Event("change")}catch(e){}e||(e=p().createEvent("Event")).initEvent("change",!0,!0),n.dispatchEvent(e)})}this.handleTracksChange()}handleClick(e){let t=this.track,r=this.player_.textTracks();if(super.handleClick(e),r)for(let e=0;e<r.length;e++){let n=r[e];-1!==this.kinds.indexOf(n.kind)&&(n===t?"showing"!==n.mode&&(n.mode="showing"):"disabled"!==n.mode&&(n.mode="disabled"))}}handleTracksChange(e){let t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){let e=this.player_.cache_.selectedLanguage;e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind})}}dispose(){this.track=null,super.dispose()}}n4.registerComponent("TextTrackMenuItem",o3);class o6 extends o3{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){let t=this.player().textTracks(),r=!0;for(let e=0,n=t.length;e<n;e++){let n=t[e];if(this.options_.kinds.indexOf(n.kind)>-1&&"showing"===n.mode){r=!1;break}}r!==this.isSelected_&&this.selected(r)}handleSelectedLanguageChange(e){let t=this.player().textTracks(),r=!0;for(let e=0,n=t.length;e<n;e++){let n=t[e];if(["captions","descriptions","subtitles"].indexOf(n.kind)>-1&&"showing"===n.mode){r=!1;break}}r&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}n4.registerComponent("OffTextTrackMenuItem",o6);class o5 extends o2{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=o3){let r;this.label_&&(r=`${this.label_} off`),e.push(new o6(this.player_,{kinds:this.kinds_,kind:this.kind_,label:r})),this.hideThreshold_+=1;let n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let r=0;r<n.length;r++){let i=n[r];if(this.kinds_.indexOf(i.kind)>-1){let r=new t(this.player_,{track:i,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});r.addClass(`vjs-${i.kind}-menu-item`),e.push(r)}}return e}}n4.registerComponent("TextTrackButton",o5);class o8 extends o4{constructor(e,t){let r=t.track,n=t.cue,i=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=n.text,t.selected=n.startTime<=i&&i<n.endTime,super(e,t),this.track=r,this.cue=n}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}n4.registerComponent("ChaptersTrackMenuItem",o8);class o7 extends o5{constructor(e,t,r){super(e,t,r),this.setIcon("chapters"),this.selectCurrentItem_=()=>
64{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;let t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){let e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";let e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){let e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.kind===this.kind_)return r}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(n0(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){let e=[];
vendor: 8,384 bytes, line 64
64if(!this.track_)return e;let t=this.track_.cues;if(!t)return e;for(let r=0,n=t.length;r<n;r++){let n=t[r],i=new o8(this.player_,{track:this.track_,cue:n});e.push(i)}return e}}o7.prototype.kind_="chapters",o7.prototype.controlText_="Chapters",n4.registerComponent("ChaptersButton",o7);class o9 extends o5{constructor(e,t,r){super(e,t,r),this.setIcon("audio-description");let n=e.textTracks(),i=nL(this,this.handleTracksChange);n.addEventListener("change",i),this.on("dispose",function(){n.removeEventListener("change",i)})}handleTracksChange(e){let t=this.player().textTracks(),r=!1;for(let e=0,n=t.length;e<n;e++){let n=t[e];if(n.kind!==this.kind_&&"showing"===n.mode){r=!0;break}}r?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}o9.prototype.kind_="descriptions",o9.prototype.controlText_="Descriptions",n4.registerComponent("DescriptionsButton",o9);class ae extends o5{constructor(e,t,r){super(e,t,r),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}ae.prototype.kind_="subtitles",ae.prototype.controlText_="Subtitles",n4.registerComponent("SubtitlesButton",ae);class at extends o3{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}n4.registerComponent("CaptionSettingsMenuItem",at);class ar extends o5{constructor(e,t,r){super(e,t,r),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new at(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}ar.prototype.kind_="captions",ar.prototype.controlText_="Captions",n4.registerComponent("CaptionsButton",ar);class an extends o3{createEl(e,t,r){let n=super.createEl(e,t,r),i=n.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",n):i.appendChild(rY("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(rY("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),n}}n4.registerComponent("SubsCapsMenuItem",an);class ai extends o5{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(n0(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new at(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,an)}}ai.prototype.kinds_=["captions","subtitles"],ai.prototype.controlText_="Subtitles",n4.registerComponent("SubsCapsButton",ai);class ao extends o4{constructor(e,t){let r=t.track,n=e.audioTracks();t.label=r.label||r.language||"Unknown",t.selected=r.enabled,super(e,t),this.track=r,this.addClass(`vjs-${r.kind}-menu-item`);let i=(...e)=>{this.handleTracksChange.apply(this,e)};n.addEventListener("change",i),this.on("dispose",()=>{n.removeEventListener("change",i)})}createEl(e,t,r){let n=super.createEl(e,t,r),i=n.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(i.appendChild(rY("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(rY("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),n}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){let e=this.player_.audioTracks();for(let t=0;t<e.length;t++){let r=e[t];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}n4.registerComponent("AudioTrackMenuItem",ao);class aa extends o2{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;let t=this.player_.audioTracks();for(let r=0;r<t.length;r++){let n=t[r];e.push(new ao(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e}}aa.prototype.controlText_="Audio Track",n4.registerComponent("AudioTrackButton",aa);class as extends o4{constructor(e,t){let r=t.rate,n=parseFloat(r,10);t.label=r,t.selected=n===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=r,this.rate=n,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}as.prototype.contentElType="button",n4.registerComponent("PlaybackRateMenuItem",as);class al extends o1{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){let e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=rY("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){let e=this.playbackRates(),t=[];for(let r=e.length-1;r>=0;r--)t.push(new as(this.player(),{rate:e[r]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){let e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}al.prototype.controlText_="Playback Rate",n4.registerComponent("PlaybackRateMenuButton",al);class ac extends n4{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},r={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,r)}}n4.registerComponent("Spacer",ac);class au extends ac{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"\xa0"})}}n4.registerComponent("CustomControlSpacer",au);class ad extends n4{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}ad.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},n4.registerComponent("ControlBar",ad);class ah extends ip{constructor(e,t){super(e,t),this.on(e,"error",e=>{this.open(e)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){let e=this.player().error();return e?this.localize(e.message):""}}ah.prototype.options_=Object.assign({}
64,ip.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),n4.registerComponent("ErrorDisplay",ah);class ap extends n4{constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),rY("select",{id:this.options_.id},{},this.options_.SelectOptions.map(e=>{let t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${nS()}`)+"-"+e[1].replace(/\W+/g,""),r=rY("option",{id:t,value:this.localize(e[0]),textContent:e[1]});return r.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${t}`),r}))}}n4.registerComponent("TextTrackSelect",ap);class af extends n4{constructor(e,t={}){super(e,t);let r=rY("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});for(let t of(this.el().appendChild(r),this.options_.selects)){let r=this.options_.selectConfigs[t],n=r.className,i=r.id.replace("%s",this.options_.id_),o=null,a=`vjs_select_${nS()}`;if("colors"===this.options_.type){o=rY("span",{className:n});let e=rY("label",{id:i,className:"vjs-label",textContent:r.label});e.setAttribute("for",a),o.appendChild(e)}let s=new ap(e,{SelectOptions:r.options,legendId:this.options_.legendId,id:a,labelId:i});this.addChild(s),"colors"===this.options_.type&&(o.appendChild(s.el()),this.el().appendChild(o))}}createEl(){return rY("fieldset",{className:this.options_.className})}}n4.registerComponent("TextTrackFieldset",af);class am extends n4{constructor(e,t={}){super(e,t);let r=this.options_.textTrackComponentid,n=new af(e,{id_:r,legendId:`captions-text-legend-${r}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(n);let i=new af(e,{id_:r,legendId:`captions-background-${r}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(i);let o=new af(e,{id_:r,legendId:`captions-window-${r}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(o)}createEl(){return rY("div",{className:"vjs-track-settings-colors"})}}n4.registerComponent("TextTrackSettingsColors",am);class ag extends n4{constructor(e,t={}){super(e,t);let r=this.options_.textTrackComponentid,n=new af(e,{id_:r,legendId:`captions-font-size-${r}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(n);let i=new af(e,{id_:r,legendId:`captions-edge-style-${r}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(i);let o=new af(e,{id_:r,legendId:`captions-font-family-${r}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(o)}createEl(){return rY("div",{className:"vjs-track-settings-font"})}}n4.registerComponent("TextTrackSettingsFont",ag);class ay extends n4{constructor(e,t={}){super(e,t);let r=this.localize("restore all settings to the default values"),n=new ov(e,{controlText:r,className:"vjs-default-button"});n.el().classList.remove("vjs-control","vjs-button"),n.el().textContent=this.localize("Reset"),this.addChild(n);let i=new ov(e,{controlText:r,className:"vjs-done-button"});i.el().classList.remove("vjs-control","vjs-button"),i.el().textContent=this.localize("Done"),this.addChild(i)}createEl(){return rY("div",{className:"vjs-track-settings-controls"})}}n4.registerComponent("TrackSettingsControls",ay);let av="vjs-text-track-settings",ab=["#000","Black"],a_=["#00F","Blue"],aw=["#0FF","Cyan"],aS=["#0F0","Green"],ak=["#F0F","Magenta"],ax=["#F00","Red"],aE=["#FFF","White"],aT=["#FF0","Yellow"],aA=["1","Opaque"],aC=["0.5","Semi-Transparent"],aP=["0","Transparent"],aI={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ab,aE,ax,aS,a_,aT,ak,aw],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[aA,aC,aP],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[aE,ab,ax,aS,a_,aT,ak,aw],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[aA,aC],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[aP,aC,aA],className:"vjs-window-opacity vjs-opacity"}};function aO(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function aN(e,t){return aO(e.options[e.options.selectedIndex].value,t)}function aD(e,t,r){if(t){for(let n=0;n<e.options.length;
vendor: 6,969 bytes, line 64
64n++)if(aO(e.options[n].value,r)===t){e.selectedIndex=n;break}}}aI.windowColor.options=aI.backgroundColor.options;class aR extends ip{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=rY("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){let t=new am(e,{textTrackComponentid:this.id_,selectConfigs:aI,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);let r=new ag(e,{textTrackComponentid:this.id_,selectConfigs:aI,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(r);let n=new ay(e);this.addChild(n)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),rp(aI,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return rf(aI,(e,t,r)=>{let n=aN(this.$(t.selector),t.parser);return void 0!==n&&(e[r]=n),e},{})}setValues(e){rp(aI,(t,r)=>{aD(this.$(t.selector),e[r],t.parser)})}setDefaults(){rp(aI,e=>{let t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(d().localStorage.getItem(av))}catch(e){rc.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;let e=this.getValues();try{Object.keys(e).length?d().localStorage.setItem(av,JSON.stringify(e)):d().localStorage.removeItem(av)}catch(e){rc.warn(e)}}updateDisplay(){let e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}n4.registerComponent("TextTrackSettings",aR);class aL extends n4{constructor(e,t){let r=t.ResizeObserver||d().ResizeObserver;null===t.ResizeObserver&&(r=!1),super(e,ry({createEl:!r,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||d().ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=nj(()=>{this.resizeHandler()},100,!1,this),r?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;let e=this.debouncedHandler_,t=this.unloadListener_=function(){nP(this,"resize",e),nP(this,"unload",t),t=null};nC(this.el_.contentWindow,"unload",t),nC(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}n4.registerComponent("ResizeManager",aL);let aM={trackingThreshold:20,liveTolerance:15};class aj extends n4{constructor(e,t){super(e,ry(aM,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){let e=this.player_.seekable();if(!e||!e.length)return;let t=Number(d().performance.now().toFixed(4)),r=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+r;let n=this.liveCurrentTime(),i=this.player_.currentTime(),o=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-i)>this.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,nR),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){let e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){let e=this.player_.seekable(),t=[],r=e?e.length:0;for(;r--;)t.push(e.end(r));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){let e=this.player_.seekable(),t=[],r=e?e.length:0;for(;r--;)t.push(e.start(r));return t.length?t.sort()[0]:0}
64liveWindow(){let e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){let e=this.seekableEnd();return -1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}n4.registerComponent("LiveTracker",aj);class aB extends n4{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:rY("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${nS()}`}),description:rY("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${nS()}`})},rY("div",{className:"vjs-title-bar"},{},rv(this.els))}updateDom_(){let e=this.player_.tech_,t=e&&e.el_,r={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{let n=this.state[e],i=this.els[e],o=r[e];ni(i),n&&rJ(i,n),t&&(t.removeAttribute(o),n&&t.setAttribute(o,i.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){let e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}n4.registerComponent("TitleBar",aB);let aU=e=>{let t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;let r=e.$$("source"),n=[],i="";if(!r.length)return!1;for(let e=0;e<r.length;e++){let t=r[e].src;t&&-1===n.indexOf(t)&&n.push(t)}return!!n.length&&(1===n.length&&(i=n[0]),e.triggerSourceset(i),!0)},aF=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){let t=p().createElement(this.nodeName.toLowerCase());t.innerHTML=e;let r=p().createDocumentFragment();for(;t.childNodes.length;)r.appendChild(t.childNodes[0]);return this.innerText="",d().Element.prototype.appendChild.call(this,r),this.innerHTML}}),aH=(e,t)=>{let r={};for(let n=0;n<e.length&&(!(r=Object.getOwnPropertyDescriptor(e[n],t))||!r.set||!r.get);n++);return r.enumerable=!0,r.configurable=!0,r},az=e=>aH([e.el(),d().HTMLMediaElement.prototype,d().Element.prototype,aF],"innerHTML"),a$=function(e){let t=e.el();if(t.resetSourceWatch_)return;let r={},n=az(e),i=r=>(...n)=>{let i=r.apply(t,n);return aU(e),i};["append","appendChild","insertAdjacentHTML"].forEach(e=>{t[e]&&(r[e]=t[e],t[e]=i(r[e]))}),Object.defineProperty(t,"innerHTML",ry(n,{set:i(n.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(r).forEach(e=>{t[e]=r[e]}),Object.defineProperty(t,"innerHTML",n)},e.one("sourceset",t.resetSourceWatch_)},aq=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?iP(d().Element.prototype.getAttribute.call(this,"src")):""},set(e){return d().Element.prototype.setAttribute.call(this,"src",e),e}}),aW=e=>aH([e.el(),d().HTMLMediaElement.prototype,aq],"src"),aV=function(e){if(!e.featuresSourceset)return;let t=e.el();if(t.resetSourceset_)return;let r=aW(e),n=t.setAttribute,i=t.load;Object.defineProperty(t,"src",ry(r,{set:n=>{let i=r.set.call(t,n);return e.triggerSourceset(t.src),i}})),t.setAttribute=(r,i)=>{let o=n.call(t,r,i);return/src/i.test(r)&&e.triggerSourceset(t.src),o},t.load=()=>{let r=i.call(t);return aU(e)||(e.triggerSourceset(""),a$(e)),r},t.currentSrc?e.triggerSourceset(t.currentSrc):aU(e)||a$(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=i,t.setAttribute=n,Object.defineProperty(t,"src",r),t.resetSourceWatch_&&t.resetSourceWatch_()}};class aG extends i${constructor(e,t){super(e,t);let r=e.source,n=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,r&&(this.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(r):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){let e=this.el_.childNodes,t=e.length,r=[];for(;t--;){let i=e[t];"track"===i.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),this.textTracks().addTrack(i.track),!n&&!this.el_.hasAttribute("crossorigin")&&iO(i.src)&&(n=!0)):r.push(i))}for(let e=0;e<r.length;e++)this.el_.removeChild(r[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&n&&rc.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(rU||rL)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),aG.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){aV(this)}restoreMetadataTracksInIOSNativePlayer_(){let e;let t=this.textTracks(),r=()=>{e=[];for(let r=0;r<t.length;r++){let n=t[r];"metadata"===n.kind&&e.push({track:n,storedMode:n.mode})}};r(),t.addEventListener("change",r),this.on("dispose",()=>t.removeEventListener("change",r));let n=()=>{for(let t=0;t<e.length;t++){let r=e[t];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",()=>{t.removeEventListener("change",r),t.removeEventListener("change",n),t.addEventListener("change",n)}),this.on("webkitendfullscreen",()=>{t.removeEventListener("change",r),t.addEventListener("change",r),t.removeEventListener("change",n)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;let r=e.toLowerCase();this[`${r}TracksListeners_`]&&Object.keys(this[`${r}
64TracksListeners_`]).forEach(e=>{this.el()[`${r}Tracks`].removeEventListener(e,this[`${r}TracksListeners_`][e])}),this[`featuresNative${e}Tracks`]=!t,this[`${r}TracksListeners_`]=null,this.proxyNativeTracksForType_(r)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){let t=iU[e],r=this.el()[t.getterName],n=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!r||!r.addEventListener)return;let i={change:t=>{let r={type:"change",target:n,currentTarget:n,srcElement:n};n.trigger(r),"text"===e&&this[iF.remoteText.getterName]().trigger(r)},addtrack(e){n.addTrack(e.track)},removetrack(e){n.removeTrack(e.track)}},o=function(){let e=[];for(let t=0;t<n.length;t++){let i=!1;for(let e=0;e<r.length;e++)if(r[e]===n[t]){i=!0;break}i||e.push(n[t])}for(;e.length;)n.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=i,Object.keys(i).forEach(e=>{let t=i[e];r.addEventListener(e,t),this.on("dispose",n=>r.removeEventListener(e,t))}),this.on("loadstart",o),this.on("dispose",e=>this.off("loadstart",o))}proxyNativeTracks_(){iU.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){let t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),aG.disposeMediaElement(e),e=t}else{e=p().createElement("video");let t=ry({},this.options_.tag&&r3(this.options_.tag));rU&&!0===this.options_.nativeControlsForTouch||delete t.controls,r4(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&r5(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);let t=["loop","muted","playsinline","autoplay"];for(let r=0;r<t.length;r++){let n=t[r],i=this.options_[n];void 0!==i&&(i?r5(e,n,n):r8(e,n),e[n]=i)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1,t=function(){e=!0};this.on("loadstart",t);let r=function(){e||this.trigger("loadstart")};this.on("loadedmetadata",r),this.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",r),e||this.trigger("loadstart")});return}let t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(e){this.trigger(e)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&rz?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){rc(e,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&rk&&rA&&0===this.el_.currentTime){let e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;let e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){let e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)il(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){aG.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,r):super.addTextTrack(e,t,r)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);let t=p().createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){let r=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(r),r}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){let t=this.$$("track"),r=t.length;for(;r--;)(e===t[r]||e===t[r].track)&&this.el().removeChild(t[r])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();let e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),d().performance&&(e.creationTime=d().performance.now()),e}}rb(aG,"TEST_VID",function(){if(!rV())return;let e=p().createElement("video"),t=p().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}),aG.isSupported=function(){try{aG.TEST_VID.volume=.5}catch(e){return!1}return!!(aG.TEST_VID&&aG.TEST_VID.canPlayType)},aG.canPlayType=function(e){return aG.TEST_VID.canPlayType(e)},aG.canPlaySource=function(e,t){return aG.canPlayType(e.type)},aG.canControlVolume=function(){try{let e=aG.TEST_VID.volume;aG.TEST_VID.volume=e/2+.1;let t=e!==aG.TEST_VID.volume;if(t&&rH)return d().setTimeout(()=>{aG&&aG.prototype&&(aG.prototype.featuresVolumeControl=e!==aG.TEST_VID.volume)}),!1;return t}catch(e){return!1}},aG.canMuteVolume=function(){try{let e=aG.TEST_VID.muted;return aG.TEST_VID.muted=!e,aG.TEST_VID.muted?r5(aG.TEST_VID,"muted","muted"):r8(aG.TEST_VID,"muted","muted"),e!==aG.TEST_VID.muted}catch(e){return!1}},aG.canControlPlaybackRate=function(){if(rk&&rA&&rP<58)return!1;try{let e=aG.TEST_VID.playbackRate;return aG.TEST_VID.playbackRate=e/2+.1,e!==aG.TEST_VID.playbackRate}catch(e){return!1}},aG.canOverrideAttributes=function(){try{let e=()=>{};Object.defineProperty(p().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(p().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(p().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(p().createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},aG.supportsNativeTextTracks=function(){return rz||rH&&rA},aG.supportsNativeVideoTracks=function(){return!!(aG.TEST_VID&&aG.TEST_VID.videoTracks)},aG.supportsNativeAudioTracks=function(){return!!(aG.TEST_VID&&aG.TEST_VID.audioTracks)},aG.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
vendor: 4,110 bytes, line 64
64h(function([e,t]){rb(aG.prototype,e,()=>aG[t](),!0)}),aG.prototype.featuresVolumeControl=aG.canControlVolume(),aG.prototype.movingMediaElementInDOM=!rH,aG.prototype.featuresFullscreenResize=!0,aG.prototype.featuresProgressEvents=!0,aG.prototype.featuresTimeupdateEvents=!0,aG.prototype.featuresVideoFrameCallback=!!(aG.TEST_VID&&aG.TEST_VID.requestVideoFrameCallback),aG.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},aG.resetMediaElement=function(e){if(!e)return;let t=e.querySelectorAll("source"),r=t.length;for(;r--;)e.removeChild(t[r]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){aG.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){aG.prototype["set"+n0(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){aG.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){aG.prototype["set"+n0(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){aG.prototype[e]=function(){return this.el_[e]()}}),i$.withSourceHandlers(aG),aG.nativeSourceHandler={},aG.nativeSourceHandler.canPlayType=function(e){try{return aG.TEST_VID.canPlayType(e)}catch(e){return""}},aG.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return aG.nativeSourceHandler.canPlayType(e.type);if(e.src){let t=iI(e.src);return aG.nativeSourceHandler.canPlayType(`video/${t}`)}return""},aG.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},aG.nativeSourceHandler.dispose=function(){},aG.registerSourceHandler(aG.nativeSourceHandler),i$.registerTech("Html5",aG);let aK=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],aZ={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},aY=["tiny","xsmall","small","medium","large","xlarge","huge"],aJ={};aY.forEach(e=>{let t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;aJ[e]=`vjs-layout-${t}`});let aX={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class aQ extends n4{constructor(e,t,r){if(e.id=e.id||t.id||`vjs_video_${nS()}`,(t=Object.assign(aQ.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){let r=e.closest("[lang]");r&&(t.language=r.getAttribute("lang"))}if(super(null,t,r),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.boundUpdatePlayerHeightOnAudioOnlyMode_=e=>this.updatePlayerHeightOnAudioOnlyMode_(e),this.isFullscreen_=!1,this.log=ru(this.id_),this.fsApi_=rn,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHe
vendor: 4,327 bytes, line 64
64ight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&r3(e),this.language(this.options_.language),t.languages){let e={};Object.getOwnPropertyNames(t.languages).forEach(function(r){e[r.toLowerCase()]=t.languages[r]}),this.languages_=e}else this.languages_=aQ.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(e=>{if("function"!=typeof this[e])throw Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),nY(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(nC(p(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);let n=ry(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(e=>{this[e](t.plugins[e])}),t.debug&&this.debug(!0),this.options_.playerOptions=n,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){let e=new(d()).DOMParser().parseFromString(or,"image/svg+xml");if(e.querySelector("parsererror"))rc.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{let t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),t.spatialNavigation&&t.spatialNavigation.enabled&&(this.spatialNavigation=new oa(this),this.addClass("vjs-spatial-navigation-enabled")),rU&&this.addClass("vjs-touch-enabled"),rH||this.addClass("vjs-workinghover"),aQ.players[this.id_]=this;let i=t8.split(".")[0];this.addClass(`vjs-v${i}`),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),nP(p(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),nP(p(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),aQ.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),i3(this),iH.names.forEach(e=>{let t=this[iH[e].getterName]();t&&t.off&&t.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,r=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),n="video-js"===this.tag.tagName.toLowerCase();r?e=this.el_=t.parentNode:n||(e=this.el_=super.createEl("div"));let i=r3(t);if(n){for(e=this.el_=t,t=this.tag=p().createElement("video");e.children.length;)t.appendChild(e.firstChild);rQ(e,"video-js")||r0(e,"video-js"),e.appendChild(t),r=this.playerElIngest_=e,Object.keys(e).forEach(r=>{try{t[r]=e[r]}catch(e){}})}t.setAttribute("tabindex","-1"),i.tabindex="-1",rA&&rD&&(t.setAttribute("role","application"),i.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in i&&delete i.width,"height"in i&&delete i.height,Object.getOwnPropertyNames(i).forEac
64h(function(r){n&&"class"===r||e.setAttribute(r,i[r]),n&&t.setAttribute(r,i[r])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused");let o=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(e=>r$[e]).map(e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...o),!0!==d().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=nv("vjs-styles-dimensions");let e=nc(".vjs-styles-defaults"),t=nc("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);let a=t.getElementsByTagName("a");for(let e=0;e<a.length;e++){let t=a.item(e);r0(t,"vjs-hidden"),t.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!r&&t.parentNode.insertBefore(e,t),rX(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(void 0===e)return this.techGet_("crossOrigin");if(null!==e&&"anonymous"!==e&&"use-credentials"!==e){rc.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){let r=e+"_";if(void 0===t)return this[r]||0;if(""===t||"auto"===t){this[r]=void 0,this.updateStyleEl_();return}let n=parseFloat(t);if(isNaN(n)){rc.error(`Improper value "${t}" supplied for for ${e}`);return}this[r]=n,this.updateStyleEl_()}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,nH(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),nz(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){let e,t,r,n;if(!0===d().VIDEOJS_NO_DYNAMIC_STYLE){let e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,r=this.tech_&&this.tech_.el();r&&(e>=0&&(r.width=e),t>=0&&(r.height=t));return}let i=(r=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),nb(this.styleEl_,`
65      .${n} {
66        width: ${e}px;
67        height: ${t}px;
68      }
69
70      .${n}.vjs-fluid:not(.vjs-audio-only-mode) {
71        padding-top: ${100*o}%;
72      }
73    `)}loadTech_(e,t){this.tech_&&this.unloadTech_();let r=n0(e),n=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(i$.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;let i=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(i=!1);let o={source:t,autoplay:i,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${n}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
73iH.names.forEach(e=>{let t=iH[e];o[t.getterName]=this[t.privateName]}),Object.assign(o,this.options_[r]),Object.assign(o,this.options_[n]),Object.assign(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);let a=i$.getTech(e);if(!a)throw Error(`No Tech named '${r}' exists! '${r}' should be registered using videojs.registerTech()'`);this.tech_=new a(o),this.tech_.ready(nL(this,this.handleTechReady_),!0),id(this.textTracksJson_||[],this.tech_),aK.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${n0(e)}_`](t))}),Object.keys(aZ).forEach(e=>{this.on(this.tech_,e,t=>{if(0===this.tech_.playbackRate()&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${aZ[e]}_`].bind(this),event:t});return}this[`handleTech${aZ[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||rX(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){iH.names.forEach(e=>{let t=iH[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=iu(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&rc.warn("Using the tech directly can be dangerous. I hope you know 
73what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":t8}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()&&this.hasStarted(!1),this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){let t;if(!this.tech_||"string"!=typeof e)return;let r=()=>{let e=this.muted();this.muted(!0);let t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);let r=this.play();if(is(r))return r.catch(e=>{throw t(),Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():r():is(t=this.play())&&(t=t.catch(r)),is(t))return t.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let t=e,r="";"string"!=typeof t&&(t=e.src,r=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!r&&(r=i9(this,t)),this.cache_.source=ry({},e,{src:t,type:r});let n=this.cache_.sources.filter(e=>e.src&&e.src===t),i=[],o=this.$$("source"),a=[];for(let e=0;e<o.length;e++){let r=r3(o[e]);i.push(r),r.src&&r.src===t&&a.push(r.src)}a.length&&!n.length?this.cache_.sources=i:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e),r=this.currentSource().src,n=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(n)&&(!this.lastSource_||this.lastSource_.tech!==n&&this.lastSource_.player!==r)&&(t=()=>{}),t(n),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;let t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");let e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
73handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?il(this.play()):this.pause())}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>t.contains(e.target))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){let t=e.target.player;if(t&&t!==this)return;let r=this.el(),n=p()[this.fsApi_.fullscreenElement]===r;!n&&r.matches&&(n=r.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){let e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in i0)return iJ(this.middleware_,this.tech_,e,t);if(e in i1)return iX(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw rc(e),e}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in iQ)return iY(this.middleware_,this.tech_,e);if(e in i1)return iX(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw rc(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw rc(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw rc(t),t}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=il){this.playCallbacks_.push(e);let t=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),r=!!(rz||rH);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t){this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!t&&r&&this.load();return}let n=this.techGet_("play");r&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)}runPlayTerminatedQueue_(){let e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}runPlayCallbacks_(e){let t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||n8(0,0)}scrubbing(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){if(void 0===e)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e===this.cache_.duration||(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=n8(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=n8(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return io(this.buffered(),this.duration())}bufferedEnd(){let e=this.buffered(),t=this.duration(),r=e.end(e.length-1);return r>t&&(r=t),r}volume(e){let t;if(void 0!==e){t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),t>0&&this.lastVolume_(t);return}return isNaN(t=parseFloat(this.techGet_("volume")))?1:t}muted(e){if(void 0!==e){this.techCall_("setMuted",e);return}return this.techGet_("muted")||!1}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0!==e&&0!==e){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){let t=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();let t=this;return new Promise((r,n)=>{function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",o)}function o(){i(),r()}function a(e,t){i(),n(t)}t.one("fullscreenchange",o),t.one("fullscreenerror",a);let s=t.requestFullscreenHelper_(e);s&&(s.then(i,i),s.then(r,n))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0===e||(t=e)),this.fsApi_.requestFullscreen){let e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){let e=this;return new Promise((t,r)=>{function n(){e.off("fullscreenerror",o),e.off("fullscreenchange",i
73)}function i(){n(),t()}function o(e,t){n(),r(t)}e.one("fullscreenchange",i),e.one("fullscreenerror",o);let a=e.exitFullscreenHelper_();a&&(a.then(n,n),a.then(t,r))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){let e=p()[this.fsApi_.exitFullscreen]();return e&&il(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=p().documentElement.style.overflow,nC(p(),"keydown",this.boundFullWindowOnEscKey_),p().documentElement.style.overflow="hidden",r0(p().body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,nP(p(),"keydown",this.boundFullWindowOnEscKey_),p().documentElement.style.overflow=this.docOrigOverflow,r1(p().body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){if(void 0!==e){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&d().documentPictureInPicture){let e=p().createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(rY("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),d().documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(nh(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",t=>{let r=t.target.querySelector(".video-js");e.parentNode.replaceChild(r,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in p()&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return d().documentPictureInPicture&&d().documentPictureInPicture.window?(d().documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in p()?p().exitPictureInPicture():void 0}handleKeyDown(e){let{userActions:t}=this.options_;!t||!t.hotkeys||(e=>{let t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;let r=["button","checkbox","hidden","radio","reset","submit"];return"input"===t?-1===r.indexOf(e.type):-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){let{fullscreenKey:t=t=>"f"===e.key.toLowerCase(),muteKey:r=t=>"m"===e.key.toLowerCase(),playPauseKey:n=t=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=this.options_.userActions?this.options_.userActions.hotkeys:{};if(t.call(this,e)){e.preventDefault(),e.stopPropagation();let t=n4.getComponent("FullscreenToggle");!1!==p()[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),n4.getComponent("MuteToggle").prototype.handleClick.call(this,e)):n.call(this,e)&&(e.preventDefault(),e.stopPropagation(),n4.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let r=0,n=this.options_.techOrder;r<n.length;r++){let i=n[r],o=i$.getTech(i);if(o||(o=n4.getComponent(i)),!o){rc.error(`The "${i}" tech is undefined. Skipped browser support check for that tech.`);continue}if(o.isSupported()&&(t=o.canPlayType(e)))return t}return""}selectSource(e){let t;let r=this.options_.techOrder.map(e=>[e,i$.getTech(e)]).filter(([e,t])=>t?t.isSupported():(rc.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),n=function(e,t,r){let n;return e.some(e=>
73t.some(t=>{if(n=r(e,t))return!0})),n},i=e=>(t,r)=>e(r,t),o=([e,t],r)=>{if(t.canPlaySource(r,this.options_[e.toLowerCase()]))return{source:r,tech:e}};return(t=this.options_.sourceOrder?n(e,r,i(o)):n(r,e,o))||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();let r=oe(e);if(!r.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,t||(this.cache_.sources=r),this.updateSourceCaches_(r[0]),iK(this,r[0],(e,n)=>{if(this.middleware_=n,t||(this.cache_.sources=r),this.updateSourceCaches_(e),this.src_(e))return r.length>1?this.handleSrc_(r.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());iZ(n,this.tech_)}),r.length>1){let e=()=>{this.error(null),this.handleSrc_(r.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}src(e){return this.handleSrc_(e,!1)}src_(e){let t=this.selectSource([e]);return!t||(n1(t.tech,this.techName_)?this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1})),!1)}load(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_("load")}reset(){this.paused()?this.doReset_():il(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),nH(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);let{currentTimeDisplay:e,durationDisplay:t,progressControl:r,remainingTimeDisplay:n}=this.controlBar||{},{seekBar:i}=r||{};e&&e.updateContent(),t&&t.updateContent(),n&&n.updateContent(),i&&(i.update(),i.loadProgressBar&&i.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){let e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){if(void 0!==e){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")}autoplay(e){let t;if(void 0===e)return this.options_.autoplay||!1;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){if(void 0!==e){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){let e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
73sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(t9("beforeerror").forEach(t=>{let r=t(this,e);if(!(rm(r)&&!Array.isArray(r)||"string"==typeof r||"number"==typeof r||null===r)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=r}),this.options_.suppressNotSupportedError&&e&&4===e.code){let t=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),this.one("loadstart",function(){this.off(["click","touchstart"],t)});return}if(null===e){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new ia(e),this.addClass("vjs-error"),rc.error(`(CODE:${this.error_.code} ${ia.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),t9("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,r,n;let i=nL(this,this.reportUserActivity),o=function(e){(e.screenX!==t||e.screenY!==r)&&(t=e.screenX,r=e.screenY,i())},a=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},s=function(t){i(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",o),this.on("mouseup",s),this.on("mouseleave",s);let l=this.getChild("controlBar");!l||rH||rk||(l.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",i),this.on("keyup",i);let c=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(n);let e=this.options_.inactivityTimeout;e<=0||(n=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))};this.setInterval(c,250)}playbackRate(e){if(void 0!==e){this.techCall_("setPlaybackRate",e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0!==e){this.isAudio_=!!e;return}return!!this.isAudio_}updatePlayerHeightOnAudioOnlyMode_(){let e=this.getChild("ControlBar");e&&this.audioOnlyCache_.controlBarHeight!==e.currentHeight()&&(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");let e=this.children(),t=this.getChild("ControlBar"),r=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=r,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(r),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEac
73h(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){let e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e)?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()})}addTextTrack(e,t,r){if(this.tech_)return this.tech_.addTextTrack(e,t,r)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),nH(this)&&this.trigger("languagechange"))}languages(){return ry(aQ.prototype.options_.languages,this.languages_)}toJSON(){let e=ry(this.options_),t=e.tracks;e.tracks=[];for(let r=0;r<t.length;r++){let n=t[r];(n=ry(n)).player=void 0,e.tracks[r]=n}return e}createModal(e,t){(t=t||{}).content=e||"";let r=new ip(this,t);return this.addChild(r),r.on("dispose",()=>{this.removeChild(r)}),r.open(),r}updateCurrentBreakpoint_(){if(!this.responsive())return;let e=this.currentBreakpoint(),t=this.currentWidth();for(let r=0;r<aY.length;r++){let n=aY[r];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(aJ[e]),this.addClass(aJ[n]),this.breakpoint_=n;break}}}removeCurrentBreakpoint_(){let e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},aX,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;e=!!e;let t=this.responsive_;if(e!==t)return this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return aJ[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;let r=this.crossOrigin();this.reset(),this.cache_.media=ry(e);let{artist:n,artwork:i,description:o,poster:a,src:s,textTracks:l,title:c}=this.cache_.media;!i&&a&&(this.cache_.media.artwork=[{src:a,type:i7(a)}]),r&&this.crossOrigin(r),s&&this.src(s),a&&this.poster(a),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:c,description:o||n||""}),this.ready(t)}getMedia(){if(!this.cache_.media){let e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:i7(t.poster)}]),t}return ry(this.cache_.media)}static getTagSettings(e){let t={sources:[],tracks:[]},r=r3(e),n=r["data-setup"];if(rQ(e,"vjs-fill")&&(r.fill=!0),rQ(e,"vjs-fluid")&&(r.fluid=!0),null!==n){let[e,t]=m()(n||"{}");e&&rc.error(e),Object.assign(r,t)}if(Object.assign(t,r),e.hasChildNodes()){let r=e.childNodes;for(let e=0,n=r.length;e<n;e++){let n=r[e],i=n.nodeName.toLowerCase();"source"===i?t.sources.push(r3(n)):"track"===i&&t.tracks.push(r3(n))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>"number"==typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}
73iH.names.forEach(function(e){let t=iH[e];aQ.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),aQ.prototype.crossorigin=aQ.prototype.crossOrigin,aQ.players={};let a0=d().navigator;aQ.prototype.options_={techOrder:i$.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:a0&&(a0.languages&&a0.languages[0]||a0.userLanguage||a0.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1},aK.forEach(function(e){aQ.prototype[`handleTech${n0(e)}_`]=function(){return this.trigger(e)}}),n4.registerComponent("Player",aQ);let a1="plugin",a2="activePlugins_",a4={},a3=e=>a4.hasOwnProperty(e),a6=e=>a3(e)?a4[e]:void 0,a5=(e,t)=>{e[a2]=e[a2]||{},e[a2][t]=!0},a8=(e,t,r)=>{let n=(r?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)},a7=function(e,t){let r=function(){a8(this,{name:e,plugin:t,instance:null},!0);let r=t.apply(this,arguments);return a5(this,e),a8(this,{name:e,plugin:t,instance:r}),r};return Object.keys(t).forEach(function(e){r[e]=t[e]}),r},a9=(e,t)=>(t.prototype.name=e,function(...r){a8(this,{name:e,plugin:t,instance:null},!0);let n=new t(...[this,...r]);return this[e]=()=>n,a8(this,n.getEventHash()),n});class se{constructor(e){if(this.constructor===se)throw Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),nY(this),delete this.trigger,nX(this,this.constructor.defaultState),a5(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return nI(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){let{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[a2][e]=!1,this.player=this.state=null,t[e]=a9(e,a4[e])}static isBasic(e){let t="string"==typeof e?a6(e):e;return"function"==typeof t&&!se.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!=typeof e)throw Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(a3(e))rc.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(aQ.prototype.hasOwnProperty(e))throw Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!=typeof t)throw Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return a4[e]=t,e!==a1&&(se.isBasic(t)?aQ.prototype[e]=a7(e,t):aQ.prototype[e]=a9(e,t)),t}static deregisterPlugin(e){if(e===a1)throw Error("Cannot de-register base plugin.");a3(e)&&(delete a4[e],delete aQ.prototype[e])}static getPlugins(e=Object.keys(a4)){let t;return e.forEach(e=>{let r=a6(e);r&&((t=t||{})[e]=r)}),t}static getPluginVersion(e){let t=a6(e);return t&&t.VERSION||""}}function st(e,t){let r=!1;return function(...n){return r||rc.warn(e),r=!0,t.apply(this,n)}}function sr(e,t,r,n){return st(`${t} is deprecated and will be removed in ${e}.0; please use ${r} instead.`,n)}se.getPlugin=a6,se.BASE_PLUGIN_NAME=a1,se.registerPlugin(a1,se),aQ.prototype.usingPlugin=function(e){return!!this[a2]&&!0===this[a2][e]},aQ.prototype.hasPlugin=function(e){return!!a3(e)};var sn={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};let si=e=>0===e.indexOf("#")?e.slice(1):e;function so(e,t,r){let n=so.getPlayer(e);if(n)return t&&rc.warn(`Player "${e}" is already initialised. Options will not be applied.`),r&&n.ready(r),n;let i="string"==typeof e?nc("#"+si(e)):e;if(!rG(i))throw TypeError("The element or ID supplied is not val
73id. (videojs)");let o="getRootNode"in i&&i.getRootNode() instanceof d().ShadowRoot?i.getRootNode():i.ownerDocument.body;return i.ownerDocument.defaultView&&o.contains(i)||rc.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player")?i.parentNode:i).cloneNode(!0)),t9("beforesetup").forEach(e=>{let r=e(i,ry(t));if(!rm(r)||Array.isArray(r)){rc.error("please return an object in beforesetup hooks");return}t=ry(t,r)}),n=new(n4.getComponent("Player"))(i,t,r),t9("setup").forEach(e=>e(n)),n}if(so.hooks_=t7,so.hooks=t9,so.hook=re,so.hookOnce=rr,so.removeHook=rt,!0!==d().VIDEOJS_NO_DYNAMIC_STYLE&&rV()){let e=nc(".vjs-styles-defaults");if(!e){e=nv("vjs-styles-defaults");let t=nc("head");t&&t.insertBefore(e,t.firstChild),nb(e,`
74      .video-js {
75        width: 300px;
76        height: 150px;
77      }
78
79      .vjs-fluid:not(.vjs-audio-only-mode) {
80        padding-top: 56.25%
81      }
82    `)}}ng(1,so),so.VERSION=t8,so.options=aQ.prototype.options_,so.getPlayers=()=>aQ.players,so.getPlayer=e=>{let t;let r=aQ.players;if("string"==typeof e){let n=si(e),i=r[n];if(i)return i;t=nc("#"+n)}else t=e;if(rG(t)){let{player:e,playerId:n}=t;if(e||r[n])return e||r[n]}},so.getAllPlayers=()=>Object.keys(aQ.players).map(e=>aQ.players[e]).filter(Boolean),so.players=aQ.players,so.getComponent=n4.getComponent,so.registerComponent=(e,t)=>(i$.isTech(t)&&rc.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),n4.registerComponent.call(n4,e,t)),so.getTech=i$.getTech,so.registerTech=i$.registerTech,so.use=iG,Object.defineProperty(so,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(so.middleware,"TERMINATOR",{value:iV,writeable:!1,enumerable:!0}),so.browser=r$,so.obj=r_,so.mergeOptions=sr(9,"videojs.mergeOptions","videojs.obj.merge",ry),so.defineLazyProperty=sr(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",rb),so.bind=sr(9,"videojs.bind","native Function.prototype.bind",nL),so.registerPlugin=se.registerPlugin,so.deregisterPlugin=se.deregisterPlugin,so.plugin=(e,t)=>(rc.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),se.registerPlugin(e,t)),so.getPlugins=se.getPlugins,so.getPlugin=se.getPlugin,so.getPluginVersion=se.getPluginVersion,so.addLanguage=function(e,t){return e=(""+e).toLowerCase(),so.options.languages=ry(so.options.languages,{[e]:t}),so.options.languages[e]},so.log=rc,so.createLogger=ru,so.time=ii,so.createTimeRange=sr(9,"videojs.createTimeRange","videojs.time.createTimeRanges",n8),so.createTimeRanges=sr(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",n8),so.formatTime=sr(9,"videojs.formatTime","videojs.time.formatTime",ir),so.setFormatTime=sr(9,"videojs.setFormatTime","videojs.time.setFormatTime",ie),so.resetFormatTime=sr(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",it),so.parseUrl=sr(9,"videojs.parseUrl","videojs.url.parseUrl",iC),so.isCrossOrigin=sr(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",iO),so.EventTarget=nU,so.any=nN,so.on=nC,so.one=nO,so.off=nP,so.trigger=nI,so.xhr=y(),so.TextTrack=iL,so.AudioTrack=iM,so.VideoTrack=ij,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{so[e]=function(){return rc.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),np[e].apply(null,arguments)}}),so.computedStyle=sr(9,"videojs.computedStyle","videojs.dom.computedStyle",nd),so.dom=np,so.fn=nB,so.num=oI,so.str=n2,so.url=iN,so.Error=sn;class sa{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class ss extends so.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;let r=this.levels_.length;return t=new sa(e),""+r in this||Object.defineProperty(this,r,{get(){return this.levels_[r]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let r=0,n=this.length;r<n;r++)if(this[r]===e){t=this.levels_.splice(r,1)[0],this.selectedIndex_===r?this.selectedIndex_=-1:this.selectedIndex_>r&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,r=this.length;t<r;t++){let r=this[t];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}for(let e in ss.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},ss.prototype.allowedEvents_)ss.prototype["on"+e]=null;var sl="4.1.0";let sc=function(e,t){let r=e.qualityLevels,n=new ss,i=function(){n.dispose(),e.qualityLevels=r,e.off("dispose",i)};return e.on("dispose",i),e.qualityLevels=()=>n,e.qualityLevels.VERSION=sl,n},su=function(e){return sc(this,so.obj.merge({},e))};so.registerPlugin("qualityLevels",su),su.VERSION=sl;let sd=x,sh=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,sp=e=>so.log.debug?so.log.debug.bind(so,"VHS:",`${e} >`):function(){};function sf(...e){let t=so.obj||so;return(t.merge||t.mergeOptions).apply(t,e)}function sm(...e){let t=so.time||so;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}function sg(e){if(0===e.length)return"Buffered Ranges are empty";let t="Buffered Ranges: \n";for(let r=0;r<e.length;r++){let n=e.start(r),i=e.end(r);t+=`${n} --> ${i}. Duration (${i-n})
83`}return t}let sy=1/30,sv=1/30*3,sb=function(e,t){let r;let n=[];if(e&&e.length)for(r=0;r<e.length;r++)t(e.start(r),e.end(r))&&n.push([e.start(r),e.end(r)]);return sm(n)},s_=function(e,t){return sb(e,function(e,r){return e-sv<=t&&r+sv>=t})},sw=function(e,t){return sb(e,function(e){return e-sy>=t})},sS=function(e){if(e.length<2)return sm();let t=[];for(let r=1;r<e.length;r++){let n=e.end(r-1),i=e.start(r);t.push([n,i])}return sm(t)},sk=function(e,t){let r=null,n=null,i=0,o=[],a=[];if(!e||!e.length||!t||!t.length)return sm();let s=e.length;for(;s--;)o.push({time:e.start(s),type:"start"}),o.push({time:e.end(s),type:"end"});for(s=t.length;s--;)o.push({time:t.start(s),type:"start"}),o.push({time:t.end(s),type:"end"});for(o.sort(function(e,t){return e.time-t.time}),s=0;s<o.length;s++)"start"===o[s].type?2==++i&&(r=o[s].time):"end"===o[s].type&&1==--i&&(n=o[s].time),null!==r&&null!==n&&(a.push([r,n]),r=null,n=null);return sm(a)},sx=e=>{let t=[];if(!e||!e.length)return"";for(let r=0;r<e.length;r++)t.push(e.start(r)+" => "+e.end(r));return t.join(", ")},sE=function(e,t,r=1){return((e.length?e.end(e.length-1):0)-t)/r},sT=e=>{let t=[];for(let r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t},sA=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e||e.length!==t.length)return!0;for(let r=0;r<e.length;r++)if(e.start(r)!==t.start(r)||e.end(r)!==t.end(r))return!0;return!1},sC=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},sP=function(e,t){let r=0;if(!e||!e.length)return r;for(let n=0;n<e.length;n++){let i=e.start(n),o=e.end(n);if(!(t>o)){if(t>i&&t<=o){r+=o-t;continue}r+=o-i}}return r},sI=(e,t)=>{if(!t.preload)return t.duration;let r=0;
83return(t.parts||[]).forEach(function(e){r+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(r+=e.partTargetDuration)}),r},sO=e=>(e.segments||[]).reduce((e,t,r)=>(t.parts?t.parts.forEach(function(n,i){e.push({duration:n.duration,segmentIndex:r,partIndex:i,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:r,partIndex:null,segment:t,part:null}),e),[]),sN=e=>{let t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},sD=({preloadSegment:e})=>{if(!e)return;let{parts:t,preloadHints:r}=e;return(r||[]).reduce((e,t)=>e+("PART"===t.type?1:0),0)+(t&&t.length?t.length:0)},sR=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;let r=sN(t).length>0;return r&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:r&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},sL=function(e,t){let r=0,n=t-e.mediaSequence,i=e.segments[n];if(i){if(void 0!==i.start)return{result:i.start,precise:!0};if(void 0!==i.end)return{result:i.end-i.duration,precise:!0}}for(;n--;){if(void 0!==(i=e.segments[n]).end)return{result:r+i.end,precise:!0};if(r+=sI(e,i),void 0!==i.start)return{result:r+i.start,precise:!0}}return{result:r,precise:!1}},sM=function(e,t){let r,n=0,i=t-e.mediaSequence;for(;i<e.segments.length;i++){if(void 0!==(r=e.segments[i]).start)return{result:r.start-n,precise:!0};if(n+=sI(e,r),void 0!==r.end)return{result:r.end-n,precise:!0}}return{result:-1,precise:!1}},sj=function(e,t,r){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;let n=sL(e,t);if(n.precise)return n.result;let i=sM(e,t);return i.precise?i.result:n.result+r},sB=function(e,t,r){if(!e)return 0;if("number"!=typeof r&&(r=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return d()[1/0]}return sj(e,t,r)},sU=function({defaultDuration:e,durationList:t,startIndex:r,endIndex:n}){let i=0;if(r>n&&([r,n]=[n,r]),r<0){for(let t=r;t<Math.min(0,n);t++)i+=e;r=0}for(let e=r;e<n;e++)i+=t[e].duration;return i},sF=function(e,t,r,n){if(!e||!e.segments)return null;if(e.endList)return sB(e);if(null===t)return null;t=t||0;let i=sj(e,e.mediaSequence+e.segments.length,t);return r&&(i-=n="number"==typeof n?n:sR(null,e)),Math.max(0,i)},sH=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},sz=function(e){return e.excludeUntil&&e.excludeUntil===1/0},s$=function(e){let t=sH(e);return!e.disabled&&!t},sq=function(e,t){return t.attributes&&t.attributes[e]},sW=function(e,t,r,n=0){return sq("BANDWIDTH",r)?(e*r.attributes.BANDWIDTH-8*n)/t:NaN},sV=(e,t)=>{if(1===e.playlists.length)return!0;let r=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(e=>!!s$(e)&&(e.attributes.BANDWIDTH||0)<r).length},sG=(e,t)=>(!!e||!!t)&&(!!e||!t)&&(!e||!!t)&&(e===t||!!e.id&&!!t.id&&e.id===t.id||!!e.resolvedUri&&!!t.resolvedUri&&e.resolvedUri===t.resolvedUri||!!e.uri&&!!t.uri&&e.uri===t.uri),sK=function(e,t){let r=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},n=!1;for(let e in r){for(let i in r[e])if(n=t(r[e][i]))break;if(n)break}return!!n},sZ=e=>{if(!e||!e.playlists||!e.playlists.length)return sK(e,e=>e.playlists&&e.playlists.length||e.uri);for(let t=0;t<e.playlists.length;t++){let r=e.playlists[t],n=r.attributes&&r.attributes.CODECS;if(!(n&&n.split(",").every(e=>W(e))||sK(e,e=>sG(r,e))))return!1}return!0};var sY={liveEdgeDelay:sR,duration:sB,seekable:function(e,t,r){let n=t||0,i=sF(e,t,!0,r);return null===i?sm():(i<n&&(i=n),sm(n,i))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:r,startingPartIndex:n,startTime:i,exactManifestTimings:o}){let a=t-i,s=sO(e),l=0;for(let e=0;e<s.length;e++){let t=s[e];if(r===t.segmentIndex&&("number"!=typeof n||"number"!=typeof t.partIndex||n===t.partIndex)){l=e;break}}if(a<0){if(l>0)for(let t=l-1;t>=0;t--){let r=s[t];if(a+=r.duration,o){if(a<0)continue}else if(a+sy<=0)continue;return{partIndex:r.partIndex,segmentIndex:r.segmentIndex,startTime:i-sU({defaultDuration:e.targetDuration,durationList:s,startIndex:l,endIndex:t})}}return{partIndex:s[0]&&s[0].partIndex||null,segmentIndex:s[0]&&s[0].segmentIndex||0,startTime:t}}if(l<0){for(let r=l;r<0;r++)if((a-=e.targetDuration)<0)return{partIndex:s[0]&&s[0].partIndex||null,segmentIndex:s[0]&&s[0].segmentIndex||0,startTime:t};l=0}for(let t=l;t<s.length;t++){let r=s[t];a-=r.duration;let n=r.duration>sy,c=0===a,u=n&&a+sy>=0;if(!c&&!u||t===s.length-1){if(o){if(a>0)continue}else if(a-sy>=0)continue;
vendor: 3,053 bytes, line 83
83return{partIndex:r.partIndex,segmentIndex:r.segmentIndex,startTime:i+sU({defaultDuration:e.targetDuration,durationList:s,startIndex:l,endIndex:t})}}}return{segmentIndex:s[s.length-1].segmentIndex,partIndex:s[s.length-1].partIndex,startTime:t}},isEnabled:s$,isDisabled:function(e){return e.disabled},isExcluded:sH,isIncompatible:sz,playlistEnd:sF,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:sq,estimateSegmentRequestTime:sW,isLowestEnabledRendition:sV,isAudioOnly:sZ,playlistMatch:sG,segmentDurationWithParts:sI};let{log:sJ}=so,sX=(e,t)=>`${e}-${t}`,sQ=(e,t,r)=>`placeholder-uri-${e}-${t}-${r}`,s0=({onwarn:e,oninfo:t,manifestString:r,customTagParsers:n=[],customTagMappers:i=[],llhls:o})=>{let a=new B;e&&a.on("warn",e),t&&a.on("info",t),n.forEach(e=>a.addParser(e)),i.forEach(e=>a.addTagMapper(e)),a.push(r),a.end();let s=a.manifest;if(!o&&(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){s.hasOwnProperty(e)&&delete s[e]}),s.segments&&s.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!s.targetDuration){let t=10;s.segments&&s.segments.length&&(t=s.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),s.targetDuration=t}let l=sN(s);if(l.length&&!s.partTargetDuration){let t=l.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),sJ.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),s.partTargetDuration=t}return s},s1=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(r=>{if(e.mediaGroups[r])for(let n in e.mediaGroups[r])for(let i in e.mediaGroups[r][n])t(e.mediaGroups[r][n][i],r,n,i)})},s2=({playlist:e,uri:t,id:r})=>{e.id=r,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},s4=e=>{let t=e.playlists.length;for(;t--;){let r=e.playlists[t];s2({playlist:r,id:sX(t,r.uri)}),r.resolvedUri=sd(e.uri,r.uri),e.playlists[r.id]=r,e.playlists[r.uri]=r,r.attributes.BANDWIDTH||sJ.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},s3=e=>{s1(e,t=>{t.uri&&(t.resolvedUri=sd(e.uri,t.uri))})},s6=(e,t)=>{let r=sX(0,t),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:d().location.href,resolvedUri:d().location.href,playlists:[{uri:t,id:r,resolvedUri:t,attributes:{}}]};return n.playlists[r]=n.playlists[0],n.playlists[t]=n.playlists[0],n},s5=(e,t,r=sQ)=>{e.uri=t;for(let t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){let r=`placeholder-uri-${t}`;e.playlists[t].uri=r}let n=sZ(e);s1(e,(t,i,o,a)=>{if(!t.playlists||!t.playlists.length){if(n&&"AUDIO"===i&&!t.uri)for(let t=0;t<e.playlists.length;t++){let r=e.playlists[t];if(r.attributes&&r.attributes.AUDIO&&r.attributes.AUDIO===o)return}t.playlists=[(0,_.Z)({},t)]}
83t.playlists.forEach(function(t,n){let s=r(i,o,a,t),l=sX(n,s);t.uri?t.resolvedUri=t.resolvedUri||sd(e.uri,t.uri):(t.uri=0===n?s:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),s4(e),s3(e)};class s8{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_||!e.length)return;let[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;let[t]=e,r=t.startDate.getTime();this.trimProcessedDateRanges_(r),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];let e={},t=[];for(let r of(this.pendingDateRanges_.forEach((r,n)=>{if(!this.processedDateRanges_.has(n)&&(r.startTime=r.startDate.getTime()/1e3-this.offset_,r.processDateRange=()=>this.processDateRange(r),t.push(r),r.class)){if(e[r.class]){let t=e[r.class].push(r);r.classListIndex=t-1}else e[r.class]=[r],r.classListIndex=0}}),t)){let t=e[r.class]||[];r.endDate?r.endTime=r.endDate.getTime()/1e3-this.offset_:r.endOnNext&&t[r.classListIndex+1]?r.endTime=t[r.classListIndex+1].startTime:r.duration?r.endTime=r.startTime+r.duration:r.plannedDuration?r.endTime=r.startTime+r.plannedDuration:r.endTime=r.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((t,r)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(r)})}}let s7=22,s9=({requestType:e,request:t,error:r,parseFailure:n})=>{let i=t.status<200||t.status>299,o=t.status>=400&&t.status<=499,a={uri:t.uri,requestType:e},s=i&&!o||n;if(r&&o)a.error=(0,_.Z)({},r),a.errorType=so.Error.NetworkRequestFailed;else if(t.aborted)a.errorType=so.Error.NetworkRequestAborted;else if(t.timedout)a.erroType=so.Error.NetworkRequestTimeout;else if(s){let e=n?so.Error.NetworkBodyParserFailed:so.Error.NetworkBadStatus;a.errorType=e,a.status=t.status,a.headers=t.headers}return a},{EventTarget:le}=so,lt=(e,t)=>{if(t.endList||!t.serverControl)return e;let r={};if(t.serverControl.canBlockReload){let{preloadSegment:e}=t,n=t.mediaSequence+t.segments.length;if(e){let i=e.parts||[],o=sD(t)-1;o>-1&&o!==i.length-1&&(r._HLS_part=o),(o>-1||i.length)&&n--}r._HLS_msn=n}if(t.serverControl&&t.serverControl.canSkipUntil&&(r._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(r).length){let t=new(d()).URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){r.hasOwnProperty(e)&&t.searchParams.set(e,r[e])}),e=t.toString()}return e},lr=(e,t)=>{if(!e)return t;let r=sf(e,t);if(e.preloadHints&&!t.preloadHints&&delete r.preloadHints,e.parts&&!t.parts)delete r.parts;else if(e.parts&&t.parts)for(let n=0;n<t.parts.length;n++)e.parts&&e.parts[n]&&(r.parts[n]=sf(e.parts[n],t.parts[n]));return!e.skipped&&t.skipped&&(r.skipped=!1),e.preload&&!t.preload&&(r.preload=!1),r},ln=(e,t,r)=>{let n;let i=e.slice(),o=t.slice();r=r||0;let a=[];for(let e=0;e<o.length;e++){let t=i[e+r],s=o[e];t?(n=t.map||n,a.push(lr(t,s))):(n&&!s.map&&(s.map=n),a.push(s))}return a},li=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=sd(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=sd(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=sd(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=sd(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||(e.resolvedUri=sd(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||(e.resolvedUri=sd(t,e.uri))})},lo=function(e){let t=e.segments||[],r=e.preloadSegment;if(r&&r.parts&&r.parts.length){if(r.preloadHints){for(let e=0;e<r.preloadHints.length;e++)if("MAP"===r.preloadHints[e].type)return t}r.duration=e.targetDuration,r.preload=!0,t.push(r)}return t},la=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,ls=(e,t,r=la)=>{let n=sf(e,{}),i=n.playlists[t.id];if(!i||r(i,t))return null;t.segments=lo(t);let o=sf(i,t);if(o.preloadSegment&&!t.preloadSegment&&delete o.preloadSegment,i.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}o.segments=ln(i.segments,t.segments,t.mediaSequence-i.mediaSequence)}
vendor: 4,252 bytes, line 83
83o.segments.forEach(e=>{li(e,o.resolvedUri)});for(let e=0;e<n.playlists.length;e++)n.playlists[e].id===t.id&&(n.playlists[e]=o);return n.playlists[t.id]=o,n.playlists[t.uri]=o,s1(e,(e,r,n,i)=>{if(e.playlists)for(let r=0;r<e.playlists.length;r++)t.id===e.playlists[r].id&&(e.playlists[r]=o)}),n},ll=(e,t)=>{let r=e.segments||[],n=r[r.length-1],i=n&&n.parts&&n.parts[n.parts.length-1],o=i&&i.duration||n&&n.duration;return t&&o?1e3*o:500*(e.partTargetDuration||e.targetDuration||10)},lc=(e,t,r)=>{if(!e)return;let n=[];return e.forEach(e=>{if(!e.attributes)return;let{BANDWIDTH:t,RESOLUTION:r,CODECS:i}=e.attributes;n.push({id:e.id,bandwidth:t,resolution:r,codecs:i})}),{type:t,isLive:r,renditions:n}};class lu extends le{constructor(e,t,r={}){if(super(),!e)throw Error("A non-empty playlist URL or object is required");this.logger_=sp("PlaylistLoader");let{withCredentials:n=!1}=r;this.src=e,this.vhs_=t,this.withCredentials=n,this.addDateRangesToTextTrack_=r.addDateRangesToTextTrack;let i=t.options_;this.customTagParsers=i&&i.customTagParsers||[],this.customTagMappers=i&&i.customTagMappers||[],this.llhls=i&&i.llhls,this.dateRangesStorage_=new s8,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){let e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);let t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;let e=this.media(),t=sd(this.main.uri,e.uri);this.llhls&&(t=lt(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},(e,t)=>{if(this.request){if(e)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,t,r){let{uri:n,id:i}=t;this.request=null,r&&(this.state=r),this.error={playlist:this.main.playlists[i],status:e.status,message:`HLS playlist request error at URL: ${n}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:s9({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{return s0({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}catch(e){this.error=e,this.error.metadata={errorType:so.Error.StreamingHlsPlaylistParserError,error:e}}}haveMetadata({playlistString:e,playlistObject:t,url:r,id:n}){this.request=null,this.state="HAVE_METADATA";let i={playlistInfo:{type:"media",uri:r}};this.trigger({type:"playlistparsestart",metadata:i});let o=t||this.parseManifest_({url:r,manifestString:e});o.lastRequest=Date.now(),s2({playlist:o,uri:r,id:n});let a=ls(this.main,o);this.targetDuration=o.partTargetDuration||o.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[n]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(ll(this.media(),!!a)),i.parsedPlaylist=lc(this.main.playlists,i.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:i}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),d().clearTimeout(this.mediaUpdateTimeout),d().clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new s8,this.off()}stopRequest(){if(this.request){let e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(d().clearTimeout(this.finalRenditionTimeout),t){let t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;
83this.finalRenditionTimeout=d().setTimeout(this.media.bind(this,e,!1),t);return}let r=this.state,n=!this.media_||e.id!==this.media_.id,i=this.main.playlists[e.id];if(i&&i.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,n&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(ll(e,!0)),!n)return;if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;let o={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:o}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,n)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=sh(e.resolvedUri,n),t)return this.playlistRequestError(this.request,e,r);this.trigger({type:"playlistrequestcomplete",metadata:o}),this.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(d().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(d().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);let t=this.media();if(e){let e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=d().setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e);return}if(!this.started){this.start();return}t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(d().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=d().setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}
83start(){if(this.started=!0,"object"==typeof this.src){this.src.uri||(this.src.uri=d().location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}let e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,r)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:r.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:r.responseText,code:2,metadata:s9({requestType:r.requestType,request:r,error:t})},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=sh(this.src,r),this.trigger({type:"playlistparsestart",metadata:e});let n=this.parseManifest_({manifestString:r.responseText,url:this.src});e.parsedPlaylist=lc(n.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(n)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,s5(this.main,this.srcUri()),e.playlists.forEac
83h(e=>{e.segments=lo(e),e.segments.forEach(t=>{li(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}let t=this.srcUri()||d().location.href;this.main=s6(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){let r=this.main,n=e.ID,i=r.playlists.length;for(;i--;){let o=r.playlists[i];if(o.attributes["PATHWAY-ID"]===n){let a=o.resolvedUri,s=o.id;if(t){let t=this.createCloneURI_(o.resolvedUri,e),a=sX(n,t),s=this.createCloneAttributes_(n,o.attributes),l=this.createClonePlaylist_(o,a,e,s);r.playlists[i]=l,r.playlists[a]=l,r.playlists[t]=l}else r.playlists.splice(i,1);delete r.playlists[s],delete r.playlists[a]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){let r=this.main,n=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{if(r.mediaGroups[e]&&r.mediaGroups[e][n]){for(let t in r.mediaGroups[e])if(t===n){for(let n in r.mediaGroups[e][t])r.mediaGroups[e][t][n].playlists.forEac
83h((e,t)=>{let n=r.playlists[e.id],i=n.id,o=n.resolvedUri;delete r.playlists[i],delete r.playlists[o]});delete r.mediaGroups[e][t]}}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){let r=this.main,n=r.playlists.length,i=this.createCloneURI_(t.resolvedUri,e),o=sX(e.ID,i),a=this.createCloneAttributes_(e.ID,t.attributes),s=this.createClonePlaylist_(t,o,e,a);r.playlists[n]=s,r.playlists[o]=s,r.playlists[i]=s,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){let t=e.ID,r=e["BASE-ID"],n=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(i=>{if(n.mediaGroups[i]&&!n.mediaGroups[i][t]){for(let o in n.mediaGroups[i])if(o===r)for(let r in n.mediaGroups[i][t]={},n.mediaGroups[i][o]){let a=n.mediaGroups[i][o][r];n.mediaGroups[i][t][r]=(0,_.Z)({},a);let s=n.mediaGroups[i][t][r],l=this.createCloneURI_(a.resolvedUri,e);s.resolvedUri=l,s.uri=l,s.playlists=[],a.playlists.forEach((o,a)=>{let l=n.playlists[o.id],c=sQ(i,t,r),u=sX(t,c);if(l&&!n.playlists[u]){let t=this.createClonePlaylist_(l,u,e),r=t.resolvedUri;n.playlists[u]=t,n.playlists[r]=t}s.playlists[a]=this.createClonePlaylist_(o,u,e)})}}})}createClonePlaylist_(e,t,r,n){let i=this.createCloneURI_(e.resolvedUri,r),o={resolvedUri:i,uri:i,id:t};return e.segments&&(o.segments=[]),n&&(o.attributes=n),sf(e,o)}createCloneURI_(e,t){let r=new URL(e);r.hostname=t["URI-REPLACEMENT"].HOST;let n=t["URI-REPLACEMENT"].PARAMS;for(let e of Object.keys(n))r.searchParams.set(e,n[e]);return r.href}createCloneAttributes_(e,t){let r={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{t[n]&&(r[n]=e)}),r}getKeyIdSet(e){if(e.contentProtection){let t=new Set;for(let r in e.contentProtection){let n=e.contentProtection[r].attributes.keyId;n&&t.add(n.toLowerCase())}return t}}}let ld=function(e,t,r,n){let i="arraybuffer"===e.responseType?e.response:e.responseText;t||!i||(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=i.byteLength||i.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8e3))),r.headers&&(e.responseHeaders=r.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===r.statusCode||206===r.statusCode||0===r.statusCode||(t=Error("XHR Failed with a response of: "+(e&&(i||e.responseText)))),n(t,e)},lh=(e,t)=>{if(!e||!e.size)return;let r=t;return e.forEach(e=>{r=e(r)}),r},lp=(e,t,r,n)=>{e&&e.size&&e.forEach(e=>{e(t,r,n)})},lf=function(){let e=function e(t,r){t=sf({timeout:45e3},t);let n=e.beforeRequest||so.Vhs.xhr.beforeRequest,i=e._requestCallbackSet||so.Vhs.xhr._requestCallbackSet||new Set,o=e._responseCallbackSet||so.Vhs.xhr._responseCallbackSet;n&&"function"==typeof n&&(so.log.warn("beforeRequest is deprecated, use onRequest instead."),i.add(n));let a=!0===so.Vhs.xhr.original?so.xhr:so.Vhs.xhr,s=lh(i,t);i.delete(n);let l=a(s||t,function(e,t){return lp(o,l,e,t),ld(l,e,t,r)}),c=l.abort;return l.abort=function(){return l.aborted=!0,c.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},lm=function(e){let t;return"bytes="+e.offset+"-"+(t="bigint"==typeof e.offset||"bigint"==typeof e.length?d().BigInt(e.offset)+d().BigInt(e.length)-d().BigInt(1):e.offset+e.length-1)},lg=function(e){let t={};return e.byterange&&(t.Range=lm(e.byterange)),t},ly=function(e,t){return e.start(t)+"-"+e.end(t)},lv=function(e,t){let r=e.toString(16);return"00".substring(0,2-r.length)+r+(t%2?" ":"")},lb=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},l_=function(e){let t={};return Object.keys(e).forEach(r=>{let n=e[r];en(n)?t[r]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[r]=n}),t},lw=function(e){let t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},lS=function(e){return e.resolvedUri},lk=e=>{let t=Array.prototype.slice.call(e),r=16,n="";for(let e=0;e<t.length/r;e++)n+=t.slice(e*r,e*r+r).map(lv).join("")+" "+t.slice(e*r,e*r+r).map(lb).join("")+"\n";return n},lx=({bytes:e})=>lk(e);var lE=Object.freeze({__proto__:null,createTransferableMessage:l_,initSegmentId:lw,segmentKeyId:lS,hexDump:lk,tagDump:lx,textRanges:e=>{let t,r="";for(t=0;t<e.length;t++)r+=ly(e,t)+" ";return r}});let lT=.25,lA=(e,t)=>
83{if(!t.dateTimeObject)return null;let r=t.videoTimingInfo.transmuxerPrependedSeconds,n=e-(t.videoTimingInfo.transmuxedPresentationStart+r);return new Date(t.dateTimeObject.getTime()+1e3*n)},lC=e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds,lP=(e,t)=>{let r;try{r=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;let n=t.segments[0];if(r<new Date(n.dateTimeObject))return null;for(let e=0;e<t.segments.length-1&&(n=t.segments[e],!(r<new Date(t.segments[e+1].dateTimeObject)));e++);let i=t.segments[t.segments.length-1],o=i.dateTimeObject,a=i.videoTimingInfo?lC(i.videoTimingInfo):i.duration+i.duration*lT;return r>new Date(o.getTime()+1e3*a)?null:(r>new Date(o)&&(n=i),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:sY.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})},lI=(e,t)=>{let r;if(!t||!t.segments||0===t.segments.length)return null;let n=0;for(let i=0;i<t.segments.length&&!(e<=(n=(r=t.segments[i]).videoTimingInfo?r.videoTimingInfo.transmuxedPresentationEnd:n+r.duration));i++);let i=t.segments[t.segments.length-1];if(i.videoTimingInfo&&i.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>n){if(e>n+i.duration*lT)return null;r=i}return{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:n-r.duration,type:r.videoTimingInfo?"accurate":"estimate"}},lO=(e,t)=>{let r,n;try{r=new Date(e),n=new Date(t)}catch(e){}let i=r.getTime();return(n.getTime()-i)/1e3},lN=e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0},lD=({playlist:e,time:t,callback:r})=>{if(!r)throw Error("getProgramTime: callback must be provided");if(!e||void 0===t)return r({message:"getProgramTime: playlist and time must be provided"});let n=lI(t,e);if(!n)return r({message:"valid programTime was not found"});if("estimate"===n.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:n.estimatedStart});let i={mediaSeconds:t},o=lA(t,n.segment);return o&&(i.programDateTime=o.toISOString()),r(null,i)},lR=({programTime:e,playlist:t,retryCount:r=2,seekTo:n,pauseAfterSeek:i=!0,tech:o,callback:a})=>{if(!a)throw Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!n)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!o.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!lN(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});let s=lP(e,t);if(!s)return a({message:`${e} was not found in the stream`});let l=s.segment,c=lO(l.dateTimeObject,e);if("estimate"===s.type)return 0===r?a({message:`${e} is not buffered yet. Try again`}):(n(s.estimatedStart+c),void o.one("seeked",()=>{lR({programTime:e,playlist:t,retryCount:r-1,seekTo:n,pauseAfterSeek:i,tech:o,callback:a})}));let u=l.start+c,d=()=>a(null,o.currentTime());o.one("seeked",d),i&&o.pause(),n(u)},lL=(e,t)=>{if(4===e.readyState)return t()},lM=(e,t,r,n)=>{let i,o=[],a=!1,s=function(e,t,n,i){return t.abort(),a=!0,r(e,t,n,i)},l=function(e,t){if(a)return;if(e)return e.metadata=s9({requestType:n,request:t,error:e}),s(e,t,"",o);let r=t.responseText.substring(o&&o.byteLength||0,t.responseText.length);if(o=eh(o,ed(r,!0)),i=i||tR(o),o.length<10||i&&o.length<i+2)return lL(t,()=>s(e,t,"",o));let l=t3(o);return"ts"===l&&o.length<188||!l&&o.length<376?lL(t,()=>s(e,t,"",o)):s(null,t,l,o)},c=t({uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function({total:t,loaded:r}){return ld(e,null,{statusCode:e.status},l)})}},function(e,t){return ld(c,e,t,l)});return c},{EventTarget:lj}=so,lB=function(e,t){if(!la(e,t)||e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length)||!e.sidx&&t.sidx||e.sidx&&!t.sidx||e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let r=0;r<e.segments.length;r++){let n=e.segments[r],i=t.segments[r];if(n.uri!==i.uri)return!1;if(!n.byterange&&!i.byterange)continue;let o=n.byterange,a=i.byterange;if(o&&!a||!o&&a||o.offset!==a.offset||o.length!==a.length)return!1}return!0},lU=(e,t,r,n)=>{let i=n.attributes.NAME||r;return`placeholder-uri-${e}-${t}-${i}`},lF=({mainXml:e,srcUrl:t,clientOffset:r,sidxMapping:n,previousManifest:i})=>{let o=tC(e,{manifestUri:t,clientOffset:r,sidxMapping:n,previousManifest:i});return s5(o,t,lU),o},lH=(e,t)=>{s1(e,(r,n,i,o)=>{o in t.mediaGroups[n][i]||delete e.mediaGroups[n][i][o]})},lz=(e,t,r)=>{let n=!0,i=sf(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let e=0;e<t.playlists.length;e++){let o=t.playlists[e];if(o.sidx){let e=eq(o.sidx);r&&r[e]&&r[e].sidx&&eL(o,r[e].sidx,o.sidx.resolvedUri)}let a=ls(i,o,lB);a&&(i=a,n=!1)}return(s1(t,(e,t,r,o)=>{if(e.playlists&&e.playlists.length){let a=e.playlists[0].id,s=ls(i,e.playlists[0],lB);s&&(o in(i=s).mediaGroups[t][r]||(i.mediaGroups[t][r][o]=e),i.mediaGroups[t][r][o].playlists[0]=i.playlists[a],n=!1)}}),lH(i,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(n=!1),n)?null:i},l$=(e,t)=>(!!(!e.map&&!t.map)||!!(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,lq=(e,t)=>
83{let r={};for(let n in e){let i=e[n].sidx;if(i){let e=eq(i);if(!t[e])break;l$(t[e].sidxInfo,i)&&(r[e]=t[e])}}return r},lW=(e,t)=>{let r=lq(e.playlists,t);return s1(e,(e,n,i,o)=>{if(e.playlists&&e.playlists.length){let n=e.playlists;r=sf(r,lq(n,t))}}),r};class lV extends lj{constructor(e,t,r={},n){super(),this.mainPlaylistLoader_=n||this,n||(this.isMain_=!0);let{withCredentials:i=!1}=r;if(this.vhs_=t,this.withCredentials=i,this.addMetadataToTextTrack=r.addMetadataToTextTrack,!e)throw Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=sp("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,t,r){return!this.request||((this.request=null,e)?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,r&&(this.state=r),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,r){let n=e.sidx&&eq(e.sidx);if(!e.sidx||!n||this.mainPlaylistLoader_.sidxMapping_[n]){this.mediaRequest_=d().setTimeout(()=>r(!1),0);return}let i=sh(e.sidx.resolvedUri),o=(i,o)=>{let a;if(this.requestErrored_(i,o,t))return;let s=this.mainPlaylistLoader_.sidxMapping_,{requestType:l}=o;try{a=tO()(eo(o.response).subarray(8))}catch(e){e.metadata=s9({requestType:l,request:o,parseFailure:!0}),this.requestErrored_(e,o,t);return}return s[n]={sidxInfo:e.sidx,sidx:a},eL(e,a,e.sidx.resolvedUri),r(!0)},a="dash-sidx";this.request=lM(i,this.vhs_.xhr,(t,r,n,a)=>{if(t)return o(t,r);if(!n||"mp4"!==n){let t=n||"unknown";return o({status:r.status,message:`Unsupported ${t} container type for sidx segment at URL: ${i}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},r)}let{offset:s,length:l}=e.sidx.byterange;if(a.length>=l+s)return o(t,{response:a.subarray(s,s+l),status:r.status,uri:r.uri});this.request=this.vhs_.xhr({uri:i,responseType:"arraybuffer",requestType:"dash-sidx",headers:lg({byterange:e.sidx.byterange})},o)},a)}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},d().clearTimeout(this.minimumUpdatePeriodTimeout_),d().clearTimeout(this.mediaRequest_),d().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){let e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);let t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}let r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,r&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}r&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,r=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),d().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(d().clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){d().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;let t=this.media();if(e){let e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=d().setTimeout(()=>this.load(),e);return}if(!this.started){this.start();return}t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}
83start(){if(this.started=!0,!this.isMain_){this.mediaRequest_=d().setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){let t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(r,n)=>{if(r){let{requestType:e}=n;r.metadata=s9({requestType:e,request:n,error:r})}if(this.requestErrored_(r,n)){"HAVE_NOTHING"===this.state&&(this.started=!1);return}this.trigger({type:"manifestrequestcomplete",metadata:t});let i=n.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?this.mainLoaded_=Date.parse(n.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=sh(this.mainPlaylistLoader_.srcUrl,n),i){this.handleMain_(),this.syncClientServerClock_(()=>e(n,i));return}return e(n,i)})}syncClientServerClock_(e){let t=tP(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:sd(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(r,n)=>{let i;if(this.request){if(r){let{requestType:t}=n;return this.error.metadata=s9({requestType:t,request:n,error:r}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}i="HEAD"===t.method?n.responseHeaders&&n.responseHeaders.date?Date.parse(n.responseHeaders.date):this.mainLoaded_:Date.parse(n.responseText),this.mainPlaylistLoader_.clientOffset_=i-Date.now(),e()}}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){let e;this.mediaRequest_=null;let t=this.mainPlaylistLoader_.main,r={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestparsestart",metadata:r});try{e=lF({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:t})}catch(e){this.error=e,this.error.metadata={errorType:so.Error.StreamingDashManifestParserError,error:e},this.trigger("error")}t&&(e=lz(t,e,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=e||t;let n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!t||e&&e.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(e),e){let{duration:t,endList:n}=e,i=[];
83e.playlists.forEach(e=>{i.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})});let o={duration:t,isLive:!n,renditions:i};r.parsedManifest=o,this.trigger({type:"manifestparsecomplete",metadata:r})}return!!e}updateMinimumUpdatePeriodTimeout_(){let e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(d().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;if(0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0){t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`);return}this.createMUPTimeout_(t)}createMUPTimeout_(e){let t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=d().setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=lW(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();let t=this.mainPlaylistLoader_.main.playlists,r=!this.media_||this.media_!==t[e];if(r?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){let e=()=>{this.media().endList||(this.mediaUpdateTimeout=d().setTimeout(()=>{this.trigger("mediaupdatetimeout"),e()},ll(this.media(),!!r)))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){let e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){let t=new Set;for(let r in e.contentProtection){let n=e.contentProtection[r].attributes["cenc:default_KID"];n&&t.add(n.replace(/-/g,"").toLowerCase())}return t}}}var lG={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};let lK=e=>{let t=new Uint8Array(new ArrayBuffer(e.length));for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t.buffer},lZ=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},lY=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(r){let t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},lJ=function(e){return function(){let t=lY(e),r=lZ(new Worker(t));r.objURL=t;let n=r.terminate;return r.on=r.addEventListener,r.off=r.removeEventListener,r.terminate=function(){return URL.revokeObjectURL(t),n.call(this)},r}},lX=function(e){return`var browserWorkerPolyFill = ${lZ.toString()};
84browserWorkerPolyFill(self);
85`+e},lQ=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)};var l0=lJ(lX(lQ(function(){var e,t,n,i,o,a,s,l,c,u,d,h,p,f,m,g,y,v,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},_=function(){this.init=function(){var e={};this.on=function(t,r){e[t]||(e[t]=[]),e[t]=e[t].concat(r)},this.off=function(t,r){var n;return!!e[t]&&(n=e[t].indexOf(r),e[t]=e[t].slice(),e[t].splice(n,1),n>-1)},this.trigger=function(t){var r,n,i,o;if(r=e[t]){if(2==arguments.length)for(n=0,i=r.length;n<i;++n)r[n].call(this,arguments[1]);else{for(o=[],n=arguments.length,n=1;n<arguments.length;++n)o.push(arguments[n]);for(n=0,i=r.length;n<i;++n)r[n].apply(this,o)}}},this.dispose=function(){e={}}}};_.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},_.prototype.push=function(e){this.trigger("data",e)},_.prototype.flush=function(e){this.trigger("done",e)},_.prototype.partialFlush=function(e){this.trigger("partialdone",e)},_.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},_.prototype.reset=function(e){this.trigger("reset",e)};var w=_,S=4294967296,k=function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getBigUint64?(t=r.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
vendor: 4,177 bytes, line 85
85Number(t):t:r.getUint32(0)*S+r.getUint32(4)},x=S;!function(){var e;if(G={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in G)G.hasOwnProperty(e)&&(G[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);K=new Uint8Array([105,115,111,109]),Y=new Uint8Array([97,118,99,49]),Z=new Uint8Array([0,0,0,1]),J=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]),X={video:J,audio: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])},et=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ee=new Uint8Array([0,0,0,0,0,0,0,0]),en=er=new Uint8Array([0,0,0,0,0,0,0,0]),ei=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),eo=er,Q=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),E=function(e){var t,r,n=[],i=0;for(t=1;t<arguments.length;t++)n.push(arguments[t]);for(t=n.length;t--;)i+=n[t].byteLength;for(new DataView((r=new Uint8Array(i+8)).buffer,r.byteOffset,r.byteLength).setUint32(0,r.byteLength),r.set(e,4),t=0,i=8;t<n.length;t++)r.set(n[t],i),i+=n[t].byteLength;return r},T=function(){return E(G.dinf,E(G.dref,et))},A=function(e){return E(G.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},C=function(){return E(G.ftyp,K,Z,K,Y)},F=function(e){return E(G.hdlr,X[e])},P=function(e){return E(G.mdat,e)},U=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),E(G.mdhd,t)},B=function(e){return E(G.mdia,U(e),F(e.type),O(e))},I=function(e){return E(G.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},O=function(e){return E(G.minf,"video"===e.type?E(G.vmhd,Q):E(G.smhd,ee),T(),z(e))},N=function(e,t){for(var r=[],n=t.length;n--;)r[n]=q(t[n]);return E.apply(null,[G.moof,I(e)].concat(r))},D=function(e){for(var t=e.length,r=[];t--;)r[t]=M(e[t]);return E.apply(null,[G.moov,L(4294967295)].concat(r).concat(R(e)))},R=function(e){for(var t=e.length,r=[];t--;)r[t]=W(e[t]);return E.apply(null,[G.mvex].concat(r))},L=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,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]);return E(G.mvhd,t)},H=function(e){var t,r,n=e.samples||[],i=new Uint8Array(4+n.length);for(r=0;r<n.length;r++)t=n[r].flags,i[r+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return E(G.sdtp,i)},z=function(e){return E(G.stbl,$(e),E(G.stts,eo),E(G.stsc,en),E(G.stsz,ei),E(G.stco,er))},function(){var e,t;$=function(r){return E(G.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===r.type?e(r):t(r))},e=function(e){var t,r,n=e.sps||[],i=e.pps||[],o=[],a=[];for(t=0;t<n.length;t++)o.push((65280&n[t].byteLength)>>>8),o.push(255&n[t].byteLength),o=o.concat(Array.prototype.slice.call(n[t]));for(t=0;t<i.length;t++)a.push((65280&i[t].byteLength)>>>8),a.push(255&i[t].byteLength),a=a.concat(Array.prototype.slice.call(i[t]));if(r=[G.avc1,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,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,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]),E(G.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],o,[i.length],a))),E(G.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var s=e.sarRatio[0],l=e.sarRatio[1];
vendor: 5,715 bytes, line 85
85r.push(E(G.pasp,new Uint8Array([(4278190080&s)>>24,(16711680&s)>>16,(65280&s)>>8,255&s,(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l])))}return E.apply(null,r)},t=function(e){return E(G.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),A(e))}}(),j=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,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,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return E(G.tkhd,t)},q=function(e){var t,r,n,i,o,a,s;return(t=E(G.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/x),s=Math.floor(e.baseMediaDecodeTime%x),r=E(G.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),o=92,"audio"===e.type)?(n=V(e,o),E(G.traf,t,r,n)):(i=H(e),n=V(e,i.length+o),E(G.traf,t,r,n,i))},M=function(e){return e.duration=e.duration||4294967295,E(G.trak,j(e),B(e))},W=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),E(G.trex,t)},function(){var e,t,r;r=function(e,t){var r=0,n=0,i=0,o=0;return e.length&&(void 0!==e[0].duration&&(r=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(o=8)),[0,0,r|n|i|o,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var n,i,o,a,s,l;for(t+=20+16*(a=e.samples||[]).length,(i=new Uint8Array((o=r(a,t)).length+16*a.length)).set(o),n=o.length,l=0;l<a.length;l++)s=a[l],i[n++]=(4278190080&s.duration)>>>24,i[n++]=(16711680&s.duration)>>>16,i[n++]=(65280&s.duration)>>>8,i[n++]=255&s.duration,i[n++]=(4278190080&s.size)>>>24,i[n++]=(16711680&s.size)>>>16,i[n++]=(65280&s.size)>>>8,i[n++]=255&s.size,i[n++]=s.flags.isLeading<<2|s.flags.dependsOn,i[n++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,i[n++]=61440&s.flags.degradationPriority,i[n++]=15&s.flags.degradationPriority,i[n++]=(4278190080&s.compositionTimeOffset)>>>24,i[n++]=(16711680&s.compositionTimeOffset)>>>16,i[n++]=(65280&s.compositionTimeOffset)>>>8,i[n++]=255&s.compositionTimeOffset;return E(G.trun,i)},e=function(e,t){var n,i,o,a,s,l;for(t+=20+8*(a=e.samples||[]).length,(n=new Uint8Array((o=r(a,t)).length+8*a.length)).set(o),i=o.length,l=0;l<a.length;l++)s=a[l],n[i++]=(4278190080&s.duration)>>>24,n[i++]=(16711680&s.duration)>>>16,n[i++]=(65280&s.duration)>>>8,n[i++]=255&s.duration,n[i++]=(4278190080&s.size)>>>24,n[i++]=(16711680&s.size)>>>16,n[i++]=(65280&s.size)>>>8,n[i++]=255&s.size;return E(G.trun,n)},V=function(r,n){return"audio"===r.type?e(r,n):t(r,n)}}();var E,T,A,C,P,I,O,N,D,R,L,M,j,B,U,F,H,z,$,q,W,V,G,K,Z,Y,J,X,Q,ee,et,er,en,ei,eo,ea,es,el,ec,eu,ed,eh,ep,ef={ftyp:C,mdat:P,moof:N,moov:D,initSegment:function(e){var t,r=C(),n=D(e);return(t=new Uint8Array(r.byteLength+n.byteLength)).set(r),t.set(n,r.byteLength),t}},em=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},eg=function(e,t){var r=em();return r.dataOffset=t,r.compositionTimeOffset=e.pts-e.dts,r.duration=e.duration,r.size=4*e.length,r.size+=e.byteLength,e.keyFrame&&(r.flags.dependsOn=2,r.flags.isNonSyncSample=0),r},ey={groupNalsIntoFrames:function(e){var t,r,n=[],i=[];for(t=0,i.byteLength=0,i.nalCount=0,i.duration=0,n.byteLength=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(r=e[t]).nalUnitType?(n.length&&(n.duration=r.dts-n.dts,i.byteLength+=n.byteLength,i.nalCount+=n.length,i.duration+=n.duration,i.push(n)),(n=[r]).byteLength=r.data.byteLength,n.pts=r.pts,n.dts=r.dts):("slice_layer_without_partitioning_rbsp_idr"===r.nalUnitType&&(n.keyFrame=!0),n.duration=r.dts-n.dts,n.byteLength+=r.data.byteLength,n.push(r));return i.length&&(!n.duration||n.duration<=0)&&(n.duration=i[i.length-1].duration),i.byteLength+=n.byteLength,i.nalCount+=n.length,i.duration+=n.duration,i.push(n),i},groupFramesIntoGops:function(e){var t,r,n=[],i=[];for(t=0,n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts;t<e.length;t++)(r=e[t]).keyFrame?(n.length&&(i.push(n),i.byteLength+=n.byteLength,i.nalCount+=n.nalCount,i.duration+=n.duration),(n=[r]).nalCount=r.length,n.byteLength=r.byteLength,n.pts=r.pts,n.dts=r.dts,n.duration=r.duration):(n.duration+=r.duration,n.nalCount+=r.length,n.byteLength+=r.byteLength,n.push(r));return i.length&&n.duration<=0&&(n.duration=i[i.length-1].duration),i.byteLength+=n.byteLength,i.nalCount+=n.nalCount,i.duration+=n.duration,i.push(n),i},extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var r,n,i,o,a=t||0,s=[];for(r=0;r<e.length;r++)for(n=0,o=e[r];n<o.length;n++)i=eg(o[n],a),a+=i.size,s.push(i);return s},concatenateNalData:function(e){var t,r,n,i,o,a,s=0,l=new Uint8Array(e.byteLength+4*e.nalCount),c=new DataView(l.buffer);for(t=0;t<e.length;t++)for(r=0,i=e[t];r<i.length;r++)for(n=0,o=i[r];n<o.length;
85n++)a=o[n],c.setUint32(s,a.data.byteLength),s+=4,l.set(a.data,s),s+=a.data.byteLength;return l},generateSampleTableForFrame:function(e,t){var r=[];return r.push(eg(e,t||0)),r},concatenateNalDataForFrame:function(e){var t,r,n=0,i=new Uint8Array(e.byteLength+4*e.length),o=new DataView(i.buffer);for(t=0;t<e.length;t++)r=e[t],o.setUint32(n,r.data.byteLength),n+=4,i.set(r.data,n),n+=r.data.byteLength;return i}},ev=[33,16,5,32,164,27],eb=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],e_=function(e){for(var t=[];e--;)t.push(0);return t},ew=function(e){return Object.keys(e).reduce(function(t,r){return t[r]=new Uint8Array(e[r].reduce(function(e,t){return e.concat(t)},[])),t},{})},eS=function(){return ea||(ea=ew({96e3:[ev,[227,64],e_(154),[56]],88200:[ev,[231],e_(170),[56]],64e3:[ev,[248,192],e_(240),[56]],48e3:[ev,[255,192],e_(268),[55,148,128],e_(54),[112]],44100:[ev,[255,192],e_(268),[55,163,128],e_(84),[112]],32e3:[ev,[255,192],e_(268),[55,234],e_(226),[112]],24e3:[ev,[255,192],e_(268),[55,255,128],e_(268),[111,112],e_(126),[224]],16e3:[ev,[255,192],e_(268),[55,255,128],e_(268),[111,255],e_(269),[223,108],e_(195),[1,192]],12e3:[eb,e_(268),[3,127,248],e_(268),[6,255,240],e_(268),[13,255,224],e_(268),[27,253,128],e_(259),[56]],11025:[eb,e_(268),[3,127,248],e_(268),[6,255,240],e_(268),[13,255,224],e_(268),[27,255,192],e_(268),[55,175,128],e_(108),[112]],8e3:[eb,e_(268),[3,121,16],e_(47),[7]]})),ea},ek=9e4;es=function(e){return e*ek},el=function(e,t){return e*t},ec=function(e){return e/ek},eu=function(e,t){return e/t},ed=function(e,t){return es(eu(e,t))},eh=function(e,t){return el(ec(e),t)},ep=function(e,t,r){return ec(r?e:e-t)};var ex={ONE_SECOND_IN_TS:ek,secondsToVideoTs:es,secondsToAudioTs:el,videoTsToSeconds:ec,audioTsToSeconds:eu,audioTsToVideoTs:ed,videoTsToAudioTs:eh,metadataTsToSeconds:ep},eE=eS,eT=ex,eA=function(e){var t,r=0;for(t=0;t<e.length;t++)r+=e[t].data.byteLength;return r},eC={prefixWithSilence:function(e,t,r,n){var i,o,a,s,l=0,c=0,u=0,d=0;if(t.length&&(i=eT.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(eT.ONE_SECOND_IN_TS/(e.samplerate/1024)),r&&n&&(d=(u=Math.floor((c=i-Math.max(r,n))/l))*l),!(u<1)&&!(d>eT.ONE_SECOND_IN_TS/2))){for((o=eE()[e.samplerate])||(o=t[0].data),a=0;a<u;a++)s=t[0],t.splice(0,0,{data:o,dts:s.dts-l,pts:s.pts-l});return e.baseMediaDecodeTime-=Math.floor(eT.videoTsToAudioTs(d,e.samplerate)),d}},trimAdtsFramesByEarliestDts:function(e,t,r){return t.minSegmentDts>=r?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=r&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:function(e){var t,r=[];for(t=0;t<e.length;t++)r.push({size:e[t].data.byteLength,duration:1024});return r},concatenateFrameData:function(e){var t,r,n=0,i=new Uint8Array(eA(e));for(t=0;t<e.length;t++)r=e[t],i.set(r.data,n),n+=r.data.byteLength;return i}},eP=ex.ONE_SECOND_IN_TS,eI={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var r,n=e.minSegmentDts;return t||(n-=e.timelineStartInfo.dts),r=Math.max(0,r=e.timelineStartInfo.baseMediaDecodeTime+n),"audio"===e.type&&(r*=e.samplerate/eP,r=Math.floor(r)),r},collectDtsInfo:function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},eO=4,eN=128,eD={parseSei:function(e){for(var t=0,r={payloadType:-1,payloadSize:0},n=0,i=0;t<e.byteLength&&e[t]!==eN;){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!r.payload&&n===eO){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){r.payloadType=n,r.payloadSize=i,r.payload=e.subarray(t,t+i);break}r.payload=void 0}t+=i,n=0,i=0}return r},parseUserData:function(e){return 181!==e.payload[0]||(e.payload[1]<<8|e.payload[2])!=49||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var r,n,i,o,a=[];if(!(64&t[0]))return a;for(r=0,n=31&t[0];r<n;r++)o={type:3&t[(i=3*r)+2],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},discardEmulationPreventionBytes:function(e){for(var t,r,n=e.byteLength,i=[],o=1;o<n-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;
vendor: 5,470 bytes, line 85
85r=new Uint8Array(t=n-i.length);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),r[o]=e[a];return r},USER_DATA_REGISTERED_ITU_T_T35:4},eR=w,eL=eD,eM=function(e){e=e||{},eM.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new eK(0,0),new eK(0,1),new eK(1,0),new eK(1,1)],this.parse708captions_&&(this.cc708Stream_=new ez({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};eM.prototype=new eR,eM.prototype.push=function(e){var t,r,n;if("sei_rbsp"===e.nalUnitType&&(t=eL.parseSei(e.escapedRBSP)).payload&&t.payloadType===eL.USER_DATA_REGISTERED_ITU_T_T35&&(r=eL.parseUserData(t))){if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}n=eL.parseCaptionPackets(e.pts,r),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},eM.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},eM.prototype.flushStream=function(e){if(!this.captionPackets_.length){this.flushCCStreams(e);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)},eM.prototype.flush=function(){return this.flushStream("flush")},eM.prototype.partialFlush=function(){return this.flushStream("partialFlush")},eM.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},eM.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},eM.prototype.setsChannel1Active=function(e){return(30720&e.ccData)==4096},eM.prototype.setsChannel2Active=function(e){return(30720&e.ccData)==6144},eM.prototype.setsTextOrXDSActive=function(e){return(28928&e.ccData)==256||(30974&e.ccData)==4138||(30974&e.ccData)==6186},eM.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var ej={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},eB=function(e){var t=ej[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},eU=function(e){return 32<=e&&e<=127||160<=e&&e<=255},eF=function(e){this.windowNum=e,this.reset()};eF.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},eF.prototype.getText=function(){return this.rows.join("\n")},eF.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},eF.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},eF.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},eF.prototype.addText=function(e){this.rows[this.rowIdx]+=e},eF.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var eH=function(e,t,r){this.serviceNum=e,this.text="",this.currentWindow=new eF(-1),this.windows=[],this.stream=r,"string"==typeof t&&this.createTextDecoder(t)};eH.prototype.init=function(e,t){this.startPts=e;for(var r=0;r<8;r++)this.windows[r]=new eF(r),"function"==typeof t&&(this.windows[r].beforeRowOverflow=t)},eH.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},eH.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var ez=function(e){e=e||{},ez.prototype.init.call(this);var t,r=this,n=e.captionServices||{},i={};
85Object.keys(n).forEach(e=>{t=n[e],/^SERVICE/.test(e)&&(i[e]=t.encoding)}),this.serviceEncodings=i,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?r.new708Packet():null===r.current708Packet&&r.new708Packet(),r.add708Bytes(e)}};ez.prototype=new eR,ez.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},ez.prototype.add708Bytes=function(e){var t=e.ccData,r=t>>>8,n=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(r),this.current708Packet.data.push(n)},ez.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,r=null,n=null,i=0,o=t[i++];for(e.seq=o>>6,e.sizeCode=63&o;i<t.length;i++)r=(o=t[i++])>>5,n=31&o,7===r&&n>0&&(r=o=t[i++]),this.pushServiceBlock(r,i,n),n>0&&(i+=n-1)},ez.prototype.pushServiceBlock=function(e,t,r){var n,i=t,o=this.current708Packet.data,a=this.services[e];for(a||(a=this.initService(e,i));i<t+r&&i<o.length;i++)eU(n=o[i])?i=this.handleText(i,a):24===n?i=this.multiByteCharacter(i,a):16===n?i=this.extendedCommands(i,a):128<=n&&n<=135?i=this.setCurrentWindow(i,a):152<=n&&n<=159?i=this.defineWindow(i,a):136===n?i=this.clearWindows(i,a):140===n?i=this.deleteWindows(i,a):137===n?i=this.displayWindows(i,a):138===n?i=this.hideWindows(i,a):139===n?i=this.toggleWindows(i,a):151===n?i=this.setWindowAttributes(i,a):144===n?i=this.setPenAttributes(i,a):145===n?i=this.setPenColor(i,a):146===n?i=this.setPenLocation(i,a):143===n?a=this.reset(i,a):8===n?a.currentWindow.backspace():12===n?a.currentWindow.clearText():13===n?a.currentWindow.pendingNewLine=!0:14===n?a.currentWindow.clearText():141===n&&i++},ez.prototype.extendedCommands=function(e,t){return eU(this.current708Packet.data[++e])&&(e=this.handleText(e,t,{isExtended:!0})),e},ez.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},ez.prototype.initService=function(e,t){var r,n="SERVICE"+e,i=this;return n in this.serviceEncodings&&(r=this.serviceEncodings[n]),this.services[e]=new eH(e,r,i),this.services[e].init(this.getPts(t),function(t){i.flushDisplayed(t,i.services[e])}),this.services[e]},ez.prototype.handleText=function(e,t,r){var n,i,o=r&&r.isExtended,a=r&&r.isMultiByte,s=this.current708Packet.data,l=o?4096:0,c=s[e],u=s[e+1],d=t.currentWindow;function h(e){return e.map(e=>("0"+(255&e).toString(16)).slice(-2)).join("")}return a?(i=[c,u],e++):i=[c],n=t.textDecoder_&&!o?t.textDecoder_.decode(new Uint8Array(i)):a?String.fromCharCode(parseInt(h(i),16)):eB(l|c),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(n),e},ez.prototype.multiByteCharacter=function(e,t){var r=this.current708Packet.data,n=r[e+1],i=r[e+2];return eU(n)&&eU(i)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},ez.prototype.setCurrentWindow=function(e,t){var r=7&this.current708Packet.data[e];return t.setCurrentWindow(r),e},ez.prototype.defineWindow=function(e,t){var r=this.current708Packet.data,n=r[e],i=7&n;t.setCurrentWindow(i);var o=t.currentWindow;return n=r[++e],o.visible=(32&n)>>5,o.rowLock=(16&n)>>4,o.columnLock=(8&n)>>3,o.priority=7&n,n=r[++e],o.relativePositioning=(128&n)>>7,o.anchorVertical=127&n,n=r[++e],o.anchorHorizontal=n,n=r[++e],o.anchorPoint=(240&n)>>4,o.rowCount=15&n,n=r[++e],o.columnCount=63&n,n=r[++e],o.windowStyle=(56&n)>>3,o.penStyle=7&n,o.virtualRowCount=o.rowCount+1,e},ez.prototype.setWindowAttributes=function(e,t){var r=this.current708Packet.data,n=r[e],i=t.currentWindow.winAttr;return n=r[++e],i.fillOpacity=(192&n)>>6,i.fillRed=(48&n)>>4,i.fillGreen=(12&n)>>2,i.fillBlue=3&n,n=r[++e],i.borderType=(192&n)>>6,i.borderRed=(48&n)>>4,i.borderGreen=(12&n)>>2,i.borderBlue=3&n,n=r[++e],i.borderType+=(128&n)>>5,i.wordWrap=(64&n)>>6,i.printDirection=(48&n)>>4,i.scrollDirection=(12&n)>>2,i.justify=3&n,n=r[++e],i.effectSpeed=(240&n)>>4,i.effectDirection=(12&n)>>2,i.displayEffect=3&n,e},ez.prototype.flushDisplayed=function(e,t){for(var r=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&r.push(t.windows[n].getText());t.endPts=e,t.text=r.join("\n\n"),this.pushCaption(t),t.startPts=e},ez.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream
85:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},ez.prototype.displayWindows=function(e,t){var r=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var i=0;i<8;i++)r&1<<i&&(t.windows[i].visible=1);return e},ez.prototype.hideWindows=function(e,t){var r=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var i=0;i<8;i++)r&1<<i&&(t.windows[i].visible=0);return e},ez.prototype.toggleWindows=function(e,t){var r=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var i=0;i<8;i++)r&1<<i&&(t.windows[i].visible^=1);return e},ez.prototype.clearWindows=function(e,t){var r=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var i=0;i<8;i++)r&1<<i&&t.windows[i].clearText();return e},ez.prototype.deleteWindows=function(e,t){var r=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var i=0;i<8;i++)r&1<<i&&t.windows[i].reset();return e},ez.prototype.setPenAttributes=function(e,t){var r=this.current708Packet.data,n=r[e],i=t.currentWindow.penAttr;return n=r[++e],i.textTag=(240&n)>>4,i.offset=(12&n)>>2,i.penSize=3&n,n=r[++e],i.italics=(128&n)>>7,i.underline=(64&n)>>6,i.edgeType=(56&n)>>3,i.fontStyle=7&n,e},ez.prototype.setPenColor=function(e,t){var r=this.current708Packet.data,n=r[e],i=t.currentWindow.penColor;return n=r[++e],i.fgOpacity=(192&n)>>6,i.fgRed=(48&n)>>4,i.fgGreen=(12&n)>>2,i.fgBlue=3&n,n=r[++e],i.bgOpacity=(192&n)>>6,i.bgRed=(48&n)>>4,i.bgGreen=(12&n)>>2,i.bgBlue=3&n,n=r[++e],i.edgeRed=(48&n)>>4,i.edgeGreen=(12&n)>>2,i.edgeBlue=3&n,e},ez.prototype.setPenLocation=function(e,t){var r=this.current708Packet.data,n=r[e],i=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=r[++e],i.row=15&n,n=r[++e],i.column=63&n,e},ez.prototype.reset=function(e,t){var r=this.getPts(e);return this.flushDisplayed(r,t),this.initService(t.serviceNum,e)};var e$={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},eq=function(e){return null===e?"":String.fromCharCode(e=e$[e]||e)},eW=14,eV=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],eG=function(){for(var e=[],t=eW+1;t--;)e.push({text:"",indent:0,offset:0});return e},eK=function(e,t){eK.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t,r,n,i,o;if((t=32639&e.ccData)===this.lastControlCode_){this.lastControlCode_=null;return}if((61440&t)==4096?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,i=255&t,t!==this.PADDING_){if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=eG();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=eG();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=eG()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,i))o=eq((n=(3&n)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(n,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),o=eq((n=(3&n)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(n,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,(14&i)==14&&this.addFormatting(e.pts,["i"]),(1&i)==1&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,i)){let e=3&i;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(n,i)){var a=eV.indexOf(7968&t);if("rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&a>=0&&a<=14&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),(16&t)==16){let e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(i)&&(14&i)==14&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===i&&(i=null),o=eq(n)+eq(i),this[this.mode_](e.pts,o),this.column_+=o.length)}}};eK.prototype=new eR,eK.prototype.flushDisplayed=function(e){let t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},r=[];this.displayed_.forEach((e,n)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){t(n)}e.text.length&&r.push({text:e.text,line:n+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(n)}),r.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:r,stream
vendor: 4,615 bytes, line 85
85:this.name_})},eK.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=eG(),this.nonDisplayed_=eG(),this.lastControlCode_=null,this.column_=0,this.row_=eW,this.rollUpRows_=2,this.formatting_=[]},eK.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},eK.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},eK.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},eK.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},eK.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},eK.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},eK.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},eK.prototype.isNormalChar=function(e){return e>=32&&e<=127},eK.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=eW,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=eG(),this.displayed_=eG()),void 0!==t&&t!==this.row_)for(var r=0;r<this.rollUpRows_;r++)this.displayed_[t-r]=this.displayed_[this.row_-r],this.displayed_[this.row_-r]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},eK.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var r=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,r)},eK.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},eK.prototype.popOn=function(e,t){var r=this.nonDisplayed_[this.row_].text;r+=t,this.nonDisplayed_[this.row_].text=r},eK.prototype.rollUp=function(e,t){var r=this.displayed_[this.row_].text;r+=t,this.displayed_[this.row_].text=r},eK.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<eW+1;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},eK.prototype.paintOn=function(e,t){var r=this.displayed_[this.row_].text;r+=t,this.displayed_[this.row_].text=r};var eZ={CaptionStream:eM,Cea608Stream:eK,Cea708Stream:ez},eY={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},eJ=w,eX=8589934592,eQ=4294967296,e0="shared",e1=function(e,t){var r=1;for(e>t&&(r=-1);Math.abs(t-e)>eQ;)e+=r*eX;return e},e2=function(e){var t,r;e2.prototype.init.call(this),this.type_=e||e0,this.push=function(e){if("metadata"===e.type){this.trigger("data",e);return}(this.type_===e0||e.type===this.type_)&&(void 0===r&&(r=e.dts),e.dts=e1(e.dts,r),e.pts=e1(e.pts,r),t=e.dts,this.trigger("data",e))},this.flush=function(){r=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};e2.prototype=new eJ;var e4,e3=e2,e6=e1,e5=(e,t,r)=>{if(!e)return -1;for(var n=r;n<e.length;n++)if(e[n]===t)return n;return -1},e8=3,e7=function(e,t,r){var n,i="";for(n=t;n<r;n++)i+="%"+("00"+e[n].toString(16)).slice(-2);return i},e9=function(e,t,r){return decodeURIComponent(e7(e,t,r))},te=function(e,t,r){return unescape(e7(e,t,r))},tt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},tr={APIC:function(e){var t,r,n=1,i="-->";!(e.data[0]!==e8||(t=e5(e.data,0,n))<0)&&(e.mimeType=te(e.data,n,t),n=t+1,e.pictureType=e.data[n],n++,(r=e5(e.data,0,n))<0||(e.description=e9(e.data,n,r),n=r+1,e.mimeType===i?e.url=te(e.data,n,e.data.length):e.pictureData=e.data.subarray(n,e.data.length)))},"T*":function(e){e.data[0]===e8&&(e.value=e9(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;e.data[0]===e8&&-1!==(t=e5(e.data,0,1))&&(e.description=e9(e.data,1,t),e.value=e9(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)}
85,"W*":function(e){e.url=te(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;e.data[0]===e8&&-1!==(t=e5(e.data,0,1))&&(e.description=e9(e.data,1,t),e.url=te(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=te(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},tn={parseId3Frames:function(e){var t,r=10,n=0,i=[];if(!(e.length<10)&&73===e[0]&&68===e[1]&&51===e[2]){n=tt(e.subarray(6,10))+10,64&e[5]&&(r+=4+tt(e.subarray(10,14)),n-=tt(e.subarray(16,20)));do{if((t=tt(e.subarray(r+4,r+8)))<1)break;var o={id:String.fromCharCode(e[r],e[r+1],e[r+2],e[r+3]),data:e.subarray(r+10,r+t+10)};o.key=o.id,tr[o.id]?tr[o.id](o):"T"===o.id[0]?tr["T*"](o):"W"===o.id[0]&&tr["W*"](o),i.push(o),r+=10+t}while(r<n);return i}},parseSyncSafeInteger:tt,frameParsers:tr},ti=w,to=eY,ta=tn;(e4=function(e){var t,r={descriptor:e&&e.descriptor},n=0,i=[],o=0;if(e4.prototype.init.call(this),this.dispatchType=to.METADATA_STREAM_TYPE.toString(16),r.descriptor)for(t=0;t<r.descriptor.length;t++)this.dispatchType+=("00"+r.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,r,a,s,l;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(o=0,i.length=0),0===i.length&&(e.data.length<10||73!==e.data[0]||68!==e.data[1]||51!==e.data[2])){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(i.push(e),o+=e.data.byteLength,1===i.length&&(n=ta.parseSyncSafeInteger(e.data.subarray(6,10))+10),!(o<n)){for(l=0,t={data:new Uint8Array(n),frames:[],pts:i[0].pts,dts:i[0].dts};l<n;)t.data.set(i[0].data.subarray(0,n-l),l),l+=i[0].data.byteLength,o-=i[0].data.byteLength,i.shift();r=10,64&t.data[5]&&(r+=4+ta.parseSyncSafeInteger(t.data.subarray(10,14)),n-=ta.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((a=ta.parseSyncSafeInteger(t.data.subarray(r+4,r+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((s={id:String.fromCharCode(t.data[r],t.data[r+1],t.data[r+2],t.data[r+3]),data:t.data.subarray(r+10,r+a+10)}).key=s.id,ta.frameParsers[s.id]?ta.frameParsers[s.id](s):"T"===s.id[0]?ta.frameParsers["T*"](s):"W"===s.id[0]&&ta.frameParsers["W*"](s),"com.apple.streaming.transportStreamTimestamp"===s.owner){var c=s.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,u+=3&c[7],s.timeStamp=u,void 0===t.pts&&void 0===t.dts&&(t.pts=s.timeStamp,t.dts=s.timeStamp),this.trigger("timestamp",s)}t.frames.push(s),r+=10+a}while(r<n);this.trigger("data",t)}}}}).prototype=new ti;var ts=e4,tl=w,tc=eZ,tu=eY,td=e3,th=188,tp=71;(e=function(){var t=new Uint8Array(th),r=0;e.prototype.init.call(this),this.push=function(e){var n,i=0,o=th;for(r?((n=new Uint8Array(e.byteLength+r)).set(t.subarray(0,r)),n.set(e,r),r=0):n=e;o<n.byteLength;){if(n[i]===tp&&n[o]===tp){this.trigger("data",n.subarray(i,o)),i+=th,o+=th;continue}i++,o++}i<n.byteLength&&(t.set(n.subarray(i),0),r=n.byteLength-i)},this.flush=function(){r===th&&t[0]===tp&&(this.trigger("data",t),r=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){r=0,this.trigger("reset")}}).prototype=new tl,(t=function(){var e,r,n,i;t.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,t){var i=0;t.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===t.type?r(e.subarray(i),t):n(e.subarray(i),t)},r=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var r,n;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},r=3+((15&e[1])<<8|e[2])-4,n=12+((15&e[10])<<8|e[11]);n<r;){var o=e[n],a=(31&e[n+1])<<8|e[n+2];o===tu.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=a:o===tu.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=a:o===tu.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][a]=o),n+=((15&e[n+3])<<8|e[n+4])+5}t.programMapTable=i.programMapTable}},this.push=function(t){var r={},n=4;if(r.payloadUnitStartIndicator=!!(64&t[1]),r.pid=31&t[1],r.pid<<=8,r.pid|=t[2],(48&t[3])>>>4>1&&(n+=t[n]+1),0===r.pid)r.type="pat",e(t.subarray(n),r),this.trigger("data",r);else if(r.pid===this.pmtPid)for(r.type="pmt",e(t.subarray(n),r),this.trigger("data",r);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
vendor: 3,059 bytes, line 85
85else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,r]):this.processPes_(t,n,r)},this.processPes_=function(e,t,r){r.pid===this.programMapTable.video?r.streamType=tu.H264_STREAM_TYPE:r.pid===this.programMapTable.audio?r.streamType=tu.ADTS_STREAM_TYPE:r.streamType=this.programMapTable["timed-metadata"][r.pid],r.type="pes",r.data=e.subarray(t),this.trigger("data",r)}}).prototype=new tl,t.STREAM_TYPES={h264:27,adts:15},(n=function(){var e,t=this,r=!1,i={data:[],size:0},o={data:[],size:0},a={data:[],size:0},s=function(e,t){var r;let n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===n&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=(4&e[6])!=0,192&(r=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&r&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},l=function(e,r,n){var i,o=new Uint8Array(e.size),a={type:r},l=0,c=0,u=!1;if(e.data.length&&!(e.size<9)){for(l=0,a.trackId=e.data[0].pid;l<e.data.length;l++)i=e.data[l],o.set(i.data,c),c+=i.data.byteLength;s(o,a),u="video"===r||a.packetLength<=e.size,(n||u)&&(e.size=0,e.data.length=0),u&&t.trigger("data",a)}};n.prototype.init.call(this),this.push=function(n){({pat:function(){},pes:function(){var e,t;switch(n.streamType){case tu.H264_STREAM_TYPE:e=i,t="video";break;case tu.ADTS_STREAM_TYPE:e=o,t="audio";break;case tu.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}n.payloadUnitStartIndicator&&l(e,t,!0),e.data.push(n),e.size+=n.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=n.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),r=!0,t.trigger("data",i)}})[n.type]()},this.reset=function(){i.size=0,i.data.length=0,o.size=0,o.data.length=0,this.trigger("reset")},this.flushStreams_=function(){l(i,"video"),l(o,"audio"),l(a,"timed-metadata")},this.flush=function(){if(!r&&e){var n={type:"metadata",tracks:[]};null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}r=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new tl;var tf={PAT_PID:0,MP2T_PACKET_LENGTH:th,TransportPacketStream:e,TransportParseStream:t,ElementaryStream:n,TimestampRolloverStream:td,CaptionStream:tc.CaptionStream,Cea608Stream:tc.Cea608Stream,Cea708Stream:tc.Cea708Stream,MetadataStream:ts};for(var tm in tu)tu.hasOwnProperty(tm)&&(tf[tm]=tu[tm]);var tg=tf,ty=w,tv=ex.ONE_SECOND_IN_TS,tb=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(i=function(e){var t,r=0;i.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts ski
85ping bytes ${e} to ${t} in frame ${r} outside syncword`})},this.push=function(n){var i,o,a,s,l,c,u=0;if(e||(r=0),"audio"===n.type){for(t&&t.length?((t=new Uint8Array((s=t).byteLength+n.data.byteLength)).set(s),t.set(n.data,s.byteLength)):t=n.data;u+7<t.length;){if(255!==t[u]||(246&t[u+1])!=240){"number"!=typeof i&&(i=u),u++;continue}if("number"==typeof i&&(this.skipWarn_(i,u),i=null),a=(1&~t[u+1])*2,o=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,c=(l=((3&t[u+6])+1)*1024)*tv/tb[(60&t[u+2])>>>2],t.byteLength-u<o)break;this.trigger("data",{pts:n.pts+r*c,dts:n.dts+r*c,sampleCount:l,audioobjecttype:(t[u+2]>>>6&3)+1,channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:tb[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+o)}),r++,u+=o}"number"==typeof i&&(this.skipWarn_(i,u),i=null),t=t.subarray(u)}},this.flush=function(){r=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new ty;var t_=i,tw=w,tS=function(e){var t=e.byteLength,r=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},this.loadWord=function(){var i=e.byteLength-t,o=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw Error("no bytes available");o.set(e.subarray(i,i+a)),r=new DataView(o.buffer).getUint32(0),n=8*a,t-=a},this.skipBits=function(e){var i;n>e||(e-=n,i=Math.floor(e/8),e-=8*i,t-=i,this.loadWord()),r<<=e,n-=e},this.readBits=function(e){var i=Math.min(n,e),o=r>>>32-i;return((n-=i)>0?r<<=i:t>0&&this.loadWord(),(i=e-i)>0)?o<<i|this.readBits(i):o},this.skipLeadingZeros=function(){var e;for(e=0;e<n;++e)if((r&2147483648>>>e)!=0)return r<<=e,n-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(a=function(){var e,t,r=0;a.prototype.init.call(this),this.push=function(n){t?((i=new Uint8Array(t.byteLength+n.data.byteLength)).set(t),i.set(n.data,t.byteLength),t=i):t=n.data;for(var i,o=t.byteLength;r<o-3;r++)if(1===t[r+2]){e=r+5;break}for(;e<o;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}r+3!==e-2&&this.trigger("data",t.subarray(r+3,e-2));do e++;while(1!==t[e]&&e<o);r=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(r+3,e-2)),r=e-2,e+=3;break;default:e+=3}t=t.subarray(r),e-=r,r=0},this.reset=function(){t=null,r=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(r+3)),t=null,r=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new tw,s={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(o=function(){var e,t,r,n,i,l,c,u=new a;o.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,r=e.pts,n=e.dts,u.push(e))},u.on("data",function(o){var a={trackId:t,pts:r,dts:n,data:o,nalUnitTypeCode:31&o[0]};switch(a.nalUnitTypeCode){case 5:a.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:a.nalUnitType="sei_rbsp",a.escapedRBSP=i(o.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=i(o.subarray(1)),a.config=l(a.escapedRBSP);break;case 8:a.nalUnitType="pic_parameter_set_rbsp";break;case 9:a.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",a)}),u.on("done",function(){e.trigger("done")}),u.on("partialdone",function(){e.trigger("partialdone")}),u.on("reset",function(){e.trigger("reset")}),u.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){u.flush()},this.partialFlush=function(){u.partialFlush()},this.reset=function(){u.reset()},this.endTimeline=function(){u.endTimeline()},c=function(e,t){var r,n=8,i=8;for(r=0;r<e;r++)0!==i&&(i=(n+t.readExpGolomb()+256)%256),n=0===i?n:i},i=function(e){for(var t,r,n=e.byteLength,i=[],o=1;o<n-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;
85r=new Uint8Array(t=n-i.length);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),r[o]=e[a];return r},l=function(e){var t,r,n,i,o,a,l,u,d,h,p,f,m=0,g=0,y=0,v=0,b=[1,1];if(r=(t=new tS(e)).readUnsignedByte(),i=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),s[r]&&(3===(o=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(f=0,p=3!==o?8:12;f<p;f++)t.readBoolean()&&(f<6?c(16,t):c(64,t));if(t.skipUnsignedExpGolomb(),0===(a=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===a)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),f=0;f<l;f++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),d=t.readUnsignedExpGolomb(),0===(h=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}b&&(b[0],b[1])}return{profileIdc:r,levelIdc:n,profileCompatibility:i,width:(u+1)*16-2*m-2*g,height:(2-h)*(d+1)*16-2*y-2*v,sarRatio:b}}}).prototype=new tw;var tk=o,tx=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],tE=function(e,t){var r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(r=r>=0?r:0,(16&e[t+5])>>4)?r+20:r+10},tT=function(e,t){return e.length-t<10||73!==e[t]||68!==e[t+1]||51!==e[t+2]?t:(t+=tE(e,t),tT(e,t))},tA=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},tC=function(e,t,r){var n,i="";for(n=t;n<r;n++)i+="%"+("00"+e[n].toString(16)).slice(-2);return i},tP=function(e,t,r){return unescape(tC(e,t,r))},tI={isLikelyAacData:function(e){var t=tT(e,0);return e.length>=t+2&&(255&e[t])==255&&(240&e[t+1])==240&&(22&e[t+1])==16},parseId3TagSize:tE,parseAdtsSize:function(e,t){var r=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|r},parseType:function(e,t){return 73===e[t]&&68===e[t+1]&&51===e[t+2]?"timed-metadata":!0&e[t]&&(240&e[t+1])==240?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255!==e[t]||(246&e[t+1])!=240){t++;continue}return tx[(60&e[t+2])>>>2]}return null},parseAacTimestamp:function(e){var t,r,n;t=10,64&e[5]&&(t+=4+tA(e.subarray(10,14)));do{if((r=tA(e.subarray(t+4,t+8)))<1)break;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+r+10);for(var i=0;i<n.byteLength;i++)if(0===n[i]){if("com.apple.streaming.transportStreamTimestamp"===tP(n,0,i)){var o=n.subarray(i+1),a=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return a*=4,a+=3&o[7]}break}}t+=10+r}while(t<e.byteLength);return null}},tO=w,tN=tI;(l=function(){var e=new Uint8Array,t=0;l.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(r){var n,i,o,a=0,s=0;for(e.length?(o=e.length,(e=new Uint8Array(r.byteLength+o)).set(e.subarray(0,o)),e.set(r,o)):e=r;e.length-s>=3;){if(73===e[s]&&68===e[s+1]&&51===e[s+2]){if(e.length-s<10||(a=tN.parseId3TagSize(e,s),s+a>e.length))break;n={type:"timed-metadata",data:e.subarray(s,s+a)},this.trigger("data",n),s+=a;continue}if((255&e[s])==255&&(240&e[s+1])==240){if(e.length-s<7||(a=tN.parseAdtsSize(e,s),s+a>e.length))break;i={type:"audio",data:e.subarray(s,s+a),pts:t,dts:t},this.trigger("data",i),s+=a;continue}s++}e=e.length-s>0?e.subarray(s):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new tO;var tD=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],tR=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],tL=w,tM=ef,tj=ey,tB=eC,tU=eI,tF=tg,tH=ex,tz=t_,t$=tk,tq=l,tW=tI.isLikelyAacData,tV=ex.ONE_SECOND_IN_TS,tG=tD,tK=tR,tZ=function(e,t){t.stream=e,this.trigger("log",t)},tY=function(e,t){for(var r=Object.keys(t),n=0;n<r.length;n++){var i=r[n];"headOfPipeline"!==i&&t[i].on&&t[i].on("log",tZ.bind(e,i))}},tJ=function(e,t){var r;if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},tX=function(e,t,r,n,i,o){return{start:{dts:e,pts:e+(r-t)},end:{dts:e+(n-t),pts:e+(i-r)},prependedContentDuration:o,baseMediaDecodeTime:e}};(u=function(e,t){var r,n=[],i=0,o=0,a=1/0;r=(t=t||{}).firstSequenceNumber||0,u.prototype.init.call(this),this.push=function(t){tU.collectDtsInfo(e,t),e&&tG.forEach(function(r){e[r]=t[r]}),n.push(t)},this.setEarliestDts=function(e){i=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){o=e},this.flush=function(){var s,l,c,u,d,h,p;if(0===n.length){this.trigger("done","AudioSegmentStream");return}s=tB.trimAdtsFramesByEarliestDts(n,e,i),e.baseMediaDecodeTime=tU.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=tB.prefixWithSilence(e,s,o,a),e.samples=tB.generateSampleTable(s),c=tM.mdat(tB.concatenateFrameData(s)),n=[],u=new Uint8Array((l=tM.moof(r,[e])).byteLength+c.byteLength),r++,u.set(l),u.set(c,l.byteLength),tU.clearDtsInfo(e),d=Math.ceil(1024*tV/e.samplerate),s.length&&(h=s.length*d,this.trigger("segmentTimingInfo",tX(tH.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s[0].dts,s[0].pts,s[0].dts+h,s[0].pts+h,p||0)),this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+h})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")},this.reset=function(){tU.clearDtsInfo(e),n=[],this.trigger("reset")}}).prototype=new tL,(c=function(e,t){var r,n,i,o=[],a=[];r=(t=t||{}).firstSequenceNumber||0,c.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){tU.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],tK.forEac
85h(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.data,e.pps=[t.data]),o.push(t)},this.flush=function(){for(var n,i,s,l,c,u,d,h,p,f=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(i=tj.groupNalsIntoFrames(o),(l=tj.groupFramesIntoGops(i))[0][0].keyFrame||((s=this.getGopForFusion_(o[0],e))?(f=s.duration,l.unshift(s),l.byteLength+=s.byteLength,l.nalCount+=s.nalCount,l.pts=s.pts,l.dts=s.dts,l.duration+=s.duration):l=tj.extendFirstKeyFrame(l)),a.length){if(!(n=t.alignGopsAtEnd?this.alignGopsAtEnd_(l):this.alignGopsAtStart_(l))){this.gopCache_.unshift({gop:l.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}tU.clearDtsInfo(e),l=n}tU.collectDtsInfo(e,l),e.samples=tj.generateSampleTable(l),u=tM.mdat(tj.concatenateNalData(l)),e.baseMediaDecodeTime=tU.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",l.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),h=l[0],p=l[l.length-1],this.trigger("segmentTimingInfo",tX(e.baseMediaDecodeTime,h.dts,h.pts,p.dts+p.duration,p.pts+p.duration,f)),this.trigger("timingInfo",{start:l[0].pts,end:l[l.length-1].pts+l[l.length-1].duration}),this.gopCache_.unshift({gop:l.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),d=new Uint8Array((c=tM.moof(r,[e])).byteLength+u.byteLength),r++,d.set(c),d.set(u,c.byteLength),this.trigger("data",{track:e,boxes:d}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){tU.clearDtsInfo(e),n=void 0,i=void 0},this.getGopForFusion_=function(t){var r,n,i,o,a,s=45e3,l=1e4,c=1/0;for(a=0;a<this.gopCache_.length;a++)i=(o=this.gopCache_[a]).gop,e.pps&&tJ(e.pps[0],o.pps[0])&&e.sps&&tJ(e.sps[0],o.sps[0])&&!(i.dts<e.timelineStartInfo.dts)&&(r=t.dts-i.dts-i.duration)>=-l&&r<=s&&(!n||c>r)&&(n=o,c=r);return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,r,n,i,o,s,l,c;for(o=e.byteLength,s=e.nalCount,l=e.duration,t=r=0;t<a.length&&r<e.length&&(n=a[t],i=e[r],n.pts!==i.pts);){if(i.pts>n.pts){t++;continue}r++,o-=i.byteLength,s-=i.nalCount,l-=i.duration}return 0===r?e:r===e.length?null:((c=e.slice(r)).byteLength=o,c.duration=l,c.nalCount=s,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){for(t=a.length-1,r=e.length-1,o=null,s=!1;t>=0&&r>=0;){if(n=a[t],i=e[r],n.pts===i.pts){s=!0;break}if(n.pts>i.pts){t--;continue}t===a.length-1&&(o=r),r--}if(!s&&null===o)return null;if(0===(l=s?r:o))return e;var t,r,n,i,o,s,l,c=e.slice(l),u=c.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){a=e}}).prototype=new tL,(h=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,h.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):void(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),"audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes)))}}).prototype=new tL,h.prototype.flush=function(e){var t,r,n,i,o=0,a={captions:[],captionStream
vendor: 10,590 bytes, line 85
85s:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e||this.remuxTracks)return;if(0===this.pendingTracks.length){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,tK.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,tG.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,n=tM.initSegment(this.pendingTracks),a.initSegment=new Uint8Array(n.byteLength),a.initSegment.set(n),a.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)a.data.set(this.pendingBoxes[i],o),o+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)(t=this.pendingCaptions[i]).startTime=tH.metadataTsToSeconds(t.startPts,s,this.keepOriginalTimestamps),t.endTime=tH.metadataTsToSeconds(t.endPts,s,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)(r=this.pendingMetadata[i]).cueTime=tH.metadataTsToSeconds(r.pts,s,this.keepOriginalTimestamps),a.metadata.push(r);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),i=0;i<a.captions.length;i++)t=a.captions[i],this.trigger("caption",t);for(i=0;i<a.metadata.length;i++)r=a.metadata[i],this.trigger("id3Frame",r)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},h.prototype.setRemux=function(e){this.remuxTracks=e},(d=function(e){var t,r,n=this,i=!0;d.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="aac",i.metadataStream=new tF.MetadataStream,i.aacStream=new tq,i.audioTimestampRolloverStream=new tF.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new tF.TimestampRolloverStream("timed-metadata"),i.adtsStream=new tz,i.coalesceStream=new h(e,i.metadataStream),i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)}),i.aacStream.on("data",function(o){"timed-metadata"!==o.type&&"audio"!==o.type||i.audioSegmentStream||(r=r||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new u(r,e),i.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream),n.trigger("trackinfo",{hasAudio:!!r,hasVideo:!!t}))}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done")),tY(this,i)},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new tF.MetadataStream,i.packetStream=new tF.TransportPacketStream,i.parseStream=new tF.TransportParseStream,i.elementaryStream=new tF.ElementaryStream,i.timestampRolloverStream=new tF.TimestampRolloverStream,i.adtsStream=new tz,i.h264Stream=new t$,i.captionStream=new tF.CaptionStream(e),i.coalesceStream=new h(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(o){var a;if("metadata"===o.type){for(a=o.tracks.length;a--;)t||"video"!==o.tracks[a].type?r||"audio"!==o.tracks[a].type||((r=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(t=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new c(t,e),i.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),i.videoSegmentStream.on("timelineStartInfo",function(t){r&&!e.keepOriginalTimestamps&&(r.timelineStartInfo=t,i.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))}),i.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){r&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),r&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new u(r,e),i.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!r,hasVideo:!!t})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,n.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done")),tY(this,i)},this.setBaseMediaDecodeTime=function(n){var i=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),r&&(r.timelineStartInfo.dts=void 0,r.timelineStartInfo.pts=void 0,tU.clearDtsInfo(r),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,tU.clearDtsInfo(t),i.captionStream.reset()),i.timestampRolloverStream&&i.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){r&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var r=this.transmuxPipeline_;e.remux=t,r&&r.coalesceStream&&r.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(r){r.stream=e,t.trigger("log",r)}},this.push=function(e){if(i){var t=tW(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new tL;var tQ=d,t0=function(e){return e>>>0},t1=function(e){return("00"+e.toString(16)).slice(-2)},t2=function(e){return""+(String.fromCharCode(e[0])+String.fromCharCode(e[1])+String.fromCharCode(e[2])+String.fromCharCode(e[3]))},t4=t0,t3=t2,t6=function(e,t){var r,n,i,o,a,s=[];if(!t.length)return null;for(r=0;r<e.byteLength;)n=t4(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]),i=t3(e.subarray(r+4,r+8)),o=n>1?r+n:e.byteLength,i===t[0]&&(1===t.length?s.push(e.subarray(r+8,o)):(a=t6(e.subarray(r+8,o),t.slice(1))).length&&(s=s.concat(a))),r=o;return s},t5=t6,t8=t0,t7=k,t9=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=t7(e.subarray(4)):t.baseMediaDecodeTime=t8(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},re=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},rt=function(e){var t,r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&r.flags[2],o=4&r.flags[2],a=1&r.flags[1],s=2&r.flags[1],l=4&r.flags[1],c=8&r.flags[1],u=n.getUint32(4),d=8;for(i&&(r.dataOffset=n.getInt32(d),d+=4),o&&u&&(t={flags:re(e.subarray(d,d+4))},d+=4,a&&(t.duration=n.getUint32(d),d+=4),s&&(t.size=n.getUint32(d),d+=4),c&&(1===r.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),r.samples.push(t),u--);u--;)t={},a&&(t.duration=n.getUint32(d),d+=4),s&&(t.size=n.getUint32(d),d+=4),l&&(t.flags=re(e.subarray(d,d+4)),d+=4),c&&(1===r.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),r.samples.push(t);return r},rr=function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:r.getUint32(4)},i=1&n.flags[2],o=2&n.flags[2],a=8&n.flags[2],s=16&n.flags[2],l=32&n.flags[2],c=65536&n.flags[0],u=131072&n.flags[0];return t=8,i&&(t+=4,n.baseDataOffset=r.getUint32(12),t+=4),o&&(n.sampleDescriptionIndex=r.getUint32(t),t+=4),a&&(n.defaultSampleDuration=r.getUint32(t),t+=4),s&&(n.defaultSampleSize=r.getUint32(t),t+=4),l&&(n.defaultSampleFlags=r.getUint32(t)),c&&(n.durationIsEmpty=!0),!i&&u&&(n.baseDataOffsetIsMoof=!0),n};"undefined"!=typeof window?p=window:void 0!==b?p=b:"undefined"!=typeof self?p=self:p={};var rn=p,ri=eD.discardEmulationPreventionBytes,ro=eZ.CaptionStream,ra=t5,rs=t9,rl=rt,rc=rr,ru=rn,rd=function(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(r<i.size)return i;r-=i.size}return null},rh=function(e,t,r){var n,i,o,a,s=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(i=0;i+4<e.length;i+=o)if(o=s.getUint32(i),i+=4,!(o<=0))switch(31&e[i]){case 6:var c=e.subarray(i+1,i+1+o),u=rd(i,t);if(n={nalUnitType:"sei_rbsp",size:o,data:c,escapedRBSP:ri(c),trackId:r},u)n.pts=u.pts,n.dts=u.dts,a=u;else if(a)n.pts=a.pts,n.dts=a.dts;else{l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+i+" for trackId "+r
85+". See mux.js#223."});break}l.seiNals.push(n)}return l},rp=function(e,t,r){var n=t,i=r.defaultSampleDuration||0,o=r.defaultSampleSize||0,a=r.trackId,s=[];return e.forEach(function(e){var t=rl(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=o),e.trackId=a,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof n?(e.pts=n+ru.BigInt(e.compositionTimeOffset),n+=ru.BigInt(e.duration)):(e.pts=n+e.compositionTimeOffset,n+=e.duration)}),s=s.concat(t)}),s},rf=function(e,t){var r=ra(e,["moof","traf"]),n=ra(e,["mdat"]),i={},o=[];return n.forEach(function(e,t){var n=r[t];o.push({mdat:e,traf:n})}),o.forEach(function(e){var r,n=e.mdat,o=e.traf,a=rc(ra(o,["tfhd"])[0]),s=a.trackId,l=ra(o,["tfdt"]),c=l.length>0?rs(l[0]).baseMediaDecodeTime:0,u=ra(o,["trun"]);t===s&&u.length>0&&(r=rh(n,rp(u,c,a),s),i[s]||(i[s]={seiNals:[],logs:[]}),i[s].seiNals=i[s].seiNals.concat(r.seiNals),i[s].logs=i[s].logs.concat(r.logs))}),i},rm=function(e,t,r){if(null===t)return null;var n=rf(e,t)[t]||{};return{seiNals:n.seiNals,logs:n.logs,timescale:r}},rg=function(){var e,t,r,n,i,o,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new ro,a=!0,o=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/n,e.endTime=e.endPts/n,i.captions.push(e),i.captionStreams[e.stream]=!0}),e.on("log",function(e){i.logs.push(e)})},this.isNewInit=function(e,t){return(!e||0!==e.length)&&(!t||"object"!=typeof t||0!==Object.keys(t).length)&&(r!==e[0]||n!==t[r])},this.parse=function(e,o,a){var s;if(!this.isInitialized()||!o||!a)return null;if(this.isNewInit(o,a))n=a[r=o[0]];else if(null===r||!n)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,o,a)}return((s=rm(e,r,n))&&s.logs&&(i.logs=i.logs.concat(s.logs)),null!==s&&s.seiNals)?(this.pushNals(s.seiNals),this.flushStream(),i):i.logs.length?{logs:i.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;o?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){i.captions=[],i.captionStreams={},i.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],r=null,n=null,i?this.clearParsedCaptions():i={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},ry=function(e){for(var t=0,r=String.fromCharCode(e[0]),n="";"\0"!==r;)n+=r,r=String.fromCharCode(e[++t]);return n+r},rv=k,rb=function(e,t){var r="\0"!==t.scheme_id_uri,n=0===e&&r_(t.presentation_time_delta)&&r,i=1===e&&r_(t.presentation_time)&&r;return!(e>1)&&n||i},r_=function(e){return void 0!==e||null!==e},rw=t0,rS=t1,rk=t5,rx=t2,rE=function(e){var t,r,n,i,o,a,s,l=4,c=e[0];if(0===c){t=ry(e.subarray(l)),l+=t.length,r=ry(e.subarray(l)),l+=r.length;var u=new DataView(e.buffer);n=u.getUint32(l),l+=4,o=u.getUint32(l),l+=4,a=u.getUint32(l),l+=4,s=u.getUint32(l),l+=4}else if(1===c){var u=new DataView(e.buffer);n=u.getUint32(l),l+=4,i=rv(e.subarray(l)),l+=8,a=u.getUint32(l),l+=4,s=u.getUint32(l),l+=4,t=ry(e.subarray(l)),l+=t.length,r=ry(e.subarray(l)),l+=r.length}var d={scheme_id_uri:t,value:r,timescale:n||1,presentation_time:i,presentation_time_delta:o,event_duration:a,id:s,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return rb(c,d)?d:void 0},rT=function(e,t,r,n){return e||0===e?e/t:n+r/t},rA=rr,rC=rt,rP=t9,rI=k,rO=rn,rN=tn.parseId3Frames;f=function(e){var t={};return rk(e,["moov","trak"]).reduce(function(e,t){var r,n,i,o,a;return(r=rk(t,["tkhd"])[0])&&(i=0===(n=r[0])?12:20,o=rw(r[i]<<24|r[i+1]<<16|r[i+2]<<8|r[i+3]),a=rk(t,["mdia","mdhd"])[0])?(i=0===(n=a[0])?12:20,e[o]=rw(a[i]<<24|a[i+1]<<16|a[i+2]<<8|a[i+3]),e):null},t)},m=function(e,t){var r=rk(t,["moof","traf"]).reduce(function(t,r){let n;var i,o=rk(r,["tfhd"])[0],a=e[rw(o[4]<<24|o[5]<<16|o[6]<<8|o[7])]||9e4,s=rk(r,["tfdt"])[0],l=new DataView(s.buffer,s.byteOffset,s.byteLength);return"bigint"==typeof(i=1===s[0]?rI(s.subarray(4,12)):l.getUint32(4))?n=i/rO.BigInt(a):"number"!=typeof i||isNaN(i)||(n=i/a),n<Number.MAX_SAFE_INTEGER&&(n=Number(n)),n<t&&(t=n),t},1/0);return"bigint"==typeof r||isFinite(r)?r:0},g=function(e,t){var r,n=rk(t,["moof","traf"]),i=0,o=0;if(n&&n.length){var a=rk(n[0],["tfhd"])[0],s=rk(n[0],["trun"])[0],l=rk(n[0],["tfdt"])[0];if(a&&(r=rA(a).trackId),l&&(i=rP(l).baseMediaDecodeTime),s){var c=rC(s);c.samples&&c.samples.length&&(o=c.samples[0].compositionTimeOffset||0)}}var u=e[r]||9e4;"bigint"==typeof i&&(o=rO.BigInt(o),u=rO.BigInt(u));var d=(i+o)/u;return"bigint"==typeof d&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),d},y=function(e){var t=rk(e,["moov","trak"]),r=[];return t.forEach(function(e){var t=rk(e,["mdia","hdlr"]),n=rk(e,["tkhd"]);t.forEach(function(e,t){var i,o,a=rx(e.subarray(8,12)),s=n[t];"vide"===a&&(o=0===(i=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0)?i.getUint32(12):i.getUint32(20),r.push(o))})}),r},v=function(e){var t=0===e[0]?12:20;return rw(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])};var rD=m,rR=function(e){var t=rk(e,["moov","trak"]),r=[];return t.forEach(function(e){var t={},n=rk(e,["tkhd"])[0];n&&(l=(s=new DataView(n.buffer,n.byteOffset,n.byteLength)).getUint8(0),t.id=0===l?s.getUint32(12):s.getUint32(20));var i=rk(e,["mdia","hdlr"])[0];if(i){var o=rx(i.subarray(8,12));"vide"===o?t.type="video":"soun"===o?t.type="audio":t.type=o}var a=rk(e,["mdia","minf","stbl","stsd"])[0];if(a){var s,l,c,u,d=a.subarray(8);t.codec=rx(d.subarray(4,8));var h=rk(d,[t.codec])[0];
85h&&(/^[asm]vc[1-9]$/i.test(t.codec)?"avcC"===(u=rx((c=h.subarray(78)).subarray(4,8)))&&c.length>11?(t.codec+=".",t.codec+=rS(c[9]),t.codec+=rS(c[10]),t.codec+=rS(c[11])):t.codec="avc1.4d400d":/^mp4[a,v]$/i.test(t.codec)?"esds"===(u=rx((c=h.subarray(28)).subarray(4,8)))&&c.length>20&&0!==c[19]?(t.codec+="."+rS(c[19]),t.codec+="."+rS(c[20]>>>2&63).replace(/^0/,"")):t.codec="mp4a.40.2":t.codec=t.codec.toLowerCase())}var p=rk(e,["mdia","mdhd"])[0];p&&(t.timescale=v(p)),r.push(t)}),r},rL=function(e,t=0){return rk(e,["emsg"]).map(e=>{var r=rE(new Uint8Array(e)),n=rN(r.message_data);return{cueTime:rT(r.presentation_time,r.timescale,r.presentation_time_delta,t),duration:rT(r.event_duration,r.timescale),frames:n}})},rM=eY,rj=function(e){var t=31&e[1];return t<<=8,t|=e[2]},rB=function(e){return!!(64&e[1])},rU=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},rF=function(e){if(!rB(e))return null;var t,r=4+rU(e);if(r>=e.byteLength)return null;var n=null;return 192&(t=e[r+7])&&((n={}).pts=(14&e[r+9])<<27|(255&e[r+10])<<20|(254&e[r+11])<<12|(255&e[r+12])<<5|(254&e[r+13])>>>3,n.pts*=4,n.pts+=(6&e[r+13])>>>1,n.dts=n.pts,64&t&&(n.dts=(14&e[r+14])<<27|(255&e[r+15])<<20|(254&e[r+16])<<12|(255&e[r+17])<<5|(254&e[r+18])>>>3,n.dts*=4,n.dts+=(6&e[r+18])>>>1)),n},rH=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},rz={parseType:function(e,t){var r=rj(e);return 0===r?"pat":r===t?"pmt":t?"pes":null},parsePat:function(e){var t=rB(e),r=4+rU(e);return t&&(r+=e[r]+1),(31&e[r+10])<<8|e[r+11]},parsePmt:function(e){var t,r={},n=rB(e),i=4+rU(e);if(n&&(i+=e[i]+1),1&e[i+5]){t=3+((15&e[i+1])<<8|e[i+2])-4;for(var o=12+((15&e[i+10])<<8|e[i+11]);o<t;){var a=i+o;r[(31&e[a+1])<<8|e[a+2]]=e[a],o+=((15&e[a+3])<<8|e[a+4])+5}return r}},parsePayloadUnitStartIndicator:rB,parsePesType:function(e,t){switch(t[rj(e)]){case rM.H264_STREAM_TYPE:return"video";case rM.ADTS_STREAM_TYPE:return"audio";case rM.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:rF,videoPacketContainsKeyFrame:function(e){for(var t,r=4+rU(e),n=e.subarray(r),i=0,o=0,a=!1;o<n.byteLength-3;o++)if(1===n[o+2]){i=o+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}o+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===(t=rH(31&n[o+3]))&&(a=!0);do i++;while(1!==n[i]&&i<n.length);o=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===(t=rH(31&n[o+3]))&&(a=!0),o=i-2,i+=3;break;default:i+=3}return n=n.subarray(o),i-=o,o=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===(t=rH(31&n[o+3]))&&(a=!0),a}},r$=eY,rq=e6,rW={};rW.ts=rz,rW.aac=tI;var rV=ex.ONE_SECOND_IN_TS,rG=188,rK=71,rZ=function(e,t){for(var r,n=0,i=rG;i<e.byteLength;){if(e[n]===rK&&e[i]===rK){switch(r=e.subarray(n,i),rW.ts.parseType(r,t.pid)){case"pat":t.pid=rW.ts.parsePat(r);break;case"pmt":var o=rW.ts.parsePmt(r);t.table=t.table||{},Object.keys(o).forEach(function(e){t.table[e]=o[e]})}n+=rG,i+=rG;continue}n++,i++}},rY=function(e,t,r){for(var n,i,o,a,s,l=0,c=rG,u=!1;c<=e.byteLength;){if(e[l]===rK&&(e[c]===rK||c===e.byteLength)){if(n=e.subarray(l,c),"pes"===(i=rW.ts.parseType(n,t.pid))&&(o=rW.ts.parsePesType(n,t.table),a=rW.ts.parsePayloadUnitStartIndicator(n),"audio"===o&&a&&(s=rW.ts.parsePesTime(n))&&(s.type="audio",r.audio.push(s),u=!0)),u)break;l+=rG,c+=rG;continue}l++,c++}for(l=(c=e.byteLength)-rG,u=!1;l>=0;){if(e[l]===rK&&(e[c]===rK||c===e.byteLength)){if(n=e.subarray(l,c),"pes"===(i=rW.ts.parseType(n,t.pid))&&(o=rW.ts.parsePesType(n,t.table),a=rW.ts.parsePayloadUnitStartIndicator(n),"audio"===o&&a&&(s=rW.ts.parsePesTime(n))&&(s.type="audio",r.audio.push(s),u=!0)),u)break;l-=rG,c-=rG;continue}l--,c--}},rJ=function(e,t,r){for(var n,i,o,a,s,l,c,u,d=0,h=rG,p=!1,f={data:[],size:0};h<e.byteLength;){if(e[d]===rK&&e[h]===rK){if(n=e.subarray(d,h),"pes"===(i=rW.ts.parseType(n,t.pid))&&(o=rW.ts.parsePesType(n,t.table),a=rW.ts.parsePayloadUnitStartIndicator(n),"video"===o&&(a&&!p&&(s=rW.ts.parsePesTime(n))&&(s.type="video",r.video.push(s),p=!0),!r.firstKeyFrame))){if
85(a&&0!==f.size){for(l=new Uint8Array(f.size),c=0;f.data.length;)u=f.data.shift(),l.set(u,c),c+=u.byteLength;if(rW.ts.videoPacketContainsKeyFrame(l)){var m=rW.ts.parsePesTime(l);m?(r.firstKeyFrame=m,r.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(n),f.size+=n.byteLength}if(p&&r.firstKeyFrame)break;d+=rG,h+=rG;continue}d++,h++}for(d=(h=e.byteLength)-rG,p=!1;d>=0;){if(e[d]===rK&&e[h]===rK){if(n=e.subarray(d,h),"pes"===(i=rW.ts.parseType(n,t.pid))&&(o=rW.ts.parsePesType(n,t.table),a=rW.ts.parsePayloadUnitStartIndicator(n),"video"===o&&a&&(s=rW.ts.parsePesTime(n))&&(s.type="video",r.video.push(s),p=!0)),p)break;d-=rG,h-=rG;continue}d--,h--}},rX=function(e,t){if(e.audio&&e.audio.length){var r=t;(void 0===r||isNaN(r))&&(r=e.audio[0].dts),e.audio.forEach(function(e){e.dts=rq(e.dts,r),e.pts=rq(e.pts,r),e.dtsTime=e.dts/rV,e.ptsTime=e.pts/rV})}if(e.video&&e.video.length){var n=t;if((void 0===n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach(function(e){e.dts=rq(e.dts,n),e.pts=rq(e.pts,n),e.dtsTime=e.dts/rV,e.ptsTime=e.pts/rV}),e.firstKeyFrame){var i=e.firstKeyFrame;i.dts=rq(i.dts,n),i.pts=rq(i.pts,n),i.dtsTime=i.dts/rV,i.ptsTime=i.pts/rV}}},rQ=function(e){for(var t,r=!1,n=0,i=null,o=null,a=0,s=0;e.length-s>=3;){switch(rW.aac.parseType(e,s)){case"timed-metadata":if(e.length-s<10||(a=rW.aac.parseId3TagSize(e,s))>e.length){r=!0;break}null===o&&(t=e.subarray(s,s+a),o=rW.aac.parseAacTimestamp(t)),s+=a;break;case"audio":if(e.length-s<7||(a=rW.aac.parseAdtsSize(e,s))>e.length){r=!0;break}null===i&&(t=e.subarray(s,s+a),i=rW.aac.parseSampleRate(t)),n++,s+=a;break;default:s++}if(r)return null}if(null===i||null===o)return null;var l=rV/i;return{audio:[{type:"audio",dts:o,pts:o},{type:"audio",dts:o+1024*n*l,pts:o+1024*n*l}]}},r0=function(e){var t={pid:null,table:null},r={};for(var n in rZ(e,t),t.table)if(t.table.hasOwnProperty(n))switch(t.table[n]){case r$.H264_STREAM_TYPE:r.video=[],rJ(e,t,r),0===r.video.length&&delete r.video;break;case r$.ADTS_STREAM_TYPE:r.audio=[],rY(e,t,r),0===r.audio.length&&delete r.audio}return r},r1=function(e,t){var r;return(r=rW.aac.isLikelyAacData(e)?rQ(e):r0(e))&&(r.audio||r.video)?(rX(r,t),r):null};let r2=function(e,t){t.on("data",function(t){let r=t.initSegment;t.initSegment={data:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength};let n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){let r={start:{decode:ex.videoTsToSeconds(t.start.dts),presentation:ex.videoTsToSeconds(t.start.pts)},end:{decode:ex.videoTsToSeconds(t.end.dts),presentation:ex.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ex.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(r.prependedContentDuration=ex.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:r})}),t.on("audioSegmentTimingInfo",function(t){let r={start:{decode:ex.videoTsToSeconds(t.start.dts),presentation:ex.videoTsToSeconds(t.start.pts)},end:{decode:ex.videoTsToSeconds(t.end.dts),presentation:ex.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ex.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(r.prependedContentDuration=ex.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:r})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ex.videoTsToSeconds(t.start),end:ex.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ex.videoTsToSeconds(t.start),end:ex.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})};class r4{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new tQ(this.options),r2(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new rg,this.captionParser.init());let t=new Uint8Array(e.data,e.byteOffset,e.byteLength),r=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:r&&r.captions||[],logs:r&&r.logs||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){let r=rD(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:r,data:t},[t.buffer])}probeMp4Tracks({data:e}){let t=rR(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){let r=rL(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:r,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){let r=r1(e,"number"!=typeof t||isNaN(t)?void 0:t*ex.ONE_SECOND_IN_TS),n=null;r&&((n={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(n.videoStart=r.video[0].ptsTime),n.hasAudio&&(n.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:n,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){let t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){let t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ex.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(ex.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){if("init"===e.data.action&&e.data.options){this.messageHandlers=new r4(self,e.data.options);return}this.messageHandlers||(this.messageHandlers=new r4(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}})));let l1=(e,t,r)=>
85{let{type:n,initSegment:i,captions:o,captionStreams:a,metadata:s,videoFrameDtsTime:l,videoFramePtsTime:c}=e.data.segment;t.buffer.push({captions:o,captionStreams:a,metadata:s});let u=e.data.segment.boxes||{data:e.data.segment.data},d={type:n,data:new Uint8Array(u.data,u.data.byteOffset,u.data.byteLength),initSegment:new Uint8Array(i.data,i.byteOffset,i.byteLength)};void 0!==l&&(d.videoFrameDtsTime=l),void 0!==c&&(d.videoFramePtsTime=c),r(d)},l2=({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)},l4=(e,t)=>{t.gopInfo=e.data.gopInfo},l3=e=>{let{transmuxer:t,bytes:r,audioAppendStart:n,gopsToAlignWith:i,remux:o,onData:a,onTrackInfo:s,onAudioTimingInfo:l,onVideoTimingInfo:c,onVideoSegmentTimingInfo:u,onAudioSegmentTimingInfo:d,onId3:h,onCaptions:p,onDone:f,onEndedTimeline:m,onTransmuxerLog:g,isEndOfTimeline:y,segment:v,triggerSegmentEventFn:b}=e,_={buffer:[]},w=y,S=r=>{t.currentTransmux===e&&("data"===r.data.action&&l1(r,_,a),"trackinfo"===r.data.action&&s(r.data.trackInfo),"gopInfo"===r.data.action&&l4(r,_),"audioTimingInfo"===r.data.action&&l(r.data.audioTimingInfo),"videoTimingInfo"===r.data.action&&c(r.data.videoTimingInfo),"videoSegmentTimingInfo"===r.data.action&&u(r.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===r.data.action&&d(r.data.audioSegmentTimingInfo),"id3Frame"===r.data.action&&h([r.data.id3Frame],r.data.id3Frame.dispatchType),"caption"===r.data.action&&p(r.data.caption),"endedtimeline"===r.data.action&&(w=!1,m()),"log"===r.data.action&&g(r.data.log),"transmuxed"!==r.data.type||w||(t.onmessage=null,l2({transmuxedData:_,callback:f}),l6(t)))},k=()=>{f(null,{message:"Received an error message from the transmuxer worker",metadata:{errorType:so.Error.StreamingFailedToTransmuxSegment,segmentInfo:ur({segment:v})}})};if(t.onmessage=S,t.onerror=k,n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(i)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:i}),void 0!==o&&t.postMessage({action:"setRemux",remux:o}),r.byteLength){let e=r instanceof ArrayBuffer?r:r.buffer,n=r instanceof ArrayBuffer?0:r.byteOffset;b({type:"segmenttransmuxingstart",segment:v}),t.postMessage({action:"push",data:e,byteOffset:n,byteLength:r.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},l6=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():l3(e.currentTransmux))},l5=(e,t)=>{e.postMessage({action:t}),l6(e)},l8=(e,t)=>{if(!t.currentTransmux){t.currentTransmux=e,l5(t,e);return}t.transmuxQueue.push(l5.bind(null,t,e))},l7=e=>{if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,l3(e);return}e.transmuxer.transmuxQueue.push(e)};var l9={reset:e=>{l8("reset",e)},createTransmuxer:e=>{let t=new l0;t.currentTransmux=null,t.transmuxQueue=[];let r=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,r.call(t)),t.postMessage({action:"init",options:e}),t}};let ce=function(e){let t=e.transmuxer,r=e.endAction||e.action,n=e.callback,i=(0,_.Z)({},e,{endAction:null,transmuxer:null,callback:null}),o=i=>{i.data.action===r&&(t.removeEventListener("message",o),i.data.data&&(i.data.data=new Uint8Array(i.data.data,e.byteOffset||0,e.byteLength||i.data.data.byteLength),e.data&&(e.data=i.data.data)),n(i.data))};if(t.addEventListener("message",o),e.data){let r=e.data instanceof ArrayBuffer;i.byteOffset=r?0:e.data.byteOffset,i.byteLength=e.data.byteLength;let n=[r?e.data:e.data.buffer];t.postMessage(i,n)}else t.postMessage(i)},ct={FAILURE:2,TIMEOUT:-101,ABORTED:-102},cr=e=>{e.forEach(e=>{e.abort()})},cn=e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}),ci=e=>{let t=e.target,r={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return r.bytesReceived=e.loaded,r.bandwidth=Math.floor(r.bytesReceived/r.roundTripTime*8e3),r},co=(e,t)=>{let{requestType:r}=t,n=s9({requestType:r,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:ct.TIMEOUT,xhr:t,metadata:n}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:ct.ABORTED,xhr:t,metadata:n}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:ct.FAILURE,xhr:t,metadata:n}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:ct.FAILURE,xhr:t,metadata:n}:null},ca=(e,t,r,n)=>(i,o)=>{let a=o.response,s=co(i,o);if(s)return r(s,e);if(16!==a.byteLength)return r({status:o.status,message:"Invalid HLS key at URL: "+o.uri,code:ct.FAILURE,xhr:o},e);let l=new DataView(a),c=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=c;return n({type:"segmentkeyloadcomplete",segment:e,keyInfo:{uri:o.uri}}),r(null,e)},cs=(e,t)=>{let r=t3(e.map.bytes);if("mp4"!==r){let n=e.map.resolvedUri||e.map.uri,i=r||"unknown";return t({internal:!0,message:`Found unsupported ${i} container for initialization segment at URL: ${n}`,code:ct.FAILURE,metadata:{mediaType:i}})}ce({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:r,data:n})=>(e.map.bytes=n,r.forEach(function(t){e.map.tracks=e.map.tracks||{},!e.map.tracks[t.type]&&(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))}),t(null))})},cl=({segment:e,finishProcessingFn:t,triggerSegmentEventFn:r})=>(n,i)=>{let o=co(n,i);if(o)return t(o,e);let a=new Uint8Array(i.response);if(r({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=a,t(null,e);e.map.bytes=a,cs(e,function(r){if(r)return r.xhr=i,r.status=i.status,t(r,e);t(null,e)})},cc=({segment:e,finishProcessingFn:t,responseType:r,triggerSegmentEventFn:n})=>(i,o)=>{let a=co(i,o);if(a)return t(a,e);n({type:"segmentloaded",segment:e});let s="arraybuffer"!==r&&o.responseText?lK(o.responseText.substring(e.lastReachedChar||0)):o.response;return e.stats=cn(o),e.key?e.encryptedBytes=new Uint8Array(s):e.bytes=new Uint8Array(s),t(null,e)},cu=({segment:e,bytes:t,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{let f=e.map&&e.map.tracks||{},m=!!(f.audio&&f.video),g=n.bind(null,e,"audio","start"),y=n.bind(null,e,"audio","end"),v=n.bind(null,e,"video","start"),b=n.bind(null,e,"video","end"),_=()=>l7({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:m,onData:t=>{t.type="combined"===t.type?"video":t.type,u(e,t)},onTrackInfo:t=>{r&&(m&&(t.isMuxed=!0),r(e,t))},onAudioTimingInfo:e=>{g&&void 0!==e.start&&(g(e.start),g=null),y&&void 0!==e.end&&y(e.end)},onVideoTimingInfo:e=>{v&&void 0!==e.start&&(v(e.start),v=null),b&&void 0!==e.end&&b(e.end)},onVideoSegmentTimingInfo:t=>{p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:{pts:{start:t.start.presentation,end:t.end.presentation},dts:{start:t.start.decode,end:t.end.decode}}}),i(t)},onAudioSegmentTimingInfo:t=>{p({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:{pts:{start:t.start.pts,end:t.end.pts},dts:{start:t.start.dts,end:t.end.dts}}}),o(t)},onId3:(t,r)=>{a(e,t,r)},onCaptions:t=>{s(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{c()},onTransmuxerLog:h,onDone:(t,r)=>{d&&(t.type="combined"===t.type?"video":t.type,p({type:"segmenttransmuxingcomplete",segment:e}),d(r,e,t))},segment:e,triggerSegmentEventFn:p});ce({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:n=>{e.bytes=t=n.data;let i=n.result;i&&(r(e,{hasAudio:i.hasAudio,hasVideo:i.hasVideo,isMuxed:m}),r=null),_()}})},cd=({segment:e,bytes:t,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{let f=new Uint8Array(t);if(t6(f)){e.isFmp4=!0;let{tracks:i}=e.map,o={isFmp4:!0,hasVideo:!!i.video,hasAudio:!!i.audio};i.audio&&i.audio.codec&&"enca"!==i.audio.codec&&(o.audioCodec=i.audio.codec),i.video&&i.video.codec&&"encv"!==i.video.codec&&(o.videoCodec=i.video.codec),i.video&&i.audio&&(o.isMuxed=!0),r(e,o);let l=(t,r)=>{u(e,{data:f,type:o.hasAudio&&!o.isMuxed?"audio":"video"}),r&&r.length&&a(e,r),t&&t.length&&s(e,t),d(null,e,{})};ce({action:"probeMp4StartTime",timescales:e.map.timescales,data:f,transmuxer:e.transmuxer,callback:({data:r,startTime:a})=>{t=r.buffer,e.bytes=f=r,o.hasAudio&&!o.isMuxed&&n(e,"audio","start",a),o.hasVideo&&n(e,"video","start",a),ce({action:"probeEmsgID3",data:f,transmuxer:e.transmuxer,offset:a,callback:({emsgData:r,id3Frames:n})=>{if(t=r.buffer,e.bytes=f=r,!i.video||!r.byteLength||!e.transmuxer){l(void 0,n);return}ce({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:f,timescales:e.map.timescales,trackIds:[i.video.id],callback:r=>
85{t=r.data.buffer,e.bytes=f=r.data,r.logs.forEach(function(e){h(sf(e,{stream:"mp4CaptionParser"}))}),l(r.captions,n)}})}})}});return}if(!e.transmuxer){d(null,e,{});return}if(void 0===e.container&&(e.container=t3(f)),"ts"!==e.container&&"aac"!==e.container){r(e,{hasAudio:!1,hasVideo:!1}),d(null,e,{});return}cu({segment:e,bytes:t,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})},ch=function({id:e,key:t,encryptedBytes:r,decryptionWorker:n,segment:i,doneFn:o},a){let s;let l=t=>{if(t.data.source===e){n.removeEventListener("message",l);let e=t.data.decrypted;a(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};n.onerror=()=>{let e="An error occurred in the decryption worker",t=ur({segment:i});o({message:e,metadata:{error:Error(e),errorType:so.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:i.key.resolvedUri||i.map.key.resolvedUri}}},i)},n.addEventListener("message",l),s=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),n.postMessage(l_({source:e,encrypted:r,key:s,iv:t.iv}),[r.buffer,s.buffer])},cp=({decryptionWorker:e,segment:t,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{p({type:"segmentdecryptionstart"}),ch({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:d},e=>{t.bytes=e,p({type:"segmentdecryptioncomplete",segment:t}),cd({segment:t,bytes:t.bytes,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})})},cf=({activeXhrs:e,decryptionWorker:t,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})=>{let f=0,m=!1;return(g,y)=>{if(!m){if(g)return m=!0,cr(e),d(g,y);if((f+=1)===e.length){let f=function(){if(y.encryptedBytes)return cp({decryptionWorker:t,segment:y,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p});cd({segment:y,bytes:y.bytes,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:h,triggerSegmentEventFn:p})};if(y.endOfAllRequests=Date.now(),y.map&&y.map.encryptedBytes&&!y.map.bytes)return p({type:"segmentdecryptionstart",segment:y}),ch({decryptionWorker:t,id:y.requestId+"-init",encryptedBytes:y.map.encryptedBytes,key:y.map.key,segment:y,doneFn:d},t=>{y.map.bytes=t,p({type:"segmentdecryptioncomplete",segment:y}),cs(y,t=>{if(t)return cr(e),d(t,y);f()})});f()}}}},cm=({loadendState:e,abortFn:t})=>r=>{r.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)},cg=({segment:e,progressFn:t,trackInfoFn:r,timingInfoFn:n,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:s,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u})=>r=>{if(!r.target.aborted)return e.stats=sf(e.stats,ci(r)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(r,e)},cy=({xhr:e,xhrOptions:t,decryptionWorker:r,segment:n,abortFn:i,progressFn:o,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g,triggerSegmentEventFn:y})=>{let v=[],b=cf({activeXhrs:v,decryptionWorker:r,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g,triggerSegmentEventFn:y});if(n.key&&!n.key.bytes){let r=[n.key];n.map&&!n.map.bytes&&n.map.key&&n.map.key.resolvedUri===n.key.resolvedUri&&r.push(n.map.
85key);let i=sf(t,{uri:n.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),o=ca(n,r,b,y),a={uri:n.key.resolvedUri};y({type:"segmentkeyloadstart",segment:n,keyInfo:a});let s=e(i,o);v.push(s)}if(n.map&&!n.map.bytes){if(n.map.key&&(!n.key||n.key.resolvedUri!==n.map.key.resolvedUri)){let r=sf(t,{uri:n.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),i=ca(n,[n.map.key],b,y),o={uri:n.map.key.resolvedUri};y({type:"segmentkeyloadstart",segment:n,keyInfo:o});let a=e(r,i);v.push(a)}let r=sf(t,{uri:n.map.resolvedUri,responseType:"arraybuffer",headers:lg(n.map),requestType:"segment-media-initialization"}),i=cl({segment:n,finishProcessingFn:b,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:n});let o=e(r,i);v.push(o)}let _=sf(t,{uri:n.part&&n.part.resolvedUri||n.resolvedUri,responseType:"arraybuffer",headers:lg(n),requestType:"segment"}),w=cc({segment:n,finishProcessingFn:b,responseType:_.responseType,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:n});let S=e(_,w);S.addEventListener("progress",cg({segment:n,progressFn:o,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f})),v.push(S);let k={};return v.forEach(e=>{e.addEventListener("loadend",cm({loadendState:k,abortFn:i}))}),()=>cr(v)},cv=sp("CodecUtils"),cb=function(e){let t=e.attributes||{};if(t.CODECS)return $(t.CODECS)},c_=(e,t)=>{let r=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&r.AUDIO&&e.mediaGroups.AUDIO[r.AUDIO]},cw=(e,t)=>{if(!c_(e,t))return!0;let r=t.attributes||{},n=e.mediaGroups.AUDIO[r.AUDIO];for(let e in n)if(!n[e].uri&&!n[e].playlists)return!0;return!1},cS=function(e){let t={};return e.forEach(({mediaType:e,type:r,details:n})=>{t[e]=t[e]||[],t[e].push(z(`${r}${n}`))}),Object.keys(t).forEach(function(e){if(t[e].length>1){cv(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),t[e]=null;return}t[e]=t[e][0]}),t},ck=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},cx=function(e,t){let r=t.attributes||{},n=cS(cb(t)||[]);if(c_(e,t)&&!n.audio&&!cw(e,t)){let t=cS(q(e,r.AUDIO)||[]);t.audio&&(n.audio=t.audio)}return n},cE=sp("PlaylistSelector"),cT=function(e){if(!e||!e.playlist)return;let t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},cA=function(e,t){if(!e)return"";let r=d().getComputedStyle(e);return r?r[t]:""},cC=function(e,t){let r=e.slice();e.sort(function(e,n){let i=t(e,n);return 0===i?r.indexOf(e)-r.indexOf(n):i})},cP=function(e,t){let r,n;return e.attributes.BANDWIDTH&&(r=e.attributes.BANDWIDTH),r=r||d().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),r-(n=n||d().Number.MAX_VALUE)},cI=function(e,t){let r,n;return(e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(r=e.attributes.RESOLUTION.width),r=r||d().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),r===(n=n||d().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH)?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:r-n},cO=function(e,t,r,n,i,o){let a,s,l,c;if(!e)return;let u={bandwidth:t,width:r,height:n,limitRenditionByPlayerDimensions:i},h=e.playlists;sY.isAudioOnly(e)&&(h=o.getAudioTrackPlaylists_(),u.audioOnly=!0);let p=h.map(e=>{let t;let r=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:t=(t=e.attributes&&e.attributes.BANDWIDTH)||d().Number.MAX_VALUE,width:r,height:n,playlist:e}});cC(p,(e,t)=>e.bandwidth-t.bandwidth);let f=(p=p.filter(e=>!sY.isIncompatible(e.playlist))).filter(e=>sY.isEnabled(e.playlist));f.length||(f=p.filter(e=>!sY.isDisabled(e.playlist)));let m=f.filter(e=>e.bandwidth*lG.BANDWIDTH_VARIANCE<t),g=m[m.length-1],y=m.filter(e=>e.bandwidth===g.bandwidth)[0];if(!1===i){let e=y||f[0]||p[0];if(e&&e.playlist){let t="sortedPlaylistReps";return y&&(t="bandwidthBestRep"),f[0]&&(t="enabledPlaylistReps"),cE(`choosing ${cT(e)} using ${t} with options`,u),e.playlist}return cE("could not choose a playlist with options",u),null}let v=m.filter(e=>e.width&&e.height);cC(v,(e,t)=>e.width-t.width);let b=v.filter(e=>e.width===r&&e.height===n);g=b[b.length-1];let _=b.filter(e=>e.bandwidth===g.bandwidth)[0];if(_||(g=(s=(a=v.filter(e=>e.width>r||e.height>n)).filter(e=>e.width===a[0].width&&e.height===a[0].height))[s.length-1],l=s.filter(e=>e.bandwidth===g.bandwidth)[0]),o.leastPixelDiffSelector){let e=v.map(e=>(e.pixelDiff=Math.abs(e.width-r)+Math.abs(e.height-n),e));cC(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),c=e[0]}let w=c||l||_||y||f[0]||p[0];if(w&&w.playlist){let e="sortedPlaylistReps";return c?e="leastPixelDiffRep":l?e="resolutionPlusOneRep":_?e="resolutionBestRep":y?e="bandwidthBestRep":f[0]&&(e="enabledPlaylistReps"),cE(`choosing ${cT(w)} using ${e} with options`,u),w.playlist}return cE("could not choose a playlist with options",u),null},cN=function(){let e=this.useDevicePixelRatio&&d().devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),cO(this.playlists.main,this.systemBandwidth,parseInt(cA(this.tech_.el(),"width"),10)*e,parseInt(cA(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},cD=function(e){let t=-1,r=-1;if(e<0||e>1)throw Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let n=this.useDevicePixelRatio&&d().devicePixelRatio||1;return isNaN(this.customPixelRatio)||(n=this.customPixelRatio),t<0&&(t=this.systemBandwidth,r=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==r&&(t=e*this.systemBandwidth+(1-e)*t,r=this.systemBandwidth),cO(this.playlists.main,t,parseInt(cA(this.tech_.el(),"width"),10)*n,parseInt(cA(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.playlistController_)}},cR=function(e){let{main:t,currentTime:r,bandwidth:n,duration:i,segmentDuration:o,timeUntilRebuffer:a,currentTimeline:s,syncController:l}=e,c=t.playlists.filter(e=>!sY.isIncompatible(e)),u=c.filter(sY.isEnabled);u.length||(u=c.filter(e=>!sY.isDisabled(e)));let d=u.filter(sY.hasAttribute.bind(null,"BANDWIDTH")).map(e=>{let t=l.getSyncPoint(e,i,s,r)?1:2,c=sY.estimateSegmentRequestTime(o,n,e)*t-a;return{playlist:e,rebufferingImpact:c}}),h=d.filter(e=>e.rebufferingImpact<=0);return(cC(h,(e,t)=>cP(t.playlist,e.playlist)),h.length)?h[0]:(cC(d,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),d[0]||null)},cL=function(){let e=this.playlists.main.playlists.filter(sY.isEnabled);return cC(e,(e,t)=>cP(e,t)),e.filter(e=>!!cx(this.playlists.main,e).video)[0]||null},cM=e=>{let t,r=0;
85return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(e=>{t.set(e,r),r+=e.byteLength})),t};function cj(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(e){return""}}let cB=function(e,t,r){if(!e[r]){t.trigger({type:"usage",name:"vhs-608"});let n=r;/^cc708_/.test(r)&&(n="SERVICE"+r.split("_")[1]);let i=t.textTracks().getTrackById(n);if(i)e[r]=i;else{let i=t.options_.vhs&&t.options_.vhs.captionServices||{},o=r,a=r,s=!1,l=i[n];l&&(o=l.label,a=l.language,s=l.default),e[r]=t.addRemoteTextTrack({kind:"captions",id:n,default:s,label:o,language:a},!1).track}}},cU=function({inbandTextTracks:e,captionArray:t,timestampOffset:r}){if(!t)return;let n=d().WebKitDataCue||d().VTTCue;t.forEach(t=>{let i=t.stream;t.content?t.content.forEach(o=>{let a=new n(t.startTime+r,t.endTime+r,o.text);a.line=o.line,a.align="left",a.position=o.position,a.positionAlign="line-left",e[i].addCue(a)}):e[i].addCue(new n(t.startTime+r,t.endTime+r,t.text))})},cF=function(e){Object.defineProperties(e.frame,{id:{get:()=>(so.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(so.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(so.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})},cH=({inbandTextTracks:e,metadataArray:t,timestampOffset:r,videoDuration:n})=>{if(!t)return;let i=d().WebKitDataCue||d().VTTCue,o=e.metadataTrack_;if(!o||(t.forEach(e=>{let t=e.cueTime+r;!("number"!=typeof t||d().isNaN(t))&&!(t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach(e=>{let r=new i(t,t,e.value||e.url||e.data||"");r.frame=e,r.value=e,cF(r),o.addCue(r)})}),!o.cues||!o.cues.length))return;let a=o.cues,s=[];for(let e=0;e<a.length;e++)a[e]&&s.push(a[e]);let l=s.reduce((e,t)=>{let r=e[t.startTime]||[];return r.push(t),e[t.startTime]=r,e},{}),c=Object.keys(l).sort((e,t)=>Number(e)-Number(t));c.forEach((e,t)=>{let r=l[e],i=isFinite(n)?n:e,o=Number(c[t+1])||i;r.forEach(e=>{e.endTime=o})})},cz={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},c$=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),cq=({inbandTextTracks:e,dateRanges:t})=>{let r=e.metadataTrack_;if(!r)return;let n=d().WebKitDataCue||d().VTTCue;t.forEach(e=>{for(let t of Object.keys(e)){if(c$.has(t))continue;let i=new n(e.startTime,e.endTime,"");i.id=e.id,i.type="com.apple.quicktime.HLS",i.value={key:cz[t],data:e[t]},("scte35Out"===t||"scte35In"===t)&&(i.value.data=new Uint8Array(i.value.data.match(/[\da-f]{2}/gi)).buffer),r.addCue(i)}e.processDateRange()})},cW=(e,t,r)=>{!e.metadataTrack_&&(e.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,so.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},cV=function(e,t,r){let n,i;if(r&&r.cues)for(n=r.cues.length;n--;)(i=r.cues[n]).startTime>=e&&i.endTime<=t&&r.removeCue(i)},cG=function(e){let t=e.cues;if(!t)return;let r={};for(let n=t.length-1;n>=0;n--){let i=t[n],o=`${i.startTime}-${i.endTime}-${i.text}`;r[o]?e.removeCue(i):r[o]=i}},cK=(e,t,r)=>{let n;if(null==t||!e.length)return[];let i=Math.ceil((t-r+3)*t5.ONE_SECOND_IN_TS);for(n=0;n<e.length&&!(e[n].pts>i);n++);return e.slice(n)},cZ=(e,t,r)=>{if(!t.length)return e;if(r)return t.slice();let n=t[0].pts,i=0;for(;i<e.length&&!(e[i].pts>=n);i++);return e.slice(0,i).concat(t)},cY=(e,t,r,n)=>{let i=Math.ceil((t-n)*t5.ONE_SECOND_IN_TS),o=Math.ceil((r-n)*t5.ONE_SECOND_IN_TS),a=e.slice(),s=e.length;for(;s--&&!(e[s].pts<=o););if(-1===s)return a;let l=s+1;for(;l--&&!(e[l].pts<=i););return l=Math.max(l,0),a.splice(l,s-l+1),a},cJ=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;let r=Object.keys(e).sort(),n=Object.keys(t).sort();if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){let o=r[i];if(o!==n[i]||e[o]!==t[o])return!1}return!0},cX=function(e,t,r){t=t||[];let n=[],i=0;for(let o=0;o<t.length;o++){let a=t[o];if(e===a.timeline&&(n.push(o),(i+=a.duration)>r))return o}return 0===n.length?0:n[n.length-1]},cQ=1,c0=500,c1=e=>"number"==typeof e&&isFinite(e),c2=1/60,c4=(e,t,r)=>"main"===e&&t&&r?r.hasAudio||r.hasVideo?t.hasVideo&&!r.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&r.hasVideo?"Video foun
85d in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null,c3=(e,t,r)=>{let n=t-lG.BACK_BUFFER_LENGTH;return e.length&&(n=Math.max(n,e.start(0))),Math.min(t-r,n)},c6=e=>{let{startOfSegment:t,duration:r,segment:n,part:i,playlist:{mediaSequence:o,id:a,segments:s=[]},mediaIndex:l,partIndex:c,timeline:u}=e,d=s.length-1,h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=` with independent ${e.independent}`);let p="number"==typeof c,f=e.segment.uri?"segment":"pre-segment",m=p?sD({preloadSegment:n})-1:0;return`${f} [${o+l}/${o+d}]`+(p?` part [${c}/${m}]`:"")+` segment start/end [${n.start} => ${n.end}]`+(p?` part start/end [${i.start} => ${i.end}]`:"")+` startOfSegment [${t}]`+` duration [${r}]`+` timeline [${u}]`+` selected by [${h}]`+` playlist [${a}]`},c5=e=>`${e}TimingInfo`,c8=({segmentTimeline:e,currentTimeline:t,startOfSegment:r,buffered:n,overrideCheck:i})=>i||e!==t?e<t?r:n.length?n.end(n.length-1):r:null,c7=({timelineChangeController:e,currentTimeline:t,segmentTimeline:r,loaderType:n,audioDisabled:i})=>{if(t===r)return!1;if("audio"===n){let t=e.lastTimelineChange({type:"main"});return!t||t.to!==r}if("main"===n&&i){let t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==r}return!1},c9=e=>{let t=0;return["video","audio"].forEach(function(r){let n;let i=e[`${r}TimingInfo`];if(!i)return;let{start:o,end:a}=i;"bigint"==typeof o||"bigint"==typeof a?n=d().BigInt(a)-d().BigInt(o):"number"==typeof o&&"number"==typeof a&&(n=a-o),void 0!==n&&n>t&&(t=n)}
85),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},ue=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+sy,ut=(e,t)=>{if("hls"!==t)return null;let r=c9({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!r)return null;let n=e.playlist.targetDuration,i=ue({segmentDuration:r,maxDuration:2*n}),o=ue({segmentDuration:r,maxDuration:n}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${r} when the reported duration is ${e.duration} and the target duration is ${n}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return i||o?{severity:i?"warn":"info",message:a}:null},ur=({type:e,segment:t})=>{if(!t)return;let r=!!(t.key||t.map&&t.map.ke),n=!!(t.map&&!t.map.bytes),i=void 0===t.startOfSegment?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:i,duration:t.duration,isEncrypted:r,isMediaInitialization:n}};class un extends so.EventTarget{constructor(e,t={}){if(super(),!e)throw TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw TypeError("No currentTime getter specified");if(!e.mediaSource)throw TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=sp(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.sourceUpdater_.on("codecschange",e=>{this.trigger((0,_.Z)({type:"codecschange"},e))}),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",e=>{this.trigger((0,_.Z)({type:"timelinechange"},e)),this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}
85createTransmuxer_(){return l9.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&d().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if("WAITING"!==this.state){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,d().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&l9.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){let e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return sm();if("main"===this.loaderType_){let{hasAudio:t,hasVideo:r,isMuxed:n}=e;if(r&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(r)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;let r=lw(e),n=this.initSegments_[r];return t&&!n&&e.bytes&&(this.initSegments_[r]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e}segmentKey(e,t=!1){if(!e)return null;let r=lS(e),n=this.keyCache_[r];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[r]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});let i={resolvedUri:(n||e).resolvedUri};return n&&(i.bytes=n.bytes),i}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();this.couldBeginLoading_()&&("READY"===this.state||"INIT"===this.state)&&(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;let r=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let i=null;if(r&&(r.id?i=r.id:r.uri&&(i=r.uri)),this.logger_(`playlist update [${i} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:
86currentTime: ${this.currentTime_()}
87bufferedEnd: ${sC(this.buffered_())}
88`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!r||r.uri!==e.uri){null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}let o=e.mediaSequence-r.mediaSequence;if(this.logger_(`live window shift [${o}]`),null!==this.mediaIndex){if(this.mediaIndex-=o,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{let e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){let e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}}n&&(n.mediaIndex-=o,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(r,e)}pause(){this.checkBufferTimeout_&&(d().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}
88resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&l9.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;let e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"!==this.sourceType_||e||(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,r=()=>{},n=!1){if(t===1/0&&(t=this.duration_()),t<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}let i=1,o=()=>{0==--i&&r()};for(let r in(n||!this.audioDisabled_)&&(i++,this.sourceUpdater_.removeAudio(e,t,o)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=cY(this.gopBuffer_,e,t,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(e,t,o)),this.inbandTextTracks_)cV(e,t,this.inbandTextTracks_[r]);cV(e,t,this.segmentMetadataTrack_),o()}monitorBuffer_(){this.checkBufferTimeout_&&d().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=d().setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&d().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=d().setTimeout(this.monitorBufferTick_.bind(this),c0)}fillBuffer_(){if(this.sourceUpdater_.updating())return;let e=this.chooseNextRequest_();if(!e)return;let t={segmentInfo:ur({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,r=this.partIndex){if(!t||!this.mediaSource_)return!1;let n="number"==typeof e&&t.segments[e],i=e+1===t.segments.length,o=!n||!n.parts||r+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&i&&o}chooseNextRequest_(){let e=this.buffered_(),t=sC(e)||0,r=sP(e,this.currentTime_()),n=!this.hasPlayed_()&&r>=1,i=r>=this.goalBufferLength_(),o=this.playlist_.segments;if(!o.length||n||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);let a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(a.isSyncRequest)a.mediaIndex=cX(this.currentTimeline_,o,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${a.mediaIndex}`);else if(null!==this.mediaIndex){let e=o[this.mediaIndex],r="number"==typeof this.partIndex?this.partIndex:-1;a.startOfSegment=e.end?e.end:t,e.parts&&e.parts[r+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=r+1):a.mediaIndex=this.mediaIndex+1}else{let e,r,n;let i=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:
89For TargetTime: ${i}.
90CurrentTime: ${this.currentTime_()}
91BufferedEnd: ${t}
92Fetch At Buffer: ${this.fetchAtBuffer_}
93`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){let t=this.getSyncInfoFromMediaSequenceSync_(i);if(!t){let e="No sync info found while using media sequence sync";return this.error({message:e,metadata:{errorType:so.Error.StreamingFailedToSelectNextSegment,error:Error(e)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --> ${t.end})`),e=t.segmentIndex,r=t.partIndex,n=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");let t=sY.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:i,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,r=t.partIndex,n=t.startTime}a.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${i}`:`currentTime ${i}`,a.mediaIndex=e,a.startOfSegment=n,a.partIndex=r,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${a.mediaIndex} `)}let s=o[a.mediaIndex],l=s&&"number"==typeof a.partIndex&&s.parts&&s.parts[a.partIndex];if(!s||"number"==typeof a.partIndex&&!l)return null;"number"!=typeof a.partIndex&&s.parts&&(a.partIndex=0,l=s.parts[0]);let c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!r&&l&&!c&&!l.independent){if(0===a.partIndex){let e=o[a.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(a.mediaIndex-=1,a.partIndex=e.parts.length-1,a.independent="previous segment")}else s.parts[a.partIndex-1].independent&&(a.partIndex-=1,a.independent="previous part")}let u=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return a.mediaIndex>=o.length-1&&u&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,a.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(a))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;let t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);let r=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!r)return null;if(!r.isAppended)return r;let n=this.mediaSequenceSync_.getSyncInfoForTime(r.end);return n?(n.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),n):null}generateSegmentInfo_(e){let{independent:t,playlist:r,mediaIndex:n,startOfSegment:i,isSyncRequest:o,partIndex:a,forceTimestampOffset:s,getMediaInfoForTime:l}=e,c=r.segments[n],u="number"==typeof a&&c.parts[a],d={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||c.resolvedUri,mediaIndex:n,partIndex:u?a:null,isSyncRequest:o,startOfSegment:i,playlist:r,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:u&&u.duration||c.duration,segment:c,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==s?s:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:h});
93let p=sC(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=cK(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d}timestampOffsetForSegment_(e){return c8(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;let t=this.currentTime_(),r=e.bandwidth,n=this.pendingSegment_.duration,i=sY.estimateSegmentRequestTime(n,r,this.playlist_,e.bytesReceived),o=sE(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(i<=o)return;let a=cR({main:this.vhs_.playlists.main,currentTime:t,bandwidth:r,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!a)return;let s=i-o-a.rebufferingImpact,l=.5;o<=sy&&(l=1),a.playlist&&a.playlist.uri!==this.playlist_.uri&&!(s<l)&&(this.bandwidth=a.playlist.attributes.BANDWIDTH*lG.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${c6(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){let{hasAudio:r,hasVideo:n}=t,i={segmentInfo:ur({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:r,hasVideo:n}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:i}),this.earlyAbortWhenNeeded_(e.stats),!(this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t))&&(t=t||{},cJ(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))}handleTimingInfo_(e,t,r,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;let i=this.pendingSegment_,o=c5(t);i[o]=i[o]||{},i[o][r]=n,this.logger_(`timinginfo: ${t} - ${r} - ${n}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));return}let r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),n={};t.forEach(e=>{n[e.stream]=n[e.stream]||{startTime:1/0,captions:[],endTime:0};let t=n[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)}),Object.keys(n).forEach(e=>{let{startTime:t,endTime:i,captions:o}=n[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${i} for ${e}`),cB(a,this.vhs_.tech_,e),cV(t,i,a[e]),cU({captionArray:o,inbandTextTracks:a,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,r){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,r));return}this.addMetadataToTextTrack(r,t,this.duration_())}}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){let e=this.callQueue_;this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){let e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;let e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!c7({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;let e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;let{hasAudio:r,hasVideo:n,isMuxed:i}=t;return!(n&&!e.videoTimingInfo||r&&!this.audioDisabled_&&!i&&!e.audioTimingInfo||c7({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,e,t));return}let r=this.pendingSegment_;if(this.setTimeMapping_(r.timeline),this.updateMediaSecondsLoaded_(r.part||r.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),r.segment.map=e.map),e.key&&this.segmentKey(e.ke
93y,!0),r.isFmp4=e.isFmp4,r.timingInfo=r.timingInfo||{},r.isFmp4)this.trigger("fmp4"),r.timingInfo.start=r[c5(t.type)].start;else{let e;let t=this.getCurrentMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo;n&&(e=r.videoTimingInfo.start),r.timingInfo.start=this.trueSegmentStart_({currentStart:r.timingInfo.start,playlist:r.playlist,mediaIndex:r.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:n,firstVideoFrameTimeForData:e,videoTimingInfo:r.videoTimingInfo,audioTimingInfo:r.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(r,t.type),this.updateSourceBufferTimestampOffset_(r),r.isSyncRequest){this.updateTimingInfoEnd_(r),this.syncController_.saveSegmentTimingInfo({segmentInfo:r,shouldSaveTimelineMapping:"main"===this.loaderType_});let e=this.chooseNextRequest_();if(e.mediaIndex!==r.mediaIndex||e.partIndex!==r.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}r.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(r,t)}}updateAppendInitSegmentStatus(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:r,playlist:n}){if(r){let e=lw(r);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(r,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=n,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:r},n){let i=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();i.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+sT(i).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+sT(o).join(", "));let a=i.length?i.start(0):0,s=i.length?i.end(i.length-1):0,l=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;if(s-a<=cQ&&c-l<=cQ){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${r.byteLength}, audio buffer: ${sT(i).join(", ")}, video buffer: ${sT(o).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:r}));let u=this.currentTime_()-cQ;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${u}`),this.remove(0,u,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${cQ}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=d().setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3*cQ)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:r},n){if(n){if(n.code===s7){this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:r});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",n),this.error({message:`${t} append of ${r.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:so.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:r,data:n,bytes:i}){if(!i){let e=[n],t=n.byteLength;r&&(e.unshift(r),t+=r.byteLength),i=cM({bytes:t,segments:e})}let o={segmentInfo:ur({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:o}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:i},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:i}))}handleSegmentTimingInfo_(e,t,r){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;let n=this.pendingSegment_.segment,i=`${e}TimingInfo`;n[i]||(n[i]={}),n[i].transmuxerPrependedSeconds=r.prependedContentDuration||0,n[i].transmuxedPresentationStart=r.start.presentation,n[i].transmuxedDecodeStart=r.start.decode,n[i].transmuxedPresentationEnd=r.end.presentation,n[i].transmuxedDecodeEnd=r.end.decode,n[i].baseMediaDecodeTime=r.baseMediaDecodeTime}appendData_(e,t){let{type:r,data:n}=t;if(!n||!n.byteLength||"audio"===r&&this.audioDisabled_)return;let i=this.getInitSegmentAndUpdateState_({type:r,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:r,initSegment:i,data:n})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(()=>{let t=(0,_.Z)({},e,{forceTimestampOffset:!0});(0,_.Z)(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));
93let t=this.createSimplifiedSegmentObj_(e),r=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),n=null!==this.mediaIndex,i=e.timeline!==this.currentTimeline_&&e.timeline>0,o=r||n&&i;this.logger_(`Requesting
94${cj(e.uri)}
95${c6(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=cy({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:r,stream:n})=>{this.logger_(`${c6(e)} logged from transmuxer stream ${n} as a ${r}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:r,trackInfo:n,timingInfo:i})=>{let o={segmentInfo:ur({segment:t})};r&&(o.keyInfo=r),n&&(o.trackInfo=n),i&&(o.timingInfo=i),this.trigger({type:e,metadata:o})}})}trimBackBuffer_(e){let t=c3(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){let t=e.segment,r=e.part,n=e.segment.key||e.segment.map&&e.segment.map.key,i=e.segment.map&&!e.segment.map.bytes,o={resolvedUri:r?r.resolvedUri:t.resolvedUri,byterange:r?r.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:n,isMediaInitialization:i},a=e.playlist.segments[e.mediaIndex-1];if(a&&a.timeline===t.timeline&&(a.videoTimingInfo?o.baseStartTime=a.videoTimingInfo.transmuxedDecodeEnd:a.audioTimingInfo&&(o.baseStartTime=a.audioTimingInfo.transmuxedDecodeEnd)),t.key){let r=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);o.key=this.segmentKey(t.key),o.key.iv=r}return t.map&&(o.map=this.initSegmentForMap(t.map)),o}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<c2){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${c2}`);return}let r={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:r}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,r){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,r));return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===ct.ABORTED)return;if(this.pause(),e.code===ct.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger("error");return}let n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,r.gopInfo&&(this.gopBuffer_=cZ(this.gopBuffer_,r.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}setTimeMapping_(e){let t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:r,firstVideoFrameTimeForData:n,currentVideoTimestampOffset:i,useVideoTimingInfo:o,videoTimingInfo:a,audioTimingInfo:s}){if(void 0!==e)return e;if(!o)return s.start;let l=t.segments[r-1];return 0!==r&&l&&void 0!==l.start&&l.end===n+i?a.start:n}waitForAppendsToComplete_(e){let t=this.getCurrentMediaInfo_(e);if(!t){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}let{hasAudio:r,hasVideo:n,isMuxed:i}=t,o="main"===this.loaderType_&&n,a=!this.audioDisabled_&&r&&!i;if(e.waitingOnAppends=0,!e.hasAppendedData_){e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}o&&e.waitingOnAppends++,a&&e.waitingOnAppends++,o&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}
95checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){let t=c4(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:r}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:r.start:r.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};let t=this.getMediaInfo_(),r="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;r&&(e.timingInfo.end="number"==typeof r.end?r.end:r.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){let e={segmentInfo:ur({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:e})}if(!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}let e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});let t=ut(e,this.sourceType_);if(t&&("warn"===t.severity?so.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${c6(e)}`);return}this.logger_(`Appended ${c6(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_===e.timeline||(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");let r=e.segment,n=e.part,i=r.end&&this.currentTime_()-r.end>3*e.playlist.targetDuration,o=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(i||o){this.logger_(`bad ${i?"segment":"part"} ${c6(e)}`),this.resetEverything();return}null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<c2){this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${c2}`);return}let t=this.throughput.rate,r=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/r*8e3);this.throughput.rate+=(n-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;let t=e.segment,r=t.start,n=t.end;if(!c1(r)||!c1(n))return;cV(r,n,this.segmentMetadataTrack_);let i=d().WebKitDataCue||d().VTTCue,o={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.ur
95i,timeline:e.timeline,playlist:e.playlist.id,start:r,end:n},a=new i(r,n,JSON.stringify(o));a.value=o,this.segmentMetadataTrack_.addCue(a)}}function ui(){}let uo=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},ua=["video","audio"],us=(e,t)=>{let r=t[`${e}Buffer`];return r&&r.updating||t.queuePending[e]},ul=(e,t)=>{for(let r=0;r<t.length;r++){let n=t[r];if("mediaSource"===n.type)break;if(n.type===e)return r}return null},uc=(e,t)=>{if(0===t.queue.length)return;let r=0,n=t.queue[r];if("mediaSource"===n.type){t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),n.action(t),n.doneFn&&n.doneFn(),uc("audio",t),uc("video",t));return}if(!("mediaSource"===e||!t.ready()||"closed"===t.mediaSource.readyState||us(e,t))){if(n.type!==e){if(null===(r=ul(e,t.queue)))return;n=t.queue[r]}if(t.queue.splice(r,1),t.queuePending[e]=n,n.action(e,t),!n.doneFn){t.queuePending[e]=null,uc(e,t);return}}},uu=(e,t)=>{let r=t[`${e}Buffer`],n=uo(e);r&&(r.removeEventListener("updateend",t[`on${n}UpdateEnd_`]),r.removeEventListener("error",t[`on${n}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},ud=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),uh={appendBuffer:(e,t,r)=>(n,i)=>{let o=i[`${n}Buffer`];if(ud(i.mediaSource,o)){i.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${n}Buffer`);try{o.appendBuffer(e)}catch(e){i.logger_(`Error with code ${e.code} `+(e.code===s7?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${n}Buffer`),i.queuePending[n]=null,r(e)}}},remove:(e,t)=>(r,n)=>{let i=n[`${r}Buffer`];if(ud(n.mediaSource,i)){n.logger_(`Removing ${e} to ${t} from ${r}Buffer`);try{i.remove(e,t)}catch(i){n.logger_(`Remove ${e} to ${t} from ${r}Buffer failed`)}}},timestampOffset:e=>(t,r)=>{let n=r[`${t}Buffer`];ud(r.mediaSource,n)&&(r.logger_(`Setting ${t}timestampOffset to ${e}`),n.timestampOffset=e)},callback:e=>(t,r)=>{e()},endOfStream:e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(e){so.log.warn("Failed to call media source endOfStream",e)}}},duration:e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(e){so.log.warn("Failed to set media source duration",e)}},abort:()=>(e,t)=>{if("open"!==t.mediaSource.readyState)return;let r=t[`${e}Buffer`];if(ud(t.mediaSource,r)){t.logger_(`calling abort on ${e}Buffer`);try{r.abort()}catch(t){so.log.warn(`Failed to abort on ${e}Buffer`,t)}}},addSourceBuffer:(e,t)=>r=>{let n=uo(e),i=G(t);r.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);let o=r.mediaSource.addSourceBuffer(i);o.addEventListener("updateend",r[`on${n}UpdateEnd_`]),o.addEventListener("error",r[`on${n}Error_`]),r.codecs[e]=t,r[`${e}Buffer`]=o},removeSourceBuffer:e=>t=>{let r=t[`${e}Buffer`];if(uu(e,t),ud(t.mediaSource,r)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(r)}catch(t){so.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,t)}}},changeType:e=>(t,r)=>{let n=r[`${t}Buffer`],i=G(e);if(!ud(r.mediaSource,n))return;let o=e.substring(0,e.indexOf(".")),a=r.codecs[t];if(a.substring(0,a.indexOf("."))===o)return;let s={codecsChangeInfo:{from:a,to:e}};r.trigger({type:"codecschange",metadata:s}),r.logger_(`changing ${t}Buffer codec from ${a} to ${e}`);try{n.changeType(i),r.codecs[t]=e}catch(e){s.errorType=so.Error.StreamingCodecsChangeError,s.error=e,e.metadata=s,r.error_=e,r.trigger("error"),so.log.warn(`Failed to changeType on ${t}Buffer`,e)}}},up=({type:e,sourceUpdater:t,action:r,doneFn:n,name:i})=>{t.queue.push({type:e,action:r,doneFn:n,name:i}),uc(e,t)},uf=(e,t)=>r=>{let n=sg(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,n),t.queuePending[e]){let r=t.queuePending[e].doneFn;t.queuePending[e]=null,r&&r(t[`${e}Error_`])}uc(e,t)};class um extends so.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>uc("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=sp("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=uf("video",this),this.onAudioUpdateEnd_=uf("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
95triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){up({type:"mediaSource",sourceUpdater:this,action:uh.addSourceBuffer(e,t),name:"addSourceBuffer"})}abort(e){up({type:e,sourceUpdater:this,action:uh.abort(e),name:"abort"})}removeSourceBuffer(e){if(!this.canRemoveSourceBuffer()){so.log.error("removeSourceBuffer is not supported!");return}up({type:"mediaSource",sourceUpdater:this,action:uh.removeSourceBuffer(e),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!so.browser.IS_FIREFOX&&d().MediaSource&&d().MediaSource.prototype&&"function"==typeof d().MediaSource.prototype.removeSourceBuffer}static canChangeType(){return d().SourceBuffer&&d().SourceBuffer.prototype&&"function"==typeof d().SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){if(!this.canChangeType()){so.log.error("changeType is not supported!");return}up({type:e,sourceUpdater:this,action:uh.changeType(t),name:"changeType"})}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{let r=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,r);this.canChangeType()&&this.changeType(t,r)})}appendBuffer(e,t){let{segmentInfo:r,type:n,bytes:i}=e;if(this.processedAppend_=!0,"audio"===n&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,t]),this.logger_(`delayed audio append of ${i.length} until video append`);return}let o=t;if(up({type:n,sourceUpdater:this,action:uh.appendBuffer(i,r||{mediaIndex:-1},o),doneFn:t,name:"appendBuffer"}),"video"===n){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;let e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return ud(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:sm()}videoBuffered(){return ud(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:sm()}buffered(){let e=ud(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=ud(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():sk(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=ui){up({type:"mediaSource",sourceUpdater:this,action:uh.duration(e),name:"duration",doneFn:t})}endOfStream(e=null,t=ui){"string"!=typeof e&&(e=void 0),up({type:"mediaSource",sourceUpdater:this,action:uh.endOfStream(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,r=ui){if(!this.audioBuffered().length||0===this.audioBuffered().end(0)){r();return}up({type:"audio",sourceUpdater:this,action:uh.remove(e,t),doneFn:r,name:"remove"})}removeVideo(e,t,r=ui){if(!this.videoBuffered().length||0===this.videoBuffered().end(0)){r();return}up({type:"video",sourceUpdater:this,action:uh.remove(e,t),doneFn:r,name:"remove"})}updating(){return!!(us("audio",this)||us("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(up({type:"audio",sourceUpdater:this,action:uh.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(up({type:"video",sourceUpdater:this,action:uh.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&up({type:"audio",sourceUpdater:this,action:uh.callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&up({type:"video",sourceUpdater:this,action:uh.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),ua.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>uu(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}let ug=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),uy=e=>Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join(""),uv=new Uint8Array("\n\n".split("").map(e=>e.charCodeAt(0)));
95class ub extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class u_ extends un{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return sm();let e=this.subtitlesTrack_.cues;return sm([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;let r=lw(e),n=this.initSegments_[r];if(t&&!n&&e.bytes){let t=new Uint8Array(uv.byteLength+e.bytes.byteLength);t.set(e.bytes),t.set(uv,e.bytes.byteLength),this.initSegments_[r]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:t}}return n||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){cV(e,t,this.subtitlesTrack_)}fillBuffer_(){let e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){let e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",e),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,r){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===ct.TIMEOUT&&this.handleTimeout_(),e.code===ct.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}let n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");let i=n.segment;if(i.map&&(i.map.bytes=t.map.bytes),n.bytes=t.bytes,"function"!=typeof d().WebVTT&&"function"==typeof this.loadVttJs){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,r),()=>this.stopForError({message:"Error loading vtt.js"}));return}i.requested=!0;try{this.parseVTTCues_(n)}catch(e){this.stopForError({message:e.message,metadata:{errorType:so.Error.StreamingVttParserError,error:e}});return}if(this.updateTimeMapping_(n,this.syncController_.timelines[n.timeline],this.playlist_),n.cues.length?n.timingInfo={start:n.cues[0].startTime,end:n.cues[n.cues.length-1].endTime}:n.timingInfo={start:n.startOfSegment,end:n.startOfSegment+n.duration},n.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}n.byteLength=n.bytes.byteLength,this.mediaSecondsLoaded+=i.duration,n.cues.forEach(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new(d()).VTTCue(e.startTime,e.endTime,e.text):e)}),cG(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t;let r=!1;if("function"!=typeof d().WebVTT)throw new ub;"function"==typeof d().TextDecoder?t=new(d()).TextDecoder("utf8"):(t=d().WebVTT.StringDecoder(),r=!0);let n=new(d()).WebVTT.Parser(d(),d().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=t=>{e.timestampmap=t},n.onparsingerror=e=>{so.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;r&&(t=ug(t)),n.parse(t)}let i=e.bytes;r&&(i=ug(i)),n.parse(i),n.flush()}updateTimeMapping_(e,t,r){let n=e.segment;if(!t)return;if(!e.cues.length){n.empty=!0;return}let{MPEGTS:i,LOCAL:o}=e.timestampmap,a=i/t5.ONE_SECOND_IN_TS-o+t.mapping;
95if(e.cues.forEach(e=>{let r=e.endTime-e.startTime,n=0===i?e.startTime+a:this.handleRollover_(e.startTime+a,t.time);e.startTime=Math.max(n,0),e.endTime=Math.max(n+r,0)}),!r.syncInfo){let t=e.cues[0].startTime,i=e.cues[e.cues.length-1].startTime;r.syncInfo={mediaSequence:r.mediaSequence+e.mediaIndex,time:Math.min(t,i-n.duration)}}}handleRollover_(e,t){let r;if(null===t)return e;let n=e*t5.ONE_SECOND_IN_TS,i=t*t5.ONE_SECOND_IN_TS;for(r=i<n?-8589934592:8589934592;Math.abs(n-i)>4294967296;)n+=r;return n/t5.ONE_SECOND_IN_TS}}let uw=function(e,t){let r=e.cues;for(let e=0;e<r.length;e++){let n=r[e];if(t>=n.adStartTime&&t<=n.adEndTime)return n}return null},uS=function(e,t,r=0){let n;if(!e.segments)return;let i=r;for(let r=0;r<e.segments.length;r++){let o=e.segments[r];if(n||(n=uw(t,i+o.duration/2)),n){if("cueIn"in o){n.endTime=i,n.adEndTime=i,i+=o.duration,n=null;continue}if(i<n.endTime){i+=o.duration;continue}n.endTime+=o.duration}else if("cueOut"in o&&((n=new(d()).VTTCue(i,i+o.duration,o.cueOut)).adStartTime=i,n.adEndTime=i+parseFloat(o.cueOut),t.addCue(n)),"cueOutCont"in o){let[e,r]=o.cueOutCont.split("/").map(parseFloat);(n=new(d()).VTTCue(i,i+o.duration,"")).adStartTime=i-e,n.adEndTime=n.adStartTime+r,t.addCue(n)}i+=o.duration}};class uk{constructor({start:e,end:t,segmentIndex:r,partIndex:n=null,appended:i=!1}){this.start_=e,this.end_=t,this.segmentIndex_=r,this.partIndex_=n,this.appended_=i}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class ux{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class uE{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,t){let{mediaSequence:r,segments:n}=e;if(this.isReliable_=this.isReliablePlaylist_(r,n),this.isReliable_)return this.updateStorage_(n,r,this.calculateBaseTime_(r,t))}getSyncInfoForTime(e){for(let{segmentSyncInfo:t,partsSyncInfo:r}of this.storage_.values())if(r.length){for(let t of r)if(t.isInRange(e))return t}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,r){let n=new Map,i="\n",o=r,a=t;this.start_=o,e.forEach((e,t)=>{let r=this.storage_.get(a),s=o,l=s+e.duration,c=!!(r&&r.segmentSyncInfo&&r.segmentSyncInfo.isAppended),u=new uk({start:s,end:l,appended:c,segmentIndex:t});e.syncInfo=u;let d=o,h=(e.parts||[]).map((e,n)=>{let o=d,s=d+e.duration,l=!!(r&&r.partsSyncInfo&&r.partsSyncInfo[n]&&r.partsSyncInfo[n].isAppended),c=new uk({start:o,end:s,appended:l,segmentIndex:t,partIndex:n});return d=s,i+=`Media Sequence: ${a}.${n} | Range: ${o} --> ${s} | Appended: ${l}
96`,e.syncInfo=c,c});n.set(a,new ux(u,h)),i+=`${cj(e.resolvedUri)} | Media Sequence: ${a} | Range: ${s} --> ${l} | Appended: ${c}
97`,a++,o=l}),this.end_=o,this.storage_=n,this.diagnostics_=i}calculateBaseTime_(e,t){return this.storage_.size?this.storage_.has(e)?this.storage_.get(e).segmentSyncInfo.start:t:0}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}}class uT extends uE{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t){if(!this.storage_.size){let t=this.parent_.getSyncInfoForMediaSequence(e);return t?t.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t)}}let uA=86400,uC=[{name:"VOD",run:(e,t,r,n,i)=>r!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(e,t,r,n,i,o)=>{let a=e.getMediaSequenceSync(o);if(!a||!a.isReliable)return null;let s=a.getSyncInfoForTime(i);return s?{time:s.start,partIndex:s.partIndex,segmentIndex:s.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,r,n,i)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let o=null,a=null,s=sO(t);i=i||0;for(let r=0;r<s.length;r++){let n=t.endList||0===i?r:s.length-(r+1),l=s[n],c=l.segment,u=e.timelineToDatetimeMappings[c.timeline];if(!u||!c.dateTimeObject)continue;let d=c.dateTimeObject.getTime()/1e3+u;if(c.parts&&"number"==typeof l.partIndex)for(let e=0;e<l.partIndex;e++)d+=c.parts[e].duration;let h=Math.abs(i-d);if(null!==a&&(0===h||a<h))break;a=h,o={time:d,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}return o}},{name:"Segment",run:(e,t,r,n,i)=>{let o=null,a=null;i=i||0;let s=sO(t);for(let e=0;e<s.length;e++){let r=t.endList||0===i?e:s.length-(e+1),l=s[r],c=l.segment,u=l.part&&l.part.start||c&&c.start;if(c.timeline===n&&void 0!==u){let e=Math.abs(i-u);if(null!==a&&a<e)break;(!o||null===a||a>=e)&&(a=e,o={time:u,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return o}},{name:"Discontinuity",run:(e,t,r,n,i)=>{let o=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length){let r=null;for(let n=0;n<t.discontinuityStarts.length;n++){let a=t.discontinuityStarts[n],s=t.discontinuitySequence+n+1,l=e.discontinuities[s];if(l){let e=Math.abs(i-l.time);if(null!==r&&r<e)break;(!o||null===r||r>=e)&&(r=e,o={time:l.time,segmentIndex:a,partIndex:null})}}}return o}},{name:"Playlist",run:(e,t,r,n,i)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class uP extends so.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};let t=new uE,r=new uT(t),n=new uT(t);this.mediaSequenceStorage_={main:t,audio:r,vtt:n},this.logger_=sp("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,r,n,i){if(t!==1/0)return uC.find(({name:e})=>"VOD"===e).run(this,e,t);let o=this.runStrategies_(e,t,r,n,i);if(!o.length)return null;for(let t of o){let{syncPoint:r,strategy:i}=t,{segmentIndex:o,time:a}=r;if(o<0)continue;let s=e.segments[o],l=a,c=l+s.duration;if(this.logger_(`Strategy: ${i}. Current time: ${n}. selected segment: ${o}. Time: [${l} -> ${c}]}`),n>=l&&n<c)return this.logger_("Found sync point with exact match: ",r),r}return this.selectSyncPoint_(o,{key:"time",value:n})}getExpiredTime(e,t){if(!e||!e.segments)return null;let r=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!r.length)return null;let n=this.selectSyncPoint_(r,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+sU({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))}runStrategies_(e,t,r,n,i){let o=[];for(let a=0;a<uC.length;a++){let s=uC[a],l=s.run(this,e,t,r,n,i);l&&(l.strategy=s.name,o.push({strategy:s.name,syncPoint:l}))}return o}selectSyncPoint_(e,t){let r=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy;for(let o=1;o<e.length;o++){let a=Math.abs(e[o].syncPoint[t.key]-t.value);a<n&&(n=a,r=e[o].syncPoint,i=e[o].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${i}]: [time:${r.time}, segmentIndex:${r.segmentIndex}`+("number"==typeof r.partIndex?`,partIndex:${r.partIndex}`:"")+"]"),r}saveExpiredSegmentInfo(e,t){let r=t.mediaSequence-e.mediaSequence;if(r>uA){so.log.warn(`Not saving expired segment info. Media sequence gap ${r} is too large.`);return}for(let n=r-1;n>=0;n--){let r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start}
97,this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){let t=e.segments[0],r=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-r}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){let r=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),n=e.segment;r&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:n.start}));let i=n.dateTimeObject;n.discontinuity&&t&&i&&(this.timelineToDatetimeMappings[n.timeline]=-(i.getTime()/1e3))}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,r){let n,i;let o=e.segment,a=e.part,s=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)s={time:e.startOfSegment,mapping:e.startOfSegment-t.start},r&&(this.timelines[e.timeline]=s,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${s.time}] [mapping: ${s.mapping}]`)),n=e.startOfSegment,i=t.end+s.mapping;else{if(!s)return!1;n=t.start+s.mapping,i=t.end+s.mapping}return a&&(a.start=n,a.end=i),(!o.start||n<o.start)&&(o.start=n),o.end=i,!0}saveDiscontinuitySyncInfo_(e){let t=e.playlist,r=e.segment;if(r.discontinuity)this.discontinuities[r.timeline]={time:r.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let n=0;n<t.discontinuityStarts.length;n++){let i=t.discontinuityStarts[n],o=t.discontinuitySequence+n+1,a=i-e.mediaIndex,s=Math.abs(a);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>s){let n;n=a<0?r.start-sU({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:i}):r.end+sU({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:i}),this.discontinuities[o]={time:n,accuracy:s}}}}dispose(){this.trigger("dispose"),this.off()}}class uI extends so.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:r}){return"number"==typeof t&&"number"==typeof r&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:r},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:r}){if("number"==typeof t&&"number"==typeof r){this.lastTimelineChanges_[e]={type:e,from:t,to:r},delete this.pendingTimelineChanges_[e];let n={timelineChangeInfo:{from:t,to:r}};this.trigger({type:"timelinechange",metadata:n})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}var uO=lJ(lX(lQ(function(){var e,t=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var r=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(r,1),r>-1},t.trigger=function(e){var t=this.listeners[e];if(t){if(2==arguments.length)for(var r=t.length,n=0;n<r;++n)t[n].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,a=0;a<o;++a)t[a].apply(this,i)}},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function n(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}let i=function(){let e,t,r,n,i,o,a,s;let l=[[[],[],[],[],[]],[[],[],[],[],[]]],c=l[0],u=l[1],d=c[4],h=u[4],p=[],f=[];for(e=0;e<256;e++)f[(p[e]=e<<1^(e>>7)*283)^e]=e;for(t=r=0;!d[t];t^=n||1,r=f[r]||1)for(e=0,o=(o=r^r<<1^r<<2^r<<3^r<<4)>>8^255&o^99,d[t]=o,h[o]=t,s=16843009*p[i=p[n=p[t]]]^65537*i^257*n^16843008*t,a=257*p[o]^16843008*o;e<4;e++)c[e][t]=a=a<<24^a>>>8,u[e][o]=s=s<<24^s>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),u[e]=u[e].slice(0);return l},o=null;class a{constructor(e){let t,r,n;o||(o=i()),this._tables=[[o[0][0].slice(),o[0][1].slice(),o[0][2].slice(),o[0][3].slice(),o[0][4].slice()],[o[1][0].slice(),o[1][1].slice(),o[1][2].slice(),o[1][3].slice(),o[1][4].slice()]];let a=this._tables[0][4],s=this._tables[1],l=e.length,c=1;if(4!==l&&6!==l&&8!==l)throw Error("Invalid aes key size");let u=e.slice(0),d=[];for(this._key=[u,d],t=l;t<4*l+28;t++)n=u[t-1],(t%l==0||8===l&&t%l==4)&&(n=a[n>>>24]<<24^a[n>>16&255]<<16^a[n>>8&255]<<8^a[255&n],t%l==0&&(n=n<<8^n>>>24^c<<24,c=c<<1^(c>>7)*283)),u[t]=u[t-l]^n;for(r=0;t;r++,t--)n=u[3&r?t:t-4],t<=4||r<4?d[r]=n:d[r]=s[0][a[n>>>24]]^s[1][a[n>>16&255]]^s[2][a[n>>8&255]]^s[3][a[255&n]]}decrypt(e,t,r,n,i,o){let a,s,l,c;let u=this._key[1],d=e^u[0],h=n^u[1],p=r^u[2],f=t^u[3],m=u.length/4-2,g=4,y=this._tables[1],v=y[0],b=y[1],_=y[2],w=y[3],S=y[4];for(c=0;c<m;c++)a=v[d>>>24]^b[h>>16&255]^_[p>>8&255]^w[255&f]^u[g],s=v[h>>>24]^b[p>>16&255]^_[f>>8&255]^w[255&d]^u[g+1],l=v[p>>>24]^b[f>>16&255]^_[d>>8&255]^w[255&h]^u[g+2],f=v[f>>>24]^b[d>>16&255]^_[h>>8&255]^w[255&p]^u[g+3],g+=4,d=a,h=s,p=l;for(c=0;c<4;c++)i[(3&-c)+o]=S[d>>>24]<<24^S[h>>16&255]<<16^S[p>>8&255]<<8^S[255&f]^u[g++],a=d,d=h,h=p,p=f,f=a}}class s extends t{constructor(){super(t),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}let l=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}
97,c=function(e,t,r){let n,i,o,s,c,u,d,h,p;let f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new a(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),y=new Int32Array(g.buffer);for(p=0,n=r[0],i=r[1],o=r[2],s=r[3];p<f.length;p+=4)c=l(f[p]),u=l(f[p+1]),d=l(f[p+2]),h=l(f[p+3]),m.decrypt(c,u,d,h,y,p),y[p]=l(y[p]^n),y[p+1]=l(y[p+1]^i),y[p+2]=l(y[p+2]^o),y[p+3]=l(y[p+3]^s),n=c,i=u,o=d,s=h;return g};class u{constructor(e,t,r,i){let o=u.STEP,a=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength),d=0;for(this.asyncStream_=new s,this.asyncStream_.push(this.decryptChunk_(a.subarray(d,d+o),t,r,c)),d=o;d<a.length;d+=o)r=new Uint32Array([l(a[d-4]),l(a[d-3]),l(a[d-2]),l(a[d-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(d,d+o),t,r,c));this.asyncStream_.push(function(){i(null,n(c))})}static get STEP(){return 32e3}decryptChunk_(e,t,r,n){return function(){let i=c(e,t,r);n.set(i,e.byteOffset)}}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};"undefined"!=typeof window?e=window:void 0!==d?e=d:"undefined"!=typeof self?e=self:e={};var h=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},p=e.BigInt||Number;p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();let f=function(e){let t={};return Object.keys(e).forEach(r=>{let n=e[r];h(n)?t[r]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[r]=n}),t};self.onmessage=function(e){let t=e.data;new u(new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4),function(e,r){self.postMessage(f({source:t.source,decrypted:r}),[r.buffer])})}})));let uN=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},uD=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},uR=(e,t)=>{t.activePlaylistLoader=e,e.load()},uL=(e,t)=>()=>{let{segmentLoaders:{[e]:r,main:n},mediaTypes:{[e]:i}}=t,o=i.activeTrack(),a=i.getActiveGroup(),s=i.activePlaylistLoader,l=i.lastGroup_;if((!a||!l||a.id!==l.id)&&(i.lastGroup_=a,i.lastTrack_=o,uD(r,i),a&&!a.isMainPlaylist)){if(!a.playlistLoader){s&&n.resetEverything();return}r.resyncLoader(),uR(a.playlistLoader,i)}},uM=(e,t)=>()=>{let{segmentLoaders:{[e]:r},mediaTypes:{[e]:n}}=t;n.lastGroup_=null,r.abort(),r.pause()},uj=(e,t)=>()=>{let{mainPlaylistLoader:r,segmentLoaders:{[e]:n,main:i},mediaTypes:{[e]:o}}=t,a=o.activeTrack(),s=o.getActiveGroup(),l=o.activePlaylistLoader,c=o.lastTrack_;if((!c||!a||c.id!==a.id)&&(o.lastGroup_=s,o.lastTrack_=a,uD(n,o),s)){if(s.isMainPlaylist){if(!a||!c||a.id===c.id)return;let e=t.vhs.playlistController_,n=e.selectPlaylist();if(e.media()===n)return;o.logger_(`track change. Switching main audio from ${c.id} to ${a.id}`),r.pause(),i.resetEverything(),e.fastQualityChange_(n);return}if("AUDIO"===e){if(!s.playlistLoader){i.setAudio(!0),i.resetEverything();return}n.setAudio(!0),i.setAudio(!1)}if(l===s.playlistLoader){uR(s.playlistLoader,o);return}n.track&&n.track(a),n.resetEverything(),uR(s.playlistLoader,o)}},uB={AUDIO:(e,t)=>()=>{let{mediaTypes:{[e]:r},excludePlaylist:n}=t,i=r.activeTrack(),o=r.activeGroup(),a=(o.filter(e=>e.default)[0]||o[0]).id,s=r.tracks[a];if(i===s){n({error:{message:"Problem encountered loading the default audio track."}});return}for(let e in so.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),r.tracks)r.tracks[e].enabled=r.tracks[e]===s;r.onTrackChanged()},SUBTITLES:(e,t)=>()=>{let{mediaTypes:{[e]:r}}=t;so.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");let n=r.activeTrack();n&&(n.mode="disabled"),r.onTrackChanged()}},uU={AUDIO:(e,t,r)=>{if(!t)return;let{tech:n,requestOptions:i,segmentLoaders:{[e]:o}}=r;t.on("loadedmetadata",()=>{let e=t.media();o.playlist(e,i),(!n.paused()||e.endList&&"none"!==n.preload())&&o.load()}),t.on("loadedplaylist",()=>{o.playlist(t.media(),i),n.paused()||o.load()}),t.on("error",uB[e](e,r))},SUBTITLES:(e,t,r)=>{let{tech:n,requestOptions:i,segmentLoaders:{[e]:o},mediaTypes:{[e]:a}}=r;t.on("loadedmetadata",()=>{let e=t.media();o.playlist(e,i),o.track(a.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&o.load()}),t.on("loadedplaylist",()=>{o.playlist(t.media(),i),n.paused()||o.load()}),t.on("error",uB[e](e,r))}},uF={AUDIO:(e,t)=>
97{let{vhs:r,sourceType:n,segmentLoaders:{[e]:i},requestOptions:o,main:{mediaGroups:a},mediaTypes:{[e]:{groups:s,tracks:l,logger_:c}},mainPlaylistLoader:u}=t,d=sZ(u.main);for(let i in(!a[e]||0===Object.keys(a[e]).length)&&(a[e]={main:{default:{default:!0}}},d&&(a[e].main.default.playlists=u.main.playlists)),a[e])for(let h in s[i]||(s[i]=[]),a[e][i]){let p,f=a[e][i][h];if(d?(c(`AUDIO group '${i}' label '${h}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===n&&f.playlists?new lu(f.playlists[0],r,o):f.resolvedUri?new lu(f.resolvedUri,r,o):f.playlists&&"dash"===n?new lV(f.playlists[0],r,o,u):null,f=sf({id:h,playlistLoader:p},f),uU[e](e,f.playlistLoader,t),s[i].push(f),void 0===l[h]){let e=new so.AudioTrack({id:h,kind:uN(f),enabled:!1,language:f.language,default:f.default,label:h});l[h]=e}}i.on("error",uB[e](e,t))},SUBTITLES:(e,t)=>{let{tech:r,vhs:n,sourceType:i,segmentLoaders:{[e]:o},requestOptions:a,main:{mediaGroups:s},mediaTypes:{[e]:{groups:l,tracks:c}},mainPlaylistLoader:u}=t;for(let o in s[e])for(let d in l[o]||(l[o]=[]),s[e][o]){let h;if(!n.options_.useForcedSubtitles&&s[e][o][d].forced)continue;let p=s[e][o][d];if("hls"===i)h=new lu(p.resolvedUri,n,a);else if("dash"===i){if(!p.playlists.filter(e=>e.excludeUntil!==1/0).length)return;h=new lV(p.playlists[0],n,a,u)}else"vhs-json"===i&&(h=new lu(p.playlists?p.playlists[0]:p.resolvedUri,n,a));if(p=sf({id:d,playlistLoader:h},p),uU[e](e,p.playlistLoader,t),l[o].push(p),void 0===c[d]){let e=r.addRemoteTextTrack({id:d,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:d},!1).track;c[d]=e}}o.on("error",uB[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{let{tech:r,main:{mediaGroups:n},mediaTypes:{[e]:{groups:i,tracks:o}}}=t;for(let t in n[e])for(let a in i[t]||(i[t]=[]),n[e][t]){let s=n[e][t][a];if(!/^(?:CC|SERVICE)/.test(s.instreamId))continue;let l=r.options_.vhs&&r.options_.vhs.captionServices||{},c={label:a,language:s.language,instreamId:s.instreamId,default:s.default&&s.autoselect};if(l[c.instreamId]&&(c=sf(c,l[c.instreamId])),void 0===c.default&&delete c.default,i[t].push(sf({id:a},s)),void 0===o[a]){let e=r.addRemoteTextTrack({id:c.instreamId,
97kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;o[a]=e}}}},uH=(e,t)=>{for(let r=0;r<e.length;r++)if(sG(t,e[r])||e[r].playlists&&uH(e[r].playlists,t))return!0;return!1},uz=(e,t)=>r=>{let{mainPlaylistLoader:n,mediaTypes:{[e]:{groups:i}}}=t,o=n.media();if(!o)return null;let a=null;o.attributes[e]&&(a=i[o.attributes[e]]);let s=Object.keys(i);if(!a){if("AUDIO"===e&&s.length>1&&sZ(t.main))for(let e=0;e<s.length;e++){let t=i[s[e]];if(uH(t,o)){a=t;break}}else i.main?a=i.main:1===s.length&&(a=i[s[0]])}return void 0===r?a:null!==r&&a&&a.filter(e=>e.id===r.id)[0]||null},u$={AUDIO:(e,t)=>()=>{let{mediaTypes:{[e]:{tracks:r}}}=t;for(let e in r)if(r[e].enabled)return r[e];return null},SUBTITLES:(e,t)=>()=>{let{mediaTypes:{[e]:{tracks:r}}}=t;for(let e in r)if("showing"===r[e].mode||"hidden"===r[e].mode)return r[e];return null}},uq=(e,{mediaTypes:t})=>()=>{let r=t[e].activeTrack();return r?t[e].activeGroup(r):null},uW=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{uF[t](t,e)});let{mediaTypes:t,mainPlaylistLoader:r,tech:n,vhs:i,segmentLoaders:{AUDIO:o,main:a}}=e;["AUDIO","SUBTITLES"].forEach(r=>{t[r].activeGroup=uz(r,e),t[r].activeTrack=u$[r](r,e),t[r].onGroupChanged=uL(r,e),t[r].onGroupChanging=uM(r,e),t[r].onTrackChanged=uj(r,e),t[r].getActiveGroup=uq(r,e)});let s=t.AUDIO.activeGroup();if(s){let e=(s.filter(e=>e.default)[0]||s[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),o.setAudio(!0)):a.setAudio(!0)}r.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),r.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});let l=()=>{t.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"})};for(let e in n.audioTracks().addEventListener("change",l),n.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),i.on("dispose",()=>{n.audioTracks().removeEventListener("change",l),n.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),n.clearTracks("audio"),t.AUDIO.tracks)n.audioTracks().addTrack(t.AUDIO.tracks[e])},uV=()=>{let e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ui,activeTrack:ui,getActiveGroup:ui,onGroupChanged:ui,onTrackChanged:ui,lastTrack_:null,logger_:sp(`MediaGroups[${t}]`)}}),e};class uG{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=sd(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class uK extends so.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new uG,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=sp("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";let r=t.serverUri||t.serverURL;if(!r){this.logger_(`steering manifest URL is ${r}, cannot request steering manifest.`),this.trigger("error");return}if(r.startsWith("data:")){this.decodeDataUriManifest_(r.substring(r.indexOf(",")+1));return}this.steeringManifest.reloadUri=sd(e,r),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(e){let t=this.steeringManifest.reloadUri;if(!t)return;let r=e?t:this.getRequestURI(t);if(!r){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}let n={contentSteeringInfo:{uri:r}};this.trigger({type:"contentsteeringloadstart",metadata:n}),this.request_=this.xhr_({uri:r,requestType:"content-steering-manifest"},(e,t)=>{let i;if(e){if(410===t.status){this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${r} this session.`),this.excludedSteeringManifestURLs.add(r);return}if(429===t.status){let r=t.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${r} seconds.`),this.startTTLTimeout_(parseInt(r,10));return}this.logger_(`manifest failed to load ${e}.`),this.startTTLTimeout_();return}this.trigger({type:"contentsteeringloadcomplete",metadata:n});try{i=JSON.parse(this.request_.responseText)}catch(t){let e={errorType:so.Error.StreamingContentSteeringParserError,error:t};this.trigger({type:"error",metadata:e})}this.assignSteeringProperties_(i);let o={contentSteeringInfo:n.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:o}),this.startTTLTimeout_()})}setProxyServerUrl_(e){let t=new(d()).URL(e),r=new(d()).URL(this.proxyServerUrl_);return r.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(r.toString())}decodeDataUriManifest_(e){let t=JSON.parse(d().atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){let t=new(d()).URL(e),r=this.getPathway(),n=this.getBandwidth_();if(r){let e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,r)}if(n){let e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,n)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for c
97ontent steering. Ending content steering."),this.trigger("error"),this.dispose());let t=(e=>{for(let t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;let t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){let r=this.setProxyServerUrl_(e);if(!t(r))return r}let r=this.setSteeringParams_(e);return t(r)?null:r}startTTLTimeout_(e=this.steeringManifest.ttl){let t=1e3*e;this.ttlTimeout_=d().setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){d().clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new uG}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(sd(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let uZ=10,uY=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],uJ=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},uX=function({currentPlaylist:e,buffered:t,currentTime:r,nextPlaylist:n,bufferLowWaterLine:i,bufferHighWaterLine:o,duration:a,bufferBasedABR:s,log:l}){if(!n)return so.log.warn("We received no playlist to switch to. Please check your stream."),!1;let c=`allowing switch ${e&&e.id||"null"} -> ${n.id}`;if(!e)return l(`${c} as current playlist is not set`),!0;if(n.id===e.id)return!1;let u=!!s_(t,r).length;if(!e.endList)return u||"number"!=typeof e.partTargetDuration?(l(`${c} as current playlist is live`),!0):(l(`not ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);let d=sP(t,r),h=s?lG.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:lG.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${c} as duration < max low water line (${a} < ${h})`),!0;let p=n.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!s||d<o)){let e=`${c} as next bandwidth < current bandwidth (${p} < ${f})`;return s&&(e+=` and forwardBuffer < bufferHighWaterLine (${d} < ${o})`),l(e),!0}if((!s||p>f)&&d>=i){let e=`${c} as forwardBuffer >= bufferLowWaterLine (${d} >= ${i})`;return s&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`not ${c} as no switching criteria met`),!1};class uQ extends so.EventTarget{constructor(e){super();let{src:t,withCredentials:r,tech:n,bandwidth:i,externVhs:o,useCueTags:a,playlistExclusionDuration:s,enableLowInitialPlaylist:c,sourceType:u,cacheEncryptionKeys:h,bufferBasedABR:p,leastPixelDiffSelector:f,captionServices:m}=e;if(!t)throw Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:g}=e;null==g&&(g=1/0),l=o,this.bufferBasedABR=!!p,this.leastPixelDiffSelector=!!f,this.withCredentials=r,this.tech_=n,this.vhs_=n.vhs,this.player_=e.player_,this.sourceType_=u,this.useCueTags_=a,this.playlistExclusionDuration=s,this.maxPlaylistRetries=g,this.enableLowInitialPlaylist=c,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:r,maxPlaylistRetries:g,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=uV(),this.mediaSource=new(d()).MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=sm(),this.hasPlayed_=!1,this.syncController_=new uP(e),this.segmentMetadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new uO,this.sourceUpdater_=new um(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new uI,this.keyStatusMap_=new Map;let y={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:m,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:i,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:h,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new lV(t,this.vhs_,sf(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new lu(t,this.vhs_,sf(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new un(sf(y,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new un(sf(y,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new u_(sf(y,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>
vendor: 4,557 bytes, line 97
97{function r(){n.off("vttjserror",i),e()}function i(){n.off("vttjsloaded",r),t()}n.one("vttjsloaded",r),n.one("vttjserror",i),n.addWebVttScript_()})}),e);let v=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new uK(this.vhs_.xhr,v),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),uY.forEach(e=>{this[e+"_"]=uJ.bind(this,e)}),this.logger_=sp("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;let b="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(b,()=>{let e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){let e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return -1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){let t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,r){let n=this.media(),i=n&&(n.id||n.uri),o=e&&(e.id||e.uri);if(i&&i!==o){this.logger_(`switch media ${i} -> ${o} from ${t}`);let r={renditionInfo:{id:o,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:r}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,r)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{let t=this.mediaTypes_[e],r=t?t.activeGroup():null,n=this.contentSteeringController_.getPathway();if(r&&n){let t=(r.length?r[0].playlists:r.playlists).filter(e=>e.attributes.serviceLocation===n);t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=d().setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(d().clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){let e;let t=this.main(),r=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return r;let n=t.mediaGroups.AUDIO,i=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)e=this.mediaTypes_.AUDIO.activeTrack();else{let t=n.main||i.length&&n[i[0]];for(let r in t)if(t[r].default){e={label:r};break}}if(!e)return r;let o=[];for(let r in n)if(n[r][e.label]){let i=n[r][e.label];if(i.playlists&&i.playlists.length)o.push.apply(o,i.playlists);else if(i.uri)o.push(i);else if(t.playlists.length)for(let e=0;e<t.playlists.length;e++){let n=t.playlists[e];n.attributes&&n.attributes.AUDIO&&n.attributes.AUDIO===r&&o.push(n)}}return o.length?o:r}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{let e=this.mainPlaylistLoader_.media(),t=1500*e.targetDuration;sV(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),uW({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_
97(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t)||(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial"),!("vhs-json"===this.sourceType_&&this.initialMedia_.segments)))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{let e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{let e=this.mainPlaylistLoader_.media(),t=1500*e.targetDuration;sV(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{let e=this.mainPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(e=>{this.mainPlaylistLoader_.on(e,e=>{this.player_.trigger((0,_.Z)({},e))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),!this.tech_.paused()&&(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){let r=e.mediaGroups||{},n=!0,i=Object.keys(r.AUDIO);for(let e in r.AUDIO)for(let t in r.AUDIO[e])r.AUDIO[e][t].uri||(n=!1);n&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(r.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),l.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),i.length&&Object.keys(r.AUDIO[i[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){let t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,r=this.tech_.currentTime(),n=this.bufferLowWaterLine(),i=this.bufferHighWaterLine();return uX({buffered:this.tech_.buffered(),currentTime:r,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:i,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{let e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>
97{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:uZ}))});let e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();let e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(e=>{this.mainSegmentLoader_.on(e,e=>{this.player_.trigger((0,_.Z)({},e))}),this.audioSegmentLoader_.on(e,e=>{this.player_.trigger((0,_.Z)({},e))}),this.subtitleSegmentLoader_.on(e,e=>{this.player_.trigger((0,_.Z)({},e))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){if(e&&e===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();let e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){let e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){let t=this.seekable();if(!t.length)return!1;let r=t.end(0),n=r;if(e.start){let i=e.start.timeOffset;n=i<0?Math.max(r+i,t.start(0)):Math.min(r,i)}this.trigger("firstplay"),this.tech_.setCurrentTime(n)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){let e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;let e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;let t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){let t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;let t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;let r=l.Playlist.playlistEnd(e,t),n=this.tech_.currentTime(),i=this.tech_.buffered();if(!i.length)return r-n<=sv;let o=i.end(i.length-1);
97return o-n<=sv&&r-o<=sv}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:r}){let n;if(e=e||this.mainPlaylistLoader_.media(),r=r||t.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=t,"open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;let i=this.mainPlaylistLoader_.main.playlists,o=i.filter(s$),a=1===o.length&&o[0]===e;if(1===i.length&&r!==1/0)return so.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){let t=this.pathwayAttribute_(e),r=1e3*this.contentSteeringController_.steeringManifest.ttl;this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},r);return}let t=!1;i.forEach(r=>{if(r===e)return;let n=r.excludeUntil;void 0!==n&&n!==1/0&&(t=!0,delete r.excludeUntil)}),t&&(so.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}n=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*r,e.excludeUntil=n,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});let s=this.selectPlaylist();if(!s){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}let l=t.internal?this.logger_:so.log.warn,c=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${c} Switching to playlist ${s.id}.`),s.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),s.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);let u=s.targetDuration/2*1e3||5e3,d="number"==typeof s.lastRequest&&Date.now()-s.lastRequest<=u;return this.switchMedia_(s,"exclude",a||d)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){let r=[],n="all"===e;(n||"main"===e)&&r.push(this.mainPlaylistLoader_);let i=[];(n||"audio"===e)&&i.push("AUDIO"),(n||"subtitle"===e)&&(i.push("CLOSED-CAPTIONS"),i.push("SUBTITLES")),i.forEach(e=>{let t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&r.push(t)}),["main","audio","subtitle"].forEach(t=>{let n=this[`${t}SegmentLoader_`];n&&(e===t||"all"===e)&&r.push(n)}),r.forEach(e=>t.forEach(t=>{"function"==typeof e[t]&&e[t]()}))}setCurrentTime(e){let t=s_(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:void(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;let e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:l.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e,t,r;if(!this.mainPlaylistLoader_)return;let n=this.mainPlaylistLoader_.media();if(!n)return;let i=this.syncController_.getExpiredTime(n,this.duration());if(null===i)return;let o=this.mainPlaylistLoader_.main,a=l.Playlist.seekable(n,i,l.Playlist.liveEdgeDelay(o,n));if(0===a.length||this.mediaTypes_.AUDIO.activePlaylistLoader&&(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(n,this.duration()))||0===(e=l.Playlist.seekable(n,i,l.Playlist.liveEdgeDelay(o,n))).length)||(this.seekable_&&this.seekable_.length&&(t=this.seekable_.end(0),r=this.seekable_.start(0)),e?e.start(0)>a.end(0)||a.start(0)>e.end(0)?this.seekable_=a:this.seekable_=sm([[e.start(0)>a.start(0)?e.start(0):a.start(0),e.end(0)<a.end(0)?e.end(0):a.end(0)]]):this.seekable_=a,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===t&&this.seekable_.start(0)===r))return;this.logger_(`seekable updated [${sx(this.seekable_)}]`);let s={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:s}),this.tech_.trigger("seekablechanged")}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){let e=this.seekable();if(!e.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1));return}let t=this.tech_.buffered(),r=l.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(r=Math.max(r,t.end(t.length-1))),this.mediaSource.duration!==r&&this.sourceUpdater_.setDuration(r)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e
97=>{let t=this.mediaTypes_[e].groups;for(let e in t)t[e].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){let e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),r=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!!t&&!!r}getCodecsOrExclude_(){let e;let t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},r=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;let n=cx(this.main(),r),i={},o=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||J),t.main.isMuxed&&(i.video+=`,${n.audio||t.main.audioCodec||Y}`),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||o)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||Y,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!i.audio&&!i.video){this.excludePlaylist({playlistToExclude:r,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}let a=(e,t)=>e?K(t):Z(t),s={};if(["video","audio"].forEach(function(r){if(i.hasOwnProperty(r)&&!a(t[r].isFmp4,i[r])){let n=t[r].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(i[r]),"audio"===r&&(e=n)}}),o&&e&&r.attributes.AUDIO){let t=r.attributes.AUDIO;
vendor: 4,073 bytes, line 97
97this.main().playlists.forEach(e=>{(e.attributes&&e.attributes.AUDIO)===t&&e!==r&&(e.excludeUntil=1/0)}),this.logger_(`excluding audio group ${t} as ${e} does not support codec(s): "${i.audio}"`)}if(Object.keys(s).length){let e=Object.keys(s).reduce((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${s[t].join(",")}"`),"")+".";this.excludePlaylist({playlistToExclude:r,error:{internal:!0,message:e},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){let e=[];if(["video","audio"].forEach(t=>{let r=($(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,n=($(i[t]||"")[0]||{}).type;r&&n&&r.toLowerCase()!==n.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${i[t]}"`)}),e.length){this.excludePlaylist({playlistToExclude:r,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return i}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;let e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);let t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){let e=this.main().playlists,t=[];Object.keys(e).forEach(r=>{let n=e[r];if(-1!==t.indexOf(n.id))return;t.push(n.id);let i=cx(this.main,n),o=[];!i.audio||Z(i.audio)||K(i.audio)||o.push(`audio codec ${i.audio}`),!i.video||Z(i.video)||K(i.video)||o.push(`video codec ${i.video}`),i.text&&"stpp.ttml.im1t"===i.text&&o.push(`text codec ${i.text}`),o.length&&(n.excludeUntil=1/0,this.logger_(`excluding ${n.id} for unsupported: ${o.join(", ")}`))})}excludeIncompatibleVariants_(e){let t=[],r=this.main().playlists,n=cS($(e)),i=ck(n),o=n.video&&$(n.video)[0]||null,a=n.audio&&$(n.audio)[0]||null;Object.keys(r).forEach(e=>{let n=r[e];if(-1!==t.indexOf(n.id)||n.excludeUntil===1/0)return;t.push(n.id);let s=[],l=cx(this.mainPlaylistLoader_.main,n),c=ck(l);if(l.audio||l.video){if(c!==i&&s.push(`codec count "${c}" !== "${i}"`),!this.sourceUpdater_.canChangeType()){let e=l.video&&$(l.video)[0]||null,t=l.audio&&$(l.audio)[0]||null;e&&o&&e.type.toLowerCase()!==o.type.toLowerCase()&&s.push(`video codec "${e.type}" !== "${o.type}"`),t&&a&&t.type.toLowerCase()!==a.type.toLowerCase()&&s.push(`audio codec "${t.type}" !== "${a.type}"`)}s.length&&(n.excludeUntil=1/0,this.logger_(`excluding ${n.id}: ${s.join(" && ")}`))}})}updateAdCues_(e){let t=0,r=this.seekable();r.length&&(t=r.start(0)),uS(e,this.cueTagsTrack_,t)}goalBufferLength(){let e=this.tech_.currentTime(),t=lG.GOAL_BUFFER_LENGTH,r=lG.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,lG.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*r,n)}bufferLowWaterLine(){let e=this.tech_.currentTime(),t=lG.BUFFER_LOW_WATER_LINE,r=lG.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,lG.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(t,lG.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*r,this.bufferBasedABR?i:n)}bufferHighWaterLine(){return lG.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){cW(this.inbandTextTracks_,"com.apple.streaming",this.tech_),cq({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,r){let n=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();cW(this.inbandTextTracks_,e,this.tech_),cH({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:r})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){let e=this.main();if(e.contentSteering){for(let t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}
97resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.contentSteeringController_.on(e,e=>{this.trigger((0,_.Z)({},e))})}),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{let e=this.main(),t=this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering),r=()=>{let t=this.contentSteeringController_.getAvailablePathways(),r=[];for(let n of e.playlists){let e=n.attributes.serviceLocation;if(e&&(r.push(e),!t.has(e)))return!0}return!r.length&&!!t.size};(t||r())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){let e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();let t=this.main().playlists,r=new Set,n=!1;Object.keys(t).forEach(i=>{let o=t[i],a=this.pathwayAttribute_(o),s=a&&e!==a;o.excludeUntil!==1/0||"content-steering"!==o.lastExcludeReason_||s||(delete o.excludeUntil,delete o.lastExcludeReason_,n=!0);let l=!o.excludeUntil&&o.excludeUntil!==1/0;!r.has(o.id)&&s&&l&&(r.add(o.id),o.excludeUntil=1/0,o.lastExcludeReason_="content-steering",this.logger_(`excluding ${o.id} for ${o.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{let r=this.mediaTypes_[t];if(r.activePlaylistLoader){let t=r.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(n=!0)}}),n&&this.changeSegmentPathway_()}handlePathwayClones_(){let e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||r&&r.size){for(let[e,n]of t.entries())r.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(n),this.contentSteeringController_.excludePathway(e));for(let[n,i]of r.entries()){let r=t.get(n);if(!r){e.filter(e=>
vendor: 11,588 bytes, line 97
97e.attributes["PATHWAY-ID"]===i["BASE-ID"]).forEach(e=>{this.mainPlaylistLoader_.addClonePathway(i,e)}),this.contentSteeringController_.addAvailablePathway(n);continue}this.equalPathwayClones_(r,i)||(this.mainPlaylistLoader_.updateOrDeleteClone(i,!0),this.contentSteeringController_.addAvailablePathway(n))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...r])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;let r=e["URI-REPLACEMENT"].PARAMS,n=t["URI-REPLACEMENT"].PARAMS;for(let e in r)if(r[e]!==n[e])return!1;for(let e in n)if(r[e]!==n[e])return!1;return!0}changeSegmentPathway_(){let e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0,t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(r=>{let n=this.mainPlaylistLoader_.getKeyIdSet(r);n&&n.size&&n.forEach(n=>{let i="usable",o=this.keyStatusMap_.has(n)&&this.keyStatusMap_.get(n)===i,a=r.lastExcludeReason_===t&&r.excludeUntil===1/0;o?o&&a&&(delete r.excludeUntil,delete r.lastExcludeReason_,this.logger_(`enabling playlist ${r.id} because key ID ${n} is ${i}`)):(r.excludeUntil!==1/0&&r.lastExcludeReason_!==t&&(r.excludeUntil=1/0,r.lastExcludeReason_=t,this.logger_(`excluding playlist ${r.id} because the key ID ${n} doesn't exist in the keyStatusMap or is not ${i}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{let r=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,n=e.excludeUntil===1/0&&e.lastExcludeReason_===t;r&&n&&(delete e.excludeUntil,so.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){let r=("string"==typeof e?e:uy(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${r} added to the keyStatusMap`),this.keyStatusMap_.set(r,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}let u0=(e,t,r)=>n=>{let i=e.main.playlists[t],o=sz(i),a=s$(i);if(void 0===n)return a;n?delete i.disabled:i.disabled=!0;let s={renditionInfo:{id:t,bandwidth:i.attributes.BANDWIDTH,resolution:i.attributes.RESOLUTION,codecs:i.attributes.CODECS},cause:"fast-quality"};return n===a||o||(r(i),n?e.trigger({type:"renditionenabled",metadata:s}):e.trigger({type:"renditiondisabled",metadata:s})),n};class u1{constructor(e,t,r){let{playlistController_:n}=e,i=n.fastQualityChange_.bind(n);if(t.attributes){let e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=cx(n.main(),t),this.playlist=t,this.id=r,this.enabled=u0(e.playlists,t.id,i)}}let u2=function(e){e.representations=()=>{let t=e.playlistController_.main(),r=sZ(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return r?r.filter(e=>!sz(e)).map((t,r)=>new u1(e,t,t.id)):[]}},u4=["seeking","seeked","pause","playing","error"];class u3 extends so.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=sp("PlaybackWatcher"),this.logger_("initialize");let t=()=>this.monitorCurrentTime_(),r=()=>this.monitorCurrentTime_(),n=()=>this.techWaiting_(),i=()=>this.resetTimeUpdate_(),o=this.playlistController_,a=["main","subtitle","audio"],s={};a.forEach(e=>{s[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},o[`${e}SegmentLoader_`].on("appendsdone",s[e].updateend),o[`${e}SegmentLoader_`].on("playlistupdate",s[e].reset),this.tech_.on(["seeked","seeking"],s[e].reset)});let l=e=>{["main","audio"].forEach(t=>{o[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=()=>l("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",n),this.tech_.on(u4,i),this.tech_.on("canplay",r),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",n),this.tech_.off(u4,i),this.tech_.off("canplay",r),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach(e=>{o[`${e}SegmentLoader_`].off("appendsdone",s[e].updateend),o[`${e}SegmentLoader_`].off("playlistupdate",s[e].reset),this.tech_.off(["seeked","seeking"],s[e].reset)}),this.checkCurrentTimeTimeout_&&d().clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&d().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=d().setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){let t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){let t=this.playlistController_,r=t[`${e}SegmentLoader_`],n=r.buffered_(),i=sA(this[`${e}Buffered_`],n);if(this[`${e}Buffered_`]=n,i){let r={bufferedRanges:n};t.trigger({type:"bufferedrangeschanged",metadata:r}),this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:r.playlist_&&r.playlist_.id,buffered:sT(n)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;let e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+sv>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(sm([this.lastRecordedTime,e]));let t={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:t}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){let e;if(!this.tech_.seeking())return!1;let t=this.seekable(),r=this.tech_.currentTime();if(this.afterSeekableWindow_(t,r,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,r)){let r=t.start(0);e=r+(r===t.end(0)?0:sv)}if(void 0!==e)return this.logger_(`Trying to seek outside of seekable at time ${r} with seekable range ${sx(t)}. Seeking to ${e}.`),this.tech_.setCurrentTime(e),!0;let n=this.playlistController_.sourceUpdater_,i=this.tech_.buffered(),o=n.audioBuffer?n.audioBuffered():null,a=n.videoBuffer?n.videoBuffered():null,s=this.media(),l=s.partTargetDuration?s.partTargetDuration:(s.targetDuration-sy)*2,c=[o,a];for(let e=0;e<c.length;e++)if(c[e]&&sP(c[e],r)<l)return!1;let u=sw(i,r);return 0!==u.length&&(e=u.start(0)+sv,this.logger_(`Buffered region starts (${u.start(0)})  just beyond seek point (${r}). Seeking to ${e}.`),this.tech_.setCurrentTime(e),!0)}waiting_(){if(this.techWaiting_())return;let e=this.tech_.currentTime(),t=s_(this.tech_.buffered(),e);if(t.length&&e+3<=t.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${t.start(0)} -> ${t.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){let e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){let r=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${r}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(r),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}let r=this.tech_.vhs.playlistController_.sourceUpdater_,n=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:r.audioBuffered(),videoBuffered:r.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;let i=sw(n,t);return i.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${i.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,r,n=!1){if(!e.length)return!1;let i=e.end(e.length-1)+sv,o=!r.endList,a="number"==typeof r.partTargetDuration;return o&&(a||n)&&(i=e.end(e.length-1)+3*r.targetDuration),t>i}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:r}){let n;if(e){if(e.length&&t.length){let i=s_(e,r-3),o=s_(e,r),a=s_(t,r);a.length&&!o.length&&i.length&&(n={start:i.end(0),end:a.end(0)})}else sw(e,r).length||(n=this.gapFromVideoUnderflow_(e,r));return!!n&&(this.logger_(`Encountered a gap in video from ${n.start} to ${n.end}. Seeking to current time ${r}`),!0)}}skipTheGap_(e){let t=this.tech_.buffered(),r=this.tech_.currentTime(),n=sw(t,r);if(this.resetTimeUpdate_(),0===n.length||r!==e)return;this.logger_("skipTheGap_:","currentTime:",r,"scheduled currentTime:",e,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+sy);let i={gapInfo:{from:r,to:n.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:i}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){let r=sS(e);for(let e=0;e<r.length;e++){let n=r.start(e),i=r.end(e);if(t-n<4&&t-n>2)return{start:n,end:i}}return null}}let u6={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},u5=function(e,t){let r=0,n=0,i=sf(u6,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});let o=function(){n&&e.currentTime(n)},a=function(t){null!=t&&(n=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",o),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},s=function(){if(Date.now()-r<1e3*i.errorInterval){e.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}
97if(!i.getSource||"function"!=typeof i.getSource){so.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return r=Date.now(),i.getSource.call(e,a)},l=function(){e.off("loadedmetadata",o),e.off("error",s),e.off("dispose",l)},c=function(t){l(),u5(e,t)};e.on("error",s),e.on("dispose",l),e.reloadSourceOnError=c},u8=function(e){u5(this,e)};var u7="3.13.1",u9="7.0.3",de="1.3.0",dt="7.1.0",dr="4.0.1";let dn={PlaylistLoader:lu,Playlist:sY,utils:lE,STANDARD_PLAYLIST_SELECTOR:cN,INITIAL_PLAYLIST_SELECTOR:cL,lastBandwidthSelector:cN,movingAverageBandwidthSelector:cD,comparePlaylistBandwidth:cP,comparePlaylistResolution:cI,xhr:lf()};Object.keys(lG).forEach(e=>{Object.defineProperty(dn,e,{get:()=>(so.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),lG[e]),set(t){if(so.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0){so.log.warn(`value of Vhs.${e} must be greater than or equal to 0`);return}lG[e]=t}})});let di="videojs-vhs",da=function(e,t){let r=t.media(),n=-1;for(let t=0;t<e.length;t++)if(e[t].id===r.id){n=t;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})},ds=function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),da(e,t.playlists)};dn.canPlaySource=function(){return so.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};let dl=(e,t,r)=>{if(!e)return e;let n={};t&&t.attributes&&t.attributes.CODECS&&(n=cS($(t.attributes.CODECS))),r&&r.attributes&&r.attributes.CODECS&&(n.audio=r.attributes.CODECS);let i=G(n.video),o=G(n.audio),a={};for(let r in e)a[r]={},o&&(a[r].audioContentType=o),i&&(a[r].videoContentType=i),t.contentProtection&&t.contentProtection[r]&&t.contentProtection[r].pssh&&(a[r].pssh=t.contentProtection[r].pssh),"string"==typeof e[r]&&(a[r].url=e[r]);return sf(e,a)},dc=(e,t)=>e.reduce((e,r)=>{if(!r.contentProtection)return e;let n=t.reduce((e,t)=>{let n=r.contentProtection[t];return n&&n.pssh&&(e[t]={pssh:n.pssh}),e},{});return Object.keys(n).length&&e.push(n),e},[]),du=({player:e,sourceKeySystems:t,audioMedia:r,mainPlaylists:n})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();let i=dc(r?n.concat([r]):n,Object.keys(t)),o=[],a=[];return i.forEach(t=>{a.push(new Promise((t,r)=>{e.tech_.one("keysessioncreated",t)})),o.push(new Promise((r,n)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{if(e){n(e);return}r()})}))}),Promise.race([Promise.all(o),Promise.race(a)])},dd=({player:e,sourceKeySystems:t,media:r,audioMedia:n})=>{let i=dl(t,r,n);return!!i&&(e.currentSource().keySystems=i,!i||!!e.eme||(so.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},dh=()=>{if(!d().localStorage)return null;let e=d().localStorage.getItem(di);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},dp=e=>{if(!d().localStorage)return!1;let t=dh();t=t?sf(t,e):e;try{d().localStorage.setItem(di,JSON.stringify(t))}catch(e){return!1}return t},df=e=>0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,dm=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},dg=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},dy=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},dv=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};dn.supportsNativeHls=function(){if(!p()||!p().createElement)return!1;let e=p().createElement("video");return!!so.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),dn.supportsNativeDash=function(){return!!(p()&&p().createElement&&so.getTech("Html5").isSupported())&&/maybe|probably/i.test(p().createElement("video").canPlayType("application/dash+xml"))}(),dn.supportsTypeNatively=e=>"hls"===e?dn.supportsNativeHls:"dash"===e&&dn.supportsNativeDash,dn.isSupported=function(){return so.log.warn("VHS is no longer a tech. Please remove it from your player'
97s techOrder.")},dn.xhr.onRequest=function(e){dm(dn.xhr,e)},dn.xhr.onResponse=function(e){dg(dn.xhr,e)},dn.xhr.offRequest=function(e){dy(dn.xhr,e)},dn.xhr.offResponse=function(e){dv(dn.xhr,e)};let db=so.getComponent("Component");class d_ extends db{constructor(e,t,r){if(super(t,r.vhs),"number"==typeof r.initialBandwidth&&(this.options_.bandwidth=r.initialBandwidth),this.logger_=sp("VhsHandler"),t.options_&&t.options_.playerId){let e=so.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(p(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{let t=p().fullscreenElement||p().webkitFullscreenElement||p().mozFullScreenElement||p().msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=sf(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){let e=dh();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=lG.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===lG.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;let t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=df(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=dn,this.options_.sourceType=ee(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new uQ(this.options_);let r=sf({liveRangeSafeTimeDelta:sv},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new u3(r),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{let e=so.players[this.tech_.options_.playerId],t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});let n=this.options_.bufferBasedABR?dn.movingAverageBandwidthSelector(.55):dn.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):n.bind(this),this.playlistController_.selectInitialPlaylist=dn.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth,t=d().navigator.connection||d().navigator.mozConnection||d().navigator.webkitConnection,r=1e7;if(this.options_.useNetworkInformationApi&&t){let n=1e6*t.downlink;e=n>=r&&e>=r?Math.max(e,n):n}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){let e;return Math.floor(1/(1/(this.bandwidth||1)+(e=this.throughput>0?1/this.throughput:0)))},set(){so.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>sT(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>sT(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&dp({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{u2(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=d().URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),du({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media ke
97ys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=dd({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on("keystatuschange",e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!t){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){let e=so.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{ds(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{da(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":u7,"mux.js":u9,"mpd-parser":de,"m3u8-parser":dt,"aes-decrypter":dr}}version(){return this.constructor.version()}canChangeType(){return um.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&d().URL.revokeObjectURL&&(d().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return lD({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,r=!0,n=2){return lR({programTime:e,playlist:this.playlistController_.media(),retryCount:n,pauseAfterSeek:r,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{dm(this.xhr,e)},this.xhr.onResponse=e=>{dg(this.xhr,e)},this.xhr.offRequest=e=>{dy(this.xhr,e)},this.xhr.offResponse=e=>{dv(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){let e=["gapjumped","playedrangeschanged"];["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.playlistController_.on(e,e=>{this.player_.trigger((0,_.Z)({},e))})}),e.forEach(e=>{this.playbackWatcher_.on(e,e=>{this.player_.trigger((0,_.Z)({},e))})})}}let dw={name:"videojs-http-streaming",VERSION:u7,canHandleSource(e,t={}){let r=sf(so.options,t);return dw.canPlayType(e.type,r)},handleSource(e,t,r={}){let n=sf(so.options,r);return t.vhs=new d_(e,t,n),t.vhs.xhr=lf(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){let r=ee(e);if(!r)return"";let n=dw.getOverrideNative(t);return!dn.supportsTypeNatively(r)||n?"maybe":""},getOverrideNative(e={}){let{vhs:t={}}=e,r=!(so.browser.IS_ANY_SAFARI||so.browser.IS_IOS),{overrideNative:n=r}=t;return n}};K("avc1.4d400d,mp4a.40.2")&&so.getTech("Html5").registerSourceHandler(dw,0),so.VhsHandler=d_,so.VhsSourceHandler=dw,so.Vhs=dn,so.use||so.registerComponent("Vhs",dn),so.options.vhs=so.options.vhs||{},so.getPlugin&&so.getPlugin("reloadSourceOnError")||so.registerPlugin("reloadSourceOnError",u8)},20087:function(e,t,r){var n=r(73022).getUint64,i=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(e.subarray(i)),r.firstOffset=n(e.subarray(i+8)),i+=16),i+=2;var o=t.getUint16(i);for(i+=2;o>0;i+=12,o--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return r};e.exports=i},3699:function(e){var t,r,n,i,o,a,s,l=9e4;t=function(e){return e*l},r=function(e,t){return e*t},n=function(e){return e/l},i=function(e,t){return e/t},o=function(e,r){return t(i(e,r))},a=function(e,t){return r(n(e),t)},s=function(e,t,r){return n(r?e:e-t)},e.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:t,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:o,videoTsToAudioTs:a,metadataTsToSeconds:s}},73022:function(e){var t=4294967296,r=function(e){var r,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
97Number(r):r:n.getUint32(0)*t+n.getUint32(4)};e.exports={getUint64:r,MAX_UINT32:t}},78984:function(e,t,r){!function(t,n){e.exports=n(r(71555))}(0,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);class r{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class n extends t.default.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;let n=this.levels_.length;return t=new r(e),""+n in this||Object.defineProperty(this,n,{get(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let r=0,n=this.length;r<n;r++)if(this[r]===e){t=this.levels_.splice(r,1)[0],this.selectedIndex_===r?this.selectedIndex_=-1:this.selectedIndex_>r&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,r=this.length;t<r;t++){let r=this[t];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}for(let e in n.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},n.prototype.allowedEvents_)n.prototype["on"+e]=null;var i="4.1.0";let o=function(e,t){let r=e.qualityLevels,o=new n,a=function(){o.dispose(),e.qualityLevels=r,e.off("dispose",a)};return e.on("dispose",a),e.qualityLevels=()=>o,e.qualityLevels.VERSION=i,o},a=function(e){return o(this,t.default.obj.merge({},e))};return t.default.registerPlugin("qualityLevels",a),a.VERSION=i,a})},13407:function(e,t,r){var n=r(58908),i=e.exports={WebVTT:r(63706),VTTCue:r(22230),VTTRegion:r(13710)};n.vttjs=i,n.WebVTT=i.WebVTT;var o=i.VTTCue,a=i.VTTRegion,s=n.VTTCue,l=n.VTTRegion;i.shim=function(){n.VTTCue=o,n.VTTRegion=a},i.restore=function(){n.VTTCue=s,n.VTTRegion=l},n.VTTCue||i.shim()},63706:function(e,t,r){var n=r(89144),i=Object.create||function(){function e(){}return function(t){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,r,n){return(0|e)*3600+(0|t)*60+(0|r)+(0|n)/1e3}var r=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function l(e,t,r,n){var i=n?e.split(n):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(r);2===a.length&&t(a[0].trim(),a[1].trim())}}function c(e,t,r){var n=e;function i(){var t=a(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+n);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(e,t){var n=new s;l(e,function(e,t){switch(e){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===t){n.set(e,r[i].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];n.integer(e,a),n.percent(e,a)&&n.set("snapToLines",!1),n.alt(e,a,["auto"]),2===o.length&&n.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),n.percent(e,o[0]),2===o.length&&n.alt("positionAlign",o[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=i(),u(),"-->"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+n);e=e.substr(3),u(),t.endTime=i(),u(),c(e,t)}o.prototype=i(Error.prototype),o.prototype.constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){var r;return!!((r=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=n.createElement&&n.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function r(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var r=t.match(/^([^<]*)(<[^>
97]*>?)?/);return e(r[1]?r[1]:r[2])}function n(e){return u.innerHTML=e,e=u.textContent,u.textContent="",e}function i(e,t){return!f[t.localName]||f[t.localName]===e.localName}function o(t,r){var n=d[t];if(!n)return null;var i=e.document.createElement(n),o=p[t];return o&&r&&(i[o]=r.trim()),i}for(var s,l=e.document.createElement("div"),c=l,m=[];null!==(s=r());){if("<"===s[0]){if("/"===s[1]){m.length&&m[m.length-1]===s.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,y=a(s.substr(1,s.length-2));if(y){g=e.document.createProcessingInstruction("timestamp",y),c.appendChild(g);continue}var v=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v||!(g=o(v[1],v[3]))||!i(c,g))continue;if(v[2]){var b=v[2].split(".");b.forEach(function(e){var t=/^bg_/.test(e),r=t?e.slice(3):e;if(h.hasOwnProperty(r)){var n=t?"background-color":"color",i=h[r];g.style[n]=i}}),g.className=b.join(" ")}m.push(v[1]),c.appendChild(g),c=g;continue}c.appendChild(e.document.createTextNode(n(s)))}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(e){for(var t=0;t<g.length;t++){var r=g[t];if(e>=r[0]&&e<=r[1])return!0}return!1}function v(e){var t=[],r="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var r=t.childNodes.length-1;r>=0;r--)e.push(t.childNodes[r])}function i(e){if(!e||!e.length)return null;var t=e.pop(),r=t.textContent||t.innerText;if(r){var o=r.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):r}return"ruby"===t.tagName?i(e):t.childNodes?(n(e,t),i(e)):void 0}for(n(t,e);r=i(t);)for(var o=0;o<r.length;o++)if(y(r.charCodeAt(o)))return"rtl";return"ltr"}function b(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return -1;for(var t=e.track,r=t.textTrackList,n=0,i=0;i<r.length&&r[i]!==t;i++)"showing"===r[i].mode&&n++;return -1*++n}function _(){}function w(e,t,r){_.call(this),this.cue=t,this.cueDiv=m(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:v(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":case"line-left":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":case"line-right":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
vendor: 7,755 bytes, line 97
97)}}function S(e){var t,r,n,i;if(e.div){r=e.div.offsetHeight,n=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||r,this.bottom=e.bottom||i+(e.height||r),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function k(e,t,r,n){function i(e,t){for(var i,o=new S(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(r,t[s])||e.within(r)&&e.overlapsAny(n);)e.move(t[s]);if(e.within(r))return e;var l=e.intersectPercentage(r);a>l&&(i=new S(e),a=l),e=new S(o)}return i||o}var o=new S(t),a=t.cue,s=b(a),l=[];if(a.snapToLines){switch(a.vertical){case"":l=["+y","-y"],c="height";break;case"rl":l=["+x","-x"],c="width";break;case"lr":l=["-x","+x"],c="width"}var c,u=o.lineHeight,d=u*Math.round(s),h=r[c]+u,p=l[0];Math.abs(d)>h&&(d=Math.ceil(h/u)*u*(d<0?-1:1)),s<0&&(d+=""===a.vertical?r.height:r.width,l=l.reverse()),o.move(p,d)}else{var f=o.lineHeight/r.height*100;switch(a.lineAlign){case"center":s-=f/2;break;case"end":s-=f}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}l=["+y","-x","+x","-y"],o=new S(t)}var m=i(o,l);t.move(m.toCSSCompatValues(r))}function x(){}_.prototype.applyStyles=function(e,t){for(var r in t=t||this.div,e)e.hasOwnProperty(r)&&(t.style[r]=e[r])},_.prototype.formatStyle=function(e,t){return 0===e?0:e+t},w.prototype=i(_.prototype),w.prototype.constructor=w,S.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},S.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},S.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},S.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},S.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},S.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},S.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},S.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||r}},x.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},x.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};var E=.05,T="sans-serif",A="1.5%";x.processCues=function(e,t,r){if(!e||!t||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin=A,r.appendChild(n),!function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){for(var i=0;i<t.length;i++)n.appendChild(t[i].displayState);return}var o=[],a=S.getSimpleBoxPosition(n),s={font:Math.round(a.height*E*100)/100+"px "+T};!function(){for(var r,i,l=0;l<t.length;l++)r=new w(e,i=t[l],s),n.appendChild(r.div),k(e,r,a,o),i.displayState=r.div,o.push(S.getSimpleBoxPosition(r))}()},x.Parser=function(e,t,r){r||(r=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},x.Parser.prototype={reportOrThrowError:function(e){if(e instanceof o)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;function r(){for(var e=t.buffer,r=0;r<e.length&&"\r"!==e[r]&&"\n"!==e[r];)++r;var n=e.substr(0,r);return"\r"===e[r]&&++r,"\n"===e[r]&&++r,t.buffer=e.substr(r),n}function n(e){var r=new s;if(l(e,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(2!==n.length)break;var i=new s;if(i.percent("x",n[0]),i.percent("y",n[1]),!i.has("x")||!i.has("y"))break;r.set(e+"X",i.get("x")),r.set(e+"Y",i.get("y"));break;case"scroll":r.alt(e,t,["up"])}},/=/,/\s/),r.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=r.get("width",100),n.lines=r.get("lines",3),n.regionAnchorX=r.get("regionanchorX",0),n.regionAnchorY=r.get("regionanchorY",100),n.viewportAnchorX=r.get("viewportanchorX",0),n.viewportAnchorY=r.get("viewportanchorY",100),n.scroll=r.get("scroll",""),t.onregion&&t.onregion(n),t.regionList.push({id:r.get("id"),region:n})}}function i(e){var r=new s;l(e,function(e,t){switch(e){case"MPEGT":r.integer(e+"S",t);break;case"LOCA":r.set(e+"L",a(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:r.get("MPEGTS"),LOCAL:r.get("LOCAL")})}function u(e){e.match(/X-TIMESTAMP-MAP/)?l(e,function(e,t){"X-TIMESTAMP-MAP"===e&&i(t)},/=/):l(e,function(e,t){"Region"===e&&n(t)},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var d,h=(d=r()).match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var p=!1;t.buffer&&/\r\n|\n/.test(t.buffer);)switch(p?p=!1:d=r(),t.state){case"HEADER":/:/.test(d)?u(d):d||(t.state="ID");continue;case"NOTE":d||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){t.state="NOTE";break}if(!d)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===d.indexOf("-->")){t.cue.id=d;continue}case"CUE":try{c(d,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==d.indexOf("-->");if(!d||f&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=d.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":d||(t.state="ID");continue}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new o(o.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=x},22230:function(e){var t="auto",r={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){return"string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase()}function o(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function a(e,r,n){this.hasBeenReset=!1;var a="",s=!1,l=e,c=r,u=n,d=null,h="",p=!0,f="auto",m="start",g="auto",y="auto",v=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a}
97,set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=i(e);if(!1===t)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e&&e!==t)throw SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=o(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return y},set:function(e){var t=o(e);t?(y=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=o(e);if(!t)throw SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=a},13710:function(e){var t={"":!0,up:!0};function r(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}function n(e){return"number"==typeof e&&e>=0&&e<=100}function i(){var e=100,t=3,i=0,o=100,a=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!n(e))throw Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a}
vendor: 4,521 bytes, line 97
97,set:function(e){if(!n(e))throw Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=r(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}e.exports=i},42473:function(e){"use strict";var t=function(){};e.exports=t},49602:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},34411:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;
97for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;for(var a=[],n=0;o&&n<t;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(49602)(n)}catch(e){}},42480:function(){},25893:function(){},73897:function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},85372:function(e){function t(e){if(Array.isArray(e))return e}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},14210:function(e){function t(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw TypeError("Private element is not present on this object")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},66115:function(e){function t(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},17156:function(e){function t(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function r(e){return function(){var r=this,n=arguments;return new Promise(function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,l,"next",e)}function l(e){t(a,i,o,s,l,"throw",e)}s(void 0)})}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},48912:function(e){function t(e,t){return t.get?t.get.call(e):t.value}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},43448:function(e){function t(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},56690:function(e){function t(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},50468:function(e,t,r){var n=r(48912),i=r(39537);function o(e,t){var r=i(t,e);return n(e,r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},39537:function(e,t,r){var n=r(14210);function i(e,t){return e.get(n(e,t))}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},65661:function(e,t,r){var n=r(43448),i=r(39537);function o(e,t,r){var o=i(t,e);return n(e,o,r),r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,r){var n=r(69617),i=r(6015);function o(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var a=new(e.bind.apply(e,o));return r&&i(a,r.prototype),a}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},89728:function(e,t,r){var n=r(64062);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},38416:function(e,t,r){var n=r(64062);function i(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},10434:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73808:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61655:function(e,t,r){var n=r(6015);function i(e,t){if("function"!=typeof t&&null!==t)throw 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&&n(e,t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}
97,64836:function(e){function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},46035:function(e){function t(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},69617:function(e){function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},68872:function(e){function t(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},12218:function(e){function t(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){function t(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,r){var n=r(18698).default,i=r(66115);function o(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,r){var n=r(18698).default;function i(){"use strict";e.exports=i=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=Object.create((t&&t.prototype instanceof _?t:_).prototype);return s(i,"_invoke",{value:P(e,r,new D(n||[]))}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var m="suspendedStart",g="suspendedYield",y="executing",v="completed",b={};function _(){}function w(){}function S(){}var k={};h(k,c,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(R([])));E&&E!==o&&a.call(E,c)&&(k=E);var T=S.prototype=_.prototype=Object.create(k);function A(e){["next","throw","return"].forEach(function(t){h(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){var r;function i(r,o,s,l){var c=f(e[r],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==n(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){i("next",e,s,l)},function(e){i("throw",e,s,l)}):t.resolve(d).then(function(e){u.value=e,s(u)},function(e){return i("throw",e,s,l)})}l(c.arg)}s(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,r){i(e,n,t,r)})}return r=r?r.then(o,o):o()}})}function P(e,r,n){var i=m;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=I(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===m)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=f(e,r,n);if("normal"===c.type){if(i=n.done?v:g,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function I(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,502 bytes, line 97
97(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),b;var o=f(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw TypeError(n(e)+" is not iterable")}return w.prototype=S,s(T,"constructor",{value:S,configurable:!0}),s(S,"constructor",{value:w,configurable:!0}),w.displayName=h(S,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,h(e,d,"GeneratorFunction")),e.prototype=Object.create(T),e},r.awrap=function(e){return{__await:e}},A(C.prototype),h(C.prototype,u,function(){return this}),r.AsyncIterator=C,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var a=new C(p(e,t,n,i),o);return r.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},A(T),h(T,d,"Generator"),h(T,c,function(){return this}),h(T,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=R,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;N(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}
97e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,r){var n=r(85372),i=r(68872),o=r(86116),a=r(12218);function s(e,t){return n(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,r){var n=r(18698).default;function i(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,r){var n=r(18698).default,i=r(95036);function o(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,r){var n=r(73897);function i(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},33496:function(e,t,r){var n=r(73808),i=r(6015),o=r(46035),a=r(3515);function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},64687:function(e,t,r){var n=r(17061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},93967:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},97326:function(e,t,r){"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},4942:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83997);function i(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},87462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{Z:function(){return n}})},94578:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},1413:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(4942);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
97t%2?i(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}},63366:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}r.d(t,{Z:function(){return n}})},89611:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,{Z:function(){return n}})},83997:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(71002);function i(e,t){if("object"!=(0,n.Z)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,n.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==(0,n.Z)(t)?t:t+""}},71002:function(e,t,r){"use strict";function n(e){return(n="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})(e)}r.d(t,{Z:function(){return n}})},99718:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u},hkdf:function(){return u}});let n=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("unable to locate global object")};var i=async(e,t,r,i,o)=>{let{crypto:{subtle:a}}=n();return new Uint8Array(await a.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:i},await a.importKey("raw",t,"HKDF",!1,["deriveBits"]),o<<3))};function o(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}function a(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}function s(e){let t=a(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}function l(e){let t=a(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}function c(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}async function u(e,t,r,n,u){return i(o(e),s(t),a(r,"salt"),l(n),c(u,e))}},86744:function(e,t,r){"use strict";r.d(t,{E6:function(){return s},Th:function(){return X}});var n=r(67294),i="colors",o="sizes",a="space",s={gap:a,gridGap:a,columnGap:a,gridColumnGap:a,rowGap:a,gridRowGap:a,inset:a,insetBlock:a,insetBlockEnd:a,insetBlockStart:a,insetInline:a,insetInlineEnd:a,insetInlineStart:a,margin:a,marginTop:a,marginRight:a,marginBottom:a,marginLeft:a,marginBlock:a,marginBlockEnd:a,marginBlockStart:a,marginInline:a,marginInlineEnd:a,marginInlineStart:a,padding:a,paddingTop:a,paddingRight:a,paddingBottom:a,paddingLeft:a,paddingBlock:a,paddingBlockEnd:a,paddingBlockStart:a,paddingInline:a,paddingInlineEnd:a,paddingInlineStart:a,top:a,right:a,bottom:a,left:a,scrollMargin:a,scrollMarginTop:a,scrollMarginRight:a,scrollMarginBottom:a,scrollMarginLeft:a,scrollMarginX:a,scrollMarginY:a,scrollMarginBlock:a,scrollMarginBlockEnd:a,scrollMarginBlockStart:a,scrollMarginInline:a,scrollMarginInlineEnd:a,scrollMarginInlineStart:a,scrollPadding:a,scrollPaddingTop:a,scrollPaddingRight:a,scrollPaddingBottom:a,scrollPaddingLeft:a,scrollPaddingX:a,scrollPaddingY:a,scrollPaddingBlock:a,scrollPaddingBlockEnd:a,scrollPaddingBlockStart:a,scrollPaddingInline:a,scrollPaddingInlineEnd:a,scrollPaddingInlineStart:a,fontSize:"fontSizes",background:i,backgroundColor:i,backgroundImage:i,borderImage:i,border:i,borderBlock:i,borderBlockEnd:i,borderBlockStart:i,borderBottom:i,borderBottomColor:i,borderColor:i,borderInline:i,borderInlineEnd:i,borderInlineStart:i,borderLeft:i,borderLeftColor:i,borderRight:i,borderRightColor:i,borderTop:i,borderTopColor:i,
97caretColor:i,color:i,columnRuleColor:i,fill:i,outline:i,outlineColor:i,stroke:i,textDecorationColor:i,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:o,minBlockSize:o,maxBlockSize:o,inlineSize:o,minInlineSize:o,maxInlineSize:o,width:o,minWidth:o,maxWidth:o,height:o,minHeight:o,maxHeight:o,flexBasis:o,gridTemplateColumns:o,gridTemplateRows:o,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},l=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,c=()=>{let e=Object.create(null);return(t,r,...n)=>{let i=JSON.stringify(t,l);return i in e?e[i]:e[i]=r(t,...n)}},u=Symbol.for("sxs.internal"),d=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),h=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:p}=Object.prototype,f=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m=/\s+(?![^()]*\))/,g=e=>t=>e(..."string"==typeof t?String(t).split(m):[t]),y={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:g((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:g((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:g((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:g((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:g((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:g((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},v=/([\d.]+)([^]*)/,b=(e,t)=>e.length?e.reduce((e,r)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e)),e),[]):t,_=(e,t)=>e in w&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,r,n,i)=>r+("stretch"===n?`-moz-available${i};${f(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${f(e)}:${r}fit-content`)+i):String(t),w={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},S=e=>e?e+"-":"",k=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,n,i,o,a)=>"$"==o==!!i?e:(n||"--"==o?"calc(":"")+"var(--"+("$"===o?S(t)+(a.includes("$")?"":S(r))+a.replace(/\$/g,"-"):a)+")"+(n||"--"==o?"*"+(n||"")+(i||"1")+")":"")),x=/\s*,\s*(?![^()]*\))/,E=Object.prototype.toString,T=(e,t,r,n,i)=>{let o,a,s;let l=(e,t,r)=>{let c,u;let d=e=>{var h;for(c in e){let p=64===c.charCodeAt(0);for(u of p&&Array.isArray(e[c])?e[c]:[e[c]]){let e=/[A-Z]/.test(h=c)?h:h.replace(/-[^]/g,e=>e[1].toUpperCase()),m="object"==typeof u&&u&&u.toString===E&&(!n.utils[e]||!t.length);if(e in n.utils&&!m){let t=n.utils[e];if(t!==a){a=t,d(t(u)),a=null;continue}}else if(e in y){let t=y[e];if(t!==s){s=t,d(t(u)),s=null;continue}}if(p&&(c=(c.slice(1) in n.media?"@media "+n.media[c.slice(1)]:c).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,r,n,i,o)=>{let a=v.test(t),s=.0625*(a?-1:1),[l,c]=a?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===a?"max-":"min-")+l+":"+("="!==r[0]&&1===r.length?c.replace(v,(e,t,n)=>Number(t)+s*(">"===r?1:-1)+n):c)+(i?") and ("+(">"===i[0]?"min-":"max-")+l+":"+(1===i.length?o.replace(v,(e,t,r)=>Number(t)+s*(">"===i?-1:1)+r):o):"")+")"})),m){let e=p?r.concat(c):[...r],n=p?[...t]:b(t,c.split(x));void 0!==o&&i(A(...o)),o=void 0,l(u,n,e)}else void 0===o&&(o=[[],t,r]),c=p||36!==c.charCodeAt(0)?c:`--${S(n.prefix)}${c.slice(1).replace(/\$/g,"-")}`,u=m?u:"number"==typeof u?u&&e in C?String(u)+"px":String(u):k(_(e,null==u?"":u),n.prefix,n.themeMap[e]),o[0].push(`${p?`${c} `:`${f(c)}:`}${u}`)}}};d(e),void 0!==o&&i(A(...o)),o=void 0};l(e,t,r)},A=(e,t,r)=>`${r.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,C={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},P=e=>String.fromCharCode(e+(e>25?39:97)),I=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=P(t%52)+r;return P(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),O=["themed","global","styled","onevar","resonevar","allvar","inline"],N=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},D=e=>{let t;let r=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(r,n)=>{let{cssText:i}=r,o="";if(i.startsWith("--sxs"))return"";if(e[n-1]&&(o=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${o}${i}`:""}return i}).join("")},n=()=>
97{if(t){let{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(let t in e)delete e[t]}for(let i of Object(e).styleSheets||[])if(N(i)){for(let e=0,o=i.cssRules;o[e];++e){let a=Object(o[e]);if(1!==a.type)continue;let s=Object(o[e+1]);if(4!==s.type)continue;++e;let{cssText:l}=a;if(!l.startsWith("--sxs"))continue;let c=l.slice(14,-3).trim().split(/\s+/),u=O[c[0]];u&&(t||(t={sheet:i,reset:n,rules:{},toString:r}),t.rules[u]={group:s,index:e,cache:new Set(c)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}let{sheet:i,rules:o}=t;for(let e=O.length-1;e>=0;--e){let t=O[e];if(!o[t]){let r=O[e+1],n=o[r]?o[r].index:i.cssRules.length;i.insertRule("@media{}",n),i.insertRule(`--sxs{--sxs:${e}}`,n),o[t]={group:i.cssRules[n+1],index:n,cache:new Set([e])}}R(o[t])}};return n(),t},R=e=>{let t=e.group,r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},L=Symbol(),M=c(),j=(e,t)=>M(e,()=>(...r)=>{let n={type:null,composers:new Set};for(let t of r)if(null!=t){if(t[u])for(let e of(null==n.type&&(n.type=t[u].type),t[u].composers))n.composers.add(e);else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(B(t,e))}return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),U(e,n,t)}),B=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{var o,a;let s=`${S(i.prefix)}c-${I(n)}`,l=[],c=[],u=Object.create(null),d=[];for(let e in r)u[e]=String(r[e]);if("object"==typeof e&&e)for(let t in e){o=u,a=t,p.call(o,a)||(u[t]="undefined");let r=e[t];for(let e in r){let n={[t]:String(e)};"undefined"===String(e)&&d.push(t);let i=r[e],o=[n,i,!h(i)];l.push(o)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...r}=e;for(let e in t="object"==typeof t&&t||{},r)r[e]=String(r[e]);let n=[r,t,!h(t)];c.push(n)}return[s,n,l,c,u,d]},U=(e,t,r)=>
97{let[n,i,o,a]=F(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[L].length;r++){let[n,i]=t[L][r];e.rules[n].apply(i)}return t[L]=[],null}return t[L]=[],t.rules={},O.forEach(e=>t.rules[e]={apply:r=>t[L].push([e,r])}),t})(r):null,l=(s||r).rules,c=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,h=u=>{let{css:d,...h}=u="object"==typeof u&&u||z,p={};for(let e in o)if(delete h[e],e in u){let t=u[e];"object"==typeof t&&t?p[e]={"@initial":o[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:o[e])}else p[e]=o[e];let f=new Set([...i]);for(let[n,i,o,a]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),T(i,[`.${n}`],[],e,e=>{l.styled.apply(e)}));let t=H(o,p,e.media),s=H(a,p,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,o,a]of i){let i=`${n}-${I(o)}-${t}`;f.add(i);let s=(a?r.rules.resonevar:r.rules.onevar).cache,c=a?l.resonevar:l.onevar;s.has(i)||(s.add(i),T(o,[`.${i}`],[],e,e=>{c.apply(e)}))}for(let t of s)if(void 0!==t)for(let[i,o]of t){let t=`${n}-${I(o)}-${i}`;f.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),T(o,[`.${t}`],[],e,e=>{l.allvar.apply(e)}))}}if("object"==typeof d&&d){let t=`${n}-i${I(d)}-css`;f.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),T(d,[`.${t}`],[],e,e=>{l.inline.apply(e)}))}for(let e of String(u.className||"").trim().split(/\s+/))e&&f.add(e);let m=h.className=[...f].join(" ");return{type:t.type,className:m,selector:c,props:h,toString:()=>m,deferredInjector:s}};return d(h,{className:n,selector:c,[u]:t,toString:()=>(r.rules.styled.cache.has(n)||h(),n)})},F=e=>{let t="",r=[],n={},i=[];for(let[o,,,,a,s]of e)for(let e in""===t&&(t=o),r.push(o),i.push(...s),a){let t=a[e];(void 0===n[e]||"undefined"!==t||s.includes(t))&&(n[e]=t)}return[t,r,n,new Set(i)]},H=(e,t,r,n)=>{let i=[];r:for(let[o,a,s]of e){if(s)continue;let e,l=0,c=!1;for(e in o){let n=o[e],i=t[e];if(i!==n){if("object"!=typeof i||!i)continue r;{let e,t,o=0;for(let a in i){if(n===String(i[a])){if("@initial"!==a){let e=a.slice(1);(t=t||[]).push(e in r?r[e]:a.replace(/^@media ?/,"")),c=!0}l+=o,e=!0}++o}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue r}}}(i[l]=i[l]||[]).push([n?"cv":`${e}-${o[e]}`,a,c])}return i},z={},$=c(),q=(e,t)=>$(e,()=>(...r)=>{let n=()=>{for(let n of r){let r=I(n="object"==typeof n&&n||{});if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}
97T(n,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return d(n,{toString:n})}),W=c(),V=(e,t)=>W(e,()=>r=>{let n=`${S(e.prefix)}k-${I(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);let i=[];T(r,[],[],e,e=>i.push(e));let o=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(o)}return n};return d(i,{get name(){return i()},toString:i})}),G=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+S(this.prefix)+S(this.scale)+this.token}toString(){return this.computedValue}},K=c(),Z=(e,t)=>K(e,()=>(r,n)=>{n="object"==typeof r&&r||Object(n);let i=`.${r=(r="string"==typeof r?r:"")||`${S(e.prefix)}t-${I(n)}`}`,o={},a=[];for(let t in n)for(let r in o[t]={},n[t]){let i=`--${S(e.prefix)}${t}-${r}`,s=k(String(n[t][r]),e.prefix,t);o[t][r]=new G(r,s,t,e.prefix),a.push(`${i}:${s}`)}let s=()=>{if(a.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);let i=`${n===e.theme?":root,":""}.${r}{${a.join(";")}}`;t.rules.themed.apply(i)}return r};return{...o,get className(){return s()},selector:i,toString:s}}),Y=c(),J=c(),X=e=>{let t=(e=>{let t=!1,r=Y(e,e=>{t=!0;let r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},a={prefix:r,media:n,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...s},utils:"object"==typeof e.utils&&e.utils||{}},l=D(i),c={css:j(a,l),globalCss:q(a,l),keyframes:V(a,l),createTheme:Z(a,l),reset(){l.reset(),c.theme.toString()},theme:{},sheet:l,config:a,prefix:r,getCssText:l.toString,toString:l.toString};return String(c.theme=c.createTheme(o)),c});return t||r.reset(),r})(e);return t.styled=(({config:e,sheet:t})=>J(e,()=>{let r=j(e,t);return(...e)=>{let t=r(...e),i=t[u].type,o=n.forwardRef((e,r)=>{let o=e&&e.as||i,{props:a,deferredInjector:s}=t(e);return delete a.as,a.ref=r,s?n.createElement(n.Fragment,null,n.createElement(o,a),n.createElement(s,null)):n.createElement(o,a)});return o.className=t.className,o.displayName=`Styled.${i.displayName||i.name||i}`,o.selector=t.selector,o.toString=()=>t.selector,o[u]=t[u],o}}))(t),t}},87066:function(e,t,r){"use strict";let n,i,o,a;r.d(t,{Z:function(){return tY}});var s={};function l(e,t){return function(){return e.apply(t,arguments)}}r.r(s),r.d(s,{hasBrowserEnv:function(){return ej},hasStandardBrowserEnv:function(){return eB},hasStandardBrowserWebWorkerEnv:function(){return eU},origin:function(){return eF}});let{toString:c}=Object.prototype,{getPrototypeOf:u}=Object,d=(n=Object.create(null),e=>{let t=c.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),h=e=>(e=e.toLowerCase(),t=>d(t)===e),p=e=>t=>typeof t===e,{isArray:f}=Array,m=p("undefined");function g(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let y=h("ArrayBuffer");function v(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer)}let b=p("string"),_=p("function"),w=p("number"),S=e=>null!==e&&"object"==typeof e,k=e=>!0===e||!1===e,x=e=>{if("object"!==d(e))return!1;let t=u(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E=h("Date"),T=h("File"),A=h("Blob"),C=h("FileList"),P=e=>S(e)&&_(e.pipe),I=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=d(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},O=h("URLSearchParams"),[N,D,R,L]=["ReadableStream","Request","Response","Headers"].map(h),M=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function j(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),f(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}}function B(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,F=e=>!m(e)&&e!==U;function H(){let{caseless:e}=F(this)&&this||{},t={},r=(r,n)=>{let i=e&&B(t,n)||n;x(t[i])&&x(r)?t[i]=H(t[i],r):x(r)?t[i]=H({},r):f(r)?t[i]=r.slice():t[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],r);return t}let z=(e,t,r,{allOwnKeys:n}={})=>(j(t,(t,n)=>{r&&_(t)?e[n]=l(t,r):e[n]=t},{allOwnKeys:n}),e),$=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),q=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},W=(e,t,r,n)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},V=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},G=e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!w(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},K=(i="undefined"!=typeof Uint8Array&&u(Uint8Array),e=>i&&e instanceof i),Z=(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Y=(e,t)=>
97{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},J=h("HTMLFormElement"),X=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),Q=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ee=h("RegExp"),et=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};j(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},er=e=>{et(e,(t,r)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(_(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},en=(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(f(e)?e:String(e).split(t)),r},ei=()=>{},eo=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ea="abcdefghijklmnopqrstuvwxyz",es="0123456789",el={DIGIT:es,ALPHA:ea,ALPHA_DIGIT:ea+ea.toUpperCase()+es},ec=(e=16,t=el.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function eu(e){return!!(e&&_(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}let ed=e=>{let t=Array(10),r=(e,n)=>
97{if(S(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=f(e)?[]:{};return j(e,(e,t)=>{let o=r(e,n+1);m(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},eh=h("AsyncFunction"),ep=e=>e&&(S(e)||_(e))&&_(e.then)&&_(e.catch);var ef={isArray:f,isArrayBuffer:y,isBuffer:g,isFormData:I,isArrayBufferView:v,isString:b,isNumber:w,isBoolean:k,isObject:S,isPlainObject:x,isReadableStream:N,isRequest:D,isResponse:R,isHeaders:L,isUndefined:m,isDate:E,isFile:T,isBlob:A,isRegExp:ee,isFunction:_,isStream:P,isURLSearchParams:O,isTypedArray:K,isFileList:C,forEach:j,merge:H,extend:z,trim:M,stripBOM:$,inherits:q,toFlatObject:W,kindOf:d,kindOfTest:h,endsWith:V,toArray:G,forEachEntry:Z,matchAll:Y,isHTMLForm:J,hasOwnProperty:Q,hasOwnProp:Q,reduceDescriptors:et,freezeMethods:er,toObjectSet:en,toCamelCase:X,noop:ei,toFiniteNumber:eo,findKey:B,global:U,isContextDefined:F,ALPHABET:el,generateString:ec,isSpecCompliantForm:eu,toJSONObject:ed,isAsyncFn:eh,isThenable:ep};function em(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}ef.inherits(em,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ef.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let eg=em.prototype,ey={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ey[e]={value:e}}),Object.defineProperties(em,ey),Object.defineProperty(eg,"isAxiosError",{value:!0}),em.from=(e,t,r,n,i,o)=>{let a=Object.create(eg);return ef.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),em.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var ev=em,eb=null,e_=r(48764).Buffer;function ew(e){return ef.isPlainObject(e)||ef.isArray(e)}function eS(e){return ef.endsWith(e,"[]")?e.slice(0,-2):e}function ek(e,t,r){return e?e.concat(t).map(function(e,t){return e=eS(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function ex(e){return ef.isArray(e)&&!e.some(ew)}let eE=ef.toFlatObject(ef,{},null,function(e){return/^is[A-Z]/.test(e)});var eT=function(e,t,r){if(!ef.isObject(e))throw TypeError("target must be an object");t=t||new(eb||FormData);let n=(r=ef.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ef.isUndefined(t[e])})).metaTokens,i=r.visitor||c,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ef.isSpecCompliantForm(t);if(!ef.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ef.isDate(e))return e.toISOString();if(!s&&ef.isBlob(e))throw new ev("Blob is not supported. Use a Buffer instead.");return ef.isArrayBuffer(e)||ef.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):e_.from(e):e}function c(e,r,i){let s=e;if(e&&!i&&"object"==typeof e){if(ef.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ef.isArray(e)&&ex(e)||(ef.isFileList(e)||ef.endsWith(r,"[]"))&&(s=ef.toArray(e)))return r=eS(r),s.forEach(function(e,n){ef.isUndefined(e)||null===e||t.append(!0===a?ek([r],n,o):null===a?r:r+"[]",l(e))}),!1}return!!ew(e)||(t.append(ek(i,r,o),l(e)),!1)}let u=[],d=Object.assign(eE,{defaultVisitor:c,convertValue:l,isVisitable:ew});function h(e,r){if(!ef.isUndefined(e)){if(-1!==u.indexOf(e))throw Error("Circular reference detected in "+r.join("."));u.push(e),ef.forEach(e,function(e,n){!0===(!(ef.isUndefined(e)||null===e)&&i.call(t,e,ef.isString(n)?n.trim():n,r,d))&&h(e,r?r.concat(n):[n])}),u.pop()}}if(!ef.isObject(e))throw TypeError("data must be an object");return h(e),t};function eA(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eC(e,t){this._pairs=[],e&&eT(e,this,t)}let eP=eC.prototype;eP.append=function(e,t){this._pairs.push([e,t])},eP.toString=function(e){let t=e?function(t){return e.call(this,t,eA)}:eA;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var eI=eC;function eO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eN(e,t,r){let n;if(!t)return e;let i=r&&r.encode||eO,o=r&&r.serialize;if(n=o?o(t,r):ef.isURLSearchParams(t)?t.toString():new eI(t,r).toString(i)){let t=e.indexOf("#");
97-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}class eD{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ef.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eR=eD,eL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eM={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:eI,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let ej="undefined"!=typeof window&&"undefined"!=typeof document,eB=(o="undefined"!=typeof navigator&&navigator.product,ej&&0>["ReactNative","NativeScript","NS"].indexOf(o)),eU="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eF=ej&&window.location.href||"http://localhost";var eH={...s,...eM};function ez(e,t){return eT(e,new eH.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return eH.isNode&&ef.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function e$(e){return ef.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function eq(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}var eW=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=e.length;return(o=!o&&ef.isArray(n)?n.length:o,s)?ef.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&ef.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&ef.isArray(n[o])&&(n[o]=eq(n[o]))),!a}if(ef.isFormData(e)&&ef.isFunction(e.entries)){let r={};return ef.forEachEntry(e,(e,n)=>{t(e$(e),n,r,0)}),r}return null};function eV(e,t,r){if(ef.isString(e))try{return(t||JSON.parse)(e),ef.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}let eG={transitional:eL,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=ef.isObject(e);if(o&&ef.isHTMLForm(e)&&(e=new FormData(e)),ef.isFormData(e))return i?JSON.stringify(eW(e)):e;if(ef.isArrayBuffer(e)||ef.isBuffer(e)||ef.isStream(e)||ef.isFile(e)||ef.isBlob(e)||ef.isReadableStream(e))return e;if(ef.isArrayBufferView(e))return e.buffer;if(ef.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ez(e,this.formSerializer).toString();if((r=ef.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return eT(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),eV(e)):e}],transformResponse:[function(e){let t=this.transitional||eG.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ef.isResponse(e)||ef.isReadableStream(e))return e;if(e&&ef.isString(e)&&(r&&!this.responseType||n)){let r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw ev.from(e,ev.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eH.classes.FormData,Blob:eH.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ef.forEach(["delete","get","head","post","put","patch"],e=>{eG.headers[e]={}});var eK=eG;let eZ=ef.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eY=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&eZ[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let eJ=Symbol("internals");function eX(e){return e&&String(e).trim().toLowerCase()}function eQ(e){return!1===e||null==e?e:ef.isArray(e)?e.map(eQ):String(e)}function e0(e){let t;let r=Object.create(null),n=/([^\s,;
97=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}let e1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e2(e,t,r,n,i){if(ef.isFunction(n))return n.call(this,t,r);if(i&&(t=r),ef.isString(t)){if(ef.isString(n))return -1!==t.indexOf(n);if(ef.isRegExp(n))return n.test(t)}}function e4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function e3(e,t){let r=ef.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}class e6{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eX(t);if(!i)throw Error("header name must be a non-empty string");let o=ef.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eQ(e))}let o=(e,t)=>ef.forEach(e,(e,r)=>i(e,r,t));if(ef.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ef.isString(e)&&(e=e.trim())&&!e1(e))o(eY(e),t);else if(ef.isHeaders(e))for(let[t,n]of e.entries())i(n,t,r);else null!=e&&i(t,e,r);return this}get(e,t){if(e=eX(e)){let r=ef.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return e0(e);if(ef.isFunction(t))return t.call(this,e,r);if(ef.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eX(e)){let r=ef.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||e2(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eX(e)){let i=ef.findKey(r,e);i&&(!t||e2(r,r[i],i,t))&&(delete r[i],n=!0)}}return ef.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||e2(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return ef.forEach(this,(n,i)=>{let o=ef.findKey(r,i);if(o){t[o]=eQ(n),delete t[i];return}let a=e?e4(i):String(i).trim();a!==i&&delete t[i],t[a]=eQ(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ef.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ef.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eJ]=this[eJ]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eX(e);t[n]||(e3(r,e),t[n]=!0)}return ef.isArray(e)?e.forEach(n):n(e),this}}e6.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ef.reduceDescriptors(e6.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ef.freezeMethods(e6);var e5=e6;function e8(e,t){let r=this||eK,n=t||r,i=e5.from(n.headers),o=n.data;return ef.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function e7(e){return!!(e&&e.__CANCEL__)}function e9(e,t,r){ev.call(this,null==e?"canceled":e,ev.ERR_CANCELED,t,r),this.name="CanceledError"}ef.inherits(e9,ev,{__CANCEL__:!0});var te=e9;function tt(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ev("Request failed with status code "+r.status,[ev.ERR_BAD_REQUEST,ev.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function tr(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var tn=function(e,t){let r;let n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=i[a];r||(r=l),n[o]=s,i[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let h=c&&l-c;return h?Math.round(1e3*d/h):void 0}},ti=function(e,t){let r=0,n=1e3/t,i=null;return function(){let t=this===!0,o=Date.now();if(t||o-r>n)return i&&(clearTimeout(i),i=null),r=o,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,r=Date.now(),e.apply(null,arguments)),n-(o-r)))}},to=(e,t,r=3)=>{let n=0,i=tn(50,250);return ti(r=>{let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s),c=o<=a;n=o;let u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-o)/l:void 0,event:r,lengthComputable:null!=a};u[t?"download":"upload"]=!0,e(u)},r)},ta=eH.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=ef.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return function(){return!0}}(),ts=eH.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let a=[e+"="+encodeURIComponent(t)];ef.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),ef.isString(n)&&a.push("path="+n),ef.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function tl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tc(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tu(e,t){return e&&!tl(t)?tc(e,t):t}let td=e=>e instanceof e5?{...e}:e;function th(e,t){t=t||{};let r={};function n(e,t,r){return ef.isPlainObject(e)&&ef.isPlainObject(t)?ef.merge.call({caseless:r},e,t):ef.isPlainObject(t)?ef.merge({},t):ef.isArray(t)?t.slice():t}function i(e,t,r){return ef.isUndefined(t)?ef.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!ef.isUndefined(t))return n(void 0,t)}function a(e,t){return ef.isUndefined(t)?ef.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
97dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(td(e),td(t),!0)};return ef.forEach(Object.keys(Object.assign({},e,t)),function(n){let o=l[n]||i,a=o(e[n],t[n],n);ef.isUndefined(a)&&o!==s||(r[n]=a)}),r}var tp=e=>{let t;let r=th({},e),{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=r;if(r.headers=s=e5.from(s),r.url=eN(tu(r.baseURL,r.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ef.isFormData(n)){if(eH.hasStandardBrowserEnv||eH.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...r].join("; "))}}if(eH.hasStandardBrowserEnv&&(i&&ef.isFunction(i)&&(i=i(r)),i||!1!==i&&ta(r.url))){let e=o&&a&&ts.read(a);e&&s.set(o,e)}return r},tf="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n;let i=tp(e),o=i.data,a=e5.from(i.headers).normalize(),{responseType:s}=i;function l(){i.cancelToken&&i.cancelToken.unsubscribe(n),i.signal&&i.signal.removeEventListener("abort",n)}let c=new XMLHttpRequest;function u(){if(!c)return;let n=e5.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());tt(function(e){t(e),l()},function(e){r(e),l()},{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(r(new ev("Request aborted",ev.ECONNABORTED,i,c)),c=null)},c.onerror=function(){r(new ev("Network Error",ev.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",t=i.transitional||eL;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),r(new ev(e,t.clarifyTimeoutError?ev.ETIMEDOUT:ev.ECONNABORTED,i,c)),c=null},void 0===o&&a.setContentType(null),"setRequestHeader"in c&&ef.forEach(a.toJSON(),function(e,t){c.setRequestHeader(t,e)}),ef.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),s&&"json"!==s&&(c.responseType=i.responseType),"function"==typeof i.onDownloadProgress&&c.addEventListener("progress",to(i.onDownloadProgress,!0)),"function"==typeof i.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",to(i.onUploadProgress)),(i.cancelToken||i.signal)&&(n=t=>{c&&(r(!t||t.type?new te(null,e,c):t),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(n),i.signal&&(i.signal.aborted?n():i.signal.addEventListener("abort",n)));let d=tr(i.url);if(d&&-1===eH.protocols.indexOf(d)){r(new ev("Unsupported protocol "+d+":",ev.ERR_BAD_REQUEST,e));return}c.send(o||null)})},tm=(e,t)=>{let r,n=new AbortController,i=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof ev?t:new te(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{i(new ev(`timeout ${t} of ms exceeded`,ev.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",i));let{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]};let tg=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},ty=async function*(e,t,r){for await(let n of e)yield*tg(ArrayBuffer.isView(n)?n:await r(String(n)),t)},tv=(e,t,r,n,i)=>{let o=ty(e,t,i),a=0;return new ReadableStream({type:"bytes",async pull(e){let{done:t,value:i}=await o.next();if(t){e.close(),n();return}let s=i.byteLength;r&&r(a+=s),e.enqueue(new Uint8Array(i))},cancel:e=>(n(e),o.return())},{highWaterMark:2})},tb=(e,t)=>{let r=null!=e;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},t_="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,tw=t_&&"function"==typeof ReadableStream,tS=t_&&("function"==typeof TextEncoder?(a=new TextEncoder,e=>a.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tk=tw&&(()=>
97{let e=!1,t=new Request(eH.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),tx=65536,tE=tw&&!!(()=>{try{return ef.isReadableStream(new Response("").body)}catch(e){}})(),tT={stream:tE&&(e=>e.body)};t_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{tT[t]||(tT[t]=ef.isFunction(e[t])?e=>e[t]():(e,r)=>{throw new ev(`Response type '${t}' is not supported`,ev.ERR_NOT_SUPPORT,r)})})})(new Response);let tA=async e=>null==e?0:ef.isBlob(e)?e.size:ef.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:ef.isArrayBufferView(e)?e.byteLength:(ef.isURLSearchParams(e)&&(e+=""),ef.isString(e))?(await tS(e)).byteLength:void 0,tC=async(e,t)=>{let r=ef.toFiniteNumber(e.getContentLength());return null==r?tA(t):r},tP={http:eb,xhr:tf,fetch:t_&&(async e=>{let t,r,n,{url:i,method:o,data:a,signal:s,cancelToken:l,timeout:c,onDownloadProgress:u,onUploadProgress:d,responseType:h,headers:p,withCredentials:f="same-origin",fetchOptions:m}=tp(e);h=h?(h+"").toLowerCase():"text";let[g,y]=s||l||c?tm([s,l],c):[],v=()=>{t||setTimeout(()=>{g&&g.unsubscribe()}),t=!0};try{if(d&&tk&&"get"!==o&&"head"!==o&&0!==(n=await tC(p,a))){let e,t=new Request(i,{method:"POST",body:a,duplex:"half"});ef.isFormData(a)&&(e=t.headers.get("content-type"))&&p.setContentType(e),t.body&&(a=tv(t.body,tx,tb(n,to(d)),null,tS))}ef.isString(f)||(f=f?"cors":"omit"),r=new Request(i,{...m,signal:g,method:o.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",withCredentials:f});let t=await fetch(r),s=tE&&("stream"===h||"response"===h);if(tE&&(u||s)){let e={};["status","statusText","headers"].forEach(r=>{e[r]=t[r]});let r=ef.toFiniteNumber(t.headers.get("content-length"));t=new Response(tv(t.body,tx,u&&tb(r,to(u,!0)),s&&v,tS),e)}h=h||"text";let l=await tT[ef.findKey(tT,h)||"text"](t,e);return s||v(),y&&y(),await new Promise((n,i)=>{tt(n,i,{data:l,headers:e5.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:r})})}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ev("Network Error",ev.ERR_NETWORK,e,r),{cause:t.cause||t});throw ev.from(t,t&&t.code,e,r)}})};ef.forEach(tP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tI=e=>`- ${e}`,tO=e=>ef.isFunction(e)||null===e||!1===e;var tN=e=>{let t,r;let{length:n}=e=ef.isArray(e)?e:[e],i={};for(let o=0;o<n;o++){let n;if(r=t=e[o],!tO(t)&&void 0===(r=tP[(n=String(t)).toLowerCase()]))throw new ev(`Unknown adapter '${n}'`);if(r)break;i[n||"#"+o]=r}if(!r){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ev("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(tI).join("\n"):" "+tI(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function tD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new te(null,e)}function tR(e){return tD(e),e.headers=e5.from(e.headers),e.data=e8.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tN(e.adapter||eK.adapter)(e).then(function(t){return tD(e),t.data=e8.call(e,e.transformResponse,t),t.headers=e5.from(t.headers),t},function(t){return!e7(t)&&(tD(e),t&&t.response&&(t.response.data=e8.call(e,e.transformResponse,t.response),t.response.headers=e5.from(t.response.headers))),Promise.reject(t)})}let tL="1.7.2",tM={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tM[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tj={};tM.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tL+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new ev(n(i," has been removed"+(t?" in "+t:"")),ev.ERR_DEPRECATED);return t&&!tj[i]&&(tj[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var tB={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ev("options must be an object",ev.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new ev("option "+o+" must be "+r,ev.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ev("Unknown option "+o,ev.ERR_BAD_OPTION)}},validators:tM};let tU=tB.validators;class tF{constructor(e){this.defaults=e,this.interceptors={request:new eR,response:new eR}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=th(this.defaults,t);void 0!==i&&tB.assertOptions(i,{silentJSONParsing:tU.transitional(tU.boolean),forcedJSONParsing:tU.transitional(tU.boolean),clarifyTimeoutError:tU.transitional(tU.boolean)}
97,!1),null!=o&&(ef.isFunction(o)?t.paramsSerializer={serialize:o}:tB.assertOptions(o,{encode:tU.function,serialize:tU.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&ef.merge(a.common,a[t.method]);a&&ef.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=e5.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d=0;if(!c){let e=[tR.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,u),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let h=t;for(d=0;d<n;){let e=l[d++],t=l[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{r=tR.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,n=u.length;d<n;)r=r.then(u[d++],u[d++]);return r}getUri(e){return eN(tu((e=th(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ef.forEach(["delete","get","head","options"],function(e){tF.prototype[e]=function(t,r){return this.request(th(r||{},{method:e,url:t,data:(r||{}).data}))}}),ef.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(th(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tF.prototype[e]=t(),tF.prototype[e+"Form"]=t(!0)});var tH=tF;class tz{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new te(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new tz(function(t){e=t}),cancel:e}}}var t$=tz;function tq(e){return function(t){return e.apply(null,t)}}function tW(e){return ef.isObject(e)&&!0===e.isAxiosError}let tV={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
97alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tV).forEach(([e,t])=>{tV[t]=e});var tG=tV;function tK(e){let t=new tH(e),r=l(tH.prototype.request,t);return ef.extend(r,tH.prototype,t,{allOwnKeys:!0}),ef.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return tK(th(e,t))},r}let tZ=tK(eK);tZ.Axios=tH,tZ.CanceledError=te,tZ.CancelToken=t$,tZ.isCancel=e7,tZ.VERSION=tL,tZ.toFormData=eT,tZ.AxiosError=ev,tZ.Cancel=tZ.CanceledError,tZ.all=function(e){return Promise.all(e)},tZ.spread=tq,tZ.isAxiosError=tW,tZ.mergeConfig=th,tZ.AxiosHeaders=e5,tZ.formToJSON=e=>eW(ef.isHTMLForm(e)?new FormData(e):e),tZ.getAdapter=tN,tZ.HttpStatusCode=tG,tZ.default=tZ;var tY=tZ},90512:function(e,t,r){"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r)}return i}function i(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i}t.Z=i},45595:function(e,t,r){"use strict";r.r(t),r.d(t,{CompactEncrypt:function(){return tA},CompactSign:function(){return tI},EmbeddedJWK:function(){return tU},EncryptJWT:function(){return tL},FlattenedEncrypt:function(){return to},FlattenedSign:function(){return tP},GeneralEncrypt:function(){return ts},GeneralSign:function(){return tN},SignJWT:function(){return tR},UnsecuredJWT:function(){return tJ},base64url:function(){return i},calculateJwkThumbprint:function(){return tj},calculateJwkThumbprintUri:function(){return tB},compactDecrypt:function(){return e8},compactVerify:function(){return th},createLocalJWKSet:function(){return tV},createRemoteJWKSet:function(){return tY},cryptoRuntime:function(){return t8},decodeJwt:function(){return t1},decodeProtectedHeader:function(){return t0},errors:function(){return n},exportJWK:function(){return tr},exportPKCS8:function(){return tt},exportSPKI:function(){return te},flattenedDecrypt:function(){return e5},flattenedVerify:function(){return td},generalDecrypt:function(){return e7},generalVerify:function(){return tp},generateKeyPair:function(){return t6},generateSecret:function(){return t5},importJWK:function(){return eK},importPKCS8:function(){return eG},importSPKI:function(){return eW},importX509:function(){return eV},jwtDecrypt:function(){return tT},jwtVerify:function(){return tE}});var n={};r.r(n),r.d(n,{JOSEAlgNotAllowed:function(){return E},JOSEError:function(){return S},JOSENotSupported:function(){return T},JWEDecompressionFailed:function(){return C},JWEDecryptionFailed:function(){return A},JWEInvalid:function(){return P},JWKInvalid:function(){return N},JWKSInvalid:function(){return D},JWKSMultipleMatchingKeys:function(){return L},JWKSNoMatchingKey:function(){return R},JWKSTimeout:function(){return M},JWSInvalid:function(){return I},JWSSignatureVerificationFailed:function(){return j},JWTClaimValidationFailed:function(){return k},JWTExpired:function(){return x},JWTInvalid:function(){return O}});var i={};r.r(i),r.d(i,{decode:function(){return tQ},encode:function(){return tX}});var o=crypto;let a=e=>e instanceof CryptoKey;var s=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await o.subtle.digest(r,t))};let l=new TextEncoder,c=new TextDecoder,u=4294967296;function d(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;
97return e.forEach(e=>{t.set(e,r),r+=e.length}),t}function h(e,t){return d(l.encode(e),new Uint8Array([0]),t)}function p(e,t,r){if(t<0||t>=u)throw RangeError(`value must be >= 0 and <= ${u-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function f(e){let t=Math.floor(e/u),r=e%u,n=new Uint8Array(8);return p(n,t,0),p(n,r,4),n}function m(e){let t=new Uint8Array(4);return p(t,e),t}function g(e){return d(m(e.length),e)}async function y(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(m(t+1)),n.set(e,4),n.set(r,4+e.length),i.set(await s("sha256",n),32*t)}return i.slice(0,t>>3)}let v=e=>{let t=e;"string"==typeof t&&(t=l.encode(t));let r=32768,n=[];for(let e=0;e<t.length;e+=r)n.push(String.fromCharCode.apply(null,t.subarray(e,e+r)));return btoa(n.join(""))},b=e=>v(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),_=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},w=e=>{let t=e;t instanceof Uint8Array&&(t=c.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return _(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}};class S extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class k extends S{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}class x extends S{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}class E extends S{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class T extends S{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class A extends S{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class C extends S{constructor(){super(...arguments),this.code="ERR_JWE_DECOMPRESSION_FAILED",this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}class P extends S{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class I extends S{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class O extends S{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class N extends S{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}class D extends S{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}class R extends S{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}class L extends S{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}class M extends S{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}class j extends S{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}var B=o.getRandomValues.bind(o);function U(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new T(`Unsupported JWE Algorithm: ${e}`)}}var F=e=>B(new Uint8Array(U(e)>>3)),H=(e,t)=>{if(t.length<<3!==U(e))throw new P("Invalid Initialization Vector length")},z=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new P(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},$=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return 0===n};function q(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function W(e,t){return e.name===t}function V(e){return parseInt(e.name.slice(4),10)}function G(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}function K(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}
97function Z(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!W(e.algorithm,"HMAC"))throw q("HMAC");let r=parseInt(t.slice(2),10);if(V(e.algorithm.hash)!==r)throw q(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!W(e.algorithm,"RSASSA-PKCS1-v1_5"))throw q("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(V(e.algorithm.hash)!==r)throw q(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!W(e.algorithm,"RSA-PSS"))throw q("RSA-PSS");let r=parseInt(t.slice(2),10);if(V(e.algorithm.hash)!==r)throw q(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw q("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!W(e.algorithm,"ECDSA"))throw q("ECDSA");let r=G(t);if(e.algorithm.namedCurve!==r)throw q(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}K(e,r)}function Y(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!W(e.algorithm,"AES-GCM"))throw q("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw q(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!W(e.algorithm,"AES-KW"))throw q("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw q(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw q("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!W(e.algorithm,"PBKDF2"))throw q("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!W(e.algorithm,"RSA-OAEP"))throw q("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(V(e.algorithm.hash)!==r)throw q(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}K(e,r)}function J(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var X=(e,...t)=>J("Key must be ",e,...t);function Q(e,t,...r){return J(`Key for the ${e} algorithm must be `,t,...r)}var ee=e=>a(e);let et=["CryptoKey"];async function er(e,t,r,n,i,a){let s,l;if(!(t instanceof Uint8Array))throw TypeError(X(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),u=await o.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),h=await o.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),p=d(a,n,r,f(a.length<<3)),m=new Uint8Array((await o.subtle.sign("HMAC",h,p)).slice(0,c>>3));try{s=$(i,m)}catch(e){}if(!s)throw new A;try{l=new Uint8Array(await o.subtle.decrypt({iv:n,name:"AES-CBC"},u,r))}catch(e){}if(!l)throw new A;return l}async function en(e,t,r,n,i,a){let s;t instanceof Uint8Array?s=await o.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(Y(t,e,"decrypt"),s=t);try{return new Uint8Array(await o.subtle.decrypt({additionalData:a,iv:n,name:"AES-GCM",tagLength:128},s,d(r,i)))}catch(e){throw new A}}var ei=async(e,t,r,n,i,o)=>{if(!a(t)&&!(t instanceof Uint8Array))throw TypeError(X(t,...et,"Uint8Array"));switch(H(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&z(t,parseInt(e.slice(-3),10)),er(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&z(t,parseInt(e.slice(1,4),10)),en(e,t,r,n,i,o);default:throw new T("Unsupported JWE Content Encryption Algorithm")}};let eo=async()=>{throw new T('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.')},ea=async()=>{throw new T('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.')};var es=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function el(e){return"object"==typeof e&&null!==e}function ec(e){if(!el(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}
97var eu=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function ed(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function eh(e,t,r){if(a(e))return Y(e,t,r),e;if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(X(e,...et,"Uint8Array"))}let ep=async(e,t,r)=>{let n=await eh(t,e,"wrapKey");ed(n,e);let i=await o.subtle.importKey("raw",r,...eu);return new Uint8Array(await o.subtle.wrapKey("raw",i,n,"AES-KW"))},ef=async(e,t,r)=>{let n=await eh(t,e,"unwrapKey");ed(n,e);let i=await o.subtle.unwrapKey("raw",r,n,"AES-KW",...eu);return new Uint8Array(await o.subtle.exportKey("raw",i))};async function em(e,t,r,n,i=new Uint8Array(0),s=new Uint8Array(0)){let c;if(!a(e))throw TypeError(X(e,...et));if(Y(e,"ECDH"),!a(t))throw TypeError(X(t,...et));Y(t,"ECDH","deriveBits");let u=d(g(l.encode(r)),g(i),g(s),m(n));return c="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,y(new Uint8Array(await o.subtle.deriveBits({name:e.algorithm.name,public:e},t,c)),n,u)}async function eg(e){if(!a(e))throw TypeError(X(e,...et));return o.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function ey(e){if(!a(e))throw TypeError(X(e,...et));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}function ev(e){if(!(e instanceof Uint8Array)||e.length<8)throw new P("PBES2 Salt Input must be 8 or more octets")}function eb(e,t){if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(a(e))return Y(e,t,"deriveBits","deriveKey"),e;throw TypeError(X(e,...et,"Uint8Array"))}async function e_(e,t,r,n){ev(e);let i=h(t,e),a=parseInt(t.slice(13,16),10),s={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},l={length:a,name:"AES-KW"},c=await eb(n,t);if(c.usages.includes("deriveBits"))return new Uint8Array(await o.subtle.deriveBits(s,c,a));if(c.usages.includes("deriveKey"))return o.subtle.deriveKey(s,c,l,!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let ew=async(e,t,r,n=2048,i=B(new Uint8Array(16)))=>{let o=await e_(i,e,n,t);return{encryptedKey:await ep(e.slice(-6),o,r),p2c:n,p2s:b(i)}},eS=async(e,t,r,n,i)=>{let o=await e_(i,e,n,t);return ef(e.slice(-6),o,r)};function ek(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new T(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var ex=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};let eE=async(e,t,r)=>{if(!a(t))throw TypeError(X(t,...et));if(Y(t,e,"encrypt","wrapKey"),ex(e,t),t.usages.includes("encrypt"))return new Uint8Array(await o.subtle.encrypt(ek(e),t,r));if(t.usages.includes("wrapKey")){let n=await o.subtle.importKey("raw",r,...eu);return new Uint8Array(await o.subtle.wrapKey("raw",n,t,ek(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},eT=async(e,t,r)=>{if(!a(t))throw TypeError(X(t,...et));if(Y(t,e,"decrypt","unwrapKey"),ex(e,t),t.usages.includes("decrypt"))return new Uint8Array(await o.subtle.decrypt(ek(e),t,r));if(t.usages.includes("unwrapKey")){let n=await o.subtle.unwrapKey("raw",r,t,ek(e),...eu);return new Uint8Array(await o.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eA(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new T(`Unsupported JWE Algorithm: ${e}`)}}var eC=e=>B(new Uint8Array(eA(e)>>3)),eP=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}-----
98${r}
99-----END ${t}-----`};let eI=async(e,t,r)=>{if(!a(r))throw TypeError(X(r,...et));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return eP(v(new Uint8Array(await o.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},eO=e=>eI("public","spki",e),eN=e=>eI("private","pkcs8",e),eD=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||eD(e,t,n+1))},eR=e=>{switch(!0){case eD(e,[42,134,72,206,61,3,1,7]):return"P-256";case eD(e,[43,129,4,0,34]):return"P-384";case eD(e,[43,129,4,0,35]):return"P-521";case eD(e,[43,101,110]):return"X25519";case eD(e,[43,101,111]):return"X448";case eD(e,[43,101,112]):return"Ed25519";case eD(e,[43,101,113]):return"Ed448";default:throw new T("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eL=async(e,t,r,n,i)=>{var a;let s,l;let c=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),u="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":s={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},l=u?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":s={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},l=u?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},l=u?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":s={name:"ECDSA",namedCurve:"P-256"},l=u?["verify"]:["sign"];break;case"ES384":s={name:"ECDSA",namedCurve:"P-384"},l=u?["verify"]:["sign"];break;case"ES512":s={name:"ECDSA",namedCurve:"P-521"},l=u?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=eR(c);s=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},l=u?[]:["deriveBits"];break}
99case"EdDSA":s={name:eR(c)},l=u?["verify"]:["sign"];break;default:throw new T('Invalid or unsupported "alg" (Algorithm) value')}return o.subtle.importKey(t,c,s,null!==(a=null==i?void 0:i.extractable)&&void 0!==a&&a,l)},eM=(e,t,r)=>eL(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),ej=(e,t,r)=>eL(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function eB(e){let t=[],r=0;for(;r<e.length;){let n=eU(e.subarray(r));t.push(n),r+=n.byteLength}return t}function eU(e){let t=0,r=31&e[0];if(t++,31===r){for(r=0;e[t]>=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i<r;i++)n=256*n+e[t],t++}let i=t+n;return{byteLength:i,contents:e.subarray(t,i),raw:e.subarray(0,i)}}function eF(e){let t=eB(eB(eU(e).contents)[0].contents);return v(t[160===t[0].raw[0]?6:5].raw)}function eH(e){return eP(eF(_(e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""))),"PUBLIC KEY")}let ez=(e,t,r)=>{let n;try{n=eH(e)}catch(e){throw TypeError("Failed to parse the X.509 certificate",{cause:e})}return ej(n,t,r)};function e$(e){let t,r;switch(e.kty){case"oct":switch(e.alg){case"HS256":case"HS384":case"HS512":t={name:"HMAC",hash:`SHA-${e.alg.slice(-3)}`},r=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":throw new T(`${e.alg} keys cannot be imported as CryptoKey instances`);case"A128GCM":case"A192GCM":case"A256GCM":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":t={name:"AES-GCM"},r=["encrypt","decrypt"];break;case"A128KW":case"A192KW":case"A256KW":t={name:"AES-KW"},r=["wrapKey","unwrapKey"];break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":t={name:"PBKDF2"},r=["deriveBits"];break;default:throw new T('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new T('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new T('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new T('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new T('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var eq=async e=>{var t,r;if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:n,keyUsages:i}=e$(e),a=[n,null!==(t=e.ext)&&void 0!==t&&t,null!==(r=e.key_ops)&&void 0!==r?r:i];if("PBKDF2"===n.name)return o.subtle.importKey("raw",w(e.k),...a);let s={...e};return delete s.alg,delete s.use,o.subtle.importKey("jwk",s,...a)};async function eW(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return ej(e,t,r)}async function eV(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return ez(e,t,r)}async function eG(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return eM(e,t,r)}async function eK(e,t,r){var n;if(!ec(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');
99if(null!=r||(r=!0!==e.ext),r)return eq({...e,alg:t,ext:null!==(n=e.ext)&&void 0!==n&&n});return w(e.k);case"RSA":if(void 0!==e.oth)throw new T('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eq({...e,alg:t});default:throw new T('Unsupported "kty" (Key Type) Parameter value')}}let eZ=(e,t)=>{if(!(t instanceof Uint8Array)){if(!ee(t))throw TypeError(Q(e,t,...et,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${et.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},eY=(e,t,r)=>{if(!ee(t))throw TypeError(Q(e,t,...et));if("secret"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)};var eJ=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?eZ(e,t):eY(e,t,r)};async function eX(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(X(r,"Uint8Array"));let a=parseInt(e.slice(1,4),10),s=await o.subtle.importKey("raw",r.subarray(a>>3),"AES-CBC",!1,["encrypt"]),l=await o.subtle.importKey("raw",r.subarray(0,a>>3),{hash:`SHA-${a<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await o.subtle.encrypt({iv:n,name:"AES-CBC"},s,t)),u=d(i,n,c,f(i.length<<3));return{ciphertext:c,tag:new Uint8Array((await o.subtle.sign("HMAC",l,u)).slice(0,a>>3))}}async function eQ(e,t,r,n,i){let a;r instanceof Uint8Array?a=await o.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(Y(r,e,"encrypt"),a=r);let s=new Uint8Array(await o.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},a,t)),l=s.slice(-16);return{ciphertext:s.slice(0,-16),tag:l}}var e0=async(e,t,r,n,i)=>{if(!a(r)&&!(r instanceof Uint8Array))throw TypeError(X(r,...et,"Uint8Array"));switch(H(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&z(r,parseInt(e.slice(-3),10)),eX(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&z(r,parseInt(e.slice(1,4),10)),eQ(e,t,r,n,i);default:throw new T("Unsupported JWE Content Encryption Algorithm")}};async function e1(e,t,r,n){let i=e.slice(0,7);n||(n=F(i));let{ciphertext:o,tag:a}=await e0(i,r,t,n,new Uint8Array(0));return{encryptedKey:o,iv:b(n),tag:b(a)}}async function e2(e,t,r,n,i){return ei(e.slice(0,7),t,r,n,i,new Uint8Array(0))}var e4=async function(e,t,r,n,i){switch(eJ(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new P("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new P("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!ec(n.epk))throw new P('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!ey(t))throw new T("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await eK(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new P('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{i=w(n.apu)}catch(e){throw new P("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new P('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=w(n.apv)}catch(e){throw new P("Failed to base64url decode the apv")}}let s=await em(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eA(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new P("JWE Encrypted Key missing");return ef(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new P("JWE Encrypted Key missing");return eT(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new P("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new P('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=(null==i?void 0:i.maxPBES2Count)||1e4;if(n.p2c>a)throw new P('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new P('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=w(n.p2s)}catch(e){throw new P("Failed to base64url decode the p2s")}return eS(e,t,r,n.p2c,o)}
99case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new P("JWE Encrypted Key missing");return ef(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,o;if(void 0===r)throw new P("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new P('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new P('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=w(n.iv)}catch(e){throw new P("Failed to base64url decode the iv")}try{o=w(n.tag)}catch(e){throw new P("Failed to base64url decode the tag")}return e2(e,t,r,i,o)}default:throw new T('Invalid or unsupported "alg" (JWE Algorithm) header value')}},e3=function(e,t,r,n,i){let o;if(void 0!==i.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new T(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)},e6=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function e5(e,t,r){var n;let i,o,a,s,u,h,p;if(!ec(e))throw new P("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new P("JOSE Header missing");if("string"!=typeof e.iv)throw new P("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new P("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new P("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new P("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new P("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new P("JWE AAD incorrect type");if(void 0!==e.header&&!ec(e.header))throw new P("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!ec(e.unprotected))throw new P("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=w(e.protected);i=JSON.parse(c.decode(t))}catch(e){throw new P("JWE Protected Header is invalid")}if(!es(i,e.header,e.unprotected))throw new P("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let f={...i,...e.header,...e.unprotected};if(e3(P,new Map,null==r?void 0:r.crit,i,f),void 0!==f.zip){if(!i||!i.zip)throw new P('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==f.zip)throw new T('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:m,enc:g}=f;if("string"!=typeof m||!m)throw new P("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof g||!g)throw new P("missing JWE Encryption Algorithm (enc) in JWE Header");let y=r&&e6("keyManagementAlgorithms",r.keyManagementAlgorithms),v=r&&e6("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(y&&!y.has(m))throw new E('"alg" (Algorithm) Header Parameter not allowed');if(v&&!v.has(g))throw new E('"enc" (Encryption Algorithm) Header Parameter not allowed');if(void 0!==e.encrypted_key)try{o=w(e.encrypted_key)}catch(e){throw new P("Failed to base64url decode the encrypted_key")}let b=!1;"function"==typeof t&&(t=await t(i,e),b=!0);try{a=await e4(m,t,o,f,r)}catch(e){if(e instanceof TypeError||e instanceof P||e instanceof T)throw e;a=eC(g)}try{s=w(e.iv)}catch(e){throw new P("Failed to base64url decode the iv")}try{u=w(e.tag)}catch(e){throw new P("Failed to base64url decode the tag")}let _=l.encode(null!==(n=e.protected)&&void 0!==n?n:"");h=void 0!==e.aad?d(_,l.encode("."),l.encode(e.aad)):_;try{p=w(e.ciphertext)}catch(e){throw new P("Failed to base64url decode the ciphertext")}let S=await ei(g,a,p,s,u,h);"DEF"===f.zip&&(S=await ((null==r?void 0:r.inflateRaw)||eo)(S));let k={plaintext:S};if(void 0!==e.protected&&(k.protectedHeader=i),void 0!==e.aad)try{k.additionalAuthenticatedData=w(e.aad)}catch(e){throw new P("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(k.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(k.unprotectedHeader=e.header),b)?{...k,key:t}:k}async function e8(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new P("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:l}=e.split(".");if(5!==l)throw new P("Invalid Compact JWE");
99let u=await e5({ciphertext:a,iv:o||void 0,protected:n||void 0,tag:s||void 0,encrypted_key:i||void 0},t,r),d={plaintext:u.plaintext,protectedHeader:u.protectedHeader};return"function"==typeof t?{...d,key:u.key}:d}async function e7(e,t,r){if(!ec(e))throw new P("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(ec))throw new P("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new P("JWE Recipients has no members");for(let n of e.recipients)try{return await e5({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch(e){}throw new A}var e9=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:b(e)};if(!a(e))throw TypeError(X(e,...et,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...s}=await o.subtle.exportKey("jwk",e);return s};async function te(e){return eO(e)}async function tt(e){return eN(e)}async function tr(e){return e9(e)}var tn=async function(e,t,r,n,i={}){let o,a,s;switch(eJ(e,r,"encrypt"),e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ey(r))throw new T("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:l,apv:c}=i,{epk:u}=i;u||(u=(await eg(r)).privateKey);let{x:d,y:h,crv:p,kty:f}=await tr(u),m=await em(r,u,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eA(t):parseInt(e.slice(-5,-2),10),l,c);if(a={epk:{x:d,crv:p,kty:f}},"EC"===f&&(a.epk.y=h),l&&(a.apu=b(l)),c&&(a.apv=b(c)),"ECDH-ES"===e){s=m;break}s=n||eC(t);let g=e.slice(-6);o=await ep(g,m,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||eC(t),o=await eE(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eC(t);let{p2c:l,p2s:c}=i;({encryptedKey:o,...a}=await ew(e,r,s,l,c));break}case"A128KW":case"A192KW":case"A256KW":s=n||eC(t),o=await ep(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eC(t);let{iv:l}=i;({encryptedKey:o,...a}=await e1(e,r,s,l));break}default:throw new T('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}};let ti=Symbol();class to{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a,s,u;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new P("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!es(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new P("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let h={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(e3(P,new Map,null==t?void 0:t.crit,this._protectedHeader,h),void 0!==h.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new P('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==h.zip)throw new T('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:p,enc:f}=h;if("string"!=typeof p||!p)throw new P('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof f||!f)throw new P('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===p){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===p&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let i;({cek:n,encryptedKey:r,parameters:i}=await tn(p,f,e,this._cek,this._keyManagementParameters)),i&&(t&&ti in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}if(this._iv||(this._iv=F(f)),o=this._protectedHeader?l.encode(b(JSON.stringify(this._protectedHeader))):l.encode(""),this._aad?(a=b(this._aad),i=d(o,l.encode("."),l.encode(a))):i=o,"DEF"===h.zip){let e=await ((null==t?void 0:t.deflateRaw)||ea)(this._plaintext);({ciphertext:s,tag:u}
99=await e0(f,e,n,this._iv,i))}else({ciphertext:s,tag:u}=await e0(f,this._plaintext,n,this._iv,i));let m={ciphertext:b(s),iv:b(this._iv),tag:b(u)};return r&&(m.encrypted_key=b(r)),a&&(m.aad=a),this._protectedHeader&&(m.protected=c.decode(o)),this._sharedUnprotectedHeader&&(m.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(m.header=this._unprotectedHeader),m}}class ta{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class ts{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new ta(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,n;let i;if(!this._recipients.length)throw new P("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new to(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e<this._recipients.length;e++){let t=this._recipients[e];if(!es(this._protectedHeader,this._unprotectedHeader,t.unprotectedHeader))throw new P("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let r={...this._protectedHeader,...this._unprotectedHeader,...t.unprotectedHeader},{alg:n}=r;if("string"!=typeof n||!n)throw new P('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===n||"ECDH-ES"===n)throw new P('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof r.enc||!r.enc)throw new P('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(i){if(i!==r.enc)throw new P('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else i=r.enc;
99if(e3(P,new Map,t.options.crit,this._protectedHeader,r),void 0!==r.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new P('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let o=eC(i),a={ciphertext:"",iv:"",recipients:[],tag:""};for(let s=0;s<this._recipients.length;s++){let l=this._recipients[s],c={};a.recipients.push(c);let u=({...this._protectedHeader,...this._unprotectedHeader,...l.unprotectedHeader}).alg.startsWith("PBES2")?2048+s:void 0;if(0===s){let t=await new to(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(o).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(l.unprotectedHeader).setKeyManagementParameters({p2c:u}).encrypt(l.key,{...l.options,...e,[ti]:!0});a.ciphertext=t.ciphertext,a.iv=t.iv,a.tag=t.tag,t.aad&&(a.aad=t.aad),t.protected&&(a.protected=t.protected),t.unprotected&&(a.unprotected=t.unprotected),c.encrypted_key=t.encrypted_key,t.header&&(c.header=t.header);continue}let{encryptedKey:d,parameters:h}=await tn((null===(t=l.unprotectedHeader)||void 0===t?void 0:t.alg)||(null===(r=this._protectedHeader)||void 0===r?void 0:r.alg)||(null===(n=this._unprotectedHeader)||void 0===n?void 0:n.alg),i,l.key,o,{p2c:u});c.encrypted_key=b(d),(l.unprotectedHeader||h)&&(c.header={...l.unprotectedHeader,...h})}return a}}function tl(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new T(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}function tc(e,t,r){if(a(t))return Z(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(X(t,...et));return o.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(X(t,...et,"Uint8Array"))}var tu=async(e,t,r,n)=>{let i=await tc(e,t,"verify");ex(e,i);let a=tl(e,i.algorithm);try{return await o.subtle.verify(a,i,r,n)}catch(e){return!1}};async function td(e,t,r){var n;let i,o;if(!ec(e))throw new I("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new I('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new I("JWS Protected Header incorrect type");if(void 0===e.payload)throw new I("JWS Payload missing");if("string"!=typeof e.signature)throw new I("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ec(e.header))throw new I("JWS Unprotected Header incorrect type");let a={};if(e.protected)try{let t=w(e.protected);a=JSON.parse(c.decode(t))}catch(e){throw new I("JWS Protected Header is invalid")}if(!es(a,e.header))throw new I("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let s={...a,...e.header},u=e3(I,new Map([["b64",!0]]),null==r?void 0:r.crit,a,s),h=!0;if(u.has("b64")&&"boolean"!=typeof(h=a.b64))throw new I('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:p}=s;if("string"!=typeof p||!p)throw new I('JWS "alg" (Algorithm) Header Parameter missing or invalid');let f=r&&e6("algorithms",r.algorithms);if(f&&!f.has(p))throw new E('"alg" (Algorithm) Header Parameter not allowed');if(h){if("string"!=typeof e.payload)throw new I("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new I("JWS Payload must be a string or an Uint8Array instance");let m=!1;"function"==typeof t&&(t=await t(a,e),m=!0),eJ(p,t,"verify");let g=d(l.encode(null!==(n=e.protected)&&void 0!==n?n:""),l.encode("."),"string"==typeof e.payload?l.encode(e.payload):e.payload);try{i=w(e.signature)}catch(e){throw new I("Failed to base64url decode the signature")}if(!await tu(p,t,i,g))throw new j;if(h)try{o=w(e.payload)}catch(e){throw new I("Failed to base64url decode the payload")}else o="string"==typeof e.payload?l.encode(e.payload):e.payload;let y={payload:o};return(void 0!==e.protected&&(y.protectedHeader=a),void 0!==e.header&&(y.unprotectedHeader=e.header),m)?{...y,key:t}:y}async function th(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new I("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new I("Invalid Compact JWS");let s=await td({payload:i,protected:n,signature:o},t,r),l={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...l,key:s.key}:l}
99async function tp(e,t,r){if(!ec(e))throw new I("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(ec))throw new I("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await td({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch(e){}throw new j}var tf=e=>Math.floor(e.getTime()/1e3);let tm=60,tg=3600,ty=86400,tv=604800,tb=31557600,t_=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;var tw=e=>{let t=t_.exec(e);if(!t)throw TypeError("Invalid time period format");let r=parseFloat(t[1]);switch(t[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(r*tm);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(r*tg);case"day":case"days":case"d":return Math.round(r*ty);case"week":case"weeks":case"w":return Math.round(r*tv);default:return Math.round(r*tb)}};let tS=e=>e.toLowerCase().replace(/^application\//,""),tk=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));var tx=(e,t,r={})=>{let n,i;let{typ:o}=r;if(o&&("string"!=typeof e.typ||tS(e.typ)!==tS(o)))throw new k('unexpected "typ" JWT header value',"typ","check_failed");try{n=JSON.parse(c.decode(t))}catch(e){}if(!ec(n))throw new O("JWT Claims Set must be a top-level JSON object");let{requiredClaims:a=[],issuer:s,subject:l,audience:u,maxTokenAge:d}=r;for(let e of(void 0!==d&&a.push("iat"),void 0!==u&&a.push("aud"),void 0!==l&&a.push("sub"),void 0!==s&&a.push("iss"),new Set(a.reverse())))if(!(e in n))throw new k(`missing required "${e}" claim`,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new k('unexpected "iss" claim value',"iss","check_failed");if(l&&n.sub!==l)throw new k('unexpected "sub" claim value',"sub","check_failed");if(u&&!tk(n.aud,"string"==typeof u?[u]:u))throw new k('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=tw(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:h}=r,p=tf(h||new Date);if((void 0!==n.iat||d)&&"number"!=typeof n.iat)throw new k('"iat" claim must be a number',"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new k('"nbf" claim must be a number',"nbf","invalid");if(n.nbf>p+i)throw new k('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new k('"exp" claim must be a number',"exp","invalid");if(n.exp<=p-i)throw new x('"exp" claim timestamp check failed',"exp","check_failed")}if(d){let e=p-n.iat;if(e-i>("number"==typeof d?d:tw(d)))throw new x('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-i)throw new k('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return n};async function tE(e,t,r){var n;let i=await th(e,t,r);if((null===(n=i.protectedHeader.crit)||void 0===n?void 0:n.includes("b64"))&&!1===i.protectedHeader.b64)throw new O("JWTs MUST NOT use unencoded payload");let o={payload:tx(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return"function"==typeof t?{...o,key:i.key}:o}async function tT(e,t,r){let n=await e8(e,t,r),i=tx(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new k('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new k('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new k('replicated "aud" claim header parameter mismatch',"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class tA{constructor(e){this._flattened=new to(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}
99async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}var tC=async(e,t,r)=>{let n=await tc(e,t,"sign");return ex(e,n),new Uint8Array(await o.subtle.sign(tl(e,n.algorithm),n,r))};class tP{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new I("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!es(this._protectedHeader,this._unprotectedHeader))throw new I("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=e3(I,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new I('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
99if("string"!=typeof a||!a)throw new I('JWS "alg" (Algorithm) Header Parameter missing or invalid');eJ(a,e,"sign");let s=this._payload;o&&(s=l.encode(b(s)));let u=d(r=this._protectedHeader?l.encode(b(JSON.stringify(this._protectedHeader))):l.encode(""),l.encode("."),s),h={signature:b(await tC(a,e,u)),payload:""};return o&&(h.payload=c.decode(s)),this._unprotectedHeader&&(h.header=this._unprotectedHeader),this._protectedHeader&&(h.protected=c.decode(r)),h}}class tI{constructor(e){this._flattened=new tP(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tO{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tN{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tO(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new I("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],n=new tP(this._payload);n.setProtectedHeader(r.protectedHeader),n.setUnprotectedHeader(r.unprotectedHeader);let{payload:i,...o}=await n.sign(r.key,r.options);if(0===t)e.payload=i;else if(e.payload!==i)throw new I("inconsistent use of JWS Unencoded Payload (RFC7797)");e.signatures.push(o)}return e}}class tD{constructor(e){if(!ec(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:tf(new Date)+tw(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:tf(new Date)+tw(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:tf(new Date)}:this._payload={...this._payload,iat:e},this}}class tR extends tD{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let n=new tI(l.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new O("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class tL extends tD{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new tA(l.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}let tM=(e,t)=>{if("string"!=typeof e||!e)throw new N(`${t} missing or invalid`)};async function tj(e,t){let r;if(!ec(e))throw TypeError("JWK must be an object");
99if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tM(e.crv,'"crv" (Curve) Parameter'),tM(e.x,'"x" (X Coordinate) Parameter'),tM(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tM(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tM(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tM(e.e,'"e" (Exponent) Parameter'),tM(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tM(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new T('"kty" (Key Type) Parameter missing or unsupported')}let n=l.encode(JSON.stringify(r));return b(await s(t,n))}async function tB(e,t){null!=t||(t="sha256");let r=await tj(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tU(e,t){let r={...e,...null==t?void 0:t.header};if(!ec(r.jwk))throw new I('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await eK({...r.jwk,ext:!0},r.alg,!0);if(n instanceof Uint8Array||"public"!==n.type)throw new I('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tF(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new T('Unsupported "alg" value for a JSON Web Key Set')}}function tH(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(tz)}function tz(e){return ec(e)}function t$(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class tq{constructor(e){if(this._cached=new WeakMap,!tH(e))throw new D("JSON Web Key Set malformed");this._jwks=t$(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...null==t?void 0:t.header},i=tF(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new R;if(1!==s){let e=new L,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of o)try{yield await tW(t,e,r)}catch(e){continue}},e}return tW(this._cached,a,r)}}async function tW(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await eK({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new D("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function tV(e){let t=new tq(e);return async function(e,r){return t.getKey(e,r)}}var tG=async(e,t,r)=>{let n,i;let o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new M;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new S("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch(e){throw new S("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function tK(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}class tZ extends tq{constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(e,t)}catch(r){if(r instanceof R&&!1===this.coolingDown())return await this.reload(),super.getKey(e,t);throw r}}
99async reload(){this._pendingFetch&&tK()&&(this._pendingFetch=void 0),this._pendingFetch||(this._pendingFetch=tG(this._url,this._timeoutDuration,this._options).then(e=>{if(!tH(e))throw new D("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function tY(e,t){let r=new tZ(e,t);return async function(e,t){return r.getKey(e,t)}}class tJ extends tD{encode(){let e=b(JSON.stringify({alg:"none"})),t=b(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new O("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new O("Invalid Unsecured JWT");try{if(r=JSON.parse(c.decode(w(n))),"none"!==r.alg)throw Error()}catch(e){throw new O("Invalid Unsecured JWT")}return{payload:tx(r,w(i),t),header:r}}}let tX=b,tQ=w;function t0(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(c.decode(tQ(t)));if(!ec(e))throw Error();return e}catch(e){throw TypeError("Invalid Token or Protected Header formatting")}}function t1(e){let t,r;if("string"!=typeof e)throw new O("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new O("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new O("Invalid JWT");if(!n)throw new O("JWTs must contain a payload");try{t=tQ(n)}catch(e){throw new O("Failed to base64url decode the payload")}try{r=JSON.parse(c.decode(t))}catch(e){throw new O("Failed to parse the decoded payload as JSON")}if(!ec(r))throw new O("Invalid JWT Claims Set");return r}async function t2(e,t){var r;let n,i,a;switch(e){case"HS256":case"HS384":case"HS512":n=parseInt(e.slice(-3),10),i={name:"HMAC",hash:`SHA-${n}`,length:n},a=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return B(new Uint8Array((n=parseInt(e.slice(-3),10))>>3));case"A128KW":case"A192KW":case"A256KW":i={name:"AES-KW",length:n=parseInt(e.slice(1,4),10)},a=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":i={name:"AES-GCM",length:n=parseInt(e.slice(1,4),10)},a=["encrypt","decrypt"];break;default:throw new T('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(i,null!==(r=null==t?void 0:t.extractable)&&void 0!==r&&r,a)}function t4(e){var t;let r=null!==(t=null==e?void 0:e.modulusLength)&&void 0!==t?t:2048;if("number"!=typeof r||r<2048)throw new T("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return r}async function t3(e,t){var r,n,i;let a,s;switch(e){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t4(t)},s=["sign","verify"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t4(t)},s=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t4(t)},s=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},s=["sign","verify"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},s=["sign","verify"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},s=["sign","verify"];break;case"EdDSA":s=["sign","verify"];let l=null!==(r=null==t?void 0:t.crv)&&void 0!==r?r:"Ed25519";
99switch(l){case"Ed25519":case"Ed448":a={name:l};break;default:throw new T("Invalid or unsupported crv option provided")}break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{s=["deriveKey","deriveBits"];let e=null!==(n=null==t?void 0:t.crv)&&void 0!==n?n:"P-256";switch(e){case"P-256":case"P-384":case"P-521":a={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":a={name:e};break;default:throw new T("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new T('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(a,null!==(i=null==t?void 0:t.extractable)&&void 0!==i&&i,s)}async function t6(e,t){return t3(e,t)}async function t5(e,t){return t2(e,t)}var t8="WebCryptoAPI"},37340:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:function(){return n}})},91444:function(e,t,r){"use strict";r.d(t,{Mi:function(){return T},Ix:function(){return A},Am:function(){return j}});var n=r(67294);function i(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=i(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t)}return n}var o=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=i(e))&&(n&&(n+=" "),n+=t);return n};let a=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e,l=e=>"function"==typeof e,c=e=>s(e)||l(e)?e:null,u=e=>(0,n.isValidElement)(e)||s(e)||l(e)||a(e);function d(e,t,r){void 0===r&&(r=300);let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}function h(e){let{enter:t,exit:r,appendPosition:i=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:h,isIn:p}=e,f=i?`${t}--${l}`:t,m=i?`${r}--${l}`:r,g=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=h.current,t=f.split(" "),r=n=>{n.target===h.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=h.current,t=()=>{e.removeEventListener("animationend",t),o?d(e,u,a):u()};p||(c?t():(g.current=1,e.className+=` ${m}`,e.addEventListener("animationend",t)))},[p]),n.createElement(n.Fragment,null,s)}}function p(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let f={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let r=this.list.get(e).filter(e=>e!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},m=e=>{let{theme:t,type:r,...i}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...i})},g={info:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(m,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function y(e){let[,t]=(0,n.useReducer)(e=>
99e+1,0),[r,i]=(0,n.useState)([]),o=(0,n.useRef)(null),d=(0,n.useRef)(new Map).current,h=e=>-1!==r.indexOf(e),m=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:h,getToast:e=>d.get(e)}).current;function y(e){let{containerId:t}=e,{limit:r}=m.props;!r||t&&m.containerId!==t||(m.count-=m.queue.length,m.queue=[])}function v(e){i(t=>null==e?[]:t.filter(t=>t!==e))}function b(){let{toastContent:e,toastProps:t,staleId:r}=m.queue.shift();w(e,t,r)}function _(e,r){var i,h;let{delay:y,staleId:_,...S}=r;if(!u(e)||function(e){return!o.current||m.props.enableMultiContainer&&e.containerId!==m.props.containerId||d.has(e.toastId)&&null==e.updateId}(S))return;let{toastId:k,updateId:x,data:E}=S,{props:T}=m,A=()=>v(k),C=null==x;C&&m.count++;let P={...T,style:T.toastStyle,key:m.toastKey++,...Object.fromEntries(Object.entries(S).filter(e=>{let[t,r]=e;return null!=r})),toastId:k,updateId:x,data:E,closeToast:A,isIn:!1,className:c(S.className||T.toastClassName),bodyClassName:c(S.bodyClassName||T.bodyClassName),progressClassName:c(S.progressClassName||T.progressClassName),autoClose:!S.isLoading&&(i=S.autoClose,h=T.autoClose,!1===i||a(i)&&i>0?i:h),deleteToast(){let e=p(d.get(k),"removed");d.delete(k),f.emit(4,e);let r=m.queue.length;if(m.count=null==k?m.count-m.displayedToast:m.count-1,m.count<0&&(m.count=0),r>0){let e=null==k?m.props.limit:1;if(1===r||1===e)m.displayedToast++,b();else{let t=e>r?r:e;m.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};P.iconOut=function(e){let{theme:t,type:r,isLoading:i,icon:o}=e,c=null,u={theme:t,type:r};return!1===o||(l(o)?c=o(u):(0,n.isValidElement)(o)?c=(0,n.cloneElement)(o,u):s(o)||a(o)?c=o:i?c=g.spinner():r in g&&(c=g[r](u))),c}(P),l(S.onOpen)&&(P.onOpen=S.onOpen),l(S.onClose)&&(P.onClose=S.onClose),P.closeButton=T.closeButton,!1===S.closeButton||u(S.closeButton)?P.closeButton=S.closeButton:!0===S.closeButton&&(P.closeButton=!u(T.closeButton)||T.closeButton);let I=e;(0,n.isValidElement)(e)&&!s(e.type)?I=(0,n.cloneElement)(e,{closeToast:A,toastProps:P,data:E}):l(e)&&(I=e({closeToast:A,toastProps:P,data:E})),T.limit&&T.limit>0&&m.count>T.limit&&C?m.queue.push({toastContent:I,toastProps:P,staleId:_}):a(y)?setTimeout(()=>{w(I,P,_)},y):w(I,P,_)}function w(e,t,r){let{toastId:n}=t;r&&d.delete(r);let o={content:e,props:t};d.set(n,o),i(e=>[...e,n].filter(e=>e!==r)),f.emit(4,p(o,null==o.props.updateId?"added":"updated"))}return(0,n.useEffect)(()=>(m.containerId=e.containerId,f.cancelEmit(3).on(0,_).on(1,e=>o.current&&v(e)).on(5,y).emit(2,m),()=>{d.clear(),f.emit(3,m)}),[]),(0,n.useEffect)(()=>{m.props=e,m.isToastActive=h,m.displayedToast=r.length}),{getToastToRender:function(t){let r=new Map,n=Array.from(d.values());return e.newestOnTop&&n.reverse(),n.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},containerRef:o,isToastActive:h}}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function b(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function _(e){let[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),a=(0,n.useRef)(null),s=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,n.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:h,onClick:p,closeOnClick:f}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",S),document.addEventListener("touchmove",w),document.addEventListener("touchend",S);let r=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=r.getBoundingClientRect(),r.style.transition="",s.x=v(t.nativeEvent),s.y=b(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(s.boundingRect){let{top:r,bottom:n,left:i,right:o}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=i&&s.x<=o&&s.y>=r&&s.y<=n?_():y()}}function y(){r(!0)}function _(){r(!1)}function w(r){let n=a.current;s.canDrag&&n&&(s.didMove=!0,t&&_(),s.x=v(r),s.y=b(r),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,n.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function S(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",S);let t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)(()=>{c.current=e}),(0,n.useEffect)(()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),l(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>
99{let e=c.current;l(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)}),[]),(0,n.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",y),window.addEventListener("blur",_)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",_))}),[e.pauseOnFocusLoss]);let k={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return u&&d&&(k.onMouseEnter=_,k.onMouseLeave=y),f&&(k.onClick=e=>{p&&p(e),s.canCloseOnClick&&h()}),{playToast:y,pauseToast:_,isRunning:t,preventExitTransition:i,toastRef:a,eventHandlers:k}}function w(e){let{closeToast:t,theme:r,ariaLabel:i="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":i},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function S(e){let{delay:t,isRunning:r,closeToast:i,type:a="default",hide:s,className:c,style:u,controlledProgress:d,progress:h,rtl:p,isIn:f,theme:m}=e,g=s||d&&0===h,y={...u,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:g?0:1};d&&(y.transform=`scaleX(${h})`);let v=o("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),b=l(c)?c({rtl:p,type:a,defaultClassName:v}):o(v,c);return n.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:y,[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{f&&i()}})}let k=e=>{let{isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:a}=_(e),{closeButton:s,children:c,autoClose:u,onClick:d,type:h,hideProgressBar:p,closeToast:f,transition:m,position:g,className:y,style:v,bodyClassName:b,bodyStyle:k,progressClassName:x,progressStyle:E,updateId:T,role:A,progress:C,rtl:P,toastId:I,deleteToast:O,isIn:N,isLoading:D,iconOut:R,closeOnClick:L,theme:M}=e,j=o("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":L}),B=l(y)?y({rtl:P,position:g,type:h,defaultClassName:j}):o(j,y),U=!!C||!u,F={closeToast:f,type:h,theme:M},H=null;return!1===s||(H=l(s)?s(F):(0,n.isValidElement)(s)?(0,n.cloneElement)(s,F):w(F)),n.createElement(m,{isIn:N,done:O,position:g,preventExitTransition:r,nodeRef:i},n.createElement("div",{id:I,onClick:d,className:B,...a,style:v,ref:i},n.createElement("div",{...N&&{role:A},className:l(b)?b({type:h}):o("Toastify__toast-body",b),style:k},null!=R&&n.createElement("div",{className:o("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!D})},R),n.createElement("div",null,c)),H,n.createElement(S,{...T&&!U?{key:`pb-${T}`}:{},rtl:P,theme:M,delay:u,isRunning:t,isIn:N,closeToast:f,hide:p,type:h,style:E,className:x,controlledProgress:U,progress:C||0})))}
99,x=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},E=h(x("bounce",!0)),T=h(x("slide",!0)),A=(h(x("zoom")),h(x("flip")),(0,n.forwardRef)((e,t)=>{let{getToastToRender:r,containerRef:i,isToastActive:a}=y(e),{className:s,style:u,rtl:d,containerId:h}=e;function p(e){let t=o("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return l(s)?s({position:e,rtl:d,defaultClassName:t}):o(t,c(s))}return(0,n.useEffect)(()=>{t&&(t.current=i.current)},[]),n.createElement("div",{ref:i,className:"Toastify",id:h},r((e,t)=>{let r=t.length?{...u}:{...u,pointerEvents:"none"};return n.createElement("div",{className:p(e),style:r,key:`container-${e}`},t.map((e,r)=>{let{content:i,props:o}=e;return n.createElement(k,{...o,isIn:a(o.toastId),style:{...o.style,"--nth":r+1,"--len":t.length},key:`toast-${o.key}`},i)}))}))}));A.displayName="ToastContainer",A.defaultProps={position:"top-right",transition:E,autoClose:5e3,closeButton:w,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let C,P=new Map,I=[],O=1;function N(){return""+O++}function D(e){return e&&(s(e.toastId)||a(e.toastId))?e.toastId:N()}function R(e,t){return P.size>0?f.emit(0,e,t):I.push({content:e,options:t}),t.toastId}function L(e,t){return{...t,type:t&&t.type||e,toastId:D(t)}}function M(e){return(t,r)=>R(t,L(e,r))}function j(e,t){return R(e,L("default",t))}j.loading=(e,t)=>
99R(e,L("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),j.promise=function(e,t,r){let n,{pending:i,error:o,success:a}=t;i&&(n=s(i)?j.loading(i,r):j.loading(i.render,{...r,...i}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,i)=>{if(null==t)return void j.dismiss(n);let o={type:e,...c,...r,data:i},a=s(t)?{render:t}:t;return n?j.update(n,{...o,...a}):j(a.render,{...o,...a}),i},d=l(e)?e():e;return d.then(e=>u("success",a,e)).catch(e=>u("error",o,e)),d},j.success=M("success"),j.info=M("info"),j.error=M("error"),j.warning=M("warning"),j.warn=j.warning,j.dark=(e,t)=>R(e,L("default",{theme:"dark",...t})),j.dismiss=e=>{P.size>0?f.emit(1,e):I=I.filter(t=>null!=e&&t.options.toastId!==e)},j.clearWaitingQueue=function(e){return void 0===e&&(e={}),f.emit(5,e)},j.isActive=e=>{let t=!1;return P.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},j.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{let r=function(e,t){let{containerId:r}=t,n=P.get(r||C);return n&&n.getToast(e)}(e,t);if(r){let{props:n,content:i}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:N()};o.toastId!==e&&(o.staleId=e);let a=o.render||i;delete o.render,R(a,o)}},0)},j.done=e=>{j.update(e,{progress:1})},j.onChange=e=>(f.on(4,e),()=>{f.off(4,e)}),j.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},j.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},f.on(2,e=>{C=e.containerId||e,P.set(C,e),I.forEach(e=>{f.emit(0,e.content,e.options)}),I=[]}).on(3,e=>{P.delete(e.containerId||e),0===P.size&&f.off(0).off(1).off(5)})},30719:function(e,t,r){"use strict";r.d(t,{tq:function(){return A},o5:function(){return P}});var n=r(67294),i=r(965);function o(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function a(e,t){let r=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>r.indexOf(e)).forEach(r=>{void 0===e[r]?e[r]=t[r]:o(t[r])&&o(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:a(e[r],t[r]):e[r]=t[r]})}function s(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function l(e={}){return e.pagination&&void 0===e.pagination.el}function c(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function u(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return t.forEach(e=>{0>r.indexOf(e)&&r.push(e)}),r.join(" ")}let d=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function h(e={},t=!0){let r={on:{}},n={},s={};a(r,i.ZP.defaults),a(r,i.ZP.extendedDefaults),r._emitClasses=!0,r.init=!1;let l={},c=d.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({}
99,e)).forEach(i=>{void 0!==e[i]&&(c.indexOf(i)>=0?o(e[i])?(r[i]={},s[i]={},a(r[i],e[i]),a(s[i],e[i])):(r[i]=e[i],s[i]=e[i]):0===i.search(/on[A-Z]/)&&"function"==typeof e[i]?t?n[`${i[2].toLowerCase()}${i.substr(3)}`]=e[i]:r.on[`${i[2].toLowerCase()}${i.substr(3)}`]=e[i]:l[i]=e[i])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===r[e]&&(r[e]={}),!1===r[e]&&delete r[e]}),{params:r,passedParams:s,rest:l,events:n}}function p({el:e,nextEl:t,prevEl:r,paginationEl:n,scrollbarEl:i,swiper:o},a){s(a)&&t&&r&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),l(a)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),c(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}let f=(e,t)=>{let r=t.slidesPerView;if(t.breakpoints){let e=i.ZP.prototype.getBreakpoint(t.breakpoints),n=e in t.breakpoints?t.breakpoints[e]:void 0;n&&n.slidesPerView&&(r=n.slidesPerView)}let n=Math.ceil(parseFloat(t.loopedSlides||r,10));return(n+=t.loopAdditionalSlides)>e.length&&t.loopedSlidesLimit&&(n=e.length),n};function m(e,t,r){let i=t.map((t,r)=>n.cloneElement(t,{swiper:e,"data-swiper-slide-index":r}));function o(e,t,i){return n.cloneElement(e,{key:`${e.key}-duplicate-${t}-${i}`,className:`${e.props.className||""} ${r.slideDuplicateClass}`})}if(r.loopFillGroupWithBlank){let e=r.slidesPerGroup-i.length%r.slidesPerGroup;if(e!==r.slidesPerGroup)for(let t=0;t<e;t+=1){let e=n.createElement("div",{className:`${r.slideClass} ${r.slideBlankClass}`});i.push(e)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=i.length);let a=f(i,r),s=[],l=[];for(let e=0;e<a;e+=1){let t=e-Math.floor(e/i.length)*i.length;l.push(o(i[t],e,"append")),s.unshift(o(i[i.length-t-1],e,"prepend"))}return e&&(e.loopedSlides=a),[...s,...i,...l]}function g(e,t,r,n,i){let a=[];if(!t)return a;let s=e=>{0>a.indexOf(e)&&a.push(e)};if(r&&n){let e=n.map(i),t=r.map(i);e.join("")!==t.join("")&&s("children"),n.length!==r.length&&s("children")}return d.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(r=>{if(r in e&&r in t){if(o(e[r])&&o(t[r])){let n=Object.keys(e[r]),i=Object.keys(t[r]);n.length!==i.length?s(r):(n.forEach(n=>{e[r][n]!==t[r][n]&&s(r)}),i.forEach(n=>{e[r][n]!==t[r][n]&&s(r)}))}else e[r]!==t[r]&&s(r)}}),a}function y(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function v(e){let t=[];return n.Children.toArray(e).forEach(e=>{y(e)?t.push(e):e.props&&e.props.children&&v(e.props.children).forEach(e=>t.push(e))}),t}function b(e){let t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(e).forEach(e=>{if(y(e))t.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){let n=v(e.props.children);n.length>0?n.forEach(e=>t.push(e)):r["container-end"].push(e)}else r["container-end"].push(e)}),{slides:t,slots:r}}function _({swiper:e,slides:t,passedParams:r,changedParams:n,nextEl:i,prevEl:s,scrollbarEl:l,paginationEl:c}){let u,d,h,p,f;let m=n.filter(e=>"children"!==e&&"direction"!==e),{params:g,pagination:y,navigation:v,scrollbar:b,virtual:_,thumbs:w}=e;n.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&g.thumbs&&!g.thumbs.swiper&&(u=!0),n.includes("controller")&&r.controller&&r.controller.control&&g.controller&&!g.controller.control&&(d=!0),n.includes("pagination")&&r.pagination&&(r.pagination.el||c)&&(g.pagination||!1===g.pagination)&&y&&!y.el&&(h=!0),n.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(g.scrollbar||!1===g.scrollbar)&&b&&!b.el&&(p=!0),n.includes("navigation")&&r.navigation&&(r.navigation.prevEl||s)&&(r.navigation.nextEl||i)&&(g.navigation||!1===g.navigation)&&v&&!v.prevEl&&!v.nextEl&&(f=!0);let S=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(g[t].prevEl=void 0,g[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(g[t].el=void 0,e[t].el=void 0))};m.forEach(e=>{if(o(g[e])&&o(r[e]))a(g[e],r[e]);else{let t=r[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&S(e):g[e]=r[e]}}),m.includes("controller")&&!d&&e.controller&&e.controller.control&&g.controller&&g.controller.control&&(e.controller.control=g.controller.control),n.includes("children")&&t&&_&&g.virtual.enabled?(_.slides=t,_.update(!0)):n.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),u&&w.init()&&w.update(!0),d&&(e.controller.control=g.controller.control),h&&(c&&(g.pagination.el=c),y.init(),y.render(),y.update()),p&&(l&&(g.scrollbar.el=l),b.init(),b.updateSize(),b.setTranslate()),f&&(i&&(g.navigation.nextEl=i),s&&(g.navigation.prevEl=s),v.init(
99),v.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),n.includes("direction")&&e.changeDirection(r.direction,!1),e.update()}function w(e,t,r){if(!r)return null;let i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`};return t.filter((e,t)=>t>=r.from&&t<=r.to).map(t=>n.cloneElement(t,{swiper:e,style:i}))}let S=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function k(e,t){return"undefined"==typeof window?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}let x=(0,n.createContext)(null),E=(0,n.createContext)(null);function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let A=(0,n.forwardRef)(function(e,t){let{className:r,tag:o="div",wrapperTag:d="div",children:y,onSwiper:v,...x}=void 0===e?{}:e,A=!1,[C,P]=(0,n.useState)("swiper"),[I,O]=(0,n.useState)(null),[N,D]=(0,n.useState)(!1),R=(0,n.useRef)(!1),L=(0,n.useRef)(null),M=(0,n.useRef)(null),j=(0,n.useRef)(null),B=(0,n.useRef)(null),U=(0,n.useRef)(null),F=(0,n.useRef)(null),H=(0,n.useRef)(null),z=(0,n.useRef)(null),{params:$,passedParams:q,rest:W,events:V}=h(x),{slides:G,slots:K}=b(y),Z=()=>{D(!N)};Object.assign($.on,{_containerClasses(e,t){P(t)}});let Y=()=>{if(Object.assign($.on,V),A=!0,M.current=new i.ZP($),M.current.loopCreate=()=>{},M.current.loopDestroy=()=>{},$.loop&&(M.current.loopedSlides=f(G,$)),M.current.virtual&&M.current.params.virtual.enabled){M.current.virtual.slides=G;let e={cache:!1,slides:G,renderExternal:O,renderExternalUpdate:!1};a(M.current.params.virtual,e),a(M.current.originalParams.virtual,e)}};L.current||Y(),M.current&&M.current.on("_beforeBreakpoint",Z);let J=()=>{!A&&V&&M.current&&Object.keys(V).forEach(e=>{M.current.on(e,V[e])})},X=()=>{V&&M.current&&Object.keys(V).forEach(e=>{M.current.off(e,V[e])})};function Q(){return $.virtual?w(M.current,G,I):!$.loop||M.current&&M.current.destroyed?G.map(e=>n.cloneElement(e,{swiper:M.current})):m(M.current,G,$)}return(0,n.useEffect)(()=>()=>{M.current&&M.current.off("_beforeBreakpoint",Z)}),(0,n.useEffect)(()=>{!R.current&&M.current&&(M.current.emitSlidesClasses(),R.current=!0)}),k(()=>{if(t&&(t.current=L.current),L.current)return M.current.destroyed&&Y(),p({el:L.current,nextEl:U.current,prevEl:F.current,paginationEl:H.current,scrollbarEl:z.current,swiper:M.current},$),v&&v(M.current),()=>{M.current&&!M.current.destroyed&&M.current.destroy(!0,!1)}},[]),k(()=>{J();let e=g(q,j.current,G,B.current,e=>e.key);return j.current=q,B.current=G,e.length&&M.current&&!M.current.destroyed&&_({swiper:M.current,slides:G,passedParams:q,changedParams:e,nextEl:U.current,prevEl:F.current,scrollbarEl:z.current,paginationEl:H.current}),()=>{X()}}),k(()=>{S(M.current)},[I]),n.createElement(o,T({ref:L,className:u(`${C}${r?` ${r}`:""}`)},W),n.createElement(E.Provider,{value:M.current},K["container-start"],n.createElement(d,{className:"swiper-wrapper"},K["wrapper-start"],Q(),K["wrapper-end"]),s($)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:F,className:"swiper-button-prev"}),n.createElement("div",{ref:U,className:"swiper-button-next"})),c($)&&n.createElement("div",{ref:z,className:"swiper-scrollbar"}),l($)&&n.createElement("div",{ref:H,className:"swiper-pagination"}),K["container-end"]))});function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}A.displayName="Swiper";let P=(0,n.forwardRef)(function(e,t){let{tag:r="div",children:i,className:o="",swiper:a,zoom:s,virtualIndex:l,...c}=void 0===e?{}
99:e,d=(0,n.useRef)(null),[h,p]=(0,n.useState)("swiper-slide");function f(e,t,r){t===d.current&&p(r)}k(()=>{if(t&&(t.current=d.current),d.current&&a){if(a.destroyed){"swiper-slide"!==h&&p("swiper-slide");return}return a.on("_slideClass",f),()=>{a&&a.off("_slideClass",f)}}}),k(()=>{a&&d.current&&!a.destroyed&&p(a.getSlideClasses(d.current))},[a]);let m={isActive:h.indexOf("swiper-slide-active")>=0||h.indexOf("swiper-slide-duplicate-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isDuplicate:h.indexOf("swiper-slide-duplicate")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0||h.indexOf("swiper-slide-duplicate-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0||h.indexOf("swiper-slide-duplicate-next")>=0},g=()=>"function"==typeof i?i(m):i;return n.createElement(r,C({ref:d,className:u(`${h}${o?` ${o}`:""}`),"data-swiper-slide-index":l},c),n.createElement(x.Provider,{value:m},s?n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof s?s:void 0},g()):g()))});P.displayName="SwiperSlide"},965:function(e,t,r){"use strict";let n,i,o;function a(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function s(e={},t={}){Object.keys(t).forEach(r=>{void 0===e[r]?e[r]=t[r]:a(t[r])&&a(e[r])&&Object.keys(t[r]).length>0&&s(e[r],t[r])})}r.d(t,{W_:function(){return eq},ZP:function(){return ez}});let l={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function c(){let e="undefined"!=typeof document?document:{};return s(e,l),e}let u={document:l,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function d(){let e="undefined"!=typeof window?window:{};return s(e,u),e}function h(e){let t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}class p extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),h(this))}}function f(e=[]){let t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...f(e)):t.push(e)}),t}function m(e,t){return Array.prototype.filter.call(e,t)}function g(e){let t=[];for(let r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t}function y(e,t){if("string"!=typeof e)return[e];let r=[],n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1)r.push(n[e]);return r}function v(e,t){let r=d(),n=c(),i=[];if(!t&&e instanceof p)return e;if(!e)return new p(i);if("string"==typeof e){let r=e.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let e="div";0===r.indexOf("<li")&&(e="ul"),0===r.indexOf("<tr")&&(e="tbody"),(0===r.indexOf("<td")||0===r.indexOf("<th"))&&(e="tr"),0===r.indexOf("<tbody")&&(e="table"),0===r.indexOf("<option")&&(e="select");let t=n.createElement(e);t.innerHTML=r;for(let e=0;e<t.childNodes.length;e+=1)i.push(t.childNodes[e])}else i=y(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)i.push(e);else if(Array.isArray(e)){if(e instanceof p)return e;i=e}return new p(g(i))}function b(...e){let t=f(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function _(...e){let t=f(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function w(...e){let t=f(e.map(e=>e.split(" ")));this.forEach(e=>{t.forEach(t=>{e.classList.toggle(t)})})}function S(...e){let t=f(e.map(e=>e.split(" ")));return m(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0}function k(e,t){if(1==arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let r=0;r<this.length;r+=1)if(2==arguments.length)this[r].setAttribute(e,t);else for(let t in e)this[r][t]=e[t],this[r].setAttribute(t,e[t]);return this}function x(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function E(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this}function T(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this}function A(...e){let t,[r,n,i,o]=e;function a(e){let t=e.target;if(!t)return;let r=e.target.dom7EventData||[];if(0>r.indexOf(e)&&r.unshift(e),v(t).is(n))i.apply(t,r);else{let e=v(t).parents();for(let t=0;t<e.length;t+=1)v(e[t]).is(n)&&i.apply(e[t],r)}}function s(e){let t=e&&e.target&&e.target.dom7EventData||[];0>t.indexOf(e)&&t.unshift(e),i.apply(this,t)}"function"==typeof e[1]&&([r,i,o]=e,n=void 0),o||(o=!1);let l=r.split(" ");for(let e=0;e<this.length;e+=1){let r=this[e];if(n)for(t=0;t<l.length;t+=1){let e=l[t];r.dom7LiveListeners||(r.dom7LiveListeners={}),r.dom7LiveListeners[e]||(r.dom7LiveListeners[e]=[]),r.dom7LiveListeners[e].push({listener:i,proxyListener:a}),r.addEventListener(e,a,o)}else for(t=0;t<l.length;t+=1){let e=l[t];r.dom7Listeners||(r.dom7Listeners={}),r.dom7Listeners[e]||(r.dom7Listeners[e]=[]),r.dom7Listeners[e].push({listener:i,proxyListener:s}),r.addEventListener(e,s,o)}}return this}function C(...e){let[t,r,n,i]=e;"function"==typeof e[1]&&([t,n,i]=e,r=void 0),i||(i=!1);let o=t.split(" ");for(let e=0;e<o.length;
99e+=1){let t=o[e];for(let e=0;e<this.length;e+=1){let o;let a=this[e];if(!r&&a.dom7Listeners?o=a.dom7Listeners[t]:r&&a.dom7LiveListeners&&(o=a.dom7LiveListeners[t]),o&&o.length)for(let e=o.length-1;e>=0;e-=1){let r=o[e];n&&r.listener===n?(a.removeEventListener(t,r.proxyListener,i),o.splice(e,1)):n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(a.removeEventListener(t,r.proxyListener,i),o.splice(e,1)):n||(a.removeEventListener(t,r.proxyListener,i),o.splice(e,1))}}}return this}function P(...e){let t=d(),r=e[0].split(" "),n=e[1];for(let i=0;i<r.length;i+=1){let o=r[i];for(let r=0;r<this.length;r+=1){let i=this[r];if(t.CustomEvent){let r=new t.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0});i.dom7EventData=e.filter((e,t)=>t>0),i.dispatchEvent(r),i.dom7EventData=[],delete i.dom7EventData}}}return this}function I(e){let t=this;function r(n){n.target===this&&(e.call(this,n),t.off("transitionend",r))}return e&&t.on("transitionend",r),this}function O(e){if(this.length>0){if(e){let e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function N(e){if(this.length>0){if(e){let e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function D(){if(this.length>0){let e=d(),t=c(),r=this[0],n=r.getBoundingClientRect(),i=t.body,o=r.clientTop||i.clientTop||0,a=r.clientLeft||i.clientLeft||0,s=r===e?e.scrollY:r.scrollTop,l=r===e?e.scrollX:r.scrollLeft;return{top:n.top+s-o,left:n.left+l-a}}return null}function R(){let e=d();return this[0]?e.getComputedStyle(this[0],null):{}}function L(e,t){let r;let n=d();if(1==arguments.length){if("string"==typeof e){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(r=0;r<this.length;r+=1)for(let t in e)this[r].style[t]=e[t];return this}}if(2==arguments.length&&"string"==typeof e)for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}function M(e){return e&&this.forEach((t,r)=>{e.apply(t,[t,r])}),this}function j(e){return v(m(this,e))}function B(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function U(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function F(e){let t,r;let n=d(),i=c(),o=this[0];if(!o||void 0===e)return!1;if("string"==typeof e){if(o.matches)return o.matches(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);for(r=0,t=v(e);r<t.length;r+=1)if(t[r]===o)return!0;return!1}if(e===i)return o===i;if(e===n)return o===n;if(e.nodeType||e instanceof p){for(r=0,t=e.nodeType?[e]:e;r<t.length;r+=1)if(t[r]===o)return!0}return!1}function H(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function z(e){if(void 0===e)return this;let t=this.length;if(e>t-1)return v([]);if(e<0){let r=t+e;return r<0?v([]):v([this[r]])}return v([this[e]])}function $(...e){let t;let r=c();for(let n=0;n<e.length;n+=1){t=e[n];for(let e=0;e<this.length;e+=1)if("string"==typeof t){let n=r.createElement("div");for(n.innerHTML=t;n.firstChild;)this[e].appendChild(n.firstChild)}else if(t instanceof p)for(let r=0;r<t.length;r+=1)this[e].appendChild(t[r]);else this[e].appendChild(t)}return this}function q(e){let t,r;let n=c();for(t=0;t<this.length;t+=1)if("string"==typeof e){let i=n.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(i.childNodes[r],this[t].childNodes[0])}else if(e instanceof p)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function W(e){if(this.length>0){if(e)return this[0].nextElementSibling&&v(this[0].nextElementSibling).is(e)?v([this[0].nextElementSibling]):v([]);if(this[0].nextElementSibling)return v([this[0].nextElementSibling])}return v([])}function V(e){let t=[],r=this[0];if(!r)return v([]);for(;r.nextElementSibling;){let n=r.nextElementSibling;e?v(n).is(e)&&t.push(n):t.push(n),r=n}return v(t)}function G(e){if(this.length>0){let t=this[0];if(e)return t.previousElementSibling&&v(t.previousElementSibling).is(e)?v([t.previousElementSibling]):v([]);if(t.previousElementSibling)return v([t.previousElementSibling])}return v([])}function K(e){let t=[],r=this[0];if(!r)return v([]);for(;r.previousElementSibling;){let n=r.previousElementSibling;e?v(n).is(e)&&t.push(n):t.push(n),r=n}return v(t)}function Z(e){let t=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(e?v(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return v(t)}function Y(e){let t=[];for(let r=0;r<this.length;r+=1){let n=this[r].parentNode;for(;n;)e?v(n).is(e)&&t.push(n):t.push(n),n=n.parentNode}return v(t)}function J(e){let t=this;return void 0===e?v([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function X(e){let t=[];for(let r=0;r<this.length;r+=1){let n=this[r].querySelectorAll(e);for(let e=0;e<n.length;e+=1)t.push(n[e])}return v(t)}function Q(e){let t=[];for(let r=0;r<this.length;r+=1){let n=this[r].children;for(let r=0;r<n.length;r+=1)(!e||v(n[r]).is(e))&&t.push(n[r])}return v(t)}function ee(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}v.fn=p.prototype;let et="resize scroll".split(" ");function er(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)0>et.indexOf(e)&&(e in this[t]?this[t][e]():v(this[t]).trigger(e));return this}return this.on(e,...t)}}
99er("click"),er("blur"),er("focus"),er("focusin"),er("focusout"),er("keyup"),er("keydown"),er("keypress"),er("submit"),er("change"),er("mousedown"),er("mousemove"),er("mouseup"),er("mouseenter"),er("mouseleave"),er("mouseout"),er("mouseover"),er("touchstart"),er("touchend"),er("touchmove"),er("resize"),er("scroll");let en={addClass:b,removeClass:_,hasClass:S,toggleClass:w,attr:k,removeAttr:x,transform:E,transition:T,on:A,off:C,trigger:P,transitionEnd:I,outerWidth:O,outerHeight:N,styles:R,offset:D,css:L,each:M,html:B,text:U,is:F,index:H,eq:z,append:$,prepend:q,next:W,nextAll:V,prev:G,prevAll:K,parent:Z,parents:Y,closest:J,find:X,children:Q,filter:j,remove:ee};Object.keys(en).forEach(e=>{Object.defineProperty(v.fn,e,{value:en[e],writable:!0})});var ei=v;function eo(e){let t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}function ea(e,t=0){return setTimeout(e,t)}function es(){return Date.now()}function el(e){let t;let r=d();return r.getComputedStyle&&(t=r.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}function ec(e,t="x"){let r,n,i;let o=d(),a=el(e,null);return o.WebKitCSSMatrix?((n=a.transform||a.webkitTransform).split(",").length>6&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),i=new o.WebKitCSSMatrix("none"===n?"":n)):r=(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(n=o.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=o.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0}function eu(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ed(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function eh(...e){let t=Object(e[0]),r=["__proto__","constructor","prototype"];for(let n=1;n<e.length;n+=1){let i=e[n];if(null!=i&&!ed(i)){let e=Object.keys(Object(i)).filter(e=>0>r.indexOf(e));for(let r=0,n=e.length;r<n;r+=1){let n=e[r],o=Object.getOwnPropertyDescriptor(i,n);void 0!==o&&o.enumerable&&(eu(t[n])&&eu(i[n])?i[n].__swiper__?t[n]=i[n]:eh(t[n],i[n]):!eu(t[n])&&eu(i[n])?(t[n]={},i[n].__swiper__?t[n]=i[n]:eh(t[n],i[n])):t[n]=i[n])}}}return t}function ep(e,t,r){e.style.setProperty(t,r)}function ef({swiper:e,targetPosition:t,side:r}){let n;let i=d(),o=-e.translate,a=null,s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);let l=t>o?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{n=new Date().getTime(),null===a&&(a=n);let l=o+(.5-Math.cos(Math.max(Math.min((n-a)/s,1),0)*Math.PI)/2)*(t-o);if(c(l,t)&&(l=t),e.wrapperEl.scrollTo({[r]:l}),c(l,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:l})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(u)};u()}function em(){let e=d(),t=c();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{let r=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,r)}catch(e){}return t}(),gestures:"ongesturestart"in e}}function eg(){return n||(n=em()),n}function ey({userAgent:e}={}){let t=eg(),r=d(),n=r.navigator.platform,i=e||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,s=r.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n,f="MacIntel"===n,m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&f&&t.touch&&m.indexOf(`${a}x${s}`)>=0&&((c=i.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),f=!1),l&&!p&&(o.os="android",o.android=!0),(c||h||u)&&(o.os="ios",o.ios=!0),o}function ev(e={}
99){return i||(i=ey(e)),i}function eb(){let e=d();return{isSafari:function(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function e_(){return o||(o=eb()),o}function ew({swiper:e,on:t,emit:r}){let n=d(),i=null,o=null,a=()=>{e&&!e.destroyed&&e.initialized&&(r("beforeResize"),r("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=n.requestAnimationFrame(()=>{let{width:r,height:n}=e,i=r,o=n;t.forEach(({contentBoxSize:t,contentRect:r,target:n})=>{n&&n!==e.el||(i=r?r.width:(t[0]||t).inlineSize,o=r?r.height:(t[0]||t).blockSize)}),(i!==r||o!==n)&&a()})})).observe(e.el)},l=()=>{o&&n.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{e&&!e.destroyed&&e.initialized&&r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&void 0!==n.ResizeObserver){s();return}n.addEventListener("resize",a),n.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",c)})}function eS({swiper:e,extendParams:t,on:r,emit:n}){let i=[],o=d(),a=(e,t={})=>{let r=new(o.MutationObserver||o.WebkitMutationObserver)(e=>{if(1===e.length){n("observerUpdate",e[0]);return}let t=function(){n("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(t):o.setTimeout(t,0)});r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.push(r)},s=()=>{if(e.params.observer){if(e.params.observeParents){let t=e.$el.parents();for(let e=0;e<t.length;e+=1)a(t[e])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}},l=()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",s),r("destroy",l)}var ek={on(e,t,r){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof t)return n;let i=r?"unshift":"push";return e.split(" ").forEach(e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][i](t)}),n},once(e,t,r){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof t)return n;function i(...r){n.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(n,r)}return i.__emitterProxy=t,n.on(e,i,r)},onAny(e,t){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof e)return r;let n=t?"unshift":"push";return 0>r.eventsAnyListeners.indexOf(e)&&r.eventsAnyListeners[n](e),r},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){let r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach((n,i)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&r.eventsListeners[e].splice(i,1)})}),r},emit(...e){let t,r,n;let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],r=e.slice(1,e.length),n=i):(t=e[0].events,r=e[0].data,n=e[0].context||i),r.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(t=>{t.apply(n,[e,...r])}),i.eventsListeners&&i.eventsListeners[e]&&i.eventsListeners[e].forEach(e=>{e.apply(n,r)})})),i}};function ex({swiper:e,runCallbacks:t,direction:r,step:n}){let{activeIndex:i,previousIndex:o}=e,a=r;if(a||(a=i>o?"next":i<o?"prev":"reset"),e.emit(`transition${n}`),t&&i!==o){if("reset"===a){e.emit(`slideResetTransition${n}`);return}e.emit(`slideChangeTransition${n}`),"next"===a?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`)}}function eE(e,t=this){function r(t){if(!t||t===c()||t===d())return null;t.assignedSlot&&(t=t.assignedSlot);let n=t.closest(e);return n||t.getRootNode?n||r(t.getRootNode().host):null}return r(t)}function eT(e){let t=this,r=c(),n=d(),i=t.touchEventsData,{params:o,touches:a,enabled:s}=t;if(!s||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let u=ei(l.target);if("wrapper"===o.touchEventsTarget&&!u.closest(t.wrapperEl).length||(i.isTouchEvent="touchstart"===l.type,!i.isTouchEvent&&"which"in l&&3===l.which||!i.isTouchEvent&&"button"in l&&l.button>0||i.isTouched&&i.isMoved))return;let h=!!o.noSwipingClass&&""!==o.noSwipingClass,p=e.composedPath?e.composedPath():e.path;h&&l.target&&l.target.shadowRoot&&p&&(u=ei(p[0]));let f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,m=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(m?eE(f,u[0]):u.closest(f)[0])){t.allowClick=!0;return}if(o.swipeHandler&&!u.closest(o.swipeHandler)[0])return;a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;
99let g=a.currentX,y=a.currentY,v=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,b=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(v&&(g<=b||g>=n.innerWidth-b)){if("prevent"!==v)return;e.preventDefault()}if(Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=g,a.startY=y,i.touchStartTime=es(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==l.type){let e=!0;u.is(i.focusableElements)&&(e=!1,"SELECT"===u[0].nodeName&&(i.isTouched=!1)),r.activeElement&&ei(r.activeElement).is(i.focusableElements)&&r.activeElement!==u[0]&&r.activeElement.blur();let n=e&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||n)&&!u[0].isContentEditable&&l.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function eA(e){let t=c(),r=this,n=r.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=r;if(!s)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}if(n.isTouchEvent&&"touchmove"!==l.type)return;let u="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),d="touchmove"===l.type?u.pageX:l.pageX,h="touchmove"===l.type?u.pageY:l.pageY;if(l.preventedByNestedSwiper){o.startX=d,o.startY=h;return}if(!r.allowTouchMove){ei(l.target).is(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(o,{startX:d,startY:h,currentX:d,currentY:h}),n.touchStartTime=es());return}if(n.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop){if(r.isVertical()){if(h<o.startY&&r.translate<=r.maxTranslate()||h>o.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(d<o.startX&&r.translate<=r.maxTranslate()||d>o.startX&&r.translate>=r.minTranslate())return}if(n.isTouchEvent&&t.activeElement&&l.target===t.activeElement&&ei(l.target).is(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}if(n.allowTouchCallbacks&&r.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=d,o.currentY=h;let p=o.currentX-o.startX,f=o.currentY-o.startY;if(r.params.threshold&&Math.sqrt(p**2+f**2)<r.params.threshold)return;if(void 0===n.isScrolling){let e;r.isHorizontal()&&o.currentY===o.startY||r.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:p*p+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,n.isScrolling=r.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),void 0===n.startMoving&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation(),n.isMoved||(i.loop&&!i.cssMode&&r.loopFix(),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating&&r.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,i.grabCursor&&(!0===r.allowSlideNext||!0===r.allowSlidePrev)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)),r.emit("sliderMove",l),n.isMoved=!0;let m=r.isHorizontal()?p:f;o.diff=m,m*=i.touchRatio,a&&(m=-m),r.swipeDirection=m>0?"prev":"next",n.currentTranslate=m+n.startTranslate;let g=!0,y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(y=0),m>0&&n.currentTranslate>r.minTranslate()?(g=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+m)**y)):m<0&&n.currentTranslate<r.maxTranslate()&&(g=!1,i.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-m)**y)),g&&(l.preventedByNestedSwiper=!0),!r.allowSlideNext&&"next"===r.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&"prev"===r.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.allowSlidePrev||r.allowSlideNext||(n.currentTranslate=n.startTranslate),i.threshold>0){if(Math.abs(m)>i.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,o.diff=r.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{n.currentTranslate=n.startTranslate;return}}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),r.params.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function eC(e){let t;let r=this,n=r.touchEventsData,{params:i,touches:o,rtlTranslate:a,slidesGrid:s,enabled:l}=r;if(!l)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&r.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&r.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(!0===r.allowSlideNext||!0===r.allowSlidePrev)&&r.setGrabCursor(!1);let u=es(),d=u-n.touchStartTime;if(r.allowClick){let e=c.path||c.composedPath&&c.composedPath();r.updateClickedSlide(e&&e[0]||c.target),r.emit("tap click",c),d<300&&u-n.lastClickTime<300&&r.emit("doubleTap doubleClick",c)}if(n.lastClickTime=es(),ea(()=>{r.destroyed||(r.allowClick=!0)}),!n.isTouched||!n.isMoved||!r.swipeDirection||0===o.diff||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,t=i.followFinger?a?r.translate:-r.translate:-n.currentTranslate,i.cssMode)return;if(r.params.freeMode&&i.freeMode.enabled){r.freeMode.onTouchEnd({currentPos:t});return}let h=0,p=r.slidesSizesGrid[0];for(let e=0;e<s.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){let r=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==s[e+r]?t>=s[e]&&t<s[e+r]&&(h=e,p=s[e+r]-s[e]):t>=s[e]&&(h=e,p=s[s.length-1]-s[s.length-2])}let f=null,m=null;i.rewind&&(r.isBeginning?m=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:r.isEnd&&(f=0));let g=(t-s[h])/p,y=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(d>i.longSwipesMs){if(!i.longSwipes){r.slideTo(r.activeIndex);return}"next"===r.swipeDirection&&(g>=i.longSwipesRatio?r.slideTo(i.rewind&&r.isEnd?f:h+y):r.slideTo(h)),"prev"===r.swipeDirection&&(g>1-i.longSwipesRatio?r.slideTo(h+y):null!==m&&g<0&&Math.abs(g)>i.longSwipesRatio?r.slideTo(m):r.slideTo(h))}else{if(!i.shortSwipes){r.slideTo(r.activeIndex);return}r.navigation&&(c.target===r.navigation.nextEl||c.target===r.navigation.prevEl)?c.target===r.navigation.nextEl?r.slideTo(h+y):r.slideTo(h):("next"===r.swipeDirection&&r.slideTo(null!==f?f:h+y),"prev"===r.swipeDirection&&r.slideTo(null!==m?m:h))}}function eP(){let e=this,{params:t,el:r}=e;if(r&&0===r.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:n,allowSlidePrev:i,snapGrid:o}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=n,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function eI(e){let t=this;t.enabled&&!t.allowClick&&(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function eO(){let e;let t=this,{wrapperEl:r,rtlTranslate:n,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-r.scrollLeft:t.translate=-r.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let o=t.maxTranslate()-t.minTranslate();(e=0===o?0:(t.translate-t.minTranslate())/o)!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let eN=!1;function eD(){}let eR=(e,t)=>{let r=c(),{params:n,touchEvents:i,el:o,wrapperEl:a,device:s,support:l}=e,u=!!n.nested,d="on"===t?"addEventListener":"removeEventListener",h=t;if(l.touch){let t="touchstart"===i.start&&!!l.passiveListener&&!!n.passiveListeners&&{passive:!0,capture:!1};o[d](i.start,e.onTouchStart,t),o[d](i.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),o[d](i.end,e.onTouchEnd,t),i.cancel&&o[d](i.cancel,e.onTouchEnd,t)}else o[d](i.start,e.onTouchStart,!1),r[d](i.move,e.onTouchMove,u),r[d](i.end,e.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&o[d]("click",e.onClick,!0),n.cssMode&&a[d]("scroll",e.onScroll),n.updateOnWindowResize?e[h](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",eP,!0):e[h]("observerUpdate",eP,!0)},eL=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function eM(e,t){let r=[];
99return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(n=>{e[n]&&r.push(t+n)}):"string"==typeof e&&r.push(t+e)}),r}var ej={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function eB(e,t){return function(r={}){let n=Object.keys(r)[0],i=r[n];if("object"!=typeof i||null===i||(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===e[n]&&(e[n]={auto:!0}),!(n in e&&"enabled"in i))){eh(t,r);return}!0===e[n]&&(e[n]={enabled:!0}),"object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),eh(t,r)}}let eU={eventsEmitter:ek,update:{updateSize:function(){let e,t;let r=this,n=r.$el;e=void 0!==r.params.width&&null!==r.params.width?r.params.width:n[0].clientWidth,t=void 0!==r.params.height&&null!==r.params.height?r.params.height:n[0].clientHeight,0===e&&r.isHorizontal()||0===t&&r.isVertical()||(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),t=t-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(r,{width:e,height:t,size:r.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function r(e){return t.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}function n(e,t){return parseFloat(e.getPropertyValue(r(t))||0)}let i=t.params,{$wrapperEl:o,size:a,rtlTranslate:s,wrongRTL:l}=t,c=t.virtual&&i.virtual.enabled,u=c?t.virtual.slides.length:t.slides.length,d=o.children(`.${t.params.slideClass}`),h=c?t.virtual.slides.length:d.length,p=[],f=[],m=[],g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(t));let y=i.slidesOffsetAfter;"function"==typeof y&&(y=i.slidesOffsetAfter.call(t));let v=t.snapGrid.length,b=t.slidesGrid.length,_=i.spaceBetween,w=-g,S=0,k=0;if(void 0===a)return;"string"==typeof _&&_.indexOf("%")>=0&&(_=parseFloat(_.replace("%",""))/100*a),t.virtualSize=-_,s?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(ep(t.wrapperEl,"--swiper-centered-offset-before",""),ep(t.wrapperEl,"--swiper-centered-offset-after",""));let x=i.grid&&i.grid.rows>1&&t.grid;x&&t.grid.initSlides(h);let E="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let o=0;o<h;o+=1){e=0;let s=d.eq(o);if(x&&t.grid.updateSlide(o,s,h,r),"none"!==s.css("display")){if("auto"===i.slidesPerView){E&&(d[o].style[r("width")]="");let a=getComputedStyle(s[0]),l=s[0].style.transform,c=s[0].style.webkitTransform;if(l&&(s[0].style.transform="none"),c&&(s[0].style.webkitTransform="none"),i.roun
99dLengths)e=t.isHorizontal()?s.outerWidth(!0):s.outerHeight(!0);else{let t=n(a,"width"),r=n(a,"padding-left"),i=n(a,"padding-right"),o=n(a,"margin-left"),l=n(a,"margin-right"),c=a.getPropertyValue("box-sizing");if(c&&"border-box"===c)e=t+o+l;else{let{clientWidth:n,offsetWidth:a}=s[0];e=t+r+i+o+l+(a-n)}}l&&(s[0].style.transform=l),c&&(s[0].style.webkitTransform=c),i.roundLengths&&(e=Math.floor(e))}else e=(a-(i.slidesPerView-1)*_)/i.slidesPerView,i.roundLengths&&(e=Math.floor(e)),d[o]&&(d[o].style[r("width")]=`${e}px`);d[o]&&(d[o].swiperSlideSize=e),m.push(e),i.centeredSlides?(w=w+e/2+S/2+_,0===S&&0!==o&&(w=w-a/2-_),0===o&&(w=w-a/2-_),.001>Math.abs(w)&&(w=0),i.roundLengths&&(w=Math.floor(w)),k%i.slidesPerGroup==0&&p.push(w),f.push(w)):(i.roundLengths&&(w=Math.floor(w)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+e+_),t.virtualSize+=e+_,S=e,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,a)+y,s&&l&&("slide"===i.effect||"coverflow"===i.effect)&&o.css({width:`${t.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&o.css({[r("width")]:`${t.virtualSize+i.spaceBetween}px`}),x&&t.grid.updateWrapperSize(e,p,r),!i.centeredSlides){let e=[];for(let r=0;r<p.length;r+=1){let n=p[r];i.roundLengths&&(n=Math.floor(n)),p[r]<=t.virtualSize-a&&e.push(n)}p=e,Math.floor(t.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-a)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){let e=t.isHorizontal()&&s?"marginLeft":r("marginRight");d.filter((e,t)=>!i.cssMode||t!==d.length-1).css({[e]:`${_}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)});let t=(e-=i.spaceBetween)-a;p=p.map(e=>e<0?-g:e>t?t+y:e)}if(i.centerInsufficientSlides){let e=0;if(m.forEach(t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)}),(e-=i.spaceBetween)<a){let t=(a-e)/2;p.forEach((e,r)=>{p[r]=e-t}),f.forEach((e,r)=>{f[r]=e+t})}}if(Object.assign(t,{slides:d,snapGrid:p,slidesGrid:f,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){ep(t.wrapperEl,"--swiper-centered-offset-before",`${-p[0]}px`),ep(t.wrapperEl,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);let e=-t.snapGrid[0],r=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+r)}if(h!==u&&t.emit("slidesLengthChange"),p.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!i.cssMode&&("slide"===i.effect||"fade"===i.effect)){let e=`${i.containerModifierClass}backface-hidden`,r=t.$el.hasClass(e);h<=i.maxBackfaceHiddenSlides?r||t.$el.addClass(e):r&&t.$el.removeClass(e)}},updateAutoHeight:function(e){let t;let r=this,n=[],i=r.virtual&&r.params.virtual.enabled,o=0;"number"==typeof e?r.setTransition(e):!0===e&&r.setTransition(r.params.speed);let a=e=>i?r.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:r.slides.eq(e)[0];if("auto"!==r.params.slidesPerView&&r.params.slidesPerView>1){if(r.params.centeredSlides)(r.visibleSlides||ei([])).each(e=>{n.push(e)});else for(t=0;t<Math.ceil(r.params.slidesPerView);t+=1){let e=r.activeIndex+t;if(e>r.slides.length&&!i)break;n.push(a(e))}}else n.push(a(r.activeIndex));for(t=0;t<n.length;t+=1)if(void 0!==n[t]){let e=n[t].offsetHeight;o=e>o?e:o}(o||0===o)&&r.$wrapperEl.css("height",`${o}px`)},updateSlidesOffset:function(){let e=this,t=e.slides;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){let t=this,r=t.params,{slides:n,rtlTranslate:i,snapGrid:o}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),n.removeClass(r.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<n.length;e+=1){let s=n[e],l=s.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(l-=n[0].swiperSlideOffset);let c=(a+(r.centeredSlides?t.minTranslate():0)-l)/(s.swiperSlideSize+r.spaceBetween),u=(a-o[0]+(r.centeredSlides?t.minTranslate():0)-l)/(s.swiperSlideSize+r.spaceBetween),d=-(a-l),h=d+t.slidesSizesGrid[e];(d>=0&&d<t.size-1||h>1&&h<=t.size||d<=0&&h>=t.size)&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(e),n.eq(e).addClass(r.slideVisibleClass)),s.progress=i?-c:c,s.originalProgress=i?-u:u}t.visibleSlides=ei(t.visibleSlides)},updateProgress:function(e){let t=this;if(void 0===e){let r=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*r||0}let r=t.params,n=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:o,isEnd:a}=t,s=o,l=a;0===n?(i=0,o=!0,a=!0):(o=(i=(e-t.minTranslate())/n)<=0,a=i>=1),Object.assign(t,{progress:i,isBeginning:o,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),o&&!s&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(s&&!o||l&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){let e;let t=this,{slides:r,params:n,$wrapperEl:i,activeIndex:o,realIndex:a}=t,s=t.virtual&&n.virtual.enabled;r.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),(e=s?t.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${o}"]`):r.eq(o)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${a}"]`).addClass(n.slideDuplicateActiveClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${a}"]`).addClass(n.slideDuplicateActiveClass));let l=e.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&0===l.length&&(l=r.eq(0)).addClass(n.slideNextClass);let c=e.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=r.eq(-1)).addClass(n.slidePrevClass),n.loop&&(l.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){let t;let r=this,n=r.rtlTranslate?r.translate:-r.translate,{slidesGrid:i,snapGrid:o,params:a,activeIndex:s,realIndex:l,snapIndex:c}=r,u=e;if(void 0===u){for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?n>=i[e]&&n<i[e+1]-(i[e+1]-i[e])/2?u=e:n>=i[e]&&n<i[e+1]&&(u=e+1):n>=i[e]&&(u=e);a.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(o.indexOf(n)>=0)t=o.indexOf(n);else{let e=Math.min(a.slidesPerGroupSkip,u);t=e+Math.floor((u-e)/a.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),u===s){t!==c&&(r.snapIndex=t,r.emit("snapIndexChange"));return}let d=parseInt(r.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(r,{snapIndex:t,realIndex:d,previousIndex:s,activeIndex:u}),r.emit("activeIndexChange"),r.emit("snapIndexChange"),l!==d&&r.emit("realIndexChange"),(r.initialized||r.params.runCallbacksOnInit)&&r.emit("slideChange")},updateClickedSlide:function(e){let t;let r=this,n=r.params,i=ei(e).closest(`.${n.slideClass}`)[0],o=!1;if(i){for(let e=0;e<r.slides.length;e+=1)if(r.slides[e]===i){o=!0,t=e;break}}if(i&&o)r.clickedSlide=i,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(ei(i).attr("data-swiper-slide-index"),10):r.clickedIndex=t;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}n.slideToClickedSlide&&void 0!==r.clickedIndex&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let t=this,{params:r,rtlTranslate:n,translate:i,$wrapperEl:o}=t;if(r.virtualTranslate)return n?-i:i;if(r.cssMode)return i;let a=ec(o[0],e);return n&&(a=-a),a||0},setTranslate:function(e,t){let r;let n=this,{rtlTranslate:i,params:o,$wrapperEl:a,wrapperEl:s,progress:l}=n,c=0,u=0,d=0;n.isHorizontal()?c=i?-e:e:u=e,o.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),o.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-u:o.virtualTranslate||a.transform(`translate3d(${c}
99px, ${u}px, ${d}px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:u;let h=n.maxTranslate()-n.minTranslate();(r=0===h?0:(e-n.minTranslate())/h)!==l&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,r=!0,n=!0,i){let o;let a=this,{params:s,wrapperEl:l}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;let c=a.minTranslate(),u=a.maxTranslate();if(o=n&&e>c?c:n&&e<u?u:e,a.updateProgress(o),s.cssMode){let e=a.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-o;else{if(!a.support.smoothScroll)return ef({swiper:a,targetPosition:-o,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-o,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(o),r&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(o),r&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,r&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){let r=this;r.params.cssMode||r.$wrapperEl.transition(e),r.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),ex({swiper:r,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let r=this,{params:n}=r;r.animating=!1,n.cssMode||(r.setTransition(0),ex({swiper:r,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t=this.params.speed,r=!0,n,i){let o;if("number"!=typeof e&&"string"!=typeof e)throw Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){let t=parseInt(e,10);if(!isFinite(t))throw Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}let a=this,s=e;s<0&&(s=0);let{params:l,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:h,rtlTranslate:p,wrapperEl:f,enabled:m}=a;if(a.animating&&l.preventInteractionOnTransition||!m&&!n&&!i)return!1;let g=Math.min(a.params.slidesPerGroupSkip,s),y=g+Math.floor((s-g)/a.params.slidesPerGroup);y>=c.length&&(y=c.length-1);let v=-c[y];if(l.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){let t=-Math.floor(100*v),r=Math.floor(100*u[e]),n=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=r&&t<n-(n-r)/2?s=e:t>=r&&t<n&&(s=e+1):t>=r&&(s=e)}if(a.initialized&&s!==h&&(!a.allowSlideNext&&v<a.translate&&v<a.minTranslate()||!a.allowSlidePrev&&v>a.translate&&v>a.maxTranslate()&&(h||0)!==s))return!1;if(s!==(d||0)&&r&&a.emit("beforeSlideChangeStart"),a.updateProgress(v),o=s>h?"next":s<h?"prev":"reset",p&&-v===a.translate||!p&&v===a.translate)return a.updateActiveIndex(s),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(v),"reset"!==o&&(a.transitionStart(r,o),a.transitionEnd(r,o)),!1;if(l.cssMode){let e=a.isHorizontal(),r=p?v:-v;if(0===t){let t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=r,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._swiperImmediateVirtual=!1})}else{if(!a.support.smoothScroll)return ef({swiper:a,targetPosition:r,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:r,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,n),a.transitionStart(r,o),0===t?a.transitionEnd(r,o):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(r,o))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd)),!0}
99,slideToLoop:function(e=0,t=this.params.speed,r=!0,n){if("string"==typeof e){let t=parseInt(e,10);if(!isFinite(t))throw Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}let i=this,o=e;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,t,r,n)},slideNext:function(e=this.params.speed,t=!0,r){let n=this,{animating:i,enabled:o,params:a}=n;if(!o)return n;let s=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(s=Math.max(n.slidesPerViewDynamic("current",!0),1));let l=n.activeIndex<a.slidesPerGroupSkip?1:s;if(a.loop){if(i&&a.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return a.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+l,e,t,r)},slidePrev:function(e=this.params.speed,t=!0,r){let n=this,{params:i,animating:o,snapGrid:a,slidesGrid:s,rtlTranslate:l,enabled:c}=n;if(!c)return n;if(i.loop){if(o&&i.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let d=u(l?n.translate:-n.translate),h=a.map(e=>u(e)),p=a[h.indexOf(d)-1];if(void 0===p&&i.cssMode){let e;a.forEach((t,r)=>{d>=t&&(e=r)}),void 0!==e&&(p=a[e>0?e-1:e])}let f=0;if(void 0!==p&&((f=s.indexOf(p))<0&&(f=n.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(f=Math.max(f=f-n.slidesPerViewDynamic("previous",!0)+1,0))),i.rewind&&n.isBeginning){let i=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(i,e,t,r)}return n.slideTo(f,e,t,r)},slideReset:function(e=this.params.speed,t=!0,r){let n=this;return n.slideTo(n.activeIndex,e,t,r)},slideToClosest:function(e=this.params.speed,t=!0,r,n=.5){let i=this,o=i.activeIndex,a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){let e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*n&&(o+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*n&&(o-=i.params.slidesPerGroup)}return o=Math.min(o=Math.max(o,0),i.slidesGrid.length-1),i.slideTo(o,e,t,r)},slideToClickedSlide:function(){let e;let t=this,{params:r,$wrapperEl:n}=t,i="auto"===r.slidesPerView?t.slidesPerViewDynamic():r.slidesPerView,o=t.clickedIndex;if(r.loop){if(t.animating)return;e=parseInt(ei(t.clickedSlide).attr("data-swiper-slide-index"),10),r.centeredSlides?o<t.loopedSlides-i/2||o>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=n.children(`.${r.slideClass}[data-swiper-slide-index="${e}"]:not(.${r.slideDuplicateClass})`).eq(0).index(),ea(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=n.children(`.${r.slideClass}[data-swiper-slide-index="${e}"]:not(.${r.slideDuplicateClass})`).eq(0).index(),ea(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(){let e=this,t=c(),{params:r,$wrapperEl:n}=e,i=n.children().length>0?ei(n.children()[0].parentNode):n;i.children(`.${r.slideClass}.${r.slideDuplicateClass}`).remove();let o=i.children(`.${r.slideClass}`);if(r.loopFillGroupWithBlank){let e=r.slidesPerGroup-o.length%r.slidesPerGroup;if(e!==r.slidesPerGroup){for(let n=0;n<e;n+=1){let e=ei(t.createElement("div")).addClass(`${r.slideClass} ${r.slideBlankClass}`);i.append(e)}o=i.children(`.${r.slideClass}`)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=o.length),e.loopedSlides=Math.ceil(parseFloat(r.loopedSlides||r.slidesPerView,10)),e.loopedSlides+=r.loopAdditionalSlides,e.loopedSlides>o.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=o.length);let a=[],s=[];o.each((e,t)=>{ei(e).attr("data-swiper-slide-index",t)});for(let t=0;t<e.loopedSlides;t+=1){let e=t-Math.floor(t/o.length)*o.length;s.push(o.eq(e)[0]),a.unshift(o.eq(o.length-e-1)[0])}for(let e=0;e<s.length;e+=1)i.append(ei(s[e].cloneNode(!0)).addClass(r.slideDuplicateClass));for(let e=a.length-1;e>=0;e-=1)i.prepend(ei(a[e].cloneNode(!0)).addClass(r.slideDuplicateClass))},loopFix:function(){let e;let t=this;t.emit("beforeLoopFix");let{activeIndex:r,slides:n,loopedSlides:i,allowSlidePrev:o,allowSlideNext:a,snapGrid:s,rtlTranslate:l}=t;t.allowSlidePrev=!0,t.allowSlideNext=!0;let c=-s[r]-t.getTranslate();r<i?(e=n.length-3*i+r+i,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)):r>=n.length-i&&(e=-n.length+r+i+i,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)),t.allowSlidePrev=o,t.allowSlideNext=a,t.emit("loopFix")},loopDestroy:function(){let e=this,{$wrapperEl:t,params:r,slides:n}=e;t.children(`.${r.slideClass}.${r.slideDuplicateClass},.${r.slideClass}.${r.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){let t=this;
99if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let r="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;r.style.cursor="move",r.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){let e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){let e=this,t=c(),{params:r,support:n}=e;e.onTouchStart=eT.bind(e),e.onTouchMove=eA.bind(e),e.onTouchEnd=eC.bind(e),r.cssMode&&(e.onScroll=eO.bind(e)),e.onClick=eI.bind(e),n.touch&&!eN&&(t.addEventListener("touchstart",eD),eN=!0),eR(e,"on")},detachEvents:function(){let e=this;eR(e,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{activeIndex:t,initialized:r,loopedSlides:n=0,params:i,$el:o}=e,a=i.breakpoints;if(!a||a&&0===Object.keys(a).length)return;let s=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;let l=(s in a?a[s]:void 0)||e.originalParams,c=eL(e,i),u=eL(e,l),d=i.enabled;c&&!u?(o.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(o.addClass(`${i.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===i.grid.fill)&&o.addClass(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{let r=i[t]&&i[t].enabled,n=l[t]&&l[t].enabled;r&&!n&&e[t].disable(),!r&&n&&e[t].enable()});let h=l.direction&&l.direction!==i.direction,p=i.loop&&(l.slidesPerView!==i.slidesPerView||h);h&&r&&e.changeDirection(),eh(e.params,l);let f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!f?e.disable():!d&&f&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),p&&r&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",r){if(!e||"container"===t&&!r)return;let n=!1,i=d(),o="window"===t?i.innerHeight:r.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:o*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){let{point:o,value:s}=a[e];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(n=o):s<=r.clientWidth&&(n=o)}return n||"max"}},checkOverflow:{checkOverflow:function(){let e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:n}=r;if(n){let t=e.slides.length-1,r=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>r}else e.isLocked=1===e.snapGrid.length;!0===r.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===r.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let e=this,{classNames:t,params:r,rtl:n,$el:i,device:o,support:a}=e,s=eM(["initialized",r.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&"column"===r.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...s),i.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){let e=this,{$el:t,classNames:r}=e;t.removeClass(r.join(" ")),e.emitContainerClasses()}},images:{loadImage:function(e,t,r,n,i,o){let a;let s=d();function l(){o&&o()}ei(e).parent("picture")[0]||e.complete&&i?l():t?((a=new s.Image).onload=l,a.onerror=l,n&&(a.sizes=n),r&&(a.srcset=r),t&&(a.src=t)):l()},preloadImages:function(){let e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let r=0;r<e.imagesToLoad.length;r+=1){let n=e.imagesToLoad[r];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}}},eF={};class eH{constructor(...e){let t,r;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?r=e[0]:[t,r]=e,r||(r={}),r=eh({},r),t&&!r.el&&(r.el=t),r.el&&ei(r.el).length>1){let e=[];return ei(r.el).each(t=>{let n=eh({},r,{el:t});e.push(new eH(n))}),e}let n=this;n.__swiper__=!0,n.support=eg(),n.device=ev({userAgent:r.userAgent}),n.browser=e_(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],r.modules&&Array.isArray(r.modules)&&n.modules.push(...r.modules);let i={};
99n.modules.forEach(e=>{e({swiper:n,extendParams:eB(r,i),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});let o=eh({},ej,i);return n.params=eh({},o,eF,r),n.originalParams=eh({},n.params),n.passedParams=eh({},r),n.params&&n.params.on&&Object.keys(n.params.on).forEach(e=>{n.on(e,n.params.on[e])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=ei,Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:ei(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){let e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},n.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:es(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){let r=this;e=Math.min(Math.max(e,0),1);let n=r.minTranslate(),i=(r.maxTranslate()-n)*e+n;r.translateTo(i,void 0===t?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.each(r=>{let n=e.getSlideClasses(r);t.push({slideEl:r,classNames:n}),e.emit("_slideClass",r,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let r=this,{params:n,slides:i,slidesGrid:o,slidesSizesGrid:a,size:s,activeIndex:l}=r,c=1;if(n.centeredSlides){let e,t=i[l].swiperSlideSize;for(let r=l+1;r<i.length;r+=1)i[r]&&!e&&(t+=i[r].swiperSlideSize,c+=1,t>s&&(e=!0));for(let r=l-1;r>=0;r-=1)i[r]&&!e&&(t+=i[r].swiperSlideSize,c+=1,t>s&&(e=!0))}else if("current"===e)for(let e=l+1;e<i.length;e+=1)(t?o[e]+a[e]-o[l]<s:o[e]-o[l]<s)&&(c+=1);else for(let e=l-1;e>=0;e-=1)o[l]-o[e]<s&&(c+=1);return c}update(){let e;let t=this;if(!t||t.destroyed)return;let{snapGrid:r,params:n}=t;function i(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(i(),t.params.autoHeight&&t.updateAutoHeight()):(e=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||i(),n.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let r=this,n=r.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(r.$el.removeClass(`${r.params.containerModifierClass}${n}`).addClass(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.each(t=>{"vertical"===e?t.style.width="":t.style.height=""}
99),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){let t=this;(!t.rtl||"rtl"!==e)&&(t.rtl||"ltr"!==e)&&(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){let t=this;if(t.mounted)return!0;let r=ei(e||t.params.el);if(!(e=r[0]))return!1;e.swiper=t;let n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,i=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){let t=ei(e.shadowRoot.querySelector(n()));return t.children=e=>r.children(e),t}return r.children?r.children(n()):ei(r).children(n())})();if(0===i.length&&t.params.createElements){let e=c().createElement("div");i=ei(e),e.className=t.params.wrapperClass,r.append(e),r.children(`.${t.params.slideClass}`).each(e=>{i.append(e)})}return Object.assign(t,{$el:r,el:e,$wrapperEl:i,wrapperEl:i[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===i.css("display")}),!0}init(e){let t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){let r=this,{params:n,$el:i,$wrapperEl:o,slides:a}=r;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),t&&(r.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(e=>{r.off(e)}),!1!==e&&(r.$el[0].swiper=null,eo(r)),r.destroyed=!0),null}static extendDefaults(e){eh(eF,e)}static get extendedDefaults(){return eF}static get defaults(){return ej}static installModule(e){eH.prototype.__modules__||(eH.prototype.__modules__=[]);let t=eH.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>eH.installModule(e)):eH.installModule(e),eH}}Object.keys(eU).forEach(e=>{Object.keys(eU[e]).forEach(t=>{eH.prototype[t]=eU[e][t]})}),eH.use([ew,eS]);var ez=eH;function e$(e,t,r,n){let i=c();return e.params.createElements&&Object.keys(n).forEach(o=>{if(!r[o]&&!0===r.auto){let a=e.$el.children(`.${n[o]}`)[0];a||((a=i.createElement("div")).className=n[o],e.$el.append(a)),r[o]=a,t[o]=a}}),r}function eq({swiper:e,extendParams:t,on:r,emit:n}){function i(t){let r;return t&&(r=ei(t),e.params.uniqueNavElements&&"string"==typeof t&&r.length>1&&1===e.$el.find(t).length&&(r=e.$el.find(t))),r}function o(t,r){let n=e.params.navigation;t&&t.length>0&&(t[r?"addClass":"removeClass"](n.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=r),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](n.lockClass))}function a(){if(e.params.loop)return;let{$nextEl:t,$prevEl:r}=e.navigation;o(r,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function c(){let t=e.params.navigation;if(e.params.navigation=e$(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let r=i(t.nextEl),n=i(t.prevEl);r&&r.length>0&&r.on("click",l),n&&n.length>
990&&n.on("click",s),Object.assign(e.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:n,prevEl:n&&n[0]}),!e.enabled&&(r&&r.addClass(t.lockClass),n&&n.addClass(t.lockClass))}function u(){let{$nextEl:t,$prevEl:r}=e.navigation;t&&t.length&&(t.off("click",l),t.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",s),r.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},r("init",()=>{!1===e.params.navigation.enabled?h():(c(),a())}),r("toEdge fromEdge lock unlock",()=>{a()}),r("destroy",()=>{u()}),r("enable disable",()=>{let{$nextEl:t,$prevEl:r}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}),r("click",(t,r)=>{let{$nextEl:i,$prevEl:o}=e.navigation,a=r.target;if(e.params.navigation.hideOnClick&&!ei(a).is(o)&&!ei(a).is(i)){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;i?t=i.hasClass(e.params.navigation.hiddenClass):o&&(t=o.hasClass(e.params.navigation.hiddenClass)),!0===t?n("navigationShow"):n("navigationHide"),i&&i.toggleClass(e.params.navigation.hiddenClass),o&&o.toggleClass(e.params.navigation.hiddenClass)}});let d=()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),a()},h=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:d,disable:h,update:a,init:c,destroy:u})}},50797:function(e){"use strict";e.exports=JSON.parse('{"apps":{"cineverse":{"title":"Subscriber Benefits","columns":{"free":true,"registered":true,"premium":true},"features":[{"label":"Cross Device Access","free":true,"registered":true,"premium":true},{"label":"Continue Watching","free":false,"registered":true,"premium":true},{"label":"Favorites List","free":false,"registered":true,"premium":true},{"label":"Watch Unrated Content","free":false,"registered":true,"premium":true},{"label":"Watch Uncut Content","free":false,"registered":false,"premium":true},{"label":"Watch 4K Content","free":false,"registered":false,"premium":true},{"label":"Exclusive Content","free":false,"registered":false,"premium":true}]},"gorillacomedyplus":{"title":"Member Benefits","columns":{"free":false,"registered":true,"premium":true},"features":[{"label":"Discover comedians you love","registered":true,"premium":true},{"label":"Get updates on new releases","registered":true,"premium":true},{"label":"Explore the platform & build your watchlist","registered":true,"premium":true},{"label":"Watch full comedy specials ad free","registered":false,"premium":true},{"label":"Early access to exclusive premieres and new drops","registered":false,"premium":true},{"label":"Unlimited streaming across TV, phone, web and tablet","registered":false,"premium":true},{"label":"Access the full Gorilla Comedy+ catalog","registered":false,"premium":true},{"label":"Support comedians directly through your membership","registered":false,"premium":true}]}}}')},66825:function(e){"use strict";e.exports=JSON.parse('{"ver":"2.0.260827","pmode":"live"}')},82696:function(e){"use strict";e.exports=JSON.parse('{"name":"openid-client","version":"5.6.5","description":"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs","keywords":["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],"homepage":"https://github.com/panva/node-openid-client","repository":"panva/node-openid-client","funding":{"url":"https://github.com/sponsors/panva"},"license":"MIT","author":"Filip Skokan <[email protected]>","exports":{"types":"./types/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"},"main":"./lib/index.js","types":"./types/index.d.ts","files":["lib","types/index.d.ts"],"scripts":{"format":"npx prettier --loglevel silent --write ./lib ./test ./certification ./types","test":"mocha test/**/*.test.js"}
99,"dependencies":{"jose":"^4.15.5","lru-cache":"^6.0.0","object-hash":"^2.2.0","oidc-token-hash":"^5.0.3"},"devDependencies":{"@types/node":"^16.18.87","@types/passport":"^1.0.16","base64url":"^3.0.1","chai":"^4.4.1","mocha":"^10.3.0","nock":"^13.5.4","prettier":"^2.8.8","readable-mock-req":"^0.2.2","sinon":"^9.2.4","timekeeper":"^2.3.1"},"standard-version":{"scripts":{"postchangelog":"sed -i \'\' -e \'s/### \\\\[/## [/g\' CHANGELOG.md"},"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Fixes"},{"type":"chore","hidden":true},{"type":"docs","hidden":true},{"type":"style","hidden":true},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","hidden":true}]}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(91118),t(43079)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.