var Purs_EntryPoints_Livestream_Livestream=(()=>{var MK=Object.create;var _g=Object.defineProperty;var AK=Object.getOwnPropertyDescriptor;var LK=Object.getOwnPropertyNames;var PK=Object.getPrototypeOf,xK=Object.prototype.hasOwnProperty;var RL=e=>_g(e,"__esModule",{value:!0});var NK=(e,n)=>()=>(e&&(n=e(e=0)),n);var xe=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),yL=(e,n)=>{RL(e);for(var a in n)_g(e,a,{get:n[a],enumerable:!0})},jK=(e,n,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of LK(n))!xK.call(e,t)&&t!=="default"&&_g(e,t,{get:()=>n[t],enumerable:!(a=AK(n,t))||a.enumerable});return e},Tu=e=>jK(RL(_g(e!=null?MK(PK(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var hT={};yL(hT,{Children:()=>xf,Component:()=>Nf,Fragment:()=>dT,Suspense:()=>zee,cloneElement:()=>_m,createContext:()=>pT,createElement:()=>ct,createRef:()=>SR,default:()=>ka,forwardRef:()=>pi,isValidElement:()=>mT,lazy:()=>$ee,useCallback:()=>pm,useContext:()=>Vee,useEffect:()=>Ft,useImperativeHandle:()=>ns,useLayoutEffect:()=>dm,useMemo:()=>mm,useReducer:()=>Qee,useRef:()=>ut,useState:()=>Gl});var ka,xf,_m,Nf,pT,ct,SR,pi,dT,mT,$ee,zee,pm,Vee,Ft,ns,dm,mm,Qee,ut,Gl,Ja=NK(()=>{ka=window.React,{Children:xf,cloneElement:_m,Component:Nf,createContext:pT,createElement:ct,createRef:SR,forwardRef:pi,Fragment:dT,isValidElement:mT,lazy:$ee,Suspense:zee,useCallback:pm,useContext:Vee,useEffect:Ft,useImperativeHandle:ns,useLayoutEffect:dm,useMemo:mm,useReducer:Qee,useRef:ut,useState:Gl}=window.React});var DT=xe((V$e,dx)=>{"use strict";var px=Object.getOwnPropertySymbols,Kee=Object.prototype.hasOwnProperty,Yee=Object.prototype.propertyIsEnumerable;function Xee(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Zee(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var n={},a=0;a<10;a++)n["_"+String.fromCharCode(a)]=a;var t=Object.getOwnPropertyNames(n).map(function(u){return n[u]});if(t.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(u){o[u]=u}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}dx.exports=Zee()?Object.assign:function(e,n){for(var a,t=Xee(e),o,u=1;u{"use strict";var gT=DT(),N_=60103,mx=60106;pt.Fragment=60107;pt.StrictMode=60108;pt.Profiler=60114;var hx=60109,Dx=60110,gx=60112;pt.Suspense=60113;var Rx=60115,yx=60116;typeof Symbol=="function"&&Symbol.for&&(Ki=Symbol.for,N_=Ki("react.element"),mx=Ki("react.portal"),pt.Fragment=Ki("react.fragment"),pt.StrictMode=Ki("react.strict_mode"),pt.Profiler=Ki("react.profiler"),hx=Ki("react.provider"),Dx=Ki("react.context"),gx=Ki("react.forward_ref"),pt.Suspense=Ki("react.suspense"),Rx=Ki("react.memo"),yx=Ki("react.lazy"));var Ki,wx=typeof Symbol=="function"&&Symbol.iterator;function ene(e){return e===null||typeof e!="object"?null:(e=wx&&e[wx]||e["@@iterator"],typeof e=="function"?e:null)}function hm(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a{"use strict";Ax.exports=Mx()});var nN=xe(O_=>{"use strict";var Ml=DT(),ts=IT();function sr(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;aRm;Rm++)Co[Rm]=Rm+1;var Co,Rm;Co[15]=0;var ine=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ux=Object.prototype.hasOwnProperty,kx={},Bx={};function Hx(e){return Ux.call(Bx,e)?!0:Ux.call(kx,e)?!1:ine.test(e)?Bx[e]=!0:(kx[e]=!0,!1)}function lne(e,n,a,t){if(a!==null&&a.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return t?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cne(e,n,a,t){if(n===null||typeof n=="undefined"||lne(e,n,a,t))return!0;if(t)return!1;if(a!==null)switch(a.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function pu(e,n,a,t,o,u,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=t,this.attributeNamespace=o,this.mustUseProperty=a,this.propertyName=e,this.type=n,this.sanitizeURL=u,this.removeEmptyString=i}var Fo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fo[e]=new pu(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Fo[n]=new pu(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fo[e]=new pu(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fo[e]=new pu(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Fo[e]=new pu(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fo[e]=new pu(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fo[e]=new pu(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fo[e]=new pu(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fo[e]=new pu(e,5,!1,e.toLowerCase(),null,!1,!1)});var PT=/[\-:]([a-z])/g;function xT(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(PT,xT);Fo[n]=new pu(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(PT,xT);Fo[n]=new pu(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(PT,xT);Fo[n]=new pu(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fo[e]=new pu(e,1,!1,e.toLowerCase(),null,!1,!1)});Fo.xlinkHref=new pu("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fo[e]=new pu(e,1,!1,e.toLowerCase(),null,!0,!0)});var sne=/["'&<>]/;function jf(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var n=sne.exec(e);if(n){var a="",t,o=0;for(t=n.index;tNR))throw Error(sr(301));if(e===cc)if(xR=!0,e={action:a,next:null},lv===null&&(lv=new Map),a=lv.get(n),a===void 0)lv.set(n,e);else{for(n=a;n.next!==null;)n=n.next;n.next=e}}function jT(){}var Uf=null,dne={readContext:function(e){var n=Uf.threadID;return gm(e,n),e[n]},useContext:function(e){Of();var n=Uf.threadID;return gm(e,n),e[n]},useMemo:Vx,useReducer:zx,useRef:function(e){cc=Of(),Kt=NT();var n=Kt.memoizedState;return n===null?(e={current:e},Kt.memoizedState=e):n},useState:function(e){return zx($x,e)},useLayoutEffect:function(){},useCallback:function(e,n){return Vx(function(){return e},n)},useImperativeHandle:jT,useEffect:jT,useDebugValue:jT,useDeferredValue:function(e){return Of(),e},useTransition:function(){return Of(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(Uf.identifierPrefix||"")+"R:"+(Uf.uniqueID++).toString(36)},useMutableSource:function(e,n){return Of(),n(e._source)}},Qx={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Kx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Yx={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},mne=Ml({menuitem:!0},Yx),wm={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hne=["Webkit","ms","Moz","O"];Object.keys(wm).forEach(function(e){hne.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),wm[n]=wm[e]})});var Dne=/([A-Z])/g,gne=/^ms-/,cv=ts.Children.toArray,OT=one.ReactCurrentDispatcher,Rne={listing:!0,pre:!0,textarea:!0},yne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Xx={},UT={};function wne(e){if(e==null)return e;var n="";return ts.Children.forEach(e,function(a){a!=null&&(n+=a)}),n}var bne=Object.prototype.hasOwnProperty,Ene={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Zx(e,n){if(e===void 0)throw Error(sr(152,Dm(n)||"Component"))}function Ine(e,n,a){function t(i,l){var s=l.prototype&&l.prototype.isReactComponent,R=une(l,n,a,s),d=[],y=!1,I={isMounted:function(){return!1},enqueueForceUpdate:function(){if(d===null)return null},enqueueReplaceState:function(Z,oe){y=!0,d=[oe]},enqueueSetState:function(Z,oe){if(d===null)return null;d.push(oe)}};if(s){if(s=new l(i.props,R,I),typeof l.getDerivedStateFromProps=="function"){var b=l.getDerivedStateFromProps.call(null,i.props,s.state);b!=null&&(s.state=Ml({},s.state,b))}}else if(cc={},s=l(i.props,R,I),s=Wx(l,i.props,s,R),s==null||s.render==null){e=s,Zx(e,l);return}if(s.props=i.props,s.context=R,s.updater=I,I=s.state,I===void 0&&(s.state=I=null),typeof s.UNSAFE_componentWillMount=="function"||typeof s.componentWillMount=="function")if(typeof s.componentWillMount=="function"&&typeof l.getDerivedStateFromProps!="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&typeof l.getDerivedStateFromProps!="function"&&s.UNSAFE_componentWillMount(),d.length){I=d;var T=y;if(d=null,y=!1,T&&I.length===1)s.state=I[0];else{b=T?I[0]:s.state;var L=!0;for(T=T?1:0;T=l))throw Error(sr(304));var s=new Uint16Array(l);for(s.set(i),Co=s,Co[0]=u+1,i=u;i=s.children.length){var R=s.footer;if(R!==""&&(this.previousWasTextNode=!1),this.stack.pop(),s.type==="select")this.currentSelectValue=null;else if(s.type!=null&&s.type.type!=null&&s.type.type.$$typeof===AR)this.popProvider(s.type);else if(s.type===LR){this.suspenseDepth--;var d=u.pop();if(i){i=!1;var y=s.fallbackFrame;if(!y)throw Error(sr(303));this.stack.push(y),u[this.suspenseDepth]+="";continue}else u[this.suspenseDepth]+=d}u[this.suspenseDepth]+=R}else{var I=s.children[s.childIndex++],b="";try{b+=this.render(I,s.context,s.domNamespace)}catch(T){throw T!=null&&typeof T.then=="function"?Error(sr(294)):T}finally{}u.length<=this.suspenseDepth&&u.push(""),u[this.suspenseDepth]+=b}}return u[0]}finally{OT.current=o,Uf=t,Jx()}},n.render=function(a,t,o){if(typeof a=="string"||typeof a=="number")return o=""+a,o===""?"":this.makeStaticMarkup?jf(o):this.previousWasTextNode?""+jf(o):(this.previousWasTextNode=!0,jf(o));if(t=Ine(a,t,this.threadID),a=t.child,t=t.context,a===null||a===!1)return"";if(!ts.isValidElement(a)){if(a!=null&&a.$$typeof!=null)throw o=a.$$typeof,Error(o===TT?sr(257):sr(258,o.toString()));return a=cv(a),this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),""}var u=a.type;if(typeof u=="string")return this.renderDOM(a,t,o);switch(u){case jx:case Nx:case ST:case CT:case MT:case MR:return a=cv(a.props.children),this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),"";case LR:throw Error(sr(294));case xx:throw Error(sr(343))}if(typeof u=="object"&&u!==null)switch(u.$$typeof){case GT:cc={};var i=u.render(a.props,a.ref);return i=Wx(u.render,a.props,i,a.ref),i=cv(i),this.stack.push({type:null,domNamespace:o,children:i,childIndex:0,context:t,footer:""}),"";case AT:return a=[ts.createElement(u.type,Ml({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),"";case AR:return u=cv(a.props.children),o={type:a,domNamespace:o,children:u,childIndex:0,context:t,footer:""},this.pushProvider(a),this.stack.push(o),"";case FT:u=a.type,i=a.props;var l=this.threadID;return gm(u,l),u=cv(i.children(u[l])),this.stack.push({type:a,domNamespace:o,children:u,childIndex:0,context:t,footer:""}),"";case Px:throw Error(sr(338));case LT:return u=a.type,i=u._init,u=i(u._payload),a=[ts.createElement(u,Ml({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),""}throw Error(sr(130,u==null?u:typeof u,""))},n.renderDOM=function(a,t,o){var u=a.type.toLowerCase();if(o===Qx.html&&Kx(u),!Xx.hasOwnProperty(u)){if(!yne.test(u))throw Error(sr(65,u));Xx[u]=!0}var i=a.props;if(u==="input")i=Ml({type:void 0},i,{defaultChecked:void 0,defaultValue:void 0,value:i.value!=null?i.value:i.defaultValue,checked:i.checked!=null?i.checked:i.defaultChecked});else if(u==="textarea"){var l=i.value;if(l==null){l=i.defaultValue;var s=i.children;if(s!=null){if(l!=null)throw Error(sr(92));if(Array.isArray(s)){if(!(1>=s.length))throw Error(sr(93));s=s[0]}l=""+s}l==null&&(l="")}i=Ml({},i,{value:void 0,children:""+l})}else if(u==="select")this.currentSelectValue=i.value!=null?i.value:i.defaultValue,i=Ml({},i,{value:void 0});else if(u==="option"){s=this.currentSelectValue;var R=wne(i.children);if(s!=null){var d=i.value!=null?i.value+"":R;if(l=!1,Array.isArray(s)){for(var y=0;y":(oe+=">",l="");e:{if(s=i.dangerouslySetInnerHTML,s!=null){if(s.__html!=null){s=s.__html;break e}}else if(s=i.children,typeof s=="string"||typeof s=="number"){s=jf(s);break e}s=null}return s!=null?(i=[],Rne.hasOwnProperty(u)&&s.charAt(0)===` `&&(oe+=` `),oe+=s):i=cv(i.children),a=a.type,o=o==null||o==="http://www.w3.org/1999/xhtml"?Kx(a):o==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":o,this.stack.push({domNamespace:o,type:u,children:i,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,oe},e}();O_.renderToNodeStream=function(){throw Error(sr(207))};O_.renderToStaticMarkup=function(e,n){e=new eN(e,!0,n);try{return e.read(1/0)}finally{e.destroy()}};O_.renderToStaticNodeStream=function(){throw Error(sr(208))};O_.renderToString=function(e,n){e=new eN(e,!1,n);try{return e.read(1/0)}finally{e.destroy()}};O_.version="17.0.2"});var tN=xe((X$e,aN)=>{"use strict";aN.exports=nN()});var Y7=xe((Uy,IC)=>{(function(n,a){typeof Uy=="object"&&typeof IC=="object"?IC.exports=a():typeof define=="function"&&define.amd?define([],a):typeof Uy=="object"?Uy.Pusher=a():n.Pusher=a()})(window,function(){return function(e){var n={};function a(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=n,a.d=function(t,o,u){a.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:u})},a.r=function(t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,o){if(o&1&&(t=a(t)),o&8||o&4&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),o&2&&typeof t!="string")for(var i in t)a.d(u,i,function(l){return t[l]}.bind(null,i));return u},a.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(o,"a",o),o},a.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},a.p="",a(a.s=2)}([function(e,n,a){"use strict";var t=this&&this.__extends||function(){var b=function(T,L){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,$){O.__proto__=$}||function(O,$){for(var z in $)$.hasOwnProperty(z)&&(O[z]=$[z])},b(T,L)};return function(T,L){b(T,L);function O(){this.constructor=T}T.prototype=L===null?Object.create(L):(O.prototype=L.prototype,new O)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=256,u=function(){function b(T){T===void 0&&(T="="),this._paddingCharacter=T}return b.prototype.encodedLength=function(T){return this._paddingCharacter?(T+2)/3*4|0:(T*8+5)/6|0},b.prototype.encode=function(T){for(var L="",O=0;O>>3*6&63),L+=this._encodeByte($>>>2*6&63),L+=this._encodeByte($>>>1*6&63),L+=this._encodeByte($>>>0*6&63)}var z=T.length-O;if(z>0){var $=T[O]<<16|(z===2?T[O+1]<<8:0);L+=this._encodeByte($>>>3*6&63),L+=this._encodeByte($>>>2*6&63),z===2?L+=this._encodeByte($>>>1*6&63):L+=this._paddingCharacter||"",L+=this._paddingCharacter||""}return L},b.prototype.maxDecodedLength=function(T){return this._paddingCharacter?T/4*3|0:(T*6+7)/8|0},b.prototype.decodedLength=function(T){return this.maxDecodedLength(T.length-this._getPaddingLength(T))},b.prototype.decode=function(T){if(T.length===0)return new Uint8Array(0);for(var L=this._getPaddingLength(T),O=T.length-L,$=new Uint8Array(this.maxDecodedLength(O)),z=0,Z=0,oe=0,te=0,ve=0,ge=0,nn=0;Z>>4,$[z++]=ve<<4|ge>>>2,$[z++]=ge<<6|nn,oe|=te&o,oe|=ve&o,oe|=ge&o,oe|=nn&o;if(Z>>4,oe|=te&o,oe|=ve&o),Z>>2,oe|=ge&o),Z>>8&0-65-26+97,L+=51-T>>>8&26-97-52+48,L+=61-T>>>8&52-48-62+43,L+=62-T>>>8&62-43-63+47,String.fromCharCode(L)},b.prototype._decodeChar=function(T){var L=o;return L+=(42-T&T-44)>>>8&-o+T-43+62,L+=(46-T&T-48)>>>8&-o+T-47+63,L+=(47-T&T-58)>>>8&-o+T-48+52,L+=(64-T&T-91)>>>8&-o+T-65+0,L+=(96-T&T-123)>>>8&-o+T-97+26,L},b.prototype._getPaddingLength=function(T){var L=0;if(this._paddingCharacter){for(var O=T.length-1;O>=0&&T[O]===this._paddingCharacter;O--)L++;if(T.length<4||L>2)throw new Error("Base64Coder: incorrect padding")}return L},b}();n.Coder=u;var i=new u;function l(b){return i.encode(b)}n.encode=l;function s(b){return i.decode(b)}n.decode=s;var R=function(b){t(T,b);function T(){return b!==null&&b.apply(this,arguments)||this}return T.prototype._encodeByte=function(L){var O=L;return O+=65,O+=25-L>>>8&0-65-26+97,O+=51-L>>>8&26-97-52+48,O+=61-L>>>8&52-48-62+45,O+=62-L>>>8&62-45-63+95,String.fromCharCode(O)},T.prototype._decodeChar=function(L){var O=o;return O+=(44-L&L-46)>>>8&-o+L-45+62,O+=(94-L&L-96)>>>8&-o+L-95+63,O+=(47-L&L-58)>>>8&-o+L-48+52,O+=(64-L&L-91)>>>8&-o+L-65+0,O+=(96-L&L-123)>>>8&-o+L-97+26,O},T}(u);n.URLSafeCoder=R;var d=new R;function y(b){return d.encode(b)}n.encodeURLSafe=y;function I(b){return d.decode(b)}n.decodeURLSafe=I,n.encodedLength=function(b){return i.encodedLength(b)},n.maxDecodedLength=function(b){return i.maxDecodedLength(b)},n.decodedLength=function(b){return i.decodedLength(b)}},function(e,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t="utf8: invalid string",o="utf8: invalid source encoding";function u(s){for(var R=new Uint8Array(i(s)),d=0,y=0;y>6,R[d++]=128|I&63):I<55296?(R[d++]=224|I>>12,R[d++]=128|I>>6&63,R[d++]=128|I&63):(y++,I=(I&1023)<<10,I|=s.charCodeAt(y)&1023,I+=65536,R[d++]=240|I>>18,R[d++]=128|I>>12&63,R[d++]=128|I>>6&63,R[d++]=128|I&63)}return R}n.encode=u;function i(s){for(var R=0,d=0;d=s.length-1)throw new Error(t);d++,R+=4}else throw new Error(t)}return R}n.encodedLength=i;function l(s){for(var R=[],d=0;d=s.length)throw new Error(o);var b=s[++d];if((b&192)!=128)throw new Error(o);y=(y&31)<<6|b&63,I=128}else if(y<240){if(d>=s.length-1)throw new Error(o);var b=s[++d],T=s[++d];if((b&192)!=128||(T&192)!=128)throw new Error(o);y=(y&15)<<12|(b&63)<<6|T&63,I=2048}else if(y<248){if(d>=s.length-2)throw new Error(o);var b=s[++d],T=s[++d],L=s[++d];if((b&192)!=128||(T&192)!=128||(L&192)!=128)throw new Error(o);y=(y&15)<<18|(b&63)<<12|(T&63)<<6|L&63,I=65536}else throw new Error(o);if(y=55296&&y<=57343)throw new Error(o);if(y>=65536){if(y>1114111)throw new Error(o);y-=65536,R.push(String.fromCharCode(55296|y>>10)),y=56320|y&1023}}R.push(String.fromCharCode(y))}return R.join("")}n.decode=l},function(e,n,a){e.exports=a(3).default},function(e,n,a){"use strict";a.r(n);var t=function(){function m(p,D){this.lastId=0,this.prefix=p,this.name=D}return m.prototype.create=function(p){this.lastId++;var D=this.lastId,G=this.prefix+D,A=this.name+"["+D+"]",Q=!1,be=function(){Q||(p.apply(null,arguments),Q=!0)};return this[D]=be,{number:D,id:G,name:A,callback:be}},m.prototype.remove=function(p){delete this[p.number]},m}(),o=new t("_pusher_script_","Pusher.ScriptReceivers"),u={VERSION:"6.0.3",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},i=u,l=function(){function m(p){this.options=p,this.receivers=p.receivers||o,this.loading={}}return m.prototype.load=function(p,D,G){var A=this;if(A.loading[p]&&A.loading[p].length>0)A.loading[p].push(G);else{A.loading[p]=[G];var Q=qa.createScriptRequest(A.getPath(p,D)),be=A.receivers.create(function(fn){if(A.receivers.remove(be),A.loading[p]){var ma=A.loading[p];delete A.loading[p];for(var Dt=function(yo){yo||Q.cleanup()},$t=0;$t>>6)+I(128|p&63):I(224|p>>>12&15)+I(128|p>>>6&63)+I(128|p&63)},z=function(m){return m.replace(/[^\x00-\x7F]/g,$)},Z=function(m){var p=[0,2,1][m.length%3],D=m.charCodeAt(0)<<16|(m.length>1?m.charCodeAt(1):0)<<8|(m.length>2?m.charCodeAt(2):0),G=[b.charAt(D>>>18),b.charAt(D>>>12&63),p>=2?"=":b.charAt(D>>>6&63),p>=1?"=":b.charAt(D&63)];return G.join("")},oe=window.btoa||function(m){return m.replace(/[\s\S]{1,3}/g,Z)},te=function(){function m(p,D,G,A){var Q=this;this.clear=D,this.timer=p(function(){Q.timer&&(Q.timer=A(Q.timer))},G)}return m.prototype.isRunning=function(){return this.timer!==null},m.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},m}(),ve=te,ge=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}();function nn(m){window.clearTimeout(m)}function cn(m){window.clearInterval(m)}var ce=function(m){ge(p,m);function p(D,G){return m.call(this,setTimeout,nn,D,function(A){return G(),null})||this}return p}(ve),le=function(m){ge(p,m);function p(D,G){return m.call(this,setInterval,cn,D,function(A){return G(),A})||this}return p}(ve),Pe={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(m){return new ce(0,m)},method:function(m){for(var p=[],D=1;D0)for(var A=0;A=1002&&m.code<=1004?"backoff":null:m.code===4e3?"tls_only":m.code<4100?"refused":m.code<4200?"backoff":m.code<4300?"retry":"refused"},getCloseError:function(m){return m.code!==1e3&&m.code!==1001?{type:"PusherError",data:{code:m.code,message:m.reason||m.message}}:null}},se=Lc,dl=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),ml=function(m){dl(p,m);function p(D,G){var A=m.call(this)||this;return A.id=D,A.transport=G,A.activityTimeout=G.activityTimeout,A.bindListeners(),A}return p.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},p.prototype.send=function(D){return this.transport.send(D)},p.prototype.send_event=function(D,G,A){var Q={event:D,data:G};return A&&(Q.channel=A),sn.debug("Event sent",Q),this.send(se.encodeMessage(Q))},p.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},p.prototype.close=function(){this.transport.close()},p.prototype.bindListeners=function(){var D=this,G={message:function(Q){var be;try{be=se.decodeMessage(Q)}catch(fn){D.emit("error",{type:"MessageParseError",error:fn,data:Q.data})}if(be!==void 0){switch(sn.debug("Event recd",be),be.event){case"pusher:error":D.emit("error",{type:"PusherError",data:be.data});break;case"pusher:ping":D.emit("ping");break;case"pusher:pong":D.emit("pong");break}D.emit("message",be)}},activity:function(){D.emit("activity")},error:function(Q){D.emit("error",{type:"WebSocketError",error:Q})},closed:function(Q){A(),Q&&Q.code&&D.handleCloseEvent(Q),D.transport=null,D.emit("closed")}},A=function(){ta(G,function(Q,be){D.transport.unbind(be,Q)})};ta(G,function(Q,be){D.transport.bind(be,Q)})},p.prototype.handleCloseEvent=function(D){var G=se.getCloseAction(D),A=se.getCloseError(D);A&&this.emit("error",A),G&&this.emit(G,{action:G,error:A})},p}(pa),Pc=ml,hl=function(){function m(p,D){this.transport=p,this.callback=D,this.bindListeners()}return m.prototype.close=function(){this.unbindListeners(),this.transport.close()},m.prototype.bindListeners=function(){var p=this;this.onMessage=function(D){p.unbindListeners();var G;try{G=se.processHandshake(D)}catch(A){p.finish("error",{error:A}),p.transport.close();return}G.action==="connected"?p.finish("connected",{connection:new Pc(G.id,p.transport),activityTimeout:G.activityTimeout}):(p.finish(G.action,{error:G.error}),p.transport.close())},this.onClosed=function(D){p.unbindListeners();var G=se.getCloseAction(D)||"backoff",A=se.getCloseError(D);p.finish(G,{error:A})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},m.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},m.prototype.finish=function(p,D){this.callback(Be({transport:this.transport,action:p},D))},m}(),Gi=hl,td=function(){function m(p,D){this.channel=p;var G=D.authTransport;if(typeof qa.getAuthorizers()[G]=="undefined")throw"'"+G+"' is not a recognized auth transport";this.type=G,this.options=D,this.authOptions=D.auth||{}}return m.prototype.composeQuery=function(p){var D="socket_id="+encodeURIComponent(p)+"&channel_name="+encodeURIComponent(this.channel.name);for(var G in this.authOptions.params)D+="&"+encodeURIComponent(G)+"="+encodeURIComponent(this.authOptions.params[G]);return D},m.prototype.authorize=function(p,D){m.authorizers=m.authorizers||qa.getAuthorizers(),m.authorizers[this.type].call(this,qa,p,D)},m}(),Qv=td,B0=function(){function m(p,D){this.timeline=p,this.options=D||{}}return m.prototype.send=function(p,D){this.timeline.isEmpty()||this.timeline.send(qa.TimelineTransport.getAgent(this,p),D)},m}(),H0=B0,Mi=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),Yo=function(m){Mi(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),xc=function(m){Mi(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),q0=function(m){Mi(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),rd=function(m){Mi(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),W0=function(m){Mi(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),PD=function(m){Mi(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),ks=function(m){Mi(p,m);function p(D){var G=this.constructor,A=m.call(this,D)||this;return Object.setPrototypeOf(A,G.prototype),A}return p}(Error),eE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),nE=function(m){eE(p,m);function p(D,G){var A=m.call(this,function(Q,be){sn.debug("No callbacks on "+D+" for "+Q)})||this;return A.name=D,A.pusher=G,A.subscribed=!1,A.subscriptionPending=!1,A.subscriptionCancelled=!1,A}return p.prototype.authorize=function(D,G){return G(!1,{auth:""})},p.prototype.trigger=function(D,G){if(D.indexOf("client-")!==0)throw new Yo("Event '"+D+"' does not start with 'client-'");if(!this.subscribed){var A=Da.buildLogSuffix("triggeringClientEvents");sn.warn("Client event triggered before channel 'subscription_succeeded' event . "+A)}return this.pusher.send_event(D,G,this.name)},p.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},p.prototype.handleEvent=function(D){var G=D.event,A=D.data;if(G==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(D);else if(G.indexOf("pusher_internal:")!==0){var Q={};this.emit(G,A,Q)}},p.prototype.handleSubscriptionSucceededEvent=function(D){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",D.data)},p.prototype.subscribe=function(){var D=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(G,A){G?(sn.error(A),D.emit("pusher:subscription_error",A)):(A=A,D.pusher.send_event("pusher:subscribe",{auth:A.auth,channel_data:A.channel_data,channel:D.name}))}))},p.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},p.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},p.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},p}(pa),xD=nE,aE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),tE=function(m){aE(p,m);function p(){return m!==null&&m.apply(this,arguments)||this}return p.prototype.authorize=function(D,G){var A=Ai.createAuthorizer(this,this.pusher.config);return A.authorize(D,G)},p}(xD),od=tE,ND=function(){function m(){this.reset()}return m.prototype.get=function(p){return Object.prototype.hasOwnProperty.call(this.members,p)?{id:p,info:this.members[p]}:null},m.prototype.each=function(p){var D=this;ta(this.members,function(G,A){p(D.get(A))})},m.prototype.setMyID=function(p){this.myID=p},m.prototype.onSubscription=function(p){this.members=p.presence.hash,this.count=p.presence.count,this.me=this.get(this.myID)},m.prototype.addMember=function(p){return this.get(p.user_id)===null&&this.count++,this.members[p.user_id]=p.user_info,this.get(p.user_id)},m.prototype.removeMember=function(p){var D=this.get(p.user_id);return D&&(delete this.members[p.user_id],this.count--),D},m.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},m}(),rE=ND,oE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),jD=function(m){oE(p,m);function p(D,G){var A=m.call(this,D,G)||this;return A.members=new rE,A}return p.prototype.authorize=function(D,G){var A=this;m.prototype.authorize.call(this,D,function(Q,be){if(!Q){if(be=be,be.channel_data===void 0){var fn=Da.buildLogSuffix("authenticationEndpoint");sn.error("Invalid auth response for channel '"+A.name+"',"+("expected 'channel_data' field. "+fn)),G("Invalid auth response");return}var ma=JSON.parse(be.channel_data);A.members.setMyID(ma.user_id)}G(Q,be)})},p.prototype.handleEvent=function(D){var G=D.event;if(G.indexOf("pusher_internal:")===0)this.handleInternalEvent(D);else{var A=D.data,Q={};D.user_id&&(Q.user_id=D.user_id),this.emit(G,A,Q)}},p.prototype.handleInternalEvent=function(D){var G=D.event,A=D.data;switch(G){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(D);break;case"pusher_internal:member_added":var Q=this.members.addMember(A);this.emit("pusher:member_added",Q);break;case"pusher_internal:member_removed":var be=this.members.removeMember(A);be&&this.emit("pusher:member_removed",be);break}},p.prototype.handleSubscriptionSucceededEvent=function(D){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(D.data),this.emit("pusher:subscription_succeeded",this.members))},p.prototype.disconnect=function(){this.members.reset(),m.prototype.disconnect.call(this)},p}(od),uE=jD,OD=a(1),ud=a(0),iE=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),lE=function(m){iE(p,m);function p(D,G,A){var Q=m.call(this,D,G)||this;return Q.key=null,Q.nacl=A,Q}return p.prototype.authorize=function(D,G){var A=this;m.prototype.authorize.call(this,D,function(Q,be){if(Q){G(!0,be);return}var fn=be.shared_secret;if(!fn){var ma="No shared_secret key in auth payload for encrypted channel: "+A.name;G(!0,ma);return}A.key=Object(ud.decode)(fn),delete be.shared_secret,G(!1,be)})},p.prototype.trigger=function(D,G){throw new W0("Client events are not currently supported for encrypted channels")},p.prototype.handleEvent=function(D){var G=D.event,A=D.data;if(G.indexOf("pusher_internal:")===0||G.indexOf("pusher:")===0){m.prototype.handleEvent.call(this,D);return}this.handleEncryptedEvent(G,A)},p.prototype.handleEncryptedEvent=function(D,G){var A=this;if(!this.key){sn.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!G.ciphertext||!G.nonce){sn.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+G);return}var Q=Object(ud.decode)(G.ciphertext);if(Q.length0&&this.emit("connecting_in",Math.round(D/1e3)),this.retryTimer=new ce(D||0,function(){G.disconnectInternally(),G.connect()})},p.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},p.prototype.setUnavailableTimer=function(){var D=this;this.unavailableTimer=new ce(this.options.unavailableTimeout,function(){D.updateState("unavailable")})},p.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},p.prototype.sendActivityCheck=function(){var D=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new ce(this.options.pongTimeout,function(){D.timeline.error({pong_timed_out:D.options.pongTimeout}),D.retryIn(0)})},p.prototype.resetActivityCheck=function(){var D=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new ce(this.activityTimeout,function(){D.sendActivityCheck()}))},p.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},p.prototype.buildConnectionCallbacks=function(D){var G=this;return Be({},D,{message:function(A){G.resetActivityCheck(),G.emit("message",A)},ping:function(){G.send_event("pusher:pong",{})},activity:function(){G.resetActivityCheck()},error:function(A){G.emit("error",{type:"WebSocketError",error:A})},closed:function(){G.abandonConnection(),G.shouldRetry()&&G.retryIn(1e3)}})},p.prototype.buildHandshakeCallbacks=function(D){var G=this;return Be({},D,{connected:function(A){G.activityTimeout=Math.min(G.options.activityTimeout,A.activityTimeout,A.connection.activityTimeout||1/0),G.clearUnavailableTimer(),G.setConnection(A.connection),G.socket_id=G.connection.id,G.updateState("connected",{socket_id:G.socket_id})}})},p.prototype.buildErrorCallbacks=function(){var D=this,G=function(A){return function(Q){Q.error&&D.emit("error",{type:"WebSocketError",error:Q.error}),A(Q)}};return{tls_only:G(function(){D.usingTLS=!0,D.updateStrategy(),D.retryIn(0)}),refused:G(function(){D.disconnect()}),backoff:G(function(){D.retryIn(1e3)}),retry:G(function(){D.retryIn(0)})}},p.prototype.setConnection=function(D){this.connection=D;for(var G in this.connectionCallbacks)this.connection.bind(G,this.connectionCallbacks[G]);this.resetActivityCheck()},p.prototype.abandonConnection=function(){if(!!this.connection){this.stopActivityCheck();for(var D in this.connectionCallbacks)this.connection.unbind(D,this.connectionCallbacks[D]);var G=this.connection;return this.connection=null,G}},p.prototype.updateState=function(D,G){var A=this.state;if(this.state=D,A!==D){var Q=D;Q==="connected"&&(Q+=" with new socket ID "+G.socket_id),sn.debug("State changed",A+" -> "+Q),this.timeline.info({state:D,params:G}),this.emit("state_change",{previous:A,current:D}),this.emit(D,G)}},p.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},p}(pa),UD=vE,fE=function(){function m(){this.channels={}}return m.prototype.add=function(p,D){return this.channels[p]||(this.channels[p]=kD(p,D)),this.channels[p]},m.prototype.all=function(){return Bn(this.channels)},m.prototype.find=function(p){return this.channels[p]},m.prototype.remove=function(p){var D=this.channels[p];return delete this.channels[p],D},m.prototype.disconnect=function(){ta(this.channels,function(p){p.disconnect()})},m}(),_E=fE;function kD(m,p){if(m.indexOf("private-encrypted-")===0){if(p.config.nacl)return Ai.createEncryptedChannel(m,p,p.config.nacl);var D="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",G=Da.buildLogSuffix("encryptedChannelSupport");throw new W0(D+". "+G)}else return m.indexOf("private-")===0?Ai.createPrivateChannel(m,p):m.indexOf("presence-")===0?Ai.createPresenceChannel(m,p):Ai.createChannel(m,p)}var pE={createChannels:function(){return new _E},createConnectionManager:function(m,p){return new UD(m,p)},createChannel:function(m,p){return new xD(m,p)},createPrivateChannel:function(m,p){return new od(m,p)},createPresenceChannel:function(m,p){return new uE(m,p)},createEncryptedChannel:function(m,p,D){return new cE(m,p,D)},createTimelineSender:function(m,p){return new H0(m,p)},createAuthorizer:function(m,p){return p.authorizer?p.authorizer(m,p):new Qv(m,p)},createHandshake:function(m,p){return new Gi(m,p)},createAssistantToTheTransportManager:function(m,p,D){return new Ql(m,p,D)}},Ai=pE,dE=function(){function m(p){this.options=p||{},this.livesLeft=this.options.lives||1/0}return m.prototype.getAssistant=function(p){return Ai.createAssistantToTheTransportManager(this,p,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},m.prototype.isAlive=function(){return this.livesLeft>0},m.prototype.reportDeath=function(){this.livesLeft-=1},m}(),BD=dE,mE=function(){function m(p,D){this.strategies=p,this.loop=Boolean(D.loop),this.failFast=Boolean(D.failFast),this.timeout=D.timeout,this.timeoutLimit=D.timeoutLimit}return m.prototype.isSupported=function(){return En(this.strategies,Ce.method("isSupported"))},m.prototype.connect=function(p,D){var G=this,A=this.strategies,Q=0,be=this.timeout,fn=null,ma=function(Dt,$t){$t?D(null,$t):(Q=Q+1,G.loop&&(Q=Q%A.length),Q0&&(Q=new ce(G.timeout,function(){be.abort(),A(!0)})),be=p.connect(D,function(fn,ma){fn&&Q&&Q.isRunning()&&!G.failFast||(Q&&Q.ensureAborted(),A(fn,ma))}),{abort:function(){Q&&Q.ensureAborted(),be.abort()},forceMinPriority:function(fn){be.forceMinPriority(fn)}}},m}(),Nc=mE,hE=function(){function m(p){this.strategies=p}return m.prototype.isSupported=function(){return En(this.strategies,Ce.method("isSupported"))},m.prototype.connect=function(p,D){return DE(this.strategies,p,function(G,A){return function(Q,be){if(A[G].error=Q,Q){HD(A)&&D(!0);return}Qn(A,function(fn){fn.forceMinPriority(be.transport.priority)}),D(null,be)}})},m}(),id=hE;function DE(m,p,D){var G=Hn(m,function(A,Q,be,fn){return A.connect(p,D(Q,fn))});return{abort:function(){Qn(G,ld)},forceMinPriority:function(A){Qn(G,function(Q){Q.forceMinPriority(A)})}}}function HD(m){return dn(m,function(p){return Boolean(p.error)})}function ld(m){!m.error&&!m.aborted&&(m.abort(),m.aborted=!0)}var gE=function(){function m(p,D,G){this.strategy=p,this.transports=D,this.ttl=G.ttl||1800*1e3,this.usingTLS=G.useTLS,this.timeline=G.timeline}return m.prototype.isSupported=function(){return this.strategy.isSupported()},m.prototype.connect=function(p,D){var G=this.usingTLS,A=qD(G),Q=[this.strategy];if(A&&A.timestamp+this.ttl>=Ce.now()){var be=this.transports[A.transport];be&&(this.timeline.info({cached:!0,transport:A.transport,latency:A.latency}),Q.push(new Nc([be],{timeout:A.latency*2+1e3,failFast:!0})))}var fn=Ce.now(),ma=Q.pop().connect(p,function Dt($t,yo){$t?(WD(G),Q.length>0?(fn=Ce.now(),ma=Q.pop().connect(p,Dt)):D($t)):(yE(G,yo.transport.name,Ce.now()-fn),D(null,yo))});return{abort:function(){ma.abort()},forceMinPriority:function(Dt){p=Dt,ma&&ma.forceMinPriority(Dt)}}},m}(),RE=gE;function cd(m){return"pusherTransport"+(m?"TLS":"NonTLS")}function qD(m){var p=qa.getLocalStorage();if(p)try{var D=p[cd(m)];if(D)return JSON.parse(D)}catch{WD(m)}return null}function yE(m,p,D){var G=qa.getLocalStorage();if(G)try{G[cd(m)]=La({timestamp:Ce.now(),transport:p,latency:D})}catch{}}function WD(m){var p=qa.getLocalStorage();if(p)try{delete p[cd(m)]}catch{}}var wE=function(){function m(p,D){var G=D.delay;this.strategy=p,this.options={delay:G}}return m.prototype.isSupported=function(){return this.strategy.isSupported()},m.prototype.connect=function(p,D){var G=this.strategy,A,Q=new ce(this.options.delay,function(){A=G.connect(p,D)});return{abort:function(){Q.ensureAborted(),A&&A.abort()},forceMinPriority:function(be){p=be,A&&A.forceMinPriority(be)}}},m}(),J0=wE,JD=function(){function m(p,D,G){this.test=p,this.trueBranch=D,this.falseBranch=G}return m.prototype.isSupported=function(){var p=this.test()?this.trueBranch:this.falseBranch;return p.isSupported()},m.prototype.connect=function(p,D){var G=this.test()?this.trueBranch:this.falseBranch;return G.connect(p,D)},m}(),Kv=JD,bE=function(){function m(p){this.strategy=p}return m.prototype.isSupported=function(){return this.strategy.isSupported()},m.prototype.connect=function(p,D){var G=this.strategy.connect(p,function(A,Q){Q&&G.abort(),D(A,Q)});return G},m}(),EE=bE;function Dl(m){return function(){return m.isSupported()}}var $D=function(m,p,D){var G={};function A(Tr,sg,vg,ZE,fg){var w=D(m,Tr,sg,vg,ZE,fg);return G[Tr]=w,w}var Q=Object.assign({},p,{hostNonTLS:m.wsHost+":"+m.wsPort,hostTLS:m.wsHost+":"+m.wssPort,httpPath:m.wsPath}),be=Object.assign({},Q,{useTLS:!0}),fn=Object.assign({},p,{hostNonTLS:m.httpHost+":"+m.httpPort,hostTLS:m.httpHost+":"+m.httpsPort,httpPath:m.httpPath}),ma={loop:!0,timeout:15e3,timeoutLimit:6e4},Dt=new BD({lives:2,minPingDelay:1e4,maxPingDelay:m.activityTimeout}),$t=new BD({lives:2,minPingDelay:1e4,maxPingDelay:m.activityTimeout}),yo=A("ws","ws",3,Q,Dt),Xu=A("wss","ws",3,be,Dt),QE=A("sockjs","sockjs",1,fn),tg=A("xhr_streaming","xhr_streaming",1,fn,$t),rg=A("xdr_streaming","xdr_streaming",1,fn,$t),og=A("xhr_polling","xhr_polling",1,fn),KE=A("xdr_polling","xdr_polling",1,fn),ug=new Nc([yo],ma),YE=new Nc([Xu],ma),XE=new Nc([QE],ma),ig=new Nc([new Kv(Dl(tg),tg,rg)],ma),lg=new Nc([new Kv(Dl(og),og,KE)],ma),cg=new Nc([new Kv(Dl(ig),new id([ig,new J0(lg,{delay:4e3})]),lg)],ma),dd=new Kv(Dl(cg),cg,XE),md;return p.useTLS?md=new id([ug,new J0(dd,{delay:2e3})]):md=new id([ug,new J0(YE,{delay:2e3}),new J0(dd,{delay:5e3})]),new RE(new EE(new Kv(Dl(yo),md,dd)),G,{ttl:18e5,timeline:p.timeline,useTLS:p.useTLS})},IE=$D,TE=function(){var m=this;m.timeline.info(m.buildTimelineMessage({transport:m.name+(m.options.useTLS?"s":"")})),m.hooks.isInitialized()?m.changeState("initialized"):m.hooks.file?(m.changeState("initializing"),d.load(m.hooks.file,{useTLS:m.options.useTLS},function(p,D){m.hooks.isInitialized()?(m.changeState("initialized"),D(!0)):(p&&m.onError(p),m.onClose(),D(!1))})):m.onClose()},zD={getRequest:function(m){var p=new window.XDomainRequest;return p.ontimeout=function(){m.emit("error",new xc),m.close()},p.onerror=function(D){m.emit("error",D),m.close()},p.onprogress=function(){p.responseText&&p.responseText.length>0&&m.onChunk(200,p.responseText)},p.onload=function(){p.responseText&&p.responseText.length>0&&m.onChunk(200,p.responseText),m.emit("finished",200),m.close()},p},abortRequest:function(m){m.ontimeout=m.onerror=m.onprogress=m.onload=null,m.abort()}},SE=zD,VD=function(){var m=function(p,D){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,A){G.__proto__=A}||function(G,A){for(var Q in A)A.hasOwnProperty(Q)&&(G[Q]=A[Q])},m(p,D)};return function(p,D){m(p,D);function G(){this.constructor=p}p.prototype=D===null?Object.create(D):(G.prototype=D.prototype,new G)}}(),CE=256*1024,QD=function(m){VD(p,m);function p(D,G,A){var Q=m.call(this)||this;return Q.hooks=D,Q.method=G,Q.url=A,Q}return p.prototype.start=function(D){var G=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){G.close()},qa.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(D)},p.prototype.close=function(){this.unloader&&(qa.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},p.prototype.onChunk=function(D,G){for(;;){var A=this.advanceBuffer(G);if(A)this.emit("chunk",{status:D,data:A});else break}this.isBufferTooLong(G)&&this.emit("buffer_too_long")},p.prototype.advanceBuffer=function(D){var G=D.slice(this.position),A=G.indexOf(` `);return A!==-1?(this.position+=A+1,G.slice(0,A)):null},p.prototype.isBufferTooLong=function(D){return this.position===D.length&&D.length>CE},p}(pa),KD=QD,Yv;(function(m){m[m.CONNECTING=0]="CONNECTING",m[m.OPEN=1]="OPEN",m[m.CLOSED=3]="CLOSED"})(Yv||(Yv={}));var Li=Yv,FE=1,YD=function(){function m(p,D){this.hooks=p,this.session=Eu(1e3)+"/"+gl(8),this.location=GE(D),this.readyState=Li.CONNECTING,this.openStream()}return m.prototype.send=function(p){return this.sendRaw(JSON.stringify([p]))},m.prototype.ping=function(){this.hooks.sendHeartbeat(this)},m.prototype.close=function(p,D){this.onClose(p,D,!0)},m.prototype.sendRaw=function(p){if(this.readyState===Li.OPEN)try{return qa.createSocketRequest("POST",sd(ME(this.location,this.session))).start(p),!0}catch{return!1}else return!1},m.prototype.reconnect=function(){this.closeStream(),this.openStream()},m.prototype.onClose=function(p,D,G){this.closeStream(),this.readyState=Li.CLOSED,this.onclose&&this.onclose({code:p,reason:D,wasClean:G})},m.prototype.onChunk=function(p){if(p.status===200){this.readyState===Li.OPEN&&this.onActivity();var D,G=p.data.slice(0,1);switch(G){case"o":D=JSON.parse(p.data.slice(1)||"{}"),this.onOpen(D);break;case"a":D=JSON.parse(p.data.slice(1)||"[]");for(var A=0;A0&&m.onChunk(D.status,D.responseText);break;case 4:D.responseText&&D.responseText.length>0&&m.onChunk(D.status,D.responseText),m.emit("finished",D.status),m.close();break}},D},abortRequest:function(m){m.onreadystatechange=null,m.abort()}},Ha=ZD,jc={createStreamingSocket:function(m){return this.createSocket(PE,m)},createPollingSocket:function(m){return this.createSocket(NE,m)},createSocket:function(m,p){return new AE(m,p)},createXHR:function(m,p){return this.createRequest(Ha,m,p)},createRequest:function(m,p,D){return new KD(m,p,D)}},vd=jc;vd.createXDR=function(m,p){return this.createRequest(SE,m,p)};var jE=vd,OE={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:o,DependenciesReceivers:R,getDefaultStrategy:IE,Transports:Ro,transportConnectionInitializer:TE,HTTPFactory:jE,TimelineTransport:re,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(m){var p=this;window.Pusher=m;var D=function(){p.onDocumentBody(m.ready)};window.JSON?D():d.load("json2",{},D)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:q,jsonp:j}},onDocumentBody:function(m){var p=this;document.body?m():setTimeout(function(){p.onDocumentBody(m)},0)},createJSONPRequest:function(m,p){return new W(m,p)},createScriptRequest:function(m){return new P(m)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var m=this.getXHRAPI();return new m},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return Yu},createWebSocket:function(m){var p=this.getWebSocketAPI();return new p(m)},createSocketRequest:function(m,p){if(this.isXHRSupported())return this.HTTPFactory.createXHR(m,p);if(this.isXDRSupported(p.indexOf("https:")===0))return this.HTTPFactory.createXDR(m,p);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var m=this.getXHRAPI();return Boolean(m)&&new m().withCredentials!==void 0},isXDRSupported:function(m){var p=m?"https:":"http:",D=this.getProtocol();return Boolean(window.XDomainRequest)&&D===p},addUnloadListener:function(m){window.addEventListener!==void 0?window.addEventListener("unload",m,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",m)},removeUnloadListener:function(m){window.addEventListener!==void 0?window.removeEventListener("unload",m,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",m)}},qa=OE,$0;(function(m){m[m.ERROR=3]="ERROR",m[m.INFO=6]="INFO",m[m.DEBUG=7]="DEBUG"})($0||($0={}));var z0=$0,UE=function(){function m(p,D,G){this.key=p,this.session=D,this.events=[],this.options=G||{},this.sent=0,this.uniqueID=0}return m.prototype.log=function(p,D){p<=this.options.level&&(this.events.push(Be({},D,{timestamp:Ce.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},m.prototype.error=function(p){this.log(z0.ERROR,p)},m.prototype.info=function(p){this.log(z0.INFO,p)},m.prototype.debug=function(p){this.log(z0.DEBUG,p)},m.prototype.isEmpty=function(){return this.events.length===0},m.prototype.send=function(p,D){var G=this,A=Be({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],p(A,function(Q,be){Q||G.sent++,D&&D(Q,be)}),!0},m.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},m}(),eg=UE,fd=function(){function m(p,D,G,A){this.name=p,this.priority=D,this.transport=G,this.options=A||{}}return m.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},m.prototype.connect=function(p,D){var G=this;if(this.isSupported()){if(this.priority{"use strict";var mo=typeof Symbol=="function"&&Symbol.for,wF=mo?Symbol.for("react.element"):60103,bF=mo?Symbol.for("react.portal"):60106,tw=mo?Symbol.for("react.fragment"):60107,rw=mo?Symbol.for("react.strict_mode"):60108,ow=mo?Symbol.for("react.profiler"):60114,uw=mo?Symbol.for("react.provider"):60109,iw=mo?Symbol.for("react.context"):60110,EF=mo?Symbol.for("react.async_mode"):60111,lw=mo?Symbol.for("react.concurrent_mode"):60111,cw=mo?Symbol.for("react.forward_ref"):60112,sw=mo?Symbol.for("react.suspense"):60113,fve=mo?Symbol.for("react.suspense_list"):60120,vw=mo?Symbol.for("react.memo"):60115,fw=mo?Symbol.for("react.lazy"):60116,_ve=mo?Symbol.for("react.block"):60121,pve=mo?Symbol.for("react.fundamental"):60117,dve=mo?Symbol.for("react.responder"):60118,mve=mo?Symbol.for("react.scope"):60119;function bi(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case wF:switch(e=e.type,e){case EF:case lw:case tw:case ow:case rw:case sw:return e;default:switch(e=e&&e.$$typeof,e){case iw:case cw:case fw:case vw:case uw:return e;default:return n}}case bF:return n}}}function TU(e){return bi(e)===lw}Nt.AsyncMode=EF;Nt.ConcurrentMode=lw;Nt.ContextConsumer=iw;Nt.ContextProvider=uw;Nt.Element=wF;Nt.ForwardRef=cw;Nt.Fragment=tw;Nt.Lazy=fw;Nt.Memo=vw;Nt.Portal=bF;Nt.Profiler=ow;Nt.StrictMode=rw;Nt.Suspense=sw;Nt.isAsyncMode=function(e){return TU(e)||bi(e)===EF};Nt.isConcurrentMode=TU;Nt.isContextConsumer=function(e){return bi(e)===iw};Nt.isContextProvider=function(e){return bi(e)===uw};Nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===wF};Nt.isForwardRef=function(e){return bi(e)===cw};Nt.isFragment=function(e){return bi(e)===tw};Nt.isLazy=function(e){return bi(e)===fw};Nt.isMemo=function(e){return bi(e)===vw};Nt.isPortal=function(e){return bi(e)===bF};Nt.isProfiler=function(e){return bi(e)===ow};Nt.isStrictMode=function(e){return bi(e)===rw};Nt.isSuspense=function(e){return bi(e)===sw};Nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tw||e===lw||e===ow||e===rw||e===sw||e===fve||typeof e=="object"&&e!==null&&(e.$$typeof===fw||e.$$typeof===vw||e.$$typeof===uw||e.$$typeof===iw||e.$$typeof===cw||e.$$typeof===pve||e.$$typeof===dve||e.$$typeof===mve||e.$$typeof===_ve)};Nt.typeOf=bi});var FU=xe((dEa,CU)=>{"use strict";CU.exports=SU()});var m0=xe((FEa,dw)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var a=[],t=0;t{function afe(){this.__data__=[],this.size=0}R6.exports=afe});var VF=xe((gTa,w6)=>{function tfe(e,n){return e===n||e!==e&&n!==n}w6.exports=tfe});var _h=xe((RTa,b6)=>{var rfe=VF();function ofe(e,n){for(var a=e.length;a--;)if(rfe(e[a][0],n))return a;return-1}b6.exports=ofe});var I6=xe((yTa,E6)=>{var ufe=_h(),ife=Array.prototype,lfe=ife.splice;function cfe(e){var n=this.__data__,a=ufe(n,e);if(a<0)return!1;var t=n.length-1;return a==t?n.pop():lfe.call(n,a,1),--this.size,!0}E6.exports=cfe});var S6=xe((wTa,T6)=>{var sfe=_h();function vfe(e){var n=this.__data__,a=sfe(n,e);return a<0?void 0:n[a][1]}T6.exports=vfe});var F6=xe((bTa,C6)=>{var ffe=_h();function _fe(e){return ffe(this.__data__,e)>-1}C6.exports=_fe});var M6=xe((ETa,G6)=>{var pfe=_h();function dfe(e,n){var a=this.__data__,t=pfe(a,e);return t<0?(++this.size,a.push([e,n])):a[t][1]=n,this}G6.exports=dfe});var ph=xe((ITa,A6)=>{var mfe=y6(),hfe=I6(),Dfe=S6(),gfe=F6(),Rfe=M6();function mp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var yfe=ph();function wfe(){this.__data__=new yfe,this.size=0}L6.exports=wfe});var N6=xe((STa,x6)=>{function bfe(e){var n=this.__data__,a=n.delete(e);return this.size=n.size,a}x6.exports=bfe});var O6=xe((CTa,j6)=>{function Efe(e){return this.__data__.get(e)}j6.exports=Efe});var k6=xe((FTa,U6)=>{function Ife(e){return this.__data__.has(e)}U6.exports=Ife});var QF=xe((GTa,B6)=>{var Tfe=typeof global=="object"&&global&&global.Object===Object&&global;B6.exports=Tfe});var Ec=xe((MTa,H6)=>{var Sfe=QF(),Cfe=typeof self=="object"&&self&&self.Object===Object&&self,Ffe=Sfe||Cfe||Function("return this")();H6.exports=Ffe});var jw=xe((ATa,q6)=>{var Gfe=Ec(),Mfe=Gfe.Symbol;q6.exports=Mfe});var z6=xe((LTa,$6)=>{var W6=jw(),J6=Object.prototype,Afe=J6.hasOwnProperty,Lfe=J6.toString,dh=W6?W6.toStringTag:void 0;function Pfe(e){var n=Afe.call(e,dh),a=e[dh];try{e[dh]=void 0;var t=!0}catch{}var o=Lfe.call(e);return t&&(n?e[dh]=a:delete e[dh]),o}$6.exports=Pfe});var Q6=xe((PTa,V6)=>{var xfe=Object.prototype,Nfe=xfe.toString;function jfe(e){return Nfe.call(e)}V6.exports=jfe});var mh=xe((xTa,X6)=>{var K6=jw(),Ofe=z6(),Ufe=Q6(),kfe="[object Null]",Bfe="[object Undefined]",Y6=K6?K6.toStringTag:void 0;function Hfe(e){return e==null?e===void 0?Bfe:kfe:Y6&&Y6 in Object(e)?Ofe(e):Ufe(e)}X6.exports=Hfe});var KF=xe((NTa,Z6)=>{function qfe(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}Z6.exports=qfe});var YF=xe((jTa,e5)=>{var Wfe=mh(),Jfe=KF(),$fe="[object AsyncFunction]",zfe="[object Function]",Vfe="[object GeneratorFunction]",Qfe="[object Proxy]";function Kfe(e){if(!Jfe(e))return!1;var n=Wfe(e);return n==zfe||n==Vfe||n==$fe||n==Qfe}e5.exports=Kfe});var a5=xe((OTa,n5)=>{var Yfe=Ec(),Xfe=Yfe["__core-js_shared__"];n5.exports=Xfe});var o5=xe((UTa,r5)=>{var XF=a5(),t5=function(){var e=/[^.]+$/.exec(XF&&XF.keys&&XF.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Zfe(e){return!!t5&&t5 in e}r5.exports=Zfe});var ZF=xe((kTa,u5)=>{var e0e=Function.prototype,n0e=e0e.toString;function a0e(e){if(e!=null){try{return n0e.call(e)}catch{}try{return e+""}catch{}}return""}u5.exports=a0e});var l5=xe((BTa,i5)=>{var t0e=YF(),r0e=o5(),o0e=KF(),u0e=ZF(),i0e=/[\\^$.*+?()[\]{}|]/g,l0e=/^\[object .+?Constructor\]$/,c0e=Function.prototype,s0e=Object.prototype,v0e=c0e.toString,f0e=s0e.hasOwnProperty,_0e=RegExp("^"+v0e.call(f0e).replace(i0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p0e(e){if(!o0e(e)||r0e(e))return!1;var n=t0e(e)?_0e:l0e;return n.test(u0e(e))}i5.exports=p0e});var s5=xe((HTa,c5)=>{function d0e(e,n){return e==null?void 0:e[n]}c5.exports=d0e});var D0=xe((qTa,v5)=>{var m0e=l5(),h0e=s5();function D0e(e,n){var a=h0e(e,n);return m0e(a)?a:void 0}v5.exports=D0e});var Ow=xe((WTa,f5)=>{var g0e=D0(),R0e=Ec(),y0e=g0e(R0e,"Map");f5.exports=y0e});var hh=xe((JTa,_5)=>{var w0e=D0(),b0e=w0e(Object,"create");_5.exports=b0e});var m5=xe(($Ta,d5)=>{var p5=hh();function E0e(){this.__data__=p5?p5(null):{},this.size=0}d5.exports=E0e});var D5=xe((zTa,h5)=>{function I0e(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}h5.exports=I0e});var R5=xe((VTa,g5)=>{var T0e=hh(),S0e="__lodash_hash_undefined__",C0e=Object.prototype,F0e=C0e.hasOwnProperty;function G0e(e){var n=this.__data__;if(T0e){var a=n[e];return a===S0e?void 0:a}return F0e.call(n,e)?n[e]:void 0}g5.exports=G0e});var w5=xe((QTa,y5)=>{var M0e=hh(),A0e=Object.prototype,L0e=A0e.hasOwnProperty;function P0e(e){var n=this.__data__;return M0e?n[e]!==void 0:L0e.call(n,e)}y5.exports=P0e});var E5=xe((KTa,b5)=>{var x0e=hh(),N0e="__lodash_hash_undefined__";function j0e(e,n){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=x0e&&n===void 0?N0e:n,this}b5.exports=j0e});var T5=xe((YTa,I5)=>{var O0e=m5(),U0e=D5(),k0e=R5(),B0e=w5(),H0e=E5();function hp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var S5=T5(),q0e=ph(),W0e=Ow();function J0e(){this.size=0,this.__data__={hash:new S5,map:new(W0e||q0e),string:new S5}}C5.exports=J0e});var M5=xe((ZTa,G5)=>{function $0e(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}G5.exports=$0e});var Dh=xe((eSa,A5)=>{var z0e=M5();function V0e(e,n){var a=e.__data__;return z0e(n)?a[typeof n=="string"?"string":"hash"]:a.map}A5.exports=V0e});var P5=xe((nSa,L5)=>{var Q0e=Dh();function K0e(e){var n=Q0e(this,e).delete(e);return this.size-=n?1:0,n}L5.exports=K0e});var N5=xe((aSa,x5)=>{var Y0e=Dh();function X0e(e){return Y0e(this,e).get(e)}x5.exports=X0e});var O5=xe((tSa,j5)=>{var Z0e=Dh();function e_e(e){return Z0e(this,e).has(e)}j5.exports=e_e});var k5=xe((rSa,U5)=>{var n_e=Dh();function a_e(e,n){var a=n_e(this,e),t=a.size;return a.set(e,n),this.size+=a.size==t?0:1,this}U5.exports=a_e});var eG=xe((oSa,B5)=>{var t_e=F5(),r_e=P5(),o_e=N5(),u_e=O5(),i_e=k5();function Dp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var l_e=ph(),c_e=Ow(),s_e=eG(),v_e=200;function f_e(e,n){var a=this.__data__;if(a instanceof l_e){var t=a.__data__;if(!c_e||t.length{var __e=ph(),p_e=P6(),d_e=N6(),m_e=O6(),h_e=k6(),D_e=q5();function gp(e){var n=this.__data__=new __e(e);this.size=n.size}gp.prototype.clear=p_e;gp.prototype.delete=d_e;gp.prototype.get=m_e;gp.prototype.has=h_e;gp.prototype.set=D_e;W5.exports=gp});var z5=xe((lSa,$5)=>{var g_e="__lodash_hash_undefined__";function R_e(e){return this.__data__.set(e,g_e),this}$5.exports=R_e});var Q5=xe((cSa,V5)=>{function y_e(e){return this.__data__.has(e)}V5.exports=y_e});var Y5=xe((sSa,K5)=>{var w_e=eG(),b_e=z5(),E_e=Q5();function Uw(e){var n=-1,a=e==null?0:e.length;for(this.__data__=new w_e;++n{function I_e(e,n){for(var a=-1,t=e==null?0:e.length;++a{function T_e(e,n){return e.has(n)}e9.exports=T_e});var nG=xe((_Sa,a9)=>{var S_e=Y5(),C_e=Z5(),F_e=n9(),G_e=1,M_e=2;function A_e(e,n,a,t,o,u){var i=a&G_e,l=e.length,s=n.length;if(l!=s&&!(i&&s>l))return!1;var R=u.get(e),d=u.get(n);if(R&&d)return R==n&&d==e;var y=-1,I=!0,b=a&M_e?new S_e:void 0;for(u.set(e,n),u.set(n,e);++y{var L_e=Ec(),P_e=L_e.Uint8Array;t9.exports=P_e});var u9=xe((dSa,o9)=>{function x_e(e){var n=-1,a=Array(e.size);return e.forEach(function(t,o){a[++n]=[o,t]}),a}o9.exports=x_e});var l9=xe((mSa,i9)=>{function N_e(e){var n=-1,a=Array(e.size);return e.forEach(function(t){a[++n]=t}),a}i9.exports=N_e});var _9=xe((hSa,f9)=>{var c9=jw(),s9=r9(),j_e=VF(),O_e=nG(),U_e=u9(),k_e=l9(),B_e=1,H_e=2,q_e="[object Boolean]",W_e="[object Date]",J_e="[object Error]",$_e="[object Map]",z_e="[object Number]",V_e="[object RegExp]",Q_e="[object Set]",K_e="[object String]",Y_e="[object Symbol]",X_e="[object ArrayBuffer]",Z_e="[object DataView]",v9=c9?c9.prototype:void 0,aG=v9?v9.valueOf:void 0;function epe(e,n,a,t,o,u,i){switch(a){case Z_e:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case X_e:return!(e.byteLength!=n.byteLength||!u(new s9(e),new s9(n)));case q_e:case W_e:case z_e:return j_e(+e,+n);case J_e:return e.name==n.name&&e.message==n.message;case V_e:case K_e:return e==n+"";case $_e:var l=U_e;case Q_e:var s=t&B_e;if(l||(l=k_e),e.size!=n.size&&!s)return!1;var R=i.get(e);if(R)return R==n;t|=H_e,i.set(e,n);var d=O_e(l(e),l(n),t,o,u,i);return i.delete(e),d;case Y_e:if(aG)return aG.call(e)==aG.call(n)}return!1}f9.exports=epe});var d9=xe((DSa,p9)=>{function npe(e,n){for(var a=-1,t=n.length,o=e.length;++a{var ape=Array.isArray;m9.exports=ape});var D9=xe((RSa,h9)=>{var tpe=d9(),rpe=kw();function ope(e,n,a){var t=n(e);return rpe(e)?t:tpe(t,a(e))}h9.exports=ope});var R9=xe((ySa,g9)=>{function upe(e,n){for(var a=-1,t=e==null?0:e.length,o=0,u=[];++a{function ipe(){return[]}y9.exports=ipe});var I9=xe((bSa,E9)=>{var lpe=R9(),cpe=w9(),spe=Object.prototype,vpe=spe.propertyIsEnumerable,b9=Object.getOwnPropertySymbols,fpe=b9?function(e){return e==null?[]:(e=Object(e),lpe(b9(e),function(n){return vpe.call(e,n)}))}:cpe;E9.exports=fpe});var S9=xe((ESa,T9)=>{function _pe(e,n){for(var a=-1,t=Array(e);++a{function ppe(e){return e!=null&&typeof e=="object"}C9.exports=ppe});var G9=xe((TSa,F9)=>{var dpe=mh(),mpe=gh(),hpe="[object Arguments]";function Dpe(e){return mpe(e)&&dpe(e)==hpe}F9.exports=Dpe});var P9=xe((SSa,L9)=>{var M9=G9(),gpe=gh(),A9=Object.prototype,Rpe=A9.hasOwnProperty,ype=A9.propertyIsEnumerable,wpe=M9(function(){return arguments}())?M9:function(e){return gpe(e)&&Rpe.call(e,"callee")&&!ype.call(e,"callee")};L9.exports=wpe});var N9=xe((CSa,x9)=>{function bpe(){return!1}x9.exports=bpe});var tG=xe((Rh,Rp)=>{var Epe=Ec(),Ipe=N9(),j9=typeof Rh=="object"&&Rh&&!Rh.nodeType&&Rh,O9=j9&&typeof Rp=="object"&&Rp&&!Rp.nodeType&&Rp,Tpe=O9&&O9.exports===j9,U9=Tpe?Epe.Buffer:void 0,Spe=U9?U9.isBuffer:void 0,Cpe=Spe||Ipe;Rp.exports=Cpe});var B9=xe((FSa,k9)=>{var Fpe=9007199254740991,Gpe=/^(?:0|[1-9]\d*)$/;function Mpe(e,n){var a=typeof e;return n=n==null?Fpe:n,!!n&&(a=="number"||a!="symbol"&&Gpe.test(e))&&e>-1&&e%1==0&&e{var Ape=9007199254740991;function Lpe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ape}H9.exports=Lpe});var W9=xe((MSa,q9)=>{var Ppe=mh(),xpe=rG(),Npe=gh(),jpe="[object Arguments]",Ope="[object Array]",Upe="[object Boolean]",kpe="[object Date]",Bpe="[object Error]",Hpe="[object Function]",qpe="[object Map]",Wpe="[object Number]",Jpe="[object Object]",$pe="[object RegExp]",zpe="[object Set]",Vpe="[object String]",Qpe="[object WeakMap]",Kpe="[object ArrayBuffer]",Ype="[object DataView]",Xpe="[object Float32Array]",Zpe="[object Float64Array]",ede="[object Int8Array]",nde="[object Int16Array]",ade="[object Int32Array]",tde="[object Uint8Array]",rde="[object Uint8ClampedArray]",ode="[object Uint16Array]",ude="[object Uint32Array]",ar={};ar[Xpe]=ar[Zpe]=ar[ede]=ar[nde]=ar[ade]=ar[tde]=ar[rde]=ar[ode]=ar[ude]=!0;ar[jpe]=ar[Ope]=ar[Kpe]=ar[Upe]=ar[Ype]=ar[kpe]=ar[Bpe]=ar[Hpe]=ar[qpe]=ar[Wpe]=ar[Jpe]=ar[$pe]=ar[zpe]=ar[Vpe]=ar[Qpe]=!1;function ide(e){return Npe(e)&&xpe(e.length)&&!!ar[Ppe(e)]}q9.exports=ide});var $9=xe((ASa,J9)=>{function lde(e){return function(n){return e(n)}}J9.exports=lde});var V9=xe((wh,yp)=>{var cde=QF(),z9=typeof wh=="object"&&wh&&!wh.nodeType&&wh,yh=z9&&typeof yp=="object"&&yp&&!yp.nodeType&&yp,sde=yh&&yh.exports===z9,oG=sde&&cde.process,vde=function(){try{var e=yh&&yh.require&&yh.require("util").types;return e||oG&&oG.binding&&oG.binding("util")}catch{}}();yp.exports=vde});var uG=xe((LSa,Y9)=>{var fde=W9(),_de=$9(),Q9=V9(),K9=Q9&&Q9.isTypedArray,pde=K9?_de(K9):fde;Y9.exports=pde});var Z9=xe((PSa,X9)=>{var dde=S9(),mde=P9(),hde=kw(),Dde=tG(),gde=B9(),Rde=uG(),yde=Object.prototype,wde=yde.hasOwnProperty;function bde(e,n){var a=hde(e),t=!a&&mde(e),o=!a&&!t&&Dde(e),u=!a&&!t&&!o&&Rde(e),i=a||t||o||u,l=i?dde(e.length,String):[],s=l.length;for(var R in e)(n||wde.call(e,R))&&!(i&&(R=="length"||o&&(R=="offset"||R=="parent")||u&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||gde(R,s)))&&l.push(R);return l}X9.exports=bde});var nk=xe((xSa,ek)=>{var Ede=Object.prototype;function Ide(e){var n=e&&e.constructor,a=typeof n=="function"&&n.prototype||Ede;return e===a}ek.exports=Ide});var tk=xe((NSa,ak)=>{function Tde(e,n){return function(a){return e(n(a))}}ak.exports=Tde});var ok=xe((jSa,rk)=>{var Sde=tk(),Cde=Sde(Object.keys,Object);rk.exports=Cde});var ik=xe((OSa,uk)=>{var Fde=nk(),Gde=ok(),Mde=Object.prototype,Ade=Mde.hasOwnProperty;function Lde(e){if(!Fde(e))return Gde(e);var n=[];for(var a in Object(e))Ade.call(e,a)&&a!="constructor"&&n.push(a);return n}uk.exports=Lde});var ck=xe((USa,lk)=>{var Pde=YF(),xde=rG();function Nde(e){return e!=null&&xde(e.length)&&!Pde(e)}lk.exports=Nde});var vk=xe((kSa,sk)=>{var jde=Z9(),Ode=ik(),Ude=ck();function kde(e){return Ude(e)?jde(e):Ode(e)}sk.exports=kde});var _k=xe((BSa,fk)=>{var Bde=D9(),Hde=I9(),qde=vk();function Wde(e){return Bde(e,qde,Hde)}fk.exports=Wde});var mk=xe((HSa,dk)=>{var pk=_k(),Jde=1,$de=Object.prototype,zde=$de.hasOwnProperty;function Vde(e,n,a,t,o,u){var i=a&Jde,l=pk(e),s=l.length,R=pk(n),d=R.length;if(s!=d&&!i)return!1;for(var y=s;y--;){var I=l[y];if(!(i?I in n:zde.call(n,I)))return!1}var b=u.get(e),T=u.get(n);if(b&&T)return b==n&&T==e;var L=!0;u.set(e,n),u.set(n,e);for(var O=i;++y{var Qde=D0(),Kde=Ec(),Yde=Qde(Kde,"DataView");hk.exports=Yde});var Rk=xe((WSa,gk)=>{var Xde=D0(),Zde=Ec(),eme=Xde(Zde,"Promise");gk.exports=eme});var wk=xe((JSa,yk)=>{var nme=D0(),ame=Ec(),tme=nme(ame,"Set");yk.exports=tme});var Ek=xe(($Sa,bk)=>{var rme=D0(),ome=Ec(),ume=rme(ome,"WeakMap");bk.exports=ume});var Ak=xe((zSa,Mk)=>{var iG=Dk(),lG=Ow(),cG=Rk(),sG=wk(),vG=Ek(),Ik=mh(),wp=ZF(),Tk="[object Map]",ime="[object Object]",Sk="[object Promise]",Ck="[object Set]",Fk="[object WeakMap]",Gk="[object DataView]",lme=wp(iG),cme=wp(lG),sme=wp(cG),vme=wp(sG),fme=wp(vG),g0=Ik;(iG&&g0(new iG(new ArrayBuffer(1)))!=Gk||lG&&g0(new lG)!=Tk||cG&&g0(cG.resolve())!=Sk||sG&&g0(new sG)!=Ck||vG&&g0(new vG)!=Fk)&&(g0=function(e){var n=Ik(e),a=n==ime?e.constructor:void 0,t=a?wp(a):"";if(t)switch(t){case lme:return Gk;case cme:return Tk;case sme:return Sk;case vme:return Ck;case fme:return Fk}return n});Mk.exports=g0});var kk=xe((VSa,Uk)=>{var fG=J5(),_me=nG(),pme=_9(),dme=mk(),Lk=Ak(),Pk=kw(),xk=tG(),mme=uG(),hme=1,Nk="[object Arguments]",jk="[object Array]",Bw="[object Object]",Dme=Object.prototype,Ok=Dme.hasOwnProperty;function gme(e,n,a,t,o,u){var i=Pk(e),l=Pk(n),s=i?jk:Lk(e),R=l?jk:Lk(n);s=s==Nk?Bw:s,R=R==Nk?Bw:R;var d=s==Bw,y=R==Bw,I=s==R;if(I&&xk(e)){if(!xk(n))return!1;i=!0,d=!1}if(I&&!d)return u||(u=new fG),i||mme(e)?_me(e,n,a,t,o,u):pme(e,n,s,a,t,o,u);if(!(a&hme)){var b=d&&Ok.call(e,"__wrapped__"),T=y&&Ok.call(n,"__wrapped__");if(b||T){var L=b?e.value():e,O=T?n.value():n;return u||(u=new fG),o(L,O,a,t,u)}}return I?(u||(u=new fG),dme(e,n,a,t,o,u)):!1}Uk.exports=gme});var Wk=xe((QSa,qk)=>{var Rme=kk(),Bk=gh();function Hk(e,n,a,t,o){return e===n?!0:e==null||n==null||!Bk(e)&&!Bk(n)?e!==e&&n!==n:Rme(e,n,a,t,Hk,o)}qk.exports=Hk});var $k=xe((KSa,Jk)=>{var yme=Wk();function wme(e,n){return yme(e,n)}Jk.exports=wme});var SB=xe((qFa,Kme)=>{Kme.exports=`.rc-tooltip.rc-tooltip-zoom-appear, .rc-tooltip.rc-tooltip-zoom-enter { opacity: 0; } .rc-tooltip.rc-tooltip-zoom-enter, .rc-tooltip.rc-tooltip-zoom-leave { display: block; } .rc-tooltip-zoom-enter, .rc-tooltip-zoom-appear { opacity: 0; animation-duration: 0.3s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28); animation-play-state: paused; } .rc-tooltip-zoom-leave { animation-duration: 0.3s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05); animation-play-state: paused; } .rc-tooltip-zoom-enter.rc-tooltip-zoom-enter-active, .rc-tooltip-zoom-appear.rc-tooltip-zoom-appear-active { animation-name: rcToolTipZoomIn; animation-play-state: running; } .rc-tooltip-zoom-leave.rc-tooltip-zoom-leave-active { animation-name: rcToolTipZoomOut; animation-play-state: running; } @keyframes rcToolTipZoomIn { 0% { opacity: 0; transform-origin: 50% 50%; transform: scale(0, 0); } 100% { opacity: 1; transform-origin: 50% 50%; transform: scale(1, 1); } } @keyframes rcToolTipZoomOut { 0% { opacity: 1; transform-origin: 50% 50%; transform: scale(1, 1); } 100% { opacity: 0; transform-origin: 50% 50%; transform: scale(0, 0); } } .rc-tooltip { position: absolute; z-index: 1070; display: block; visibility: visible; line-height: 1.5; font-size: 12px; background-color: rgba(0, 0, 0, 0.05); padding: 1px; opacity: 0.9; } .rc-tooltip-hidden { display: none; } .rc-tooltip-inner { padding: 8px 10px; color: #333333; text-align: left; text-decoration: none; background-color: #ffffff; border-radius: 3px; min-height: 34px; border: 1px solid #b1b1b1; } .rc-tooltip-arrow, .rc-tooltip-arrow-inner { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .rc-tooltip-placement-top .rc-tooltip-arrow, .rc-tooltip-placement-topLeft .rc-tooltip-arrow, .rc-tooltip-placement-topRight .rc-tooltip-arrow { bottom: -5px; margin-left: -6px; border-width: 6px 6px 0; border-top-color: #b1b1b1; } .rc-tooltip-placement-top .rc-tooltip-arrow-inner, .rc-tooltip-placement-topLeft .rc-tooltip-arrow-inner, .rc-tooltip-placement-topRight .rc-tooltip-arrow-inner { bottom: 1px; margin-left: -6px; border-width: 6px 6px 0; border-top-color: #ffffff; } .rc-tooltip-placement-top .rc-tooltip-arrow { left: 50%; } .rc-tooltip-placement-topLeft .rc-tooltip-arrow { left: 15%; } .rc-tooltip-placement-topRight .rc-tooltip-arrow { right: 15%; } .rc-tooltip-placement-right .rc-tooltip-arrow, .rc-tooltip-placement-rightTop .rc-tooltip-arrow, .rc-tooltip-placement-rightBottom .rc-tooltip-arrow { left: -5px; margin-top: -6px; border-width: 6px 6px 6px 0; border-right-color: #b1b1b1; } .rc-tooltip-placement-right .rc-tooltip-arrow-inner, .rc-tooltip-placement-rightTop .rc-tooltip-arrow-inner, .rc-tooltip-placement-rightBottom .rc-tooltip-arrow-inner { left: 1px; margin-top: -6px; border-width: 6px 6px 6px 0; border-right-color: #ffffff; } .rc-tooltip-placement-right .rc-tooltip-arrow { top: 50%; } .rc-tooltip-placement-rightTop .rc-tooltip-arrow { top: 15%; margin-top: 0; } .rc-tooltip-placement-rightBottom .rc-tooltip-arrow { bottom: 15%; } .rc-tooltip-placement-left .rc-tooltip-arrow, .rc-tooltip-placement-leftTop .rc-tooltip-arrow, .rc-tooltip-placement-leftBottom .rc-tooltip-arrow { right: -5px; margin-top: -6px; border-width: 6px 0 6px 6px; border-left-color: #b1b1b1; } .rc-tooltip-placement-left .rc-tooltip-arrow-inner, .rc-tooltip-placement-leftTop .rc-tooltip-arrow-inner, .rc-tooltip-placement-leftBottom .rc-tooltip-arrow-inner { right: 1px; margin-top: -6px; border-width: 6px 0 6px 6px; border-left-color: #ffffff; } .rc-tooltip-placement-left .rc-tooltip-arrow { top: 50%; } .rc-tooltip-placement-leftTop .rc-tooltip-arrow { top: 15%; margin-top: 0; } .rc-tooltip-placement-leftBottom .rc-tooltip-arrow { bottom: 15%; } .rc-tooltip-placement-bottom .rc-tooltip-arrow, .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow, .rc-tooltip-placement-bottomRight .rc-tooltip-arrow { top: -5px; margin-left: -6px; border-width: 0 6px 6px; border-bottom-color: #b1b1b1; } .rc-tooltip-placement-bottom .rc-tooltip-arrow-inner, .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow-inner, .rc-tooltip-placement-bottomRight .rc-tooltip-arrow-inner { top: 1px; margin-left: -6px; border-width: 0 6px 6px; border-bottom-color: #ffffff; } .rc-tooltip-placement-bottom .rc-tooltip-arrow { left: 50%; } .rc-tooltip-placement-bottomLeft .rc-tooltip-arrow { left: 15%; } .rc-tooltip-placement-bottomRight .rc-tooltip-arrow { right: 15%; } `});var ez=xe((sD,iA)=>{typeof window!="undefined"&&function(n,a){typeof sD=="object"&&typeof iA=="object"?iA.exports=a():typeof define=="function"&&define.amd?define([],a):typeof sD=="object"?sD.Hls=a():n.Hls=a()}(sD,function(){return function(e){var n={};function a(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=n,a.d=function(t,o,u){a.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:u})},a.r=function(t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,o){if(o&1&&(t=a(t)),o&8||o&4&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),o&2&&typeof t!="string")for(var i in t)a.d(u,i,function(l){return t[l]}.bind(null,i));return u},a.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(o,"a",o),o},a.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},a.p="/dist/",a(a.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(e,n,a){"use strict";var t=Object.prototype.hasOwnProperty,o="~";function u(){}Object.create&&(u.prototype=Object.create(null),new u().__proto__||(o=!1));function i(d,y,I){this.fn=d,this.context=y,this.once=I||!1}function l(d,y,I,b,T){if(typeof I!="function")throw new TypeError("The listener must be a function");var L=new i(I,b||d,T),O=o?o+y:y;return d._events[O]?d._events[O].fn?d._events[O]=[d._events[O],L]:d._events[O].push(L):(d._events[O]=L,d._eventsCount++),d}function s(d,y){--d._eventsCount==0?d._events=new u:delete d._events[y]}function R(){this._events=new u,this._eventsCount=0}R.prototype.eventNames=function(){var y=[],I,b;if(this._eventsCount===0)return y;for(b in I=this._events)t.call(I,b)&&y.push(o?b.slice(1):b);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(I)):y},R.prototype.listeners=function(y){var I=o?o+y:y,b=this._events[I];if(!b)return[];if(b.fn)return[b.fn];for(var T=0,L=b.length,O=new Array(L);T0},!1)}function d(y,I){for(var b={main:[I]},T={main:[]},L={main:{}};R(b);)for(var O=Object.keys(b),$=0;$>>8^Bn&255^99,Z[Sn]=Bn,oe[Bn]=Sn;var Qn=Ye[Sn],Hn=Ye[Qn],st=Ye[Hn],Ne=Ye[Bn]*257^Bn*16843008;ve[Sn]=Ne<<24|Ne>>>8,ge[Sn]=Ne<<16|Ne>>>16,nn[Sn]=Ne<<8|Ne>>>24,cn[Sn]=Ne,Ne=st*16843009^Hn*65537^Qn*257^Sn*16843008,le[Bn]=Ne<<24|Ne>>>8,Pe[Bn]=Ne<<16|Ne>>>16,Ce[Bn]=Ne<<8|Ne>>>24,Be[Bn]=Ne,Sn?(Sn=Qn^Ye[Ye[Ye[st^Qn]]],ta^=Ye[Ye[ta]]):Sn=ta=1}},$.expandKey=function(Z){for(var oe=this.uint8ArrayToUint32Array_(Z),te=!0,ve=0;ve>>6)+1,N=(K[j+2]&60)>>>2,N>Ie.length-1){q.trigger(t.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+N});return}return V=(K[j+2]&1)<<2,V|=(K[j+3]&192)>>>6,l.logger.log("manifest codec:"+E+",ADTS data:type:"+P+",sampleingIndex:"+N+"["+Ie[N]+"Hz],channelConfig:"+V),/firefox/i.test(re)?N>=6?(P=5,ue=new Array(4),W=N-3):(P=2,ue=new Array(2),W=N):re.indexOf("android")!==-1?(P=2,ue=new Array(2),W=N):(P=5,ue=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&N>=6?W=N-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(N>=6&&V===1||/vivaldi/i.test(re))||!E&&V===1)&&(P=2,ue=new Array(2)),W=N)),ue[0]=P<<3,ue[0]|=(N&14)>>1,ue[1]|=(N&1)<<7,ue[1]|=V<<3,P===5&&(ue[1]|=(W&14)>>1,ue[2]=(W&1)<<7,ue[2]|=2<<2,ue[3]=0),{config:ue,samplerate:Ie[N],channelCount:V,codec:"mp4a.40."+P,manifestCodec:me}}function d(q,K){return q[K]===255&&(q[K+1]&246)==240}function y(q,K){return q[K+1]&1?7:9}function I(q,K){return(q[K+3]&3)<<11|q[K+4]<<3|(q[K+5]&224)>>>5}function b(q,K){return!!(K+10&&K+N+W<=ue)return V=j+E*P,{headerLength:N,frameLength:W,stamp:V}}function z(q,K,j,E,P){var N=O(q.samplerate),W=$(K,j,E,P,N);if(W){var V=W.stamp,ue=W.headerLength,re=W.frameLength,me={unit:K.subarray(j+ue,j+ue+re),pts:V,dts:V};return q.samples.push(me),{sample:me,length:re+ue}}}var Z=a("./src/demux/id3.js"),oe=function(){function q(j,E,P){this.observer=j,this.config=P,this.remuxer=E}var K=q.prototype;return K.resetInitSegment=function(E,P,N,W){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:P,duration:W,inputTimeScale:9e4}},K.resetTimeStamp=function(){},q.probe=function(E){if(!E)return!1;for(var P=Z.default.getID3Data(E,0)||[],N=P.length,W=E.length;Nj.length)){var W=this.parseHeader(j,E);if(W&&E+W.frameLength<=j.length){var V=W.samplesPerFrame*9e4/W.sampleRate,ue=P+N*V,re={unit:j.subarray(E,E+W.frameLength),pts:ue,dts:ue};return K.config=[],K.channelCount=W.channelCount,K.samplerate=W.sampleRate,K.samples.push(re),{sample:re,length:W.frameLength}}}},parseHeader:function(K,j){var E=K[j+1]>>3&3,P=K[j+1]>>1&3,N=K[j+2]>>4&15,W=K[j+2]>>2&3,V=K[j+2]>>1&1;if(E!==1&&N!==0&&N!==15&&W!==3){var ue=E===3?3-P:P===3?3:4,re=ge.BitratesMap[ue*14+N-1]*1e3,me=E===3?0:E===2?1:2,Ie=ge.SamplingRateMap[me*3+W],Fe=K[j+3]>>6==3?1:2,Ge=ge.SamplesCoefficients[E][P],un=ge.BytesInSlot[P],pn=Ge*8*un,Le=parseInt(Ge*re/Ie+V,10)*un;return{sampleRate:Ie,channelCount:Fe,frameLength:Le,samplesPerFrame:pn}}},isHeaderPattern:function(K,j){return K[j]===255&&(K[j+1]&224)==224&&(K[j+1]&6)!=0},isHeader:function(K,j){return!!(j+1E?(this.word<<=E,this.bitsAvailable-=E):(E-=this.bitsAvailable,P=E>>3,E-=P>>3,this.bytesAvailable-=P,this.loadWord(),this.word<<=E,this.bitsAvailable-=E)},K.readBits=function(E){var P=Math.min(this.bitsAvailable,E),N=this.word>>>32-P;return E>32&&l.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=P,this.bitsAvailable>0?this.word<<=P:this.bytesAvailable>0&&this.loadWord(),P=E-P,P>0&&this.bitsAvailable?N<>>E)!=0)return this.word<<=E,this.bitsAvailable-=E,E;return this.loadWord(),E+this.skipLZ()},K.skipUEG=function(){this.skipBits(1+this.skipLZ())},K.skipEG=function(){this.skipBits(1+this.skipLZ())},K.readUEG=function(){var E=this.skipLZ();return this.readBits(E+1)-1},K.readEG=function(){var E=this.readUEG();return 1&E?1+E>>>1:-1*(E>>>1)},K.readBoolean=function(){return this.readBits(1)===1},K.readUByte=function(){return this.readBits(8)},K.readUShort=function(){return this.readBits(16)},K.readUInt=function(){return this.readBits(32)},K.skipScalingList=function(E){var P=8,N=8,W,V;for(W=0;W=E.length){N();return}if(!(E[P].unit.length<32)){var W=this.decrypter.isSync();if(this.decryptAacSample(E,P,N,W),!W)return}}},K.getAvcEncryptedData=function(E){for(var P=Math.floor((E.length-48)/160)*16+16,N=new Int8Array(P),W=0,V=32;V<=E.length-16;V+=160,W+=16)N.set(E.subarray(V,V+16),W);return N},K.getAvcDecryptedUnit=function(E,P){P=new Uint8Array(P);for(var N=0,W=32;W<=E.length-16;W+=160,N+=16)E.set(P.subarray(N,N+16),W);return E},K.decryptAvcSample=function(E,P,N,W,V,ue){var re=this.discardEPB(V.data),me=this.getAvcEncryptedData(re),Ie=this;this.decryptBuffer(me.buffer,function(Fe){V.data=Ie.getAvcDecryptedUnit(re,Fe),ue||Ie.decryptAvcSamples(E,P,N+1,W)})},K.decryptAvcSamples=function(E,P,N,W){for(;;P++,N=0){if(P>=E.length){W();return}for(var V=E[P].units;!(N>=V.length);N++){var ue=V[N];if(!(ue.length<=48||ue.type!==1&&ue.type!==5)){var re=this.decrypter.isSync();if(this.decryptAvcSample(E,P,N,W,ue,re),!re)return}}}},q}(),Pe=le,Ce={video:1,audio:2,id3:3,text:4},Be=function(){function q(j,E,P,N){this.observer=j,this.config=P,this.typeSupported=N,this.remuxer=E,this.sampleAes=null}var K=q.prototype;return K.setDecryptData=function(E){E!=null&&E.key!=null&&E.method==="SAMPLE-AES"?this.sampleAes=new Pe(this.observer,this.config,E,this.discardEPB):this.sampleAes=null},q.probe=function(E){var P=q._syncOffset(E);return P<0?!1:(P&&l.logger.warn("MPEG2-TS detected but first sync word found @ offset "+P+", junk ahead ?"),!0)},q._syncOffset=function(E){for(var P=Math.min(1e3,E.length-3*188),N=0;N>4,Ie>1){if(Fe=V+5+E[V+4],Fe===V+188)continue}else Fe=V+4;switch(me){case pa:re&&(ft&&(Ge=tr(ft))&&Er(Ge,!1),ft={data:[],size:0}),ft&&(ft.data.push(E.subarray(Fe,V+188)),ft.size+=V+188-Fe);break;case Ka:re&&(Pa&&(Ge=tr(Pa))&&(Rn.isAAC?to(Ge):fr(Ge)),Pa={data:[],size:0}),Pa&&(Pa.data.push(E.subarray(Fe,V+188)),Pa.size+=V+188-Fe);break;case At:re&&(jt&&(Ge=tr(jt))&&Po(Ge),jt={data:[],size:0}),jt&&(jt.data.push(E.subarray(Fe,V+188)),jt.size+=V+188-Fe);break;case 0:re&&(Fe+=E[Fe]+1),wa=this._pmtId=Ba(E,Fe);break;case wa:re&&(Fe+=E[Fe]+1);var Xt=bt(E,Fe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,this.sampleAes!=null);pa=Xt.avc,pa>0&&(Le.pid=pa),Ka=Xt.audio,Ka>0&&(Rn.pid=Ka,Rn.isAAC=Xt.isAAC),At=Xt.id3,At>0&&(Vn.pid=At),un&&!pn&&(l.logger.log("reparse from beginning"),un=!1,V=Ir-188),pn=this.pmtParsed=!0;break;case 17:case 8191:break;default:un=!0;break}}else this.observer.trigger(t.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});ft&&(Ge=tr(ft))?(Er(Ge,!0),Le.pesData=null):Le.pesData=ft,Pa&&(Ge=tr(Pa))?(Rn.isAAC?to(Ge):fr(Ge),Rn.pesData=null):(Pa&&Pa.size&&l.logger.log("last AAC PES packet truncated,might overlap between fragments"),Rn.pesData=Pa),jt&&(Ge=tr(jt))?(Po(Ge),Vn.pesData=null):Vn.pesData=jt,this.sampleAes==null?this.remuxer.remux(Rn,Le,Vn,this._txtTrack,P,N,W):this.decryptAndRemux(Rn,Le,Vn,this._txtTrack,P,N,W)},K.decryptAndRemux=function(E,P,N,W,V,ue,re){if(E.samples&&E.isAAC){var me=this;this.sampleAes.decryptAacSamples(E.samples,0,function(){me.decryptAndRemuxAvc(E,P,N,W,V,ue,re)})}else this.decryptAndRemuxAvc(E,P,N,W,V,ue,re)},K.decryptAndRemuxAvc=function(E,P,N,W,V,ue,re){if(P.samples){var me=this;this.sampleAes.decryptAvcSamples(P.samples,0,0,function(){me.remuxer.remux(E,P,N,W,V,ue,re)})}else this.remuxer.remux(E,P,N,W,V,ue,re)},K.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},K._parsePAT=function(E,P){return(E[P+10]&31)<<8|E[P+11]},K._parsePMT=function(E,P,N,W){var V,ue,re,me,Ie={audio:-1,avc:-1,id3:-1,isAAC:!0};for(V=(E[P+1]&15)<<8|E[P+2],ue=P+3+V-4,re=(E[P+10]&15)<<8|E[P+11],P+=12+re;P1;){var pn=new Uint8Array(un[0].length+un[1].length);pn.set(un[0]),pn.set(un[1],un[0].length),un[0]=pn,un.splice(1,1)}if(N=un[0],V=(N[0]<<16)+(N[1]<<8)+N[2],V===1){if(ue=(N[4]<<8)+N[5],ue&&ue>E.size-6||(W=N[7],W&192&&(Ie=(N[9]&14)*536870912+(N[10]&255)*4194304+(N[11]&254)*16384+(N[12]&255)*128+(N[13]&254)/2,Ie>4294967295&&(Ie-=8589934592),W&64?(Fe=(N[14]&14)*536870912+(N[15]&255)*4194304+(N[16]&254)*16384+(N[17]&255)*128+(N[18]&254)/2,Fe>4294967295&&(Fe-=8589934592),Ie-Fe>60*9e4&&(l.logger.warn(Math.round((Ie-Fe)/9e4)+"s delta between PTS and DTS, align them"),Ie=Fe)):Fe=Ie),re=N[8],Ge=re+9,E.size<=Ge))return null;E.size-=Ge,me=new Uint8Array(E.size);for(var Le=0,Rn=un.length;LeVn){Ge-=Vn;continue}else N=N.subarray(Ge),Vn-=Ge,Ge=0;me.set(N,P),P+=Vn}return ue&&(ue-=re+3),{data:me,pts:Ie,dts:Fe,len:ue}}else return null},K.pushAccesUnit=function(E,P){if(E.units.length&&E.frame){var N=P.samples,W=N.length;if(isNaN(E.pts))if(W){var V=N[W-1];E.pts=V.pts,E.dts=V.dts}else{P.dropped++;return}!this.config.forceKeyFrameOnDiscontinuity||E.key===!0||P.sps&&(W||this.contiguous)?(E.id=W,N.push(E)):P.dropped++}E.debug.length&&l.logger.log(E.pts+"/"+E.dts+":"+E.debug)},K._parseAVCPES=function(E,P){var N=this,W=this._avcTrack,V=this._parseAVCNALu(E.data),ue=!1,re,me=this.avcSample,Ie,Fe=!1,Ge,un=this.pushAccesUnit.bind(this),pn=function(Rn,Vn,pa,Ka){return{key:Rn,pts:Vn,dts:pa,units:[],debug:Ka}};E.data=null,me&&V.length&&!W.audFound&&(un(me,W),me=this.avcSample=pn(!1,E.pts,E.dts,"")),V.forEach(function(Le){switch(Le.type){case 1:Ie=!0,me||(me=N.avcSample=pn(!0,E.pts,E.dts,"")),ue&&(me.debug+="NDR "),me.frame=!0;var Rn=Le.data;if(Fe&&Rn.length>4){var Vn=new ce(Rn).readSliceType();(Vn===2||Vn===4||Vn===7||Vn===9)&&(me.key=!0)}break;case 5:Ie=!0,me||(me=N.avcSample=pn(!0,E.pts,E.dts,"")),ue&&(me.debug+="IDR "),me.key=!0,me.frame=!0;break;case 6:Ie=!0,ue&&me&&(me.debug+="SEI "),re=new ce(N.discardEPB(Le.data)),re.readUByte();for(var pa=0,Ka=0,At=!1,wa=0;!At&&re.bytesAvailable>1;){pa=0;do wa=re.readUByte(),pa+=wa;while(wa===255);Ka=0;do wa=re.readUByte(),Ka+=wa;while(wa===255);if(pa===4&&re.bytesAvailable!==0){At=!0;var ft=re.readUByte();if(ft===181){var Pa=re.readUShort();if(Pa===49){var jt=re.readUInt();if(jt===1195456820){var Ba=re.readUByte();if(Ba===3){var bt=re.readUByte(),tr=re.readUByte(),Er=31&bt,to=[bt,tr];for(Ge=0;Ge16){var fr=[];for(Ge=0;Ge<16;Ge++)fr.push(re.readUByte().toString(16)),(Ge===3||Ge===5||Ge===7||Ge===9)&&fr.push("-");var Po=Ka-16,Ir=new Uint8Array(Po);for(Ge=0;Ge0){if(P.pts>=E[N-1].pts)E.push(P);else for(var W=N-1;W>=0;W--)if(P.pts=0)Fe={data:E.subarray(un,P-re-1),type:pn},Ie.push(Fe);else{var Le=this._getLastNalUnit();if(Le&&(me&&P<=4-me&&Le.state&&(Le.data=Le.data.subarray(0,Le.data.byteLength-me)),V=P-re-1,V>0)){var Rn=new Uint8Array(Le.data.byteLength+V);Rn.set(Le.data,0),Rn.set(E.subarray(0,V),Le.data.byteLength),Le.data=Rn}}P=0&&re>=0&&(Fe={data:E.subarray(un,N),type:pn,state:re},Ie.push(Fe)),Ie.length===0){var Vn=this._getLastNalUnit();if(Vn){var pa=new Uint8Array(Vn.data.byteLength+E.byteLength);pa.set(Vn.data,0),pa.set(E,Vn.data.byteLength),Vn.data=pa}}return ue.naluState=re,Ie},K.discardEPB=function(E){for(var P=E.byteLength,N=[],W=1,V,ue;W1&&(l.logger.log("AAC: align PTS for overlapping frames by "+Math.round((Vn-W)/90)),W=Vn)}for(;Fe>24&255,V[1]=P>>16&255,V[2]=P>>8&255,V[3]=P&255,V.set(j,4),N=0,P=8;N>24&255,j>>16&255,j>>8&255,j&255,P>>24,P>>16&255,P>>8&255,P&255,N>>24,N>>16&255,N>>8&255,N&255,85,196,0,0]))},q.mdia=function(j){return q.box(q.types.mdia,q.mdhd(j.timescale,j.duration),q.hdlr(j.type),q.minf(j))},q.mfhd=function(j){return q.box(q.types.mfhd,new Uint8Array([0,0,0,0,j>>24,j>>16&255,j>>8&255,j&255]))},q.minf=function(j){return j.type==="audio"?q.box(q.types.minf,q.box(q.types.smhd,q.SMHD),q.DINF,q.stbl(j)):q.box(q.types.minf,q.box(q.types.vmhd,q.VMHD),q.DINF,q.stbl(j))},q.moof=function(j,E,P){return q.box(q.types.moof,q.mfhd(j),q.traf(P,E))},q.moov=function(j){for(var E=j.length,P=[];E--;)P[E]=q.trak(j[E]);return q.box.apply(null,[q.types.moov,q.mvhd(j[0].timescale,j[0].duration)].concat(P).concat(q.mvex(j)))},q.mvex=function(j){for(var E=j.length,P=[];E--;)P[E]=q.trex(j[E]);return q.box.apply(null,[q.types.mvex].concat(P))},q.mvhd=function(j,E){E*=j;var P=Math.floor(E/(Qn+1)),N=Math.floor(E%(Qn+1)),W=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,j>>24&255,j>>16&255,j>>8&255,j&255,P>>24,P>>16&255,P>>8&255,P&255,N>>24,N>>16&255,N>>8&255,N&255,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 q.box(q.types.mvhd,W)},q.sdtp=function(j){var E=j.samples||[],P=new Uint8Array(4+E.length),N,W;for(W=0;W>>8&255),E.push(V&255),E=E.concat(Array.prototype.slice.call(W));for(N=0;N>>8&255),P.push(V&255),P=P.concat(Array.prototype.slice.call(W));var ue=q.box(q.types.avcC,new Uint8Array([1,E[3],E[4],E[5],252|3,224|j.sps.length].concat(E).concat([j.pps.length]).concat(P))),re=j.width,me=j.height,Ie=j.pixelRatio[0],Fe=j.pixelRatio[1];return q.box(q.types.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,re>>8&255,re&255,me>>8&255,me&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),ue,q.box(q.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),q.box(q.types.pasp,new Uint8Array([Ie>>24,Ie>>16&255,Ie>>8&255,Ie&255,Fe>>24,Fe>>16&255,Fe>>8&255,Fe&255])))},q.esds=function(j){var E=j.config.length;return new Uint8Array([0,0,0,0,3,23+E,0,1,0,4,15+E,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([E]).concat(j.config).concat([6,1,2]))},q.mp4a=function(j){var E=j.samplerate;return q.box(q.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,j.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]),q.box(q.types.esds,q.esds(j)))},q.mp3=function(j){var E=j.samplerate;return q.box(q.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,j.channelCount,0,16,0,0,0,0,E>>8&255,E&255,0,0]))},q.stsd=function(j){return j.type==="audio"?!j.isAAC&&j.codec==="mp3"?q.box(q.types.stsd,q.STSD,q.mp3(j)):q.box(q.types.stsd,q.STSD,q.mp4a(j)):q.box(q.types.stsd,q.STSD,q.avc1(j))},q.tkhd=function(j){var E=j.id,P=j.duration*j.timescale,N=j.width,W=j.height,V=Math.floor(P/(Qn+1)),ue=Math.floor(P%(Qn+1));return q.box(q.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,E>>24&255,E>>16&255,E>>8&255,E&255,0,0,0,0,V>>24,V>>16&255,V>>8&255,V&255,ue>>24,ue>>16&255,ue>>8&255,ue&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,N>>8&255,N&255,0,0,W>>8&255,W&255,0,0]))},q.traf=function(j,E){var P=q.sdtp(j),N=j.id,W=Math.floor(E/(Qn+1)),V=Math.floor(E%(Qn+1));return q.box(q.types.traf,q.box(q.types.tfhd,new Uint8Array([0,0,0,0,N>>24,N>>16&255,N>>8&255,N&255])),q.box(q.types.tfdt,new Uint8Array([1,0,0,0,W>>24,W>>16&255,W>>8&255,W&255,V>>24,V>>16&255,V>>8&255,V&255])),q.trun(j,P.length+16+20+8+16+8+8),P)},q.trak=function(j){return j.duration=j.duration||4294967295,q.box(q.types.trak,q.tkhd(j),q.mdia(j))},q.trex=function(j){var E=j.id;return q.box(q.types.trex,new Uint8Array([0,0,0,0,E>>24,E>>16&255,E>>8&255,E&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},q.trun=function(j,E){var P=j.samples||[],N=P.length,W=12+16*N,V=new Uint8Array(W),ue,re,me,Ie,Fe,Ge;for(E+=8+W,V.set([0,0,15,1,N>>>24&255,N>>>16&255,N>>>8&255,N&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255],0),ue=0;ue>>24&255,me>>>16&255,me>>>8&255,me&255,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,Fe.isLeading<<2|Fe.dependsOn,Fe.isDependedOn<<6|Fe.hasRedundancy<<4|Fe.paddingValue<<1|Fe.isNonSync,Fe.degradPrio&240<<8,Fe.degradPrio&15,Ge>>>24&255,Ge>>>16&255,Ge>>>8&255,Ge&255],12+16*ue);return q.box(q.types.trun,V)},q.initSegment=function(j){q.types||q.init();var E=q.moov(j),P;return P=new Uint8Array(q.FTYP.byteLength+E.byteLength),P.set(q.FTYP),P.set(E,q.FTYP.byteLength),P},q}(),st=Hn,Ne=9e4;function ua(q,K,j,E){return j===void 0&&(j=1),E===void 0&&(E=!1),Ta(q,K,1/j)}function Ta(q,K,j,E){j===void 0&&(j=1),E===void 0&&(E=!1);var P=q*K*j;return E?Math.round(P):P}function En(q,K){return K===void 0&&(K=!1),Ta(q,1e3,1/Ne,K)}function dn(q,K){return K===void 0&&(K=1),Ta(q,Ne,1/K)}var He=dn(10),ea=dn(.2),va=function(){function q(j,E,P,N){this.observer=j,this.config=E,this.typeSupported=P;var W=navigator.userAgent;this.isSafari=N&&N.indexOf("Apple")>-1&&W&&!W.match("CriOS"),this.ISGenerated=!1}var K=q.prototype;return K.destroy=function(){},K.resetTimeStamp=function(E){this._initPTS=this._initDTS=E},K.resetInitSegment=function(){this.ISGenerated=!1},K.remux=function(E,P,N,W,V,ue,re){if(this.ISGenerated||this.generateIS(E,P,V),this.ISGenerated){var me=E.samples.length,Ie=P.samples.length,Fe=V,Ge=V;if(me&&Ie){var un=(E.samples[0].pts-P.samples[0].pts)/P.inputTimeScale;Fe+=Math.max(0,un),Ge+=Math.max(0,-un)}if(me){E.timescale||(l.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(E,P,V));var pn=this.remuxAudio(E,Fe,ue,re);if(Ie){var Le;pn&&(Le=pn.endPTS-pn.startPTS),P.timescale||(l.logger.warn("regenerate InitSegment as video detected"),this.generateIS(E,P,V)),this.remuxVideo(P,Ge,ue,Le,re)}}else if(Ie){var Rn=this.remuxVideo(P,Ge,ue,0,re);Rn&&E.codec&&this.remuxEmptyAudio(E,Fe,ue,Rn)}}N.samples.length&&this.remuxID3(N,V),W.samples.length&&this.remuxText(W,V),this.observer.trigger(t.default.FRAG_PARSED)},K.generateIS=function(E,P,N){var W=this.observer,V=E.samples,ue=P.samples,re=this.typeSupported,me="audio/mp4",Ie={},Fe={tracks:Ie},Ge=this._initPTS===void 0,un,pn;if(Ge&&(un=pn=1/0),E.config&&V.length&&(E.timescale=E.samplerate,l.logger.log("audio sampling rate : "+E.samplerate),E.isAAC||(re.mpeg?(me="audio/mpeg",E.codec=""):re.mp3&&(E.codec="mp3")),Ie.audio={container:me,codec:E.codec,initSegment:!E.isAAC&&re.mpeg?new Uint8Array:st.initSegment([E]),metadata:{channelCount:E.channelCount}},Ge&&(un=pn=V[0].pts-E.inputTimeScale*N)),P.sps&&P.pps&&ue.length){var Le=P.inputTimeScale;P.timescale=Le,Ie.video={container:"video/mp4",codec:P.codec,initSegment:st.initSegment([P]),metadata:{width:P.width,height:P.height}},Ge&&(un=Math.min(un,ue[0].pts-Le*N),pn=Math.min(pn,ue[0].dts-Le*N),this.observer.trigger(t.default.INIT_PTS_FOUND,{initPTS:un}))}Object.keys(Ie).length?(W.trigger(t.default.FRAG_PARSING_INIT_SEGMENT,Fe),this.ISGenerated=!0,Ge&&(this._initPTS=un,this._initDTS=pn)):W.trigger(t.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},K.remuxVideo=function(E,P,N,W,V){var ue=8,re,me,Ie,Fe,Ge,un,pn,Le=E.timescale,Rn=E.samples,Vn=[],pa=Rn.length,Ka=this._PTSNormalize,At=this._initPTS,wa=this.nextAvcDts,ft=this.isSafari;if(pa!==0){ft&&(N|=Rn.length&&wa&&(V&&Math.abs(P-wa/Le)<.1||Math.abs(Rn[0].pts-wa-At)1?l.logger.log("AVC: "+En(bt,!0)+" ms hole between fragments detected,filling it"):bt<-1&&l.logger.log("AVC: "+En(-bt,!0)+" ms overlapping between fragments detected"),Ge=wa,Rn[0].dts=Ge,Fe=Math.max(Fe-bt,wa),Rn[0].pts=Fe,l.logger.log("Video: PTS/DTS adjusted: "+En(Fe,!0)+"/"+En(Ge,!0)+", delta: "+En(bt,!0)+" ms")),Ba=Rn[Rn.length-1],pn=Math.max(Ba.dts,0),un=Math.max(Ba.pts,0,pn),ft&&(re=Math.round((pn-Ge)/(Rn.length-1)));for(var tr=0,Er=0,to=0;to0?Ro-1:Ro].dts;if(Pc.stretchShortVideoTrack){var Gi=Pc.maxBufferHole,td=Math.floor(Gi*Le),Qv=(W?Fe+W*Le:this.nextAudioPts)-Nr.pts;Qv>td?(re=Qv-hl,re<0&&(re=hl),l.logger.log("It is approximately "+En(Qv,!1)+" ms to the next segment; using duration "+En(re,!1)+" ms for the last video frame.")):re=hl}else re=hl}Fi=Math.round(Nr.pts-Nr.dts)}Vn.push({size:Yu,duration:re,cts:Fi,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:Nr.key?2:1,isNonSync:Nr.key?0:1}})}this.nextAvcDts=pn+re;var B0=E.dropped;if(E.nbNalu=0,E.dropped=0,Vn.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var H0=Vn[0].flags;H0.dependsOn=2,H0.isNonSync=0}E.samples=Vn,Ie=st.moof(E.sequenceNumber++,Ge,E),E.samples=[];var Mi={data1:Ie,data2:me,startPTS:Fe/Le,endPTS:(un+re)/Le,startDTS:Ge/Le,endDTS:this.nextAvcDts/Le,type:"video",hasAudio:!1,hasVideo:!0,nb:Vn.length,dropped:B0};return this.observer.trigger(t.default.FRAG_PARSING_DATA,Mi),Mi}},K.remuxAudio=function(E,P,N,W){var V=E.inputTimeScale,ue=E.timescale,re=V/ue,me=E.isAAC?1024:1152,Ie=me*re,Fe=this._PTSNormalize,Ge=this._initPTS,un=!E.isAAC&&this.typeSupported.mpeg,pn,Le,Rn,Vn,pa,Ka,At=un?0:8,wa=E.samples,ft=[],Pa=this.nextAudioPts;if(N|=wa.length&&Pa&&(W&&Math.abs(P-Pa/V)<.1||Math.abs(wa[0].pts-Pa-Ge)<20*Ie),wa.forEach(function(Gi){Gi.pts=Gi.dts=Fe(Gi.pts-Ge,P*V)}),wa=wa.filter(function(Gi){return Gi.pts>=0}),wa.length!==0){if(N||(W?Pa=P*V:Pa=wa[0].pts),E.isAAC)for(var jt=this.config.maxAudioFramesDrift,Ba=0,bt=Pa;Ba=jt*Ie&&Er.1*Ie,tr.pts=tr.dts=bt,bt+=Ie,Ba++}for(var Xt=wa.length,xr=0;Xt--;)xr+=wa[Xt].unit.byteLength;for(var Qo=0,Ko=wa.length;Qo0&&Yu0&&(Le=Bn.getSilentFrame(E.manifestCodec||E.codec,E.channelCount),Le||(Le=Nr.subarray()),xr+=Fi*Le.length);else if(Yu<-12){l.logger.log("drop overlapping AAC sample, expected/parsed/delta: "+En(Pa,!0)+" ms / "+En(bu,!0)+" ms / "+En(-Yu,!0)+" ms"),xr-=Nr.byteLength;continue}bu=Pa}if(pa=bu,xr>0){xr+=At;try{Rn=new Uint8Array(xr)}catch{this.observer.trigger(t.default.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:xr,reason:"fail allocating audio mdat "+xr});return}if(!un){var Ql=new DataView(Rn.buffer);Ql.setUint32(0,xr),Rn.set(st.types.mdat,4)}}else return;for(var Lc=0;Lc=2&&(dl=ft[Xt-2].duration,pn.duration=dl),Xt){this.nextAudioPts=Pa=Ka+re*dl,E.samples=ft,un?Vn=new Uint8Array:Vn=st.moof(E.sequenceNumber++,pa/re,E),E.samples=[];var ml=pa/V,Pc=Pa/V,hl={data1:Vn,data2:Rn,startPTS:ml,endPTS:Pc,startDTS:ml,endDTS:Pc,type:"audio",hasAudio:!0,hasVideo:!1,nb:Xt};return this.observer.trigger(t.default.FRAG_PARSING_DATA,hl),hl}return null}},K.remuxEmptyAudio=function(E,P,N,W){var V=E.inputTimeScale,ue=E.samplerate?E.samplerate:V,re=V/ue,me=this.nextAudioPts,Ie=(me!==void 0?me:W.startDTS*V)+this._initDTS,Fe=W.endDTS*V+this._initDTS,Ge=1024,un=re*Ge,pn=Math.ceil((Fe-Ie)/un),Le=Bn.getSilentFrame(E.manifestCodec||E.codec,E.channelCount);if(l.logger.warn("remux empty Audio"),!Le){l.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!");return}for(var Rn=[],Vn=0;Vn4294967296;)E+=N;return E},q}(),La=va,vt=function(){function q(j){this.observer=j}var K=q.prototype;return K.destroy=function(){},K.resetTimeStamp=function(){},K.resetInitSegment=function(){},K.remux=function(E,P,N,W,V,ue,re,me){var Ie=this.observer,Fe="";E&&(Fe+="audio"),P&&(Fe+="video"),Ie.trigger(t.default.FRAG_PARSING_DATA,{data1:me,startPTS:V,startDTS:V,type:Fe,hasAudio:!!E,hasVideo:!!P,nb:1,dropped:0}),Ie.trigger(t.default.FRAG_PARSED)},q}(),sn=vt,ia=Object(s.getSelfScope)(),wt;try{wt=ia.performance.now.bind(ia.performance)}catch{l.logger.debug("Unable to use Performance API on this environment"),wt=ia.Date.now}var Da=function(){function q(j,E,P,N){this.observer=j,this.typeSupported=E,this.config=P,this.vendor=N}var K=q.prototype;return K.destroy=function(){var E=this.demuxer;E&&E.destroy()},K.push=function(E,P,N,W,V,ue,re,me,Ie,Fe,Ge,un){var pn=this;if(E.byteLength>0&&P!=null&&P.key!=null&&P.method==="AES-128"){var Le=this.decrypter;Le==null&&(Le=this.decrypter=new u.default(this.observer,this.config));var Rn=wt();Le.decrypt(E,P.key.buffer,P.iv.buffer,function(Vn){var pa=wt();pn.observer.trigger(t.default.FRAG_DECRYPTED,{stats:{tstart:Rn,tdecrypt:pa}}),pn.pushDecrypted(new Uint8Array(Vn),P,new Uint8Array(N),W,V,ue,re,me,Ie,Fe,Ge,un)})}else this.pushDecrypted(new Uint8Array(E),P,new Uint8Array(N),W,V,ue,re,me,Ie,Fe,Ge,un)},K.pushDecrypted=function(E,P,N,W,V,ue,re,me,Ie,Fe,Ge,un){var pn=this.demuxer;if(!pn||(re||me)&&!this.probe(E)){for(var Le=this.observer,Rn=this.typeSupported,Vn=this.config,pa=[{demux:Ye,remux:La},{demux:ve.default,remux:sn},{demux:te,remux:La},{demux:ta,remux:La}],Ka=0,At=pa.length;Ka1?L-1:0),$=1;$1?L-1:0),$=1;$0)return d.subarray(I,I+b)},s._readSize=function(d,y){var I=0;return I=(d[y]&127)<<21,I|=(d[y+1]&127)<<14,I|=(d[y+2]&127)<<7,I|=d[y+3]&127,I},s.getTimeStamp=function(d){for(var y=s.getID3Frames(d),I=0;I>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:Z+=String.fromCharCode(O);break;case 12:case 13:$=d[oe++],Z+=String.fromCharCode((O&31)<<6|$&63);break;case 14:$=d[oe++],z=d[oe++],Z+=String.fromCharCode((O&15)<<12|($&63)<<6|(z&63)<<0);break;default:}}return Z},s}(),u;function i(){var s=Object(t.getSelfScope)();return!u&&typeof s.TextDecoder!="undefined"&&(u=new s.TextDecoder("utf-8")),u}var l=o._utf8ArrayToStr;n.default=o},"./src/demux/mp4demuxer.js":function(e,n,a){"use strict";a.r(n);var t=a("./src/utils/logger.js"),o=a("./src/events.js"),u=Math.pow(2,32)-1,i=function(){function l(R,d){this.observer=R,this.remuxer=d}var s=l.prototype;return s.resetTimeStamp=function(d){this.initPTS=d},s.resetInitSegment=function(d,y,I,b){if(d&&d.byteLength){var T=this.initData=l.parseInitSegment(d);y==null&&(y="mp4a.40.5"),I==null&&(I="avc1.42e01e");var L={};T.audio&&T.video?L.audiovideo={container:"video/mp4",codec:y+","+I,initSegment:b?d:null}:(T.audio&&(L.audio={container:"audio/mp4",codec:y,initSegment:b?d:null}),T.video&&(L.video={container:"video/mp4",codec:I,initSegment:b?d:null})),this.observer.trigger(o.default.FRAG_PARSING_INIT_SEGMENT,{tracks:L})}else y&&(this.audioCodec=y),I&&(this.videoCodec=I)},l.probe=function(d){return l.findBox({data:d,start:0,end:Math.min(d.length,16384)},["moof"]).length>0},l.bin2str=function(d){return String.fromCharCode.apply(null,d)},l.readUint16=function(d,y){d.data&&(y+=d.start,d=d.data);var I=d[y]<<8|d[y+1];return I<0?65536+I:I},l.readUint32=function(d,y){d.data&&(y+=d.start,d=d.data);var I=d[y]<<24|d[y+1]<<16|d[y+2]<<8|d[y+3];return I<0?4294967296+I:I},l.writeUint32=function(d,y,I){d.data&&(y+=d.start,d=d.data),d[y]=I>>24,d[y+1]=I>>16&255,d[y+2]=I>>8&255,d[y+3]=I&255},l.findBox=function(d,y){var I=[],b,T,L,O,$,z,Z;if(d.data?(z=d.start,O=d.end,d=d.data):(z=0,O=d.byteLength),!y.length)return null;for(b=z;b1?b+T:O,L===y[0]&&(y.length===1?I.push({data:d,start:b+8,end:Z}):($=l.findBox({data:d,start:b+8,end:Z},y.slice(1)),$.length&&(I=I.concat($)))),b=Z;return I},l.parseSegmentIndex=function(d){var y=l.findBox(d,["moov"])[0],I=y?y.end:null,b=0,T=l.findBox(d,["sidx"]),L;if(!T||!T[0])return null;L=[],T=T[0];var O=T.data[0];b=O===0?8:16;var $=l.readUint32(T,b);b+=4;var z=0,Z=0;O===0?b+=8:b+=16,b+=2;var oe=T.end+Z,te=l.readUint16(T,b);b+=2;for(var ve=0;ve>>31;if(ce===1){console.warn("SIDX has hierarchical references (not supported)");return}var le=l.readUint32(T,ge);ge+=4,L.push({referenceSize:cn,subsegmentDuration:le,info:{duration:le/$,start:oe,end:oe+cn-1}}),oe+=cn,ge+=4,b=ge}return{earliestPresentationTime:z,timescale:$,version:O,referencesCount:te,references:L,moovEndOffset:I}},l.parseInitSegment=function(d){var y=[],I=l.findBox(d,["moov","trak"]);return I.forEach(function(b){var T=l.findBox(b,["tkhd"])[0];if(T){var L=T.data[T.start],O=L===0?12:20,$=l.readUint32(T,O),z=l.findBox(b,["mdia","mdhd"])[0];if(z){L=z.data[z.start],O=L===0?12:20;var Z=l.readUint32(z,O),oe=l.findBox(b,["mdia","hdlr"])[0];if(oe){var te=l.bin2str(oe.data.subarray(oe.start+8,oe.start+12)),ve={soun:"audio",vide:"video"}[te];if(ve){var ge=l.findBox(b,["mdia","minf","stbl","stsd"]);if(ge.length){ge=ge[0];var nn=l.bin2str(ge.data.subarray(ge.start+12,ge.start+16));t.logger.log("MP4Demuxer:"+ve+":"+nn+" found")}y[$]={timescale:Z,type:ve},y[ve]={timescale:Z,id:$}}}}}}),y},l.getStartDTS=function(d,y){var I,b,T;return I=l.findBox(y,["moof","traf"]),b=[].concat.apply([],I.map(function(L){return l.findBox(L,["tfhd"]).map(function(O){var $,z,Z;return $=l.readUint32(O,4),z=d[$].timescale||9e4,Z=l.findBox(L,["tfdt"]).map(function(oe){var te,ve;return te=oe.data[oe.start],ve=l.readUint32(oe,4),te===1&&(ve*=Math.pow(2,32),ve+=l.readUint32(oe,8)),ve})[0],Z/z})})),T=Math.min.apply(null,b),isFinite(T)?T:0},l.offsetStartDTS=function(d,y,I){l.findBox(y,["moof","traf"]).map(function(b){return l.findBox(b,["tfhd"]).map(function(T){var L=l.readUint32(T,4),O=d[L].timescale||9e4;l.findBox(b,["tfdt"]).map(function($){var z=$.data[$.start],Z=l.readUint32($,4);if(z===0)l.writeUint32($,4,Z-I*O);else{Z*=Math.pow(2,32),Z+=l.readUint32($,8),Z-=I*O,Z=Math.max(Z,0);var oe=Math.floor(Z/(u+1)),te=Math.floor(Z%(u+1));l.writeUint32($,4,oe),l.writeUint32($,8,te)}})})})},s.append=function(d,y,I,b){var T=this.initData;T||(this.resetInitSegment(d,this.audioCodec,this.videoCodec,!1),T=this.initData);var L,O=this.initPTS;if(O===void 0){var $=l.getStartDTS(T,d);this.initPTS=O=$-y,this.observer.trigger(o.default.INIT_PTS_FOUND,{initPTS:O})}l.offsetStartDTS(T,d,O),L=l.getStartDTS(T,d),this.remuxer.remux(T.audio,T.video,null,null,L,I,b,d)},s.destroy=function(){},l}();n.default=i},"./src/errors.ts":function(e,n,a){"use strict";a.r(n),a.d(n,"ErrorTypes",function(){return t}),a.d(n,"ErrorDetails",function(){return o});var t;(function(u){u.NETWORK_ERROR="networkError",u.MEDIA_ERROR="mediaError",u.KEY_SYSTEM_ERROR="keySystemError",u.MUX_ERROR="muxError",u.OTHER_ERROR="otherError"})(t||(t={}));var o;(function(u){u.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",u.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",u.KEY_SYSTEM_NO_SESSION="keySystemNoSession",u.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",u.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",u.MANIFEST_LOAD_ERROR="manifestLoadError",u.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",u.MANIFEST_PARSING_ERROR="manifestParsingError",u.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",u.LEVEL_LOAD_ERROR="levelLoadError",u.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",u.LEVEL_SWITCH_ERROR="levelSwitchError",u.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",u.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",u.FRAG_LOAD_ERROR="fragLoadError",u.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",u.FRAG_DECRYPT_ERROR="fragDecryptError",u.FRAG_PARSING_ERROR="fragParsingError",u.REMUX_ALLOC_ERROR="remuxAllocError",u.KEY_LOAD_ERROR="keyLoadError",u.KEY_LOAD_TIMEOUT="keyLoadTimeOut",u.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",u.BUFFER_APPEND_ERROR="bufferAppendError",u.BUFFER_APPENDING_ERROR="bufferAppendingError",u.BUFFER_STALLED_ERROR="bufferStalledError",u.BUFFER_FULL_ERROR="bufferFullError",u.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",u.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",u.INTERNAL_EXCEPTION="internalException"})(o||(o={}))},"./src/events.js":function(e,n,a){"use strict";a.r(n);var t={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"};n.default=t},"./src/hls.ts":function(e,n,a){"use strict";a.r(n);var t={};a.r(t),a.d(t,"newCue",function(){return ME});var o=a("./node_modules/url-toolkit/src/url-toolkit.js"),u=a("./src/errors.ts"),i=a("./src/polyfills/number-isFinite.js"),l=a("./src/events.js"),s=a("./src/utils/logger.js"),R={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},d=function(){function w(f){this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void 0,this.hls=f,this.onEvent=this.onEvent.bind(this);for(var v=arguments.length,r=new Array(v>1?v-1:0),c=1;c>8*(15-c)&255;return r},h.setDecryptDataFromLevelKey=function(v,r){var c=v;return v&&v.method&&v.uri&&!v.iv&&(c=new $(v.baseuri,v.reluri),c.method=v.method,c.iv=this.createInitializationVector(r)),c},Z(w,[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=Object(o.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(v){this._url=v}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var v=this.sn;typeof v!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&s.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),v=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,v)}return this._decryptdata}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null||!Object(i.isFiniteNumber)(this.programDateTime))return null;var v=Object(i.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+v*1e3}},{key:"encrypted",get:function(){return!!(this.decryptdata&&this.decryptdata.uri!==null&&this.decryptdata.key===null)}}]),w}();function ve(w,h){for(var f=0;fNumber.MAX_SAFE_INTEGER?1/0:r},h.hexadecimalInteger=function(v){if(this[v]){var r=(this[v]||"0x").slice(2);r=(r.length&1?"0":"")+r;for(var c=new Uint8Array(r.length/2),_=0;_Number.MAX_SAFE_INTEGER?1/0:r},h.decimalFloatingPoint=function(v){return parseFloat(this[v])},h.enumeratedString=function(v){return this[v]},h.decimalResolution=function(v){var r=cn.exec(this[v]);if(r!==null)return{width:parseInt(r[1],10),height:parseInt(r[2],10)}},w.parseAttrList=function(v){var r,c={};for(ce.lastIndex=0;(r=ce.exec(v))!==null;){var _=r[2],g='"';_.indexOf(g)===0&&_.lastIndexOf(g)===_.length-1&&(_=_.slice(1,-1)),c[r[1]]=_}return c},w}(),Pe=le,Ce={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function Be(w,h){var f=Ce[h];return!!f&&f[w.slice(0,4)]===!0}function Ye(w,h){return MediaSource.isTypeSupported((h||"video")+'/mp4;codecs="'+w+'"')}var Sn=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,ta=/#EXT-X-MEDIA:(.*)/g,kn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),Bn=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,Qn=/\.(mp4|m4s|m4v|m4a)$/i,Hn=function(){function w(){}return w.findGroup=function(f,v){for(var r=0;r2?(r=v.shift()+".",r+=parseInt(v.shift()).toString(16),r+=("000"+parseInt(v.shift()).toString(16)).substr(-4)):r=f,r},w.resolve=function(f,v){return o.buildAbsoluteURL(v,f,{alwaysNormalize:!0})},w.parseMasterPlaylist=function(f,v){var r=[];Sn.lastIndex=0;function c(x,H){["video","audio"].forEach(function(U){var X=x.filter(function(qe){return Be(qe,U)});if(X.length){var Re=X.filter(function(qe){return qe.lastIndexOf("avc1",0)===0||qe.lastIndexOf("mp4a",0)===0});H[U+"Codec"]=Re.length>0?Re[0]:X[0],x=x.filter(function(qe){return X.indexOf(qe)===-1})}}),H.unknownCodecs=x}for(var _;(_=Sn.exec(f))!=null;){var g={},C=g.attrs=new Pe(_[1]);g.url=w.resolve(_[2],v);var F=C.decimalResolution("RESOLUTION");F&&(g.width=F.width,g.height=F.height),g.bitrate=C.decimalInteger("AVERAGE-BANDWIDTH")||C.decimalInteger("BANDWIDTH"),g.name=C.NAME,c([].concat((C.CODECS||"").split(/[ ,]+/)),g),g.videoCodec&&g.videoCodec.indexOf("avc1")!==-1&&(g.videoCodec=w.convertAVC1ToAVCOTI(g.videoCodec)),r.push(g)}return r},w.parseMasterPlaylistMedia=function(f,v,r,c){c===void 0&&(c=[]);var _,g=[],C=0;for(ta.lastIndex=0;(_=ta.exec(f))!==null;){var F=new Pe(_[1]);if(F.TYPE===r){var x={id:C++,groupId:F["GROUP-ID"],name:F.NAME||F.LANGUAGE,type:r,default:F.DEFAULT==="YES",autoselect:F.AUTOSELECT==="YES",forced:F.FORCED==="YES",lang:F.LANGUAGE};if(F.URI&&(x.url=w.resolve(F.URI,v)),c.length){var H=w.findGroup(c,x.groupId);x.audioCodec=H?H.codec:c[0].codec}g.push(x)}}return g},w.parseLevelPlaylist=function(f,v,r,c,_){var g=0,C=0,F=new nn(v),x=0,H=null,U=new te,X,Re,qe,vn=null;for(kn.lastIndex=0;(X=kn.exec(f))!==null;){var fa=X[1];if(fa){U.duration=parseFloat(fa);var Xn=(" "+X[2]).slice(1);U.title=Xn||null,U.tagList.push(Xn?["INF",fa,Xn]:["INF",fa])}else if(X[3]){if(Object(i.isFiniteNumber)(U.duration)){var la=g++;U.type=c,U.start=C,qe&&(U.levelkey=qe),U.sn=la,U.level=r,U.cc=x,U.urlId=_,U.baseurl=v,U.relurl=(" "+X[3]).slice(1),Ne(U,H),F.fragments.push(U),H=U,C+=U.duration,U=new te}}else if(X[4]){var Ra=(" "+X[4]).slice(1);H?U.setByteRange(Ra,H):U.setByteRange(Ra)}else if(X[5])U.rawProgramDateTime=(" "+X[5]).slice(1),U.tagList.push(["PROGRAM-DATE-TIME",U.rawProgramDateTime]),vn===null&&(vn=F.fragments.length);else{if(X=X[0].match(Bn),!X){s.logger.warn("No matches on slow regex match for level playlist!");continue}for(Re=1;Re=0&&(qe.method=it,qe.key=null,qe.iv=xa));break}case"START":{var wo=new Pe(Oa),Q0=wo.decimalFloatingPoint("TIME-OFFSET");Object(i.isFiniteNumber)(Q0)&&(F.startTimeOffset=Q0);break}case"MAP":{var K0=new Pe(Oa);U.relurl=K0.URI,K0.BYTERANGE&&U.setByteRange(K0.BYTERANGE),U.baseurl=v,U.level=r,U.type=c,U.sn="initSegment",F.initSegment=U,U=new te,U.rawProgramDateTime=F.initSegment.rawProgramDateTime;break}default:s.logger.warn("line parsed but not handled: "+X);break}}}return U=H,U&&!U.relurl&&(F.fragments.pop(),C-=U.duration),F.totalduration=C,F.averagetargetduration=C/F.fragments.length,F.endSN=g-1,F.startCC=F.fragments[0]?F.fragments[0].cc:0,F.endCC=x,!F.initSegment&&F.fragments.length&&F.fragments.every(function(eI){return Qn.test(eI.relurl)})&&(s.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),U=new te,U.relurl=F.fragments[0].relurl,U.baseurl=v,U.level=r,U.type=c,U.sn="initSegment",F.initSegment=U,F.needSidxRanges=!0),vn&&st(F.fragments,vn),F},w}();function st(w,h){for(var f=w[h],v=h-1;v>=0;v--){var r=w[v];r.programDateTime=f.programDateTime-r.duration*1e3,f=r}}function Ne(w,h){w.rawProgramDateTime?w.programDateTime=Date.parse(w.rawProgramDateTime):h&&h.programDateTime&&(w.programDateTime=h.endProgramDateTime),Object(i.isFiniteNumber)(w.programDateTime)||(w.programDateTime=null,w.rawProgramDateTime=null)}function ua(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var Ta=window,En=Ta.performance,dn=function(w){ua(h,w);function h(v){var r;return r=w.call(this,v,l.default.MANIFEST_LOADING,l.default.LEVEL_LOADING,l.default.AUDIO_TRACK_LOADING,l.default.SUBTITLE_TRACK_LOADING)||this,r.loaders={},r}h.canHaveQualityLevels=function(r){return r!==I.AUDIO_TRACK&&r!==I.SUBTITLE_TRACK},h.mapContextToLevelType=function(r){var c=r.type;switch(c){case I.AUDIO_TRACK:return b.AUDIO;case I.SUBTITLE_TRACK:return b.SUBTITLE;default:return b.MAIN}},h.getResponseUrl=function(r,c){var _=r.url;return(_===void 0||_.indexOf("data:")===0)&&(_=c.url),_};var f=h.prototype;return f.createInternalLoader=function(r){var c=this.hls.config,_=c.pLoader,g=c.loader,C=_||g,F=new C(c);return r.loader=F,this.loaders[r.type]=F,F},f.getInternalLoader=function(r){return this.loaders[r.type]},f.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]},f.destroyInternalLoaders=function(){for(var r in this.loaders){var c=this.loaders[r];c&&c.destroy(),this.resetInternalLoader(r)}},f.destroy=function(){this.destroyInternalLoaders(),w.prototype.destroy.call(this)},f.onManifestLoading=function(r){this.load({url:r.url,type:I.MANIFEST,level:0,id:null,responseType:"text"})},f.onLevelLoading=function(r){this.load({url:r.url,type:I.LEVEL,level:r.level,id:r.id,responseType:"text"})},f.onAudioTrackLoading=function(r){this.load({url:r.url,type:I.AUDIO_TRACK,level:null,id:r.id,responseType:"text"})},f.onSubtitleTrackLoading=function(r){this.load({url:r.url,type:I.SUBTITLE_TRACK,level:null,id:r.id,responseType:"text"})},f.load=function(r){var c=this.hls.config;s.logger.debug("Loading playlist of type "+r.type+", level: "+r.level+", id: "+r.id);var _=this.getInternalLoader(r);if(_){var g=_.context;if(g&&g.url===r.url)return s.logger.trace("playlist request ongoing"),!1;s.logger.warn("aborting previous loader for type: "+r.type),_.abort()}var C,F,x,H;switch(r.type){case I.MANIFEST:C=c.manifestLoadingMaxRetry,F=c.manifestLoadingTimeOut,x=c.manifestLoadingRetryDelay,H=c.manifestLoadingMaxRetryTimeout;break;case I.LEVEL:C=0,H=0,x=0,F=c.levelLoadingTimeOut;break;default:C=c.levelLoadingMaxRetry,F=c.levelLoadingTimeOut,x=c.levelLoadingRetryDelay,H=c.levelLoadingMaxRetryTimeout;break}_=this.createInternalLoader(r);var U={timeout:F,maxRetry:C,retryDelay:x,maxRetryDelay:H},X={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return s.logger.debug("Calling internal loader delegate for URL: "+r.url),_.load(r,U,X),!0},f.loadsuccess=function(r,c,_,g){if(g===void 0&&(g=null),_.isSidxRequest){this._handleSidxRequest(r,_),this._handlePlaylistLoaded(r,c,_,g);return}if(this.resetInternalLoader(_.type),typeof r.data!="string")throw new Error('expected responseType of "text" for PlaylistLoader');var C=r.data;if(c.tload=En.now(),C.indexOf("#EXTM3U")!==0){this._handleManifestParsingError(r,_,"no EXTM3U delimiter",g);return}C.indexOf("#EXTINF:")>0||C.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(r,c,_,g):this._handleMasterPlaylist(r,c,_,g)},f.loaderror=function(r,c,_){_===void 0&&(_=null),this._handleNetworkError(c,_,!1,r)},f.loadtimeout=function(r,c,_){_===void 0&&(_=null),this._handleNetworkError(c,_,!0)},f._handleMasterPlaylist=function(r,c,_,g){var C=this.hls,F=r.data,x=h.getResponseUrl(r,_),H=Hn.parseMasterPlaylist(F,x);if(!H.length){this._handleManifestParsingError(r,_,"no level found in manifest",g);return}var U=H.map(function(vn){return{id:vn.attrs.AUDIO,codec:vn.audioCodec}}),X=Hn.parseMasterPlaylistMedia(F,x,"AUDIO",U),Re=Hn.parseMasterPlaylistMedia(F,x,"SUBTITLES");if(X.length){var qe=!1;X.forEach(function(vn){vn.url||(qe=!0)}),qe===!1&&H[0].audioCodec&&!H[0].attrs.AUDIO&&(s.logger.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),X.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1}))}C.trigger(l.default.MANIFEST_LOADED,{levels:H,audioTracks:X,subtitles:Re,url:x,stats:c,networkDetails:g})},f._handleTrackOrLevelPlaylist=function(r,c,_,g){var C=this.hls,F=_.id,x=_.level,H=_.type,U=h.getResponseUrl(r,_),X=Object(i.isFiniteNumber)(F)?F:0,Re=Object(i.isFiniteNumber)(x)?x:X,qe=h.mapContextToLevelType(_),vn=Hn.parseLevelPlaylist(r.data,U,Re,qe,X);if(vn.tload=c.tload,H===I.MANIFEST){var fa={url:U,details:vn};C.trigger(l.default.MANIFEST_LOADED,{levels:[fa],audioTracks:[],url:U,stats:c,networkDetails:g})}if(c.tparsed=En.now(),vn.needSidxRanges){var Xn=vn.initSegment.url;this.load({url:Xn,isSidxRequest:!0,type:H,level:x,levelDetails:vn,id:F,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"});return}_.levelDetails=vn,this._handlePlaylistLoaded(r,c,_,g)},f._handleSidxRequest=function(r,c){if(typeof r.data=="string")throw new Error("sidx request must be made with responseType of array buffer");var _=T.default.parseSegmentIndex(new Uint8Array(r.data));if(!!_){var g=_.references,C=c.levelDetails;g.forEach(function(F,x){var H=F.info;if(!!C){var U=C.fragments[x];U.byteRange.length===0&&U.setByteRange(String(1+H.end-H.start)+"@"+String(H.start))}}),C&&C.initSegment.setByteRange(String(_.moovEndOffset)+"@0")}},f._handleManifestParsingError=function(r,c,_,g){this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:r.url,reason:_,networkDetails:g})},f._handleNetworkError=function(r,c,_,g){_===void 0&&(_=!1),g===void 0&&(g=null),s.logger.info("A network error occured while loading a "+r.type+"-type playlist");var C,F,x=this.getInternalLoader(r);switch(r.type){case I.MANIFEST:C=_?u.ErrorDetails.MANIFEST_LOAD_TIMEOUT:u.ErrorDetails.MANIFEST_LOAD_ERROR,F=!0;break;case I.LEVEL:C=_?u.ErrorDetails.LEVEL_LOAD_TIMEOUT:u.ErrorDetails.LEVEL_LOAD_ERROR,F=!1;break;case I.AUDIO_TRACK:C=_?u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,F=!1;break;default:F=!1}x&&(x.abort(),this.resetInternalLoader(r.type));var H={type:u.ErrorTypes.NETWORK_ERROR,details:C,fatal:F,url:r.url,loader:x,context:r,networkDetails:c};g&&(H.response=g),this.hls.trigger(l.default.ERROR,H)},f._handlePlaylistLoaded=function(r,c,_,g){var C=_.type,F=_.level,x=_.id,H=_.levelDetails;if(!H||!H.targetduration){this._handleManifestParsingError(r,_,"invalid target duration",g);return}var U=h.canHaveQualityLevels(_.type);if(U)this.hls.trigger(l.default.LEVEL_LOADED,{details:H,level:F||0,id:x||0,stats:c,networkDetails:g});else switch(C){case I.AUDIO_TRACK:this.hls.trigger(l.default.AUDIO_TRACK_LOADED,{details:H,id:x,stats:c,networkDetails:g});break;case I.SUBTITLE_TRACK:this.hls.trigger(l.default.SUBTITLE_TRACK_LOADED,{details:H,id:x,stats:c,networkDetails:g});break}},h}(y),He=dn;function ea(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var va=function(w){ea(h,w);function h(v){var r;return r=w.call(this,v,l.default.FRAG_LOADING)||this,r.loaders={},r}var f=h.prototype;return f.destroy=function(){var r=this.loaders;for(var c in r){var _=r[c];_&&_.destroy()}this.loaders={},w.prototype.destroy.call(this)},f.onFragLoading=function(r){var c=r.frag,_=c.type,g=this.loaders,C=this.hls.config,F=C.fLoader,x=C.loader;c.loaded=0;var H=g[_];H&&(s.logger.warn("abort previous fragment loader for type: "+_),H.abort()),H=g[_]=c.loader=C.fLoader?new F(C):new x(C);var U,X,Re;U={url:c.url,frag:c,responseType:"arraybuffer",progressData:!1};var qe=c.byteRangeStartOffset,vn=c.byteRangeEndOffset;Object(i.isFiniteNumber)(qe)&&Object(i.isFiniteNumber)(vn)&&(U.rangeStart=qe,U.rangeEnd=vn),X={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout},Re={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},H.load(U,X,Re)},f.loadsuccess=function(r,c,_,g){g===void 0&&(g=null);var C=r.data,F=_.frag;F.loader=void 0,this.loaders[F.type]=void 0,this.hls.trigger(l.default.FRAG_LOADED,{payload:C,frag:F,stats:c,networkDetails:g})},f.loaderror=function(r,c,_){_===void 0&&(_=null);var g=c.frag,C=g.loader;C&&C.abort(),this.loaders[g.type]=void 0,this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c.frag,response:r,networkDetails:_})},f.loadtimeout=function(r,c,_){_===void 0&&(_=null);var g=c.frag,C=g.loader;C&&C.abort(),this.loaders[g.type]=void 0,this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c.frag,networkDetails:_})},f.loadprogress=function(r,c,_,g){g===void 0&&(g=null);var C=c.frag;C.loaded=r.loaded,this.hls.trigger(l.default.FRAG_LOAD_PROGRESS,{frag:C,stats:r,networkDetails:g})},h}(y),La=va;function vt(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var sn=function(w){vt(h,w);function h(v){var r;return r=w.call(this,v,l.default.KEY_LOADING)||this,r.loaders={},r.decryptkey=null,r.decrypturl=null,r}var f=h.prototype;return f.destroy=function(){for(var r in this.loaders){var c=this.loaders[r];c&&c.destroy()}this.loaders={},w.prototype.destroy.call(this)},f.onKeyLoading=function(r){var c=r.frag,_=c.type,g=this.loaders[_];if(!c.decryptdata){s.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var C=c.decryptdata.uri;if(C!==this.decrypturl||this.decryptkey===null){var F=this.hls.config;if(g&&(s.logger.warn("abort previous key loader for type:"+_),g.abort()),!C){s.logger.warn("key uri is falsy");return}c.loader=this.loaders[_]=new F.loader(F),this.decrypturl=C,this.decryptkey=null;var x={url:C,frag:c,responseType:"arraybuffer"},H={timeout:F.fragLoadingTimeOut,maxRetry:0,retryDelay:F.fragLoadingRetryDelay,maxRetryDelay:F.fragLoadingMaxRetryTimeout},U={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.loader.load(x,H,U)}else this.decryptkey&&(c.decryptdata.key=this.decryptkey,this.hls.trigger(l.default.KEY_LOADED,{frag:c}))},f.loadsuccess=function(r,c,_){var g=_.frag;if(!g.decryptdata){s.logger.error("after key load, decryptdata unset");return}this.decryptkey=g.decryptdata.key=new Uint8Array(r.data),g.loader=void 0,delete this.loaders[g.type],this.hls.trigger(l.default.KEY_LOADED,{frag:g})},f.loaderror=function(r,c){var _=c.frag,g=_.loader;g&&g.abort(),delete this.loaders[_.type],this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:_,response:r})},f.loadtimeout=function(r,c){var _=c.frag,g=_.loader;g&&g.abort(),delete this.loaders[_.type],this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:_})},h}(y),ia=sn;function wt(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var Da={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},rt=function(w){wt(h,w);function h(v){var r;return r=w.call(this,v,l.default.BUFFER_APPENDED,l.default.FRAG_BUFFERED,l.default.FRAG_LOADED)||this,r.bufferPadding=.2,r.fragments=Object.create(null),r.timeRanges=Object.create(null),r.config=v.config,r}var f=h.prototype;return f.destroy=function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,y.prototype.destroy.call(this),w.prototype.destroy.call(this)},f.getBufferedFrag=function(r,c){var _=this.fragments,g=Object.keys(_).filter(function(F){var x=_[F];if(x.body.type!==c||!x.buffered)return!1;var H=x.body;return H.startPTS<=r&&r<=H.endPTS});if(g.length===0)return null;var C=g.pop();return _[C].body},f.detectEvictedFragments=function(r,c){var _=this,g,C;Object.keys(this.fragments).forEach(function(F){var x=_.fragments[F];if(x.buffered===!0){var H=x.range[r];if(H){g=H.time;for(var U=0;U=C&&c<=F){g.push({startPTS:Math.max(r,_.start(H)),endPTS:Math.min(c,_.end(H))});break}else if(rC)g.push({startPTS:Math.max(r,_.start(H)),endPTS:Math.min(c,_.end(H))}),x=!0;else if(c<=C)break;return{time:g,partial:x}},f.getFragmentKey=function(r){return r.type+"_"+r.level+"_"+r.urlId+"_"+r.sn},f.getPartialFragment=function(r){var c=this,_,g,C,F=null,x=0;return Object.keys(this.fragments).forEach(function(H){var U=c.fragments[H];c.isPartial(U)&&(g=U.body.startPTS-c.bufferPadding,C=U.body.endPTS+c.bufferPadding,r>=g&&r<=C&&(_=Math.min(r-g,C-r),x<=_&&(F=U.body,x=_)))}),F},f.getState=function(r){var c=this.getFragmentKey(r),_=this.fragments[c],g=Da.NOT_LOADED;return _!==void 0&&(_.buffered?this.isPartial(_)===!0?g=Da.PARTIAL:g=Da.OK:g=Da.APPENDING),g},f.isPartial=function(r){return r.buffered===!0&&(r.range.video!==void 0&&r.range.video.partial===!0||r.range.audio!==void 0&&r.range.audio.partial===!0)},f.isTimeBuffered=function(r,c,_){for(var g,C,F=0;F<_.length;F++){if(g=_.start(F)-this.bufferPadding,C=_.end(F)+this.bufferPadding,r>=g&&c<=C)return!0;if(c<=g)return!1}return!1},f.onFragLoaded=function(r){var c=r.frag;!Object(i.isFiniteNumber)(c.sn)||c.bitrateTest||(this.fragments[this.getFragmentKey(c)]={body:c,range:Object.create(null),buffered:!1})},f.onBufferAppended=function(r){var c=this;this.timeRanges=r.timeRanges,Object.keys(this.timeRanges).forEach(function(_){var g=c.timeRanges[_];c.detectEvictedFragments(_,g)})},f.onFragBuffered=function(r){this.detectPartialFragments(r.frag)},f.hasFragment=function(r){var c=this.getFragmentKey(r);return this.fragments[c]!==void 0},f.removeFragment=function(r){var c=this.getFragmentKey(r);delete this.fragments[c]},f.removeAllFragments=function(){this.fragments=Object.create(null)},h}(y),q={search:function(h,f){for(var v=0,r=h.length-1,c=null,_=null;v<=r;){c=(v+r)/2|0,_=h[c];var g=f(_);if(g>0)v=c+1;else if(g<0)r=c-1;else return _}return null}},K=q,j=function(){function w(){}return w.isBuffered=function(f,v){try{if(f){for(var r=f.buffered,c=0;c=r.start(c)&&v<=r.end(c))return!0}}catch{}return!1},w.bufferInfo=function(f,v,r){try{if(f){var c=f.buffered,_=[],g;for(g=0;gC&&(c[g-1].end=f[_].end):c.push(f[_])}else c.push(f[_])}else c=f;for(var F=0,x,H=v,U=v,X=0;X=Re&&v1?c-1:0),g=1;gh?(v.duration=c-v.start,v.duration<0&&s.logger.warn("negative duration computed for frag "+v.sn+",level "+v.level+", there should be some duration drift between playlist and fragment!")):(r.duration=v.start-c,r.duration<0&&s.logger.warn("negative duration computed for frag "+r.sn+",level "+r.level+", there should be some duration drift between playlist and fragment!")):f>h?r.start=v.start+v.duration:r.start=Math.max(v.start-r.duration,0)}function Le(w,h,f,v,r,c){var _=f;if(Object(i.isFiniteNumber)(h.startPTS)){var g=Math.abs(h.startPTS-f);Object(i.isFiniteNumber)(h.deltaPTS)?h.deltaPTS=Math.max(g,h.deltaPTS):h.deltaPTS=g,_=Math.max(f,h.startPTS),f=Math.min(f,h.startPTS),v=Math.max(v,h.endPTS),r=Math.min(r,h.startDTS),c=Math.max(c,h.endDTS)}var C=f-h.start;h.start=h.startPTS=f,h.maxStartPTS=_,h.endPTS=v,h.startDTS=r,h.endDTS=c,h.duration=v-f;var F=h.sn;if(!w||Fw.endSN)return 0;var x,H,U;for(x=F-w.startSN,H=w.fragments,H[x]=h,U=x;U>0;U--)pn(H,U,U-1);for(U=x;Uv.length))for(var c=0;ch?-1:0})}function Ba(w,h,f){var v=!1;return h&&h.details&&f&&(f.endCC>f.startCC||w&&w.cc=(r||0))return null;f=f||0;for(var c=0;cw&&f.start?-1:0}function xr(w,h,f){var v=Math.min(h,f.duration+(f.deltaPTS?f.deltaPTS:0))*1e3,r=f.endProgramDateTime||0;return r-v>w}var Qo=250,Ko=2,Ro=.1,Nr=.05,bu=function(){function w(f,v,r,c){this.config=f,this.media=v,this.fragmentTracker=r,this.hls=c,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var h=w.prototype;return h.poll=function(v){var r=this.config,c=this.media,_=this.stalled,g=c.currentTime,C=c.seeking,F=this.seeking&&!C,x=!this.seeking&&C;if(this.seeking=C,g!==v){if(this.moved=!0,_!==null){if(this.stallReported){var H=self.performance.now()-_;s.logger.warn("playback not stuck anymore @"+g+", after "+Math.round(H)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((x||F)&&(this.stalled=null),!(c.paused||c.ended||c.playbackRate===0||!c.buffered.length)){var U=j.bufferInfo(c,g,0),X=U.len>0,Re=U.nextStart||0;if(!(!X&&!Re)){if(C){var qe=U.len>Ko,vn=!Re||Re-g>Ko;if(qe||vn)return;this.moved=!1}if(!this.moved&&this.stalled){var fa=Math.max(Re,U.start||0)-g;if(fa>0&&fa<=Ko){this._trySkipBufferHole(null);return}}var Xn=self.performance.now();if(_===null){this.stalled=Xn;return}var la=Xn-_;!C&&la>=Qo&&this._reportStall(U.len);var Ra=j.bufferInfo(c,g,r.maxBufferHole);this._tryFixBufferStall(Ra,la)}}},h._tryFixBufferStall=function(v,r){var c=this.config,_=this.fragmentTracker,g=this.media,C=g.currentTime,F=_.getPartialFragment(C);if(F){var x=this._trySkipBufferHole(F);if(x)return}v.len>c.maxBufferHole&&r>c.highBufferWatchdogPeriod*1e3&&(s.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},h._reportStall=function(v){var r=this.hls,c=this.media,_=this.stallReported;_||(this.stallReported=!0,s.logger.warn("Playback stalling at @"+c.currentTime+" due to low buffer"),r.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:v}))},h._trySkipBufferHole=function(v){for(var r=this.config,c=this.hls,_=this.media,g=_.currentTime,C=0,F=0;F<_.buffered.length;F++){var x=_.buffered.start(F);if(g+r.maxBufferHole>=C&&g1?c-1:0),g=1;g1&&(this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},f.doTick=function(){},h}(y);function Lc(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var se={STOPPED:"STOPPED",STARTING:"STARTING",IDLE:"IDLE",PAUSED:"PAUSED",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BUFFER_FLUSHING:"BUFFER_FLUSHING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},dl=function(w){Lc(h,w);function h(){return w.apply(this,arguments)||this}var f=h.prototype;return f.doTick=function(){},f.startLoad=function(){},f.stopLoad=function(){var r=this.fragCurrent;r&&(r.loader&&r.loader.abort(),this.fragmentTracker.removeFragment(r)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=se.STOPPED},f._streamEnded=function(r,c){var _=this.fragCurrent,g=this.fragmentTracker;if(!c.live&&_&&!_.backtracked&&_.sn===c.endSN&&!r.nextStart){var C=g.getState(_);return C===Da.PARTIAL||C===Da.OK}return!1},f.onMediaSeeking=function(){var r=this.config,c=this.media,_=this.mediaBuffer,g=this.state,C=c?c.currentTime:null,F=j.bufferInfo(_||c,C,this.config.maxBufferHole);if(Object(i.isFiniteNumber)(C)&&s.logger.log("media seeking to "+C.toFixed(3)),g===se.FRAG_LOADING){var x=this.fragCurrent;if(F.len===0&&x){var H=r.maxFragLookUpTolerance,U=x.start-H,X=x.start+x.duration+H;CX?(x.loader&&(s.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),x.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=se.IDLE):s.logger.log("seeking outside of buffer but within currently loaded fragment range")}}else g===se.ENDED&&(F.len===0&&(this.fragPrevious=null,this.fragCurrent=null),this.state=se.IDLE);c&&(this.lastCurrentTime=C),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=C),this.tick()},f.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},f.onHandlerDestroying=function(){this.stopLoad(),w.prototype.onHandlerDestroying.call(this)},f.onHandlerDestroyed=function(){this.state=se.STOPPED,this.fragmentTracker=null},f.computeLivePosition=function(r,c){var _=this.config.liveSyncDuration!==void 0?this.config.liveSyncDuration:this.config.liveSyncDurationCount*c.targetduration;return r+Math.max(0,c.totalduration-_)},h}(Ql);function ml(w,h){for(var f=0;f0&&r===-1&&(s.logger.log("override startPosition with lastCurrentTime @"+c.toFixed(3)),r=c),this.state=se.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=r,this.tick()}else this.forceStartLoad=!0,this.state=se.STOPPED},f.stopLoad=function(){this.forceStartLoad=!1,w.prototype.stopLoad.call(this)},f.doTick=function(){switch(this.state){case se.BUFFER_FLUSHING:this.fragLoadError=0;break;case se.IDLE:this._doTickIdle();break;case se.WAITING_LEVEL:var r=this.levels[this.level];r&&r.details&&(this.state=se.IDLE);break;case se.FRAG_LOADING_WAITING_RETRY:var c=window.performance.now(),_=this.retryDate;(!_||c>=_||this.media&&this.media.seeking)&&(s.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=se.IDLE);break;case se.ERROR:case se.STOPPED:case se.FRAG_LOADING:case se.PARSING:case se.PARSED:case se.ENDED:break;default:break}this._checkBuffer(),this._checkFragmentChanged()},f._doTickIdle=function(){var r=this.hls,c=r.config,_=this.media;if(!(this.levelLastLoaded===void 0||!_&&(this.startFragRequested||!c.startFragPrefetch))){var g;this.loadedmetadata?g=_.currentTime:g=this.nextLoadPosition;var C=r.nextLoadLevel,F=this.levels[C];if(!!F){var x=F.bitrate,H;x?H=Math.max(8*c.maxBufferSize/x,c.maxBufferLength):H=c.maxBufferLength,H=Math.min(H,c.maxMaxBufferLength);var U=j.bufferInfo(this.mediaBuffer?this.mediaBuffer:_,g,c.maxBufferHole),X=U.len;if(!(X>=H)){s.logger.trace("buffer length of "+X.toFixed(3)+" is below max of "+H.toFixed(3)+". checking for more payload ..."),this.level=r.nextLoadLevel=C;var Re=F.details;if(!Re||Re.live&&this.levelLastLoaded!==C){this.state=se.WAITING_LEVEL;return}if(this._streamEnded(U,Re)){var qe={};this.altAudio&&(qe.type="video"),this.hls.trigger(l.default.BUFFER_EOS,qe),this.state=se.ENDED;return}this._fetchPayloadOrEos(g,U,Re)}}}},f._fetchPayloadOrEos=function(r,c,_){var g=this.fragPrevious,C=this.level,F=_.fragments,x=F.length;if(x!==0){var H=F[0].start,U=F[x-1].start+F[x-1].duration,X=c.end,Re;if(_.initSegment&&!_.initSegment.data)Re=_.initSegment;else if(_.live){var qe=this.config.initialLiveManifestSize;if(xqe&&qe>U.currentTime&&(s.logger.log("buffer end: "+c.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+qe.toFixed(3)),U.currentTime=qe),this.nextLoadPosition=qe}if(r.PTSKnown&&c>g&&U&&U.readyState)return null;if(this.startFragRequested&&!r.PTSKnown){if(C)if(r.hasProgramDateTime)s.logger.log("live playlist, switching playlist, load frag with same PDT: "+C.programDateTime),X=Po(F,C.endProgramDateTime,H.maxFragLookUpTolerance);else{var vn=C.sn+1;if(vn>=r.startSN&&vn<=r.endSN){var fa=F[vn-r.startSN];C.cc===fa.cc&&(X=fa,s.logger.log("live playlist, switching playlist, load frag with next SN: "+X.sn))}X||(X=K.search(F,function(Xn){return C.cc-Xn.cc}),X&&s.logger.log("live playlist, switching playlist, load frag with same CC: "+X.sn))}X||(X=F[Math.min(x-1,Math.round(x/2))],s.logger.log("live playlist, switching playlist, unknown, load middle frag : "+X.sn))}return X},f._findFragment=function(r,c,_,g,C,F,x){var H=this.hls.config,U;if(CF-H.maxFragLookUpTolerance?0:H.maxFragLookUpTolerance;U=Ir(c,g,C,X)}else U=g[_-1];if(U){var Re=U.sn-x.startSN,qe=c&&U.level===c.level,vn=g[Re-1],fa=g[Re+1];if(c&&U.sn===c.sn)if(qe&&!U.backtracked)if(U.snH.maxBufferHole&&c.dropped&&Re?(U=vn,s.logger.warn("Previous fragment was dropped with large PTS gap between audio and video. Maybe fragment is not starting with a keyframe? Loading previous one to try to overcome this")):(U=fa,s.logger.log("Re-loading fragment with SN: "+U.sn))}else U=null;else U.backtracked&&(fa&&fa.backtracked?(s.logger.warn("Already backtracked from fragment "+fa.sn+", will not backtrack to fragment "+U.sn+". Loading fragment "+fa.sn),U=fa):(s.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),U.dropped=0,vn?(U=vn,U.backtracked=!0):Re&&(U=null)))}return U},f._loadKey=function(r){this.state=se.KEY_LOADING,this.hls.trigger(l.default.KEY_LOADING,{frag:r})},f._loadFragment=function(r){var c=this.fragmentTracker.getState(r);this.fragCurrent=r,r.sn!=="initSegment"&&(this.startFragRequested=!0),Object(i.isFiniteNumber)(r.sn)&&!r.bitrateTest&&(this.nextLoadPosition=r.start+r.duration),r.backtracked||c===Da.NOT_LOADED||c===Da.PARTIAL?(r.autoLevel=this.hls.autoLevelEnabled,r.bitrateTest=this.bitrateTest,this.hls.trigger(l.default.FRAG_LOADING,{frag:r}),this.demuxer||(this.demuxer=new Ge(this.hls,"main")),this.state=se.FRAG_LOADING):c===Da.APPENDING&&this._reduceMaxBufferLength(r.duration)&&this.fragmentTracker.removeFragment(r)},f.getBufferedFrag=function(r){return this.fragmentTracker.getBufferedFrag(r,b.MAIN)},f.followingBufferedFrag=function(r){return r?this.getBufferedFrag(r.endPTS+.5):null},f._checkFragmentChanged=function(){var r,c,_=this.media;if(_&&_.readyState&&_.seeking===!1&&(c=_.currentTime,c>this.lastCurrentTime&&(this.lastCurrentTime=c),j.isBuffered(_,c)?r=this.getBufferedFrag(c):j.isBuffered(_,c+.1)&&(r=this.getBufferedFrag(c+.1)),r)){var g=r;if(g!==this.fragPlaying){this.hls.trigger(l.default.FRAG_CHANGED,{frag:g});var C=g.level;(!this.fragPlaying||this.fragPlaying.level!==C)&&this.hls.trigger(l.default.LEVEL_SWITCHED,{level:C}),this.fragPlaying=g}}},f.immediateLevelSwitch=function(){if(s.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var r=this.media,c;r?(c=r.paused,r.pause()):c=!0,this.previouslyPaused=c}var _=this.fragCurrent;_&&_.loader&&_.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},f.immediateLevelSwitchEnd=function(){var r=this.media;r&&r.buffered.length&&(this.immediateSwitch=!1,j.isBuffered(r,r.currentTime)&&(r.currentTime-=1e-4),this.previouslyPaused||r.play())},f.nextLevelSwitch=function(){var r=this.media;if(r&&r.readyState){var c,_,g;if(_=this.getBufferedFrag(r.currentTime),_&&_.startPTS>1&&this.flushMainBuffer(0,_.startPTS-1),r.paused)c=0;else{var C=this.hls.nextLoadLevel,F=this.levels[C],x=this.fragLastKbps;x&&this.fragCurrent?c=this.fragCurrent.duration*F.bitrate/(1e3*x)+1:c=0}if(g=this.getBufferedFrag(r.currentTime+c),g&&(g=this.followingBufferedFrag(g),g)){var H=this.fragCurrent;H&&H.loader&&H.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(g.maxStartPTS,Number.POSITIVE_INFINITY)}}},f.flushMainBuffer=function(r,c){this.state=se.BUFFER_FLUSHING;var _={startOffset:r,endOffset:c};this.altAudio&&(_.type="video"),this.hls.trigger(l.default.BUFFER_FLUSHING,_)},f.onMediaAttached=function(r){var c=this.media=this.mediaBuffer=r.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),c.addEventListener("seeking",this.onvseeking),c.addEventListener("seeked",this.onvseeked),c.addEventListener("ended",this.onvended);var _=this.config;this.levels&&_.autoStartLoad&&this.hls.startLoad(_.startPosition),this.gapController=new bu(_,c,this.fragmentTracker,this.hls)},f.onMediaDetaching=function(){var r=this.media;r&&r.ended&&(s.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var c=this.levels;c&&c.forEach(function(_){_.details&&_.details.fragments.forEach(function(g){g.backtracked=void 0})}),r&&(r.removeEventListener("seeking",this.onvseeking),r.removeEventListener("seeked",this.onvseeked),r.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},f.onMediaSeeked=function(){var r=this.media,c=r?r.currentTime:void 0;Object(i.isFiniteNumber)(c)&&s.logger.log("media seeked to "+c.toFixed(3)),this.tick()},f.onManifestLoading=function(){s.logger.log("trigger BUFFER_RESET"),this.hls.trigger(l.default.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},f.onManifestParsed=function(r){var c=!1,_=!1,g;r.levels.forEach(function(F){g=F.audioCodec,g&&(g.indexOf("mp4a.40.2")!==-1&&(c=!0),g.indexOf("mp4a.40.5")!==-1&&(_=!0))}),this.audioCodecSwitch=c&&_,this.audioCodecSwitch&&s.logger.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.altAudio=r.altAudio,this.levels=r.levels,this.startFragRequested=!1;var C=this.config;(C.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(C.startPosition)},f.onLevelLoaded=function(r){var c=r.details,_=r.level,g=this.levels[this.levelLastLoaded],C=this.levels[_],F=c.totalduration,x=0;if(s.logger.log("level "+_+" loaded ["+c.startSN+","+c.endSN+"],duration:"+F),c.live){var H=C.details;H&&c.fragments.length>0?(Rn(H,c),x=c.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(x,H),c.PTSKnown&&Object(i.isFiniteNumber)(x)?s.logger.log("live playlist sliding:"+x.toFixed(3)):(s.logger.log("live playlist - outdated PTS, unknown sliding"),Er(this.fragPrevious,g,c))):(s.logger.log("live playlist - first load, unknown sliding"),c.PTSKnown=!1,Er(this.fragPrevious,g,c))}else c.PTSKnown=!1;if(C.details=c,this.levelLastLoaded=_,this.hls.trigger(l.default.LEVEL_UPDATED,{details:c,level:_}),this.startFragRequested===!1){if(this.startPosition===-1||this.lastCurrentTime===-1){var U=c.startTimeOffset;Object(i.isFiniteNumber)(U)?(U<0&&(s.logger.log("negative start time offset "+U+", count from end of last fragment"),U=x+F+U),s.logger.log("start time offset found in playlist, adjust startPosition to "+U),this.startPosition=U):c.live?(this.startPosition=this.computeLivePosition(x,c),s.logger.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===se.WAITING_LEVEL&&(this.state=se.IDLE),this.tick()},f.onKeyLoaded=function(){this.state===se.KEY_LOADING&&(this.state=se.IDLE,this.tick())},f.onFragLoaded=function(r){var c=this.fragCurrent,_=this.hls,g=this.levels,C=this.media,F=r.frag;if(this.state===se.FRAG_LOADING&&c&&F.type==="main"&&F.level===c.level&&F.sn===c.sn){var x=r.stats,H=g[c.level],U=H.details;if(this.bitrateTest=!1,this.stats=x,s.logger.log("Loaded "+c.sn+" of ["+U.startSN+" ,"+U.endSN+"],level "+c.level),F.bitrateTest&&_.nextLoadLevel)this.state=se.IDLE,this.startFragRequested=!1,x.tparsed=x.tbuffered=window.performance.now(),_.trigger(l.default.FRAG_BUFFERED,{stats:x,frag:c,id:"main"}),this.tick();else if(F.sn==="initSegment")this.state=se.IDLE,x.tparsed=x.tbuffered=window.performance.now(),U.initSegment.data=r.payload,_.trigger(l.default.FRAG_BUFFERED,{stats:x,frag:c,id:"main"}),this.tick();else{s.logger.log("Parsing "+c.sn+" of ["+U.startSN+" ,"+U.endSN+"],level "+c.level+", cc "+c.cc),this.state=se.PARSING,this.pendingBuffering=!0,this.appended=!1,F.bitrateTest&&(F.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:F}));var X=!(C&&C.seeking)&&(U.PTSKnown||!U.live),Re=U.initSegment?U.initSegment.data:[],qe=this._getAudioCodec(H),vn=this.demuxer=this.demuxer||new Ge(this.hls,"main");vn.push(r.payload,Re,qe,H.videoCodec,c,U.totalduration,X)}}this.fragLoadError=0},f.onFragParsingInitSegment=function(r){var c=this.fragCurrent,_=r.frag;if(c&&r.id==="main"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING){var g=r.tracks,C,F;if(g.audio&&this.altAudio&&delete g.audio,F=g.audio,F){var x=this.levels[this.level].audioCodec,H=navigator.userAgent.toLowerCase();x&&this.audioCodecSwap&&(s.logger.log("swapping playlist audio codec"),x.indexOf("mp4a.40.5")!==-1?x="mp4a.40.2":x="mp4a.40.5"),this.audioCodecSwitch&&F.metadata.channelCount!==1&&H.indexOf("firefox")===-1&&(x="mp4a.40.5"),H.indexOf("android")!==-1&&F.container!=="audio/mpeg"&&(x="mp4a.40.2",s.logger.log("Android: force audio codec to "+x)),F.levelCodec=x,F.id=r.id}F=g.video,F&&(F.levelCodec=this.levels[this.level].videoCodec,F.id=r.id),this.hls.trigger(l.default.BUFFER_CODECS,g);for(C in g){F=g[C],s.logger.log("main track:"+C+",container:"+F.container+",codecs[level/parsed]=["+F.levelCodec+"/"+F.codec+"]");var U=F.initSegment;U&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(l.default.BUFFER_APPENDING,{type:C,data:U,parent:"main",content:"initSegment"}))}this.tick()}},f.onFragParsingData=function(r){var c=this,_=this.fragCurrent,g=r.frag;if(_&&r.id==="main"&&g.sn===_.sn&&g.level===_.level&&!(r.type==="audio"&&this.altAudio)&&this.state===se.PARSING){var C=this.levels[this.level],F=_;if(Object(i.isFiniteNumber)(r.endPTS)||(r.endPTS=r.startPTS+_.duration,r.endDTS=r.startDTS+_.duration),r.hasAudio===!0&&F.addElementaryStream(oe.AUDIO),r.hasVideo===!0&&F.addElementaryStream(oe.VIDEO),s.logger.log("Parsed "+r.type+",PTS:["+r.startPTS.toFixed(3)+","+r.endPTS.toFixed(3)+"],DTS:["+r.startDTS.toFixed(3)+"/"+r.endDTS.toFixed(3)+"],nb:"+r.nb+",dropped:"+(r.dropped||0)),r.type==="video")if(F.dropped=r.dropped,F.dropped)if(F.backtracked)s.logger.warn("Already backtracked on this fragment, appending with the gap",F.sn);else{var x=C.details;if(x&&F.sn===x.startSN)s.logger.warn("missing video frame(s) on first frag, appending with gap",F.sn);else{s.logger.warn("missing video frame(s), backtracking fragment",F.sn),this.fragmentTracker.removeFragment(F),F.backtracked=!0,this.nextLoadPosition=r.startPTS,this.state=se.IDLE,this.fragPrevious=F,this.tick();return}}else F.backtracked=!1;var H=Le(C.details,F,r.startPTS,r.endPTS,r.startDTS,r.endDTS),U=this.hls;U.trigger(l.default.LEVEL_PTS_UPDATED,{details:C.details,level:this.level,drift:H,type:r.type,start:r.startPTS,end:r.endPTS}),[r.data1,r.data2].forEach(function(X){X&&X.length&&c.state===se.PARSING&&(c.appended=!0,c.pendingBuffering=!0,U.trigger(l.default.BUFFER_APPENDING,{type:r.type,data:X,parent:"main",content:"data"}))}),this.tick()}},f.onFragParsed=function(r){var c=this.fragCurrent,_=r.frag;c&&r.id==="main"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING&&(this.stats.tparsed=window.performance.now(),this.state=se.PARSED,this._checkAppendedParsed())},f.onAudioTrackSwitching=function(r){var c=!!r.url,_=r.id;if(!c){if(this.mediaBuffer!==this.media){s.logger.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var g=this.fragCurrent;g.loader&&(s.logger.log("switching to main audio track, cancel main fragment load"),g.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=se.IDLE}var C=this.hls;C.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),C.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:_}),this.altAudio=!1}},f.onAudioTrackSwitched=function(r){var c=r.id,_=!!this.hls.audioTracks[c].url;if(_){var g=this.videoBuffer;g&&this.mediaBuffer!==g&&(s.logger.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=g)}this.altAudio=_,this.tick()},f.onBufferCreated=function(r){var c=r.tracks,_,g,C=!1;for(var F in c){var x=c[F];x.id==="main"?(g=F,_=x,F==="video"&&(this.videoBuffer=c[F].buffer)):C=!0}C&&_?(s.logger.log("alternate track found, use "+g+".buffered to schedule main fragment loading"),this.mediaBuffer=_.buffer):this.mediaBuffer=this.media},f.onBufferAppended=function(r){if(r.parent==="main"){var c=this.state;(c===se.PARSING||c===se.PARSED)&&(this.pendingBuffering=r.pending>0,this._checkAppendedParsed())}},f._checkAppendedParsed=function(){if(this.state===se.PARSED&&(!this.appended||!this.pendingBuffering)){var r=this.fragCurrent;if(r){var c=this.mediaBuffer?this.mediaBuffer:this.media;s.logger.log("main buffered : "+ft.toString(c.buffered)),this.fragPrevious=r;var _=this.stats;_.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*_.total/(_.tbuffered-_.tfirst)),this.hls.trigger(l.default.FRAG_BUFFERED,{stats:_,frag:r,id:"main"}),this.state=se.IDLE}this.tick()}},f.onError=function(r){var c=r.frag||this.fragCurrent;if(!(c&&c.type!=="main")){var _=!!this.media&&j.isBuffered(this.media,this.media.currentTime)&&j.isBuffered(this.media,this.media.currentTime+.5);switch(r.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:if(!r.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var g=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);s.logger.warn("mediaController: frag loading failed, retry in "+g+" ms"),this.retryDate=window.performance.now()+g,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=se.FRAG_LOADING_WAITING_RETRY}else s.logger.error("mediaController: "+r.details+" reaches max retry, redispatch as fatal ..."),r.fatal=!0,this.state=se.ERROR;break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==se.ERROR&&(r.fatal?(this.state=se.ERROR,s.logger.warn("streamController: "+r.details+",switch to "+this.state+" state ...")):!r.levelRetry&&this.state===se.WAITING_LEVEL&&(this.state=se.IDLE));break;case u.ErrorDetails.BUFFER_FULL_ERROR:r.parent==="main"&&(this.state===se.PARSING||this.state===se.PARSED)&&(_?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=se.IDLE):(s.logger.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)));break;default:break}}},f._reduceMaxBufferLength=function(r){var c=this.config;return c.maxMaxBufferLength>=r?(c.maxMaxBufferLength/=2,s.logger.warn("main:reduce max buffer length to "+c.maxMaxBufferLength+"s"),!0):!1},f._checkBuffer=function(){var r=this.media;if(!(!r||r.readyState===0)){var c=this.mediaBuffer?this.mediaBuffer:r,_=c.buffered;!this.loadedmetadata&&_.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,_)}},f.onFragLoadEmergencyAborted=function(){this.state=se.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},f.onBufferFlushed=function(){var r=this.mediaBuffer?this.mediaBuffer:this.media;r&&this.fragmentTracker.detectEvictedFragments(oe.VIDEO,r.buffered),this.state=se.IDLE,this.fragPrevious=null},f.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},f._seekToStartPos=function(){var r=this.media,c=r.currentTime,_=r.seeking?c:this.startPosition;c!==_&&_>=0&&(s.logger.log("target start position not buffered, seek to buffered.start(0) "+_+" from current time "+c+" "),r.currentTime=_)},f._getAudioCodec=function(r){var c=this.config.defaultAudioCodec||r.audioCodec;return this.audioCodecSwap&&(s.logger.log("swapping playlist audio codec"),c&&(c.indexOf("mp4a.40.5")!==-1?c="mp4a.40.2":c="mp4a.40.5")),c},Pc(h,[{key:"state",set:function(r){if(this.state!==r){var c=this.state;this._state=r,s.logger.log("main stream-controller: "+c+"->"+r),this.hls.trigger(l.default.STREAM_STATE_TRANSITION,{previousState:c,nextState:r})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var r=this.media;if(r){var c=this.getBufferedFrag(r.currentTime);if(c)return c.level}return-1}},{key:"nextBufferedFrag",get:function(){var r=this.media;return r?this.followingBufferedFrag(this.getBufferedFrag(r.currentTime)):null}},{key:"nextLevel",get:function(){var r=this.nextBufferedFrag;return r?r.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(r){this._liveSyncPosition=r}}]),h}(dl),Qv=td;function B0(w,h){for(var f=0;f0){g=c[0].bitrate,c.sort(function(X,Re){return X.bitrate-Re.bitrate}),this._levels=c;for(var U=0;U=0&&r1&&H.loadError0){var c=this.currentLevelIndex,_=r.urlId,g=r.url[_];s.logger.log("Attempt loading level index "+c+" with URL-id "+_),this.hls.trigger(l.default.LEVEL_LOADING,{url:g,level:c,id:_})}}},H0(h,[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(r){var c=this._levels;c&&(r=Math.min(r,c.length-1),(this.currentLevelIndex!==r||!c[r].details)&&this.setLevelInternal(r))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(r){this.manualLevelIndex=r,this._startLevel===void 0&&(this._startLevel=r),r!==-1&&(this.level=r)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(r){this._firstLevel=r}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var r=this.hls.config.startLevel;return r!==void 0?r:this._firstLevel}else return this._startLevel},set:function(r){this._startLevel=r}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(r){this.level=r,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=r)}}]),h}(y),W0=a("./src/demux/id3.js");function PD(w,h){var f;try{f=new Event("addtrack")}catch{f=document.createEvent("Event"),f.initEvent("addtrack",!1,!1)}f.track=w,h.dispatchEvent(f)}function ks(w){if(w&&w.cues)for(;w.cues.length>0;)w.removeCue(w.cues[0])}function eE(w,h){if(hw[w.length-1].endTime)return w[w.length-1];for(var f=0,v=w.length-1;f<=v;){var r=Math.floor((v+f)/2);if(hw[r].endTime)f=r+1;else return w[r]}return w[f].endTime-hH&&(s.logger.warn("detected an id3 sample with endTime < startTime, adjusting endTime to (startTime + 0.25)"),H=x+.25);for(var U=0;U=this.minWeight_},h.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},h.destroy=function(){},w}(),oE=rE;function jD(w,h){for(var f=0;f500*_.duration/H){var U=r.levels,X=Math.max(1,F.bw?F.bw/8:F.loaded*1e3/x),Re=U[_.level],qe=Re.realBitrate?Math.max(Re.realBitrate,Re.bitrate):Re.bitrate,vn=F.total?F.total:Math.max(F.loaded,Math.round(_.duration*qe/8)),fa=c.currentTime,Xn=(vn-F.loaded)/X,la=(j.bufferInfo(c,fa,r.config.maxBufferHole).end-fa)/H;if(la<2*_.duration/H&&Xn>la){var Ra,Oa;for(Oa=_.level-1;Oa>C;Oa--){var Iu=U[Oa].realBitrate?Math.max(U[Oa].realBitrate,U[Oa].bitrate):U[Oa].bitrate,xo=_.duration*Iu/(8*.8*X);if(xo=g;X--){var Re=U[X];if(!!Re){var qe=Re.details,vn=qe?qe.totalduration/qe.fragments.length:c,fa=qe?qe.live:!1,Xn=void 0;X<=r?Xn=x*_:Xn=H*_;var la=U[X].realBitrate?Math.max(U[X].realBitrate,U[X].bitrate):U[X].bitrate,Ra=la*vn/Xn;if(s.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+X+"/"+Math.round(Xn)+"/"+la+"/"+vn+"/"+F+"/"+Ra),Xn>la&&(!Ra||fa&&!this.bitrateTestDelay||Ra=0)return vn;s.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var fa=H?Math.min(H,g.maxStarvationDelay):g.maxStarvationDelay,Xn=g.abrBandWidthFactor,la=g.abrBandWidthUpFactor;if(qe===0){var Ra=this.bitrateTestDelay;if(Ra){var Oa=H?Math.min(H,g.maxLoadingDelay):g.maxLoadingDelay;fa=Oa-Ra,s.logger.trace("bitrate test took "+Math.round(1e3*Ra)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*fa)+" ms"),Xn=la=1}}return vn=this._findBestLevel(x,H,Re,C,c,qe+fa,Xn,la,_),Math.max(vn,0)}}]),h}(y),sE=cE;function vE(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var UD=W(),fE=function(w){vE(h,w);function h(v){var r;return r=w.call(this,v,l.default.MEDIA_ATTACHING,l.default.MEDIA_DETACHING,l.default.MANIFEST_PARSED,l.default.BUFFER_RESET,l.default.BUFFER_APPENDING,l.default.BUFFER_CODECS,l.default.BUFFER_EOS,l.default.BUFFER_FLUSHING,l.default.LEVEL_PTS_UPDATED,l.default.LEVEL_UPDATED)||this,r._msDuration=null,r._levelDuration=null,r._levelTargetDuration=10,r._live=null,r._objectUrl=null,r._needsFlush=!1,r._needsEos=!1,r.config=void 0,r.audioTimestampOffset=void 0,r.bufferCodecEventsExpected=0,r._bufferCodecEventsTotal=0,r.media=null,r.mediaSource=null,r.segments=[],r.parent=void 0,r.appending=!1,r.appended=0,r.appendError=0,r.flushBufferCounter=0,r.tracks={},r.pendingTracks={},r.sourceBuffer={},r.flushRange=[],r._onMediaSourceOpen=function(){s.logger.log("media source opened"),r.hls.trigger(l.default.MEDIA_ATTACHED,{media:r.media});var c=r.mediaSource;c&&c.removeEventListener("sourceopen",r._onMediaSourceOpen),r.checkPendingTracks()},r._onMediaSourceClose=function(){s.logger.log("media source closed")},r._onMediaSourceEnded=function(){s.logger.log("media source ended")},r._onSBUpdateEnd=function(){if(r.audioTimestampOffset&&r.sourceBuffer.audio){var c=r.sourceBuffer.audio;s.logger.warn("change mpeg audio timestamp offset from "+c.timestampOffset+" to "+r.audioTimestampOffset),c.timestampOffset=r.audioTimestampOffset,delete r.audioTimestampOffset}r._needsFlush&&r.doFlush(),r._needsEos&&r.checkEos(),r.appending=!1;var _=r.parent,g=r.segments.reduce(function(U,X){return X.parent===_?U+1:U},0),C={},F=r.sourceBuffer;for(var x in F){var H=F[x];if(!H)throw Error("handling source buffer update end error: source buffer for "+x+" uninitilized and unable to update buffered TimeRanges.");C[x]=H.buffered}r.hls.trigger(l.default.BUFFER_APPENDED,{parent:_,pending:g,timeRanges:C}),r._needsFlush||r.doAppending(),r.updateMediaElementDuration(),g===0&&r.flushLiveBackBuffer()},r._onSBUpdateError=function(c){s.logger.error("sourceBuffer error:",c),r.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})},r.config=v.config,r}var f=h.prototype;return f.destroy=function(){y.prototype.destroy.call(this)},f.onLevelPtsUpdated=function(r){var c=r.type,_=this.tracks.audio;if(c==="audio"&&_&&_.container==="audio/mpeg"){var g=this.sourceBuffer.audio;if(!g)throw Error("Level PTS Updated and source buffer for audio uninitalized");var C=Math.abs(g.timestampOffset-r.start);if(C>.1){var F=g.updating;try{g.abort()}catch(x){s.logger.warn("can not abort audio buffer: "+x)}F?this.audioTimestampOffset=r.start:(s.logger.warn("change mpeg audio timestamp offset from "+g.timestampOffset+" to "+r.start),g.timestampOffset=r.start)}}},f.onManifestParsed=function(r){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r.altAudio?2:1,s.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(r){var c=this.media=r.media;if(c&&UD){var _=this.mediaSource=new UD;_.addEventListener("sourceopen",this._onMediaSourceOpen),_.addEventListener("sourceended",this._onMediaSourceEnded),_.addEventListener("sourceclose",this._onMediaSourceClose),c.src=window.URL.createObjectURL(_),this._objectUrl=c.src}},f.onMediaDetaching=function(){s.logger.log("media source detaching");var r=this.mediaSource;if(r){if(r.readyState==="open")try{r.endOfStream()}catch(c){s.logger.warn("onMediaDetaching:"+c.message+" while calling endOfStream")}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):s.logger.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.trigger(l.default.MEDIA_DETACHED)},f.checkPendingTracks=function(){var r=this.bufferCodecEventsExpected,c=this.pendingTracks,_=Object.keys(c).length;(_&&!r||_===2)&&(this.createSourceBuffers(c),this.pendingTracks={},this.doAppending())},f.onBufferReset=function(){var r=this.sourceBuffer;for(var c in r){var _=r[c];try{_&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(_),_.removeEventListener("updateend",this._onSBUpdateEnd),_.removeEventListener("error",this._onSBUpdateError))}catch{}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},f.onBufferCodecs=function(r){var c=this;Object.keys(this.sourceBuffer).length||(Object.keys(r).forEach(function(_){c.pendingTracks[_]=r[_]}),this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks())},f.createSourceBuffers=function(r){var c=this.sourceBuffer,_=this.mediaSource;if(!_)throw Error("createSourceBuffers called when mediaSource was null");for(var g in r)if(!c[g]){var C=r[g];if(!C)throw Error("source buffer exists for track "+g+", however track does not");var F=C.levelCodec||C.codec,x=C.container+";codecs="+F;s.logger.log("creating sourceBuffer("+x+")");try{var H=c[g]=_.addSourceBuffer(x);H.addEventListener("updateend",this._onSBUpdateEnd),H.addEventListener("error",this._onSBUpdateError),this.tracks[g]={buffer:H,codec:F,id:C.id,container:C.container,levelCodec:C.levelCodec}}catch(U){s.logger.error("error while trying to add sourceBuffer:"+U.message),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:U,mimeType:x})}}this.hls.trigger(l.default.BUFFER_CREATED,{tracks:this.tracks})},f.onBufferAppending=function(r){this._needsFlush||(this.segments?this.segments.push(r):this.segments=[r],this.doAppending())},f.onBufferEos=function(r){for(var c in this.sourceBuffer)if(!r.type||r.type===c){var _=this.sourceBuffer[c];_&&!_.ended&&(_.ended=!0,s.logger.log(c+" sourceBuffer now EOS"))}this.checkEos()},f.checkEos=function(){var r=this.sourceBuffer,c=this.mediaSource;if(!c||c.readyState!=="open"){this._needsEos=!1;return}for(var _ in r){var g=r[_];if(!!g){if(!g.ended)return;if(g.updating){this._needsEos=!0;return}}}s.logger.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{c.endOfStream()}catch{s.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1},f.onBufferFlushing=function(r){r.type?this.flushRange.push({start:r.startOffset,end:r.endOffset,type:r.type}):(this.flushRange.push({start:r.startOffset,end:r.endOffset,type:"video"}),this.flushRange.push({start:r.startOffset,end:r.endOffset,type:"audio"})),this.flushBufferCounter=0,this.doFlush()},f.flushLiveBackBuffer=function(){if(!!this._live){var r=this.config.liveBackBufferLength;if(!(!isFinite(r)||r<0)){if(!this.media){s.logger.error("flushLiveBackBuffer called without attaching media");return}for(var c=this.media.currentTime,_=this.sourceBuffer,g=Object.keys(_),C=c-Math.max(r,this._levelTargetDuration),F=g.length-1;F>=0;F--){var x=g[F],H=_[x];if(H){var U=H.buffered;U.length>0&&C>U.start(0)&&this.removeBufferRange(x,H,0,C)&&this.hls.trigger(l.default.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C})}}}}},f.onLevelUpdated=function(r){var c=r.details;c.fragments.length>0&&(this._levelDuration=c.totalduration+c.fragments[0].start,this._levelTargetDuration=c.averagetargetduration||c.targetduration||10,this._live=c.live,this.updateMediaElementDuration())},f.updateMediaElementDuration=function(){var r=this.config,c;if(!(this._levelDuration===null||!this.media||!this.mediaSource||!this.sourceBuffer||this.media.readyState===0||this.mediaSource.readyState!=="open")){for(var _ in this.sourceBuffer){var g=this.sourceBuffer[_];if(g&&g.updating===!0)return}c=this.media.duration,this._msDuration===null&&(this._msDuration=this.mediaSource.duration),this._live===!0&&r.liveDurationInfinity===!0?(s.logger.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>c||!Object(i.isFiniteNumber)(c))&&(s.logger.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},f.doFlush=function(){for(;this.flushRange.length;){var r=this.flushRange[0];if(this.flushBuffer(r.start,r.end,r.type))this.flushRange.shift(),this.flushBufferCounter=0;else{this._needsFlush=!0;return}}if(this.flushRange.length===0){this._needsFlush=!1;var c=0,_=this.sourceBuffer;try{for(var g in _){var C=_[g];C&&(c+=C.buffered.length)}}catch{s.logger.error("error while accessing sourceBuffer.buffered")}this.appended=c,this.hls.trigger(l.default.BUFFER_FLUSHED)}},f.doAppending=function(){var r=this.config,c=this.hls,_=this.segments,g=this.sourceBuffer;if(!!Object.keys(g).length){if(!this.media||this.media.error){this.segments=[],s.logger.error("trying to append although a media error occured, flush segment and abort");return}if(!this.appending){var C=_.shift();if(!!C)try{var F=g[C.type];if(!F){this._onSBUpdateEnd();return}if(F.updating){_.unshift(C);return}F.ended=!1,this.parent=C.parent,F.appendBuffer(C.data),this.appendError=0,this.appended++,this.appending=!0}catch(H){s.logger.error("error while trying to append buffer:"+H.message),_.unshift(C);var x={type:u.ErrorTypes.MEDIA_ERROR,parent:C.parent,details:"",fatal:!1};H.code===22?(this.segments=[],x.details=u.ErrorDetails.BUFFER_FULL_ERROR):(this.appendError++,x.details=u.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>r.appendErrorMaxRetry&&(s.logger.log("fail "+r.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],x.fatal=!0)),c.trigger(l.default.ERROR,x)}}}},f.flushBuffer=function(r,c,_){var g=this.sourceBuffer;if(!Object.keys(g).length)return!0;var C="null";if(this.media&&(C=this.media.currentTime.toFixed(3)),s.logger.log("flushBuffer,pos/start/end: "+C+"/"+r+"/"+c),this.flushBufferCounter>=this.appended)return s.logger.warn("abort flushing too many retries"),!0;var F=g[_];if(F){if(F.ended=!1,F.updating)return s.logger.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(_,F,r,c))return this.flushBufferCounter++,!1}return s.logger.log("buffer flushed"),!0},f.removeBufferRange=function(r,c,_,g){try{for(var C=0;C.5){var X="null";return this.media&&(X=this.media.currentTime.toString()),s.logger.log("sb remove "+r+" ["+H+","+U+"], of ["+F+","+x+"], pos:"+X),c.remove(H,U),!0}}}catch(Re){s.logger.warn("removeBufferRange failed",Re)}return!1},h}(y),_E=fE;function kD(w,h){for(var f=0;fthis.autoLevelCapping&&c.streamController.nextLevelSwitch(),this.autoLevelCapping=c.autoLevelCapping}}},f.getMaxLevel=function(r){var c=this;if(!this.levels)return-1;var _=this.levels.filter(function(g,C){return h.isLevelAllowed(C,c.restrictedLevels)&&C<=r});return h.getMaxLevelByMediaSize(_,this.mediaWidth,this.mediaHeight)},f.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},f.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},h.isLevelAllowed=function(r,c){return c===void 0&&(c=[]),c.indexOf(r)===-1},h.getMaxLevelByMediaSize=function(r,c,_){if(!r||r&&!r.length)return-1;for(var g=function(U,X){return X?U.width!==X.width||U.height!==X.height:!0},C=r.length-1,F=0;F=c||x.height>=_)&&g(x,r[F+1])){C=F;break}}return C},pE(h,[{key:"mediaWidth",get:function(){var r,c=this.media;return c&&(r=c.width||c.clientWidth||c.offsetWidth,r*=h.contentScaleFactor),r}},{key:"mediaHeight",get:function(){var r,c=this.media;return c&&(r=c.height||c.clientHeight||c.offsetHeight,r*=h.contentScaleFactor),r}}],[{key:"contentScaleFactor",get:function(){var r=1;try{r=window.devicePixelRatio}catch{}return r}}]),h}(y),BD=dE;function mE(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var Nc=window,hE=Nc.performance,id=function(w){mE(h,w);function h(v){return w.call(this,v,l.default.MEDIA_ATTACHING)||this}var f=h.prototype;return f.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},f.onMediaAttaching=function(r){var c=this.hls.config;if(c.capLevelOnFPSDrop){var _=this.video=r.media instanceof window.HTMLVideoElement?r.media:null;typeof _.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),c.fpsDroppedMonitoringPeriod)}},f.checkFPS=function(r,c,_){var g=hE.now();if(c){if(this.lastTime){var C=g-this.lastTime,F=_-this.lastDroppedFrames,x=c-this.lastDecodedFrames,H=1e3*F/C,U=this.hls;if(U.trigger(l.default.FPS_DROP,{currentDropped:F,currentDecoded:x,totalDroppedFrames:_}),H>0&&F>U.config.fpsDroppedMonitoringThreshold*x){var X=U.currentLevel;s.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+X),X>0&&(U.autoLevelCapping===-1||U.autoLevelCapping>=X)&&(X=X-1,U.trigger(l.default.FPS_DROP_LEVEL_CAPPING,{level:X,droppedLevel:U.currentLevel}),U.autoLevelCapping=X,U.streamController.nextLevelSwitch())}}this.lastTime=g,this.lastDroppedFrames=_,this.lastDecodedFrames=c}},f.checkFPSInterval=function(){var r=this.video;if(r)if(this.isVideoPlaybackQualityAvailable){var c=r.getVideoPlaybackQuality();this.checkFPS(r,c.totalVideoFrames,c.droppedVideoFrames)}else this.checkFPS(r,r.webkitDecodedFrameCount,r.webkitDroppedFrameCount)},h}(y),DE=id,HD=window,ld=HD.performance,gE=HD.XMLHttpRequest,RE=function(){function w(f){f&&f.xhrSetup&&(this.xhrSetup=f.xhrSetup)}var h=w.prototype;return h.destroy=function(){this.abort(),this.loader=null},h.abort=function(){var v=this.loader;v&&v.readyState!==4&&(this.stats.aborted=!0,v.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},h.load=function(v,r,c){this.context=v,this.config=r,this.callbacks=c,this.stats={trequest:ld.now(),retry:0},this.retryDelay=r.retryDelay,this.loadInternal()},h.loadInternal=function(){var v,r=this.context;v=this.loader=new gE;var c=this.stats;c.tfirst=0,c.loaded=0;var _=this.xhrSetup;try{if(_)try{_(v,r.url)}catch{v.open("GET",r.url,!0),_(v,r.url)}v.readyState||v.open("GET",r.url,!0)}catch(g){this.callbacks.onError({code:v.status,text:g.message},r,v);return}r.rangeEnd&&v.setRequestHeader("Range","bytes="+r.rangeStart+"-"+(r.rangeEnd-1)),v.onreadystatechange=this.readystatechange.bind(this),v.onprogress=this.loadprogress.bind(this),v.responseType=r.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),v.send()},h.readystatechange=function(v){var r=v.currentTarget,c=r.readyState,_=this.stats,g=this.context,C=this.config;if(!_.aborted&&c>=2)if(window.clearTimeout(this.requestTimeout),_.tfirst===0&&(_.tfirst=Math.max(ld.now(),_.trequest)),c===4){var F=r.status;if(F>=200&&F<300){_.tload=Math.max(_.tfirst,ld.now());var x,H;g.responseType==="arraybuffer"?(x=r.response,H=x.byteLength):(x=r.responseText,H=x.length),_.loaded=_.total=H;var U={url:r.responseURL,data:x};this.callbacks.onSuccess(U,_,g,r)}else _.retry>=C.maxRetry||F>=400&&F<499?(s.logger.error(F+" while loading "+g.url),this.callbacks.onError({code:F,text:r.statusText},g,r)):(s.logger.warn(F+" while loading "+g.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,C.maxRetryDelay),_.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),C.timeout)},h.loadtimeout=function(){s.logger.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},h.loadprogress=function(v){var r=v.currentTarget,c=this.stats;c.loaded=v.loaded,v.lengthComputable&&(c.total=v.total);var _=this.callbacks.onProgress;_&&_(c,this.context,null,r)},w}(),cd=RE;function qD(w,h){for(var f=0;f=this.tracks.length){s.logger.warn("Invalid audio track id:",r.id);return}if(s.logger.log("audioTrack "+r.id+" loaded"),this.tracks[r.id].details=r.details,r.details.live&&!this.hasInterval()){var c=r.details.targetduration*1e3;this.setInterval(c)}!r.details.live&&this.hasInterval()&&this.clearInterval()},f.onAudioTrackSwitched=function(r){var c=this.tracks[r.id].groupId;c&&this.audioGroupId!==c&&(this.audioGroupId=c)},f.onLevelLoaded=function(r){this._selectAudioGroup(r.level)},f.onError=function(r){r.type===u.ErrorTypes.NETWORK_ERROR&&(r.fatal&&this.clearInterval(),r.details===u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(s.logger.warn("Network failure on audio-track id:",r.context.id),this._handleLoadError()))},f._setAudioTrack=function(r){if(this._trackId===r&&this.tracks[this._trackId].details){s.logger.debug("Same id as current audio-track passed, and track details available -> no-op");return}if(r<0||r>=this.tracks.length){s.logger.warn("Invalid id passed to audio-track controller");return}var c=this.tracks[r];s.logger.log("Now switching to audio-track index "+r),this.clearInterval(),this._trackId=r;var _=c.url,g=c.type,C=c.id;this.hls.trigger(l.default.AUDIO_TRACK_SWITCHING,{id:C,type:g,url:_}),this._loadTrackDetailsIfNeeded(c)},f.doTick=function(){this._updateTrack(this._trackId)},f._selectAudioGroup=function(r){var c=this.hls.levels[r];if(!(!c||!c.audioGroupIds)){var _=c.audioGroupIds[c.urlId];this.audioGroupId!==_&&(this.audioGroupId=_,this._selectInitialAudioTrack())}},f._selectInitialAudioTrack=function(){var r=this,c=this.tracks;if(!!c.length){var _=this.tracks[this._trackId],g=null;if(_&&(g=_.name),this._selectDefaultTrack){var C=c.filter(function(H){return H.default});C.length?c=C:s.logger.warn("No default audio tracks defined")}var F=!1,x=function(){c.forEach(function(U){F||(!r.audioGroupId||U.groupId===r.audioGroupId)&&(!g||g===U.name)&&(r._setAudioTrack(U.id),F=!0)})};x(),F||(g=null,x()),F||(s.logger.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}},f._needsTrackLoading=function(r){var c=r.details,_=r.url;return!c||c.live?!!_:!1},f._loadTrackDetailsIfNeeded=function(r){if(this._needsTrackLoading(r)){var c=r.url,_=r.id;s.logger.log("loading audio-track playlist for id: "+_),this.hls.trigger(l.default.AUDIO_TRACK_LOADING,{url:c,id:_})}},f._updateTrack=function(r){if(!(r<0||r>=this.tracks.length)){this.clearInterval(),this._trackId=r,s.logger.log("trying to update audio-track "+r);var c=this.tracks[r];this._loadTrackDetailsIfNeeded(c)}},f._handleLoadError=function(){this.trackIdBlacklist[this._trackId]=!0;var r=this._trackId,c=this.tracks[r],_=c.name,g=c.language,C=c.groupId;s.logger.warn("Loading failed on audio track id: "+r+", group-id: "+C+', name/language: "'+_+'" / "'+g+'"');for(var F=r,x=0;x0&&r===-1?(s.logger.log("audio:override startPosition with lastCurrentTime @"+c.toFixed(3)),this.state=se.IDLE):(this.lastCurrentTime=this.startPosition?this.startPosition:r,this.state=se.STARTING),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=r,this.state=se.STOPPED},f.doTick=function(){var r,c,_,g=this.hls,C=g.config;switch(this.state){case se.ERROR:case se.PAUSED:case se.BUFFER_FLUSHING:break;case se.STARTING:this.state=se.WAITING_TRACK,this.loadedmetadata=!1;break;case se.IDLE:var F=this.tracks;if(!F||!this.media&&(this.startFragRequested||!C.startFragPrefetch))break;if(this.loadedmetadata)r=this.media.currentTime;else if(r=this.nextLoadPosition,r===void 0)break;var x=this.mediaBuffer?this.mediaBuffer:this.media,H=this.videoBuffer?this.videoBuffer:this.media,U=j.bufferInfo(x,r,C.maxBufferHole),X=j.bufferInfo(H,r,C.maxBufferHole),Re=U.len,qe=U.end,vn=this.fragPrevious,fa=Math.min(C.maxBufferLength,C.maxMaxBufferLength),Xn=Math.max(fa,X.len),la=this.audioSwitch,Ra=this.trackId;if((Rexo||U.nextStart)s.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=xo+.05;else return}if(_.initSegment&&!_.initSegment.data)it=_.initSegment;else if(qe<=xo){if(it=Oa[0],this.videoTrackCC!==null&&it.cc!==this.videoTrackCC&&(it=jt(Oa,this.videoTrackCC)),_.live&&it.loadIdx&&it.loadIdx===this.fragLoadIdx){var _t=U.nextStart?U.nextStart:xo;s.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(_t+.05)),this.media.currentTime=_t+.05;return}}else{var xa,wo=C.maxFragLookUpTolerance,Q0=vn?Oa[vn.sn-Oa[0].sn+1]:void 0,K0=function(hd){var gL=Math.min(wo,hd.duration);return hd.start+hd.duration-gL<=qe?1:hd.start-gL>qe&&hd.start?-1:0};qePi-wo&&(wo=0),Q0&&!K0(Q0)?xa=Q0:xa=K.search(Oa,K0)):xa=Oa[Iu-1],xa&&(it=xa,xo=xa.start,vn&&it.level===vn.level&&it.sn===vn.sn&&(it.sn<_.endSN?(it=Oa[it.sn+1-_.startSN],s.logger.log("SN just loaded, load next one: "+it.sn)):it=null))}it&&(it.encrypted?(s.logger.log("Loading key for "+it.sn+" of ["+_.startSN+" ,"+_.endSN+"],track "+Ra),this.state=se.KEY_LOADING,g.trigger(l.default.KEY_LOADING,{frag:it})):(s.logger.log("Loading "+it.sn+", cc: "+it.cc+" of ["+_.startSN+" ,"+_.endSN+"],track "+Ra+", currentTime:"+r+",bufferEnd:"+qe.toFixed(3)),this.fragCurrent=it,(la||this.fragmentTracker.getState(it)===Da.NOT_LOADED)&&(it.sn!=="initSegment"&&(this.startFragRequested=!0),Object(i.isFiniteNumber)(it.sn)&&(this.nextLoadPosition=it.start+it.duration),g.trigger(l.default.FRAG_LOADING,{frag:it}),this.state=se.FRAG_LOADING)))}break;case se.WAITING_TRACK:c=this.tracks[this.trackId],c&&c.details&&(this.state=se.IDLE);break;case se.FRAG_LOADING_WAITING_RETRY:var eI=Dl.now(),mL=this.retryDate;x=this.media;var GK=x&&x.seeking;(!mL||eI>=mL||GK)&&(s.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=se.IDLE);break;case se.WAITING_INIT_PTS:var nI=this.videoTrackCC;if(this.initPTS[nI]===void 0)break;var hL=this.waitingFragment;if(hL){var DL=hL.frag.cc;nI!==DL?(c=this.tracks[this.trackId],c.details&&c.details.live&&(s.logger.warn("Waiting fragment CC ("+DL+") does not match video track CC ("+nI+")"),this.waitingFragment=null,this.state=se.IDLE)):(this.state=se.FRAG_LOADING,this.onFragLoaded(this.waitingFragment),this.waitingFragment=null)}else this.state=se.IDLE;break;case se.STOPPED:case se.FRAG_LOADING:case se.PARSING:case se.PARSED:case se.ENDED:break;default:break}},f.onMediaAttached=function(r){var c=this.media=this.mediaBuffer=r.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),c.addEventListener("seeking",this.onvseeking),c.addEventListener("ended",this.onvended);var _=this.config;this.tracks&&_.autoStartLoad&&this.startLoad(_.startPosition)},f.onMediaDetaching=function(){var r=this.media;r&&r.ended&&(s.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r&&(r.removeEventListener("seeking",this.onvseeking),r.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},f.onAudioTracksUpdated=function(r){s.logger.log("audio tracks updated"),this.tracks=r.audioTracks},f.onAudioTrackSwitching=function(r){var c=!!r.url;this.trackId=r.id,this.fragCurrent=null,this.state=se.PAUSED,this.waitingFragment=null,c?this.setInterval($D):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),c&&(this.audioSwitch=!0,this.state=se.IDLE),this.tick()},f.onAudioTrackLoaded=function(r){var c=r.details,_=r.id,g=this.tracks[_],C=c.totalduration,F=0;if(s.logger.log("track "+_+" loaded ["+c.startSN+","+c.endSN+"],duration:"+C),c.live){var x=g.details;x&&c.fragments.length>0?(Rn(x,c),F=c.fragments[0].start,c.PTSKnown?s.logger.log("live audio playlist sliding:"+F.toFixed(3)):s.logger.log("live audio playlist - outdated PTS, unknown sliding")):(c.PTSKnown=!1,s.logger.log("live audio playlist - first load, unknown sliding"))}else c.PTSKnown=!1;if(g.details=c,!this.startFragRequested){if(this.startPosition===-1){var H=c.startTimeOffset;Object(i.isFiniteNumber)(H)?(s.logger.log("start time offset found in playlist, adjust startPosition to "+H),this.startPosition=H):c.live?(this.startPosition=this.computeLivePosition(F,c),s.logger.log("compute startPosition for audio-track to "+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===se.WAITING_TRACK&&(this.state=se.IDLE),this.tick()},f.onKeyLoaded=function(){this.state===se.KEY_LOADING&&(this.state=se.IDLE,this.tick())},f.onFragLoaded=function(r){var c=this.fragCurrent,_=r.frag;if(this.state===se.FRAG_LOADING&&c&&_.type==="audio"&&_.level===c.level&&_.sn===c.sn){var g=this.tracks[this.trackId],C=g.details,F=C.totalduration,x=c.level,H=c.sn,U=c.cc,X=this.config.defaultAudioCodec||g.audioCodec||"mp4a.40.2",Re=this.stats=r.stats;if(H==="initSegment")this.state=se.IDLE,Re.tparsed=Re.tbuffered=Dl.now(),C.initSegment.data=r.payload,this.hls.trigger(l.default.FRAG_BUFFERED,{stats:Re,frag:c,id:"audio"}),this.tick();else{this.state=se.PARSING,this.appended=!1,this.demuxer||(this.demuxer=new Ge(this.hls,"audio"));var qe=this.initPTS[U],vn=C.initSegment?C.initSegment.data:[];if(C.initSegment||qe!==void 0){this.pendingBuffering=!0,s.logger.log("Demuxing "+H+" of ["+C.startSN+" ,"+C.endSN+"],track "+x);var fa=!1;this.demuxer.push(r.payload,vn,X,null,c,F,fa,qe)}else s.logger.log("unknown video PTS for continuity counter "+U+", waiting for video PTS before demuxing audio frag "+H+" of ["+C.startSN+" ,"+C.endSN+"],track "+x),this.waitingFragment=r,this.state=se.WAITING_INIT_PTS}}this.fragLoadError=0},f.onFragParsingInitSegment=function(r){var c=this.fragCurrent,_=r.frag;if(c&&r.id==="audio"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING){var g=r.tracks,C;if(g.video&&delete g.video,C=g.audio,C){C.levelCodec=C.codec,C.id=r.id,this.hls.trigger(l.default.BUFFER_CODECS,g),s.logger.log("audio track:audio,container:"+C.container+",codecs[level/parsed]=["+C.levelCodec+"/"+C.codec+"]");var F=C.initSegment;if(F){var x={type:"audio",data:F,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[x]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(l.default.BUFFER_APPENDING,x))}this.tick()}}},f.onFragParsingData=function(r){var c=this,_=this.fragCurrent,g=r.frag;if(_&&r.id==="audio"&&r.type==="audio"&&g.sn===_.sn&&g.level===_.level&&this.state===se.PARSING){var C=this.trackId,F=this.tracks[C],x=this.hls;Object(i.isFiniteNumber)(r.endPTS)||(r.endPTS=r.startPTS+_.duration,r.endDTS=r.startDTS+_.duration),_.addElementaryStream(oe.AUDIO),s.logger.log("parsed "+r.type+",PTS:["+r.startPTS.toFixed(3)+","+r.endPTS.toFixed(3)+"],DTS:["+r.startDTS.toFixed(3)+"/"+r.endDTS.toFixed(3)+"],nb:"+r.nb),Le(F.details,_,r.startPTS,r.endPTS);var H=this.audioSwitch,U=this.media,X=!1;if(H)if(U&&U.readyState){var Re=U.currentTime;s.logger.log("switching audio track : currentTime:"+Re),Re>=r.startPTS&&(s.logger.log("switching audio track : flushing all audio"),this.state=se.BUFFER_FLUSHING,x.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),X=!0,this.audioSwitch=!1,x.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:C}))}else this.audioSwitch=!1,x.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:C});var qe=this.pendingData;if(!qe){s.logger.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),x.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});return}this.audioSwitch||([r.data1,r.data2].forEach(function(vn){vn&&vn.length&&qe.push({type:r.type,data:vn,parent:"audio",content:"data"})}),!X&&qe.length&&(qe.forEach(function(vn){c.state===se.PARSING&&(c.pendingBuffering=!0,c.hls.trigger(l.default.BUFFER_APPENDING,vn))}),this.pendingData=[],this.appended=!0)),this.tick()}},f.onFragParsed=function(r){var c=this.fragCurrent,_=r.frag;c&&r.id==="audio"&&_.sn===c.sn&&_.level===c.level&&this.state===se.PARSING&&(this.stats.tparsed=Dl.now(),this.state=se.PARSED,this._checkAppendedParsed())},f.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},f.onBufferCreated=function(r){var c=r.tracks.audio;c&&(this.mediaBuffer=c.buffer,this.loadedmetadata=!0),r.tracks.video&&(this.videoBuffer=r.tracks.video.buffer)},f.onBufferAppended=function(r){if(r.parent==="audio"){var c=this.state;(c===se.PARSING||c===se.PARSED)&&(this.pendingBuffering=r.pending>0,this._checkAppendedParsed())}},f._checkAppendedParsed=function(){if(this.state===se.PARSED&&(!this.appended||!this.pendingBuffering)){var r=this.fragCurrent,c=this.stats,_=this.hls;if(r){this.fragPrevious=r,c.tbuffered=Dl.now(),_.trigger(l.default.FRAG_BUFFERED,{stats:c,frag:r,id:"audio"});var g=this.mediaBuffer?this.mediaBuffer:this.media;g&&s.logger.log("audio buffered : "+ft.toString(g.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,_.trigger(l.default.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=se.IDLE}this.tick()}},f.onError=function(r){var c=r.frag;if(!(c&&c.type!=="audio"))switch(r.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:var _=r.frag;if(_&&_.type!=="audio")break;if(!r.fatal){var g=this.fragLoadError;g?g++:g=1;var C=this.config;if(g<=C.fragLoadingMaxRetry){this.fragLoadError=g;var F=Math.min(Math.pow(2,g-1)*C.fragLoadingRetryDelay,C.fragLoadingMaxRetryTimeout);s.logger.warn("AudioStreamController: frag loading failed, retry in "+F+" ms"),this.retryDate=Dl.now()+F,this.state=se.FRAG_LOADING_WAITING_RETRY}else s.logger.error("AudioStreamController: "+r.details+" reaches max retry, redispatch as fatal ..."),r.fatal=!0,this.state=se.ERROR}break;case u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==se.ERROR&&(this.state=r.fatal?se.ERROR:se.IDLE,s.logger.warn("AudioStreamController: "+r.details+" while loading frag, now switching to "+this.state+" state ..."));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(r.parent==="audio"&&(this.state===se.PARSING||this.state===se.PARSED)){var x=this.mediaBuffer,H=this.media.currentTime,U=x&&j.isBuffered(x,H)&&j.isBuffered(x,H+.5);if(U){var X=this.config;X.maxMaxBufferLength>=X.maxBufferLength&&(X.maxMaxBufferLength/=2,s.logger.warn("AudioStreamController: reduce max buffer length to "+X.maxMaxBufferLength+"s")),this.state=se.IDLE}else s.logger.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=se.BUFFER_FLUSHING,this.hls.trigger(l.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}break;default:break}},f.onBufferFlushed=function(){var r=this,c=this.pendingData;c&&c.length?(s.logger.log("AudioStreamController: appending pending audio data after buffer flushed"),c.forEach(function(_){r.hls.trigger(l.default.BUFFER_APPENDING,_)}),this.appended=!0,this.pendingData=[],this.state=se.PARSED):(this.state=se.IDLE,this.fragPrevious=null,this.tick())},Kv(h,[{key:"state",set:function(r){if(this.state!==r){var c=this.state;this._state=r,s.logger.log("audio stream:"+c+"->"+r)}},get:function(){return this._state}}]),h}(dl),TE=IE,zD=function(){if(typeof window!="undefined"&&window.VTTCue)return window.VTTCue;var w="auto",h={"":!0,lr:!0,rl:!0},f={start:!0,middle:!0,end:!0,left:!0,right:!0};function v(g){if(typeof g!="string")return!1;var C=h[g.toLowerCase()];return C?g.toLowerCase():!1}function r(g){if(typeof g!="string")return!1;var C=f[g.toLowerCase()];return C?g.toLowerCase():!1}function c(g){for(var C=1;C100)throw new Error("Position must be between 0 and 100.");Iu=xa,this.hasBeenReset=!0}})),Object.defineProperty(x,"positionAlign",c({},H,{get:function(){return xo},set:function(xa){var wo=r(xa);if(!wo)throw new SyntaxError("An invalid or illegal string was specified.");xo=wo,this.hasBeenReset=!0}})),Object.defineProperty(x,"size",c({},H,{get:function(){return Pi},set:function(xa){if(xa<0||xa>100)throw new Error("Size must be between 0 and 100.");Pi=xa,this.hasBeenReset=!0}})),Object.defineProperty(x,"align",c({},H,{get:function(){return it},set:function(xa){var wo=r(xa);if(!wo)throw new SyntaxError("An invalid or illegal string was specified.");it=wo,this.hasBeenReset=!0}})),x.displayState=void 0}return _.prototype.getCueAsHTML=function(){var g=window.WebVTT;return g.convertCueToDOMTree(window,this.text)},_}(),SE=function(){return{decode:function(f){if(!f)return"";if(typeof f!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(f))}}};function VD(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new SE,this.regionList=[]}function CE(w){function h(v,r,c,_){return(v|0)*3600+(r|0)*60+(c|0)+(_|0)/1e3}var f=w.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return f?f[3]?h(f[1],f[2],f[3].replace(":",""),f[4]):f[1]>59?h(f[1],f[2],0,f[4]):h(0,f[1],f[2],f[4]):null}function QD(){this.values=Object.create(null)}QD.prototype={set:function(h,f){!this.get(h)&&f!==""&&(this.values[h]=f)},get:function(h,f,v){return v?this.has(h)?this.values[h]:f[v]:this.has(h)?this.values[h]:f},has:function(h){return h in this.values},alt:function(h,f,v){for(var r=0;r=0&&f<=100)?(this.set(h,f),!0):!1}};function KD(w,h,f,v){var r=v?w.split(v):[w];for(var c in r)if(typeof r[c]=="string"){var _=r[c].split(f);if(_.length===2){var g=_[0],C=_[1];h(g,C)}}}var Yv=new zD(0,0,0),Li=Yv.align==="middle"?"middle":"center";function FE(w,h,f){var v=w;function r(){var g=CE(w);if(g===null)throw new Error("Malformed timestamp: "+v);return w=w.replace(/^[^\sa-zA-Z-]+/,""),g}function c(g,C){var F=new QD;KD(g,function(U,X){switch(U){case"region":for(var Re=f.length-1;Re>=0;Re--)if(f[Re].id===X){F.set(U,f[Re].region);break}break;case"vertical":F.alt(U,X,["rl","lr"]);break;case"line":var qe=X.split(","),vn=qe[0];F.integer(U,vn),F.percent(U,vn)&&F.set("snapToLines",!1),F.alt(U,vn,["auto"]),qe.length===2&&F.alt("lineAlign",qe[1],["start",Li,"end"]);break;case"position":qe=X.split(","),F.percent(U,qe[0]),qe.length===2&&F.alt("positionAlign",qe[1],["start",Li,"end","line-left","line-right","auto"]);break;case"size":F.percent(U,X);break;case"align":F.alt(U,X,["start",Li,"end","left","right"]);break}},/:/,/\s/),C.region=F.get("region",null),C.vertical=F.get("vertical","");var x=F.get("line","auto");x==="auto"&&Yv.line===-1&&(x=-1),C.line=x,C.lineAlign=F.get("lineAlign","start"),C.snapToLines=F.get("snapToLines",!0),C.size=F.get("size",100),C.align=F.get("align",Li);var H=F.get("position","auto");H==="auto"&&Yv.position===50&&(H=C.align==="start"||C.align==="left"?0:C.align==="end"||C.align==="right"?100:50),C.position=H}function _(){w=w.replace(/^\s+/,"")}if(_(),h.startTime=r(),_(),w.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+v);w=w.substr(3),_(),h.endTime=r(),_(),c(w,h)}function YD(w){return w.replace(//gi,` `)}VD.prototype={parse:function(h){var f=this;h&&(f.buffer+=f.decoder.decode(h,{stream:!0}));function v(){var F=f.buffer,x=0;for(F=YD(F);x")===-1){f.cue.id=c;continue}case"CUE":try{FE(c,f.cue,f.regionList)}catch{f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":var C=c.indexOf("-->")!==-1;if(!c||C&&(g=!0)){f.oncue&&f.oncue(f.cue),f.cue=null,f.state="ID";continue}f.cue.text&&(f.cue.text+=` `),f.cue.text+=c;continue;case"BADCUE":c||(f.state="ID");continue}}}catch{f.state==="CUETEXT"&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state=f.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var h=this;try{if(h.buffer+=h.decoder.decode(),(h.cue||h.state==="HEADER")&&(h.buffer+=` `,h.parse()),h.state==="INITIAL")throw new Error("Malformed WebVTT signature.")}catch(f){throw f}return h.onflush&&h.onflush(),this}};var GE=VD;function ME(w,h,f,v){for(var r,c,_,g,C,F=window.VTTCue||TextTrackCue,x=0;x=16?g--:g++,navigator.userAgent.match(/Firefox\//)?c.line=x+1:c.line=x>7?x-2:x+1,c.align="left",c.position=Math.max(0,Math.min(100,100*(g/32))),w.addCue(c)}}var sd={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},XD=function(h){var f=h;return sd.hasOwnProperty(h)&&(f=sd[h]),String.fromCharCode(f)},Eu=15,gl=100,AE={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},LE={17:2,18:4,21:6,22:8,23:10,19:13,20:15},PE={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},xE={25:2,26:4,29:6,30:8,31:10,27:13,28:15},NE=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],ZD;(function(w){w[w.ERROR=0]="ERROR",w[w.TEXT=1]="TEXT",w[w.WARNING=2]="WARNING",w[w.INFO=2]="INFO",w[w.DEBUG=3]="DEBUG",w[w.DATA=3]="DATA"})(ZD||(ZD={}));var Ha={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(h){this.time=h},log:function(h,f){var v=this.verboseFilter[h];this.verboseLevel>=v}},jc=function(h){for(var f=[],v=0;vgl&&(Ha.log("ERROR","Too large cursor position "+this.pos),this.pos=gl)},h.moveCursor=function(v){var r=this.pos+v;if(v>1)for(var c=this.pos+1;c=144&&this.backSpace();var r=XD(v);if(this.pos>=gl){Ha.log("ERROR","Cannot insert "+v.toString(16)+" ("+r+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(v){var r;for(r=v;r0&&(v?c="["+r.join(" | ")+"]":c=r.join(` `)),c},h.getTextAndFormat=function(){return this.rows},w}(),$0=function(){function w(f,v){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.lastCueEndTime=void 0,this.chNr=f,this.outputFilter=v,this.mode=null,this.verbose=0,this.displayedMemory=new qa,this.nonDisplayedMemory=new qa,this.lastOutputScreen=new qa,this.currRollUpRow=this.displayedMemory.rows[Eu-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}var h=w.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[Eu-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(v){this.outputFilter=v},h.setPAC=function(v){this.writeScreen.setPAC(v)},h.setBkgData=function(v){this.writeScreen.setBkgData(v)},h.setMode=function(v){v!==this.mode&&(this.mode=v,Ha.log("INFO","MODE="+v),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=v)},h.insertChars=function(v){for(var r=0;r=46,r.italics)r.foreground="white";else{var c=Math.floor(v/2)-16,_=["white","green","blue","cyan","red","yellow","magenta"];r.foreground=_[c]}Ha.log("INFO","MIDROW: "+JSON.stringify(r)),this.writeScreen.setPen(r)},h.outputDataUpdate=function(v){v===void 0&&(v=!1);var r=Ha.time;r!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=r:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,r,this.lastOutputScreen),v&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:r),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(v){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,v,this.displayedMemory),this.cueStartTime=v))},w}(),z0=function(){function w(f,v,r){this.field=void 0,this.outputs=void 0,this.channels=void 0,this.currChNr=void 0,this.lastCmdA=void 0,this.lastCmdB=void 0,this.lastTime=void 0,this.dataCounters=void 0,this.field=f||1,this.outputs=[v,r],this.channels=[new $0(1,v),new $0(2,r)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}var h=w.prototype;return h.getHandler=function(v){return this.channels[v].getHandler()},h.setHandler=function(v,r){this.channels[v].setHandler(r)},h.addData=function(v,r){var c,_,g,C=!1;this.lastTime=v,Ha.setTime(v);for(var F=0;F ("+jc([_,g])+")");if(c=this.parseCmd(_,g),c||(c=this.parseMidrow(_,g)),c||(c=this.parsePAC(_,g)),c||(c=this.parseBackgroundAttributes(_,g)),!c&&(C=this.parseChars(_,g),C))if(this.currChNr&&this.currChNr>=0){var x=this.channels[this.currChNr-1];x.insertChars(C)}else Ha.log("WARNING","No channel found yet. TEXT-MODE?");c?this.dataCounters.cmd+=2:C?this.dataCounters.char+=2:(this.dataCounters.other+=2,Ha.log("WARNING","Couldn't parse cleaned data "+jc([_,g])+" orig: "+jc([r[F],r[F+1]])))}},h.parseCmd=function(v,r){var c=null,_=(v===20||v===28)&&r>=32&&r<=47,g=(v===23||v===31)&&r>=33&&r<=35;if(!(_||g))return!1;if(v===this.lastCmdA&&r===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,Ha.log("DEBUG","Repeated command ("+jc([v,r])+") is dropped"),!0;v===20||v===23?c=1:c=2;var C=this.channels[c-1];return v===20||v===28?r===32?C.ccRCL():r===33?C.ccBS():r===34?C.ccAOF():r===35?C.ccAON():r===36?C.ccDER():r===37?C.ccRU(2):r===38?C.ccRU(3):r===39?C.ccRU(4):r===40?C.ccFON():r===41?C.ccRDC():r===42?C.ccTR():r===43?C.ccRTD():r===44?C.ccEDM():r===45?C.ccCR():r===46?C.ccENM():r===47&&C.ccEOC():C.ccTO(r-32),this.lastCmdA=v,this.lastCmdB=r,this.currChNr=c,!0},h.parseMidrow=function(v,r){var c=null;if((v===17||v===25)&&r>=32&&r<=47){if(v===17?c=1:c=2,c!==this.currChNr)return Ha.log("ERROR","Mismatch channel in midrow parsing"),!1;var _=this.channels[c-1];return _.ccMIDROW(r),Ha.log("DEBUG","MIDROW ("+jc([v,r])+")"),!0}return!1},h.parsePAC=function(v,r){var c=null,_=null,g=(v>=17&&v<=23||v>=25&&v<=31)&&r>=64&&r<=127,C=(v===16||v===24)&&r>=64&&r<=95;if(!(g||C))return!1;if(v===this.lastCmdA&&r===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,!0;c=v<=23?1:2,r>=64&&r<=95?_=c===1?AE[v]:PE[v]:_=c===1?LE[v]:xE[v];var F=this.interpretPAC(_,r),x=this.channels[c-1];return x.setPAC(F),this.lastCmdA=v,this.lastCmdB=r,this.currChNr=c,!0},h.interpretPAC=function(v,r){var c=r,_={color:null,italics:!1,indent:null,underline:!1,row:v};return r>95?c=r-96:c=r-64,_.underline=(c&1)==1,c<=13?_.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(c/2)]:c<=15?(_.italics=!0,_.color="white"):_.indent=Math.floor((c-16)/2)*4,_},h.parseChars=function(v,r){var c=null,_=null,g=null;if(v>=25?(c=2,g=v-8):(c=1,g=v),g>=17&&g<=19){var C=r;g===17?C=r+80:g===18?C=r+112:C=r+144,Ha.log("INFO","Special char '"+XD(C)+"' in channel "+c),_=[C]}else v>=32&&v<=127&&(_=r===0?[v]:[v,r]);if(_){var F=jc(_);Ha.log("DEBUG","Char codes = "+F.join(",")),this.lastCmdA=null,this.lastCmdB=null}return _},h.parseBackgroundAttributes=function(v,r){var c,_,g,C,F=(v===16||v===24)&&r>=32&&r<=47,x=(v===23||v===31)&&r>=45&&r<=47;return F||x?(c={},v===16||v===24?(_=Math.floor((r-32)/2),c.background=NE[_],r%2==1&&(c.background=c.background+"_semi")):r===45?c.background="transparent":(c.foreground="black",r===47&&(c.underline=!0)),g=v<24?1:2,C=this.channels[g-1],C.setBkgData(c),this.lastCmdA=null,this.lastCmdB=null,!0):!1},h.reset=function(){for(var v=0;vv)&&(this.startTime=v),this.endTime=r,this.screen=c,this.timelineController.createCaptionsTrack(this.trackName)},w}(),fd=function(h,f,v){return h.substr(v||0,f.length)===f},kE=function(h){var f=parseInt(h.substr(-3)),v=parseInt(h.substr(-6,2)),r=parseInt(h.substr(-9,2)),c=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(i.isFiniteNumber)(f)||!Object(i.isFiniteNumber)(v)||!Object(i.isFiniteNumber)(r)||!Object(i.isFiniteNumber)(c))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return f+=1e3*v,f+=60*1e3*r,f+=60*60*1e3*c,f},V0=function(h){for(var f=5381,v=h.length;v;)f=f*33^h.charCodeAt(--v);return(f>>>0).toString()},BE=function(h,f,v){var r=h[f],c=h[r.prevCC];if(!c||!c.new&&r.new){h.ccOffset=h.presentationOffset=r.start,r.new=!1;return}for(;c&&c.new;)h.ccOffset+=r.start-c.start,r.new=!1,r=c,c=h[r.prevCC];h.presentationOffset=v},HE={parse:function(h,f,v,r,c,_){var g=/\r\n|\n\r|\n|\r/g,C=Object(W0.utf8ArrayToStr)(new Uint8Array(h)).trim().replace(g,` `).split(` `),F="00:00.000",x=0,H=0,U=0,X=[],Re,qe=!0,vn=!1,fa=new GE;fa.oncue=function(Xn){var la=v[r],Ra=v.ccOffset;la&&la.new&&(H!==void 0?Ra=v.ccOffset=la.start:BE(v,r,U)),U&&(Ra=U-v.presentationOffset),vn&&(Xn.startTime+=Ra-H,Xn.endTime+=Ra-H),Xn.id=V0(Xn.startTime.toString())+V0(Xn.endTime.toString())+V0(Xn.text),Xn.text=decodeURIComponent(encodeURIComponent(Xn.text)),Xn.endTime>0&&X.push(Xn)},fa.onparsingerror=function(Xn){Re=Xn},fa.onflush=function(){if(Re&&_){_(Re);return}c(X)},C.forEach(function(Xn){if(qe)if(fd(Xn,"X-TIMESTAMP-MAP=")){qe=!1,vn=!0,Xn.substr(16).split(",").forEach(function(la){fd(la,"LOCAL:")?F=la.substr(6):fd(la,"MPEGTS:")&&(x=parseInt(la.substr(7)))});try{f+(v[r].start*9e4||0)<0&&(f+=8589934592),x-=f,H=kE(F)/1e3,U=x/9e4}catch(la){vn=!1,Re=la}return}else Xn===""&&(qe=!1);fa.parse(Xn+` `)}),fa.flush()}},qE=HE;function ng(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function WE(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var JE=function(w){WE(h,w);function h(v){var r;if(r=w.call(this,v,l.default.MEDIA_ATTACHING,l.default.MEDIA_DETACHING,l.default.FRAG_PARSING_USERDATA,l.default.FRAG_DECRYPTED,l.default.MANIFEST_LOADING,l.default.MANIFEST_LOADED,l.default.FRAG_LOADED,l.default.INIT_PTS_FOUND)||this,r.media=null,r.config=void 0,r.enabled=!0,r.Cues=void 0,r.textTracks=[],r.tracks=[],r.initPTS=[],r.unparsedVttFrags=[],r.cueRanges=[],r.captionsTracks={},r.captionsProperties=void 0,r.cea608Parser=void 0,r.lastSn=-1,r.prevCC=-1,r.vttCCs=null,r.hls=v,r.config=v.config,r.Cues=v.config.cueHandler,r.captionsProperties={textTrack1:{label:r.config.captionsTextTrack1Label,languageCode:r.config.captionsTextTrack1LanguageCode},textTrack2:{label:r.config.captionsTextTrack2Label,languageCode:r.config.captionsTextTrack2LanguageCode}},r.config.enableCEA708Captions){var c=new eg(ng(r),"textTrack1"),_=new eg(ng(r),"textTrack2");r.cea608Parser=new UE(0,c,_)}return r}var f=h.prototype;return f.addCues=function(r,c,_,g){for(var C=this.cueRanges,F=!1,x=C.length;x--;){var H=C[x],U=$E(H[0],H[1],c,_);if(U>=0&&(H[0]=Math.min(H[0],c),H[1]=Math.max(H[1],_),F=!0,U/(_-c)>.5))return}F||C.push([c,_]),this.Cues.newCue(this.captionsTracks[r],c,_,g)},f.onInitPtsFound=function(r){var c=this,_=r.frag,g=r.id,C=r.initPTS,F=this.unparsedVttFrags;g==="main"&&(this.initPTS[_.cc]=C),F.length&&(this.unparsedVttFrags=[],F.forEach(function(x){c.onFragLoaded(x)}))},f.getExistingTrack=function(r){var c=this.media;if(c)for(var _=0;_=F.length||_!==C||!x||this.stopped){this._clearReloadTimer();return}if(s.logger.log("subtitle track "+_+" loaded"),g.live){var H=At(x.details,g,r.stats.trequest);s.logger.log("Reloading live subtitle playlist in "+H+"ms"),this.timer=setTimeout(function(){c._loadCurrentTrack()},H)}else this._clearReloadTimer()},f.startLoad=function(){this.stopped=!1,this._loadCurrentTrack()},f.stopLoad=function(){this.stopped=!0,this._clearReloadTimer()},f._clearReloadTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},f._loadCurrentTrack=function(){var r=this.trackId,c=this.tracks,_=this.hls,g=c[r];r<0||!g||g.details&&!g.details.live||(s.logger.log("Loading subtitle track "+r),_.trigger(l.default.SUBTITLE_TRACK_LOADING,{url:g.url,id:r}))},f._toggleTrackModes=function(r){var c=this.media,_=this.subtitleDisplay,g=this.trackId;if(!!c){var C=p(c.textTracks);if(r===-1)[].slice.call(C).forEach(function(H){H.mode="disabled"});else{var F=C[g];F&&(F.mode="disabled")}var x=C[r];x&&(x.mode=_?"showing":"hidden")}},f._setSubtitleTrackInternal=function(r){var c=this.hls,_=this.tracks;!Object(i.isFiniteNumber)(r)||r<-1||r>=_.length||(this.trackId=r,s.logger.log("Switching to subtitle track "+r),c.trigger(l.default.SUBTITLE_TRACK_SWITCH,{id:r}),this._loadCurrentTrack())},f._onTextTracksChanged=function(){if(!!this.media){for(var r=-1,c=p(this.media.textTracks),_=0;_=g[x].start&&F<=g[x].end){C=g[x];break}var H=c.start+c.duration;C?C.end=H:(C={start:F,end:H},g.push(C))}}},f.onMediaAttached=function(r){var c=r.media;this.media=c,c.addEventListener("seeking",this._onMediaSeeking),this.state=se.IDLE},f.onMediaDetaching=function(){var r=this;!this.media||(this.media.removeEventListener("seeking",this._onMediaSeeking),this.fragmentTracker.removeAllFragments(),this.currentTrackId=-1,this.tracks.forEach(function(c){r.tracksBuffered[c.id]=[]}),this.media=null,this.state=se.STOPPED)},f.onError=function(r){var c=r.frag;!c||c.type!=="subtitle"||(this.state=se.IDLE)},f.onSubtitleTracksUpdated=function(r){var c=this;s.logger.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=r.subtitleTracks,this.tracks.forEach(function(_){c.tracksBuffered[_.id]=[]})},f.onSubtitleTrackSwitch=function(r){if(this.currentTrackId=r.id,!this.tracks||!this.tracks.length||this.currentTrackId===-1){this.clearInterval();return}var c=this.tracks[this.currentTrackId];c&&c.details&&this.setInterval(ma)},f.onSubtitleTrackLoaded=function(r){var c=r.id,_=r.details,g=this.currentTrackId,C=this.tracks,F=C[g];c>=C.length||c!==g||!F||(_.live&&Vn(F.details,_,this.lastAVStart),F.details=_,this.setInterval(ma))},f.onKeyLoaded=function(){this.state===se.KEY_LOADING&&(this.state=se.IDLE)},f.onFragLoaded=function(r){var c=this.fragCurrent,_=r.frag.decryptdata,g=r.frag,C=this.hls;if(this.state===se.FRAG_LOADING&&c&&r.frag.type==="subtitle"&&c.sn===r.frag.sn&&r.payload.byteLength>0&&_&&_.key&&_.method==="AES-128"){var F=fn.now();this.decrypter.decrypt(r.payload,_.key.buffer,_.iv.buffer,function(x){var H=fn.now();C.trigger(l.default.FRAG_DECRYPTED,{frag:g,payload:x,stats:{tstart:F,tdecrypt:H}})})}},f.onLevelUpdated=function(r){var c=r.details,_=c.fragments;this.lastAVStart=_.length?_[0].start:0},f.doTick=function(){if(!this.media){this.state=se.IDLE;return}switch(this.state){case se.IDLE:{var r=this.config,c=this.currentTrackId,_=this.fragmentTracker,g=this.media,C=this.tracks;if(!C||!C[c]||!C[c].details)break;var F=r.maxBufferHole,x=r.maxFragLookUpTolerance,H=Math.min(r.maxBufferLength,r.maxMaxBufferLength),U=j.bufferedInfo(this._getBuffered(),g.currentTime,F),X=U.end,Re=U.len,qe=C[c].details,vn=qe.fragments,fa=vn.length,Xn=vn[fa-1].start+vn[fa-1].duration;if(Re>H)return;var la,Ra=this.fragPrevious;Xrg){this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.KEY_SYSTEM_ERROR,details:u.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var C=rg-this._requestLicenseFailureCount+1;s.logger.warn("Retrying license request, "+C+" attempts left"),this._requestLicense(_,g)}break}},f._generateLicenseRequestChallenge=function(r,c){switch(r.mediaKeySystemDomain){case $t.WIDEVINE:return c}throw new Error("unsupported key-system: "+r.mediaKeySystemDomain)},f._requestLicense=function(r,c){s.logger.log("Requesting content license for key-system");var _=this._mediaKeysList[0];if(!_){s.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.KEY_SYSTEM_ERROR,details:u.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var g=this.getLicenseServerUrl(_.mediaKeySystemDomain),C=this._createLicenseXhr(g,r,c);s.logger.log("Sending license request to URL: "+g);var F=this._generateLicenseRequestChallenge(_,r);C.send(F)}catch(x){s.logger.error("Failure requesting DRM license: "+x),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.KEY_SYSTEM_ERROR,details:u.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},f.onMediaAttached=function(r){if(!!this._emeEnabled){var c=r.media;this._media=c,c.addEventListener("encrypted",this._onMediaEncrypted)}},f.onMediaDetached=function(){this._media&&(this._media.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null)},f.onManifestParsed=function(r){if(!!this._emeEnabled){var c=r.levels.map(function(g){return g.audioCodec}),_=r.levels.map(function(g){return g.videoCodec});this._attemptKeySystemAccess($t.WIDEVINE,c,_)}},QE(h,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),h}(y),YE=ug;function XE(w){for(var h=1;hc)return g}return 0}},{key:"maxAutoLevel",get:function(){var r=this.levels,c=this.autoLevelCapping,_;return c===-1&&r&&r.length?_=r.length-1:_=c,_}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(r){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,r)}},{key:"audioTracks",get:function(){var r=this.audioTrackController;return r?r.audioTracks:[]}},{key:"audioTrack",get:function(){var r=this.audioTrackController;return r?r.audioTrack:-1},set:function(r){var c=this.audioTrackController;c&&(c.audioTrack=r)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var r=this.subtitleTrackController;return r?r.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var r=this.subtitleTrackController;return r?r.subtitleTrack:-1},set:function(r){var c=this.subtitleTrackController;c&&(c.subtitleTrack=r)}},{key:"subtitleDisplay",get:function(){var r=this.subtitleTrackController;return r?r.subtitleDisplay:!1},set:function(r){var c=this.subtitleTrackController;c&&(c.subtitleDisplay=r)}}]),h}(re);fg.defaultConfig=void 0},"./src/polyfills/number-isFinite.js":function(e,n,a){"use strict";a.r(n),a.d(n,"isFiniteNumber",function(){return t});var t=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)}},"./src/utils/get-self-scope.js":function(e,n,a){"use strict";a.r(n),a.d(n,"getSelfScope",function(){return t});function t(){return typeof window=="undefined"?self:window}},"./src/utils/logger.js":function(e,n,a){"use strict";a.r(n),a.d(n,"enableLogs",function(){return y}),a.d(n,"logger",function(){return I});var t=a("./src/utils/get-self-scope.js");function o(){}var u={trace:o,debug:o,log:o,warn:o,info:o,error:o},i=u;function l(b,T){return T="["+b+"] > "+T,T}var s=Object(t.getSelfScope)();function R(b){var T=s.console[b];return T?function(){for(var L=arguments.length,O=new Array(L),$=0;$1?T-1:0),O=1;O{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.Direction=void 0;var Sbe;(function(e){e.Right="to right",e.Left="to left",e.Down="to bottom",e.Up="to top"})(Sbe=vD.Direction||(vD.Direction={}))});var cA=xe(Aa=>{"use strict";var fD=Aa&&Aa.__spreadArray||function(e,n,a){if(a||arguments.length===2)for(var t=0,o=n.length,u;te)return s;if(R&&Rt)return t;if(e=a)throw new RangeError("min (".concat(n,") is equal/bigger than max (").concat(a,")"));if(ea)throw new RangeError("value (".concat(e,") is bigger than max (").concat(a,")"))}Aa.checkBoundaries=Lbe;function Pbe(e,n,a){return ea?a:e}Aa.checkValuesAgainstBoundaries=Pbe;function xbe(e){if(!(e.length<2)&&!e.slice(1).every(function(n,a){return e[a]<=n}))throw new RangeError("values={[".concat(e,"]} needs to be sorted when allowOverlap={false}"))}Aa.checkInitialOverlap=xbe;function Nbe(e){var n=window.getComputedStyle(e);return{top:parseInt(n["margin-top"],10),bottom:parseInt(n["margin-bottom"],10),left:parseInt(n["margin-left"],10),right:parseInt(n["margin-right"],10)}}Aa.getMargin=Nbe;function jbe(e){var n=window.getComputedStyle(e);return{top:parseInt(n["padding-top"],10)+parseInt(n["border-top-width"],10),bottom:parseInt(n["padding-bottom"],10)+parseInt(n["border-bottom-width"],10),left:parseInt(n["padding-left"],10)+parseInt(n["border-left-width"],10),right:parseInt(n["padding-right"],10)+parseInt(n["border-right-width"],10)}}Aa.getPaddingAndBorder=jbe;function Obe(e,n,a){var t=a?-1:1;e.forEach(function(o,u){return rz(o,t*n[u].x,n[u].y)})}Aa.translateThumbs=Obe;function Ube(e,n,a,t){for(var o=0,u=uz(e[0],n,a,t),i=1;ii?s:i},e.getBoundingClientRect().width));return u},Jbe=function(e,n,a,t,o,u,i){i===void 0&&(i=function(R){return R});var l=[],s=function(R){var d=oz(a[R],t[R],o,u,i),y=n[R].x;n.forEach(function(I,b){var T=I.x,L=oz(a[b],t[b],o,u,i);R!==b&&(y>=T&&y<=T+L||y+d>=T&&y+d<=T+L)&&(l.includes(b)||(l.push(R),l.push(b),l=fD(fD([],l,!0),[R,b],!1),s(b)))})};return s(e),Array.from(new Set(l.sort()))},$be=function(e,n,a,t,o,u){t===void 0&&(t=.1),o===void 0&&(o=" - "),u===void 0&&(u=function(b){return b});var i=(0,Aa.getStepDecimals)(t),l=(0,lA.useState)({}),s=l[0],R=l[1],d=(0,lA.useState)(u(n[a].toFixed(i))),y=d[0],I=d[1];return(0,lA.useEffect)(function(){if(e){var b=e.getThumbs();if(b.length<1)return;var T={},L=e.getOffsets(),O=Jbe(a,L,b,n,o,i,u),$=u(n[a].toFixed(i));if(O.length){var z=O.reduce(function(ge,nn,cn,ce){return ge.length?fD(fD([],ge,!0),[L[ce[cn]].x],!1):[L[ce[cn]].x]},[]);if(Math.min.apply(Math,z)===L[a].x){var Z=[];O.forEach(function(ge){Z.push(n[ge].toFixed(i))}),$=Array.from(new Set(Z.sort(function(ge,nn){return parseFloat(ge)-parseFloat(nn)}))).map(u).join(o);var oe=Math.min.apply(Math,z),te=Math.max.apply(Math,z),ve=b[O[z.indexOf(te)]].getBoundingClientRect().width;T.left="".concat(Math.abs(oe-(te+ve))/2,"px"),T.transform="translate(-50%, 0)"}else T.visibility="hidden"}I($),R(T)}},[e,n]),[y,s]};Aa.useThumbOverlap=$be;function uz(e,n,a,t){var o=e.getBoundingClientRect(),u=o.left,i=o.top,l=o.width,s=o.height;return tz(t)?Math.abs(a-(i+s/2)):Math.abs(n-(u+l/2))}});var lz=xe(Ii=>{"use strict";var zbe=Ii&&Ii.__extends||function(){var e=function(n,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(t[u]=o[u])},e(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function t(){this.constructor=n}n.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}}(),Vbe=Ii&&Ii.__createBinding||(Object.create?function(e,n,a,t){t===void 0&&(t=a);var o=Object.getOwnPropertyDescriptor(n,a);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(e,t,o)}:function(e,n,a,t){t===void 0&&(t=a),e[t]=n[a]}),Qbe=Ii&&Ii.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),Kbe=Ii&&Ii.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&Vbe(n,e,a);return Qbe(n,e),n},iz=Ii&&Ii.__spreadArray||function(e,n,a){if(a||arguments.length===2)for(var t=0,o=n.length,u;t1&&t.props.draggableTrack){if(t.thumbRefs.some(function(l){var s;return(s=l.current)===null||s===void 0?void 0:s.contains(o.target)}))return;t.setState({draggedTrackPos:[o.clientX,o.clientY]},function(){return t.onMove(o.clientX,o.clientY)})}else{var i=(0,ht.getClosestThumbIndex)(t.thumbRefs.map(function(l){return l.current}),o.clientX,o.clientY,t.props.direction);(u=t.thumbRefs[i].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:i},function(){return t.onMove(o.clientX,o.clientY)})}},t.onResize=function(){(0,ht.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(o){var u;if(o.persist(),t.addTouchEvents(o.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(l){var s;return(s=l.current)===null||s===void 0?void 0:s.contains(o.target)}))return;t.setState({draggedTrackPos:[o.touches[0].clientX,o.touches[0].clientY]},function(){return t.onMove(o.touches[0].clientX,o.touches[0].clientY)})}else{var i=(0,ht.getClosestThumbIndex)(t.thumbRefs.map(function(l){return l.current}),o.touches[0].clientX,o.touches[0].clientY,t.props.direction);(u=t.thumbRefs[i].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:i},function(){return t.onMove(o.touches[0].clientX,o.touches[0].clientY)})}},t.onMouseOrTouchStart=function(o){if(!t.props.disabled){var u=(0,ht.isTouchEvent)(o);if(!(!u&&o.button!==0)){var i=t.getTargetIndex(o);i!==-1&&(u?t.addTouchEvents(o):t.addMouseEvents(o),t.setState({draggedThumbIndex:i,thumbZIndexes:t.state.thumbZIndexes.map(function(l,s){return s===i?Math.max.apply(Math,t.state.thumbZIndexes):l<=t.state.thumbZIndexes[i]?l:l-1})}))}}},t.onMouseMove=function(o){o.preventDefault(),t.onMove(o.clientX,o.clientY)},t.onTouchMove=function(o){o.preventDefault(),t.onMove(o.touches[0].clientX,o.touches[0].clientY)},t.onKeyDown=function(o){var u=t.props,i=u.values,l=u.onChange,s=u.step,R=u.rtl,d=u.direction,y=t.state.isChanged,I=t.getTargetIndex(o.nativeEvent),b=R||d===eo.Direction.Left||d===eo.Direction.Down?-1:1;I!==-1&&(Ybe.includes(o.key)?(o.preventDefault(),t.setState({draggedThumbIndex:I,isChanged:!0}),l((0,ht.replaceAt)(i,I,t.normalizeValue(i[I]+b*(o.key==="PageUp"?s*10:s),I)))):Xbe.includes(o.key)?(o.preventDefault(),t.setState({draggedThumbIndex:I,isChanged:!0}),l((0,ht.replaceAt)(i,I,t.normalizeValue(i[I]-b*(o.key==="PageDown"?s*10:s),I)))):o.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){y&&t.fireOnFinalChange()}):y&&t.fireOnFinalChange())},t.onKeyUp=function(o){var u=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){u&&t.fireOnFinalChange()})},t.onMove=function(o,u){var i=t.state,l=i.draggedThumbIndex,s=i.draggedTrackPos,R=t.props,d=R.direction,y=R.min,I=R.max,b=R.onChange,T=R.values,L=R.step,O=R.rtl;if(l===-1&&s[0]===-1&&s[1]===-1)return null;var $=t.trackRef.current;if(!$)return null;var z=$.getBoundingClientRect(),Z=(0,ht.isVertical)(d)?z.height:z.width;if(s[0]!==-1&&s[1]!==-1){var oe=o-s[0],te=u-s[1],ve=0;switch(d){case eo.Direction.Right:case eo.Direction.Left:ve=oe/Z*(I-y);break;case eo.Direction.Down:case eo.Direction.Up:ve=te/Z*(I-y);break;default:(0,ht.assertUnreachable)(d)}if(O&&(ve*=-1),Math.abs(ve)>=L/2){for(var ge=0;geI?ve=I-T[ge]:nn=L/2&&b((0,ht.replaceAt)(T,l,t.normalizeValue(ce,l)))}},t.normalizeValue=function(o,u){var i=t.props,l=i.min,s=i.max,R=i.step,d=i.allowOverlap,y=i.values;return(0,ht.normalizeValue)(o,u,l,s,R,d,y)},t.onEnd=function(o){if(o.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var o=t.props,u=o.onFinalChange,i=o.values;u&&u(i)},t.updateMarkRefs=function(o){if(!o.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(o.max-o.min)/t.props.step,t.markRefs=[];for(var u=0;u-1?"grabbing":this.props.draggableTrack?(0,ht.isVertical)(this.props.direction)?"ns-resize":"ew-resize":s.length===1&&!I?"pointer":"inherit"},onMouseDown:I?ht.voidFn:this.onMouseDownTrack,onTouchStart:I?ht.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:I,children:iz(iz([],O.map(function($,z,Z){return l({props:{style:a.props.direction===eo.Direction.Left||a.props.direction===eo.Direction.Right?{position:"absolute",left:"".concat($[0],"px"),marginTop:"".concat($[1],"px")}:{position:"absolute",top:"".concat($[0],"px"),marginLeft:"".concat($[1],"px")},key:"mark".concat(z),ref:a.markRefs[z]},index:z})}),!0),s.map(function($,z){var Z=a.state.draggedThumbIndex===z;return u({index:z,value:$,isDragged:Z,props:{style:{position:"absolute",zIndex:L[z],cursor:I?"inherit":Z?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:z,tabIndex:I?void 0:0,"aria-valuemax":y?d:s[z+1]||d,"aria-valuemin":y?R:s[z-1]||R,"aria-valuenow":$,draggable:!1,ref:a.thumbRefs[z],role:"slider",onKeyDown:I?ht.voidFn:a.onKeyDown,onKeyUp:I?ht.voidFn:a.onKeyUp}})}),!0)})},n.defaultProps={step:1,direction:eo.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},n}(v1.Component);Ii.default=Zbe});var cz=xe(Vo=>{"use strict";var e1e=Vo&&Vo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vo,"__esModule",{value:!0});Vo.checkValuesAgainstBoundaries=Vo.relativeValue=Vo.useThumbOverlap=Vo.Direction=Vo.getTrackBackground=Vo.Range=void 0;var n1e=e1e(lz());Vo.Range=n1e.default;var f1=cA();Object.defineProperty(Vo,"getTrackBackground",{enumerable:!0,get:function(){return f1.getTrackBackground}});Object.defineProperty(Vo,"useThumbOverlap",{enumerable:!0,get:function(){return f1.useThumbOverlap}});Object.defineProperty(Vo,"relativeValue",{enumerable:!0,get:function(){return f1.relativeValue}});Object.defineProperty(Vo,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return f1.checkValuesAgainstBoundaries}});var a1e=s1();Object.defineProperty(Vo,"Direction",{enumerable:!0,get:function(){return a1e.Direction}})});var USe={};yL(USe,{boot:()=>OSe});var wL=function(e){return function(n){for(var a=e.length,t=n.length,o=new Array(a*t),u=0,i=0;i=a.length?n:e(a[t])};var FL=function(e,n,a,t){for(var o=0,u=t.length;o=t.length)return n;var o=t.slice();return o.splice(a,1),e(o)};var yd=function(e){return e.slice().reverse()};var ML=function(e,n){return n.filter(e)};var AL=function(){function e(n,a,t,o,u,i){var l,s,R,d,y,I,b;for(l=u+(i-u>>1),l-u>1&&e(n,a,o,t,u,l),i-l>1&&e(n,a,o,t,l,i),s=u,R=l,d=u;s0?(t[d++]=I,++R):(t[d++]=y,++s);for(;s="0"&&e[o]<="9"?"\\&":"";return"\\"+a.charCodeAt(0).toString(10)+u})+'"'};var rr={show:v2};var f2=function(e){return e.showRecordFields},af=function(){return function(){return function(e){var n=f2(e);return{show:function(a){return"{"+(n(gt.value)(a)+"}")}}}}};var tf={show:c2},en={show:l2},Cd={show:s2},Eg={show:function(e){if(e)return"true";if(!e)return"false";throw new Error("Failed pattern match at Data.Show (line 29, column 1 - line 31, column 23): "+[e.constructor.name])}},ne=function(e){return e.show};var rf=function(e){var n=jr(e);return function(a){var t=f2(a);return function(o){var u=ne(o);return{showRecordFields:function(i){return function(l){var s=t(gt.value)(l),R=n(gt.value),d=Su(R)(l);return" "+(R+(": "+(u(d)+(","+s))))}}}}}},of=function(e){var n=jr(e);return function(a){var t=ne(a);return{showRecordFields:function(o){return function(u){var i=n(gt.value),l=Su(i)(u);return" "+(i+(": "+(t(l)+" ")))}}}}};var ye=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ie=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var je=function(){function e(){}return e.value=new e,e}(),Fd=function(e){return e};var Gd=function(e){return e.to};var Md=function(e){return e.from};var KK=mn(Dn),M=function(){function e(){}return e.value=new e,e}(),S=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var _2=function(e){var n=an(e);return{append:function(a){return function(t){if(a instanceof M)return t;if(t instanceof M)return a;if(a instanceof S&&t instanceof S)return new S(n(a.value0)(t.value0));throw new Error("Failed pattern match at Data.Maybe (line 182, column 1 - line 185, column 43): "+[a.constructor.name,t.constructor.name])}}}};var bn=function(e){return function(n){return function(a){if(a instanceof M)return e;if(a instanceof S)return n(a.value0);throw new Error("Failed pattern match at Data.Maybe (line 237, column 1 - line 237, column 51): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}},Tt=bn(!0)(hn(!1)),St=bn(!1)(hn(!0));var ae={map:function(e){return function(n){return n instanceof S?new S(e(n.value0)):M.value}}},YK=k(ae);var ke=function(e){return bn(e)(KK)},Ct=function(){return function(e){if(e instanceof S)return e.value0;throw new Error("Failed pattern match at Data.Maybe (line 288, column 1 - line 288, column 46): "+[e.constructor.name])}};var or=function(e){var n=we(e);return{eq:function(a){return function(t){return a instanceof M&&t instanceof M?!0:a instanceof S&&t instanceof S?n(a.value0)(t.value0):!1}}}},Xo=function(e){var n=Xe(e),a=or(e.Eq0());return{compare:function(t){return function(o){if(t instanceof M&&o instanceof M)return Ue.value;if(t instanceof M)return De.value;if(o instanceof M)return de.value;if(t instanceof S&&o instanceof S)return n(t.value0)(o.value0);throw new Error("Failed pattern match at Data.Maybe (line 0, column 0 - line 0, column 0): "+[t.constructor.name,o.constructor.name])}},Eq0:function(){return a}}};var _r={apply:function(e){return function(n){if(e instanceof S)return YK(e.value0)(n);if(e instanceof M)return M.value;throw new Error("Failed pattern match at Data.Maybe (line 67, column 1 - line 69, column 30): "+[e.constructor.name,n.constructor.name])}},Functor0:function(){return ae}};var Ze={bind:function(e){return function(n){if(e instanceof S)return n(e.value0);if(e instanceof M)return M.value;throw new Error("Failed pattern match at Data.Maybe (line 125, column 1 - line 127, column 28): "+[e.constructor.name,n.constructor.name])}},Apply0:function(){return _r}};var na=function(){return{pure:S.create,Apply0:function(){return _r}}}();var Jr={alt:function(e){return function(n){return e instanceof M?n:e}},Functor0:function(){return ae}},XK=function(){return{empty:M.value,Alt0:function(){return Jr}}}(),Or={Applicative0:function(){return na},Plus1:function(){return XK}};var Ae=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Oe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var Ig=function(e){return bn(new Ae(e))(Oe.create)};var Ur={map:function(e){return function(n){if(n instanceof Ae)return new Ae(n.value0);if(n instanceof Oe)return new Oe(e(n.value0));throw new Error("Failed pattern match at Data.Either (line 0, column 0 - line 0, column 0): "+[n.constructor.name])}}},ZK=k(Ur);var qt=function(e){return function(n){return function(a){if(a instanceof Ae)return e(a.value0);if(a instanceof Oe)return n(a.value0);throw new Error("Failed pattern match at Data.Either (line 208, column 1 - line 208, column 64): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}},uf=function(){return qt(hn(M.value))(S.create)}();var uI={apply:function(e){return function(n){if(e instanceof Ae)return new Ae(e.value0);if(e instanceof Oe)return ZK(e.value0)(n);throw new Error("Failed pattern match at Data.Either (line 70, column 1 - line 72, column 30): "+[e.constructor.name,n.constructor.name])}},Functor0:function(){return Ur}};var bl={bind:qt(function(e){return function(n){return new Ae(e)}})(function(e){return function(n){return n(e)}}),Apply0:function(){return uI}};var lf=function(){return{pure:Oe.create,Apply0:function(){return uI}}}(),Tg={Applicative0:function(){return lf},Bind1:function(){return bl}};var Ui=function(e){return e};var Bc={map:function(e){return function(n){return e(n)}}};var p2={apply:function(e){return function(n){return e(n)}},Functor0:function(){return Bc}},eY={bind:function(e){return function(n){return n(e)}},Apply0:function(){return p2}},d2={pure:Ui,Apply0:function(){return p2}},ur={Applicative0:function(){return d2},Bind1:function(){return eY}};var m2=function(e){return Math.min(Math.abs(e),2147483647)},h2=function(e){return function(n){return n===0?0:n>0?Math.floor(e/n):-Math.floor(e/-n)}},D2=function(e){return function(n){if(n===0)return 0;var a=Math.abs(n);return(e%a+a)%a}};var iI={Ring0:function(){return Yl}};var bo=function(e){return e.mod};var Zt={degree:m2,div:h2,mod:D2,CommutativeRing0:function(){return iI}},uo=function(e){return e.div};var Rt={mempty:"",Semigroup0:function(){return Zv}};var Qa=function(e){return e.mempty};var R2=function(e){return function(){return e}},y2=function(e){return function(n){return function(){return n(e())()}}};var lI=function(e){return function(n){return function(){for(var a=0,t=e.length;a>1),l-u>1&&e(n,a,o,t,u,l),i-l>1&&e(n,a,o,t,l,i),s=u,R=l,d=u;s0?(t[d++]=I,++R):(t[d++]=y,++s);for(;s=0;u--)t=e(a[u])(t);return t}}},z2=function(e){return function(n){return function(a){for(var t=n,o=a.length,u=0;u":e===void 0?"":e instanceof Date?e.toString():typeof Blob!="undefined"&&e instanceof Blob?"file["+e.name+"]":JSON.stringify(e)}var IX=zt(_n),R3=Xs(f_),TX=Ut(_n);var Hd=function(e){return e.foldrWithIndex};var qd=function(e){return e.foldlWithIndex};var SX=function(e){var n=Hd(e);return function(a){var t=an(a.Semigroup0()),o=Qa(a);return function(u){return n(function(i){return function(l){return function(s){return t(u(i)(l))(s)}}})(o)}}},Wd={foldrWithIndex:function(e){return function(n){var a=IX(function(o){return function(u){return e(o.value0)(o.value1)(u)}})(n),t=R3(gn.create);return function(o){return a(t(o))}}},foldlWithIndex:function(e){return function(n){var a=TX(function(o){return function(u){return e(u.value0)(o)(u.value1)}})(n),t=R3(gn.create);return function(o){return a(t(o))}}},foldMapWithIndex:function(e){return SX(Wd)(e)},Foldable0:function(){return _n}};var y3=function(e){var n=qd(e);return function(a){var t=function(o){return function(u){return function(i){return u instanceof M?a(o)(i):u}}};return n(t)(M.value)}};var w3=function(e){return function(n){return function(a){return(a|0)===a?e(a):n}}},Lt=function(e){return e},b3=function(e){return function(n){return function(a){var t;a<11?t="[0-"+(a-1).toString()+"]":a===11?t="[0-9a]":t="[0-9a-"+String.fromCharCode(86+a)+"]";var o=new RegExp("^[\\+\\-]?"+t+"+$","i");return function(u){if(o.test(u)){var i=parseInt(u,a);return(i|0)===i?e(i):n}else return n}}}};var Ug=isFinite;var kg=Math.abs;var D_=Math.floor,NI=Math.log;var Bg=function(e){return function(n){return Math.pow(e,n)}};var Rf=Math.round;var E3=2.302585092994046;var I3=Ht(Sd),T3=nt(Sd);var LX=function(){return b3(S.create)(M.value)}(),Jc=LX(10),g_=function(){return w3(S.create)(M.value)}(),S3=function(e){if(!Ug(e))return 0;if(e>=Lt(I3))return I3;if(e<=Lt(T3))return T3;if(Je)return ke(0)(g_(e));throw new Error("Failed pattern match at Data.Int (line 72, column 1 - line 72, column 29): "+[e.constructor.name])},Hg=function(e){return S3(Rf(e))};var io=function(e){return S3(D_(e))};function qg(e){return Object.prototype.toString.call(e).slice(8,-1)}function Jd(e){return e===null}function yf(e){return e===void 0}var Wg=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function C3(e){return e.stack||e.toString()}function ou(e){return new Error(e)}function R_(e){return e.message}function Jg(e){return function(){throw e}}var G3=function(e){return Jg(ou(e))};var M3={show:C3};var Gr=function(e){return e.throwError};var Pt=function(e){return e.catchError};var wf=function(e){var n=Pt(e),a=e.MonadThrow0().Monad0(),t=k(a.Bind1().Apply0().Functor0()),o=J(a.Applicative0());return function(u){return n(t(Oe.create)(u))(function(i){return o(Ae.create(i))})}};var pr={liftEffect:mn(Dn),Monad0:function(){return Zl}},Wn=function(e){return e.liftEffect};var PX=k(Ur);var OI=function(e){return e};var Vg=function(e){return e};var Qg=function(e){return function(n){return e(n)}},Kg=function(e){var n=k(e);return{map:function(a){return Qg(n(PX(a)))}}};var UI=function(e){return{Applicative0:function(){return $c(e)},Bind1:function(){return Ef(e)}}},Ef=function(e){var n=ee(e.Bind1()),a=J(e.Applicative0());return{bind:function(t){return function(o){return n(t)(qt(function(u){return a(Ae.create(u))})(function(u){var i=o(u);return i}))}},Apply0:function(){return L3(e)}}},L3=function(e){var n=Kg(e.Bind1().Apply0().Functor0());return{apply:xi(UI(e)),Functor0:function(){return n}}},$c=function(e){return{pure:function(){var n=J(e.Applicative0());return function(a){return OI(n(Oe.create(a)))}}(),Apply0:function(){return L3(e)}}};var P3=function(e){var n=UI(e);return{throwError:function(){var a=J(e.Applicative0());return function(t){return OI(a(Ae.create(t)))}}(),Monad0:function(){return n}}};var Yg=function(e){var n=an(e);return function(a){var t=a.Bind1(),o=ee(t),u=J(a.Applicative0()),i=Kg(t.Apply0().Functor0());return{alt:function(l){return function(s){return o(l)(function(R){if(R instanceof Oe)return u(new Oe(R.value0));if(R instanceof Ae)return o(s)(function(d){if(d instanceof Oe)return u(new Oe(d.value0));if(d instanceof Ae)return u(new Ae(n(R.value0)(d.value0)));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 86, column 9 - line 88, column 49): "+[d.constructor.name])});throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 82, column 5 - line 88, column 49): "+[R.constructor.name])})}},Functor0:function(){return i}}}};var ui=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var Xg=function(e){var n=Zo(e);return function(a){return new ui(a,n)}};var BI=function(e){var n=k(e);return{map:function(a){return function(t){return new ui(a(t.value0),n(a)(t.value1))}}}};var HI=function(e){var n=Fr(e),a=Ut(e),t=zt(e);return{foldMap:function(o){var u=an(o.Semigroup0()),i=n(o);return function(l){return function(s){return u(l(s.value0))(i(l)(s.value1))}}},foldl:function(o){return function(u){return function(i){return a(o)(o(u)(i.value0))(i.value1)}}},foldr:function(o){return function(u){return function(i){return o(i.value0)(t(o)(u)(i.value1))}}}}};var Vt=function(){function e(){}return e.value=new e,e}(),tt=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),Zg=function(e){return e},WX=function(e){return new tt(e.value0,e.value1)};var JX=function(e){var n=function(a){return function(t){var o=a,u=!1,i;function l(s,R){if(R instanceof tt&&R.value1 instanceof tt&&R.value1.value1 instanceof tt){o=new tt(R,s),t=R.value1.value1.value1;return}var d=function(I){return I instanceof tt&&I.value1 instanceof tt&&I.value1.value1 instanceof Vt?new tt(e(I.value0),new tt(e(I.value1.value0),Vt.value)):I instanceof tt&&I.value1 instanceof Vt?new tt(e(I.value0),Vt.value):Vt.value},y=function(I){return function(b){var T=I,L=!1,O;function $(z,Z){if(z instanceof tt&&z.value0 instanceof tt&&z.value0.value1 instanceof tt&&z.value0.value1.value1 instanceof tt){T=z.value1,b=new tt(e(z.value0.value0),new tt(e(z.value0.value1.value0),new tt(e(z.value0.value1.value1.value0),Z)));return}return L=!0,Z}for(;!L;)O=$(T,b);return O}};return u=!0,y(s)(d(R))}for(;!u;)i=l(o,t);return i}};return n(Vt.value)},j3={map:JX};var qI=BI(j3),uu={foldr:function(e){return function(n){var a=function(){var o=function(u){return function(i){var l=u,s=!1,R;function d(y,I){if(I instanceof Vt)return s=!0,y;if(I instanceof tt){l=new tt(I.value0,y),i=I.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 107, column 7 - line 107, column 23): "+[y.constructor.name,I.constructor.name])}for(;!s;)R=d(l,i);return R}};return o(Vt.value)}(),t=Ut(uu)($a(e))(n);return function(o){return t(a(o))}}},foldl:function(e){var n=function(a){return function(t){var o=a,u=!1,i;function l(s,R){if(R instanceof Vt)return u=!0,s;if(R instanceof tt){o=e(s)(R.value0),t=R.value1;return}throw new Error("Failed pattern match at Data.List.Types (line 111, column 12 - line 113, column 30): "+[R.constructor.name])}for(;!u;)i=l(o,t);return i}};return n},foldMap:function(e){var n=an(e.Semigroup0()),a=Qa(e);return function(t){return Ut(uu)(function(o){var u=n(o);return function(i){return u(t(i))}})(a)}}};var $X=zt(uu);var eR=HI(uu);var WI={append:function(e){return function(n){return $X(tt.create)(n)(e)}}},O3=an(WI);var nR={append:function(e){return function(n){return new ui(e.value0,O3(e.value1)(WX(n)))}}};var zX={alt:O3,Functor0:function(){return j3}},U3=function(){return{empty:Vt.value,Alt0:function(){return zX}}}();var eZ=ot(C2);var q3=function(e){return new tt(e,Vt.value)};var JI=function(){var e=function(n){return function(a){var t=n,o=!1,u;function i(l,s){if(s instanceof Vt)return o=!0,l;if(s instanceof tt){t=new tt(s.value0,l),a=s.value1;return}throw new Error("Failed pattern match at Data.List (line 368, column 3 - line 368, column 19): "+[l.constructor.name,s.constructor.name])}for(;!o;)u=i(t,a);return u}};return e(Vt.value)}();var $I=function(e){var n=ee(e.Monad0().Bind1()),a=Eo(e);return function(t){var o=t.Plus1().Alt0(),u=ha(o),i=k(o.Functor0()),l=J(t.Applicative0());return function(s){var R=function(d){return n(u(i(Wt.create)(s))(l(new Ot(Ee))))(function(y){return l(eZ(function(I){return new tt(I,d)})(function(I){return JI(d)})(y))})};return a(R)(Vt.value)}}};var iu=function(e){return zt(e)(tt.create)(Vt.value)};var W3=function(e){return e()};var J3=function(e){throw new Error(e)};var $3=function(){return J3};var nZ=$3(),aZ=W3,nv=function(e){return aZ(function(){return nZ(e)})};var tR=function(){var e=Xg(U3);return function(n){return Zg(e(n))}}();var V3=function(e){return e.value0};var b_=function(e){return e.join("")},zd=function(e){return e.split("")},ii=function(e){return e},Q3=function(e){return function(n){return function(a){return function(t){return a>=0&&a=0&&e=0&&e<100&&l.setUTCFullYear(e),l.getTime()};function vP(e,n){var a=XI(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),t=XI(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return a-t}function fP(e){return function(n){return function(a){return function(t){var o=XI(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond),u=new Date(o+a);return isNaN(u.getTime())?n:e({year:u.getUTCFullYear(),month:u.getUTCMonth()+1,day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds()})}}}}var _P=function(e,n,a){var t=new Date(Date.UTC(e,n,a));return e>=0&&e<100&&t.setUTCFullYear(e),t};function pP(e,n,a,t){var o=_P(n,a-1,t);return e(o.getUTCFullYear())(o.getUTCMonth()+1)(o.getUTCDate())}function dP(e,n,a){return _P(e,n-1,a).getUTCDay()}function tv(e){return e.charCodeAt(0)}function mP(e){return String.fromCharCode(e)}var mr=function(e){var n=J(e.Applicative0()),a=Zo(e.Plus1());return function(t){if(t)return n(Ee);if(!t)return a;throw new Error("Failed pattern match at Control.Alternative (line 48, column 1 - line 48, column 54): "+[t.constructor.name])}};var hP=nt(zs),DP=Ht(zs);var oa=function(e){return e.toEnum};var qn=function(e){return e.fromEnum},ZI=function(e){var n=oa(e),a=qn(e),t=nt(e.Bounded0());return function(o){return function(u){return function(i){var l=n(i);if(l instanceof S)return l.value0;if(l instanceof M){var s=i=tv(hP)&&e<=tv(DP)?new S(mP(e)):M.value},yZ={succ:Gf(eT)(tv),pred:Mf(eT)(tv),Ord0:function(){return bg}};var Af=function(){return{cardinality:tv(DP)-tv(hP)|0,toEnum:eT,fromEnum:tv,Bounded0:function(){return zs},Enum1:function(){return yZ}}}();var iR=function(e,n,a){var t=0,o;return function(u){if(t===2)return o;if(t===1)throw new ReferenceError(e+" was needed before it finished initializing (module "+n+", line "+u+")",n,u);return t=1,o=a(),t=2,o}},gP=ne(en);var ci=function(){function e(){}return e.value=new e,e}(),Wi=function(){function e(){}return e.value=new e,e}(),Ji=function(){function e(){}return e.value=new e,e}(),$i=function(){function e(){}return e.value=new e,e}(),zi=function(){function e(){}return e.value=new e,e}(),Vi=function(){function e(){}return e.value=new e,e}(),Cl=function(){function e(){}return e.value=new e,e}(),lu=function(){function e(){}return e.value=new e,e}(),Au=function(){function e(){}return e.value=new e,e}(),cu=function(){function e(){}return e.value=new e,e}(),Lu=function(){function e(){}return e.value=new e,e}(),Pu=function(){function e(){}return e.value=new e,e}(),su=function(){function e(){}return e.value=new e,e}(),vu=function(){function e(){}return e.value=new e,e}(),xu=function(){function e(){}return e.value=new e,e}(),Nu=function(){function e(){}return e.value=new e,e}(),ju=function(){function e(){}return e.value=new e,e}(),Ou=function(){function e(){}return e.value=new e,e}(),si=function(){function e(){}return e.value=new e,e}();var RP={show:function(e){return"(Year "+(gP(e)+")")}},yP={show:function(e){if(e instanceof ci)return"Monday";if(e instanceof Wi)return"Tuesday";if(e instanceof Ji)return"Wednesday";if(e instanceof $i)return"Thursday";if(e instanceof zi)return"Friday";if(e instanceof Vi)return"Saturday";if(e instanceof Cl)return"Sunday";throw new Error("Failed pattern match at Data.Date.Component (line 184, column 1 - line 191, column 25): "+[e.constructor.name])}},lR={show:function(e){if(e instanceof lu)return"January";if(e instanceof Au)return"February";if(e instanceof cu)return"March";if(e instanceof Lu)return"April";if(e instanceof Pu)return"May";if(e instanceof su)return"June";if(e instanceof vu)return"July";if(e instanceof xu)return"August";if(e instanceof Nu)return"September";if(e instanceof ju)return"October";if(e instanceof Ou)return"November";if(e instanceof si)return"December";throw new Error("Failed pattern match at Data.Date.Component (line 101, column 1 - line 113, column 29): "+[e.constructor.name])}},wP={show:function(e){return"(Day "+(gP(e)+")")}},cR=ra,sR=ra,bP=Ya,wZ={eq:function(e){return function(n){return e instanceof ci&&n instanceof ci||e instanceof Wi&&n instanceof Wi||e instanceof Ji&&n instanceof Ji||e instanceof $i&&n instanceof $i||e instanceof zi&&n instanceof zi||e instanceof Vi&&n instanceof Vi||e instanceof Cl&&n instanceof Cl}}},EP={compare:function(e){return function(n){if(e instanceof ci&&n instanceof ci)return Ue.value;if(e instanceof ci)return De.value;if(n instanceof ci)return de.value;if(e instanceof Wi&&n instanceof Wi)return Ue.value;if(e instanceof Wi)return De.value;if(n instanceof Wi)return de.value;if(e instanceof Ji&&n instanceof Ji)return Ue.value;if(e instanceof Ji)return De.value;if(n instanceof Ji)return de.value;if(e instanceof $i&&n instanceof $i)return Ue.value;if(e instanceof $i)return De.value;if(n instanceof $i)return de.value;if(e instanceof zi&&n instanceof zi)return Ue.value;if(e instanceof zi)return De.value;if(n instanceof zi)return de.value;if(e instanceof Vi&&n instanceof Vi)return Ue.value;if(e instanceof Vi)return De.value;if(n instanceof Vi)return de.value;if(e instanceof Cl&&n instanceof Cl)return Ue.value;throw new Error("Failed pattern match at Data.Date.Component (line 0, column 0 - line 0, column 0): "+[e.constructor.name,n.constructor.name])}},Eq0:function(){return wZ}},nT={eq:function(e){return function(n){return e instanceof lu&&n instanceof lu||e instanceof Au&&n instanceof Au||e instanceof cu&&n instanceof cu||e instanceof Lu&&n instanceof Lu||e instanceof Pu&&n instanceof Pu||e instanceof su&&n instanceof su||e instanceof vu&&n instanceof vu||e instanceof xu&&n instanceof xu||e instanceof Nu&&n instanceof Nu||e instanceof ju&&n instanceof ju||e instanceof Ou&&n instanceof Ou||e instanceof si&&n instanceof si}}},S_={compare:function(e){return function(n){if(e instanceof lu&&n instanceof lu)return Ue.value;if(e instanceof lu)return De.value;if(n instanceof lu)return de.value;if(e instanceof Au&&n instanceof Au)return Ue.value;if(e instanceof Au)return De.value;if(n instanceof Au)return de.value;if(e instanceof cu&&n instanceof cu)return Ue.value;if(e instanceof cu)return De.value;if(n instanceof cu)return de.value;if(e instanceof Lu&&n instanceof Lu)return Ue.value;if(e instanceof Lu)return De.value;if(n instanceof Lu)return de.value;if(e instanceof Pu&&n instanceof Pu)return Ue.value;if(e instanceof Pu)return De.value;if(n instanceof Pu)return de.value;if(e instanceof su&&n instanceof su)return Ue.value;if(e instanceof su)return De.value;if(n instanceof su)return de.value;if(e instanceof vu&&n instanceof vu)return Ue.value;if(e instanceof vu)return De.value;if(n instanceof vu)return de.value;if(e instanceof xu&&n instanceof xu)return Ue.value;if(e instanceof xu)return De.value;if(n instanceof xu)return de.value;if(e instanceof Nu&&n instanceof Nu)return Ue.value;if(e instanceof Nu)return De.value;if(n instanceof Nu)return de.value;if(e instanceof ju&&n instanceof ju)return Ue.value;if(e instanceof ju)return De.value;if(n instanceof ju)return de.value;if(e instanceof Ou&&n instanceof Ou)return Ue.value;if(e instanceof Ou)return De.value;if(n instanceof Ou)return de.value;if(e instanceof si&&n instanceof si)return Ue.value;throw new Error("Failed pattern match at Data.Date.Component (line 0, column 0 - line 0, column 0): "+[e.constructor.name,n.constructor.name])}},Eq0:function(){return nT}},IP=Ya,vR=function(){return{bottom:-271820|0,top:275759,Ord0:function(){return cR}}}(),bZ=function(){return{bottom:ci.value,top:Cl.value,Ord0:function(){return EP}}}(),fR=function(){return{bottom:lu.value,top:si.value,Ord0:function(){return S_}}}(),Mr={cardinality:547580,toEnum:function(e){if(e>=(-271820|0)&&e<=275759)return new S(e);if(Je)return M.value;throw new Error("Failed pattern match at Data.Date.Component (line 35, column 1 - line 40, column 24): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return vR},Enum1:function(){return EZ(0)}},EZ=iR("enumYear","Data.Date.Component",function(){return{succ:function(){var e=oa(Mr),n=qn(Mr);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(Mr),n=qn(Mr);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return cR}}});var rv={cardinality:7,toEnum:function(e){return e===1?new S(ci.value):e===2?new S(Wi.value):e===3?new S(Ji.value):e===4?new S($i.value):e===5?new S(zi.value):e===6?new S(Vi.value):e===7?new S(Cl.value):M.value},fromEnum:function(e){if(e instanceof ci)return 1;if(e instanceof Wi)return 2;if(e instanceof Ji)return 3;if(e instanceof $i)return 4;if(e instanceof zi)return 5;if(e instanceof Vi)return 6;if(e instanceof Cl)return 7;throw new Error("Failed pattern match at Data.Date.Component (line 175, column 14 - line 182, column 16): "+[e.constructor.name])},Bounded0:function(){return bZ},Enum1:function(){return IZ(0)}},IZ=iR("enumWeekday","Data.Date.Component",function(){return{succ:function(){var e=oa(rv),n=qn(rv);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(rv),n=qn(rv);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return EP}}});var nr={cardinality:12,toEnum:function(e){return e===1?new S(lu.value):e===2?new S(Au.value):e===3?new S(cu.value):e===4?new S(Lu.value):e===5?new S(Pu.value):e===6?new S(su.value):e===7?new S(vu.value):e===8?new S(xu.value):e===9?new S(Nu.value):e===10?new S(ju.value):e===11?new S(Ou.value):e===12?new S(si.value):M.value},fromEnum:function(e){if(e instanceof lu)return 1;if(e instanceof Au)return 2;if(e instanceof cu)return 3;if(e instanceof Lu)return 4;if(e instanceof Pu)return 5;if(e instanceof su)return 6;if(e instanceof vu)return 7;if(e instanceof xu)return 8;if(e instanceof Nu)return 9;if(e instanceof ju)return 10;if(e instanceof Ou)return 11;if(e instanceof si)return 12;throw new Error("Failed pattern match at Data.Date.Component (line 87, column 14 - line 99, column 19): "+[e.constructor.name])},Bounded0:function(){return fR},Enum1:function(){return TZ(0)}},TZ=iR("enumMonth","Data.Date.Component",function(){return{succ:function(){var e=oa(nr),n=qn(nr);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(nr),n=qn(nr);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return S_}}});var tm={bottom:1,top:31,Ord0:function(){return sR}},fu={cardinality:31,toEnum:function(e){if(e>=1&&e<=31)return new S(e);if(Je)return M.value;throw new Error("Failed pattern match at Data.Date.Component (line 133, column 1 - line 138, column 23): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return tm},Enum1:function(){return SZ(0)}},SZ=iR("enumDay","Data.Date.Component",function(){return{succ:function(){var e=oa(fu),n=qn(fu);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(fu),n=qn(fu);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return sR}}});var C_=gI()();var TP=mn(Dn),aT=function(e){return e},CZ=function(e){return e},rm=function(e){return e};var FZ=function(e){return e},F_=function(e){return e.toDuration};var SP={append:function(e){return function(n){return e+n}}};var _R={append:function(e){return function(n){return e+n}}};var CP=Uc;var FP=Uc;var pR=function(e){return e.fromDuration};var Yc={fromDuration:C_(aT)(function(e){return e*1e3}),toDuration:C_(rm)(function(e){return e/1e3})},ov={fromDuration:C_(CZ)(function(e){return e*6e4}),toDuration:C_(rm)(function(e){return e/6e4})},G_={fromDuration:TP,toDuration:TP};var tT={fromDuration:C_(FZ)(function(e){return e*864e5}),toDuration:C_(rm)(function(e){return e/864e5})};var AP=qn(nr),rT=Ct(),LP=oa(rv),MZ=ne(RP),AZ=ne(lR),LZ=ne(wP);var PZ=we(bP),xZ=we(nT),NZ=we(IP),jZ=Xe(cR),OZ=Xe(S_),UZ=Xe(sR);var kZ=oa(nr);var dR=function(){function e(n,a,t){this.value0=n,this.value1=a,this.value2=t}return e.create=function(n){return function(a){return function(t){return new e(n,a,t)}}},e}(),Uu=function(e){return e.value0},om=function(e){var n=dP(e.value0,AP(e.value1),e.value2),a=n===0;return rT(LP(a?7:n))},PP={show:function(e){return"(Date "+(MZ(e.value0)+(" "+(AZ(e.value1)+(" "+(LZ(e.value2)+")")))))}},ku=function(e){return e.value1};var mR={eq:function(e){return function(n){return PZ(e.value0)(n.value0)&&xZ(e.value1)(n.value1)&&NZ(e.value2)(n.value2)}}},BZ=we(mR),oT={compare:function(e){return function(n){var a=jZ(e.value0)(n.value0);if(a instanceof De)return De.value;if(a instanceof de)return de.value;var t=OZ(e.value1)(n.value1);return t instanceof De?De.value:t instanceof de?de.value:UZ(e.value2)(n.value2)}},Eq0:function(){return mR}};var rc=function(e){return e.value2},uv=function(e){return function(n){return function(a){var t=function(o){return function(u){return function(i){return new dR(o,rT(kZ(u)),i)}}};return pP(t,e,AP(n),a)}}},hR=function(e){return function(n){return function(a){var t=new dR(e,n,a),o=BZ(uv(e)(n)(a))(t);return o?new S(t):M.value}}},uT=function(){return{bottom:new dR(nt(vR),nt(fR),nt(tm)),top:new dR(Ht(vR),Ht(fR),Ht(tm)),Ord0:function(){return oT}}}();var DR=function(e,n,a){var t=0,o;return function(u){if(t===2)return o;if(t===1)throw new ReferenceError(e+" was needed before it finished initializing (module "+n+", line "+u+")",n,u);return t=1,o=a(),t=2,o}},gR=ne(en);var xP={show:function(e){return"(Second "+(gR(e)+")")}},NP={show:function(e){return"(Minute "+(gR(e)+")")}},jP={show:function(e){return"(Millisecond "+(gR(e)+")")}},OP={show:function(e){return"(Hour "+(gR(e)+")")}},RR=ra,yR=ra,wR=ra,bR=ra,UP=Ya,kP=Ya,BP=Ya,HP=Ya,um={bottom:0,top:59,Ord0:function(){return RR}},im={bottom:0,top:59,Ord0:function(){return yR}},lm={bottom:0,top:999,Ord0:function(){return wR}},cm={bottom:0,top:23,Ord0:function(){return bR}},vi={cardinality:60,toEnum:function(e){if(e>=0&&e<=59)return new S(e);if(Je)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 90, column 1 - line 95, column 26): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return um},Enum1:function(){return HZ(0)}},HZ=DR("enumSecond","Data.Time.Component",function(){return{succ:function(){var e=oa(vi),n=qn(vi);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(vi),n=qn(vi);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return RR}}});var fi={cardinality:60,toEnum:function(e){if(e>=0&&e<=59)return new S(e);if(Je)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 61, column 1 - line 66, column 26): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return im},Enum1:function(){return qZ(0)}},qZ=DR("enumMinute","Data.Time.Component",function(){return{succ:function(){var e=oa(fi),n=qn(fi);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(fi),n=qn(fi);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return yR}}});var _u={cardinality:1e3,toEnum:function(e){if(e>=0&&e<=999)return new S(e);if(Je)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 120, column 1 - line 125, column 31): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return lm},Enum1:function(){return WZ(0)}},WZ=DR("enumMillisecond","Data.Time.Component",function(){return{succ:function(){var e=oa(_u),n=qn(_u);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(_u),n=qn(_u);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return wR}}});var _i={cardinality:24,toEnum:function(e){if(e>=0&&e<=23)return new S(e);if(Je)return M.value;throw new Error("Failed pattern match at Data.Time.Component (line 32, column 1 - line 37, column 24): "+[e.constructor.name])},fromEnum:function(e){return e},Bounded0:function(){return cm},Enum1:function(){return JZ(0)}},JZ=DR("enumHour","Data.Time.Component",function(){return{succ:function(){var e=oa(_i),n=qn(_i);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=oa(_i),n=qn(_i);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return bR}}});var VZ=ne(OP),QZ=ne(NP),KZ=ne(xP),YZ=ne(jP);var XZ=we(HP),ZZ=we(kP),eee=we(UP),nee=we(BP),aee=Xe(bR),tee=Xe(yR),ree=Xe(RR),oee=Xe(wR);var oc=function(){function e(n,a,t,o){this.value0=n,this.value1=a,this.value2=t,this.value3=o}return e.create=function(n){return function(a){return function(t){return function(o){return new e(n,a,t,o)}}}},e}(),qP={show:function(e){return"(Time "+(VZ(e.value0)+(" "+(QZ(e.value1)+(" "+(KZ(e.value2)+(" "+(YZ(e.value3)+")")))))))}};var Xc=function(e){return e.value2},Zc=function(e){return e.value1},Qi=function(e){return e.value3};var uc=function(e){return e.value0};var iT={eq:function(e){return function(n){return XZ(e.value0)(n.value0)&&ZZ(e.value1)(n.value1)&&eee(e.value2)(n.value2)&&nee(e.value3)(n.value3)}}},lT={compare:function(e){return function(n){var a=aee(e.value0)(n.value0);if(a instanceof De)return De.value;if(a instanceof de)return de.value;var t=tee(e.value1)(n.value1);if(t instanceof De)return De.value;if(t instanceof de)return de.value;var o=ree(e.value2)(n.value2);return o instanceof De?De.value:o instanceof de?de.value:oee(e.value3)(n.value3)}},Eq0:function(){return iT}};var sm=function(){return{bottom:new oc(nt(cm),nt(im),nt(um),nt(lm)),top:new oc(Ht(cm),Ht(im),Ht(um),Ht(lm)),Ord0:function(){return lT}}}();var uee=qn(Mr),iee=qn(nr),lee=qn(fu),cee=qn(_i),see=qn(fi),vee=qn(vi),fee=qn(_u),_ee=ne(PP),pee=ne(qP),dee=we(mR),mee=we(iT),hee=Xe(oT),Dee=Xe(lT),gee=ee(Ze),M_=Zn(_r),cT=k(ae),Ree=Rl(Ze),yee=oa(Mr),wee=oa(nr),bee=oa(fu),Eee=oa(_i),Iee=oa(fi),Tee=oa(vi),See=oa(_u),ic=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),sT=function(e){return{year:uee(Uu(e.value0)),month:iee(ku(e.value0)),day:lee(rc(e.value0)),hour:cee(uc(e.value1)),minute:see(Zc(e.value1)),second:vee(Xc(e.value1)),millisecond:fee(Qi(e.value1))}},vT=function(e){return e.value1},WP={show:function(e){return"(DateTime "+(_ee(e.value0)+(" "+(pee(e.value1)+")")))}};var Cee={eq:function(e){return function(n){return dee(e.value0)(n.value0)&&mee(e.value1)(n.value1)}}},Bu={compare:function(e){return function(n){var a=hee(e.value0)(n.value0);return a instanceof De?De.value:a instanceof de?de.value:Dee(e.value1)(n.value1)}},Eq0:function(){return Cee}},Hu=function(e){var n=F_(e);return function(a){return function(t){return n(vP(sT(a),sT(t)))}}},Lf=function(e){return e.value0},A_=function(){return{bottom:new ic(nt(uT),nt(sm)),top:new ic(Ht(uT),Ht(sm)),Ord0:function(){return Bu}}}(),lc=function(e){var n=pR(e);return function(a){return function(t){return gee(fP(S.create)(M.value)(n(a))(sT(t)))(function(o){return M_(cT(ic.create)(Ree(M_(M_(cT(hR)(yee(o.year)))(wee(o.month)))(bee(o.day)))))(M_(M_(M_(cT(oc.create)(Eee(o.hour)))(Iee(o.minute)))(Tee(o.second)))(See(o.millisecond)))})}}};var ko=function(){var e={},n="Pure",a="Throw",t="Catch",o="Sync",u="Async",i="Bind",l="Bracket",s="Fork",R="Sequential",d="Map",y="Apply",I="Alt",b="Cons",T="Resume",L="Release",O="Finalizer",$="Finalized",z="Forked",Z="Fiber",oe="Thunk";function te(Ne,ua,Ta,En){this.tag=Ne,this._1=ua,this._2=Ta,this._3=En}function ve(Ne){var ua=function(Ta,En,dn){return new te(Ne,Ta,En,dn)};return ua.tag=Ne,ua}function ge(Ne){return new te(n,void 0)}function nn(Ne){try{Ne()}catch(ua){setTimeout(function(){throw ua},0)}}function cn(Ne,ua,Ta){try{return ua(Ta())}catch(En){return Ne(En)}}function ce(Ne,ua,Ta){try{return ua(Ta)()}catch(En){return Ta(Ne(En))(),ge}}var le=function(){var Ne=1024,ua=0,Ta=0,En=new Array(Ne),dn=!1;function He(){var ea;for(dn=!0;ua!==0;)ua--,ea=En[Ta],En[Ta]=void 0,Ta=(Ta+1)%Ne,ea();dn=!1}return{isDraining:function(){return dn},enqueue:function(ea){var va,La;ua===Ne&&(La=dn,He(),dn=La),En[(Ta+ua)%Ne]=ea,ua++,dn||He()}}}();function Pe(Ne){var ua={},Ta=0,En=0;return{register:function(dn){var He=Ta++;dn.onComplete({rethrow:!0,handler:function(ea){return function(){En--,delete ua[He]}}})(),ua[He]=dn,En++},isEmpty:function(){return En===0},killAll:function(dn,He){return function(){if(En===0)return He();var ea=0,va={};function La(sn){va[sn]=ua[sn].kill(dn,function(ia){return function(){delete va[sn],ea--,Ne.isLeft(ia)&&Ne.fromLeft(ia)&&setTimeout(function(){throw Ne.fromLeft(ia)},0),ea===0&&He()}})()}for(var vt in ua)ua.hasOwnProperty(vt)&&(ea++,La(vt));return ua={},Ta=0,En=0,function(sn){return new te(o,function(){for(var ia in va)va.hasOwnProperty(ia)&&va[ia]()})}}}}}var Ce=0,Be=1,Ye=2,Sn=3,ta=4,kn=5,Bn=6;function Qn(Ne,ua,Ta){var En=0,dn=Ce,He=Ta,ea=null,va=null,La=null,vt=null,sn=null,ia=0,wt=0,Da=null,rt=!0;function q(P){for(var N,W,V;;)switch(N=null,W=null,V=null,dn){case Ye:dn=Be;try{He=La(He),vt===null?La=null:(La=vt._1,vt=vt._2)}catch(re){dn=kn,ea=Ne.left(re),He=null}break;case Sn:Ne.isLeft(He)?(dn=kn,ea=He,He=null):La===null?dn=kn:(dn=Ye,He=Ne.fromRight(He));break;case Be:switch(He.tag){case i:La&&(vt=new te(b,La,vt)),La=He._2,dn=Be,He=He._1;break;case n:La===null?(dn=kn,He=Ne.right(He._1)):(dn=Ye,He=He._1);break;case o:dn=Sn,He=cn(Ne.left,Ne.right,He._1);break;case u:dn=ta,He=ce(Ne.left,He._1,function(re){return function(){En===P&&(En++,le.enqueue(function(){En===P+1&&(dn=Sn,He=re,q(En))}))}});return;case a:dn=kn,ea=Ne.left(He._1),He=null;break;case t:La===null?sn=new te(b,He,sn,va):sn=new te(b,He,new te(b,new te(T,La,vt),sn,va),va),La=null,vt=null,dn=Be,He=He._1;break;case l:ia++,La===null?sn=new te(b,He,sn,va):sn=new te(b,He,new te(b,new te(T,La,vt),sn,va),va),La=null,vt=null,dn=Be,He=He._1;break;case s:dn=Sn,N=Qn(Ne,ua,He._2),ua&&ua.register(N),He._1&&N.run(),He=Ne.right(N);break;case R:dn=Be,He=st(Ne,ua,He._1);break}break;case kn:if(La=null,vt=null,sn===null)dn=Bn,He=va||ea||He;else switch(N=sn._3,V=sn._1,sn=sn._2,V.tag){case t:va&&va!==N&&ia===0?dn=kn:ea&&(dn=Be,He=V._2(Ne.fromLeft(ea)),ea=null);break;case T:va&&va!==N&&ia===0||ea?dn=kn:(La=V._1,vt=V._2,dn=Ye,He=Ne.fromRight(He));break;case l:ia--,ea===null&&(W=Ne.fromRight(He),sn=new te(b,new te(L,V._2,W),sn,N),(va===N||ia>0)&&(dn=Be,He=V._3(W)));break;case L:sn=new te(b,new te($,He,ea),sn,va),dn=Be,va&&va!==N&&ia===0?He=V._1.killed(Ne.fromLeft(va))(V._2):ea?He=V._1.failed(Ne.fromLeft(ea))(V._2):He=V._1.completed(Ne.fromRight(He))(V._2),ea=null,ia++;break;case O:ia++,sn=new te(b,new te($,He,ea),sn,va),dn=Be,He=V._1;break;case $:ia--,dn=kn,He=V._1,ea=V._2;break}break;case Bn:for(var ue in Da)Da.hasOwnProperty(ue)&&(rt=rt&&Da[ue].rethrow,nn(Da[ue].handler(He)));Da=null,va&&ea?setTimeout(function(){throw Ne.fromLeft(ea)},0):Ne.isLeft(He)&&rt&&setTimeout(function(){if(rt)throw Ne.fromLeft(He)},0);return;case Ce:dn=Be;break;case ta:return}}function K(P){return function(){if(dn===Bn)return rt=rt&&P.rethrow,P.handler(He)(),function(){};var N=wt++;return Da=Da||{},Da[N]=P,function(){Da!==null&&delete Da[N]}}}function j(P,N){return function(){if(dn===Bn)return N(Ne.right(void 0))(),function(){};var W=K({rethrow:!1,handler:function(){return N(Ne.right(void 0))}})();switch(dn){case Ce:va=Ne.left(P),dn=Bn,He=va,q(En);break;case ta:va===null&&(va=Ne.left(P)),ia===0&&(dn===ta&&(sn=new te(b,new te(O,He(P)),sn,va)),dn=kn,He=null,ea=null,q(++En));break;default:va===null&&(va=Ne.left(P)),ia===0&&(dn=kn,He=null,ea=null)}return W}}function E(P){return function(){var N=K({rethrow:!1,handler:P})();return dn===Ce&&q(En),N}}return{kill:j,join:E,onComplete:K,isSuspended:function(){return dn===Ce},run:function(){dn===Ce&&(le.isDraining()?q(En):le.enqueue(function(){q(En)}))}}}function Hn(Ne,ua,Ta,En){var dn=0,He={},ea=0,va={},La=new Error("[ParAff] Early exit"),vt=null,sn=e;function ia(K,j,E){var P=j,N=null,W=null,V=0,ue={},re,me;e:for(;;)switch(re=null,P.tag){case z:if(P._3===e&&(re=He[P._1],ue[V++]=re.kill(K,function(Ie){return function(){V--,V===0&&E(Ie)()}})),N===null)break e;P=N._2,W===null?N=null:(N=W._1,W=W._2);break;case d:P=P._2;break;case y:case I:N&&(W=new te(b,N,W)),N=P,P=P._1;break}if(V===0)E(Ne.right(void 0))();else for(me=0,re=V;me""),Tne=di.unmountComponentAtNode;function cN(e,n,a){return ka.createElement.apply(null,[e,Sne(e,n)].concat(a))}function Sne(e,n){if(typeof e!="string"||n._data==null)return n;var a={_data:void 0};for(var t in n._data){var o=n._data[t];a["data-"+t]=o}return Object.assign({},n,a)}var sN=(e,n)=>n[e],vN=(e,n,a)=>a[e]=n;var kf=function(n){return function(a){return n(a)()}};var U_=function(n){return function(a){return function(){return n(a)}}},sv=function(n){return function(a){return function(t){return function(){return n(a,t)}}}},k_=function(n){return function(a){return function(t){return function(o){return function(){return n(a,t,o)}}}}};function pN(e){return n=>e===n}var HT=function(e){return function(n){return function(a){var t=fe(a);if(e instanceof M&&t instanceof M)return Ee;if(e instanceof S&&t instanceof M)return Ee;if(e instanceof S&&t instanceof S){if(pN(e.value0)(t.value0))return Ee;if(Je)return n(new S(t.value0))()}return n(t)()}}};var Hne=pe(zn);var Y={asReactChildren:function(e){return[e]}},$e={asReactChildren:function(e){return[e]}},he={asReactChildren:mn(Dn)};var qT=k_(oN),dN=function(){return k_(vN)},mN=sv(iN),hN=sv(lN),DN=U_(rN),WT=function(e){var n=yt(e);return function(a){return function(t){return Hne(function(){return sN(a,t)})(n)}}},gN=sv(uN),bm=function(e){return e.asReactChildren},vv=function(){return function(e){var n=bm(e);return function(a){return function(t){return function(o){return cN(a,t,n(o))}}}}},qne=vv()(he),fv=function(){return function(e){return function(n){return qne(e)(n)([])}}};var JT=k(zn),Wne=J(at),RN=function(e){return{initialize:function(n){return gN(n)(e.initialState)},getState:function(n){return function(){var t=JT(fe)(DN(n))();return ke(e.initialState)(t)}},setState:qT}},yN=function(){var e=function(n){return function(a){return{initialize:function(t){return Hc(new S(a.initialState))(n)},getState:function(t){return JT(ke(a.initialState))(ec(n))},setState:function(t){return function(o){return function(u){return function(){return Hc(new S(o))(n)(),qT(t)(o)(Wne(Ee))(),u()}}}}}}};return JT(e)(qc(M.value))}();var wN=pe(ze),bN=an(It);var $ne=J(at),EN=dN(),zne=WT(Ia),IN=k(zn),Vne=WT(Ca(cP)),Qne=ln(on),Kne=za(er),Yne=wI(at)(_n),Xne=Qne(_a),TN=Wn(pr),Zne=Dg(Zl),eae=an(Hs(sI(mg))),SN=function(e){return e},Bf=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),nae={map:function(e){return function(n){return new Bf(e(n.value0),n.value1)}}},hr=function(e){return{bimap:function(n){return function(a){return function(t){return new Bf(a(t.value0),wN(t.value1)(function(o){return function(u){return o({dispatch:function(i){return u.dispatch(n(i))},onStop:u.onStop})}}))}}}}},CN={apply:function(e){return function(n){return new Bf(e.value0(n.value0),bN(e.value1)(n.value1))}},Functor0:function(){return nae}},Kn={bind:function(e){return function(n){var a=n(e.value0);return new Bf(a.value0,bN(e.value1)(a.value1))}},Apply0:function(){return CN}},wn={pure:function(e){return new Bf(e,[])},Apply0:function(){return CN}};var aae=function(e){var n=ee(e);return function(a){var t=Wn(a);return function(o){return function(u){return new Bf(o,wN(u)(function(i){return function(l){return n(i)(function(s){return t(l.dispatch(s))})}}))}}}};var Em=function(e){return new Bf(Ee,[e])},Za=function(e){return Em(hn(e))},B_=function(e){var n=ee(e.Monad0().Bind1()),a=Wn(e);return function(t){return Em(function(o){return n(t)(function(u){return a(bn($ne(Ee))(o.dispatch)(u))})})}},Ma=function(e){var n=aae(e.Monad0().Bind1())(e);return function(a){return n(Ee)([a])}},FN=function(e){return function(n){return function(a){var t=a({initialState:n.init.value0}),o=EN("__unmounted"),u=EN("__subscriptions"),i=function(){var b=IN(ke(!1)),T=zne("__unmounted");return function(L){return b(T(L))}}(),l=function(){var b=IN(ke([])),T=Vne("__subscriptions");return function(L){return b(T(L))}}(),s=function(b){return function(){return Kne(Yne)(l(b))(),u([])(b)()}},R=function(b){return function(T){return function(){var O=l(b)();return u(tu(fm(T))(O))(b)()}}},d=function(b){return function(T){var L=function(O){return fm(Xne(Qt(0))(function(){return O({dispatch:function(){var $=y(T);return function(z){return TN($(z))}}(),onStop:R(T)})}))};return lI(b)(L)}},y=function(b){return function(T){return Zne(i(b))(function(){var O=t.getState(b)(),$=n.update(O)(T);return t.setState(b)($.value0)(d($.value1)(b))()})}},I=function(b){return function(){var L=t.getState(b)();return n.view(L)(y(b))}};return vx(e,{init:t.initialize,render:I,componentDidMount:d(n.init.value1),componentWillUnmount:eae(o(!0))(s)})}}},GN=function(e){return function(){var a=TN(yN)();return sx(function(t){return FN(t)(e)(a)})}},_v=function(e){return function(n){return cx(e,function(a){return function(t){return FN(a)(n(t))(RN)}})}};var MN=J(at),AN=eu(),$T=function(e){return{handleMaybe:function(n){return function(a){return kf(function(){var t=bn(MN(Ee))(n);return function(o){return t(AN(a(o)))}}())}}}},pv=function(e){return{handleMaybe:function(n){return function(a){return function(t){return bn(MN(Ee))(n)(AN(a))()}}}}},co={handle:function(e){return function(n){return function(a){return e(n(a))()}}}},dv={handleEffect:function(e){return kf(e)}},Bo={handleEffect:function(e){return kf(hn(e))}},ga={handle:function(e){return function(n){return function(a){return e(n)()}}}},Al=function(e){return e.handleMaybe},ir=function(e){return e.handleEffect},Yn=function(e){return e.handle};function jR(e,n){var a={};for(var t in n)({}).hasOwnProperty.call(n,t)&&(a[t]=n[t]);for(var o in e)({}).hasOwnProperty.call(e,o)&&(a[o]=e[o]);return a}var rs=function(){return function(){return function(e){return function(n){return jR(e,n)}}}};var OR=function(e){var n=jr(e);return function(){return function(){return function(a){return function(t){return tI(n(a))(t)}}}}};var zT=fv(),LN=vv(),PN=rs()();var Im=We,xN=function(e){return function(n){return zT(Im(e))(n)}};var mi=function(e){var n=LN(e);return function(a){return function(t){return function(o){return n(Im(a))(PN(o)({className:t}))}}}},Tm=function(e){return function(n){return function(a){return zT(Im(e))(PN(a)({className:n}))}}},NN=function(e){return function(n){return zT(Im(e))({className:n})}},Dr=function(e){return function(n){var a=LN(n);return function(t){return function(o){return a(Im(e))({className:t})(o)}}}};var dt=We;var UR=function(e){var n=mi(e);return function(){return function(){return n("video")}}},jN=function(e){return Dr("video")(e)};var ON=function(e){return Dr("ul")(e)};var Hf=function(e){return Dr("tr")(e)};var H_=function(e){return Dr("thead")(e)};var q_=function(e){return Dr("th")(e)};var kR=function(){return function(){return Tm("textarea")}};var UN=function(e){var n=mi(e);return function(){return function(){return n("td")}}},os=function(e){return Dr("td")(e)};var W_=function(e){return Dr("tbody")(e)};var J_=function(e){return Dr("table")(e)};var Ho=function(e){return Dr("strong")(e)},BR=function(e){var n=mi(e);return function(){return function(){return n("span")}}},Ua=function(e){return Dr("span")(e)},kN=function(){return function(){return Tm("source")}};var BN=function(e){var n=mi(e);return function(){return function(){return n("select")}}};var HR=function(e){var n=mi(e);return function(){return function(){return n("p")}}},Jt=function(e){return Dr("p")(e)};var HN=function(e){var n=mi(e);return function(){return function(){return n("option")}}};var qN=function(e){return Dr("li")(e)};var $_=function(e){return Dr("label")(e)};var so=function(){return function(){return Tm("input")}};var Yi=function(){return function(){return Tm("img")}};var Va=function(e){return Dr("i")(e)};var us=NN("hr");var Sm=function(e){return Dr("h6")(e)};var qu=function(e){return Dr("h4")(e)},WN=function(e){var n=mi(e);return function(){return function(){return n("h3")}}},Br=function(e){return Dr("h3")(e)},mv=function(e){var n=mi(e);return function(){return function(){return n("h2")}}},kt=function(e){return Dr("h2")(e)};var hv=function(e){return Dr("h1")(e)},z_=function(e){var n=mi(e);return function(){return function(){return n("form")}}};var gr=function(e){var n=mi(e);return function(){return function(){return n("div")}}},Te=function(e){return Dr("div")(e)};var Jn=function(e){var n=mi(e);return function(){return function(){return n("button")}}},JN=function(e){return Dr("button")(e)};var Gt=function(e){var n=mi(e);return function(){return function(){return n("a")}}};var $N=Tu(IT()),zN=$N.Fragment;var Qe=We,Se=vv()(he)(zN)({}),$n=!1;var VN=ER(vm),tae=J(at);var QN={map:function(e){return function(n){return VN(VN(e))(n)}}},Cm=function(e){var n=ee(e.Monad0().Bind1()),a=Wn(e);return function(t){return function(o){return Em(function(u){return n(o(function(){var i=bn(tae(Ee))(u.dispatch);return function(l){return i(t(l))}}()))(function(i){return a(u.onStop(i))})})}}},Xi=function(e){var n=Cm(e);return function(a){return n(function(t){return S.create(a(t))})}};var Cn=function(){return{"genericTop'":je.value}}();var VT=function(e){return e["genericTop'"]},Fn=function(e){return{"genericTop'":VT(e)}};var Gn=function(){return{"genericBottom'":je.value}}();var Fm=function(e){return e["genericBottom'"]},Mn=function(e){return{"genericBottom'":Fm(e)}};var An=function(e){return{"genericBottom'":new ye(Fm(e))}},KN=function(e){var n=Gd(e);return function(a){return n(Fm(a))}};var Dv=k(ae),qR=ba();var QT=function(e){return e["genericToEnum'"]};var WR=function(e){return e["genericSucc'"]},KT=function(e){var n=Gd(e),a=Md(e);return function(t){var o=Dv(n),u=WR(t);return function(i){return o(u(a(i)))}}},YT=function(e){return e["genericPred'"]};var XT=function(e){return e["genericFromEnum'"]};var Ln=function(e){var n=YT(e),a=WR(e);return function(t){var o=VT(t);return function(u){var i=YT(u),l=WR(u);return function(s){var R=Fm(s);return{"genericPred'":function(d){if(d instanceof ye)return Dv(ye.create)(n(d.value0));if(d instanceof ie){var y=i(d.value0);if(y instanceof M)return new S(new ye(o));if(y instanceof S)return new S(new ie(y.value0));throw new Error("Failed pattern match at Data.Enum.Generic (line 30, column 14 - line 32, column 31): "+[y.constructor.name])}throw new Error("Failed pattern match at Data.Enum.Generic (line 28, column 18 - line 32, column 31): "+[d.constructor.name])},"genericSucc'":function(d){if(d instanceof ye){var y=a(d.value0);if(y instanceof M)return new S(new ie(R));if(y instanceof S)return new S(new ye(y.value0));throw new Error("Failed pattern match at Data.Enum.Generic (line 34, column 14 - line 36, column 31): "+[y.constructor.name])}if(d instanceof ie)return Dv(ie.create)(l(d.value0));throw new Error("Failed pattern match at Data.Enum.Generic (line 33, column 18 - line 37, column 36): "+[d.constructor.name])}}}}}};var Pn={"genericPred'":function(e){return M.value},"genericSucc'":function(e){return M.value}},xn=function(e){var n=YT(e),a=WR(e);return{"genericPred'":function(t){return Dv(Fd)(n(t))},"genericSucc'":function(t){return Dv(Fd)(a(t))}}};var ZT=function(e){return e["genericCardinality'"]};var Nn=function(e){var n=ZT(e),a=QT(e),t=XT(e);return function(o){var u=QT(o),i=XT(o);return{"genericCardinality'":qR(n)+qR(ZT(o))|0,"genericToEnum'":function(l){var s=function(R){if(l>=0&&l=i)return a;if(ZN)for(var l=u[Symbol.iterator](),s=o;;--s){var R=l.next();if(R.done)return a;if(s===0)return n(t(R.value))}return e(o)(u)}}}}}};var aj=function(e){return iae?String.fromCodePoint:e},tj=function(e){return function(n){return ZN?function(a){for(var t="",o=a[Symbol.iterator](),u=0;u1;if(a){var t=Mm(zc(1)(e)),o=lj(t);return o?ij(n)(t):n}return n},nS=ej(gae),JR=rj(Dae)(nS),Wo=function(e){return oo(JR(e))};var sj=function(e){return function(n){return uj(function(a){return Wo(If(a)(n))})(oR(e)(n))}},aS=function(){var e=ZI(Af)(nt(zs))(Ht(zs));return function(n){return ii(e(n))}}(),Rae=function(e){if(e<=65535)return aS(e);var n=pae(e-65536|0)(1024)+55296|0,a=dae(e-65536|0)(1024)+56320|0;return aS(n)+aS(a)};var vj=aj(Rae),fj=function(e){return function(n){if(e<1)return"";var a=Wf(n);return a instanceof S?vj(a.value0.head)+fj(e-1|0)(a.value0.tail):n}},Ll=tj(fj);var $R={eq:function(e){return function(n){return e===n}}},zR={compare:function(e){return function(n){return mae(e)(n)}},Eq0:function(){return $R}},Am=function(e){return function(n){return tc(Tl(Ll(e)(n)))(n)}};var yae=function(e){return function(n){var a=e,t=!1,o;function u(i,l){var s=Wf(l);if(s instanceof S){var R=i===0;if(R)return t=!0,new S(s.value0.head);a=i-1|0,n=s.value0.tail;return}return t=!0,M.value}for(;!t;)o=u(a,n);return o}},_j=function(e){return function(n){return e<0?M.value:e===0&&n===""?M.value:e===0?new S(nS(n)):nj(yae)(S.create)(M.value)(nS)(e)(n)}},wae={bottom:0,top:1114111,Ord0:function(){return zR}},sc=function(){return{cardinality:1114111+1|0,fromEnum:function(e){return e},toEnum:function(e){if(e>=0&&e<=1114111)return new S(e);if(Je)return M.value;throw new Error("Failed pattern match at Data.String.CodePoints (line 63, column 1 - line 68, column 26): "+[e.constructor.name])},Bounded0:function(){return wae},Enum1:function(){return bae(0)}}}(),bae=fae("enumCodePoint","Data.String.CodePoints",function(){return{succ:Gf(oa(sc))(qn(sc)),pred:Mf(oa(sc))(qn(sc)),Ord0:function(){return zR}}});var Eae=function(){function e(i){this.fn=i}var n={},a=function(i,l){this.head=i,this.tail=l};function t(i){return new a(i,n)}function o(i){return function(l){return new a(i,l)}}function u(i){for(var l=[],s=i;s!==n;)l.push(s.head),s=s.tail;return l}return function(i,l,s){var R=function(y,I){return i(l(o)(s(y)))(I)},d=function(y,I,b){if(I===0)return y;var T=b[I-1];return new e(function(){var L=d(R(T,y),I-1,b);return L})};return function(y){for(var I=l(t)(s(y[y.length-1])),b=d(I,y.length-1,y);b instanceof e;)b=b.fn();return l(u)(b)}}}();var tS=Pg;var Lm=function(e){return e};var Aae=Sf(_n),Lae=pe(ze),Pae=df(tS),In=function(e){return function(n){var a=Aae(Lae(n)(function(t){return new gn(e(t),t)}));return function(t){return T_(t)(a)}}},xae=function(e){var n=KT(e),a=KN(e);return function(t){var o=n(t);return function(u){return function(i){return Pae(function(l){return new gn(l,o(l))})(a(i))}}}},Un=function(e){var n=xae(e);return function(a){var t=n(a);return function(o){var u=t(o);return function(i){return Lm(u(i))}}}};var Nae={info:"info",warning:"warn",error:"error"},Pl=e=>n=>a=>t=>{let o=Nae[e];if(typeof console!="undefined"&&console[o]&&console[o](n,a),typeof window!="undefined"){let u=new Error(n);typeof window.Sentry!="undefined"&&window.Sentry.captureException(u,{extra:a})}return t()},mj=(e,n)=>(n.__sentryFingerprint=e,n);var hj=function(e){return ki(mj)(e)};var vc="error";var VR={parseOrPanic:function(e){return function(n){var a=e.parse(n);if(a instanceof Oe)return a.value0;if(a instanceof Ae)return Pl(vc)("Failed to parse "+e.diagnosticName)({error:a.value0,value:n})(function(t){return e.default});throw new Error("Failed pattern match at Utils.Parse (line 49, column 5 - line 57, column 24): "+[a.constructor.name])}}},aa=function(e){return e.parseOrPanic},jae=aa(VR),Na=function(e){var n=aa(e);return function(a){var t=k(a);return function(o){return n({parse:function(u){return t(S.create)(o.parse(u))},default:M.value,diagnosticName:o.diagnosticName})}}},Oae=Na(VR)(Ur),is=function(e){var n=Ff(e);return function(a){return Oae({parse:n,diagnosticName:a})}},Ke={parseOrPanic:function(e){return jae({default:e.default,diagnosticName:e.diagnosticName,parse:function(){var n=bn(new Ae(""))(Oe.create);return function(a){return n(e.parse(a))}}()})}};var Dj=xn(Pn),gj=Mn(Gn),Rj=On(jn),ls=function(){function e(){}return e.value=new e,e}(),cs=function(){function e(){}return e.value=new e,e}(),Uae={to:function(e){if(e instanceof ye)return ls.value;if(e instanceof ie)return cs.value;throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 20, column 1 - line 20, column 32): "+[e.constructor.name])},from:function(e){if(e instanceof ls)return new ye(je.value);if(e instanceof cs)return new ie(je.value);throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 20, column 1 - line 20, column 32): "+[e.constructor.name])}};var kae=function(e){if(e instanceof ls)return"school";if(e instanceof cs)return"vine";throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 32, column 1 - line 32, column 29): "+[e.constructor.name])},QR=function(){return aa(Ke)({parse:In(kae)(Un(Uae)(Ln(Dj)(Fn(Cn))(Dj)(gj))(Nn(Rj)(Rj))(An(gj))),default:ls.value,diagnosticName:"Sem.Connections.Types.Actor"})}();var yj=xn(Pn),wj=Ln(yj)(Fn(Cn)),bj=Mn(Gn),Ej=An(bj),Ij=On(jn),Tj=Nn(Ij),Bae=ha(Jr),xl=function(){function e(){}return e.value=new e,e}(),Rv=function(){function e(){}return e.value=new e,e}(),ss=function(){function e(){}return e.value=new e,e}(),Hae={to:function(e){if(e instanceof ye)return xl.value;if(e instanceof ie&&e.value0 instanceof ye)return Rv.value;if(e instanceof ie&&e.value0 instanceof ie)return ss.value;throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 24, column 1 - line 24, column 33): "+[e.constructor.name])},from:function(e){if(e instanceof xl)return new ye(je.value);if(e instanceof Rv)return new ie(new ye(je.value));if(e instanceof ss)return new ie(new ie(je.value));throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 24, column 1 - line 24, column 33): "+[e.constructor.name])}};var qae=function(e){if(e instanceof xl)return"pending";if(e instanceof Rv)return"connected";if(e instanceof ss)return"ignored";throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 40, column 1 - line 40, column 30): "+[e.constructor.name])},uS=function(){var e=In(qae)(Un(Hae)(wj(wj(yj)(bj))(Ej))(Tj(Tj(Ij)))(Ej)),n=function(a){return a==="cold"?new S(ss.value):M.value};return aa(Ke)({parse:function(a){return Bae(e(a))(n(a))},default:xl.value,diagnosticName:"Sem.Connections.Types.Status"})}();var Wae=s3(Rt),Sj=ne(en),Jae=oi(Rt),$ae=Ua(Y);var Cj=function(e){return{initiator:QR(e.initiator),status:uS(e.status),introMessage:ke("")(fe(e.introMessage))}},Fj=25,iS=function(e){return Wo(e)>=Fj},Gj=function(e){var n=Wo(e),a=n>0,t=Wae(" ")([function(){return a?Sj(n)+" characters":""}(),Jae(["(",Sj(Fj),function(){return a?"":" character"}()," minimum)"])]),o=function(){var u=iS(e);return u?"text-success":""}();return $ae(o)(t)};var KR=function(){function e(){}return e.value=new e,e}(),Mj=function(){function e(){}return e.value=new e,e}();var Aj=function(){var e=aa(Ke)({parse:function(n){return n instanceof S&&n.value0==="paid"?new S(Mj.value):n instanceof S&&n.value0==="free"?new S(KR.value):n instanceof S&&n.value0==="churned"?new S(KR.value):n instanceof M?new S(KR.value):M.value},default:KR.value,diagnosticName:"Sem.Types.PartnerStatus"});return function(n){return e(fe(n))}}();var Lj=function(e){return{allowedToContact:e.allowedToContact,id:e.id,name:e.name,imageUrl:fe(e.imageUrl),partnerStatus:Aj(e.partnerStatus)}};var zae=ee(Ze),lS=Sa(),Pm=Wa(_e),Pj=B({reflectSymbol:function(){return"id"}}),Vae=ln(on)(Ze),Qae=mr(Or),Kae=k(ae);var Yae=function(){function e(){}return e.value=new e,e}(),Xae=function(){function e(){}return e.value=new e,e}(),Zae=function(){function e(){}return e.value=new e,e}(),cS=function(){function e(){}return e.value=new e,e}(),ete=function(){function e(){}return e.value=new e,e}(),YR=function(){function e(){}return e.value=new e,e}(),xm=function(){function e(){}return e.value=new e,e}(),sS=function(){function e(){}return e.value=new e,e}(),vS=function(){function e(){}return e.value=new e,e}();var xj={show:ba()};var nte=_e,ate=is(lS(B({reflectSymbol:function(){return"avatarUrl"}})(Pm)(B({reflectSymbol:function(){return"bio"}})(Pm)(B({reflectSymbol:function(){return"connection"}})(Wa(lS(B({reflectSymbol:function(){return"initiator"}})(_e)(B({reflectSymbol:function(){return"introMessage"}})(Pm)(B({reflectSymbol:function(){return"status"}})(_e)(tn))))))(B({reflectSymbol:function(){return"firstName"}})(_e)(Pj(nte)(B({reflectSymbol:function(){return"lastName"}})(_e)(B({reflectSymbol:function(){return"school"}})(lS(B({reflectSymbol:function(){return"allowedToContact"}})(Ia)(Pj(XN)(B({reflectSymbol:function(){return"imageUrl"}})(Pm)(B({reflectSymbol:function(){return"name"}})(_e)(B({reflectSymbol:function(){return"partnerStatus"}})(Pm)(tn)))))))(B({reflectSymbol:function(){return"title"}})(_e)(B({reflectSymbol:function(){return"type"}})(_e)(B({reflectSymbol:function(){return"unreadMessageCountFromSemUser"}})(rn)(tn))))))))))));var Nj=function(e){if(e instanceof Yae)return"sheet-view";if(e instanceof Xae)return"school-details";if(e instanceof Zae)return"network-gallery";if(e instanceof cS)return"livestream-details";if(e instanceof ete)return"card-view";throw new Error("Failed pattern match at Sem.Types.User (line 105, column 25 - line 110, column 26): "+[e.constructor.name])},jj=function(e){return zae(ate("SemUser")(e))(function(n){return Vae(Qae(n.type==="Sem::User"))(function(){return new S({school:Lj(n.school),firstName:n.firstName,lastName:n.lastName,avatarUrl:fe(n.avatarUrl),title:n.title,bio:fe(n.bio),connection:Kae(Cj)(fe(n.connection)),unreadMessageCountFromSemUser:n.unreadMessageCountFromSemUser,id:n.id})})})};var Zi=function(){function e(){}return e.value=new e,e}(),Go=function(){function e(n,a,t,o,u,i){this.value0=n,this.value1=a,this.value2=t,this.value3=o,this.value4=u,this.value5=i}return e.create=function(n){return function(a){return function(t){return function(o){return function(u){return function(i){return new e(n,a,t,o,u,i)}}}}}},e}();var el=function(e,n,a,t){if(a instanceof Zi){if(t instanceof Zi)return new Go(1,1,e,n,a,t);if(t instanceof Go)return new Go(1+t.value0|0,1+t.value1|0,e,n,a,t);throw new Error("Failed pattern match at Data.Map.Internal (line 680, column 5 - line 684, column 39): "+[t.constructor.name])}if(a instanceof Go){if(t instanceof Zi)return new Go(1+a.value0|0,1+a.value1|0,e,n,a,t);if(t instanceof Go)return new Go(1+function(){var o=a.value0>t.value0;return o?a.value0:t.value0}()|0,(1+a.value1|0)+t.value1|0,e,n,a,t);throw new Error("Failed pattern match at Data.Map.Internal (line 686, column 5 - line 690, column 68): "+[t.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 678, column 32 - line 690, column 68): "+[a.constructor.name])};var fS=function(e){return function(n){return new Go(1,1,e,n,Zi.value,Zi.value)}},Oj=function(){var e=function(t){if(t instanceof Zi)return 0;if(t instanceof Go)return t.value0;throw new Error("Failed pattern match at Data.Map.Internal (line 735, column 12 - line 737, column 26): "+[t.constructor.name])},n=function(t,o,u,i,l,s,R){return s instanceof Go&&s.value0>e(R)?el(s.value2,s.value3,el(t,o,u,s.value4),el(i,l,s.value5,R)):el(i,l,el(t,o,u,s),R)},a=function(t,o,u,i,l,s,R){return s instanceof Go&&e(l)<=s.value0?el(s.value2,s.value3,el(u,i,l,s.value4),el(t,o,s.value5,R)):el(u,i,l,el(t,o,s,R))};return function(t,o,u,i){if(u instanceof Zi)return i instanceof Zi?fS(t)(o):i instanceof Go&&i.value0>1?n(t,o,u,i.value2,i.value3,i.value4,i.value5):el(t,o,u,i);if(u instanceof Go){if(i instanceof Go){if(i.value0>(u.value0+1|0))return n(t,o,u,i.value2,i.value3,i.value4,i.value5);if(u.value0>(i.value0+1|0))return a(t,o,u.value2,u.value3,u.value4,u.value5,i)}return i instanceof Zi&&u.value0>1?a(t,o,u.value2,u.value3,u.value4,u.value5,i):el(t,o,u,i)}throw new Error("Failed pattern match at Data.Map.Internal (line 695, column 40 - line 716, column 34): "+[u.constructor.name])}}();var vs=function(e){var n=Xe(e);return function(a){var t=function(o){var u=!1,i;function l(s){if(s instanceof Zi)return u=!0,M.value;if(s instanceof Go){var R=n(a)(s.value2);if(R instanceof De){o=s.value4;return}if(R instanceof de){o=s.value5;return}if(R instanceof Ue)return u=!0,new S(s.value3);throw new Error("Failed pattern match at Data.Map.Internal (line 281, column 7 - line 284, column 22): "+[R.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 278, column 8 - line 284, column 22): "+[s.constructor.name])}for(;!u;)i=l(o);return i};return t}};var Uj=function(e){var n=Xe(e);return function(a){return function(t){var o=function(u){if(u instanceof Zi)return fS(a)(t);if(u instanceof Go){var i=n(a)(u.value2);if(i instanceof De)return Oj(u.value2,u.value3,o(u.value4),u.value5);if(i instanceof de)return Oj(u.value2,u.value3,u.value4,o(u.value5));if(i instanceof Ue)return new Go(u.value0,u.value1,a,t,u.value4,u.value5);throw new Error("Failed pattern match at Data.Map.Internal (line 469, column 7 - line 472, column 35): "+[i.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 466, column 8 - line 472, column 35): "+[u.constructor.name])};return o}}};var fs=function(){return Zi.value}(),Nl=function(e){var n=Uj(e);return function(a){return Ut(a)(function(t){return function(o){return n(o.value0)(o.value1)(t)}})(fs)}};var _s=function(e){var n=null;return function(){return e===void 0||(n=e(),e=void 0),n}},ps=function(e){return e()};var Vj=function(){function e(){}return e.value=new e,e}(),Qj=function(){function e(){}return e.value=new e,e}(),Kj=function(){function e(){}return e.value=new e,e}();var gte=function(e){if(e instanceof Vj)return"disabled";if(e instanceof Qj)return"free-consultation";if(e instanceof Kj)return"more-information";throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types.InquiryMode (line 31, column 13 - line 34, column 40): "+[e.constructor.name])};var Rte=function(){return[Vj.value,Qj.value,Kj.value]}(),Yj=Na(Ke)(ae)({parse:In(gte)(Rte),diagnosticName:"InquiryMode"});var yte=function(e,n,a,t,o,u,i){var l=new Date(Date.UTC(e,n,a,t,o,u,i));return e>=0&&e<100&&l.setUTCFullYear(e),l};function Xj(e,n,a,t,o,u,i){return yte(e,n-1,a,t,o,u,i).getTime()}function Zj(e){return function(n){var a=new Date(n);return e(a.getUTCFullYear())(a.getUTCMonth()+1)(a.getUTCDate())(a.getUTCHours())(a.getUTCMinutes())(a.getUTCSeconds())(a.getUTCMilliseconds())}}var wte=Ct(),bte=oa(nr);var Ete=qn(nr);var e4=function(e){return e},ey=function(){var e=function(n){return function(a){return function(t){return function(o){return function(u){return function(i){return function(l){return new ic(uv(n)(wte(bte(a)))(t),new oc(o,u,i,l))}}}}}}};return Zj(e)}();var n4=function(e){return Xj(Uu(e.value0),Ete(ku(e.value0)),rc(e.value0),uc(e.value1),Zc(e.value1),Xc(e.value1),Qi(e.value1))};var a4=function(e){var n=an(e.Semigroup0()),a=function(t){return function(o){return function(u){var i=t,l=o,s=!1,R;function d(y,I,b){if(b<1)return s=!0,y;i=n(y)(I),l=I,u=b-1|0}for(;!s;)R=d(i,l,u);return R}}};return a(Qa(e))};var Ite=ba();var Jf=function(){function e(n,a,t){this.value0=n,this.value1=a,this.value2=t}return e.create=function(n){return function(a){return function(t){return new e(n,a,t)}}},e}(),Nm=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var t4=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),r4=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),hS=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var Q_={defer:function(e){var n=_s(e);return function(a,t,o,u,i){var l=ps(n);return l(a,t,o,u,i)}}};var fc={map:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return n(a,t,o,u,function(s,R){return t(function(d){return i(s,e(R))})})})}}}};var _c={apply:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return e(a,t,o,u,function(s,R){return t(function(d){return n(s,t,o,u,function(y,I){return t(function(b){return i(y,R(I))})})})})})}}},Functor0:function(){return fc}};var pc={bind:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return e(a,t,o,u,function(s,R){return t(function(d){var y=n(R);return y(s,t,o,u,i)})})})}}},Apply0:function(){return _c}},Tte=za(pc);var nl={pure:function(e){return function(n,a,t,o,u){return u(n,e)}},Apply0:function(){return _c}};var Ste={Applicative0:function(){return nl},Bind1:function(){return pc}};var o4={throwError:function(e){return function(n,a,t,o,u){return o(n,e)}},Monad0:function(){return Ste}},Cte=Gr(o4);var $f={alt:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return e(new Jf(a.value0,a.value1,!1),t,o,function(s,R){return t(function(d){return s.value2?u(s,R):n(a,t,o,u,i)})},i)})}}},Functor0:function(){return fc}},Fte=function(e){return function(n,a,t,o,u){var i=e(n);return u(i.value1,i.value0)}};var Gte=function(e){var n=e.Monad0(),a=k(n.Bind1().Apply0().Functor0()),t=J(n.Applicative0()),o=Eo(e);return function(u){return function(i){var l=function(s){var R=!1,d;function y(I){var b=I(Ee);if(b instanceof t4){s=b.value0;return}if(b instanceof r4)return R=!0,a(Wt.create)(b.value0);if(b instanceof hS)return R=!0,t(new Ot(new gn(b.value1,b.value0)));throw new Error("Failed pattern match at Parsing (line 152, column 13 - line 158, column 32): "+[b.constructor.name])}for(;!R;)d=y(s);return d};return o(l)(function(s){return i(u,t4.create,r4.create,function(R,d){return new hS(R,new Ae(d))},function(R,d){return new hS(R,new Oe(d))})})}}};var u4=Fte(function(e){return new gn(e.value1,e)}),DS=function(e){return e.value1},gS=function(e){return e.value0};var Mte={index:0,line:1,column:1},i4=function(e){var n=k(e.Monad0().Bind1().Apply0().Functor0()),a=Gte(e);return function(t){return function(o){var u=new Jf(t,Mte,!1);return n(Io)(a(u)(o))}}},Ate=i4(Ad),l4=function(e){var n=Ate(e);return function(a){return Ite(n(a))}};var Lte=function(e){return function(n){return Cte(new Nm(e,n))}},K_=function(e){return Tte(Lte(e))(u4)};var c4={empty:K_("No alternative"),Alt0:function(){return $f}},zf={Applicative0:function(){return nl},Plus1:function(){return c4}};var qte=ha($f);var Wte=J(nl);var Jte=k(fc);var dc=function(e){return function(n,a,t,o,u){return e(n,a,t,function(i,l){return o(new Jf(i.value0,i.value1,n.value2),l)},u)}};var ny=function(e){return function(n){return qte(n)(Wte(e))}},Vf=function(e){return ny(M.value)(Jte(S.create)(e))};var v4=function(e){return function(n){return function(a){return function(t){try{return n(new RegExp(a,t))}catch(o){return e(o.message)}}}}};var jm=function(e){return function(n){return function(a){return a.replace(e,n)}}};var yS={append:function(e){return function(n){return{global:e.global||n.global,ignoreCase:e.ignoreCase||n.ignoreCase,multiline:e.multiline||n.multiline,dotAll:e.dotAll||n.dotAll,sticky:e.sticky||n.sticky,unicode:e.unicode||n.unicode}}}};var ay={global:!1,ignoreCase:!0,multiline:!1,dotAll:!1,sticky:!1,unicode:!1},Y_={global:!0,ignoreCase:!1,multiline:!1,dotAll:!1,sticky:!1,unicode:!1};var $te=function(e){return function(){return e.global?"g":""}()+(function(){return e.ignoreCase?"i":""}()+(function(){return e.multiline?"m":""}()+(function(){return e.dotAll?"s":""}()+(function(){return e.sticky?"y":""}()+function(){return e.unicode?"u":""}()))))},ds=function(e){return function(n){return v4(Ae.create)(Oe.create)(e)($te(n))}};var d4=qn(sc),Vte=bo(Zt);var Qte=ne(rr);var m4=function(e){return function(n){return function(a){var t=d4(n);if(t===10)return{index:e.index+1|0,line:e.line+1|0,column:1};if(t===13){var o=_j(0)(a);return o instanceof S&&d4(o.value0)===10?{index:e.index+1|0,line:e.line,column:e.column}:{index:e.index+1|0,line:e.line+1|0,column:1}}return t===9?{index:e.index+1|0,line:e.line,column:(e.column+8|0)-Vte(e.column-1|0)(8)|0}:{index:e.index+1|0,line:e.line,column:e.column+1|0}}}},Kte=function(e){return function(n){return function(a){var t=e,o=n,u=!1,i;function l(s,R,d){var y=Wf(R);if(y instanceof M)return u=!0,s;if(y instanceof S){var I=function(){if(hi(y.value0.tail))return m4(s)(y.value0.head)(d);if(Je)return m4(s)(y.value0.head)(y.value0.tail);throw new Error("Failed pattern match at Parsing.String (line 165, column 7 - line 167, column 52): "+[])}();t=I,o=y.value0.tail,a=d;return}throw new Error("Failed pattern match at Parsing.String (line 161, column 36 - line 168, column 38): "+[y.constructor.name])}for(;!u;)i=l(t,o,a);return i}}};var bS=Lg(function(e){return function(n){return function(a){return function(t){return function(o){var u=hi(e.value0);return u?o(new Jf(e.value0,e.value1,!0),Ee):t(e,new Nm("Expected EOF",e.value1))}}}}}),h4=function(e){return Lg(function(n){return function(a){return function(t){return function(o){return function(u){var i=e(n.value0);if(i instanceof Ae)return o(n,new Nm(i.value0,n.value1));if(i instanceof Oe)return u(new Jf(i.value0.remainder,Kte(n.value1)(i.value0.consumed)(i.value0.remainder),!hi(i.value0.consumed)),i.value0.value);throw new Error("Failed pattern match at Parsing.String (line 286, column 7 - line 290, column 121): "+[i.constructor.name])}}}}})};var mc=function(e){return h4(function(n){var a=li(e)(n);return a instanceof S?new Oe({value:e,consumed:e,remainder:a.value0}):new Ae("Expected "+Qte(e))})};var D4=ne(en),Xte=kr(El),Zte=X0(_c);var ere=function(e){return"(line "+(D4(e.line)+(", col "+(D4(e.column)+")")))},nre=function(e){return gS(e)+(" "+ere(DS(e)))},ES=function(e){return function(n){return Xte(nre)(l4(n)(Zte(e)(bS)))}};var ty=oa(Af);var Mo=ne(en);var _re=Fr(uu),pre=_re(Rt);var dre=oI(ra)(Yl);var IS=qn(Mr),mre=ne(lR),hre=qn(nr),b4=qn(fu),Dre=ba(),gre=qn(rv),E4=ne(yP),TS=qn(_i),Rre=bo(Zt),I4=qn(fi),T4=qn(vi),SS=qn(_u),S4=uo(Zt);var X_=function(){function e(){}return e.value=new e,e}(),C4=function(){function e(){}return e.value=new e,e}(),yre=function(){function e(){}return e.value=new e,e}(),jl=function(){function e(){}return e.value=new e,e}(),CS=function(){function e(){}return e.value=new e,e}(),F4=function(){function e(){}return e.value=new e,e}(),G4=function(){function e(){}return e.value=new e,e}(),Ol=function(){function e(){}return e.value=new e,e}(),wre=function(){function e(){}return e.value=new e,e}(),bre=function(){function e(){}return e.value=new e,e}(),Ul=function(){function e(){}return e.value=new e,e}(),Ere=function(){function e(){}return e.value=new e,e}(),FS=function(){function e(){}return e.value=new e,e}(),kl=function(){function e(){}return e.value=new e,e}(),Bl=function(){function e(){}return e.value=new e,e}(),Ire=function(){function e(){}return e.value=new e,e}(),Di=function(){function e(){}return e.value=new e,e}(),Tre=function(){function e(){}return e.value=new e,e}(),GS=function(){function e(){}return e.value=new e,e}(),Sre=function(){function e(){}return e.value=new e,e}(),Cre=function(){function e(){}return e.value=new e,e}(),Fre=function(){function e(){}return e.value=new e,e}(),mt=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var Gre=function(e){if(e instanceof lu)return"Jan";if(e instanceof Au)return"Feb";if(e instanceof cu)return"Mar";if(e instanceof Lu)return"Apr";if(e instanceof Pu)return"May";if(e instanceof su)return"Jun";if(e instanceof vu)return"Jul";if(e instanceof xu)return"Aug";if(e instanceof Nu)return"Sep";if(e instanceof ju)return"Oct";if(e instanceof Ou)return"Nov";if(e instanceof si)return"Dec";throw new Error("Failed pattern match at Data.Formatter.DateTime (line 489, column 19 - line 501, column 22): "+[e.constructor.name])};var wv=function(e){if(e<0)return"-"+wv(-e|0);if(e<10)return"0"+Mo(e);if(Je)return Mo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 194, column 1 - line 194, column 32): "+[e.constructor.name])},M4=function(e){if(e<0)return"-"+M4(-e|0);if(e<10)return"000"+Mo(e);if(e<100)return"00"+Mo(e);if(e<1e3)return"0"+Mo(e);if(Je)return Mo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 207, column 1 - line 207, column 35): "+[e.constructor.name])},A4=function(e){if(e<0)return"-"+A4(-e|0);if(e<10)return"00"+Mo(e);if(e<100)return"0"+Mo(e);if(Je)return Mo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 200, column 1 - line 200, column 32): "+[e.constructor.name])};var Mre=function(e){var n=Mo(dre(e)),a=Wo(n);return a===1?"0"+n:a===2?n:Am(a-2|0)(n)};var Are=function(e){var n=e===0;return n?12:e},Lre=function(e){return function(n){if(n instanceof X_)return M4(IS(Uu(e.value0)));if(n instanceof C4)return Mre(IS(Uu(e.value0)));if(n instanceof yre)return Mo(IS(Uu(e.value0)));if(n instanceof jl)return mre(ku(e.value0));if(n instanceof CS)return Gre(ku(e.value0));if(n instanceof F4)return wv(hre(ku(e.value0)));if(n instanceof G4)return wv(b4(rc(e.value0)));if(n instanceof Ol)return Mo(b4(rc(e.value0)));if(n instanceof wre)return Mo(io(function(t){return t/1e3}(Dre(e4(n4(e))))));if(n instanceof bre)return Mo(gre(om(e.value0)));if(n instanceof Ul)return E4(om(e.value0));if(n instanceof Ere)return Ll(3)(E4(om(e.value0)));if(n instanceof FS)return wv(TS(uc(e.value1)));if(n instanceof kl)return wv(Are(Rre(TS(uc(e.value1)))(12)));if(n instanceof Bl){var a=TS(uc(e.value1))>=12;return a?"PM":"AM"}if(n instanceof Ire)return Mo(I4(Zc(e.value1)));if(n instanceof Di)return wv(I4(Zc(e.value1)));if(n instanceof Tre)return Mo(T4(Xc(e.value1)));if(n instanceof GS)return wv(T4(Xc(e.value1)));if(n instanceof Sre)return A4(SS(Qi(e.value1)));if(n instanceof Cre)return Mo(function(t){return S4(t)(100)}(SS(Qi(e.value1))));if(n instanceof Fre)return wv(function(t){return S4(t)(10)}(SS(Qi(e.value1))));if(n instanceof mt)return n.value0;throw new Error("Failed pattern match at Data.Formatter.DateTime (line 169, column 38 - line 192, column 21): "+[n.constructor.name])}},Ao=function(e){return function(n){return pre(Lre(n))(e)}};function ry(e){return Math.round(e).toString()}var Z_=ee(pc);var Pre=J(nl),xre=h_(zf)(Q_);var Nre=LI(zf)(Q_),oy=a4(Rt),jre=__(nl)(Ud),Ore=k(ae);var L4=kc(ra),Ure=uo(Zt),kre=ne(en),Bre=pe(Ur),Hre=ne(tf),qre=mn(Dn);var Wre=Z_(Vf(dc(mc("+"))))(function(e){return Z_(xre(mc("0")))(function(n){return Z_(Vf(dc(mc(",0"))))(function(a){return Z_(Vf(dc(mc("."))))(function(t){return Z_(jre(t)(function(o){return dc(Nre(mc("0")))}))(function(o){return Z_(Vf(dc(mc("a"))))(function(u){return Pre({sign:St(e),before:oo(n),comma:St(a),after:ke(0)(Ore(oo)(o)),abbreviations:St(u)})})})})})})}),Jre=ES(Wre);var P4=function(e){return function(n){var a=kg(n),t=function(){if(a>0)return L4(io(NI(a)/E3))(0);if(Je)return 0;throw new Error("Failed pattern match at Data.Formatter.Number (line 100, column 5 - line 102, column 22): "+[])}();if(e.abbreviations){var o=Ure(t)(3),u=function(){var $=o<1;return $?n:n/Bg(1e3)(Lt(o))}(),i=function(){if(o===0)return"";if(o===1)return"K";if(o===2)return"M";if(o===3)return"G";if(o===4)return"T";if(o===5)return"P";if(o===6)return"E";if(o===7)return"Z";if(o===8)return"Y";if(Je)return"10e+"+kre(o*3|0);throw new Error("Failed pattern match at Data.Formatter.Number (line 107, column 7 - line 117, column 53): "+[])}();return P4({comma:e.comma,before:e.before,after:e.after,sign:e.sign,abbreviations:!1})(u)+i}var l=(e.before-t|0)-1|0,s=Bg(10)(Lt(L4(0)(e.after))),R=Rf(a*s)/s,d=D_(R),y=R-d,I=Rf(y*s),b=function(){var $=ry(I),z=Wo($),Z=oy("0")(e.after-z|0);return Z+$}(),T=function(){var $=e.after<1;return $?"":"."+(function(){var z=I===0;return z?oy("0")(e.after):""}()+function(){var z=I>0;return z?b:""}())}(),L=function($){return function(z){return function(Z){var oe=$,te=z,ve=!1,ge;function nn(cn,ce,le){var Pe=GI(le);if(Pe instanceof M)return ve=!0,b_(cn);if(Pe instanceof S&&ce<3){oe=tu(Pe.value0.head)(cn),te=ce+1|0,Z=Pe.value0.tail;return}oe=tu(",")(cn),te=0,Z=le}for(;!ve;)ge=nn(oe,te,Z);return ge}}},O=function(){return e.comma?L([])(0)(yd(zd(oy("0")(l)+ry(d)))):oy("0")(l)+ry(d)}();return function(){var $=n<0;if($)return"-";var z=n>0&&e.sign;return z?"+":""}()+(O+T)}},$re=function(e){return function(n){return Bre(Jre(e))($a(P4)(n))}},Qf=function(e){return function(n){return qt(hn(Hre(n)))(qre)($re(e)(n))}};var Vre=We;var x4=function(e){return yf(e)};var al=function(e){var n=x4(e);return n?M.value:new S(Vre(e))};var et=function(e){return function(n){var a=x4(e);return a?n:e}};var zr=function(){return We};var Om=ne(en),Qre=qn(Mr),Kre=qn(nr),Yre=zr(),Xre=eu(),Zre=Hu(ov),MS=uo(Zt),eoe=iu(_n);var noe=function(e){return function(n){if(n.minutes<=0)return e.justNow;if(n.minutes<=1)return"a minute"+e.suffix;if(n.minutes<=45)return Om(n.minutes)+(" minutes"+e.suffix);if(n.hours<=1)return"an hour"+e.suffix;if(n.hours<24)return Om(n.hours)+(" hours"+e.suffix);if(n.days<=1)return"a day"+e.suffix;if(n.days<30)return Om(n.days)+(" days"+e.suffix);if(n.months<=1)return"a month"+e.suffix;if(n.months<12)return Om(n.months)+(" months"+e.suffix);if(n.years<=1)return"a year"+e.suffix;if(Je)return Om(n.years)+(" years"+e.suffix);throw new Error("Failed pattern match at Utils.Format (line 150, column 1 - line 150, column 81): "+[e.constructor.name,n.constructor.name])}},uy=function(e){return noe({suffix:" "+e,justNow:"just now"})},N4=function(){return function(e){var n=function(R){return(Qre(Uu(Lf(R)))*12|0)+Kre(ku(Lf(R)))|0},a=Yre(e),t=et(a.format)(uy("ago")),o=Hg(Xre(Zre(a.to)(a.from))),u=MS(o+30|0)(60),i=MS(u+12|0)(24),l=n(a.to)-n(a.from)|0,s=MS(l+6|0)(12);return t({minutes:o,hours:u,days:i,months:l,years:s})}};var aoe=function(e){return function(n){return function(a){var t=e===1;return t?n:a}}},tl=function(e){return function(n){return function(a){return Qf("0,0")(Lt(e))+(" "+aoe(e)(n)(a))}}};var j4=Qf("0,0");var O4=function(){return Ao(eoe([Ul.value,new mt(", "),jl.value,new mt(" "),Ol.value,new mt(" at "),kl.value,new mt(":"),Di.value,new mt(" "),Bl.value]))}();var AS=()=>document.visibilityState=="visible",U4=(e,n)=>document.elementFromPoint(e,n);var k4=function(){return function(){return xN("br")}};function B4(e){return function(n){return function(){return n.getElementById(e)}}}var toe=k(zn),iy=function(e){var n=toe(fe),a=B4(e);return function(t){return n(a(t))}};var ly=function(e){return function(n){return function(){return n[e]}}},roe=ly("children"),ooe=ly("firstElementChild"),uoe=ly("lastElementChild"),ioe=ly("childElementCount");var Wu=function(){return window};function H4(e,n,a,t){if(typeof window!="undefined"){var o=window[a];if(o!=null&&t instanceof o)return n(t)}for(var u=t;u!=null;){var i=Object.getPrototypeOf(u),l=i.constructor.name;if(l===a)return n(t);if(l==="Object")return e;u=i}return e}var Tn=function(e){return function(n){return H4(M.value,S.create,e,n)}};var q4=We;var cy=We;function W4(e,n,a){var t=Object.prototype.toString.call(a);return t.indexOf("[object HTML")===0&&t.indexOf("Element]")===t.length-8?n(a):e}var LS=We;var J4=function(e){return W4(M.value,S.create,e)};function PS(e){return function(){return e.seeking}}function Um(e){return function(){return e.currentTime}}function xS(e){return function(){return e.volume}}function NS(e){return function(n){return function(){n.volume=e}}}function jS(e){return function(){return e.muted}}function Kf(e){return function(n){return function(){n.muted=e}}}var $4=Tn("HTMLMediaElement");var z4=Tn("HTMLMediaElement");function OS(e){return function(){return e.hash}}function US(e){return function(n){return function(){n.hash=e}}}function kS(e){return function(n){return function(){n.href=e}}}function BS(e){return function(){return e.platform}}function ep(e){return function(){return e.document}}function HS(e){return function(){return e.navigator}}function np(e){return function(){return e.location}}var Doe=k(ze);var goe=k4()(),Roe=__(at)(Ud),V4=ee(er),Q4=pe(zn),yoe=ee(Ze);var K4=Qe("\xA0");var da=$a(bn($n));var woe=function(e){return function(n){if(e)return $n;if(Je)return n(Ee);throw new Error("Failed pattern match at Utils.HTML (line 107, column 1 - line 107, column 65): "+[e.constructor.name,n.constructor.name])}},Y4=function(e){return function(n){return woe(e)(hn(n))}};var X4=function(e){return function(n){if(e)return n(Ee);if(Je)return $n;throw new Error("Failed pattern match at Utils.HTML (line 94, column 1 - line 94, column 61): "+[e.constructor.name,n.constructor.name])}},ya=function(e){return function(n){return X4(e)(hn(n))}};var km=function(e){return Se(MI(goe({}))(Doe(Qe)(qo(` `)(e))))},sy=function(e){return Roe(z4(e.target))(Um)};var Z4=function(e){return function(){return U4(e.x,e.y)}},e8=function(e){return V4(Q4(V4(Wu)(ep))(cy))(iy(e))},vy=function(e){return Q4(e8(e))(function(n){return yoe(n)(J4)})};var tp=rn;var n8=({just:e,nothing:n})=>a=>{try{let t=new Date(a);return isNaN(t.getTime())?n:e(t)}catch{return n}},qS=e=>({year:e.getFullYear(),month:e.getMonth(),day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}),a8=()=>new Date,t8=(()=>{let e=new Date;return typeof window!="undefined"?()=>e:()=>{let n=new Date;return n-e>1e3&&(e=n),e}})();var Yf=(()=>{let e=new Date().toString(),n=(e.match(/\(([\w\s]+)\)$/)||[])[1];return n?/\s/.test(n)?(n.match(/\b(\w)/g)||[]).join(""):n:(n=(e.match(/(\w{3,4})\s\d{4}$/)||[])[1],n||(n=(e.match(/(UTC[\+\-]\d+)/)||[])[1],n)||(n=(e.match(/(GMT[\+\-]\d+)/)||[])[1],n)?n:"")})();function WS(){return Date.now()}var Toe=k(zn);var Ju=Toe(ey)(WS);var r8={liftAff:mn(Dn),MonadEffect0:function(){return Ve}};var mxn=function(){function e(){this.head=null,this.last=null,this.size=0}function n(d,y){this.queue=d,this.value=y,this.next=null,this.prev=null}function a(d){this.draining=!1,this.error=null,this.value=d,this.takes=new e,this.reads=new e,this.puts=new e}var t={};function o(d){try{d()}catch(y){setTimeout(function(){throw y},0)}}function u(d,y){var I=new n(d,y);switch(d.size){case 0:d.head=I;break;case 1:I.prev=d.head,d.head.next=I,d.last=I;break;default:I.prev=d.last,d.last.next=I,d.last=I}return d.size++,I}function i(d){var y;switch(d.size){case 0:return null;case 1:y=d.head,d.head=null;break;case 2:y=d.last,d.head.next=null,d.last=null;break;default:y=d.last,d.last=y.prev,d.last.next=null}return y.prev=null,y.queue=null,d.size--,y.value}function l(d){var y;switch(d.size){case 0:return null;case 1:y=d.head,d.head=null;break;case 2:y=d.head,d.last.prev=null,d.head=d.last,d.last=null;break;default:y=d.head,d.head=y.next,d.head.prev=null}return y.next=null,y.queue=null,d.size--,y.value}function s(d){if(d.queue!==null){if(d.queue.last===d){i(d.queue);return}if(d.queue.head===d){l(d.queue);return}d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),d.queue.size--,d.queue=null,d.value=null,d.next=null,d.prev=null}}function R(d,y){if(!y.draining){var I=y.puts,b=y.takes,T=y.reads,L,O,$,z,Z;for(y.draining=!0;;){if(L=null,O=null,$=null,z=y.value,Z=T.size,y.error!==null){for(z=d.left(y.error);L=l(I);)o(L.cb(z));for(;O=l(T);)o(O(z));for(;$=l(b);)o($(z));break}if(z===t&&(L=l(I))&&(y.value=z=L.value),z!==t){for($=l(b);Z--&&(O=l(T));)o(O(d.right(z)));$!==null&&(y.value=t,o($(d.right(z))))}if(L!==null&&o(L.cb(d.right(void 0))),y.value===t&&I.size===0||y.value!==t&&b.size===0)break}y.draining=!1}}return a.EMPTY=t,a.putLast=u,a.takeLast=i,a.takeHead=l,a.deleteCell=s,a.drainVar=R,a}();var xoe=ee(er);var bv=ee(Ze),Noe=oa(Mr),joe=oa(nr),Ooe=oa(fu),Uoe=oa(_i),koe=oa(fi),Boe=oa(vi),Hoe=oa(_u),qoe=J(na),u8=J(at),i8=za(er),Woe=pe(ae);var Joe=function(){return es(qc(M.value))}();var l8=function(e){return bv(Noe(e.year))(function(n){return bv(joe(e.month+1|0))(function(a){return bv(Ooe(e.day))(function(t){return bv(Uoe(e.hour))(function(o){return bv(koe(e.minute))(function(u){return bv(Boe(e.second))(function(i){return bv(Hoe(e.millisecond))(function(l){return qoe(new ic(uv(n)(a)(t),new oc(o,u,i,l)))})})})})})})})},c8=function(e){var n=G3("Failed to obtain current time. This should never happen.");return bn(n)(u8)(l8(qS(e)))},Xf=i8(c8)(a8),$S=function(e){return es(xoe(ec(Joe))(bn(i8(c8)(t8))(u8)))},du=function(e){return bv(Woe(n8({just:S.create,nothing:M.value})(e))(qS))(l8)};var zS=J(na),Voe=k(ae),s8=ee(Ze);var v8=xn(Pn),f8=Ln(v8)(Fn(Cn)),_8=Mn(Gn),p8=An(_8),d8=On(jn),m8=Nn(d8);var VS=function(){function e(){}return e.value=new e,e}(),QS=function(){function e(){}return e.value=new e,e}(),KS=function(){function e(){}return e.value=new e,e}();var Qoe={to:function(e){if(e instanceof ye)return VS.value;if(e instanceof ie&&e.value0 instanceof ye)return QS.value;if(e instanceof ie&&e.value0 instanceof ie)return KS.value;throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 183, column 1 - line 183, column 41): "+[e.constructor.name])},from:function(e){if(e instanceof VS)return new ye(je.value);if(e instanceof QS)return new ie(new ye(je.value));if(e instanceof KS)return new ie(new ie(je.value));throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 183, column 1 - line 183, column 41): "+[e.constructor.name])}};var Koe=function(e){if(e instanceof VS)return"stuffed";if(e instanceof QS)return"satisfied";if(e instanceof KS)return"hungry";throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 242, column 27 - line 245, column 35): "+[e.constructor.name])};var Yoe=Na(Ke)(ae)({parse:In(Koe)(Un(Qoe)(f8(f8(v8)(_8))(p8))(m8(m8(d8)))(p8)),diagnosticName:"ClientAppetite"}),h8=function(e){return s8(bn(zS(M.value))(function(){var n=Voe(zS);return function(a){return n(Yoe(a))}}())(fe(e.clientAppetite)))(function(n){return s8(Yj(e.inquiryMode))(function(a){return zS({packages:e.packages,pricePerHourCents:e.pricePerHourCents,singleSessionDurationMinutes:e.singleSessionDurationMinutes,singleSessionRefundPeriodLengthDays:e.singleSessionRefundPeriodLengthDays,themes:e.themes,freeConsultationDurationMinutes:fe(e.freeConsultationDurationMinutes),canSubmitConsultInquiry:fe(e.canSubmitConsultInquiry),clientAppetite:n,inquiryMode:a})})})};var D8=ee(Ze),rp=Sa(),YS=Wa(_e),g8=B({reflectSymbol:function(){return"description"}})(_e),_y=B({reflectSymbol:function(){return"id"}})(rn),XS=B({reflectSymbol:function(){return"name"}})(_e),R8=rp(_y(XS(B({reflectSymbol:function(){return"slug"}})(_e)(tn)))),y8=Ca(R8),Xoe=is(rp(B({reflectSymbol:function(){return"advisingConfig"}})(Wa(rp(B({reflectSymbol:function(){return"canSubmitConsultInquiry"}})(Wa(Ia))(B({reflectSymbol:function(){return"clientAppetite"}})(YS)(B({reflectSymbol:function(){return"freeConsultationDurationMinutes"}})(Wa(rn))(B({reflectSymbol:function(){return"inquiryMode"}})(_e)(B({reflectSymbol:function(){return"packages"}})(Ca(rp(B({reflectSymbol:function(){return"activeForSale"}})(Ia)(g8(_y(XS(B({reflectSymbol:function(){return"numMinutes"}})(rn)(B({reflectSymbol:function(){return"packageCategories"}})(y8)(B({reflectSymbol:function(){return"refundPeriodLengthDays"}})(rn)(B({reflectSymbol:function(){return"totalPriceCents"}})(tp)(tn)))))))))))(B({reflectSymbol:function(){return"pricePerHourCents"}})(tp)(B({reflectSymbol:function(){return"singleSessionDurationMinutes"}})(rn)(B({reflectSymbol:function(){return"singleSessionRefundPeriodLengthDays"}})(rn)(B({reflectSymbol:function(){return"themes"}})(Ca(rp(B({reflectSymbol:function(){return"active"}})(Ia)(B({reflectSymbol:function(){return"category"}})(R8)(g8(B({reflectSymbol:function(){return"durationMinutes"}})(rn)(_y(B({reflectSymbol:function(){return"priceCents"}})(tp)(B({reflectSymbol:function(){return"title"}})(_e)(tn))))))))))(tn))))))))))))(B({reflectSymbol:function(){return"entity"}})(rp(B({reflectSymbol:function(){return"bio"}})(_e)(_y(B({reflectSymbol:function(){return"imageUrl"}})(YS)(XS(B({reflectSymbol:function(){return"organizationId"}})(rn)(B({reflectSymbol:function(){return"organizationName"}})(_e)(B({reflectSymbol:function(){return"shortEducation"}})(YS)(B({reflectSymbol:function(){return"tags"}})(y8)(tn))))))))))(tn)))),ZS=J(na),eC=k(ae),Zf=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ms=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Zoe=function(e){return D8(Xoe("ServiceProviderPresenter")(e))(function(n){return D8(bn(ZS(M.value))(function(){var a=eC(ZS);return function(t){return a(h8(t))}}())(fe(n.advisingConfig)))(function(a){return ZS({entity:n.entity,advisingConfig:a})})})},w8=Na(Ke)(ae)({parse:function(e){return e.type==="Sem::User"?eC(Zf.create)(jj(e.presenter)):e.type==="ServiceProviders::Individual"?eC(ms.create)(Zoe(e.presenter)):M.value},diagnosticName:"Livestream Guest Presenter"});var b8=xn(Pn),E8=Ln(b8)(Fn(Cn)),I8=Mn(Gn),T8=An(I8),S8=On(jn),C8=Nn(S8),hs=function(){function e(){}return e.value=new e,e}(),hc=function(){function e(){}return e.value=new e,e}(),Ds=function(){function e(){}return e.value=new e,e}(),py=function(e){if(e instanceof hs)return"ready";if(e instanceof hc)return"live";if(e instanceof Ds)return"closed";throw new Error("Failed pattern match at Livestream.Types.Poll (line 64, column 23 - line 67, column 21): "+[e.constructor.name])};var nC=function(e){return{id:e.id,question:e.question,multiSelect:e.multiSelect,options:e.options,autoDisplayMinutesFromStart:fe(e.autoDisplayMinutesFromStart)}};var eue={to:function(e){if(e instanceof ye)return hs.value;if(e instanceof ie&&e.value0 instanceof ye)return hc.value;if(e instanceof ie&&e.value0 instanceof ie)return Ds.value;throw new Error("Failed pattern match at Livestream.Types.Poll (line 41, column 1 - line 41, column 52): "+[e.constructor.name])},from:function(e){if(e instanceof hs)return new ye(je.value);if(e instanceof hc)return new ie(new ye(je.value));if(e instanceof Ds)return new ie(new ie(je.value));throw new Error("Failed pattern match at Livestream.Types.Poll (line 41, column 1 - line 41, column 52): "+[e.constructor.name])}},Bm=function(){return aa(Ke)({parse:In(py)(Un(eue)(E8(E8(b8)(I8))(T8))(C8(C8(S8)))(T8)),default:hs.value,diagnosticName:"livestream poll status"})}(),F8={eq:function(e){return function(n){return e instanceof hs&&n instanceof hs||e instanceof hc&&n instanceof hc||e instanceof Ds&&n instanceof Ds}}};var G8=function(e){return{fullName:e.fullName,firstName:e.firstName,totalStreams:e.totalStreams,undergrad:{college:fe(e.undergrad.college),major:fe(e.undergrad.major),year:fe(e.undergrad.year)},gradCollege:fe(e.gradCollege),workExperience:fe(e.workExperience),admissionsStory:fe(e.admissionsStory),pictureUrl:fe(e.pictureUrl),allStreamsUrl:fe(e.allStreamsUrl)}};var nue=Mu(),M8=pe(ae),A8=aa(Ke),L8=xn(Pn),P8=Ln(L8)(Fn(Cn)),x8=Mn(Gn),N8=An(x8),j8=On(jn),O8=Nn(j8),U8=vf(),k8=za(Ze),aue=pe(ze),tue=k(ae),rue=ee(Ze),oue=Xe(ra),mu=function(){function e(){}return e.value=new e,e}(),Hr=function(){function e(){}return e.value=new e,e}(),Rr=function(){function e(){}return e.value=new e,e}();var $u=en,uue=ne($u);var Ev=function(e){return nue({livestream_conference_id:uue(e.id),livestream_conference_presenter_name:ke("")(M8(e.presenter)(function(n){return n.fullName})),livestream_conference_uid:e.uid,livestream_conference_title:e.title,livestream_conference_partner_type:ke("")(e.partnerType)})},iue=A8({parse:du,default:nt(A_),diagnosticName:"livestream scheduled start time"}),lue={to:function(e){if(e instanceof ye)return mu.value;if(e instanceof ie&&e.value0 instanceof ye)return Hr.value;if(e instanceof ie&&e.value0 instanceof ie)return Rr.value;throw new Error("Failed pattern match at Livestream.Types.Conference (line 175, column 1 - line 175, column 56): "+[e.constructor.name])},from:function(e){if(e instanceof mu)return new ye(je.value);if(e instanceof Hr)return new ie(new ye(je.value));if(e instanceof Rr)return new ie(new ie(je.value));throw new Error("Failed pattern match at Livestream.Types.Conference (line 175, column 1 - line 175, column 56): "+[e.constructor.name])}},B8=function(){var e=function(n){if(n instanceof mu)return"waiting_room";if(n instanceof Hr)return"on_air";if(n instanceof Rr)return"complete";throw new Error("Failed pattern match at Livestream.Types.Conference (line 188, column 17 - line 191, column 35): "+[n.constructor.name])};return In(e)(Un(lue)(P8(P8(L8)(x8))(N8))(O8(O8(j8)))(N8))}(),H8=function(){return A8({parse:B8,default:mu.value,diagnosticName:"livestream status"})}(),Hm=function(e){return{uid:e.uid,title:e.title,description:e.description,url:e.url,imageUrl:e.imageUrl,duration:e.duration,tailTime:e.tailTime,stats:e.stats,isPrivate:e.isPrivate,legacyRecording:e.legacyRecording,collegeFair:e.collegeFair,id:e.id,school:M8(fe(e.school))(function(n){return{cityState:n.cityState,name:n.name,id:U8(n.id),slug:U8(n.slug)}}),scheduledStartTime:iue(e.scheduledStartTime),onAirTime:k8(du)(fe(e.onAirTime)),streamStatus:H8(e.streamStatus),watchUrl:fe(e.watchUrl),streamingStartTime:k8(du)(fe(e.streamingStartTime)),polls:aue(e.polls)(function(n){return{poll:nC(n.poll),status:Bm(n.status)}}),presenter:tue(G8)(fe(e.presenter)),partnerType:fe(e.partnerType),guestPresenter:rue(fe(e.guestPresenter))(w8),zoomJoinUrl:fe(e.zoomJoinUrl),zoomStartUrl:fe(e.zoomStartUrl)}},Iv={eq:function(e){return function(n){return e instanceof mu&&n instanceof mu||e instanceof Hr&&n instanceof Hr||e instanceof Rr&&n instanceof Rr}}},qm={eq:function(e){return function(n){return e===n}}},q8={compare:function(e){return function(n){return oue(e)(n)}},Eq0:function(){return qm}};var W8=xn(Pn),J8=Mn(Gn),$8=On(jn),gi=function(){function e(){}return e.value=new e,e}(),op=function(){function e(){}return e.value=new e,e}(),cue={to:function(e){if(e instanceof ye)return gi.value;if(e instanceof ie)return op.value;throw new Error("Failed pattern match at Profile.PublishScope (line 24, column 1 - line 24, column 39): "+[e.constructor.name])},from:function(e){if(e instanceof gi)return new ye(je.value);if(e instanceof op)return new ie(je.value);throw new Error("Failed pattern match at Profile.PublishScope (line 24, column 1 - line 24, column 39): "+[e.constructor.name])}},dy={eq:function(e){return function(n){return e instanceof gi&&n instanceof gi||e instanceof op&&n instanceof op}}};var Wm=function(e){if(e instanceof op)return"anonymous-all-schools";if(e instanceof gi)return"all-schools";throw new Error("Failed pattern match at Profile.PublishScope (line 34, column 13 - line 36, column 30): "+[e.constructor.name])},my=function(){return aa(Ke)({parse:In(Wm)(Un(cue)(Ln(W8)(Fn(Cn))(W8)(J8))(Nn($8)($8))(An(J8))),diagnosticName:"Profile.PublishScope",default:op.value})}();var rl=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ol=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ul=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),il=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var aC=function(e){return{id:e.id,title:e.title,requireAnonymousUserFirstName:e.requireAnonymousUserFirstName,requireAnonymousUserLastName:e.requireAnonymousUserLastName,requireAnonymousUserEmail:e.requireAnonymousUserEmail,requireReferredUserFirstName:e.requireReferredUserFirstName,requireReferredUserLastName:e.requireReferredUserLastName,description:fe(e.description)}},e0=function(e){return{author:e.author,text:e.text,isFromHQ:e.isFromHQ,isPublic:e.isPublic,id:e.id,time:du(e.time)}},z8=function(e){return{autoRequestFromLivestreams:e.autoRequestFromLivestreams,fullName:fe(e.fullName),publishScope:my(e.publishScope)}},tC=function(e){return{id:e.id,title:e.title,url:e.url,buttonText:e.buttonText,autoDisplayMinutesFromStart:fe(e.autoDisplayMinutesFromStart)}},Ri="overlay-visibility-test";var V8=xn(Pn),hy=Ln(V8)(Fn(Cn)),Q8=Mn(Gn),Dy=An(Q8),K8=On(jn),gy=Nn(K8),gs=function(){function e(){}return e.value=new e,e}(),Tv=function(){function e(){}return e.value=new e,e}(),n0=function(){function e(){}return e.value=new e,e}(),Sv=function(){function e(){}return e.value=new e,e}(),Cv=function(){function e(){}return e.value=new e,e}(),Y8=function(e){if(e instanceof gs)return"love-this";if(e instanceof Tv)return"helpful";if(e instanceof n0)return"not-helpful";if(e instanceof Sv)return"writing-down";if(e instanceof Cv)return"funny";throw new Error("Failed pattern match at Livestream.Types.Reaction (line 51, column 17 - line 56, column 19): "+[e.constructor.name])},X8=function(e){return{authorTag:e.authorTag,kind:Y8(e.kind)}},sue={to:function(e){if(e instanceof ye)return gs.value;if(e instanceof ie&&e.value0 instanceof ye)return Tv.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ye)return n0.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ye)return Sv.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ie)return Cv.value;throw new Error("Failed pattern match at Livestream.Types.Reaction (line 20, column 1 - line 20, column 56): "+[e.constructor.name])},from:function(e){if(e instanceof gs)return new ye(je.value);if(e instanceof Tv)return new ie(new ye(je.value));if(e instanceof n0)return new ie(new ie(new ye(je.value)));if(e instanceof Sv)return new ie(new ie(new ie(new ye(je.value))));if(e instanceof Cv)return new ie(new ie(new ie(new ie(je.value))));throw new Error("Failed pattern match at Livestream.Types.Reaction (line 20, column 1 - line 20, column 56): "+[e.constructor.name])}},vue=function(){return aa(Ke)({parse:In(Y8)(Un(sue)(hy(hy(hy(hy(V8)(Q8))(Dy))(Dy))(Dy))(gy(gy(gy(gy(K8)))))(Dy)),default:gs.value,diagnosticName:"Livestream Reaction Kind"})}(),Z8=function(e){return{authorTag:e.authorTag,kind:vue(e.kind)}};var e7=typeof CV!="undefined"&&CV.pathInfo||typeof global!="undefined"&&global.CV&&global.CV.pathInfo||(e=>null);function n7(e,n){let a=typeof CV!="undefined"&&CV.apiEndpoint||typeof global!="undefined"&&global.CV&&global.CV.apiEndpoint;return a||console.error("Missing `CV.apiEndpoint` function"),a&&a(e,n)}function a7(e,n,a,t,o){return function(u,i){var l=e.newXHR(),s=e.fixupUrl(o.url,l);if(l.open(o.method||"GET",s,!0,o.username,o.password),o.headers)try{for(var R=0,d;(d=o.headers[R])!=null;R++)l.setRequestHeader(d.field,d.value)}catch(I){u(I)}var y=function(I){return function(){u(new Error(I))}};return l.onerror=y(a),l.ontimeout=y(n),l.onload=function(){i({status:l.status,statusText:l.statusText,headers:l.getAllResponseHeaders().split(`\r `).filter(function(I){return I.length>0}).map(function(I){var b=I.indexOf(":");return t(I.substring(0,b))(I.substring(b+2))}),body:l.response})},l.responseType=o.responseType,l.withCredentials=o.withCredentials,l.timeout=o.timeout,l.send(o.content),function(I,b,T){try{l.abort()}catch(L){return b(L)}return T()}}}var Ry="application/json",t7="application/x-www-form-urlencoded";var r7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),o7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),u7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),i7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),l7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),rC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),yy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),c7=function(e){return e instanceof rC?new S(t7):e instanceof yy?new S(Ry):M.value};var s7=function(){return yy.create}();var v7=ba();var wy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),by=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),up=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),f7=function(e){if(e instanceof wy||e instanceof by)return v7(e.value0);if(e instanceof up)return e.value1;throw new Error("Failed pattern match at Affjax.RequestHeader (line 26, column 1 - line 26, column 33): "+[e.constructor.name])};var oC=function(e){if(e instanceof wy)return"Accept";if(e instanceof by)return"Content-Type";if(e instanceof up)return e.value0;throw new Error("Failed pattern match at Affjax.RequestHeader (line 21, column 1 - line 21, column 32): "+[e.constructor.name])};var _7=mn(Dn),uC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),iC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),lC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ey=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Iy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ty=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),p7=function(e){if(e instanceof uC)return"arraybuffer";if(e instanceof iC)return"blob";if(e instanceof lC)return"document";if(e instanceof Ey||e instanceof Iy)return"text";if(e instanceof Ty)return"";throw new Error("Failed pattern match at Affjax.ResponseFormat (line 44, column 3 - line 50, column 19): "+[e.constructor.name])},d7=function(e){return e instanceof Ey?new S(Ry):M.value},m7=function(){return new Iy(_7)}();var h7=function(){return new Ty(_7)}();var D7=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}();var _ue=ba();var Jm=function(e){return _ue(Vg(e))};function Hl(e){return e}function cC(e){return JSON.stringify(e)}var R7=Hl(Zd);function y7(e,n,a){try{return n(JSON.parse(a))}catch(t){return e(t.message)}}var Sy=function(e){return y7(Ae.create,Oe.create,e)};function w7(e){return e.replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16)})}function b7(e,n,a){try{return n(w7(encodeURIComponent(a)))}catch(t){return e(t)}}function E7(e,n,a){try{return n(w7(encodeURIComponent(a)).replace(/%20/g,"+"))}catch(t){return e(t)}}var Cy=function(){return Ys(b7)(hn(M.value))(S.create)}();var Fy=function(){return Ys(E7)(hn(M.value))(S.create)}();var pue=Zn(_r),I7=k(ae),due=To(ti)(na);var mue=function(e){return e};var T7=function(){var e=function(t){if(t.value1 instanceof M)return Fy(t.value0);if(t.value1 instanceof S)return pue(I7(function(o){return function(u){return o+("="+u)}})(Fy(t.value0)))(Fy(t.value1.value0));throw new Error("Failed pattern match at Data.FormURLEncoded (line 37, column 16 - line 39, column 114): "+[t.constructor.name])},n=I7(lr("&")),a=due(e);return function(t){return n(a(mue(t)))}}();var sC=function(){function e(){}return e.value=new e,e}(),a0=function(){function e(){}return e.value=new e,e}(),vC=function(){function e(){}return e.value=new e,e}(),t0=function(){function e(){}return e.value=new e,e}(),Gy=function(){function e(){}return e.value=new e,e}(),$m=function(){function e(){}return e.value=new e,e}(),fC=function(){function e(){}return e.value=new e,e}(),_C=function(){function e(){}return e.value=new e,e}(),pC=function(){function e(){}return e.value=new e,e}(),dC=function(){function e(){}return e.value=new e,e}(),mC=function(){function e(){}return e.value=new e,e}(),hC=function(){function e(){}return e.value=new e,e}(),DC=function(){function e(){}return e.value=new e,e}(),gC=function(){function e(){}return e.value=new e,e}(),RC=function(){function e(){}return e.value=new e,e}(),My=function(){function e(){}return e.value=new e,e}();var hue=function(e){return e},Due={show:function(e){if(e instanceof sC)return"OPTIONS";if(e instanceof a0)return"GET";if(e instanceof vC)return"HEAD";if(e instanceof t0)return"POST";if(e instanceof Gy)return"PUT";if(e instanceof $m)return"DELETE";if(e instanceof fC)return"TRACE";if(e instanceof _C)return"CONNECT";if(e instanceof pC)return"PROPFIND";if(e instanceof dC)return"PROPPATCH";if(e instanceof mC)return"MKCOL";if(e instanceof hC)return"COPY";if(e instanceof DC)return"MOVE";if(e instanceof gC)return"LOCK";if(e instanceof RC)return"UNLOCK";if(e instanceof My)return"PATCH";throw new Error("Failed pattern match at Data.HTTP.Method (line 43, column 1 - line 59, column 23): "+[e.constructor.name])}};var S7=qt(ne(Due))(hue);var C7={eq:function(e){return function(n){return e instanceof sC&&n instanceof sC||e instanceof a0&&n instanceof a0||e instanceof vC&&n instanceof vC||e instanceof t0&&n instanceof t0||e instanceof Gy&&n instanceof Gy||e instanceof $m&&n instanceof $m||e instanceof fC&&n instanceof fC||e instanceof _C&&n instanceof _C||e instanceof pC&&n instanceof pC||e instanceof dC&&n instanceof dC||e instanceof mC&&n instanceof mC||e instanceof hC&&n instanceof hC||e instanceof DC&&n instanceof DC||e instanceof gC&&n instanceof gC||e instanceof RC&&n instanceof RC||e instanceof My&&n instanceof My}}};var F7=function(e){return iv(function(n){return function(){var t=e(function(o){return n(Ae.create(o))()},function(o){return n(Oe.create(o))()});return function(o){return iv(function(u){return function(){return t(o,function(l){return u(Ae.create(l))()},function(l){return u(Oe.create(l))()}),_T}})}}})};var yC=J($c(ur)),gue=I_(ur),r0=Qc(ur),G7=ha(Yg(nR)(ur)),Rue=e_(Ef(ur)),Ay=k(ae),yue=ai(_n)(lt),wue=we(Bt),bue=za(Ze),Eue=k(ze),Iue=pe(Ga),Tue=wf(Ar),Sue=J(ca);var Ly=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Py=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),xy=function(){function e(){}return e.value=new e,e}(),Ny=function(){function e(){}return e.value=new e,e}(),jy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),M7=function(e){return function(n){var a=function(d){return d===""?yC(R7):qt(function(y){return gue(Kd.create(y))})(yC)(Sy(d))},t=function(){if(n.responseFormat instanceof uC)return r0("ArrayBuffer");if(n.responseFormat instanceof iC)return r0("Blob");if(n.responseFormat instanceof lC)return function(d){return G7(r0("Document")(d))(G7(r0("XMLDocument")(d))(r0("HTMLDocument")(d)))};if(n.responseFormat instanceof Ey)return Rue(function(d){return n.responseFormat.value0(a(d))})(r0("String"));if(n.responseFormat instanceof Iy)return r0("String");if(n.responseFormat instanceof Ty)return hn(n.responseFormat.value0(yC(Ee)));throw new Error("Failed pattern match at Affjax (line 274, column 18 - line 283, column 57): "+[n.responseFormat.constructor.name])}(),o=function(d){if(d instanceof r7)return new Oe(d.value0(lo));if(d instanceof o7)return new Oe(lo(d.value0));if(d instanceof u7)return new Oe(lo(d.value0));if(d instanceof i7)return new Oe(lo(d.value0));if(d instanceof l7)return new Oe(lo(d.value0));if(d instanceof rC)return Ig("Body contains values that cannot be encoded as application/x-www-form-urlencoded")(Ay(lo)(T7(d.value0)));if(d instanceof yy)return new Oe(lo(cC(d.value0)));throw new Error("Failed pattern match at Affjax (line 235, column 20 - line 250, column 69): "+[d.constructor.name])},u=function(d){return function(y){return d instanceof S&&!yue(Y0(wue)(oC)(d.value0))(y)?p_(y)(d.value0):y}},i=function(d){return u(Ay(by.create)(bue(c7)(d)))(u(Ay(wy.create)(d7(n.responseFormat)))(n.headers))},l=function(d){return{method:S7(n.method),url:n.url,headers:Eue(function(y){return{field:oC(y),value:f7(y)}})(i(n.content)),content:d,responseType:p7(n.responseFormat),username:Fa(n.username),password:Fa(n.password),withCredentials:n.withCredentials,timeout:ke(0)(Ay(function(y){return y})(n.timeout))}},s=function(d){return Iue(Tue(F7(a7(e,"AffjaxTimeoutErrorMessageIdent","AffjaxRequestFailedMessageIdent",D7.create,l(d)))))(function(y){if(y instanceof Oe){var I=Jm(t(y.value0.body));if(I instanceof Ae)return new Ae(new Py(V3(I.value0),y.value0));if(I instanceof Oe)return new Oe({headers:y.value0.headers,status:y.value0.status,statusText:y.value0.statusText,body:I.value0});throw new Error("Failed pattern match at Affjax (line 209, column 9 - line 211, column 52): "+[I.constructor.name])}if(y instanceof Ae)return new Ae(function(){var b=R_(y.value0),T=b==="AffjaxTimeoutErrorMessageIdent";if(T)return xy.value;var L=b==="AffjaxRequestFailedMessageIdent";return L?Ny.value:new jy(y.value0)}());throw new Error("Failed pattern match at Affjax (line 207, column 144 - line 219, column 28): "+[y.constructor.name])})};if(n.content instanceof M)return s(Fa(M.value));if(n.content instanceof S){var R=o(n.content.value0);if(R instanceof Oe)return s(Fa(new S(R.value0)));if(R instanceof Ae)return Sue(new Ae(new Ly(R.value0)));throw new Error("Failed pattern match at Affjax (line 199, column 7 - line 203, column 48): "+[R.constructor.name])}throw new Error("Failed pattern match at Affjax (line 195, column 3 - line 203, column 48): "+[n.content.constructor.name])}};var ip=function(){return{method:new Ae(a0.value),url:"/",headers:[],content:M.value,username:M.value,password:M.value,withCredentials:!1,responseFormat:h7,timeout:M.value}}();var A7={eq:function(e){return function(n){return e===n}}};var wC={newXHR:function(){return new XMLHttpRequest},fixupUrl:function(e){return e||"/"}};var L7=M7(wC);function P7(e){return Buffer.from(e).toString("base64")}function x7(e,n,a){let t;try{t=n(btoa(a))}catch(o){t=e(o)}return t}var bC=typeof btoa=="function";function N7(e){let n=32768,a=[];for(let t=0;t{let e=null,n=0,a=()=>{if(!yc||!yc.key)return yc||console.error("Pusher config is missing in global context"),new Que;let t={auth:{headers:{"X-CSRF-Token":yc.authToken}},authEndpoint:yc.authPath,cluster:yc.cluster};return yc.dev&&Object.assign(t,{wsHost:yc.dev.wsHost,wsPort:yc.dev.wsPort,enabledTransports:["ws"],forceTLS:!1,disableStats:!0}),new X7.default(yc.key,t)};return{acquireConnection:()=>(e||(e=a(),n=0),n++,e),releaseConnection:()=>{--n<=0&&(e.disconnect(),e=null)}}})(),Z7=e=>{let n=zue().subscribe(e.channel);return n.bind(e.event,e.handler),()=>{n.unbind(e.event,e.handler),Vue()}};function Que(){typeof document!="undefined"&&(document.mockPusher=this),this.localObject={},this.channels=[],this.disconnect=function(){document.mockPusher=null},this.subscribe=function(e){let n=this.channels.find(t=>t.name===e);if(n)return n;let a=new Kue(e);return this.channels.push(a),a},this.channelNames=function(){return this.channels.map(e=>e.name)}}function Kue(e){this.name=e,this.handlers={},this.triggered=[],this.disconnect=()=>{},this.bind=function(n,a){this.handlers[n]=a},this.unbind=function(n,a){this.handlers[n]===a&&(this.handlers[n]=null)},this.trigger=function(n,a){this.triggered.push({eventName:n,eventData:a})}}var Yue=oi(Rt),Xue=jo(at)(Gu),Zue=pe(QN);var eie={show:function(e){return e}},nie=ne(eie),ky=_e,aie=function(e){var n=is(e);return function(a){return function(t){return function(o){var u=Yue(["Pusher event ",t," over channel ",nie(a)]),i=function(l){return Xue(n(u)(l))(o)()};return function(){return Z7({channel:a,event:t,handler:i})}}}}},yi=function(e){var n=aie(e);return function(a){var t=a.Monad0(),o=ee(t.Bind1()),u=Wn(a),i=J(t.Applicative0());return function(l){return function(s){return function(R){return o(u(n(l)(s)(R)))(function(d){return i(u(d))})}}}}},tie=yi(Cf),By=function(e){var n=tie(e);return function(a){return function(t){return Zue(n(a)(t))(hn(Ee))}}};var eO=Rc(Dc),hu=ql(eO),yr=ee(_a),Vm=ql(Rc(eO)),nO=J(ca),rie=pe(ae),Qm=Sa(),aO=B({reflectSymbol:function(){return"pollId"}})(rn),oie=B({reflectSymbol:function(){return"status"}})(_e)(tn),uie=yt(Ca(Qm(aO(oie)))),tO=k(ze),rO=k(Ga),iie=B({reflectSymbol:function(){return"id"}}),lie=iie(rn),oO=Qm(B({reflectSymbol:function(){return"author"}})(Qm(B({reflectSymbol:function(){return"cvid"}})(_e)(B({reflectSymbol:function(){return"username"}})(_e)(tn))))(lie(B({reflectSymbol:function(){return"isFromHQ"}})(Ia)(B({reflectSymbol:function(){return"isPublic"}})(Ia)(B({reflectSymbol:function(){return"text"}})(_e)(B({reflectSymbol:function(){return"time"}})(_e)(tn))))))),cie=cp(oO);var sie=Wa(_e);var vie=cp(Ca(Qm(aO(B({reflectSymbol:function(){return"responses"}})(Qm(B({reflectSymbol:function(){return"answered"}})(rn)(B({reflectSymbol:function(){return"optionCounts"}})(Ca(rn))(B({reflectSymbol:function(){return"seen"}})(rn)(B({reflectSymbol:function(){return"skipped"}})(rn)(tn))))))(tn))))),fie=cp(sie),_ie=cp(Ca(oO));var TC=Vm("livestreams_polls_status_path")(function(e){return function(n){return function(a){return yr(e({id:n.id,status:py(a)}))(gc(function(t){return nO(ke([])(rie(uie(t))(tO(function(o){return{pollId:o.pollId,status:Bm(o.status)}}))))}))}}});var SC=Vm("livestreams_polls_answer_path")(function(e){return function(n){return function(a){return yr(e({id:n.id,options:a}))(Yt)}}}),uO=hu("livestreams_conferences_status_on_air_path")(function(e){return function(n){return yr(e({conference_id:n}))(Yt)}}),iO=hu("livestreams_conferences_status_complete_path")(function(e){return function(n){return yr(e({conference_id:n}))(Yt)}}),lO=hu("livestreams_cta_save_referral_path")(function(e){return function(n){return yr(e(n))(Yt)}}),cO=hu("livestreams_polls_report_shown_path")(function(e){return function(n){return yr(e({id:n.id}))(Yt)}}),sO=Vm("livestreams_client_window_visibility_path")(function(e){return function(n){return function(a){return yr(e({stream_id:n,visible:a.visible}))(Yt)}}}),vO=Vm("livestreams_recording_watch_event_path")(function(e){return function(n){return function(a){return yr(e({conference_id:n,current_time_minutes:a}))(Yt)}}}),fO=hu("livestreams_questions_visibility_path")(function(e){return function(n){return yr(e({question_id:n.questionId,is_public:n.isPublic}))(Yt)}}),_O=hu("livestreams_questions_post_path")(function(e){return function(n){return yr(e({conference_id:n.conferenceId,question_text:n.text,hq_broadcast:n.hqBroadcast}))(gc(function(a){return rO(e0)(cie("Livestream question")(a))}))}}),pO=hu("livestreams_cta_open_path")(function(e){return function(n){return yr(e({is_referral:!0,from_conference_id:n.fromConference,id:n.ctaId}))(Yt)}}),dO=hu("livestreams_cta_open_path")(function(e){return function(n){return yr(e({is_general:!0,from_conference_id:n.fromConference,id:n.ctaId}))(Yt)}}),mO=hu("livestreams_cta_open_path")(function(e){return function(n){return yr(e({is_featured_service_providers:!0,from_conference_id:n.fromConference,id:n.ctaId}))(Yt)}}),hO=hu("livestreams_cta_open_path")(function(e){return function(n){return yr(e({is_event:!0,from_conference_id:n.fromConference,cta_conference_id:n.cta}))(Yt)}}),Hy=hu("livestreams_register_path")(function(e){return function(n){return yr(e({from_conference_id:Fa(n.fromConference),register_for_conference_id:n.registerForConference,utm_cv_source:n.utmSource}))(Yt)}});var DO=Vm("livestreams_reactions_launch_path")(function(e){return function(n){return function(a){return yr(e({conference_id:n,reaction:X8(a)}))(Yt)}}}),gO=hu("livestreams_polls_responses_path")(function(e){return function(n){return yr(e({conference_id:n}))(gc(vie("livestream poll responses")))}}),RO=hu("livestreams_conferences_download_url_path")(function(e){return function(n){return yr(e({conference_id:n}))(gc(function(a){return rO(fe)(fie("Livestream download URL")(a))}))}}),qy=ql(Dc)("livestreams_dismiss_network_settings_modal_path")(function(e){return yr(e({}))(Yt)});var yO=hu("livestreams_conferences_ban_user_path")(function(e){return function(n){return yr(e({conference_id:n.conferenceId,user_cvid:n.userCvid}))(Yt)}}),Wy=hu("livestreams_questions_all_path")(function(e){return function(n){return yr(e({conference_id:n}))(gc(function(a){return yr(_ie("Livestream questions")(a))(function(t){return nO(tO(e0)(t))})}))}});var GC=function(){function e(){}return e.value=new e,e}(),MC=function(){function e(){}return e.value=new e,e}(),AC=function(){function e(){}return e.value=new e,e}(),LC=function(){function e(){}return e.value=new e,e}(),PC=function(){function e(){}return e.value=new e,e}(),xC=function(){function e(){}return e.value=new e,e}(),NC=function(){function e(){}return e.value=new e,e}(),jC=function(){function e(){}return e.value=new e,e}(),OC=function(){function e(){}return e.value=new e,e}(),UC=function(){function e(){}return e.value=new e,e}(),kC=function(){function e(){}return e.value=new e,e}(),BC=function(){function e(){}return e.value=new e,e}(),HC=function(){function e(){}return e.value=new e,e}(),qC=function(){function e(){}return e.value=new e,e}(),xt=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),WC=function(){function e(){}return e.value=new e,e}();var $y=function(e){if(e instanceof xt&&e.value0 instanceof GC)return"architecture";if(e instanceof xt&&e.value0 instanceof AC)return"chemistry";if(e instanceof xt&&e.value0 instanceof MC)return"business";if(e instanceof xt&&e.value0 instanceof LC)return"computer-science";if(e instanceof xt&&e.value0 instanceof PC)return"criminal-justice-and-corrections";if(e instanceof xt&&e.value0 instanceof xC)return"economics";if(e instanceof xt&&e.value0 instanceof NC)return"engineering";if(e instanceof xt&&e.value0 instanceof jC)return"english";if(e instanceof xt&&e.value0 instanceof OC)return"film";if(e instanceof xt&&e.value0 instanceof UC)return"finance";if(e instanceof xt&&e.value0 instanceof kC)return"history";if(e instanceof xt&&e.value0 instanceof BC)return"political-science";if(e instanceof xt&&e.value0 instanceof HC)return"pre-med";if(e instanceof xt&&e.value0 instanceof qC)return"psychology";if(e instanceof WC)return"overall";throw new Error("Failed pattern match at Hub.Ranking (line 98, column 8 - line 113, column 23): "+[e.constructor.name])};var zy=function(){function e(){}return e.value=new e,e}(),Die=function(){function e(){}return e.value=new e,e}(),gie=function(){function e(){}return e.value=new e,e}();var wO=function(e){if(e instanceof zy)return M.value;if(e instanceof gie)return new S("open");if(e instanceof Die)return new S("on");throw new Error("Failed pattern match at Hub.Types.WhatificatorPhase (line 26, column 13 - line 29, column 22): "+[e.constructor.name])};var TO=Ct();var u0=function(e){return function(n){var a=function(){var u=Vc("?")(n);return u?"&":"?"}(),t=TO(Cy(e.value)),o=TO(Cy(e.key));return n+(a+(o+("="+t)))}};var Hie=function(){function e(){}return e.value=new e,e}(),qie=function(){function e(){}return e.value=new e,e}(),Wie=function(){function e(){}return e.value=new e,e}(),Jie=function(){function e(){}return e.value=new e,e}(),$ie=function(){function e(){}return e.value=new e,e}(),zie=function(){function e(){}return e.value=new e,e}(),Vie=function(){function e(){}return e.value=new e,e}(),Qie=function(){function e(){}return e.value=new e,e}(),Kie=function(){function e(){}return e.value=new e,e}(),Yie=function(){function e(){}return e.value=new e,e}(),Xie=function(){function e(){}return e.value=new e,e}(),Zie=function(){function e(){}return e.value=new e,e}(),ele=function(){function e(){}return e.value=new e,e}(),nle=function(){function e(){}return e.value=new e,e}(),ale=function(){function e(){}return e.value=new e,e}(),tle=function(){function e(){}return e.value=new e,e}(),rle=function(){function e(){}return e.value=new e,e}(),ole=function(){function e(){}return e.value=new e,e}(),ule=function(){function e(){}return e.value=new e,e}(),ile=function(){function e(){}return e.value=new e,e}(),lle=function(){function e(){}return e.value=new e,e}(),cle=function(){function e(){}return e.value=new e,e}(),sle=function(){function e(){}return e.value=new e,e}(),vle=function(){function e(){}return e.value=new e,e}(),fle=function(){function e(){}return e.value=new e,e}(),_le=function(){function e(){}return e.value=new e,e}(),ple=function(){function e(){}return e.value=new e,e}(),dle=function(){function e(){}return e.value=new e,e}(),mle=function(){function e(){}return e.value=new e,e}(),hle=function(){function e(){}return e.value=new e,e}(),Dle=function(){function e(){}return e.value=new e,e}(),gle=function(){function e(){}return e.value=new e,e}(),Rle=function(){function e(){}return e.value=new e,e}(),yle=function(){function e(){}return e.value=new e,e}(),wle=function(){function e(){}return e.value=new e,e}(),ble=function(){function e(){}return e.value=new e,e}(),Ele=function(){function e(){}return e.value=new e,e}(),Ile=function(){function e(){}return e.value=new e,e}(),Tle=function(){function e(){}return e.value=new e,e}(),Sle=function(){function e(){}return e.value=new e,e}(),Cle=function(){function e(){}return e.value=new e,e}(),Fle=function(){function e(){}return e.value=new e,e}(),Gle=function(){function e(){}return e.value=new e,e}(),Mle=function(){function e(){}return e.value=new e,e}(),Ale=function(){function e(){}return e.value=new e,e}(),Lle=function(){function e(){}return e.value=new e,e}(),Ple=function(){function e(){}return e.value=new e,e}(),xle=function(){function e(){}return e.value=new e,e}(),Nle=function(){function e(){}return e.value=new e,e}(),jle=function(){function e(){}return e.value=new e,e}(),Ole=function(){function e(){}return e.value=new e,e}(),Ule=function(){function e(){}return e.value=new e,e}(),kle=function(){function e(){}return e.value=new e,e}(),Ble=function(){function e(){}return e.value=new e,e}(),Hle=function(){function e(){}return e.value=new e,e}(),qle=function(){function e(){}return e.value=new e,e}();var sa=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Du=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var SO=function(e){if(e instanceof sa&&e.value0 instanceof Hie)return"AcceptanceRate";if(e instanceof sa&&e.value0 instanceof qie)return"AcceptanceRateMen";if(e instanceof sa&&e.value0 instanceof Wie)return"AcceptanceRateWomen";if(e instanceof sa&&e.value0 instanceof Jie)return"Address";if(e instanceof sa&&e.value0 instanceof $ie)return"AdmissionChances";if(e instanceof sa&&e.value0 instanceof zie)return"AdmissionDifficulty";if(e instanceof sa&&e.value0 instanceof Vie)return"AdmissionsNotificationDate";if(e instanceof sa&&e.value0 instanceof Qie)return"AdmissionsWebsite";if(e instanceof sa&&e.value0 instanceof Kie)return"AppDeadlineIsRolling";if(e instanceof sa&&e.value0 instanceof Yie)return"ApplicationEffort";if(e instanceof sa&&e.value0 instanceof Xie)return"ApplicationRound";if(e instanceof sa&&e.value0 instanceof Zie)return"BasketballConference";if(e instanceof sa&&e.value0 instanceof ele)return"CampusSetting";if(e instanceof sa&&e.value0 instanceof nle)return"City";if(e instanceof sa&&e.value0 instanceof ale)return"ClassRank";if(e instanceof sa&&e.value0 instanceof tle)return"CoEdSingleSex";if(e instanceof sa&&e.value0 instanceof rle)return"CollegeType";if(e instanceof sa&&e.value0 instanceof ole)return"CommuterCollege";if(e instanceof sa&&e.value0 instanceof ule)return"Diversity";if(e instanceof sa&&e.value0 instanceof ile)return"DropoutRate";if(e instanceof sa&&e.value0 instanceof cle)return"FinancialAidWebsite";if(e instanceof sa&&e.value0 instanceof sle)return"FirstYearEnrollment";if(e instanceof sa&&e.value0 instanceof vle)return"FootballConference";if(e instanceof sa&&e.value0 instanceof fle)return"FourYearGraduationRate";if(e instanceof sa&&e.value0 instanceof _le)return"HasDivisionOneBasketball";if(e instanceof sa&&e.value0 instanceof ple)return"HasDivisionOneFootball";if(e instanceof sa&&e.value0 instanceof dle)return"HasMedicalSchool";if(e instanceof sa&&e.value0 instanceof mle)return"HasStudyAbroad";if(e instanceof sa&&e.value0 instanceof hle)return"HBCU";if(e instanceof sa&&e.value0 instanceof Dle)return"InListStatus";if(e instanceof sa&&e.value0 instanceof gle)return"MainWebsite";if(e instanceof sa&&e.value0 instanceof lle)return"Majors";if(e instanceof sa&&e.value0 instanceof Rle)return"Name";if(e instanceof sa&&e.value0 instanceof yle)return"NetCostEstimate";if(e instanceof sa&&e.value0 instanceof wle)return"Notes";if(e instanceof sa&&e.value0 instanceof ble)return"PercentInternationalStudents";if(e instanceof sa&&e.value0 instanceof Ele)return"Phone";if(e instanceof sa&&e.value0 instanceof Ile)return"Photo";if(e instanceof sa&&e.value0 instanceof Tle)return"Prestige";if(e instanceof sa&&e.value0 instanceof Sle)return"ProgramLength";if(e instanceof sa&&e.value0 instanceof Cle)return"PublicPrivate";if(e instanceof sa&&e.value0 instanceof Fle)return"RecommendationLetters";if(e instanceof sa&&e.value0 instanceof Gle)return"Region";if(e instanceof sa&&e.value0 instanceof Mle)return"ReligiousAffiliation";if(e instanceof sa&&e.value0 instanceof Ale)return"SatActDeadline";if(e instanceof sa&&e.value0 instanceof Lle)return"SatActTestPolicy";if(e instanceof sa&&e.value0 instanceof Ple)return"SatSubjectTestDeadline";if(e instanceof sa&&e.value0 instanceof xle)return"SixYearGraduationRate";if(e instanceof sa&&e.value0 instanceof Nle)return"State";if(e instanceof sa&&e.value0 instanceof jle)return"StudentFacultyRatio";if(e instanceof sa&&e.value0 instanceof Ole)return"SubmissionDeadline";if(e instanceof sa&&e.value0 instanceof Ule)return"TOEFLPolicy";if(e instanceof sa&&e.value0 instanceof kle)return"TotalUndergrads";if(e instanceof sa&&e.value0 instanceof Ble)return"TuitionInState";if(e instanceof sa&&e.value0 instanceof Hle)return"TuitionOutOfState";if(e instanceof sa&&e.value0 instanceof qle)return"YieldRate";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof GC)return"RankingArchitecture";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof MC)return"RankingBusiness";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof AC)return"RankingChemistry";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof LC)return"RankingComputerScience";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof PC)return"RankingCriminalJusticeAndCorrections";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof xC)return"RankingEconomics";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof NC)return"RankingEngineering";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof jC)return"RankingEnglish";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof OC)return"RankingFilm";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof UC)return"RankingFinance";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof kC)return"RankingHistory";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof BC)return"RankingPoliticalScience";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof HC)return"RankingPreMed";if(e instanceof Du&&e.value0 instanceof xt&&e.value0.value0 instanceof qC)return"RankingPsychology";if(e instanceof Du&&e.value0 instanceof WC)return"OverallRanking";throw new Error("Failed pattern match at Hub.Facet (line 309, column 6 - line 380, column 43): "+[e.constructor.name])};var Wle=function(){function e(){}return e.value=new e,e}(),Jle=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),$le=function(){function e(){}return e.value=new e,e}();var CO=function(e){if(e instanceof Wle)return"filters";if(e instanceof Jle)return"filter:"+SO(e.value0);if(e instanceof $le)return"rankings";throw new Error("Failed pattern match at Hub.Visuals.MobileOverlay (line 40, column 26 - line 43, column 39): "+[e.constructor.name])};function FO(e,n){typeof CV!="undefined"&&CV.tracking&&CV.tracking.event(e,n)}var zle=Mu();var Rs=function(e){var n=Wn(e);return function(a){return function(t){return n(function(){return FO(a,t)})}}},ys=function(e){var n=Rs(e);return function(){return function(a){return function(t){return n(a)(zle(t))}}}};var Km=function(){function e(){}return e.value=new e,e}(),Fv=function(){function e(){}return e.value=new e,e}(),Ym=function(){function e(){}return e.value=new e,e}(),Ece=function(){function e(){}return e.value=new e,e}(),PO=function(e){if(e instanceof Km)return"modal-sm";if(e instanceof Fv)return"";if(e instanceof Ym)return"modal-lg";if(e instanceof Ece)return"modal-xl";throw new Error("Failed pattern match at Bootstrap.Modal.Size (line 14, column 13 - line 18, column 27): "+[e.constructor.name])};Ja();var Ice=["selectionchange","visibilitychange","keyup","keydown"],Tce=["resize","mouseup","mousemove","hashchange","popstate","message"],$C=class extends ka.Component{constructor(){super();let n=a=>{let t={};return a.forEach(o=>{t[o]=u=>{let i=this.props[o];i&&i(u)}}),t};this.handleWindow=n(Tce),this.handleDocument=n(Ice)}componentDidMount(){let n=(a,t)=>Object.keys(t).forEach(o=>a.addEventListener(o,t[o]));n(window,this.handleWindow),n(document,this.handleDocument)}componentWillUnmount(){let n=(a,t)=>Object.keys(t).forEach(o=>a.removeEventListener(o,t[o]));n(window,this.handleWindow),n(document,this.handleDocument)}render(){return null}};var Sce=fv(),ws=function(){return function(){return Sce($C)}};var Qy=function(){return We};var i0=Te($e),zC=zr(),xO=Te(he),Cce=Jn(Y)()(),Fce=ir(Bo),Gce=cr(at),NO=Qy(),Mce=ws()(),Ace=ir(dv),Wl=function(){return function(e){var n=i0("modal-backdrop fade show")($n),a=zC(e),t=al(a.footer),o=al(a.header),u=et(a.size)(Fv.value),i=lr(" ")([function(){var s=et(a.scrollable)(!0);return s?"modal-dialog-scrollable":""}(),function(){var s=et(a.centered)(!0);return s?"modal-dialog-centered":""}(),PO(u),et(a.dialogClass)("")]),l=i0("modal fade show d-block")(i0("modal-dialog "+i)(xO("modal-content "+et(a.contentClass)(""))([da(o)(i0("modal-header "+et(a.headerClass)(""))),i0("modal-body "+et(a.bodyClass)(""))(a.body),da(t)(i0("modal-footer "+et(a.footerClass)("")))])));return Se([l,n])}},VC=Wl(),Jl=function(){return function(e){var n=zC(e),a=xO("d-flex w-100 justify-content-between align-items-center")([i0("mr-4")(et(n.title)($n)),Cce("btn btn-link text-body large mr-n3 py-0 fe fe-x t--close "+et(n.dismissButtonClass)(""))({type:"button",onClick:Fce(n.onDismiss)})("")]),t=function(o){return Gce(o.key==="Escape")(n.onDismiss)};return Se([function(){var o=et(n.bodyScrollable)(!1);return VC(o?function(){var u=zC(NO(n));return{body:u.body,bodyClass:u.bodyClass,centered:u.centered,contentClass:u.contentClass,dialogClass:u.dialogClass,footer:u.footer,footerClass:u.footerClass,headerClass:u.headerClass,scrollable:u.scrollable,size:u.size,header:a}}():NO({bodyClass:n.bodyClass,bodyScrollable:n.bodyScrollable,centered:n.centered,contentClass:n.contentClass,dialogClass:n.dialogClass,dismissButtonClass:n.dismissButtonClass,footer:n.footer,footerClass:n.footerClass,headerClass:n.headerClass,onDismiss:n.onDismiss,scrollable:n.scrollable,size:n.size,title:n.title,body:Se([a,n.body])}))}(),Mce({keyup:Ace(t)})])}},vp=function(e){var n=bm(e);return function(a){return function(t){return VC({bodyClass:a,body:Se(n(t))})}}};var Xm="";function jO(e){var n=e.split(` `);return n.reduce(function(a,t){var o=xce(t)||jce(t)||kce(t)||Wce(t)||Hce(t);return o&&a.push(o),a},[])}var Lce=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Pce=/\((\S*)(?::(\d+))(?::(\d+))\)/;function xce(e){var n=Lce.exec(e);if(!n)return null;var a=n[2]&&n[2].indexOf("native")===0,t=n[2]&&n[2].indexOf("eval")===0,o=Pce.exec(n[2]);return t&&o!=null&&(n[2]=o[1],n[3]=o[2],n[4]=o[3]),{file:a?null:n[2],methodName:n[1]||Xm,arguments:a?[n[2]]:[],lineNumber:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}var Nce=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function jce(e){var n=Nce.exec(e);return n?{file:n[2],methodName:n[1]||Xm,arguments:[],lineNumber:+n[3],column:n[4]?+n[4]:null}:null}var Oce=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Uce=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function kce(e){var n=Oce.exec(e);if(!n)return null;var a=n[3]&&n[3].indexOf(" > eval")>-1,t=Uce.exec(n[3]);return a&&t!=null&&(n[3]=t[1],n[4]=t[2],n[5]=null),{file:n[3],methodName:n[1]||Xm,arguments:n[2]?n[2].split(","):[],lineNumber:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}var Bce=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Hce(e){var n=Bce.exec(e);return n?{file:n[3],methodName:n[1]||Xm,arguments:[],lineNumber:+n[4],column:n[5]?+n[5]:null}:null}var qce=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Wce(e){var n=qce.exec(e);return n?{file:n[2],methodName:n[1]||Xm,arguments:[],lineNumber:+n[3],column:n[4]?+n[4]:null}:null}function OO({skipFrames:e,prefix:n}){let a=new Error().stack,o=jO(a)[e],u=UO(o.file.replace(/^(http(s?):\/\/)?[^\/]+/,"")),i=UO(o.methodName);return`${n}_${u}_${i}_${o.lineNumber}_${o.column}`}var UO=e=>e.replace(/[^\d\w]+/g,"_").replace(/(^_|_$)/g,"");var Jce=J(wn),$ce=mn(Dn),Ky=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),zce={map:function(e){return function(n){return new Ky(function(a){return n.value0(function(t){return a(e(t))})})}}},Vce=k(zce);var kO=function(e){return SN(OO(e))},Zm=function(e){return new Ky(function(n){return n(e)})},QC=function(e){return function(n){return new Ky(function(a){return _v(e)(n)(a)})}},BO=function(e){return function(n){return _v(e)(function(a){return{init:Jce(Ee),update:hn(wd),view:hn(hn(n.value0($ce)))}})(Ee)}};var eh=function(e){var n=kO({skipFrames:3,prefix:"WithHookCurried"});return function(a){return BO(n)(Vce(u_(a))(e))}},HO=function(e){var n=kO({skipFrames:3,prefix:"HooksComponent"});return BO(n)(e)},nh=function(){return function(e){return function(n){return new Ky(function(a){return e.value0(function(t){var o=n(t);return o.value0(a)})})}}};var qO=J(wn),Kce=mn(Dn);var Yce=function(e){return function(n){return function(a){return QC(e)(function(t){return n({init:qO(a),update:function(o){return function(u){return qO(u)}},view:i_(t)})})}}},bs=function(e){return Yce("UseState")(Kce)(e)};var Xce=zr(),Zce=mn(Dn),ese=z_(he)()(),nse=Jn($e)()(),ase=so()();var Yy="login",KC=function(){return function(e){var n=Xce(e),a=function(){var u=et(n.auth0ActiveTab)(Yy);return u}(),t=ke({path:"",token:""})(Oy("login_path")),o=function(u){return function(i){return bn(Zce)(function(l){return u0(function(s){return{key:u,value:s}}(l))})(al(i))}};return ese("d-inline")({method:"post",action:o("origin")(n.origin)(o("login_hint")(n.auth0LoginHint)(u0({key:"screen_hint",value:a})(t.path))),target:function(){var u=et(n.openInNewTab)(!1);return u?"_blank":""}()})([nse(et(n.className)("btn btn-primary px-4"))({type:"submit",disabled:et(n.disabled)(!1)})(et(n.content)(Qe(et(n.text)("Log in")))),ase("")({type:"hidden",name:"authenticity_token",value:t.token})])}};var YC=typeof CV!="undefined"&&CV.assetsRoot||typeof global!="undefined"&&global.CV&&global.CV.assetsRoot||"/";var WO=Wc(No(lt)),tse=mn(Dn),rse=Yi()(),XC=function(e){var n=li(e);return function(a){return St(n(a))}},ose=function(e){if(WO(XC("http://"))(WO(XC("https://"))(XC("//")))(e))return e;if(Je)return YC+ke(e)(li("/")(e));throw new Error("Failed pattern match at Utils.AppAssets (line 47, column 1 - line 47, column 30): "+[e.constructor.name])},gu=function(){return function(){return function(e){return function(n){var a=function(o){return tse},t=a(n)(YI("src")(ose(n.src))(n));return rse(e)(t)}}}};var l0=function(e){return function(n){return function(){return n[e]}}},use=l0("URL"),ise=l0("documentURI"),lse=l0("origin"),cse=l0("compatMode"),sse=l0("characterSet"),vse=l0("contentType");var fse=l0("documentElement");var Xy=function(e){return function(n){return n[e]}},pse=Xy("namespaceURI"),dse=Xy("prefix"),mse=Xy("localName"),hse=Xy("tagName");function ZC(e){return function(){return e.id}}function eF(e){return function(){return e.classList}}function nF(e){return function(){var n=e.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}}var aF=We;var JO=Tn("Element");var $l=function(e){return function(n){return function(){return n[e]}}};var gse=$l("baseURI"),Rse=$l("ownerDocument"),$O=$l("parentNode"),yse=$l("parentElement");var wse=$l("childNodes"),bse=$l("firstChild"),Ese=$l("lastChild"),Ise=$l("previousSibling"),Tse=$l("nextSibling"),Sse=$l("nodeValue");var Cse=$l("textContent");function tF(e){return function(n){return function(){return e.isEqualNode(n)}}}var Mse=k(zn);var zO=function(){var e=Mse(fe);return function(n){return e($O(n))}}();var Ase=JSON.stringify;var s0=function(){function e(){}return e.value=new e,e}(),VO=function(){function e(){}return e.value=new e,e}(),QO=function(){function e(){}return e.value=new e,e}(),ah=function(){function e(){}return e.value=new e,e}(),KO=function(){function e(){}return e.value=new e,e}(),YO=function(){function e(){}return e.value=new e,e}(),XO=function(){function e(){}return e.value=new e,e}();var Zy=function(e){if(e instanceof s0)return M.value;if(e instanceof VO)return new S("for-you");if(e instanceof QO)return new S("chancing");if(e instanceof ah)return new S("finances");if(e instanceof KO)return new S("majors");if(e instanceof YO)return new S("admission-requirements");if(e instanceof XO)return new S("essay-prompts");throw new Error("Failed pattern match at SchoolDetails.Types (line 96, column 14 - line 103, column 39): "+[e.constructor.name])};var ZO=za(er);var eU=function(e){return ZO(kS(e))(ZO(np)(Wu))};var rF=pe(ae);var oF=Fu(_n)(Rt),Nse=ba(),jse=Zu(ae),uF=function(e){return"/schools/"+e.slug},iF="/schools/hub";var nU=function(e){return function(n){var a=rF(wO(n.whatificator))(function(l){return"simulator="+l}),t=rF(n.mobileOverlay)(function(l){return"overlay="+CO(l)}),o=lr("&")(Uo([t,a])),u=rF(n.focusedSchool)(function(l){return oF("/")(Uo([new S(Nse(l.slug)),Zy(l.tab)]))}),i=function(){return e.knownSeoState instanceof S&&n.seoView?oF("/")(Uo([new S(uF({slug:e.knownSeoState.value0.slug})),u])):oF("/")(Uo([new S(iF),new S(bn(e.basePath)($y)(n.ranking)),jse(u)("d"),u]))}();return i+(function(){var l=o==="";return l?"":"?"}()+o)}};var aU="/profile";var Use=ba();var lF=function(e){return function(n){return lr("/")(Uo([new S("/schools"),new S(Use(n)),Zy(e)]))}},tU=aU,rU="/livestreams/upcoming";var kse=function(e){return nU({basePath:"all",knownSeoState:M.value})({ranking:M.value,focusedSchool:e,mobileOverlay:M.value,seoView:!1,whatificator:zy.value})};var ew=function(e){return function(n){return kse(new S({tab:e,slug:n}))}};var oU=function(){function e(){}return e.value=new e,e}(),uU=function(){function e(){}return e.value=new e,e}(),nw=function(){function e(){}return e.value=new e,e}(),aw=function(){function e(){}return e.value=new e,e}(),iU=function(){function e(){}return e.value=new e,e}(),lU=function(){function e(){}return e.value=new e,e}(),cU=function(){function e(){}return e.value=new e,e}(),sU=function(e){if(e instanceof oU)return"avatar-xxs";if(e instanceof uU)return"avatar-xs";if(e instanceof nw)return"avatar-sm";if(e instanceof aw)return"";if(e instanceof iU)return"avatar-lg";if(e instanceof lU)return"avatar-xl";if(e instanceof cU)return"avatar-xxl";throw new Error("Failed pattern match at Dashkit.Avatar.Size (line 16, column 13 - line 23, column 34): "+[e.constructor.name])};var vU={show:ba()};var Bse=Number.MAX_SAFE_INTEGER;var sF=function(e){if(e.first==="")return e.last;if(e.last==="")return e.first;if(Je)return e.first+(" "+e.last);throw new Error("Failed pattern match at Profile.Types.Name (line 11, column 1 - line 11, column 27): "+[e.constructor.name])};var rve=we(dy);var _U={show:function(e){return e}};var pU=function(e){return rve(e.publishScope)(gi.value)};var fp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),vF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),fF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),_F=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),pF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var mF=ne(vU);var ove=ne(xj),uve=ne(YN),ive=ne(_U),lve="/messages";var hF=function(e){return lve+("/"+function(){if(e instanceof fp)return"admission-officer/"+ove(e.value0);if(e instanceof vF)return"school/"+uve(e.value0);if(e instanceof fF)return"student/"+ive(e.value0);if(e instanceof _F)return"high-school/"+mF(e.value0);if(e instanceof pF)return"service-provider/"+mF(e.value0);if(e instanceof dF)return"parent/"+mF(e.value0);throw new Error("Failed pattern match at DirectMessages.Urls (line 28, column 48 - line 34, column 39): "+[e.constructor.name])}())};var cve=ql(Rc(Dc)),sve=ee(_a),dU=pe(ae),mU=ba(),vve=Et(Ga);var hU=cve("network_connections_invite_school_path")(function(e){return function(n){return sve(e({school_id:n.schoolId,message:Fa(n.introMessage),sem_user_id:Fa(dU(n.semUserId)(mU)),livestream_id:Fa(dU(n.livestreamId)(mU))}))(Yt)}}),DU=function(e){return function(n){return vve(hU({schoolId:e,introMessage:M.value,semUserId:M.value,livestreamId:new S(n)}))}};var gU=function(e){return function(n){return function(a){return hU({schoolId:e,introMessage:new S(a.introMessage),semUserId:new S(n),livestreamId:M.value})}}};Ja();function po(){return po=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(a[o]=e[o]);return a}function Gv(e,n){if(e==null)return{};var a=DF(e,n),t,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(a[t]=e[t]))}return a}Ja();Ja();function v0(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function yU(e,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:1;EU+=1;var a=EU;function t(o){if(o===0)IU(a),e();else{var u=wU(function(){t(o-1)});yF.set(a,u)}}return t(n),a}wi.cancel=function(e){var n=yF.get(e);return IU(n),bU(n)};function d0(e,n){return e?e.contains(n):!1}function oh(e){return e instanceof HTMLElement?e:di.findDOMNode(e)}var GU=Tu(FU());Ja();function IF(e,n){typeof e=="function"?e(n):Zr(e)==="object"&&e&&"current"in e&&(e.current=n)}function _w(){for(var e=arguments.length,n=new Array(e),a=0;ae.length)&&(n=e.length);for(var a=0,t=new Array(n);a1&&arguments[1]!==void 0?arguments[1]:2;n();var u=wi(function(){o<=1?t({isCanceled:function(){return u!==e.current}}):a(t,o-1)});e.current=u}return Ft(function(){return function(){n()}},[]),[a,n]};Ja();var yve=wc()?dm:Ft,Rw=yve;var HU=[ll,Es,Lv,gw],PF=!1,qU=!0;function yw(e){return e===Lv||e===gw}var WU=function(e,n){var a=Is(LF),t=Mt(a,2),o=t[0],u=t[1],i=BU(),l=Mt(i,2),s=l[0],R=l[1];function d(){u(ll,!0)}return Rw(function(){if(o!==LF&&o!==gw){var y=HU.indexOf(o),I=HU[y+1],b=n(o);b===PF?u(I,!0):s(function(T){function L(){T.isCanceled()||u(I,!0)}b===!0?L():Promise.resolve(b).then(L)})}},[e,o]),Ft(function(){return function(){R()}},[]),[d,o]};Ja();Ja();var JU=function(e){var n=ut(),a=ut(e);a.current=e;var t=pm(function(i){a.current(i)},[]);function o(i){i&&(i.removeEventListener(MF,t),i.removeEventListener(GF,t))}function u(i){n.current&&n.current!==i&&o(n.current),i&&i!==n.current&&(i.addEventListener(MF,t),i.addEventListener(GF,t),n.current=i)}return Ft(function(){return function(){o(n.current)}},[]),[u,o]};function xF(e,n,a,t){var o=t.motionEnter,u=o===void 0?!0:o,i=t.motionAppear,l=i===void 0?!0:i,s=t.motionLeave,R=s===void 0?!0:s,d=t.motionDeadline,y=t.motionLeaveImmediately,I=t.onAppearPrepare,b=t.onEnterPrepare,T=t.onLeavePrepare,L=t.onAppearStart,O=t.onEnterStart,$=t.onLeaveStart,z=t.onAppearActive,Z=t.onEnterActive,oe=t.onLeaveActive,te=t.onAppearEnd,ve=t.onEnterEnd,ge=t.onLeaveEnd,nn=t.onVisibleChanged,cn=Is(),ce=Mt(cn,2),le=ce[0],Pe=ce[1],Ce=Is(Av),Be=Mt(Ce,2),Ye=Be[0],Sn=Be[1],ta=Is(null),kn=Mt(ta,2),Bn=kn[0],Qn=kn[1],Hn=ut(!1),st=ut(null);function Ne(){return a()}var ua=ut(!1);function Ta(rt){var q=Ne();if(!(rt&&!rt.deadline&&rt.target!==q)){var K=ua.current,j;Ye===uh&&K?j=te==null?void 0:te(q,rt):Ye===ih&&K?j=ve==null?void 0:ve(q,rt):Ye===lh&&K&&(j=ge==null?void 0:ge(q,rt)),Ye!==Av&&K&&j!==!1&&(Sn(Av,!0),Qn(null,!0))}}var En=JU(Ta),dn=Mt(En,1),He=dn[0],ea=mm(function(){var rt,q,K;switch(Ye){case uh:return rt={},Jo(rt,ll,I),Jo(rt,Es,L),Jo(rt,Lv,z),rt;case ih:return q={},Jo(q,ll,b),Jo(q,Es,O),Jo(q,Lv,Z),q;case lh:return K={},Jo(K,ll,T),Jo(K,Es,$),Jo(K,Lv,oe),K;default:return{}}},[Ye]),va=WU(Ye,function(rt){if(rt===ll){var q=ea[ll];return q?q(Ne()):PF}if(sn in ea){var K;Qn(((K=ea[sn])===null||K===void 0?void 0:K.call(ea,Ne(),null))||null)}return sn===Lv&&(He(Ne()),d>0&&(clearTimeout(st.current),st.current=setTimeout(function(){Ta({deadline:!0})},d))),qU}),La=Mt(va,2),vt=La[0],sn=La[1],ia=yw(sn);ua.current=ia,Rw(function(){Pe(n);var rt=Hn.current;if(Hn.current=!0,!!e){var q;!rt&&n&&l&&(q=uh),rt&&n&&u&&(q=ih),(rt&&!n&&R||!rt&&y&&!n&&R)&&(q=lh),q&&(Sn(q),vt())}},[n]),Ft(function(){(Ye===uh&&!l||Ye===ih&&!u||Ye===lh&&!R)&&Sn(Av)},[l,u,R]),Ft(function(){return function(){Hn.current=!1,clearTimeout(st.current)}},[]);var wt=ut(!1);Ft(function(){le&&(wt.current=!0),le!==void 0&&Ye===Av&&((wt.current||le)&&(nn==null||nn(le)),wt.current=!0)},[le,Ye]);var Da=Bn;return ea[ll]&&sn===Es&&(Da=Ea({transition:"none"},Da)),[Ye,sn,Da,le!=null?le:n]}Ja();var wve=function(e){_0(a,e);var n=p0(a);function a(){return v0(this,a),n.apply(this,arguments)}return f0(a,[{key:"render",value:function(){return this.props.children}}]),a}(Nf),$U=wve;function bve(e){var n=e;Zr(e)==="object"&&(n=e.transitionSupport);function a(o){return!!(o.motionName&&n)}var t=pi(function(o,u){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,R=s===void 0?!0:s,d=o.forceRender,y=o.children,I=o.motionName,b=o.leavedClassName,T=o.eventProps,L=a(o),O=ut(),$=ut();function z(){try{return O.current instanceof HTMLElement?O.current:oh($.current)}catch{return null}}var Z=xF(L,l,z,o),oe=Mt(Z,4),te=oe[0],ve=oe[1],ge=oe[2],nn=oe[3],cn=ut(nn);nn&&(cn.current=!0);var ce=pm(function(ta){O.current=ta,IF(u,ta)},[u]),le,Pe=Ea(Ea({},T),{},{visible:l});if(!y)le=null;else if(te===Av||!a(o))nn?le=y(Ea({},Pe),ce):!R&&cn.current?le=y(Ea(Ea({},Pe),{},{className:b}),ce):d?le=y(Ea(Ea({},Pe),{},{style:{display:"none"}}),ce):le=null;else{var Ce,Be;ve===ll?Be="prepare":yw(ve)?Be="active":ve===Es&&(Be="start"),le=y(Ea(Ea({},Pe),{},{className:(0,zU.default)(AF(I,te),(Ce={},Jo(Ce,AF(I,"".concat(te,"-").concat(Be)),Be),Jo(Ce,I,typeof I=="string"),Ce)),style:ge}),ce)}if(mT(le)&&pw(le)){var Ye=le,Sn=Ye.ref;Sn||(le=_m(le,{ref:ce}))}return ct($U,{ref:$},le)});return t.displayName="CSSMotion",t}var ww=bve(Dw);Ja();var bw="add",Ew="keep",Iw="remove",Tw="removed";function Eve(e){var n;return e&&Zr(e)==="object"&&"key"in e?n=e:n={key:e},Ea(Ea({},n),{},{key:String(n.key)})}function Sw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Eve)}function VU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=[],t=0,o=n.length,u=Sw(e),i=Sw(n);u.forEach(function(R){for(var d=!1,y=t;y1});return s.forEach(function(R){a=a.filter(function(d){var y=d.key,I=d.status;return y!==R||I!==Iw}),a.forEach(function(d){d.key===R&&(d.status=Ew)})}),a}var Ive=["component","children","onVisibleChanged","onAllRemoved"],Tve=["status"],Sve=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Cve(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ww,a=function(t){_0(u,t);var o=p0(u);function u(){var i;v0(this,u);for(var l=arguments.length,s=new Array(l),R=0;R=0&&a.left>=0&&a.bottom>a.top&&a.right>a.left?a:null}function Xve(e,n,a,t){var o=ja.clone(e),u={width:n.width,height:n.height};return t.adjustX&&o.left=a.left&&o.left+u.width>a.right&&(u.width-=o.left+u.width-a.right),t.adjustX&&o.left+u.width>a.right&&(o.left=Math.max(a.right-u.width,a.left)),t.adjustY&&o.top=a.top&&o.top+u.height>a.bottom&&(u.height-=o.top+u.height-a.bottom),t.adjustY&&o.top+u.height>a.bottom&&(o.top=Math.max(a.bottom-u.height,a.top)),ja.mix(o,u)}function zF(e){var n,a,t;if(!ja.isWindow(e)&&e.nodeType!==9)n=ja.offset(e),a=ja.outerWidth(e),t=ja.outerHeight(e);else{var o=ja.getWindow(e);n={left:ja.getWindowScrollLeft(o),top:ja.getWindowScrollTop(o)},a=ja.viewportWidth(o),t=ja.viewportHeight(o)}return n.width=a,n.height=t,n}function _6(e,n){var a=n.charAt(0),t=n.charAt(1),o=e.width,u=e.height,i=e.left,l=e.top;return a==="c"?l+=u/2:a==="b"&&(l+=u),t==="c"?i+=o/2:t==="r"&&(i+=o),{left:i,top:l}}function Lw(e,n,a,t,o){var u=_6(n,a[1]),i=_6(e,a[0]),l=[i.left-u.left,i.top-u.top];return{left:Math.round(e.left-l[0]+t[0]-o[0]),top:Math.round(e.top-l[1]+t[1]-o[1])}}function p6(e,n,a){return e.lefta.right}function d6(e,n,a){return e.topa.bottom}function Zve(e,n,a){return e.left>a.right||e.left+n.widtha.bottom||e.top+n.height=a.right||t.top>=a.bottom}function Nw(e,n,a){var t=a.target||n,o=zF(t),u=!nfe(t,a.overflow&&a.overflow.alwaysByViewport);return D6(e,o,a,u)}Nw.__getOffsetParent=JF;Nw.__getVisibleRectForElement=$F;function g6(e,n,a){var t,o,u=ja.getDocument(e),i=u.defaultView||u.parentWindow,l=ja.getWindowScrollLeft(i),s=ja.getWindowScrollTop(i),R=ja.viewportWidth(i),d=ja.viewportHeight(i);"pageX"in n?t=n.pageX:t=l+n.clientX,"pageY"in n?o=n.pageY:o=s+n.clientY;var y={left:t,top:o,width:0,height:0},I=t>=0&&t<=l+R&&o>=0&&o<=s+d,b=[a.points[0],"cc"];return D6(e,y,XU(XU({},a),{},{points:b}),I)}var tB=Tu($k());var zk=function(){if(typeof Map!="undefined")return Map;function e(n,a){var t=-1;return n.some(function(o,u){return o[0]===a?(t=u,!0):!1}),t}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var t=e(this.__entries__,a),o=this.__entries__[t];return o&&o[1]},n.prototype.set=function(a,t){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=t:this.__entries__.push([a,t])},n.prototype.delete=function(a){var t=this.__entries__,o=e(t,a);~o&&t.splice(o,1)},n.prototype.has=function(a){return!!~e(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,t){t===void 0&&(t=null);for(var o=0,u=this.__entries__;o0},e.prototype.connect_=function(){!_G||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Cme?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!_G||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var a=n.propertyName,t=a===void 0?"":a,o=Sme.some(function(u){return!!~t.indexOf(u)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Vk=function(e,n){for(var a=0,t=Object.keys(n);a0},e}(),Yk=typeof WeakMap!="undefined"?new WeakMap:new zk,Xk=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=Fme.getInstance(),t=new Ume(n,a,this);Yk.set(this,t)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Xk.prototype[e]=function(){var n;return(n=Yk.get(this))[e].apply(n,arguments)}});var kme=function(){return typeof Hw.ResizeObserver!="undefined"?Hw.ResizeObserver:Xk}(),Zk=kme;function eB(e,n){return e===n?!0:!e||!n?!1:"pageX"in n&&"pageY"in n?e.pageX===n.pageX&&e.pageY===n.pageY:"clientX"in n&&"clientY"in n?e.clientX===n.clientX&&e.clientY===n.clientY:!1}function nB(e,n){e!==document.activeElement&&d0(n,e)&&typeof e.focus=="function"&&e.focus()}function pG(e,n){var a=null,t=null;function o(i){var l=Mt(i,1),s=l[0].target;if(!!document.documentElement.contains(s)){var R=s.getBoundingClientRect(),d=R.width,y=R.height,I=Math.floor(d),b=Math.floor(y);(a!==I||t!==b)&&Promise.resolve().then(function(){n({width:I,height:b})}),a=I,t=b}}var u=new Zk(o);return e&&u.observe(e),function(){u.disconnect()}}Ja();var aB=function(e,n){var a=ka.useRef(!1),t=ka.useRef(null);function o(){window.clearTimeout(t.current)}function u(i){if(o(),!a.current||i===!0){if(e()===!1)return;a.current=!0,t.current=window.setTimeout(function(){a.current=!1},n)}else t.current=window.setTimeout(function(){a.current=!1,u()},n)}return[u,function(){a.current=!1,o()}]};function rB(e){return typeof e!="function"?null:e()}function oB(e){return Zr(e)!=="object"||!e?null:e}var Bme=function(n,a){var t=n.children,o=n.disabled,u=n.target,i=n.align,l=n.onAlign,s=n.monitorWindowResize,R=n.monitorBufferTime,d=R===void 0?0:R,y=ka.useRef({}),I=ka.useRef(),b=ka.Children.only(t),T=ka.useRef({});T.current.disabled=o,T.current.target=u,T.current.align=i,T.current.onAlign=l;var L=aB(function(){var ve=T.current,ge=ve.disabled,nn=ve.target,cn=ve.align,ce=ve.onAlign;if(!ge&&nn){var le=I.current,Pe,Ce=rB(nn),Be=oB(nn);y.current.element=Ce,y.current.point=Be,y.current.align=cn;var Ye=document,Sn=Ye.activeElement;return Ce&&KU(Ce)?Pe=Nw(le,Ce,cn):Be&&(Pe=g6(le,Be,cn)),nB(Sn,le),ce&&Pe&&ce(le,Pe),!0}return!1},d),O=Mt(L,2),$=O[0],z=O[1],Z=ka.useRef({cancel:function(){}}),oe=ka.useRef({cancel:function(){}});ka.useEffect(function(){var ve=rB(u),ge=oB(u);I.current!==oe.current.element&&(oe.current.cancel(),oe.current.element=I.current,oe.current.cancel=pG(I.current,$)),(y.current.element!==ve||!eB(y.current.point,ge)||!(0,tB.default)(y.current.align,i))&&($(),Z.current.element!==ve&&(Z.current.cancel(),Z.current.element=ve,Z.current.cancel=pG(ve,$)))}),ka.useEffect(function(){o?z():$()},[o]);var te=ka.useRef(null);return ka.useEffect(function(){s?te.current||(te.current=Mv(window,"resize",$)):te.current&&(te.current.remove(),te.current=null)},[s]),ka.useEffect(function(){return function(){Z.current.cancel(),oe.current.cancel(),te.current&&te.current.remove(),z()}},[]),ka.useImperativeHandle(a,function(){return{forceAlign:function(){return $(!0)}}}),ka.isValidElement(b)&&(b=ka.cloneElement(b,{ref:_w(b.ref,I)})),b},uB=ka.forwardRef(Bme);uB.displayName="Align";var iB=uB;var lB=iB;Ja();var Hme=wc()?dm:Ft,dG=Hme;var _B=Tu(m0());function bh(){"use strict";bh=function(){return e};var e={},n=Object.prototype,a=n.hasOwnProperty,t=typeof Symbol=="function"?Symbol:{},o=t.iterator||"@@iterator",u=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function l(ce,le,Pe){return Object.defineProperty(ce,le,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),ce[le]}try{l({},"")}catch{l=function(Pe,Ce,Be){return Pe[Ce]=Be}}function s(ce,le,Pe,Ce){var Be=le&&le.prototype instanceof y?le:y,Ye=Object.create(Be.prototype),Sn=new ge(Ce||[]);return Ye._invoke=function(ta,kn,Bn){var Qn="suspendedStart";return function(Hn,st){if(Qn==="executing")throw new Error("Generator is already running");if(Qn==="completed"){if(Hn==="throw")throw st;return cn()}for(Bn.method=Hn,Bn.arg=st;;){var Ne=Bn.delegate;if(Ne){var ua=oe(Ne,Bn);if(ua){if(ua===d)continue;return ua}}if(Bn.method==="next")Bn.sent=Bn._sent=Bn.arg;else if(Bn.method==="throw"){if(Qn==="suspendedStart")throw Qn="completed",Bn.arg;Bn.dispatchException(Bn.arg)}else Bn.method==="return"&&Bn.abrupt("return",Bn.arg);Qn="executing";var Ta=R(ta,kn,Bn);if(Ta.type==="normal"){if(Qn=Bn.done?"completed":"suspendedYield",Ta.arg===d)continue;return{value:Ta.arg,done:Bn.done}}Ta.type==="throw"&&(Qn="completed",Bn.method="throw",Bn.arg=Ta.arg)}}}(ce,Pe,Sn),Ye}function R(ce,le,Pe){try{return{type:"normal",arg:ce.call(le,Pe)}}catch(Ce){return{type:"throw",arg:Ce}}}e.wrap=s;var d={};function y(){}function I(){}function b(){}var T={};l(T,o,function(){return this});var L=Object.getPrototypeOf,O=L&&L(L(nn([])));O&&O!==n&&a.call(O,o)&&(T=O);var $=b.prototype=y.prototype=Object.create(T);function z(ce){["next","throw","return"].forEach(function(le){l(ce,le,function(Pe){return this._invoke(le,Pe)})})}function Z(ce,le){function Pe(Be,Ye,Sn,ta){var kn=R(ce[Be],ce,Ye);if(kn.type!=="throw"){var Bn=kn.arg,Qn=Bn.value;return Qn&&Zr(Qn)=="object"&&a.call(Qn,"__await")?le.resolve(Qn.__await).then(function(Hn){Pe("next",Hn,Sn,ta)},function(Hn){Pe("throw",Hn,Sn,ta)}):le.resolve(Qn).then(function(Hn){Bn.value=Hn,Sn(Bn)},function(Hn){return Pe("throw",Hn,Sn,ta)})}ta(kn.arg)}var Ce;this._invoke=function(Be,Ye){function Sn(){return new le(function(ta,kn){Pe(Be,Ye,ta,kn)})}return Ce=Ce?Ce.then(Sn,Sn):Sn()}}function oe(ce,le){var Pe=ce.iterator[le.method];if(Pe===void 0){if(le.delegate=null,le.method==="throw"){if(ce.iterator.return&&(le.method="return",le.arg=void 0,oe(ce,le),le.method==="throw"))return d;le.method="throw",le.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var Ce=R(Pe,ce.iterator,le.arg);if(Ce.type==="throw")return le.method="throw",le.arg=Ce.arg,le.delegate=null,d;var Be=Ce.arg;return Be?Be.done?(le[ce.resultName]=Be.value,le.next=ce.nextLoc,le.method!=="return"&&(le.method="next",le.arg=void 0),le.delegate=null,d):Be:(le.method="throw",le.arg=new TypeError("iterator result is not an object"),le.delegate=null,d)}function te(ce){var le={tryLoc:ce[0]};1 in ce&&(le.catchLoc=ce[1]),2 in ce&&(le.finallyLoc=ce[2],le.afterLoc=ce[3]),this.tryEntries.push(le)}function ve(ce){var le=ce.completion||{};le.type="normal",delete le.arg,ce.completion=le}function ge(ce){this.tryEntries=[{tryLoc:"root"}],ce.forEach(te,this),this.reset(!0)}function nn(ce){if(ce){var le=ce[o];if(le)return le.call(ce);if(typeof ce.next=="function")return ce;if(!isNaN(ce.length)){var Pe=-1,Ce=function Be(){for(;++Pe=0;--Be){var Ye=this.tryEntries[Be],Sn=Ye.completion;if(Ye.tryLoc==="root")return Ce("end");if(Ye.tryLoc<=this.prev){var ta=a.call(Ye,"catchLoc"),kn=a.call(Ye,"finallyLoc");if(ta&&kn){if(this.prev=0;--Ce){var Be=this.tryEntries[Ce];if(Be.tryLoc<=this.prev&&a.call(Be,"finallyLoc")&&this.prev=0;--Pe){var Ce=this.tryEntries[Pe];if(Ce.finallyLoc===le)return this.complete(Ce.completion,Ce.afterLoc),ve(Ce),d}},catch:function(le){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var Ce=this.tryEntries[Pe];if(Ce.tryLoc===le){var Be=Ce.completion;if(Be.type==="throw"){var Ye=Be.arg;ve(Ce)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(le,Pe,Ce){return this.delegate={iterator:nn(le),resultName:Pe,nextLoc:Ce},this.method==="next"&&(this.arg=void 0),d}},e}function cB(e,n,a,t,o,u,i){try{var l=e[u](i),s=l.value}catch(R){a(R);return}l.done?n(s):Promise.resolve(s).then(t,o)}function mG(e){return function(){var n=this,a=arguments;return new Promise(function(t,o){var u=e.apply(n,a);function i(s){cB(u,t,o,i,l,"next",s)}function l(s){cB(u,t,o,i,l,"throw",s)}i(void 0)})}}Ja();var sB=["measure","alignPre","align",null,"motion"],vB=function(e,n){var a=Is(null),t=Mt(a,2),o=t[0],u=t[1],i=ut();function l(d){u(d,!0)}function s(){wi.cancel(i.current)}function R(d){s(),i.current=wi(function(){l(function(y){switch(o){case"align":return"motion";case"motion":return"stable";default:}return y}),d==null||d()})}return Ft(function(){l("measure")},[e]),Ft(function(){switch(o){case"measure":n();break;default:}o&&(i.current=wi(mG(bh().mark(function d(){var y,I;return bh().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:y=sB.indexOf(o),I=sB[y+1],I&&y!==-1&&l(I);case 3:case"end":return T.stop()}},d)}))))},[o]),Ft(function(){return function(){s()}},[]),[o,R]};Ja();var fB=function(e){var n=Gl({width:0,height:0}),a=Mt(n,2),t=a[0],o=a[1];function u(l){o({width:l.offsetWidth,height:l.offsetHeight})}var i=mm(function(){var l={};if(e){var s=t.width,R=t.height;e.indexOf("height")!==-1&&R?l.height=R:e.indexOf("minHeight")!==-1&&R&&(l.minHeight=R),e.indexOf("width")!==-1&&s?l.width=s:e.indexOf("minWidth")!==-1&&s&&(l.minWidth=s)}return l},[e,t]);return[i,u]};var pB=pi(function(e,n){var a=e.visible,t=e.prefixCls,o=e.className,u=e.style,i=e.children,l=e.zIndex,s=e.stretch,R=e.destroyPopupOnHide,d=e.forceRender,y=e.align,I=e.point,b=e.getRootDomNode,T=e.getClassNameFromAlign,L=e.onAlign,O=e.onMouseEnter,$=e.onMouseLeave,z=e.onMouseDown,Z=e.onTouchStart,oe=e.onClick,te=ut(),ve=ut(),ge=Gl(),nn=Mt(ge,2),cn=nn[0],ce=nn[1],le=fB(s),Pe=Mt(le,2),Ce=Pe[0],Be=Pe[1];function Ye(){s&&Be(b())}var Sn=vB(a,Ye),ta=Mt(Sn,2),kn=ta[0],Bn=ta[1],Qn=Gl(0),Hn=Mt(Qn,2),st=Hn[0],Ne=Hn[1],ua=ut();dG(function(){kn==="alignPre"&&Ne(0)},[kn]);function Ta(){return I||b}function En(){var sn;(sn=te.current)===null||sn===void 0||sn.forceAlign()}function dn(sn,ia){var wt=T(ia);cn!==wt&&ce(wt),Ne(function(Da){return Da+1}),kn==="align"&&(L==null||L(sn,ia))}dG(function(){kn==="align"&&(st<2?En():Bn(function(){var sn;(sn=ua.current)===null||sn===void 0||sn.call(ua)}))},[st]);var He=Ea({},Cw(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(sn){var ia=He[sn];He[sn]=function(wt,Da){return Bn(),ia==null?void 0:ia(wt,Da)}});function ea(){return new Promise(function(sn){ua.current=sn})}Ft(function(){!He.motionName&&kn==="motion"&&Bn()},[He.motionName,kn]),ns(n,function(){return{forceAlign:En,getElement:function(){return ve.current}}});var va=Ea(Ea({},Ce),{},{zIndex:l,opacity:kn==="motion"||kn==="stable"||!a?void 0:0,pointerEvents:!a&&kn!=="stable"?"none":void 0},u),La=!0;(y==null?void 0:y.points)&&(kn==="align"||kn==="stable")&&(La=!1);var vt=i;return xf.count(i)>1&&(vt=ct("div",{className:"".concat(t,"-content")},i)),ct(pp,po({visible:a,ref:ve,leavedClassName:"".concat(t,"-hidden")},He,{onAppearPrepare:ea,onEnterPrepare:ea,removeOnLeave:R,forceRender:d}),function(sn,ia){var wt=sn.className,Da=sn.style,rt=(0,_B.default)(t,o,cn,wt);return ct(lB,{target:Ta(),key:"popup",ref:te,monitorWindowResize:!0,disabled:La,align:y,onAlign:dn},ct("div",{ref:ia,className:rt,onMouseEnter:O,onMouseLeave:$,onMouseDownCapture:z,onTouchStartCapture:Z,onClick:oe,style:Ea(Ea({},Da),va)},vt))})});pB.displayName="PopupInner";var dB=pB;Ja();var mB=Tu(m0()),hB=pi(function(e,n){var a=e.prefixCls,t=e.visible,o=e.zIndex,u=e.children,i=e.mobile;i=i===void 0?{}:i;var l=i.popupClassName,s=i.popupStyle,R=i.popupMotion,d=R===void 0?{}:R,y=i.popupRender,I=e.onClick,b=ut();ns(n,function(){return{forceAlign:function(){},getElement:function(){return b.current}}});var T=Ea({zIndex:o},s),L=u;return xf.count(u)>1&&(L=ct("div",{className:"".concat(a,"-content")},u)),y&&(L=y(L)),ct(pp,po({visible:t,ref:b,removeOnLeave:!0},d),function(O,$){var z=O.className,Z=O.style,oe=(0,mB.default)(a,l,z);return ct("div",{ref:$,className:oe,onClick:I,style:Ea(Ea({},Z),T)},L)})});hB.displayName="MobilePopupInner";var DB=hB;var qme=["visible","mobile"],gB=pi(function(e,n){var a=e.visible,t=e.mobile,o=Gv(e,qme),u=Gl(a),i=Mt(u,2),l=i[0],s=i[1],R=Gl(!1),d=Mt(R,2),y=d[0],I=d[1],b=Ea(Ea({},o),{},{visible:l});Ft(function(){s(a),a&&t&&I(PU())},[a,t]);var T=y?ct(DB,po({},b,{mobile:t,ref:n})):ct(dB,po({},b,{ref:n}));return ct("div",null,ct(NF,b),T)});gB.displayName="Popup";var RB=gB;Ja();var Wme=pT(null),hG=Wme;function DG(){}function Jme(){return""}function $me(e){return e?e.ownerDocument:window.document}var zme=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Vme(e){var n=function(a){_0(o,a);var t=p0(o);function o(u){var i;v0(this,o),i=t.call(this,u),i.popupRef=SR(),i.triggerRef=SR(),i.portalContainer=void 0,i.attachId=void 0,i.clickOutsideHandler=void 0,i.touchOutsideHandler=void 0,i.contextMenuOutsideHandler1=void 0,i.contextMenuOutsideHandler2=void 0,i.mouseDownTimeout=void 0,i.focusTime=void 0,i.preClickTime=void 0,i.preTouchTime=void 0,i.delayTimer=void 0,i.hasPopupMouseDown=void 0,i.onMouseEnter=function(s){var R=i.props.mouseEnterDelay;i.fireEvents("onMouseEnter",s),i.delaySetPopupVisible(!0,R,R?null:s)},i.onMouseMove=function(s){i.fireEvents("onMouseMove",s),i.setPoint(s)},i.onMouseLeave=function(s){i.fireEvents("onMouseLeave",s),i.delaySetPopupVisible(!1,i.props.mouseLeaveDelay)},i.onPopupMouseEnter=function(){i.clearDelayTimer()},i.onPopupMouseLeave=function(s){var R;s.relatedTarget&&!s.relatedTarget.setTimeout&&d0((R=i.popupRef.current)===null||R===void 0?void 0:R.getElement(),s.relatedTarget)||i.delaySetPopupVisible(!1,i.props.mouseLeaveDelay)},i.onFocus=function(s){i.fireEvents("onFocus",s),i.clearDelayTimer(),i.isFocusToShow()&&(i.focusTime=Date.now(),i.delaySetPopupVisible(!0,i.props.focusDelay))},i.onMouseDown=function(s){i.fireEvents("onMouseDown",s),i.preClickTime=Date.now()},i.onTouchStart=function(s){i.fireEvents("onTouchStart",s),i.preTouchTime=Date.now()},i.onBlur=function(s){i.fireEvents("onBlur",s),i.clearDelayTimer(),i.isBlurToHide()&&i.delaySetPopupVisible(!1,i.props.blurDelay)},i.onContextMenu=function(s){s.preventDefault(),i.fireEvents("onContextMenu",s),i.setPopupVisible(!0,s)},i.onContextMenuClose=function(){i.isContextMenuToShow()&&i.close()},i.onClick=function(s){if(i.fireEvents("onClick",s),i.focusTime){var R;if(i.preClickTime&&i.preTouchTime?R=Math.min(i.preClickTime,i.preTouchTime):i.preClickTime?R=i.preClickTime:i.preTouchTime&&(R=i.preTouchTime),Math.abs(R-i.focusTime)<20)return;i.focusTime=0}i.preClickTime=0,i.preTouchTime=0,i.isClickToShow()&&(i.isClickToHide()||i.isBlurToHide())&&s&&s.preventDefault&&s.preventDefault();var d=!i.state.popupVisible;(i.isClickToHide()&&!d||d&&i.isClickToShow())&&i.setPopupVisible(!i.state.popupVisible,s)},i.onPopupMouseDown=function(){if(i.hasPopupMouseDown=!0,clearTimeout(i.mouseDownTimeout),i.mouseDownTimeout=window.setTimeout(function(){i.hasPopupMouseDown=!1},0),i.context){var s;(s=i.context).onPopupMouseDown.apply(s,arguments)}},i.onDocumentClick=function(s){if(!(i.props.mask&&!i.props.maskClosable)){var R=s.target,d=i.getRootDomNode(),y=i.getPopupDomNode();(!d0(d,R)||i.isContextMenuOnly())&&!d0(y,R)&&!i.hasPopupMouseDown&&i.close()}},i.getRootDomNode=function(){var s=i.props.getTriggerDOMNode;if(s)return s(i.triggerRef.current);try{var R=oh(i.triggerRef.current);if(R)return R}catch{}return di.findDOMNode(th(i))},i.getPopupClassNameFromAlign=function(s){var R=[],d=i.props,y=d.popupPlacement,I=d.builtinPlacements,b=d.prefixCls,T=d.alignPoint,L=d.getPopupClassNameFromAlign;return y&&I&&R.push(LU(I,b,s,T)),L&&R.push(L(s)),R.join(" ")},i.getComponent=function(){var s=i.props,R=s.prefixCls,d=s.destroyPopupOnHide,y=s.popupClassName,I=s.onPopupAlign,b=s.popupMotion,T=s.popupAnimation,L=s.popupTransitionName,O=s.popupStyle,$=s.mask,z=s.maskAnimation,Z=s.maskTransitionName,oe=s.maskMotion,te=s.zIndex,ve=s.popup,ge=s.stretch,nn=s.alignPoint,cn=s.mobile,ce=s.forceRender,le=s.onPopupClick,Pe=i.state,Ce=Pe.popupVisible,Be=Pe.point,Ye=i.getPopupAlign(),Sn={};return i.isMouseEnterToShow()&&(Sn.onMouseEnter=i.onPopupMouseEnter),i.isMouseLeaveToHide()&&(Sn.onMouseLeave=i.onPopupMouseLeave),Sn.onMouseDown=i.onPopupMouseDown,Sn.onTouchStart=i.onPopupMouseDown,ct(RB,po({prefixCls:R,destroyPopupOnHide:d,visible:Ce,point:nn&&Be,className:y,align:Ye,onAlign:I,animation:T,getClassNameFromAlign:i.getPopupClassNameFromAlign},Sn,{stretch:ge,getRootDomNode:i.getRootDomNode,style:O,mask:$,zIndex:te,transitionName:L,maskAnimation:z,maskTransitionName:Z,maskMotion:oe,ref:i.popupRef,motion:b,mobile:cn,forceRender:ce,onClick:le}),typeof ve=="function"?ve():ve)},i.attachParent=function(s){wi.cancel(i.attachId);var R=i.props,d=R.getPopupContainer,y=R.getDocument,I=i.getRootDomNode(),b;d?(I||d.length===0)&&(b=d(I)):b=y(i.getRootDomNode()).body,b?b.appendChild(s):i.attachId=wi(function(){i.attachParent(s)})},i.getContainer=function(){if(!i.portalContainer){var s=i.props.getDocument,R=s(i.getRootDomNode()).createElement("div");R.style.position="absolute",R.style.top="0",R.style.left="0",R.style.width="100%",i.portalContainer=R}return i.attachParent(i.portalContainer),i.portalContainer},i.setPoint=function(s){var R=i.props.alignPoint;!R||!s||i.setState({point:{pageX:s.pageX,pageY:s.pageY}})},i.handlePortalUpdate=function(){i.state.prevPopupVisible!==i.state.popupVisible&&i.props.afterPopupVisibleChange(i.state.popupVisible)},i.triggerContextValue={onPopupMouseDown:i.onPopupMouseDown};var l;return"popupVisible"in u?l=!!u.popupVisible:l=!!u.defaultPopupVisible,i.state={prevPopupVisible:l,popupVisible:l},zme.forEach(function(s){i["fire".concat(s)]=function(R){i.fireEvents(s,R)}}),i}return f0(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var i=this.props,l=this.state;if(l.popupVisible){var s;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(s=i.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Mv(s,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(s=s||i.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Mv(s,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(s=s||i.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Mv(s,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Mv(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wi.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var i;return((i=this.popupRef.current)===null||i===void 0?void 0:i.getElement())||null}},{key:"getPopupAlign",value:function(){var i=this.props,l=i.popupPlacement,s=i.popupAlign,R=i.builtinPlacements;return l&&R?AU(R,l,s):s}},{key:"setPopupVisible",value:function(i,l){var s=this.props.alignPoint,R=this.state.popupVisible;this.clearDelayTimer(),R!==i&&("popupVisible"in this.props||this.setState({popupVisible:i,prevPopupVisible:R}),this.props.onPopupVisibleChange(i)),s&&l&&i&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(i,l,s){var R=this,d=l*1e3;if(this.clearDelayTimer(),d){var y=s?{pageX:s.pageX,pageY:s.pageY}:null;this.delayTimer=window.setTimeout(function(){R.setPopupVisible(i,y),R.clearDelayTimer()},d)}else this.setPopupVisible(i,s)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(i){var l=this.props.children.props,s=this.props;return l[i]&&s[i]?this["fire".concat(i)]:l[i]||s[i]}},{key:"isClickToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var i=this.props.action;return i==="contextMenu"||i.length===1&&i[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("contextMenu")!==-1||s.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var i=this.props,l=i.action,s=i.hideAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("hover")!==-1||s.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var i=this.props,l=i.action,s=i.hideAction;return l.indexOf("hover")!==-1||s.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var i=this.props,l=i.action,s=i.showAction;return l.indexOf("focus")!==-1||s.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var i=this.props,l=i.action,s=i.hideAction;return l.indexOf("focus")!==-1||s.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var i;(i=this.popupRef.current)===null||i===void 0||i.forceAlign()}}},{key:"fireEvents",value:function(i,l){var s=this.props.children.props[i];s&&s(l);var R=this.props[i];R&&R(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var i=this.state.popupVisible,l=this.props,s=l.children,R=l.forceRender,d=l.alignPoint,y=l.className,I=l.autoDestroy,b=xf.only(s),T={key:"trigger"};this.isContextMenuToShow()?T.onContextMenu=this.onContextMenu:T.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(T.onClick=this.onClick,T.onMouseDown=this.onMouseDown,T.onTouchStart=this.onTouchStart):(T.onClick=this.createTwoChains("onClick"),T.onMouseDown=this.createTwoChains("onMouseDown"),T.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(T.onMouseEnter=this.onMouseEnter,d&&(T.onMouseMove=this.onMouseMove)):T.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?T.onMouseLeave=this.onMouseLeave:T.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(T.onFocus=this.onFocus,T.onBlur=this.onBlur):(T.onFocus=this.createTwoChains("onFocus"),T.onBlur=this.createTwoChains("onBlur"));var L=(0,yB.default)(b&&b.props&&b.props.className,y);L&&(T.className=L);var O=Ea({},T);pw(b)&&(O.ref=_w(this.triggerRef,b.ref));var $=_m(b,O),z;return(i||this.popupRef.current||R)&&(z=ct(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!i&&I&&(z=null),ct(hG.Provider,{value:this.triggerContextValue},$,z)}}],[{key:"getDerivedStateFromProps",value:function(i,l){var s=i.popupVisible,R={};return s!==void 0&&l.popupVisible!==s&&(R.popupVisible=s,R.prevPopupVisible=l.popupVisible),R}}]),o}(Nf);return n.contextType=hG,n.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Jme,getDocument:$me,onPopupVisibleChange:DG,afterPopupVisibleChange:DG,onPopupAlign:DG,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},n}var wB=Vme(MU);var cl={adjustX:1,adjustY:1},sl=[0,0],bB={left:{points:["cr","cl"],overflow:cl,offset:[-4,0],targetOffset:sl},right:{points:["cl","cr"],overflow:cl,offset:[4,0],targetOffset:sl},top:{points:["bc","tc"],overflow:cl,offset:[0,-4],targetOffset:sl},bottom:{points:["tc","bc"],overflow:cl,offset:[0,4],targetOffset:sl},topLeft:{points:["bl","tl"],overflow:cl,offset:[0,-4],targetOffset:sl},leftTop:{points:["tr","tl"],overflow:cl,offset:[-4,0],targetOffset:sl},topRight:{points:["br","tr"],overflow:cl,offset:[0,-4],targetOffset:sl},rightTop:{points:["tl","tr"],overflow:cl,offset:[4,0],targetOffset:sl},bottomRight:{points:["tr","br"],overflow:cl,offset:[0,4],targetOffset:sl},rightBottom:{points:["bl","br"],overflow:cl,offset:[4,0],targetOffset:sl},bottomLeft:{points:["tl","bl"],overflow:cl,offset:[0,4],targetOffset:sl},leftBottom:{points:["br","bl"],overflow:cl,offset:[-4,0],targetOffset:sl}};Ja();var EB=Tu(m0());function Jw(e){var n=e.showArrow,a=e.arrowContent,t=e.children,o=e.prefixCls,u=e.id,i=e.overlayInnerStyle,l=e.className,s=e.style;return ct("div",{className:(0,EB.default)("".concat(o,"-content"),l),style:s},n!==!1&&ct("div",{className:"".concat(o,"-arrow"),key:"arrow"},a),ct("div",{className:"".concat(o,"-inner"),id:u,role:"tooltip",style:i},typeof t=="function"?t():t))}var Qme=function(n,a){var t=n.overlayClassName,o=n.trigger,u=o===void 0?["hover"]:o,i=n.mouseEnterDelay,l=i===void 0?0:i,s=n.mouseLeaveDelay,R=s===void 0?.1:s,d=n.overlayStyle,y=n.prefixCls,I=y===void 0?"rc-tooltip":y,b=n.children,T=n.onVisibleChange,L=n.afterVisibleChange,O=n.transitionName,$=n.animation,z=n.motion,Z=n.placement,oe=Z===void 0?"right":Z,te=n.align,ve=te===void 0?{}:te,ge=n.destroyTooltipOnHide,nn=ge===void 0?!1:ge,cn=n.defaultVisible,ce=n.getTooltipContainer,le=n.overlayInnerStyle,Pe=n.arrowContent,Ce=n.overlay,Be=n.id,Ye=n.showArrow,Sn=Gv(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),ta=ut(null);ns(a,function(){return ta.current});var kn=Ea({},Sn);"visible"in n&&(kn.popupVisible=n.visible);var Bn=function(){return ct(Jw,{showArrow:Ye,arrowContent:Pe,key:"content",prefixCls:I,id:Be,overlayInnerStyle:le},Ce)},Qn=!1,Hn=!1;if(typeof nn=="boolean")Qn=nn;else if(nn&&Zr(nn)==="object"){var st=nn.keepParent;Qn=st===!0,Hn=st===!1}return ct(wB,po({popupClassName:t,prefixCls:I,popup:Bn,action:u,builtinPlacements:bB,popupPlacement:oe,ref:ta,popupAlign:ve,getPopupContainer:ce,onPopupVisibleChange:T,afterPopupVisibleChange:L,popupTransitionName:O,popupAnimation:$,popupMotion:z,defaultPopupVisible:cn,destroyPopupOnHide:Qn,autoDestroy:Hn,mouseLeaveDelay:R,popupStyle:d,mouseEnterDelay:l},kn),b)},IB=pi(Qme);var TB=IB;var CB=e=>ka.createElement(TB,Object.assign({},e,{overlayClassName:`cv-tooltip ${e.overlayClassName}`,getTooltipContainer:e.tooltipContainerSelector?()=>document.querySelector(e.tooltipContainerSelector)||document.body:void 0}));if(typeof window!="undefined"&&typeof global=="undefined")try{Promise.resolve().then(()=>Tu(SB())).then(e=>{let n=e.default,a=document.createElement("style");a.type="text/css",a.appendChild(document.createTextNode(n)),document.head.appendChild(a)})}catch(e){window.Sentry&&window.Sentry.captureException(e)}Ja();var Yme=class extends ka.Component{componentDidUpdate(n){this.props.componentDidUpdate(n.deps)}render(){return this.props.children}};var Zme=vv();var FB="click";var $w="top",Ep=function(e){var n=Zme(e);return function(){return function(){return n(CB)}}};var GB="right";var MB=e=>()=>e.preventDefault&&e.preventDefault();var gG=function(){return MB};var ehe=Sa();var RG=ee(Ze),yG=yt(ehe(B({reflectSymbol:function(){return"value"}})(_e)(tn))),wG=J(na);var zw=function(e){return ke("")(RG(yG(lo(e.target)))(function(n){return wG(n.value)}))},bG=function(e){return ke("")(RG(yG(lo(e.target)))(function(n){return wG(n.value)}))},Ts=function(e){return ke("")(RG(yG(lo(e.target)))(function(n){return wG(n.value)}))};var AB="/network/connections";var LB=20;var nhe=Ep($e)()(),ahe=Ua(he),the=function(){return"You\u2019ve hit the "+(ne(en)(LB)+`-connection limit, designed to encourage you to focus on building meaningful connections that lead to impactful opportunities. Remove an existing connection to make space for a new one that aligns with your goals. `)}(),rhe=Ho($e)("text-decoration-underline")(Gt(Y)()()("text-dark")({href:AB})("Manage my connections")),PB=function(e){return function(n){return nhe({placement:e,trigger:FB,overlay:ahe("")([Qe(the),rhe]),overlayStyle:dt({width:"15rem"}),overlayClassName:"t--connection-limit-tooltip"})(n)}};var xB=ee(Ze),Ip=function(e){var n=xB(e.guestPresenter)(function(a){if(a instanceof Zf)return new S(a.value0);if(a instanceof ms)return M.value;throw new Error("Failed pattern match at Livestream.Utils (line 21, column 31 - line 23, column 40): "+[a.constructor.name])});return xB(n)(function(a){return new S({name:a.school.name,id:a.school.id})})};var ohe=function(){function e(){}return e.value=new e,e}(),uhe=function(){function e(){}return e.value=new e,e}(),EG=function(){function e(){}return e.value=new e,e}(),ihe=function(){function e(){}return e.value=new e,e}(),lhe=function(){function e(){}return e.value=new e,e}(),che=function(){function e(){}return e.value=new e,e}(),NB=function(e){if(e instanceof ohe)return"account_settings_page";if(e instanceof uhe)return"preference_survey";if(e instanceof EG)return"livestream_registration";if(e instanceof ihe)return"chancing_wizard_network_step";if(e instanceof lhe)return"main_profile_page";if(e instanceof che)return"autopilot_acceptance_page";throw new Error("Failed pattern match at Profile.PublishContext (line 15, column 13 - line 21, column 57): "+[e.constructor.name])};var _he=Rc(Dc),IG=ql(_he),TG=ee(_a);var phe=zr(),jB=pe(ae);var OB=IG("profile_visibility_path")(function(e){return function(n){return TG(e({visibility:{publish_scope:Wm(n)}}))(Yt)}}),UB=function(){return IG("profile_network_settings_path")(function(e){return function(n){return function(a){return TG(e({network_settings:{publish_scope:Wm(a.publishScope),publish_context:NB(a.publishContext),automatic_accept_requests_for_school_list:a.autoAcceptForSchoolList,automatic_connection_requests_from_livestreams:a.autoRequestFromLivestreams,livestream:Fa(jB(al(a.livestreamConference))(function(t){return{school_name:Fa(jB(Ip(t))(function(o){return o.name})),title:t.title,id:t.id}}))}}))(Yt)}(phe(n))}})},kB=IG("profile_name_path")(function(e){return function(n){return TG(e({name:n}))(Yt)}});var Me=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),yn=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var dhe=Jl(),mhe=Br(Y),hhe=kt(Y),SG=Jt(Y),CG=qu(Y),Pv=Te(he),Tp=Jn(Y)()(),FG=ir(Bo),Dhe=ln(on),GG=Yn(ga),R0=Te($e),BB=gu()(),ghe=hv(Y),Rhe=oi(Rt),HB=so()(),MG=Yn(co),yhe=kR()(),qB=Te(Y),whe=ON(he),AG=qN(Y),bhe=Ua(Y),Ehe=Ep($e)()(),Ihe=Jt(he),The=Gt(Y)()(),She=Va(Y),y0=J(wn),WB=Dhe(Kn),Che=Qy(),Eh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),JB=function(){function e(){}return e.value=new e,e}(),$B=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),zB=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),VB=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),QB=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ih=function(){function e(){}return e.value=new e,e}(),LG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),KB=function(e){return function(n){var a=function(R){return dhe({body:R,title:mhe("my-0")(function(){return e.stage instanceof YR?"Join the CollegeVine network":"Connect with "+e.schoolName}()),headerClass:"pb-0",onDismiss:n(new yn(Ih.value)),size:Ym.value})},t=Nj(e.context),o=Se([hhe("mt-3")("Review your message before you send it"),SG("mt-2")(` Because this is your first message to the counselor, we want to make sure you\u2019re ready to send. `),CG("mt-4")("Your message"),km(e.message),Pv("d-flex mt-4 justify-content-start")([Tp("btn btn-primary btn-lg t--sem-user-connection-modal-confirm-message-"+t)({onClick:FG(function(){return n(new yn(new LG({introMessage:e.message})))(),n(new Me(new Eh(vS.value)))()})})("Send"),Tp("btn btn-lg btn-outline-primary ml-3 text-nowrap")({onClick:GG(n)(new Me(new Eh(xm.value)))})("No, I need to edit something")])]),u=Se([Pv("text-center")([R0("")(BB("mt-4")({src:"/img/checkmate-icon.png",height:"80",width:"80"})),ghe("mt-4")("Connection request sent!"),SG("mx-md-4")(Rhe(["You\u2019ve successfully demonstrated your interest to ",e.schoolName,". ","This counselor isn\u2019t part of the platform yet but we\u2019ve forwarded your message to them. ","You\u2019ll get an email notification when they respond."])),Tp("btn btn-lg btn-outline-secondary mt-4")({onClick:GG(n)(new yn(Ih.value))})("Close")])]),i=Tp("btn btn-outline-secondary ml-3 t--sem-user-connection-modal-close-"+t)({onClick:GG(n)(new yn(Ih.value))})("Cancel"),l=function(){var R=iS(e.message)&&function(){if(e.profile.fullName instanceof S)return!0;if(e.profile.fullName instanceof M)return!hi(e.firstName)&&!hi(e.lastName);throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 240, column 15 - line 244, column 88): "+[e.profile.fullName.constructor.name])}(),d=function(){if(e.vineBelowConnectionLimit instanceof S&&e.vineBelowConnectionLimit.value0)return!1;if(e.vineBelowConnectionLimit instanceof S&&!e.vineBelowConnectionLimit.value0)return!0;if(e.vineBelowConnectionLimit instanceof M)return!1;throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 233, column 13 - line 236, column 31): "+[e.vineBelowConnectionLimit.constructor.name])}();return Se([ya(Tt(e.profile.fullName))(Se([CG("mt-md-4")("Your preferred name"),Pv("form-row mx-1")([HB("col form-control mr-2 t--sem-user-connection-modal-first-name-"+t)({type:"text",value:e.firstName,onChange:MG(n)(function(y){return Me.create(VB.create(Ts(y)))}),placeholder:"First name"}),HB("col form-control ml-2 t--sem-user-connection-modal-last-name-"+t)({type:"text",value:e.lastName,onChange:MG(n)(function(y){return Me.create(QB.create(Ts(y)))}),placeholder:"Last name"})])])),CG("mt-md-4")("Your message"),yhe("form-control t--sem-user-connection-modal-text-area-"+t)({rows:7,value:e.message,onChange:MG(n)(function(y){return Me.create(zB.create(zw(y)))}),placeholder:`Sample introductory message: Hi Jane, My name is Sam and I\u2019m a senior at Oak Ridge High School in Oak Ridge, MD. I\u2019m really excited to apply for CV University this fall, and I\u2019m hoping to study history there. Are there any upcoming virtual events I can register for? I\u2019m excited to stay in touch and learn more about your school. Thanks! `}),R0("mt-2")(Gj(e.message)),qB("mt-3 mt-md-4 small")("The ideal connection message should include:"),whe("small")([AG("")("Your name, where you\u2019re from, and a bit about who you are"),AG("")("What you\u2019re interested in studying along with one or two insightful questions"),AG("")("That you\u2019re eager to connect with an admissions counselor and would love to stay in touch")]),Pv("d-flex mt-4 justify-content-start")([PB($w)(R0("")(Tp("btn btn-primary btn-lg t--sem-user-connection-modal-connect-"+t)({onClick:FG(function(){return function(){if(e.profile.fullName instanceof S)return Ee;if(e.profile.fullName instanceof M)return n(new Me(new $B({first:e.firstName,last:e.lastName})))();throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 216, column 23 - line 220, column 113): "+[e.profile.fullName.constructor.name])}(),n(new Me(new Eh(sS.value)))()}),disabled:!R||d,style:dt({pointerEvents:function(){return d?"none":"auto"}()})})("Connect"))),i])])}(),s=Pv("mx-md-7")([R0("border border-success rounded p-4 my-4")(Pv("row align-items-center")([R0("col-12 col-md-auto text-center text-md-left")(BB("img-fluid")({src:"/img/network/publish-profile-icon.png",height:"67",width:"143"})),R0("col text-center text-md-left")(bhe("fw-bold font-weight-bold text-gray-800")("Network with verified admissions counselors on CollegeVine"))])),Pv("d-flex flex-nowrap align-items-center")([qB("mr-4")("Publish your profile to join the CollegeVine Network"),Ehe({placement:GB,overlay:Ihe("")([Qe(` Your profile includes academics, extracurriculars, major interest, demographics and financial aid intent. By agreeing to publish, you will also be adding select preferences survey answers to `),The("")({href:tU})("your profile"),Qe(".")]),overlayStyle:dt({width:"15rem"})})(She("cursor-default text-secondary fe fe-info large")(""))]),SG("text-secondary small d-none d-md-block mt-4")("Joining the CollegeVine Network won\u2019t result in spam from colleges you don\u2019t want to hear from."),Pv("d-flex mt-4 justify-content-start justify-content-md-center")([Tp("btn btn-primary t--sem-user-connection-modal-publish-profile-"+t)({onClick:FG(function(){return n(new Me(JB.value))(),n(new Me(new Eh(xm.value)))()})})("Publish profile"),i])]);return R0("t--network-sem-user-modal")(function(){if(e.stage instanceof YR)return a(s);if(e.stage instanceof xm)return a(l);if(e.stage instanceof sS)return a(o);if(e.stage instanceof vS)return a(u);throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 98, column 5 - line 102, column 38): "+[e.stage.constructor.name])}())}},YB=function(e){return function(n){if(n instanceof Me){if(n.value0 instanceof Eh)return y0({context:e.context,firstName:e.firstName,lastName:e.lastName,message:e.message,profile:e.profile,schoolName:e.schoolName,vineBelowConnectionLimit:e.vineBelowConnectionLimit,stage:n.value0.value0});if(n.value0 instanceof JB)return WB(Za(OB(gi.value)))(function(){return y0({context:e.context,firstName:e.firstName,lastName:e.lastName,message:e.message,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,profile:{fullName:e.profile.fullName,publishScope:gi.value}})});if(n.value0 instanceof $B)return WB(Za(kB(n.value0.value0)))(function(){return y0({context:e.context,firstName:e.firstName,lastName:e.lastName,message:e.message,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,profile:{publishScope:e.profile.publishScope,fullName:new S(sF(n.value0.value0))}})});if(n.value0 instanceof zB)return y0({context:e.context,firstName:e.firstName,lastName:e.lastName,profile:e.profile,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,message:n.value0.value0});if(n.value0 instanceof VB)return y0({context:e.context,lastName:e.lastName,message:e.message,profile:e.profile,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,firstName:n.value0.value0});if(n.value0 instanceof QB)return y0({context:e.context,firstName:e.firstName,message:e.message,profile:e.profile,schoolName:e.schoolName,stage:e.stage,vineBelowConnectionLimit:e.vineBelowConnectionLimit,lastName:n.value0.value0});throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 81, column 31 - line 91, column 61): "+[n.value0.constructor.name])}if(n instanceof yn)return y0(e);throw new Error("Failed pattern match at Network.SemVine.InviteSchoolModal (line 80, column 1 - line 80, column 55): "+[e.constructor.name,n.constructor.name])}},Fhe=function(e){var n=pU(e);return n?xm.value:YR.value},XB=function(e){return{firstName:"",lastName:"",message:"",profile:Che(e.profile),stage:Fhe(e.profile),schoolName:e.schoolName,context:e.context,vineBelowConnectionLimit:e.vineBelowConnectionLimit}};var Ghe=zr(),PG=Te($e),Mhe=gu()(),xG=Ua(Y),Ahe=Va(Y),Lhe=gr($e)()(),Phe=Jn(he)()(),xhe=ir(dv),Nhe=gG(),jhe=za(er),Vw=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),NG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ohe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Uhe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ZB=function(){function e(){}return e.value=new e,e}(),khe=function(){function e(){}return e.value=new e,e}(),eH=function(){return function(e){var n=Ghe(e),a=function(){var o=et(n.shape)(ZB.value);if(o instanceof ZB)return"rounded-circle";if(o instanceof khe)return"rounded";throw new Error("Failed pattern match at Dashkit.Avatar (line 117, column 9 - line 119, column 37): "+[o.constructor.name])}(),t=function(o){return PG("avatar "+(sU(et(n.size)(aw.value))+(" "+et(n.className)(""))))(function(){if(o instanceof Vw)return Mhe("avatar-img img-fluid "+(a+(" "+et(n.borderClassName)(""))))({src:o.value0.url});if(o instanceof NG)return xG("avatar-title font-weight-bold fw-bold "+(a+(" "+(ke("")(o.value0.backgroundColorClass)+(" "+(ke("")(o.value0.textColorClass)+(" "+et(n.borderClassName)(""))))))))(o.value0.initials);if(o instanceof Ohe)return PG("avatar-title "+(a+(" "+(ke("")(o.value0.backgroundColorClass)+(" "+et(n.borderClassName)(""))))))(Ahe(o.value0.iconClass)(""));if(o instanceof Uhe)return PG("avatar-title "+(a+(" "+(ke("")(o.value0.backgroundColorClass)+(" "+et(n.borderClassName)(""))))))(xG("material-symbol")(o.value0.name));throw new Error("Failed pattern match at Dashkit.Avatar (line 78, column 11 - line 114, column 46): "+[o.constructor.name])}())};return eh(bs(n.source))(function(o){return function(u){return Se([t(o),function(){return o instanceof Vw?da(al(n.hideAvatar))(function(i){return Lhe("hq-only-menu-item")({style:dt({marginTop:"-50px",marginLeft:"200px"})})(Phe("btn btn-sm btn-warning mb-4 t--hide-avatar")({onClick:xhe(function(l){return function(){return Nhe(l)(),jhe(u)(i)()}})})([xG("badge badge-info bg-info text-dark mr-2")("HQ"),Qe("Hide")]))}):$n}()])}})}};var Bhe=eH();var nH=function(e){return function(n){return Bhe({source:function(){if(e.avatarUrl instanceof S)return new Vw({url:e.avatarUrl.value0});if(e.avatarUrl instanceof M)return new NG({initials:e.initials,backgroundColorClass:M.value,textColorClass:M.value});throw new Error("Failed pattern match at Sem.Utils (line 18, column 15 - line 26, column 14): "+[e.avatarUrl.constructor.name])}(),size:n})}};var jG=k(ae),Hhe=an(_2(Zv));var aH=function(e){var n=function(a){return ke("")(jG(ii)(Qd(0)(a)))};return gv(function(){var a=qo(" ")(e);return a.length===2?n(a[0])+n(a[1]):a.length===1?n(a[0]):a.length===0?"":ke("?")(Hhe(jG(n)(m_(a)))(jG(n)(kd(a))))}())},tH=function(e){return e.firstName+(" "+e.lastName)};var OG=Br(Y),qhe=Gt(Y)()(),Whe=Gt(he)()(),rH=Va(Y),Jhe=Jn(he)()(),$he=Al(pv(Fl)),zhe=pe(ae),Vhe=ee(Ze),UG=Te(Y),Qw=Te(he),oH=Te($e),Qhe=Sm(Y),uH=rs()(),Khe=qu(Y),Yhe=Jt(Y),Sp=J(wn),iH=ln(on),Xhe=iH(Kn),Zhe=Ma(Ve),eDe=iH(_a),nDe=J(ca),aDe=ot(hr(Ga)),lH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Th=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),cH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),sH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),vH=function(){var e=function(a){return function(t){return function(o){var u=OG("text-primary")(t.semUser.firstName+(" from "+(t.semUser.school.name+" sent you a connection request!"))),i=OG("text-primary")("Reach out to "+(t.semUser.firstName+" to ask a question or introduce yourself!")),l=[u,qhe("btn btn-primary d-flex align-items-center w-50 justify-content-center t--livestream-details-view-pending-invitation-from-sem-user")({href:hF(new fp(t.semUser.id))})("View Message")],s=tH(t.semUser),R=aH(s),d=OG("text-primary")("Reach out to "+(t.semUser.firstName+" to ask a question!")),y=[d,Whe("btn btn-primary d-flex align-items-center w-50 justify-content-center t--livestream-details-messages-link")({href:hF(new fp(t.semUser.id))})([rH("fe fe-message-square mr-2 large")(""),Qe("Send a message to "+t.semUser.firstName)])],I=function(L){return Jhe("btn btn-primary d-flex align-items-center justify-content-center t--livestream-details-connect-with-sem-user")({onClick:$he(o)(zhe(Vhe(a.currentUser)(function(O){return O.profile}))(cH.create)),disabled:L.isDisabled})([rH("fe fe-message-square mr-2 large")(""),Qe("Connect with "+t.semUser.firstName)])},b=[i,I({isDisabled:!1})],T=[i,I({isDisabled:!0}),UG("mt-4 text-secondary small")("Invitation pending")];return Qw("t--livestream-details-guest-presenter-sem-user mb-4")([da(a.currentUser)(function(L){return ya(L.hasAccessToNetwork&&t.semUser.school.allowedToContact)(oH("card")(Qw("card-body")(function(){if(t.semUser.connection instanceof S&&t.semUser.connection.value0.status instanceof Rv)return y;if(t.semUser.connection instanceof S&&t.semUser.connection.value0.status instanceof xl&&t.semUser.connection.value0.initiator instanceof cs||t.semUser.connection instanceof S&&t.semUser.connection.value0.status instanceof ss&&t.semUser.connection.value0.initiator instanceof cs)return T;if(t.semUser.connection instanceof S&&t.semUser.connection.value0.status instanceof xl&&t.semUser.connection.value0.initiator instanceof ls)return l;if(t.semUser.connection instanceof S&&t.semUser.connection.value0.status instanceof ss&&t.semUser.connection.value0.initiator instanceof ls||t.semUser.connection instanceof M)return b;throw new Error("Failed pattern match at Livestream.GuestPresenter.SemUser (line 97, column 17 - line 103, column 53): "+[t.semUser.connection.constructor.name])}())))}),Qhe("text-uppercase text-secondary")("Your guest presenter"),Qw("row align-items-center mt-4")([oH("col-auto")(nH(uH(t.semUser)({initials:R}))(nw.value)),Qw("col")([Khe("mb-1")(s),UG("text-secondary small")(t.semUser.school.name),UG("text-secondary small")(t.semUser.title)]),da(t.semUser.bio)(function(L){return Yhe("mt-4 mb-2 ml-2")(L)})]),da(t.modal)(function(L){return KB(L.value0)(function(O){return o(Th.create(O))})})])}}},n=function(a){return function(t){return function(o){if(o instanceof Th&&o.value0 instanceof yn){if(o.value0.value0 instanceof Ih)return Sp({currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:M.value});if(o.value0.value0 instanceof LG)return Xhe(Zhe(eDe(gU(t.semUser.school.id)(t.semUser.id)({introMessage:o.value0.value0.value0.introMessage}))(function(){return nDe(new sH({introMessage:o.value0.value0.value0.introMessage}))})))(function(){return Sp(t)});throw new Error("Failed pattern match at Livestream.GuestPresenter.SemUser (line 53, column 55 - line 59, column 19): "+[o.value0.value0.constructor.name])}if(t.modal instanceof S&&o instanceof Th&&o.value0 instanceof Me)return aDe(Th.create)(function(u){return{currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:new S(new lH(u))}})(YB(t.modal.value0.value0)(new Me(o.value0.value0)));if(o instanceof Th&&o.value0 instanceof Me)return Sp(t);if(o instanceof cH)return Sp({currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:new S(new lH(XB({schoolName:a.semUser.school.name,context:cS.value,profile:o.value0,vineBelowConnectionLimit:a.vineBelowConnectionLimit})))});if(o instanceof sH)return Sp({currentUser:t.currentUser,modal:t.modal,vineBelowConnectionLimit:t.vineBelowConnectionLimit,semUser:{avatarUrl:t.semUser.avatarUrl,bio:t.semUser.bio,firstName:t.semUser.firstName,id:t.semUser.id,lastName:t.semUser.lastName,school:t.semUser.school,title:t.semUser.title,unreadMessageCountFromSemUser:t.semUser.unreadMessageCountFromSemUser,connection:new S({initiator:cs.value,introMessage:o.value0.introMessage,status:xl.value})}});throw new Error("Failed pattern match at Livestream.GuestPresenter.SemUser (line 52, column 5 - line 52, column 67): "+[a.constructor.name,t.constructor.name,o.constructor.name])}}};return _v("Livestream Guest Presenter SEM user")(function(a){return{init:Sp(uH(a)({modal:M.value})),view:e(a),update:n(a)}})}();var Kw=function(){function e(){}return e.value=new e,e}(),fH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),_H=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),pH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var tDe=Ct(),rDe=an(yS),kG=function(e){var n=function(u){return tDe(uf(u))},a=n(ds("[^a-z0-9\\-_]+")(rDe(Y_)(ay))),t=n(ds("^-|-$")(Y_)),o=n(ds("-{2,}")(Y_));return jm(t)("")(jm(o)("-")(jm(a)("-")(qf(Gm(e)))))};var iDe=k(ze),lDe=pe(ze),Sh=ne(en),BG=ba(),cDe=an(It),Ch=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),sDe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),vDe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),fDe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Fh=function(){function e(){}return e.value=new e,e}(),_De=function(){function e(){}return e.value=new e,e}();var dH=function(e){var n=function(t){return t.key+("="+t.value)},a=function(t){return t.length===0?"":"?"+lr("&")(t)};return a(iDe(n)(e))};var mH=function(e){return lDe(e)(function(n){if(n instanceof Ch)return{key:"utm_cv_source",value:n.value0};if(n instanceof sDe)return{key:"utm_source",value:n.value0};if(n instanceof vDe)return{key:"utm_campaign",value:n.value0};if(n instanceof fDe)return{key:"utm_content",value:n.value0};throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 198, column 3 - line 206, column 36): "+[n.constructor.name])})};var Yw=function(e){return function(n){return function(a){var t=function(){if(e instanceof Fh)return"i";if(e instanceof _De)return"o";throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 114, column 12 - line 116, column 24): "+[e.constructor.name])}();return"/experts/profile/"+(t+("/"+(Sh(n.id)+("-"+(kG(n.name)+dH(mH(a)))))))}}};var hH=function(e){return function(n){return function(a){var t=function(){if(n instanceof Kw)return[];if(n instanceof fH)return[{key:"theme",value:Sh(BG(n.value0))}];if(n instanceof _H)return[{key:"package",value:Sh(BG(n.value0))}];if(n instanceof pH)return[{key:"packageOffer",value:Sh(BG(n.value0))}];throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 148, column 5 - line 156, column 71): "+[n.constructor.name])}(),o=cDe(t)(mH(a));return"/experts/advising/book/"+(Sh(e.id)+("-"+(kG(e.name)+dH(o))))}}};var pDe=ne(en),dDe=ba(),mDe=Ua(he),HG=Va(Y),Ss=Te(he),DH=Sm(Y),hDe=k(ze),DDe=Gt($e)()(),Xw=Te($e),gDe=Yi()(),RDe=Br(Y),gH=Gt(he)()(),Zw=Gt(Y)()(),RH=function(e){return function(n){var a=new Ch("sp-guest-presenter-card-from-conference-"+pDe(dDe(e))),t=function(d){return mDe("badge badge-light bg-light text-dark mr-3")([HG("fe fe-tag mr-2")(""),Qe(d.name)])},o=Yw(Fh.value)(n.entity)([a]),u=function(d){return function(y){return Ss("mb-3")([DH("text-secondary text-uppercase mb-2")(d),y])}},i=Ss("mt-4")([da(fe(n.entity.shortEducation))(function(d){return u("Education")(Qe(d))}),u("Bio")(km(n.entity.bio)),Y4(ri(n.entity.tags))(u("Specialties")(Se(hDe(t)(n.entity.tags))))]),l=Ss("row")([da(fe(n.entity.imageUrl))(function(d){return DDe("btn btn-link text-body p-0 m-0")({href:o,target:"_blank"})(Xw("col-auto my-auto")(Xw("avatar avatar-md")(gDe("avatar-img rounded-circle")({src:d}))))}),Ss("col-auto my-auto")([DH("text-uppercase text-secondary mb-2")("Advisor"),RDe("m-0")(n.entity.name)]),Ss("col text-center text-md-right my-auto")([Xw("d-none d-md-block")(gH("btn btn-sm btn-outline-primary t--open-message-modal")({href:o,target:"_blank"})([HG("fe fe-message-square mr-2")(""),Qe("Message")])),Xw("d-block d-md-none")(gH("btn btn-sm btn-outline-primary t--open-message-modal")({href:o,target:"_blank"})([HG("fe fe-message-square mr-2")(""),Qe("Message")]))])]),s=hH(n.entity)(Kw.value)([a]),R=da(n.advisingConfig)(function(d){return Ss("mt-4")([Ss("d-none d-md-block")([da(d.freeConsultationDurationMinutes)(function(y){return Zw("btn btn-primary px-3 mr-3")({href:o,target:"_blank"})("Book a free consultation")}),Zw("btn btn-outline-primary px-3 mr-3")({href:s,target:"_blank"})("Book a session")]),Ss("d-block d-md-none text-center")([da(d.freeConsultationDurationMinutes)(function(y){return Zw("btn btn-primary mr-3")({href:o,target:"_blank"})("Book a free consultation")}),Zw("btn btn-outline-primary")({href:s,target:"_blank"})("Book a session")])])});return Ss("mt-4 mt-md-0 t--service-provider-guest-presenter")([l,i,R])}};var Gh=function(e){return function(n){return function(a){return function(t){if(n instanceof Zf)return vH({semUser:n.value0,currentUser:a,vineBelowConnectionLimit:t.vineBelowConnectionLimit});if(n instanceof ms)return RH(e)(n.value0);throw new Error("Failed pattern match at Livestream.GuestPresenter.GuestPresenter (line 16, column 1 - line 16, column 78): "+[e.constructor.name,n.constructor.name,a.constructor.name,t.constructor.name])}}}};var yH="/experts/essay-review";var yDe=Gt(he)()(),wDe=Va(Y),Cp=Te(Y),Ru=Te($e),$o=Te(he),wH=Br(Y),bH=Yi()(),EH=pe(ze),bDe=Ua(Y),IH=pe(ae),EDe=Jt(he),TH=Ho(Y),qG=Gt(Y)()(),IDe=ne(en),Mh=k(ae),TDe=HR(he)()(),SDe=ne($u),Ah=function(e){var n=function(a){return function(t){return yDe("mr-3")({href:t,target:"_blank"})([Qe(a),wDe("fe fe-external-link ml-1")("")])}};return Se([Cp("text-uppercase text-muted small mb-2")("School information"),Ru("card shadow-none")($o("card-body")([wH("mb-1")(e.name),Cp("text-uppercase small text-secondary")(e.cityState),$o("mt-3 d-none d-md-block")([n("Stats")(ew(s0.value)(e.slug)),n("Cost")(ew(ah.value)(e.slug)),n("Map")(ew(s0.value)(e.slug))]),$o("mt-3 d-md-none")([n("Stats")(lF(s0.value)(e.slug)),n("Cost")(lF(ah.value)(e.slug))])]))])},CDe=function(e){var n=function(i){return bH("avatar-img rounded-circle")({src:i})},a=lr(" ")(EH(qo(" ")(e.fullName))(Ll(1))),t=bDe("avatar-title rounded-circle text-uppercase")(a),o=function(i){return ke("")(IH(i)(function(l){return" '"+l}))},u=function(i){return function(l){return EDe("")([TH("")(i+": "),Qe(l)])}};return Se([Cp("text-uppercase text-muted small mb-2")("Your host"),$o("row align-items-center mb-4 pr-4")([Ru("col-auto")(Ru("avatar")(bn(t)(n)(e.pictureUrl))),Ru("col")($o("row align-items-center justify-content-between")([Cp("col-12 col-md-auto x-large")(e.fullName),Ru("col-12 col-md-auto")(da(e.allStreamsUrl)(function(i){return qG("t--host-streams")({href:i})("See all "+(IDe(e.totalStreams)+(" streams by "+e.firstName)))}))]))]),Se(Uo([Mh(u("Undergrad College"))(IH(e.undergrad.college)(function(i){return i+o(e.undergrad.year)})),Mh(u("Major"))(e.undergrad.major),Mh(u("Graduate College"))(e.gradCollege),Mh(u("Work Experience"))(e.workExperience),Mh(u("My Admissions Story"))(e.admissionsStory)]))])},FDe=$o("rounded bg-tan mb-3 overflow-hidden")([$o("row")([Ru("col-12 col-md")($o("m-4")([qu(Y)("")("Get your essay reviewed by an expert"),Jt(Y)("small")(` CollegeVine\u2019s network of admissions experts have helped students write essays that stand out to admissions officers. Work with an expert today to craft the perfect essay. `),qG("btn btn-dark px-4")({href:u0({key:"utm_cv_source",value:"essay-livestream-cta"})(yH)})("Submit my essay for review")])),Ru("d-none d-md-block col-12 col-md-auto")(gu()()("h-100")({src:"/img/livestreams/mkt-239-livestreams-advisors-essays-cta.svg"}))])]),GDe=function(e){return Se([Cp("text-uppercase text-muted small mb-2")("Description"),$o("")([Ru("col-6 col-md-4 float-right")(bH("img-fluid rounded")({src:e.imageUrl})),$o("")(EH(qo(` `)(e.description))(function(n){return TDe("")({dangerouslySetInnerHTML:{__html:n}})([])}))])])},MDe=function(e){var n=e.paths.collegeFair+("?utm_cv_source=banner-livestream-watch-"+SDe(e.conference.id));return Ru("card mt-3")(Ru("card-body py-3")($o("row align-items-center")([Ru("col-12 col-md-auto mb-3 mb-md-0")(Cp("bg-warning rounded px-3 py-1 small mt-2 mt-md-0")("SPECIAL EVENT")),$o("col-12 col-md mb-3 mb-md-0")([Qe("This livestream was part of the "),TH("")("\u{1F3AA} Student panel college fair"),Qe(". Recordings for all 100+ Q&A panels are available.")]),Ru("col-12 col-md-auto")(qG("btn btn-sm btn-outline-primary px-3")({href:n})("See all recordings"))])))},eb=function(e){var n=function(){if(e.conference.presenter instanceof S&&e.conference.guestPresenter instanceof S||e.conference.presenter instanceof S&&e.conference.guestPresenter instanceof M||e.conference.presenter instanceof M&&e.conference.guestPresenter instanceof S)return"col-12 col-md-6";if(e.conference.presenter instanceof M&&e.conference.guestPresenter instanceof M)return"col-12";throw new Error("Failed pattern match at Livestream.AboutLivestream (line 68, column 16 - line 72, column 35): "+[e.conference.presenter.constructor.name,e.conference.guestPresenter.constructor.name])}();return Se([ya(e.conference.collegeFair)(MDe(e)),function(){return e.featureFlags.mkt293LivestreamsEssayReviewCtaForAdvisorStreams&&e.conference.guestPresenter instanceof S&&e.conference.guestPresenter.value0 instanceof ms?FDe:$n}(),Ru("card")($o("card-body")([wH("text-center mb-4")("About this livestream"),$o("row")([$o(n)([da(e.conference.school)(function(a){return Ru("d-md-none")(Ah(a))}),GDe(e.conference)]),$o(n)([da(e.conference.guestPresenter)(function(a){return Gh(e.conference.id)(a)(e.user)({vineBelowConnectionLimit:e.vineBelowConnectionLimit})}),da(e.conference.school)(function(a){return Ru("d-none d-md-block")(Ah(a))}),da(e.conference.presenter)(CDe)])])]))])};var SH=ln(on),ADe=SH(Kn),LDe=Ma(Ve),PDe=Pt(Ar),CH=J(ca),nb=J(wn),xDe=SH(_a),ab=J(na),FH=Te(Y),tb=qu(Y),rb=J_(he),ob=H_(he),xv=Hf(he),vl=q_(Y),ub=W_(he),ib=pe(ze),Nv=os(Y),lb=os($e),cb=Jn(Y)()(),sb=Yn(ga),NDe=Oi(Xa),jDe=k(ze),ODe=an(Hs(Hs(Rg))),UDe=Oi(Bu),kDe=Oi(q8),BDe=ne($u),HDe=kt(Y),qDe=Te(he),vb=function(){function e(){}return e.value=new e,e}(),GH=function(){function e(){}return e.value=new e,e}(),Lh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MH=function(){function e(){}return e.value=new e,e}(),AH=function(){function e(){}return e.value=new e,e}(),LH=function(e){return function(n){return function(a){var t=function(u){return ADe(LDe(PDe(u)(function(i){return CH(AH.value)})))(function(){return nb({ctas:n.ctas,stage:GH.value,error:M.value})})},o=function(u){if(u instanceof rl)return hO({fromConference:e.conference.id,cta:u.value0.conferenceId});if(u instanceof ol)return dO({fromConference:e.conference.id,ctaId:u.value0.id});if(u instanceof ul)return mO({fromConference:e.conference.id,ctaId:u.value0.id});if(u instanceof il)return pO({fromConference:e.conference.id,ctaId:u.value0.id});throw new Error("Failed pattern match at Livestream.Ctas.LaunchCtas (line 228, column 15 - line 236, column 83): "+[u.constructor.name])};if(a instanceof Lh)return t(xDe(o(a.value0))(function(){return CH(MH.value)}));if(a instanceof MH)return nb({ctas:n.ctas,error:n.error,stage:vb.value});if(a instanceof AH)return nb({ctas:n.ctas,stage:vb.value,error:new S("That didn't work for some reason, try again")});throw new Error("Failed pattern match at Livestream.Ctas.LaunchCtas (line 211, column 24 - line 221, column 92): "+[a.constructor.name])}}},PH=function(e){return nb({stage:vb.value,error:M.value,ctas:e})},WDe=function(){return Ao(iu(_n)([jl.value,new mt(" "),Ol.value,new mt(", "),kl.value,new mt(":"),Di.value,new mt(" "),Bl.value]))}(),xH=function(e){return function(n){if(e.ctas.length===0)return $n;var a=function(L){return L instanceof il?ab(L.value0):M.value},t=function(L){return L instanceof ol?ab(L.value0):M.value},o=function(L){return L instanceof ul?ab(L.value0):M.value},u=function(L){return L instanceof rl?ab(L.value0):M.value},i=function(){if(e.stage instanceof vb)return $n;if(e.stage instanceof GH)return FH("position-absolute-fullsize d-flex align-items-center justify-content-center bg-semi-transparent-white")("Opening...");throw new Error("Failed pattern match at Livestream.Ctas.LaunchCtas (line 190, column 24 - line 195, column 23): "+[e.stage.constructor.name])}(),l=function(L){return L.length===0?$n:Se([tb("")("Referrals"),rb("table table-sm mb-0")([ob("")([xv("")([vl("")("Title"),vl("")("Actions")])]),ub("")(ib(L)(function(O){return xv("t--cta t--cta-referral")([Nv("pt-3")(O.title),lb("text-nowrap")(cb("btn btn-white btn-sm px-4 t--open")({onClick:sb(n)(new Lh(new il(O)))})("Launch CTA"))])}))])])},s=function(L){return L.length===0?$n:Se([tb("")("General"),rb("table table-sm mb-0")([ob("")([xv("")([vl("")("Title"),vl("")("URL"),vl("")("Link Text"),vl("")("Actions")])]),ub("")(ib(mf(NDe(function(O){return O.title}))(L))(function(O){return xv("t--cta t--cta-general")([Nv("pt-3")(function(){var $=St(O.autoDisplayMinutesFromStart);return $?"\u23F0 ":""}()+O.title),Nv("pt-3")(O.url),Nv("pt-3")(O.buttonText),lb("text-nowrap")(cb("btn btn-white btn-sm px-4 t--open")({onClick:sb(n)(new Lh(new ol(O)))})("Launch CTA"))])}))])])},R=function(L){return L.length===0?$n:Se([tb("")("Featured Service Providers"),rb("table table-sm mb-0")([ob("")([xv("")([vl("")("Advisors"),vl("")("Link Text"),vl("")("Actions")])]),ub("")(ib(L)(function(O){return xv("t--cta t--cta-featured-sp")([Nv("pt-3")(lr(", ")(jDe(function($){return $.name})(O.providers))),Nv("pt-3")(O.linkText),lb("text-nowrap")(cb("btn btn-white btn-sm px-4 t--open")({onClick:sb(n)(new Lh(new ul(O)))})("Launch CTA"))])}))])])},d=function(L){return L.length===0?$n:Se([tb("")("Upcoming events"),rb("table table-sm mb-0")([ob("")([xv("")([vl("")("Livestream"),vl("")("Date & Time"),vl("")("Actions")])]),ub("")(ib(mf(ODe(UDe(function(O){return O.startTime}))(kDe(function(O){return O.conferenceId})))(L))(function(O){return xv("t--cta t--cta-stream-"+BDe(O.conferenceId))([Nv("pt-3")(O.title),Nv("pt-3")(WDe(O.startTime)+(" "+Yf)),lb("text-nowrap")(cb("btn btn-white btn-sm px-4 t--open")({onClick:sb(n)(new Lh(new rl(O)))})("Launch CTA"))])}))])])},y=$r(a)(e.ctas),I=$r(t)(e.ctas),b=$r(o)(e.ctas),T=$r(u)(e.ctas);return Se([HDe("")("Calls to action"),qDe("t--ctas position-relative")([da(e.error)(function(L){return FH("alert alert-danger")(L)}),d(T),s(I),R(b),l(y),i])])}};var NH=ql(Rc(Dc)),jH=ee(_a),JDe=EC(_e),Fp=function(){function e(){}return e.value=new e,e}(),Ph=function(){function e(){}return e.value=new e,e}(),xh=function(){function e(){}return e.value=new e,e}(),OH=NH("profile_validate_username_path")(function(e){return function(n){return jH(e({username:n}))(gc(function(a){return JDe("username validation result")(a)(function(t){return t==="available"?new S(Fp.value):t==="taken"?new S(Ph.value):t==="invalid"?new S(xh.value):M.value})}))}}),UH=NH("profile_set_username_path")(function(e){return function(n){return jH(e({username:n}))(Yt)}}),kH={eq:function(e){return function(n){return e instanceof Fp&&n instanceof Fp||e instanceof Ph&&n instanceof Ph||e instanceof xh&&n instanceof xh}}};var $De=we(or(wl()(Ni(Ni(yl)()({reflectSymbol:function(){return"username"}})(Bt))()({reflectSymbol:function(){return"result"}})(kH)))),WG=Te(he),BH=Te($e),zDe=Jt(Y),VDe=gu()(),Nh=Te(Y),QDe=so()(),KDe=Yn(co),HH=Jn(Y)()(),YDe=Yn(ga),XDe=Al(pv(Fl)),JG=ln(on)(Kn),ZDe=cr(wn),$G=Ma(Ve),ege=Zu(Ga),w0=J(wn),nge=k(Ga),age=ee(_a),tge=wf(Ar),qH=J(ca),WH=function(){function e(){}return e.value=new e,e}(),JH=function(){function e(){}return e.value=new e,e}(),$H=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),zH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),VH=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),QH=function(){function e(){}return e.value=new e,e}(),KH=function(){function e(){}return e.value=new e,e}(),zG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),VG=function(){function e(){}return e.value=new e,e}(),YH=function(e){return function(n){var a=e.username!==""&&Tt(e.updating)&&$De(e.validated)(new S({username:e.username,result:Fp.value}));return Se([WG("row")([BH("col col-md-6")(zDe("")("This username will keep your identity private in CollegeVine communities, livestreams, and on peer essay review leaderboards.")),BH("col-6 d-none d-md-block")(VDe("img-fluid")({src:"/img/illustrations/clipboards.svg"}))]),Nh("")("Your username:"),WG("input-group")([QDe("form-control")({autoFocus:!0,type:"text",value:e.username,onChange:KDe(n)(function(t){return Me.create($H.create(Ts(t)))})})]),WG("d-flex mt-3")([HH("btn btn-light mr-3")({onClick:YDe(n)(new yn(VG.value))})("Cancel"),HH("btn btn-primary t--submit-username")({type:"button",disabled:!a,onClick:XDe(n)(function(){return a?new S(new Me(QH.value)):M.value}())})("Save")]),da(e.validated)(function(t){if(t.result instanceof Fp)return $n;if(t.result instanceof Ph)return Nh("small text-danger")("Sorry, this username is already taken");if(t.result instanceof xh)return Nh("small text-danger")("Usernames can only contain letters, numbers, or these symbols: _ - . with no spaces");throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 80, column 37 - line 86, column 121): "+[t.result.constructor.name])}),da(e.updating)(function(t){if(t instanceof WH)return Nh("text-success")("Updating your username...");if(t instanceof JH)return Nh("small text-danger")("There was an error saving your username. Please try again.");throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 87, column 30 - line 91, column 95): "+[t.constructor.name])})])}},XH=function(e){return function(n){if(n instanceof Me){if(n.value0 instanceof $H)return JG(ZDe(n.value0.value0!=="")($G(ege(Qt(100))(new Me(new zH(n.value0.value0))))))(function(){return w0({updating:e.updating,validated:e.validated,username:n.value0.value0})});if(n.value0 instanceof zH){if(n.value0.value0===e.username)return JG($G(nge(function(){var a=VH.create(n.value0.value0);return function(t){return Me.create(a(t))}}())(OH(n.value0.value0))))(function(){return w0({username:e.username,validated:M.value,updating:M.value})});if(Je)return w0(e)}if(n.value0 instanceof VH)return w0({updating:e.updating,username:e.username,validated:new S({username:n.value0.value0,result:n.value0.value1})});if(n.value0 instanceof QH)return JG($G(age(tge(UH(e.username)))(function(a){if(a instanceof Oe)return qH(new yn(new zG(e.username)));if(a instanceof Ae)return qH(new Me(KH.value));throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 119, column 7 - line 123, column 48): "+[a.constructor.name])})))(function(){return w0({username:e.username,validated:M.value,updating:new S(WH.value)})});if(n.value0 instanceof KH)return w0({username:e.username,validated:e.validated,updating:new S(JH.value)});throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 100, column 31 - line 127, column 48): "+[n.value0.constructor.name])}if(n instanceof yn)return w0(e);throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 99, column 1 - line 99, column 55): "+[e.constructor.name,n.constructor.name])}},ZH=function(e){return{username:e,validated:M.value,updating:M.value}};var rge=zr(),oge=Ep($e)()(),uge=Ua(he),ige=Va(Y),lge=function(e){var n=bm(e);return function(){return function(a){return function(t){var o=rge(a);return oge({placement:$w,overlay:Se(n(t)),overlayStyle:et(o.overlayStyle)(dt({width:"15rem"}))})(uge("d-inline-flex align-items-center text-secondary "+o.className)([ige("d-inline-block fe fe-help-circle "+function(){var u=hi(o.anchorText);return u?"":"mr-2"}())(""),Qe(o.anchorText)]))}}}},fb=function(e){var n=lge(e)();return function(a){return n({className:a,anchorText:""})}};var QG=function(e){return e};var cge=function(e){return e},eq=function(e){var n=Xe(e),a=cge(e.Eq0());return{compare:function(t){return function(o){return ZL(n(t)(o))}},Eq0:function(){return a}}};var nq=xn(Pn),jh=Ln(nq)(Fn(Cn)),aq=Mn(Gn),Oh=An(aq),tq=On(jn),Uh=Nn(tq),sge=k(ae),Gp=function(){function e(){}return e.value=new e,e}(),Mp=function(){function e(){}return e.value=new e,e}(),Ap=function(){function e(){}return e.value=new e,e}(),Lp=function(){function e(){}return e.value=new e,e}(),Pp=function(){function e(){}return e.value=new e,e}(),b0=function(){function e(){}return e.value=new e,e}(),vge={to:function(e){if(e instanceof ye)return Gp.value;if(e instanceof ie&&e.value0 instanceof ye)return Mp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ye)return Ap.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ye)return Lp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ie&&e.value0.value0.value0.value0 instanceof ye)return Pp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ie&&e.value0.value0.value0.value0 instanceof ie)return b0.value;throw new Error("Failed pattern match at Common.Persona (line 25, column 1 - line 25, column 34): "+[e.constructor.name])},from:function(e){if(e instanceof Gp)return new ye(je.value);if(e instanceof Mp)return new ie(new ye(je.value));if(e instanceof Ap)return new ie(new ie(new ye(je.value)));if(e instanceof Lp)return new ie(new ie(new ie(new ye(je.value))));if(e instanceof Pp)return new ie(new ie(new ie(new ie(new ye(je.value)))));if(e instanceof b0)return new ie(new ie(new ie(new ie(new ie(je.value)))));throw new Error("Failed pattern match at Common.Persona (line 25, column 1 - line 25, column 34): "+[e.constructor.name])}},rq=Un(vge)(jh(jh(jh(jh(jh(nq)(aq))(Oh))(Oh))(Oh))(Oh))(Uh(Uh(Uh(Uh(Uh(tq))))))(Oh);var fge={eq:function(e){return function(n){return e instanceof Gp&&n instanceof Gp||e instanceof Mp&&n instanceof Mp||e instanceof Ap&&n instanceof Ap||e instanceof Lp&&n instanceof Lp||e instanceof Pp&&n instanceof Pp||e instanceof b0&&n instanceof b0}}},_b=function(e){if(e instanceof Gp)return"student";if(e instanceof Mp)return"transfer_student";if(e instanceof Ap)return"counselor";if(e instanceof Lp)return"iec";if(e instanceof Pp)return"parent";if(e instanceof b0)return"sem_user";throw new Error("Failed pattern match at Common.Persona (line 43, column 13 - line 49, column 24): "+[e.constructor.name])},oq=function(){var e=In(_b)(rq);return aa(Ke)({parse:function(n){return n==="unknown"?new S(M.value):sge(S.create)(e(n))},default:M.value,diagnosticName:"User Persona"})}(),uq=function(e){if(e instanceof Gp)return"Student";if(e instanceof Mp)return"Transfer Student";if(e instanceof Ap)return"High School Counselor";if(e instanceof Lp)return"Independent Educational Counselor (IEC)";if(e instanceof Pp)return"Parent";if(e instanceof b0)return"SEM User";throw new Error("Failed pattern match at Common.Persona (line 33, column 11 - line 39, column 24): "+[e.constructor.name])},iq=function(){return gf(fge)(b0.value)(rq)}();function lq(){typeof fbq!="undefined"&&fbq("trackCustom","LivestreamRegistrationComplete")}var _ge=J(at),pge=es(qc(!1));var pb=function(e){if(es(ec(pge)))return _ge(Ee);if(Je)return lq;throw new Error("Failed pattern match at Livestream.Upcoming.Register.Tracking (line 18, column 1 - line 18, column 53): "+[e.constructor.name])};var KG=k(Ur);var YG=ee(bl),dge=J(lf),mge=Eo(S2);var cq=function(e){return e},sq=function(e){return function(n){return KG(function(a){return a.result})(e({substring:n,position:0}))}};var Ic={map:function(e){return function(n){var a=KG(function(t){return{result:e(t.result),suffix:t.suffix}});return function(t){return a(n(t))}}}},E0=function(e){return function(n){return new Ae({pos:n.position,error:e})}},I0={apply:function(e){return function(n){return function(a){return YG(e(a))(function(t){return YG(n(t.suffix))(function(o){return dge({result:t.result(o.result),suffix:o.suffix})})})}}},Functor0:function(){return Ic}};var Cs={bind:function(e){return function(n){return function(a){return YG(e(a))(function(t){return cq(n(t.result))(t.suffix)})}}},Apply0:function(){return I0}};var Fs={pure:function(e){return function(n){return new Oe({result:e,suffix:n})}},Apply0:function(){return I0}};var hge={Applicative0:function(){return Fs},Bind1:function(){return Cs}},vq={tailRecM:function(e){return function(n){var a=function(t){if(t.result instanceof Wt)return new Wt({state:t.result.value0,str:t.suffix});if(t.result instanceof Ot)return new Ot({result:t.result.value0,suffix:t.suffix});throw new Error("Failed pattern match at StringParser.Parser (line 87, column 5 - line 87, column 68): "+[t.constructor.name])};return function(t){return mge(function(o){return KG(a)(cq(e(o.state))(o.str))})({state:n,str:t})}}},Monad0:function(){return hge}};var T0={alt:function(e){return function(n){return function(a){var t=e(a);if(t instanceof Ae){if(a.position===t.value0.pos)return n(a);if(Je)return new Ae({error:t.value0.error,pos:t.value0.pos})}return t}}},Functor0:function(){return Ic}},Dge={empty:E0("No alternative"),Alt0:function(){return T0}},fq={Applicative0:function(){return Fs},Plus1:function(){return Dge}};var _q=ha(T0),XG=ee(Cs),ZG=J(Fs),gge=k(Ic);var Rge=ro(I0),yge=Zn(I0);var eM=function(e){return function(n){return _q(e)(E0(n))}},nM=function(e){return function(n){var a=e(n);return a instanceof Ae?new Ae({pos:n.position,error:a.value0.error}):a}},Tc=function(e){return _q(XG(e)(function(n){return ZG(Ee)}))(ZG(Ee))};var pq=function(e){return function(n){return new ui(e,n)}};var wge=function(e){return function(n){var a=e(n);if(a instanceof Oe){var t=n.position65535;return t?e(n):Dq(a.value0)}if(a instanceof M)return e(n);throw new Error("Failed pattern match at StringParser.CodePoints (line 57, column 3 - line 65, column 27): "+[a.constructor.name])})}(),jv=function(e){return nM(hq(Tge)(function(n){var a=e(n);return a?Dq(n):E0("Character "+(gq(n)+" did not satisfy predicate"))}))},Ei=function(e){return eM(jv(function(n){return n===e}))("Could not match character "+gq(e))};var Sge=function(e,n,a){var t=0,o;return function(u){if(t===2)return o;if(t===1)throw new ReferenceError(e+" was needed before it finished initializing (module "+n+", line "+u+")",n,u);return t=1,o=a(),t=2,o}},Cge=Ct(),aM=k(Ic),Fge=Il(eR)(Rt),Gge=k(qI),ho=ln(on)(Cs),zo=Et(Ic),Gs=J(Fs),zu=ha(T0);var xp=ro(I0),Ov=ee(Cs),yq=Il(uu)(Rt);var wr=function(e){return Cge(ty(e))},tM=function(e){return aM(function(){var n=Gge(ii);return function(a){return Fge(n(a))}}())(dq(jv(e)))},wq=function(e){return ho(zo(e))(function(){return ho(zo(db(e)))(function(){return Gs(Ee)})})},db=function(e){return zu(wq(e))(Gs(Ee))},bq=function(e){return ho(zo(jv(e)))(function(){return ho(zo(db(jv(e))))(function(){return Gs(Ee)})})},Mge=Ei(wr(0));var Eq=Ei(` `),Iq=function(e){return e===" "||e===" "},Age=jv(Iq),rM=bq(Iq),Lge=function(e){var n=e>="0"&&e<="9",a=e>="a"&&e<="z"||e>="A"&&e<="Z";return n||a},Sc=function(e){return function(n){return function(a){return a>=e&&a<=n}}},Pge=Sc(wr(33))(wr(126)),xge=jv(Pge),oM=function(e){return function(n){return Vc(ii(n))(e)}},mb=function(e){return Sc(wr(1))(wr(8))(e)||Sc(wr(14))(wr(31))(e)||oM("\v\f\x7F")(e)},Nge=function(e){return Sc(wr(33))(wr(39))(e)||Sc(wr(42))(wr(91))(e)||Sc(wr(93))(wr(126))(e)||mb(e)},jge=function(e){return Sc(wr(33))(wr(90))(e)||Sc(wr(94))(wr(126))(e)||mb(e)},Oge=jv(mb),Uge=function(e){return oM(ii(wr(33)))(e)||Sc(wr(35))(wr(91))(e)||Sc(wr(93))(wr(126))(e)||mb(e)};var Tq=Ei("\r"),Sq=zo(xp(Tq)(Eq)),Np=function(){var e=wq(xp(Sq)(rM)),n=xp(rM)(Tc(xp(Sq)(rM)));return zu(n)(e)}(),Cq=function(){var e=ho(zo(Ei("\\")))(function(){return zu(xge)(zu(Age)(zu(Eq)(zu(Tq)(zu(Oge)(Mge)))))});return Ov(e)(function(n){return Gs("\\"+ii(n))})}(),kge=zu(tM(Uge))(Cq),Bge=function(){var e=ho(zo(Ei('"')))(function(){return Ov(S0(xp(Tc(Np))(kge)))(function(n){return ho(zo(Tc(Np)))(function(){return ho(zo(Ei('"')))(function(){return Gs(n)})})})});return aM(function(n){return'"'+(yq(n)+'"')})(e)}(),Fq=Sge("comment","Text.Email.Parser",function(){return ho(zo(Ei("(")))(function(){return ho(db(zu(bq(Nge))(zu(zo(Cq))(zu(Fq(155))(Np)))))(function(){return ho(zo(Ei(")")))(function(){return Gs(Ee)})})})}),Hge=Fq(152),hb=db(zu(Hge)(Np)),qge=ho(Tc(hb))(function(){return ho(zo(Ei("[")))(function(){return Ov(S0(xp(Tc(Np))(tM(jge))))(function(e){return ho(Tc(Np))(function(){return ho(zo(Ei("]")))(function(){return ho(Tc(hb))(function(){return Gs("["+(yq(e)+"]"))})})})})})}),Wge=function(){var e=function(n){return Lge(n)||oM("!#$%&'*+/=?^_`{|}~-")(n)};return tM(e)}(),Gq=function(){var e=ho(zo(Tc(hb)))(function(){return Ov(zu(Wge)(Bge))(function(a){return ho(zo(Tc(hb)))(function(){return Gs(a)})})}),n=mq(e)(Ei("."));return aM(Fu(eR)(Rt)("."))(n)}(),Jge=zu(Gq)(qge),$ge=Gq,uM=Ov($ge)(function(e){return Ov(Ei("@"))(function(){return Ov(Jge)(function(n){return Ov(Rq)(function(){return Gs({localPart:e,domainPart:n})})})})});var Vge=function(e){return sq(uM)(e)},Qge=function(){var e=kr(El)(ne(af()()(rf({reflectSymbol:function(){return"error"}})(of({reflectSymbol:function(){return"pos"}})(en))(rr))));return function(n){return e(Vge(n))}}(),kh=function(e){var n=Qge(e);if(n instanceof Ae)return!1;if(n instanceof Oe)return!0;throw new Error("Failed pattern match at Text.Email.Validate (line 35, column 5 - line 37, column 25): "+[n.constructor.name])};var iM=Ho(Y),Db=so()(),Kge=Yn(co),Mq=BN(he)()(),Aq=pe(ae),Lq=Al($T(Fl)),Pq=k(ae),gb=HN(Y)()(),xq=pe(ze),Bh=Te(he),Yge=KC(),lM=ne(en),Xge=bI(_n)(lt),Zge=z_(he)()(),C0=Te($e),Nq=Jn(Y)()(),eRe=Yn(ga),nRe=ir(Bo),aRe=ne($u),Hh=J(wn),jq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Oq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Uq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Bq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),jp=function(e){return function(n){return function(a){return function(t){var o=function(d){return function(y){return function(I){return function(b){return function(T){return function(L){return Se([iM("")(y),Db("form-control")({type:"text",name:"livestream_public_registration_form["+(d+"]"),value:b,placeholder:I,autoFocus:L.autoFocus,onChange:Kge(t)(function(O){return T(Ts(O))})})])}}}}}},u=[iM("")("I'm a..."),Mq("form-control")({name:"livestream_public_registration_form[i_am_a]",value:ke("")(Aq(a.persona)(_b)),onChange:Lq(t)(function(d){return Pq(Bq.create)(oq(bG(d)))})})([ya(Tt(a.persona))(gb("")({value:""})("Select one...")),Se(xq(iq)(function(d){return gb("")({value:_b(d)})(uq(d))}))])],i=Bh("d-flex align-items-center")([Qe("Already have an account? "),Yge({text:"Log in",className:"btn btn-link px-2",auth0ActiveTab:Yy,openInNewTab:!1})]),l=[iM("")("Graduation year"),Mq("form-control")({name:"livestream_public_registration_form[high_school_graduation_year]",value:ke("")(Aq(a.gradYear)(lM)),onChange:Lq(t)(function(d){return Pq(kq.create)(Jc(bG(d)))})})([ya(Tt(a.gradYear))(gb("")({value:""})("Select one...")),Se(xq(n.allowedGradYears)(function(d){return gb("")({value:lM(d)})(lM(d))}))])],s=ke({path:"",token:""})(Oy("livestreams_register_path")),R=Xge([kh(a.email),a.firstName!=="",a.lastName!=="",St(a.gradYear),St(a.persona)]);return Se([i,Zge("")({action:s.path,method:"POST"})([C0("row")(C0("col")(o("email")("Email")("Your email")(a.email)(jq.create)({autoFocus:e.autoFocus}))),C0("row mt-3")(C0("col")(o("first_name")("First name")("Your first name")(a.firstName)(Oq.create)({autoFocus:!1}))),C0("row mt-3")(C0("col")(o("last_name")("Last name")("Your last name")(a.lastName)(Uq.create)({autoFocus:!1}))),Bh("row mt-3")([Bh("col-6")(l),Bh("col-6")(u)]),C0("row mt-3")(Bh("col-12")([Nq("btn btn-primary w-100 mt-3 t--register")({type:"submit",disabled:!R,onClick:eRe(pb)(Ee)})("Register"),da(e.cancelButton)(function(d){return Nq("btn btn-outline-primary w-100 mt-3 t--cancel-registration")({type:"button",onClick:nRe(d.click)})(d.text)})])),Db("")({type:"hidden",name:"authenticity_token",value:s.token}),Db("")({type:"hidden",name:"register_for_conference_id",value:aRe(n.conference.id)}),Db("")({type:"hidden",name:"utm_cv_source",value:n.paths.utmSource})])])}}}},Op=function(e){return function(n){if(n instanceof jq)return Hh({firstName:e.firstName,gradYear:e.gradYear,lastName:e.lastName,persona:e.persona,email:n.value0});if(n instanceof Oq)return Hh({email:e.email,gradYear:e.gradYear,lastName:e.lastName,persona:e.persona,firstName:n.value0});if(n instanceof Uq)return Hh({email:e.email,firstName:e.firstName,gradYear:e.gradYear,persona:e.persona,lastName:n.value0});if(n instanceof kq)return Hh({email:e.email,firstName:e.firstName,lastName:e.lastName,persona:e.persona,gradYear:new S(n.value0)});if(n instanceof Bq)return Hh({email:e.email,firstName:e.firstName,gradYear:e.gradYear,lastName:e.lastName,persona:new S(n.value0)});throw new Error("Failed pattern match at Livestream.Register.Anonymous (line 176, column 16 - line 186, column 36): "+[n.constructor.name])}},Up=function(){return{email:"",firstName:"",lastName:"",gradYear:M.value,persona:M.value}}();var Hq=Te(he),tRe=fb(Y),rRe=Gt(Y)()(),kp=function(e){return Se([Hq("")([Qe(` For college information sessions, we may tell the college that you attended. You can opt out anytime in your profile. `),tRe("")(` The only information we may share with colleges when you attend their events includes your name, email, graduation year, and whether you\u2019re a student, parent, or school counselor. `)]),Hq("")([Qe(` By completing this registration form you agree to CollegeVine\u2019s Website Terms and Conditions, which can be found `),rRe("")({href:e.paths.termsAndConditions})("here"),Qe(".")])])};var cM={eq:function(e){return function(n){return e===n}}};var Ms=ln(on)(Kn),oRe=Xi(Ve),qq=Sa(),uRe=yi(qq(B({reflectSymbol:function(){return"author"}})(qq(B({reflectSymbol:function(){return"cvid"}})(_e)(B({reflectSymbol:function(){return"username"}})(_e)(tn))))(B({reflectSymbol:function(){return"id"}})(rn)(B({reflectSymbol:function(){return"isFromHQ"}})(Ia)(B({reflectSymbol:function(){return"isPublic"}})(Ia)(B({reflectSymbol:function(){return"text"}})(_e)(B({reflectSymbol:function(){return"time"}})(_e)(tn))))))))(Ve),Bp=Ma(Ve),Rb=J(ca),br=J(wn),sM=Jl(),iRe=Jt(he),vM=Ua(Y),fM=Ho(Y),lRe=Va(Y),F0=Te(he),Hp=Te($e),yb=Jn(Y)()(),qp=Yn(ga),qh=Te(Y),Wq=kt(Y),Jq=pe(ze),cRe=gr(he)()(),sRe=Ua(he),$q=ee(Ze),vRe=kR()(),fRe=Yn(co),_Re=Al(pv(Fl)),pRe=$_(he),dRe=so()(),mRe=fb(Y),hRe=we(or(Bt)),DRe=pe(ae),zq=Oo(eq(Xo(Bu))),gRe=Cu(cM),Vq=k(Ga),RRe=an(It),yRe=Og(cM),Qq=ot(hr(Ga)),Kq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Yq=function(){function e(){}return e.value=new e,e}(),Xq=function(){function e(){}return e.value=new e,e}(),G0=function(){function e(){}return e.value=new e,e}(),wb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Eb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Zq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),eW=function(){function e(){}return e.value=new e,e}(),_M=function(){function e(){}return e.value=new e,e}(),pM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),nW=function(){function e(){}return e.value=new e,e}(),aW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dM=function(){function e(){}return e.value=new e,e}(),Ib=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Tb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),tW=function(){function e(){}return e.value=new e,e}(),Wp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Wh=function(){function e(){}return e.value=new e,e}();var rW=function(e){return Ms(oRe(function(n){return Me.create(pM.create(e0(n)))})(uRe(e.pusher.dataChannel)("question")))(function(){return Ms(Bp(Rb(new Me(nW.value))))(function(){return br({newQuestionText:"",newQuestionBroadcast:!1,questions:[],modal:G0.value})})})},oW=function(e){if(e.user instanceof M)return new S(new Me(dM.value));if(e.user instanceof S&&e.user.value0.username instanceof M)return new S(new Me(tW.value));if(e.user instanceof S&&e.user.value0.username instanceof S)return M.value;throw new Error("Failed pattern match at Livestream.Live.Questions (line 363, column 3 - line 369, column 14): "+[e.user.constructor.name])},wRe=function(){return Ao(iu(_n)([kl.value,new mt(":"),Di.value,new mt(" "),Bl.value]))}(),uW=function(e){return function(n){return function(a){var t=function(s){return a(Me.create(s))},o=function(s){return sM({onDismiss:t(Wh.value),body:Se([iRe("")([vM("")("By: "),fM("")("@"+s.author.username)]),lRe("")(s.text),us(""),F0("row align-items-center mb-3")([Hp("col-4")(yb("btn w-100 btn-"+function(){return s.isPublic?"secondary":"success"}())({onClick:qp(t)(new Tb(Yq.value))})(function(){return s.isPublic?"Hide from audience":"Show to audience"}())),qh("col")(function(){return s.isPublic?"This question will no longer be visible to the public, but HQ people will still see it.":"This question will become visible to the audience, even anonymous users."}())]),F0("row align-items-center")([Hp("col-4")(yb("btn w-100 btn-danger")({onClick:qp(t)(new Tb(Xq.value))})("Ban this user")),F0("col")([Qe("This user will not be able to ask any more questions "),fM("")("in this livestream. "),vM("text-danger")("There is no way to un-ban a user!")])])]),bodyClass:"t--question-modal",footer:Se([yb("btn btn-outline-primary px-4")({onClick:qp(t)(Wh.value)})("Never mind, close this dialog")])})},u=function(s){return sM({onDismiss:t(Wh.value),title:Wq("")("Please introduce yourself to participate:"),bodyClass:"t--questions-registration-form",body:Se([jp({cancelButton:M.value,autoFocus:!0})(e)(s)(function(R){return t(Ib.create(R))}),Hp("small mt-3")(kp(e))])})},i=function(s){return sM({onDismiss:t(Wh.value),title:Wq("")("Please select a user name"),body:YH(s)(function(R){return t(Wp.create(R))}),bodyClass:"t--username-modal"})},l=function(s){var R=function(y){return function(I){return function(b){return Se([qh("ml-2 badge badge-"+I)(y),da(b)(function(T){return qh("ml-2 text-secondary")(wRe(T))})])}}},d=s.isFromHQ&&s.isPublic;return d?R("CollegeVine")("success")(s.time):s.isPublic?R("Question")("warning")(M.value):$n};return Se([Hp("position-relative h-100")(Hp("d-flex flex-column position-absolute-fullsize")(F0("d-flex flex-column flex-grow-1 min-height-0")([F0("flex-grow-1 min-height-0 overflow-y-auto bg-white border rounded mb-2 p-2 t--questions-list")(Jq(n.questions)(function(s){return cRe("p-1 t--question"+function(){return e.isPrivilegedUser?" cursor-pointer":""}())({onClick:qp(t)(new Tb(new Kq(s)))})([sRe("small d-inline-flex align-items-center")([fM("")("@"+s.author.username),l(s),Qe(":")]),vM("ml-1")(s.text)])})),F0("")([da($q(e.user)(function(s){return s.username}))(function(s){return qh("small text-secondary mt-2")("@"+s)}),vRe("form-control t--question-text")({onChange:fRe(t)(function(s){return Zq.create(zw(s))}),onClick:_Re(a)(oW(e)),placeholder:"Ask a question...",rows:1,value:n.newQuestionText}),ya(e.isPrivilegedUser)(Hp("form-check my-2")(pRe("form-check-label d-flex align-items-center t--broadcast-checkbox")([dRe("form-check-input mr-2 mt-0")({type:"checkbox",checked:n.newQuestionBroadcast,onChange:qp(t)(eW.value)}),qh("badge badge-info bg-info text-dark mr-2")("HQ"),Qe("Send to all viewers")]))),F0("d-flex justify-content-end align-items-center")([mRe("large mr-2")(` Questions you ask will only be visible to you and the host unless they select it to read to the audience, at which point it will appear with a yellow \u201CQuestion\u201D tag for all viewers to see. `),yb("mt-2 px-5 btn-sm btn btn-primary t--submit-question")({onClick:qp(t)(_M.value),disabled:n.newQuestionText===""})(function(){return n.newQuestionBroadcast?"Send to all":"Send to host"}())])])]))),function(){if(n.modal instanceof G0)return $n;if(n.modal instanceof bb)return u(n.modal.value0);if(n.modal instanceof wb)return o(n.modal.value0);if(n.modal instanceof Eb)return i(n.modal.value0);throw new Error("Failed pattern match at Livestream.Live.Questions (line 146, column 5 - line 150, column 41): "+[n.modal.constructor.name])}()])}}},bRe=function(e){return function(n){return hRe(DRe(e.user)(function(a){return a.cvid}))(new S(n.author.cvid))||n.isPublic||e.isPrivilegedUser}},iW=function(e){return function(n){return function(a){if(a instanceof yn)return br(n);if(a instanceof Me){if(a.value0 instanceof Zq){var t=oW(e);if(t instanceof S)return Ms(Bp(Rb(t.value0)))(function(){return br(n)});if(t instanceof M)return br({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,questions:n.questions,newQuestionText:a.value0.value0});throw new Error("Failed pattern match at Livestream.Live.Questions (line 250, column 5 - line 255, column 46): "+[t.constructor.name])}if(a.value0 instanceof eW)return br({modal:n.modal,newQuestionText:n.newQuestionText,questions:n.questions,newQuestionBroadcast:!n.newQuestionBroadcast});var t=function(o){if(a.value0 instanceof _M)return Ms(Bp(Rb(new Me(dM.value))))(function(){return br(n)});if(a.value0 instanceof pM)return br({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:zq(function(l){return QG(function(s){return s.time}(l))})(au(bRe(e))(tu(a.value0.value0)(au(function(){var l=gRe(a.value0.value0.id);return function(s){return l(function(R){return R.id}(s))}}())(n.questions))))});if(a.value0 instanceof nW)return Ms(Bp(Vq(function(l){return Me.create(aW.create(l))})(Wy(e.conference.id))))(function(){return br(n)});if(a.value0 instanceof aW){var u=Jq(a.value0.value0)(function(l){return l.id});return br({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:zq(function(l){return QG(function(s){return s.time}(l))})(RRe(a.value0.value0)(au(function(l){return yRe(l.id)(u)})(n.questions)))})}if(a.value0 instanceof dM)return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new bb(Up)});var i=function(l){if(a.value0 instanceof Ib)return br(n);if(a.value0 instanceof tW)return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Eb(ZH(ke("")($q(e.user)(function(R){return R.username}))))});if(a.value0 instanceof Wp&&a.value0.value0 instanceof yn&&a.value0.value0.value0 instanceof zG)return Ms(Bp(Rb(new yn(a.value0.value0.value0.value0))))(function(){return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:G0.value})});if(a.value0 instanceof Wp&&a.value0.value0 instanceof yn&&a.value0.value0.value0 instanceof VG)return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:G0.value});var s=function(R){if(a.value0 instanceof Wp&&Je)return br(n);if(a.value0 instanceof Wh)return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:G0.value});if(a.value0 instanceof Tb){if(e.isPrivilegedUser){if(a.value0.value0 instanceof Kq)return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new wb(a.value0.value0.value0)});var d=function(y){var I=function(b){return br(n)};return a.value0.value0 instanceof Xq&&n.modal instanceof wb?Ms(Za(yO({conferenceId:e.conference.id,userCvid:n.modal.value0.author.cvid})))(function(){return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:G0.value})}):I(!0)};return a.value0.value0 instanceof Yq&&n.modal instanceof wb?Ms(Za(fO({questionId:n.modal.value0.id,isPublic:!n.modal.value0.isPublic})))(function(){return br({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:G0.value})}):d(!0)}if(Je)return br(n)}throw new Error("Failed pattern match at Livestream.Live.Questions (line 246, column 1 - line 246, column 76): "+[a.value0.constructor.name])};return a.value0 instanceof Wp&&n.modal instanceof Eb?Qq(function(R){return Me.create(Wp.create(R))})(function(R){return{newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Eb(R)}})(XH(n.modal.value0)(a.value0.value0)):s(!0)};return a.value0 instanceof Ib&&n.modal instanceof bb?Qq(function(l){return Me.create(Ib.create(l))})(function(l){return{newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new bb(l)}})(Op(n.modal.value0)(a.value0.value0)):i(!0)};return a.value0 instanceof _M&&e.user instanceof S?Ms(Bp(Vq(function(o){return Me.create(pM.create(o))})(_O({conferenceId:e.conference.id,text:n.newQuestionText,hqBroadcast:n.newQuestionBroadcast}))))(function(){return br({modal:n.modal,questions:n.questions,newQuestionText:"",newQuestionBroadcast:!1})}):t(!0)}throw new Error("Failed pattern match at Livestream.Live.Questions (line 246, column 1 - line 246, column 76): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}};var Sb,ERe=new Uint8Array(16);function mM(){if(!Sb&&(Sb=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Sb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sb(ERe)}var lW=/^(?:[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;function IRe(e){return typeof e=="string"&&lW.test(e)}var hM=IRe;var Lo=[];for(Cb=0;Cb<256;++Cb)Lo.push((Cb+256).toString(16).substr(1));var Cb;function TRe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(Lo[e[n+0]]+Lo[e[n+1]]+Lo[e[n+2]]+Lo[e[n+3]]+"-"+Lo[e[n+4]]+Lo[e[n+5]]+"-"+Lo[e[n+6]]+Lo[e[n+7]]+"-"+Lo[e[n+8]]+Lo[e[n+9]]+"-"+Lo[e[n+10]]+Lo[e[n+11]]+Lo[e[n+12]]+Lo[e[n+13]]+Lo[e[n+14]]+Lo[e[n+15]]).toLowerCase();if(!hM(a))throw TypeError("Stringified UUID is invalid");return a}var cW=TRe;function SRe(e,n,a){e=e||{};var t=e.random||(e.rng||mM)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,n){a=a||0;for(var o=0;o<16;++o)n[a+o]=t[o];return n}return cW(t)}var DM=SRe;var sW=DM;var CRe=function(e){return e},gM=function(e){return e};var RM=ee(er)(sW)(function(){var e=J(at);return function(n){return e(CRe(n))}}());var Jp=Ma(Ve),vW=ln(on),FRe=vW(_a),GRe=an(_R),MRe=k(Ga),Jh=Wn(Ve),ARe=Va(Y),LRe=gu()(),fW=gr($e)()(),_W=Td(Bu),PRe=bo(Zt),xRe=qn(_u),NRe=ne(WP),pW=ne(tf),jRe=k(ze),Cc=vW(Kn),ORe=Xi(Ve),URe=yi(Sa()(B({reflectSymbol:function(){return"authorTag"}})(_e)(B({reflectSymbol:function(){return"kind"}})(_e)(tn))))(Ve),Fb=k(zn),Uv=J(wn),dW=nt(A_),mW=Id(Bu),kRe=J(ca),yM=lc(G_),BRe=Te(he),HRe=pe(ze),qRe=Jn(he)()(),WRe=Yn(ga),JRe=Ua(Y),Gb=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),$h=function(){function e(n,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),hW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),wM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bM=function(e){return Jp(FRe(Qt(GRe(e)(10)))(function(){return MRe(wM.create)(Jh(Ju))}))},DW=50,gW=function(e){var n=function(o){return ARe("text-white fe fe-"+o)("")},a=function(){if(e instanceof gs)return n("heart");if(e instanceof Tv)return n("thumbs-up");if(e instanceof n0)return n("thumbs-down");if(e instanceof Sv)return n("file-text");if(e instanceof Cv)return LRe("")({src:"/img/icons/smile-white.svg",style:dt({width:"1em"})});throw new Error("Failed pattern match at Livestream.Live.Reactions (line 158, column 12 - line 163, column 108): "+[e.constructor.name])}(),t=function(){if(e instanceof gs)return"#F0747B";if(e instanceof Tv)return"#008CFD";if(e instanceof n0)return"#6E84A3";if(e instanceof Sv)return"#18A668";if(e instanceof Cv)return"#F6C343";throw new Error("Failed pattern match at Livestream.Live.Reactions (line 165, column 23 - line 170, column 34): "+[e.constructor.name])}();return fW("d-flex justify-content-center align-items-center rounded-circle")({style:dt({backgroundColor:t,height:"1.5rem",width:"1.5rem"})})(a)},RW=6,yW=function(){return RW*1e3}(),wW=function(e){return function(n){var a=function(t){if(_W(t.removeAt)(e.currentTime))return $n;var o=Lt(PRe(xRe(Qi(vT(t.startDecayAt))))(10)),u=function(){var d=o<=3;if(d)return"linear";var y=o<=7;return y?"ease-in":"ease"}(),i=t.reaction.authorTag===e.authorTag,l=1+(o-5)/4,s=_W(t.startDecayAt)(e.currentTime),R=RW+(o-5)/10;return fW("position-absolute mb-4 mt-2")({key:NRe(t.startDecayAt),style:dt({right:pW(l)+"rem",top:function(){return s?"0":"90%"}(),opacity:function(){return s?0:i?1:.6}(),transitionProperty:"top opacity",transitionDuration:pW(R)+"s",transitionTimingFunction:u})})(gW(t.reaction.kind))};return Se(jRe(a)(e.reactions))}},bW=function(e){return Cc(ORe(function(n){return new $h(Z8(n),M.value)})(URe(e.pusher.dataChannel)("reaction")))(function(){return Cc(Jp(Jh(Fb(function(n){return hW.create(gM(n))})(RM))))(function(){return Cc(Jp(Jh(Fb(wM.create)(Ju))))(function(){return Uv({authorTag:"",currentTime:dW,coolDownUntil:dW,reactions:[]})})})})},EW=800,IW=function(e){return function(n){return function(a){if(a instanceof Gb&&a.value1 instanceof M)return Cc(Jp(Jh(Fb(function(){var t=Gb.create(a.value0);return function(o){return t(S.create(o))}}())(Ju))))(function(){return Uv(n)});if(a instanceof Gb&&a.value1 instanceof S){if(mW(n.coolDownUntil)(a.value1.value0))return Cc(Jp(kRe(new $h({kind:a.value0,authorTag:n.authorTag},new S(a.value1.value0)))))(function(){return Uv(n)});if(Je)return Cc(Za(DO(e.conference.id)({authorTag:n.authorTag,kind:a.value0})))(function(){return Cc(bM(EW))(function(){return Uv({authorTag:n.authorTag,currentTime:n.currentTime,reactions:n.reactions,coolDownUntil:ke(a.value1.value0)(yM(EW)(a.value1.value0))})})})}if(a instanceof $h&&a.value1 instanceof M)return Cc(Jp(Jh(Fb(function(){var t=$h.create(a.value0);return function(o){return t(S.create(o))}}())(Ju))))(function(){return Uv(n)});if(a instanceof $h&&a.value1 instanceof S)return Cc(bM(DW))(function(){return Cc(bM(yW))(function(){var t={reaction:a.value0,startDecayAt:ke(a.value1.value0)(yM(DW)(a.value1.value0)),removeAt:ke(a.value1.value0)(yM(yW)(a.value1.value0))};return Uv({authorTag:n.authorTag,coolDownUntil:n.coolDownUntil,reactions:p_(n.reactions)(t),currentTime:a.value1.value0})})});if(a instanceof hW)return Uv({coolDownUntil:n.coolDownUntil,currentTime:n.currentTime,reactions:n.reactions,authorTag:a.value0});if(a instanceof wM)return Uv({authorTag:n.authorTag,coolDownUntil:n.coolDownUntil,reactions:au(function(t){return mW(t.removeAt)(a.value0)})(n.reactions),currentTime:a.value0});throw new Error("Failed pattern match at Livestream.Live.Reactions (line 176, column 22 - line 219, column 8): "+[a.constructor.name])}}},TW=function(e){return function(n){var a=function(t){if(t instanceof gs)return"love this";if(t instanceof Tv)return"helpful";if(t instanceof n0)return"not helpful";if(t instanceof Sv)return"taking notes";if(t instanceof Cv)return"LOL";throw new Error("Failed pattern match at Livestream.Live.Reactions (line 144, column 13 - line 149, column 30): "+[t.constructor.name])};return BRe("d-flex justify-content-end my-2")(HRe([gs.value,Cv.value,Tv.value,Sv.value])(function(t){return qRe("btn bg-light d-flex align-items-center p-0 ml-3")({onClick:WRe(n)(new Gb(t,M.value)),style:dt({borderRadius:"1em"})})([gW(t),JRe("d-none d-md-inline text-secondary small ml-2 mr-3")(a(t))])}))}};var SW=ln(on),$Re=ee(_a),EM=Wn(Ve),Mb=J(ca),Ab=Jt(Y),Lb=ne(en),zh=SW(Kn),Vh=Ma(Ve),fl=J(wn),CW=Pt(Ar),FW=ro(TR),GW=k(Ga),zRe=jo(wn)(Gu),VRe=Hu(Yc),MW=Te(Y),QRe=Wl(),KRe=kt(Y),AW=Jn(Y)()(),IM=Yn(ga),LW=Te($e),YRe=Jn(he)()(),XRe=Va(Y),ZRe=Te(he),PW=function(){function e(){}return e.value=new e,e}(),xW=function(){function e(){}return e.value=new e,e}(),NW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),jW=function(){function e(){}return e.value=new e,e}(),OW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UW=function(){function e(){}return e.value=new e,e}(),kW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),TM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),BW=function(){function e(){}return e.value=new e,e}(),HW=function(){function e(){}return e.value=new e,e}(),SM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),CM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Pb=function(){function e(){}return e.value=new e,e}(),qW=SW(_a)(Qt(1e3))(function(){return $Re(EM(Ju))(function(e){return Mb(new SM(e))})}),eye=function(e){return{header:"Go on-air?",body:Se([Ab("")("Are you sure you want to go on-air?"),Ab("mb-0 font-weight-bold fw-bold")(` Watchers will start seeing your stream in `+(Lb(e.videoLagSeconds)+` seconds if you confirm. If you're presenting with Zoom, make sure you've gone "live" on Zoom as well. `))]),confirmText:"Confirm, go on-air!",cancelText:"Cancel",confirmMsg:jW.value}},WW=function(e){return function(n){return function(a){return function(t){return zh(Vh(qW))(function(){return fl({confirmation:n.confirmation,network:PW.value,streamStatus:t,transition:new S({since:a,secondsLeft:e.videoLagSeconds})})})}}}},JW=function(e){return function(n){return function(a){if(a instanceof jW)return zh(Vh(CW(FW(uO(e.conference.id))(GW(OW.create)(EM(Ju))))(function(l){return Mb(new CM("Error opening the stream. Please try again."))})))(function(){return fl({confirmation:n.confirmation,streamStatus:n.streamStatus,transition:n.transition,network:xW.value})});if(a instanceof OW)return WW(e)(n)(a.value0)(Hr.value);if(a instanceof UW)return zh(Vh(CW(FW(iO(e.conference.id))(GW(kW.create)(EM(Ju))))(function(l){return Mb(new CM("Error closing the stream. Please try again."))})))(function(){return fl(n)});if(a instanceof kW)return WW(e)(n)(a.value0)(Rr.value);if(a instanceof TM)return fl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:new S(a.value0)});if(a instanceof BW)return zh(zRe(n.confirmation)(function(l){return Vh(Mb(l.confirmMsg))}))(function(){return fl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:M.value})});if(a instanceof HW)return fl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:M.value});if(a instanceof CM)return fl({confirmation:n.confirmation,streamStatus:n.streamStatus,transition:n.transition,network:new NW(a.value0)});var t=function(l){if(a instanceof SM||a instanceof Pb)return fl(n);throw new Error("Failed pattern match at Livestream.Live.StreamControls (line 185, column 1 - line 185, column 76): "+[a.constructor.name])};if(a instanceof SM){if(n.transition instanceof S){var o=VRe(a.value0)(n.transition.value0.since),u=e.videoLagSeconds-io(o)|0,i=u>0;return i?zh(Vh(qW))(function(){return fl({confirmation:n.confirmation,network:n.network,streamStatus:n.streamStatus,transition:new S({since:n.transition.value0.since,secondsLeft:u})})}):fl({confirmation:n.confirmation,network:n.network,streamStatus:n.streamStatus,transition:M.value})}return t(!0)}return t(!0)}}},$W=function(e){return fl({streamStatus:e.streamStatus,transition:M.value,network:PW.value,confirmation:M.value})},nye=function(){return{header:"End the stream?",body:Se([Ab("")("Are you sure you want to end the stream?"),Ab("mb-0 font-weight-bold fw-bold")("You won't be able to restart it again!")]),confirmText:"Yes, end it",cancelText:"No, keep streaming",confirmMsg:UW.value}}(),zW=function(e){return function(n){return function(a){var t=function(){return n.network instanceof xW?MW("position-absolute-fullsize d-flex align-items-center justify-content-center bg-semi-transparent-white")("Switching..."):$n}(),o=function(R){return QRe({header:KRe("my-0")(R.header),bodyClass:"p-5",body:R.body,footerClass:"p-4",footer:Se([AW("btn btn-primary px-4")({onClick:IM(a)(BW.value)})(R.confirmText),AW("btn btn-outline-primary px-4")({onClick:IM(a)(HW.value)})(R.cancelText)])})},u=function(R){return function(d){return function(y){return function(I){return function(b){return LW("col-auto pr-0")(YRe("btn btn-"+(R+(" px-5 d-flex align-items-center font-size-lg btn-"+I)))({onClick:IM(a)(b)})([XRe("fe mr-2 fe-"+d)(""),Qe(y)]))}}}}},i=function(){if(n.streamStatus instanceof mu)return u("lg")("power")("GO ON-AIR")("outline-secondary")(new TM(eye(e)));var R=function(d){if(n.streamStatus instanceof Hr)return Se([u("lg")("radio")("ON AIR")("success")(Pb.value),u("sm")("x-circle")("End stream")("outline-danger")(new TM(nye))]);if(n.streamStatus instanceof Rr)return u("lg")("slash")("STREAM IS OVER")("outline-secondary")(Pb.value);throw new Error("Failed pattern match at Livestream.Live.StreamControls (line 78, column 1 - line 78, column 71): "+[n.streamStatus.constructor.name])};return n.streamStatus instanceof Hr&&n.transition instanceof S?u("lg")("radio")("ON AIR")("success")(Pb.value):R(!0)}(),l=function(R){return MW("alert small m-0 flex-grow-1 alert-"+R)},s=function(){if(n.network instanceof NW)return l("danger")(n.network.value0);if(n.streamStatus instanceof mu)return l("warning")("The stream has not been started yet. To start, click the big 'GO ON-AIR' button on the left.");var R=function(d){if(n.streamStatus instanceof Hr)return l("light")(` We're live. The audience should see your video with a `+(Lb(e.videoLagSeconds)+`-second delay. If you don't see your face above (give it a few seconds), it means you're not streaming. `));var y=function(I){if(n.streamStatus instanceof Rr)return l("light")("The stream has ended. The audience does not see any video right now.");throw new Error("Failed pattern match at Livestream.Live.StreamControls (line 78, column 1 - line 78, column 71): "+[n.streamStatus.constructor.name,n.network.constructor.name])};return n.streamStatus instanceof Rr&&n.transition instanceof S?l("info")("You may stop presenting now. The audience will keep seeing the tail of the stream for another "+(Lb(n.transition.value0.secondsLeft)+" seconds.")):y(!0)};return n.streamStatus instanceof Hr&&n.transition instanceof S?l("info")("Start presenting now. The audience will see the stream in "+(Lb(n.transition.value0.secondsLeft)+" seconds...")):R(!0)}();return ZRe("position-relative row align-items-center t--stream-controls")([i,LW("col")(s),t,da(n.confirmation)(o)])}}};var aye=lc(ov),VW=Hu(ov),QW=N4(),tye=Jl(),rye=kt(Y),oye=Te(Y),KW=Jt(Y),uye=Jn(Y)()(),iye=Yn(ga),YW=Ma(Ve),XW=ln(on),ZW=k(Ga),eJ=Wn(Ve),nJ=XW(Kn),lye=Bi(Ya),FM=J(wn),GM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MM=function(){function e(){}return e.value=new e,e}(),cye=[30,15,5,0],aJ=function(e){return ke(e.conference.scheduledStartTime)(aye(Lt(e.conference.duration))(e.conference.scheduledStartTime))},tJ=function(e){return function(n){return function(a){if(!n.modal)return $n;if(n.now instanceof M)return $n;if(n.now instanceof S){var t=aJ(e),o=VW(t)(n.now.value0),u=function(){if(o<1)return" ended "+QW({from:t,to:n.now.value0,format:uy("ago")});if(Je)return" ends "+QW({from:n.now.value0,to:t,format:uy("from now")});throw new Error("Failed pattern match at Livestream.Live.StreamEndWarning (line 75, column 7 - line 77, column 105): "+[])}();return tye({onDismiss:a(MM.value),body:Se([rye("mb-0")("Host-only warning"),oye("text-secondary mb-4")("You see this because you're the host. The audience doesn't see this."),KW("font-weight-bold fw-bold")("\u23F0 Scheduled stream time "+u),KW("")(` You have `+(tl(e.conference.tailTime)("extra minute")("extra minutes")+` after scheduled stream end, in case you absolutely cannot wrap up before then. After that the video streaming will be terminated. `)),uye("btn btn-primary px-4")({onClick:iye(a)(MM.value)})("Got it")])})}throw new Error("Failed pattern match at Livestream.Live.StreamEndWarning (line 51, column 1 - line 51, column 71): "+[e.constructor.name,n.constructor.name,a.constructor.name])}}},sye=YW(XW(_a)(Qt(60100))(function(){return ZW(GM.create)(eJ(Xf))})),rJ=function(e){return function(n){return function(a){if(a instanceof GM)return nJ(sye)(function(){var t=VW(aJ(e))(a.value0),o=lye(io(t))(cye);return FM({now:new S(a.value0),modal:n.modal||o})});if(a instanceof MM)return FM({now:n.now,modal:!1});throw new Error("Failed pattern match at Livestream.Live.StreamEndWarning (line 80, column 22 - line 91, column 33): "+[a.constructor.name])}}},oJ=function(){return nJ(YW(ZW(GM.create)(eJ(Xf))))(function(){return FM({modal:!1,now:M.value})})}();var uJ=ln(on),vye=uJ(_a),iJ=J(ca),fye=uJ(Kn),_ye=Ma(Ve),pye=Pt(Ar),xb=J(wn),dye=we(qm),lJ=iu(_n),AM=Te(he),Nb=Va(Y),mye=Jn(Y)()(),cJ=Yn(ga),hye=Gt(Y)()(),Dye=Jn($e)()(),gye=Wl(),sJ=Te($e),Rye=Ho(Y),yye=mv(Y)()(),wye=Ua(Y),vJ=function(){function e(){}return e.value=new e,e}(),fJ=function(){function e(){}return e.value=new e,e}(),LM=function(){function e(){}return e.value=new e,e}(),_J=function(){function e(){}return e.value=new e,e}(),pJ=function(){function e(){}return e.value=new e,e}(),dJ=function(){function e(){}return e.value=new e,e}(),mJ=function(){function e(){}return e.value=new e,e}(),bye=function(){function e(){}return e.value=new e,e}(),hJ=function(e){return function(n){return function(a){var t=vye(Hy({fromConference:new S(e.conference.id),registerForConference:n.cta.conferenceId,utmSource:e.paths.utmSource}))(function(){return iJ(new Me(dJ.value))});if(a instanceof pJ)return fye(_ye(pye(t)(function(o){return iJ(new Me(mJ.value))})))(function(){return xb({cta:n.cta,stage:fJ.value})});if(a instanceof dJ)return xb({cta:n.cta,stage:_J.value});if(a instanceof mJ)return xb({cta:n.cta,stage:LM.value});throw new Error("Failed pattern match at Livestream.Ctas.Display.Event (line 138, column 24 - line 148, column 44): "+[a.constructor.name])}}},DJ=function(e){return function(n){return dye(e.cta.conferenceId)(n.conferenceId)}},gJ=function(e){return xb({cta:e,stage:vJ.value})},Eye=function(){return Ao(lJ([Ul.value,new mt(", "),jl.value,new mt(" "),Ol.value,new mt(" at "),kl.value,new mt(":"),Di.value,new mt(" "),Bl.value]))}(),Iye=function(){return Ao(lJ([Ul.value]))}(),RJ=function(e){return function(n){return function(a){var t=function(){return n.stage instanceof LM?AM("text-danger small mt-2")([Nb("fe fe-x-circle mr-2")(""),Qe("Something went wrong. Please try again.")]):$n}(),o=function(R){return a(Me.create(R))},u=function(){if(e.user instanceof S)return mye("btn btn-primary px-4 t--register-one-click")({onClick:cJ(o)(pJ.value)})("Register (one-click)");if(e.user instanceof M)return hye("btn btn-primary px-4 t--register-new-tab")({href:n.cta.registrationPath,target:"_blank",rel:"noopener"})("Register now");throw new Error("Failed pattern match at Livestream.Ctas.Display.Event (line 92, column 22 - line 100, column 25): "+[e.user.constructor.name])}(),i=function(){if(n.stage instanceof vJ||n.stage instanceof LM)return u;if(n.stage instanceof fJ)return AM("text-secondary")([Nb("fe fe-refresh-cw mr-2")(""),Qe("Hold on tight...")]);if(n.stage instanceof _J)return AM("text-success")([Nb("fe fe-check-circle mr-2")(""),Qe("You\u2019ve registered \u2013\xA0see you "+(Iye(n.cta.startTime)+"!"))]);throw new Error("Failed pattern match at Livestream.Ctas.Display.Event (line 76, column 36 - line 90, column 10): "+[n.stage.constructor.name])}(),l=function(R){return a(yn.create(R))},s=Dye("btn btn-sm btn-outline-primary d-flex py-1 px-2")({onClick:cJ(l)(bye.value)})(Nb("fe fe-x")(""));return gye({body:Se([sJ("row justify-content-end mt-n3")(s),Rye("")("Join us for our upcoming livestream:"),yye("mt-3")({id:Ri})(n.cta.title),wye("small")(Eye(n.cta.startTime)+(" "+Yf)),sJ("row mt-6 ml-0")(i),t]),bodyClass:"t--cta-active",size:Km.value})}}};var Tye=Wl(),jb=Te(he),Sye=WN(Y)()(),Ob=Te($e),Cye=Jn($e)()(),yJ=Yn(ga),Fye=Va(Y),Gye=pe(ze),Mye=Yi()(),Aye=Br(Y),Lye=Jt(Y),Pye=Gt(Y)()(),xye=ln(on),Nye=xye(Kn),jye=Ma(Ve),Oye=Wn(Ve),Uye=ys(pr)(),kye=ne(en),wJ=J(wn),Bye=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bJ=function(){function e(){}return e.value=new e,e}(),EJ=function(e){return function(n){var a=function(){var i=oo(e.cta.providers);return i===1?Fv.value:i===2?Fv.value:Ym.value}(),t=function(i){return n(Me.create(i))},o=function(i){return n(yn.create(i))},u=function(){var i=oo(e.cta.providers);return i===1?"col-12":i===2?"col-12 col-md-6 mb-3 mb-md-0":"col-12 col-md-4 mb-3 mb-md-0"}();return Tye({bodyClass:"bg-gray-900 text-white t--cta-active",body:Se([jb("row no-gutters g-0 mb-4")([jb("col text-center")([Sye("mb-2")({id:Ri})("The admissions process is hard - advisors are here to help!"),Qe("Schedule a free consulation to get your questions answered")]),Ob("col-auto text-right")(Cye("btn btn-link p-0 m-0 text-white")({onClick:yJ(o)(bJ.value)})(Fye("fe fe-x")("")))]),jb("row text-center")(Gye(e.cta.providers)(function(i){return jb(u)([Ob("row mb-3")(Ob("col-auto mx-auto")(Ob("avatar avatar-xl")(Mye("avatar-img rounded-circle img-fluid")({src:i.avatarUrl})))),Aye("mb-2")(i.name),Lye("mb-3")(i.location),Pye("btn btn-primary btn-sm px-3 py-1")({target:"_blank",href:i.linkUrl,onClick:yJ(t)(new Bye(i.avatarUrl))})(e.cta.linkText)])}))]),size:a})}},IJ=function(e){return function(n){return Nye(jye(Oye(function(){return Uye("Livestream: CTA Popup Link Clicked")({livestream_cta_id:kye(e.cta.id),livestream_cta_url:n.value0})(),new yn(bJ.value)})))(function(){return wJ(e)})}},TJ=function(e){return function(n){return e.cta.id===n.id}},SJ=function(e){return wJ({cta:e})};var Hye=Gt(Y)()(),CJ=Yn(ga),qye=Jn($e)()(),Wye=Va(Y),Jye=Wl(),FJ=Te($e),$ye=mv(Y)()(),zye=ln(on),Vye=zye(Kn),Qye=Ma(Ve),Kye=Wn(Ve),Yye=ys(pr)(),Xye=ne(en),GJ=J(wn),Zye=function(){function e(){}return e.value=new e,e}(),MJ=function(){function e(){}return e.value=new e,e}(),AJ=function(e){return function(n){var a=function(i){return n(Me.create(i))},t=Hye("btn btn-primary px-4 t--register-new-tab")({href:e.cta.url,target:"_blank",rel:"noopener",onClick:CJ(a)(Zye.value)})(e.cta.buttonText),o=function(i){return n(yn.create(i))},u=qye("btn btn-sm btn-outline-primary d-flex py-1 px-2")({onClick:CJ(o)(MJ.value)})(Wye("fe fe-x")(""));return Jye({body:Se([FJ("row justify-content-end mt-n3")(u),$ye("mt-3")({id:Ri})(e.cta.title),FJ("row mt-6 ml-0")(t)]),bodyClass:"t--cta-active",size:Km.value})}},LJ=function(e){return function(n){return Vye(Qye(Kye(function(){return Yye("Livestream: CTA Popup Link Clicked")({livestream_cta_id:Xye(e.cta.id),livestream_cta_title:e.cta.title,livestream_cta_url:e.cta.url})(),new yn(MJ.value)})))(function(){return GJ(e)})}},PJ=function(e){return function(n){return e.cta.id===n.id}},xJ=function(e){return GJ({cta:e})};var PM=ln(on),Vu=PM(Ze),Qu=mr(Or),$p=J(na),NJ=Sr(No(lt)),Qh=ha(Jr),As=J(wn),ewe=PM(Kn),nwe=Ma(Ve),awe=PM(_a),twe=J(ca),xM=Te(he),rwe=$_(Y),owe=so()(),uwe=Yn(co),iwe=Jn($e)()(),jJ=Yn(ga),lwe=Va(Y),cwe=Wl(),NM=Te($e),swe=mv(Y)()(),vwe=Jt(Y),fwe=Jn(Y)()(),OJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),BJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),HJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),qJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),WJ=function(){function e(){}return e.value=new e,e}(),JJ=function(){function e(){}return e.value=new e,e}(),$J=function(e){return function(n){return e.cta.id===n.id}},zJ=function(e){return function(n){var a=Vu(Qu(n.cta.requireReferredUserLastName))(function(){return Vu(Qu(n.referredUserLastName===""))(function(){return $p("Please enter the other person\u2019s last name")})}),t=Vu(Qu(n.cta.requireReferredUserFirstName))(function(){return Vu(Qu(n.referredUserFirstName===""))(function(){return $p("Please enter the other person\u2019s first name")})}),o=Vu(Qu(NJ(kh)(n.referredUserEmail)))(function(){return $p("Please enter a valid email address")}),u=Vu(Qu(Tt(e.user)))(function(){return Vu(Qu(n.cta.requireAnonymousUserLastName))(function(){return Vu(Qu(n.anonymousUserLastName===""))(function(){return $p("Please enter your last name")})})}),i=Vu(Qu(Tt(e.user)))(function(){return Vu(Qu(n.cta.requireAnonymousUserFirstName))(function(){return Vu(Qu(n.anonymousUserFirstName===""))(function(){return $p("Please enter your first name")})})}),l=Vu(Qu(Tt(e.user)))(function(){return Vu(Qu(n.cta.requireAnonymousUserEmail))(function(){return Vu(Qu(NJ(kh)(n.anonymousUserEmail)))(function(){return $p("Please enter a valid email address")})})});return Qh(i)(Qh(u)(Qh(l)(Qh(t)(Qh(a)(o)))))}},VJ=function(e){return function(n){return function(a){if(a instanceof OJ)return As({anonymousUserEmail:n.anonymousUserEmail,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,anonymousUserFirstName:a.value0});if(a instanceof UJ)return As({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,anonymousUserLastName:a.value0});if(a instanceof kJ)return As({anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,anonymousUserEmail:a.value0});if(a instanceof BJ)return As({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,referredUserFirstName:a.value0});if(a instanceof HJ)return As({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,validationActive:n.validationActive,referredUserLastName:a.value0});if(a instanceof qJ)return As({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:n.validationActive,referredUserEmail:a.value0});if(a instanceof WJ){var t=Tt(zJ(e)(n));return t?ewe(nwe(awe(lO({ctaId:n.cta.id,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,anonymousUserEmail:n.anonymousUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,referredUserEmail:n.referredUserEmail}))(function(){return twe(new yn(JJ.value))})))(function(){return As(n)}):As({anonymousUserEmail:n.anonymousUserEmail,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,cta:n.cta,referredUserEmail:n.referredUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,validationActive:!0})}throw new Error("Failed pattern match at Livestream.Ctas.Display.Referral (line 146, column 24 - line 175, column 45): "+[a.constructor.name])}}},QJ=function(e){return function(n){return function(a){var t=zJ(e)(n),o=function(I){return function(b){return function(T){return function(L){return function(O){return xM(I)([rwe("mb-2")(T),owe("form-control "+b)({type:"text",value:L,onChange:uwe(a)(function($){return Me.create(O(Ts($)))})})])}}}}},u=ya(Tt(e.user)&&n.cta.requireAnonymousUserEmail)(o("col-12 mb-3")("t--anon-email")("Your email")(n.anonymousUserEmail)(kJ.create)),i=ya(Tt(e.user))(Se([ya(n.cta.requireAnonymousUserFirstName)(o("col-12 col-md-6 mb-3")("t--anon-first-name")("Your first name")(n.anonymousUserFirstName)(OJ.create)),ya(n.cta.requireAnonymousUserLastName)(o("col-12 col-md-6 mb-3")("t--anon-last-name")("Your last name")(n.anonymousUserLastName)(UJ.create))])),l=o("col-12 mb-3")("t--referred-email")("Other person\u2019s email")(n.referredUserEmail)(qJ.create),s=Se([ya(n.cta.requireReferredUserFirstName)(o("col-12 col-md-6 mb-3")("t--referred-first-name")("Other person\u2019s first name")(n.referredUserFirstName)(BJ.create)),ya(n.cta.requireReferredUserLastName)(o("col-12 col-md-6 mb-3")("t--referred-last-name")("Other person\u2019s last name")(n.referredUserLastName)(HJ.create))]),R=function(I){return a(Me.create(I))},d=function(I){return a(yn.create(I))},y=iwe("btn btn-sm btn-outline-primary d-flex py-1 px-2 t--close")({onClick:jJ(d)(JJ.value)})(lwe("fe fe-x")(""));return cwe({body:Se([NM("row justify-content-end mt-n3")(y),swe("mt-3")({id:Ri})(n.cta.title),da(n.cta.description)(vwe("")),xM("row")([i,u,s,l]),xM("row")([NM("col-auto my-auto")(fwe("btn btn-primary t--save")({onClick:jJ(R)(WJ.value)})("Save")),NM("col my-auto text-danger")(ya(n.validationActive)(da(t)(Qe)))])]),bodyClass:"t--cta-active",size:Fv.value})}}},KJ=function(e){return As({cta:e,anonymousUserFirstName:"",anonymousUserLastName:"",anonymousUserEmail:"",referredUserFirstName:"",referredUserLastName:"",referredUserEmail:"",validationActive:!1})};var _we=Ma(Ve),pwe=J(ca),kv=ot(hr(Ga)),Ub=ln(on)(Kn),Kh=J(wn),Yh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Xh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Zh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),eD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Bb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Hb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),qb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dwe=function(){function e(){}return e.value=new e,e}(),YJ=function(e){return function(n){return function(a){var t=function(o){return a(Me.create(o))};if(n instanceof Yh)return RJ(e)(n.value0)(function(o){return t(kb.create(o))});if(n instanceof Xh)return EJ(n.value0)(function(o){return t(Bb.create(o))});if(n instanceof Zh)return AJ(n.value0)(function(o){return t(Hb.create(o))});if(n instanceof eD)return QJ(e)(n.value0)(function(o){return t(qb.create(o))});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 61, column 29 - line 69, column 61): "+[n.constructor.name])}}},XJ=function(e){return function(n){return function(a){var t=_we(pwe(new yn(dwe.value)));if(n instanceof Yh&&a instanceof kb){if(a.value0 instanceof Me)return kv(function(o){return Me.create(kb.create(o))})(Yh.create)(hJ(e)(n.value0)(a.value0.value0));if(a.value0 instanceof yn)return Ub(t)(function(){return Kh(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 76, column 5 - line 81, column 19): "+[a.value0.constructor.name])}if(n instanceof Xh&&a instanceof Bb){if(a.value0 instanceof Me)return kv(function(o){return Me.create(Bb.create(o))})(Xh.create)(IJ(n.value0)(a.value0.value0));if(a.value0 instanceof yn)return Ub(t)(function(){return Kh(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 84, column 5 - line 90, column 19): "+[a.value0.constructor.name])}if(n instanceof Zh&&a instanceof Hb){if(a.value0 instanceof Me)return kv(function(o){return Me.create(Hb.create(o))})(Zh.create)(LJ(n.value0)(a.value0.value0));if(a.value0 instanceof yn)return Ub(t)(function(){return Kh(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 93, column 5 - line 98, column 19): "+[a.value0.constructor.name])}if(n instanceof eD&&a instanceof qb){if(a.value0 instanceof Me)return kv(function(o){return Me.create(qb.create(o))})(eD.create)(VJ(e)(n.value0)(a.value0.value0));if(a.value0 instanceof yn)return Ub(t)(function(){return Kh(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 101, column 5 - line 107, column 19): "+[a.value0.constructor.name])}return Kh(n)}}},ZJ=function(e){return function(n){return e instanceof Yh&&n instanceof rl?DJ(e.value0)(n.value0):e instanceof Zh&&n instanceof ol?PJ(e.value0)(n.value0):e instanceof Xh&&n instanceof ul?TJ(e.value0)(n.value0):e instanceof eD&&n instanceof il?$J(e.value0)(n.value0):!1}},e$=function(e){if(e instanceof rl)return kv(function(n){return Me.create(kb.create(n))})(Yh.create)(gJ(e.value0));if(e instanceof ul)return kv(function(n){return Me.create(Bb.create(n))})(Xh.create)(SJ(e.value0));if(e instanceof ol)return kv(function(n){return Me.create(Hb.create(n))})(Zh.create)(xJ(e.value0));if(e instanceof il)return kv(function(n){return Me.create(qb.create(n))})(eD.create)(KJ(e.value0));throw new Error("Failed pattern match at Livestream.Ctas.Display (line 49, column 8 - line 58, column 66): "+[e.constructor.name])};var n$=kt(Y),Wb=Te(he),mwe=Ho(Y),hwe=mv(Y)()(),Dwe=$_(he),gwe=so()(),jM=Bi(Ya),Rwe=Yn(co),a$=Jn(Y)()(),t$=Yn(ga),ywe=vp($e),wwe=Wn(Ve),bwe=Rs(pr),Ewe=Mu(),Iwe=ne(en),M0=J(wn),Twe=gf(Ya),A0=ln(on)(Kn),Swe=Pt(Ar),OM=J(ca),Cwe=jo(ca)(_n),Fwe=cr(ca),r$=Ma(Ve),Gwe=ot(hr(Ga)),zp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kM=function(){function e(){}return e.value=new e,e}(),o$=function(){function e(){}return e.value=new e,e}(),BM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),u$=function(e){return function(n){return function(a){var t=Se([n$("text-center")("The host just asked a poll question!"),n$("text-center")("To participate in live polls, please introduce yourself:"),jp({cancelButton:new S({text:"Not now",click:a(new zp({keepShowingPolls:!1}))}),autoFocus:!0})(e)(n.registration)(function(i){return a(BM.create(i))}),Wb("small mt-3")([kp(e),Wb("mt-2")([Qe("After submitting, you\u2019ll be able to answer all "),mwe("")("future"),Qe(" poll questions in this stream!")])])]),o=Se([hwe("font-weight-bold fw-bold")({id:Ri})(n.poll.question),Wb("d-flex flex-column ml-4")(d_(function(i){return function(l){return Dwe("form-check-label mb-2")([gwe("form-check-input mt-2 t--option")({checked:jM(i)(n.selected),onChange:Rwe(a)(function(s){return new UM(i)}),type:function(){return n.poll.multiSelect?"checkbox":"radio"}()}),Qe(l)])}})(n.poll.options)),Wb("d-flex justify-content-start mt-6")([a$("btn btn-primary px-4 mr-3 t--submit")({onClick:t$(a)(kM.value),disabled:ri(n.selected)})("Submit answer"),a$("btn btn-outline-primary px-4 d-flex align-items-center t--skip")({onClick:t$(a)(o$.value)})("Do it later")])]),u=function(){if(e.user instanceof S)return"t--poll-active";if(e.user instanceof M)return"t--poll-registration-form";throw new Error("Failed pattern match at Livestream.Polls.DisplayPoll (line 62, column 18 - line 64, column 45): "+[e.user.constructor.name])}();return ywe(u)(function(){if(e.user instanceof S)return o;if(e.user instanceof M)return t;throw new Error("Failed pattern match at Livestream.Polls.DisplayPoll (line 58, column 5 - line 60, column 34): "+[e.user.constructor.name])}())}}},i$=function(e){return function(n){return function(a){var t=function(o){return wwe(bwe("Livestream: Poll Response")(Kc(Ev(e.conference))(Ewe({livestream_poll_id:Iwe(n.poll.id),livestream_poll_question:n.poll.question,livestream_poll_skipped:function(){return o.skipped?"true":""}(),livestream_poll_multiselect:function(){return n.poll.multiSelect?"true":"false"}(),livestream_poll_response:o.option}))))};if(a instanceof zp)return M0(n);if(a instanceof UM&&n.poll.multiSelect)return M0({poll:n.poll,registration:n.registration,selected:function(){var o=jM(a.value0)(n.selected);return o?Twe(a.value0)(n.selected):tu(a.value0)(n.selected)}()});if(a instanceof UM)return M0({poll:n.poll,registration:n.registration,selected:[a.value0]});if(a instanceof kM&&ri(n.selected))return M0(n);if(a instanceof kM)return A0(Za(Swe(SC(n.poll)(n.selected))(function(o){return Pl(vc)("Error answering a Livestream poll")({poll_id:n.poll.id})(function(u){return OM(Ee)})})))(function(){return A0(Za(Cwe(d_(function(o){return function(u){return{idx:o,opt:u}}})(n.poll.options))(function(o){return Fwe(jM(o.idx)(n.selected))(t({skipped:!1,option:o.opt}))})))(function(){return A0(r$(OM(new zp({keepShowingPolls:!0}))))(function(){return M0(n)})})});if(a instanceof o$)return A0(Za(SC(n.poll)([])))(function(){return A0(Za(t({skipped:!0,option:""})))(function(){return A0(r$(OM(new zp({keepShowingPolls:!0}))))(function(){return M0(n)})})});if(a instanceof BM)return Gwe(BM.create)(function(o){return{poll:n.poll,selected:n.selected,registration:o}})(Op(n.registration)(a.value0));throw new Error("Failed pattern match at Livestream.Polls.DisplayPoll (line 114, column 24 - line 161, column 55): "+[a.constructor.name])}}},l$=function(e){return A0(Za(cO(e)))(function(){return M0({poll:e,selected:[],registration:Up})})};var c$=ln(on),Mwe=c$(_a),Awe=ee(_a),s$=Wn(Ve),Lwe=jo(ca)(Gu),Pwe=Rs(pr),v$=Mu(),xwe=ne(Eg),Nwe=ne($u),Jb=ne(en),_l=J(wn),f$=hr(Ga),_$=ot(f$),p$=ee(Kn),d$=kr(f$),Bv=c$(Kn),jwe=we(Ya),Hv=J(na),nD=Cm(Ve),aD=k(ae),Owe=k(ei),tD=s_(_n),HM=Sa(),m$=yi(HM(B({reflectSymbol:function(){return"poll_id"}})(rn)(tn)))(Ve),Uwe=Xi(Ve),kwe=we(or(qm)),Bwe=yi(HM(B({reflectSymbol:function(){return"conference_id"}})(rn)(tn)))(Ve),qM=we(or(Ya)),WM=yi(HM(B({reflectSymbol:function(){return"id"}})(rn)(tn)))(Ve),rD=function(){function e(){}return e.value=new e,e}(),Vp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),oD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Qp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),$b=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),zb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),JM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Kp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),h$=function(e){return function(n){return function(a){if(n.stage instanceof rD)return $n;if(n.stage instanceof Vp)return u$(e)(n.stage.value0)(function(t){return a(Qp.create(t))});if(n.stage instanceof oD)return YJ(e)(n.stage.value0)(function(t){return a($b.create(t))});throw new Error("Failed pattern match at Livestream.Live.VideoOverlay (line 96, column 3 - line 102, column 59): "+[n.stage.constructor.name])}}},Hwe=function(e){return function(n){return e instanceof oD?ZJ(e.value0)(n):!1}},qwe=function(){return function(e){return function(n){return function(a){return Mwe(Qt(100))(function(){return Awe(s$(vy(Ri)))(function(t){return Lwe(t)(function(o){return s$(function(){var i=nF(LS(o))(),l=Z4({x:i.left+1,y:i.top+1})(),s=ZC(LS(l))();return Pwe(n)(Kc(v$(a))(Kc(Ev(e.conference))(v$({livestream_popup_visible:xwe(s===Ri)}))))()})})})})}}}},D$=qwe(),Wwe=function(e){var n=function(){return D$(e)("Livestream: CTA Popup Shown")},a=n();return function(t){if(t instanceof rl)return a({livestream_cta_target_conference_id:Nwe(t.value0.conferenceId)});if(t instanceof ul)return a({livestream_cta_id:Jb(t.value0.id)});if(t instanceof ol)return a({livestream_cta_id:Jb(t.value0.id),livestream_cta_title:t.value0.title,livestream_cta_url:t.value0.url});if(t instanceof il)return a({livestream_cta_id:Jb(t.value0.id),livestream_cta_title:t.value0.title});throw new Error("Failed pattern match at Livestream.Live.VideoOverlay (line 156, column 29 - line 173, column 8): "+[t.constructor.name])}},g$=function(e){return function(n){return function(a){if(a instanceof Qp&&a.value0 instanceof zp)return _l({stage:rD.value,showPolls:a.value0.value0.keepShowingPolls});var t=function(o){if(a instanceof Qp)return _l(n);if(a instanceof $b){if(a.value0 instanceof yn)return _l({showPolls:n.showPolls,stage:rD.value});var u=function(s){return _l(n)};return a.value0 instanceof Me&&n.stage instanceof oD?_$($b.create)(function(s){return{showPolls:n.showPolls,stage:new oD(s)}})(XJ(e)(n.stage.value0)(a.value0.value0)):u(!0)}var u=function(l){if(a instanceof zb&&n.showPolls)return p$(d$(Qp.create)(l$(a.value0)))(function(d){return Bv(Za(D$(e)("Livestream: Poll Popup Shown")({livestream_poll_id:Jb(a.value0.id)})))(function(){return _l({showPolls:n.showPolls,stage:new Vp(d)})})});if(a instanceof zb)return _l(n);var s=function(d){if(a instanceof JM||a instanceof Kp&&Hwe(n.stage)(a.value0))return _l(n);if(a instanceof Kp)return Bv(Za(Wwe(e)(a.value0)))(function(){return p$(d$($b.create)(e$(a.value0)))(function(y){return _l({showPolls:n.showPolls,stage:new oD(y)})})});throw new Error("Failed pattern match at Livestream.Live.VideoOverlay (line 104, column 1 - line 104, column 76): "+[a.constructor.name])};if(a instanceof JM){if(n.stage instanceof Vp){var R=n.stage.value0.poll.id===a.value0.pollId;return R?_l({showPolls:n.showPolls,stage:rD.value}):s(!0)}return s(!0)}return s(!0)};if(a instanceof zb){if(n.stage instanceof Vp){var i=n.stage.value0.poll.id===a.value0.id;return i?_l(n):u(!0)}return u(!0)}return u(!0)};return a instanceof Qp&&n.stage instanceof Vp?_$(Qp.create)(function(o){return{showPolls:n.showPolls,stage:new Vp(o)}})(i$(e)(n.stage.value0)(a.value0)):t(!0)}}},R$=function(e){var n=function(u){return u instanceof il?Hv(u.value0.id):M.value},a=function(u){return u instanceof ul?Hv(u.value0.id):M.value},t=function(u){return u instanceof ol?Hv(u.value0.id):M.value},o=function(u){return u instanceof rl?Hv(u.value0.conferenceId):M.value};return Bv(nD(function(u){return aD(Owe(zb.create)(function(i){return i.poll}))(tD(function(){var i=jwe(u.poll_id);return function(l){return i(function(s){return s.poll.id}(l))}}())(e.conference.polls))})(m$(e.pusher.dataChannel)("show-poll")))(function(){return Bv(Uwe(function(u){return new JM({pollId:u.poll_id})})(m$(e.pusher.dataChannel)("hide-poll")))(function(){return Bv(nD(function(u){return aD(Kp.create)(tD(function(){var i=kwe(Hv(u.conference_id));return function(l){return i(o(l))}}())(e.ctas))})(Bwe(e.pusher.dataChannel)("show-event-cta")))(function(){return Bv(nD(function(u){return aD(Kp.create)(tD(function(){var i=qM(Hv(u.id));return function(l){return i(t(l))}}())(e.ctas))})(WM(e.pusher.dataChannel)("show-general-cta")))(function(){return Bv(nD(function(u){return aD(Kp.create)(tD(function(){var i=qM(Hv(u.id));return function(l){return i(a(l))}}())(e.ctas))})(WM(e.pusher.dataChannel)("show-featured-sps-cta")))(function(){return Bv(nD(function(u){return aD(Kp.create)(tD(function(){var i=qM(Hv(u.id));return function(l){return i(n(l))}}())(e.ctas))})(WM(e.pusher.dataChannel)("show-referral-cta")))(function(){return _l({stage:rD.value,showPolls:!0})})})})})})})};var Jwe=Jl(),$M=Te(he),$we=kt($e),zwe=Ua(he),Vwe=Va(Y),y$=gu()(),w$=kt(Y),Qwe=Jt(Y),Vb=Jn(Y)()(),Kwe=ir(Bo),Ywe=ln(on),zM=Yn(ga),b$=Ywe(Kn),Xwe=UB(),VM=J(wn),E$=ee(Ze),Zwe=$s(FP),ebe=Hu(tT),nbe=we(dy),abe=we(Ws),tbe=rs()(),I$=function(){function e(){}return e.value=new e,e}(),QM=function(){function e(){}return e.value=new e,e}(),T$=function(){function e(){}return e.value=new e,e}(),KM=function(){function e(){}return e.value=new e,e}(),YM=function(){function e(){}return e.value=new e,e}(),Qb=function(e){return function(n){return Jwe({onDismiss:n(new yn(YM.value)),bodyClass:"t--livestreams-update-network-settings-modal",body:function(){if(e.modalView instanceof I$)return $M("text-center")([ya(e.confirmConferenceRegistration)($we("mb-4")(zwe("badge badge-soft-primary bg-primary-soft")([Vwe("fe fe-check mr-1")(""),Qe("You\u2019re registered!")]))),y$("my-4")({src:"/img/network/counselor.svg",height:"76",width:"91"}),w$("")("Connect with colleges when you attend or register for their livestreams?"),Qwe("text-secondary")("Connecting with colleges puts you on their radar and introduces you to admissions officers and current students"),$M("mx-md-6 mt-4")([Vb("btn btn-primary w-100 t--livestream-opt-into-auto-connect")({onClick:Kwe(function(){return n(new Me(T$.value))(),n(new Me(KM.value))()})})("Yes, always connect"),Vb("btn btn-outline-primary w-100 mt-3 t--livestream-connect-with-school")({onClick:zM(n)(new Me(KM.value))})("Only connect with "+e.school.name),Vb("btn btn-link mt-3")({onClick:zM(n)(new yn(YM.value))})("Close")])]);if(e.modalView instanceof QM)return $M("text-center")([y$("mt-4")({src:"/img/livestreams/network-settings-modal/connection-sent.png",height:"42",width:"42"}),w$("")("Connection request sent!"),Vb("mt-4 btn btn-primary t--livestream-network-settings-modal-close")({onClick:zM(n)(new yn(YM.value))})("Close")]);throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 81, column 13 - line 112, column 12): "+[e.modalView.constructor.name])}()})}},Kb=function(e){return function(n){if(n instanceof Me){if(n.value0 instanceof T$)return b$(Za(Xwe({publishScope:gi.value,publishContext:EG.value,autoRequestFromLivestreams:!0,livestreamConference:e.conference})))(function(){return VM({conference:e.conference,confirmConferenceRegistration:e.confirmConferenceRegistration,school:e.school,modalView:QM.value})});if(n.value0 instanceof KM)return b$(Za(DU(e.school.id)(e.conference.id)))(function(){return VM({conference:e.conference,confirmConferenceRegistration:e.confirmConferenceRegistration,school:e.school,modalView:QM.value})});throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 59, column 31 - line 71, column 44): "+[n.value0.constructor.name])}if(n instanceof yn)return VM(e);throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 58, column 1 - line 58, column 55): "+[e.constructor.name,n.constructor.name])}},Yb=function(e){return function(n){var a=ke(!1)(E$(e.dismissedNetworkSettingsModalAt)(function(o){return new S(Zwe(ebe($S(Ee))(o))(30))})),t=function(o){return[n.rcr834NetworkSettingsModal,nbe(o.publishScope)(gi.value),!o.autoRequestFromLivestreams,e.hasAccessToNetwork,!a]};return ke(!1)(E$(e.profile)(function(o){return new S(PI(abe(!0))(t(o)))}))}},Xb=function(e){return tbe(e)({modalView:I$.value})};var uD=function(){function e(){}return e.value=new e,e}(),Yp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),iD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Zb=function(){function e(){}return e.value=new e,e}();var S$=ln(on),C$=S$(Kn),XM=Ma(Ve),rbe=S$(_a),ZM=J(ca),e1=J(wn),F$=function(e){return function(n){return function(a){return function(t){return a.throttleState instanceof uD&&t instanceof iD?C$(XM(rbe(Qt(a.delay))(function(){return ZM(e(Zb.value))})))(function(){return e1(n({delay:a.delay,throttleState:new Yp(t.value0)}))}):a.throttleState instanceof Yp&&t instanceof iD?e1(n({delay:a.delay,throttleState:new Yp(t.value0)})):a.throttleState instanceof Yp&&t instanceof Zb?C$(XM(ZM(a.throttleState.value0)))(function(){return e1(n({delay:a.delay,throttleState:uD.value}))}):e1(n(a))}}}},G$=function(e){return function(n){return XM(ZM(e(new iD(n))))}},M$=function(e){return{throttleState:uD.value,delay:e}};var n1=Te(Y),a1=Te(he),obe=kt(Y),Ls=ne(en),ube=uo(Zt),A$=Te($e),ibe=gr(Y)()(),lbe=Ho(Y),cbe=Ua(Y),sbe=Hf($e),vbe=UN(he)()(),L$=vs(ra),t1=Jn(Y)()(),eA=Yn(ga),P$=Bi(Ya),x$=Hf(he),r1=os(Y),fbe=os($e),_be=os(he),pbe=J_(he),dbe=H_(he),Xp=q_(Y),mbe=W_(he),o1=pe(ze),hbe=Oo(ra),lD=ln(on)(Kn),nA=Ma(Ve),Dbe=Pt(Ar),N$=J(ca),qv=J(wn),aA=k(Ga),gbe=we(F8),j$=Nl(ra)(_n),Rbe=Ng(ra),ybe=an(It),wbe=gf(Ya),bbe=Xi(Ve),Ebe=By(Ve),u1=function(){function e(){}return e.value=new e,e}(),O$=function(){function e(){}return e.value=new e,e}(),U$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),k$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),tA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),B$=function(){function e(){}return e.value=new e,e}(),H$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),q$=function(){function e(){}return e.value=new e,e}(),rA=function(){function e(){}return e.value=new e,e}(),W$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),oA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),J$=function(e){return function(n){return function(a){if(e.conference.polls.length===0)return $n;var t=function(){if(n.stage instanceof u1)return $n;if(n.stage instanceof O$)return n1("position-absolute-fullsize d-flex align-items-center justify-content-center bg-semi-transparent-white")("Switching...");throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 185, column 24 - line 190, column 25): "+[n.stage.constructor.name])}(),o=a1("d-flex flex-nowrap align-items-baseline")([obe("")("Polls"),n1("text-muted ml-3 small")("Polls will be shown to viewers "+(Ls(e.videoLagSeconds)+" seconds after you launch them, to account for the audio/video delay"))]),u=function(s){return function(R){return function(d){var y=function(I){return function(b){var T=function(){if(R===0)return"0%";if(Je)return Ls(ube(100*b|0)(R))+"%";throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 181, column 13 - line 183, column 69): "+[])}();return a1("row align-items-center bg-light-grey mb-1 py-2 t--poll-response-option")([n1("col-7 d-flex justify-content-end")(I),A$("col-4")(A$("progress")(ibe("progress-bar")({style:dt({width:T})})(""))),a1("col-1")([lbe("")(Ls(b)),cbe("text-secondary text-nowrap")(" ("+(T+")"))])])}};return sbe("t--poll-responses-"+Ls(s.id))(vbe("py-0")({colSpan:6})(CI(y)(s.options)(d.optionCounts)))}}},i=function(s){var R=ke(s.status)(L$(s.poll.id)(n.statuses)),d=t1("btn btn-white btn-sm px-4 t--open")({onClick:eA(a)(new U$(s.poll))})("Launch poll");if(R instanceof hs)return d;if(R instanceof hc)return Se([t1("btn btn-success btn-sm px-4 mr-3")({disabled:!0})("Poll LIVE"),t1("btn btn-danger btn-sm px-4 t--close")({onClick:eA(a)(new k$(s.poll))})("Close poll")]);if(R instanceof Ds)return d;throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 143, column 17 - line 155, column 21): "+[R.constructor.name])},l=function(s){var R=P$(s.poll.id)(n.expandedResponses),d=L$(s.poll.id)(n.responses),y=bn(0)(function(T){return T.answered})(d),I=bn(0)(function(T){return T.seen})(d),b=bn(0)(function(T){return T.skipped})(d);return Se([x$("t--poll t--poll-"+Ls(s.poll.id))([r1("pt-3")(function(){var T=St(s.poll.autoDisplayMinutesFromStart);return T?"\u23F0 ":""}()+s.poll.question),fbe("text-nowrap")(i(s)),r1("t--shown")(Ls(I)),_be("t--answers")([Qe(Ls(y)),t1("btn btn-sm btn-white ml-2 py-0 px-1 "+("fe fe-chevron-"+function(){return R?"up":"down t--expand-responses"}()))({onClick:eA(a)(new H$(s.poll.id))})("")]),r1("t--skipped")(Ls(b)),r1("t--pending")(Ls((I-y|0)-b|0))]),ya(R)(da(d)(u(s.poll)(y)))])};return Se([o,a1("t--polls position-relative")([da(n.error)(function(s){return n1("alert alert-danger")(s)}),pbe("table table-sm mb-0")([dbe("")([x$("")([Xp("")("Question"),Xp("")("Actions"),Xp("")("# saw poll"),Xp("")("# answered"),Xp("")("# skipped"),Xp("")("# not responded")])]),mbe("")(o1(hbe(function(s){return-function(R){return R.poll.id}(s)|0})(e.conference.polls))(l))]),t])])}}},$$=function(e){return function(n){var a=function(t){return lD(nA(Dbe(t)(function(o){return N$(B$.value)})))(function(){return qv({expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,responses:n.responses,statuses:n.statuses,stage:O$.value,error:M.value})})};return function(t){if(t instanceof U$)return a(aA(tA.create)(TC(t.value0)(hc.value)));if(t instanceof k$)return a(aA(tA.create)(TC(t.value0)(Ds.value)));if(t instanceof tA){var o=o1(au(function(){var u=gbe(hc.value);return function(i){return u(function(l){return l.status}(i))}}())(t.value0))(function(u){return u.pollId});return qv({error:n.error,responseThrottle:n.responseThrottle,responses:n.responses,statuses:j$(o1(t.value0)(function(u){return new gn(u.pollId,u.status)})),expandedResponses:Rbe(ybe(n.expandedResponses)(o)),stage:u1.value})}if(t instanceof B$)return qv({expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,responses:n.responses,statuses:n.statuses,stage:u1.value,error:new S("That didn't work for some reason, try again")});if(t instanceof H$)return qv({error:n.error,responseThrottle:n.responseThrottle,responses:n.responses,stage:n.stage,statuses:n.statuses,expandedResponses:function(){var u=P$(t.value0)(n.expandedResponses);return u?wbe(t.value0)(n.expandedResponses):tu(t.value0)(n.expandedResponses)}()});if(t instanceof q$)return lD(G$(oA.create)(rA.value))(function(){return qv(n)});if(t instanceof rA)return lD(nA(aA(W$.create)(gO(e.conference.id))))(function(){return qv(n)});if(t instanceof W$)return qv({error:n.error,expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,stage:n.stage,statuses:n.statuses,responses:j$(o1(t.value0)(function(u){return new gn(u.pollId,u.responses)}))});if(t instanceof oA)return F$(oA.create)(function(u){return{error:n.error,expandedResponses:n.expandedResponses,responses:n.responses,stage:n.stage,statuses:n.statuses,responseThrottle:u}})(n.responseThrottle)(t.value0);throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 202, column 22 - line 248, column 98): "+[t.constructor.name])}}},z$=function(e){return lD(bbe(hn(q$.value))(Ebe(e.pusher.dataChannel)("poll-responses-changed")))(function(){return lD(nA(N$(rA.value)))(function(){return qv({statuses:fs,responses:fs,expandedResponses:[],responseThrottle:M$(500),stage:u1.value,error:M.value})})})};var V$=gu()(),Q$=Te(he),K$=kt(Y),Y$=Br(Y),X$=V$("img-fluid mb-6")({src:"/img/logo-white.svg",style:dt({width:"5em"})}),i1=function(e){return Q$(e+` t--splashscreen position-absolute-fullsize d-flex flex-column align-items-center justify-content-around bg-dark text-white `)},cD=function(e){return i1("")([K$("text-center")(e)])},uA=i1("t--splashscreen-intro")([Te($e)("text-center mt-7")(Y$("")("The recording will load in a moment.")),X$]),l1=i1("px-4 px-md-6 t--splashscreen-intro")([V$("img-fluid")({src:"/img/illustrations/livestreams/2022-02-intro.svg"})]),Z$=i1("t--splashscreen-complete")([Q$("text-center mt-7")([Y$("")("The event is now over."),K$("")("Thank you for attending!"),qu(Y)("")("A recording will be available to watch shortly.")]),X$]);var c1=e=>e.play();var Wv=Tu(ez());Ja();var nz=e=>{let[n,a]=ka.useState(),[t,o]=ka.useState(),u=ka.useRef();return u.current=e,Ft(()=>{if(!t)return Wv.default.isSupported()?a(Ibe(e.videoStreamUrl,e.videoElementId,u)):e.onNotSupported(),o(!0),()=>{n&&n.destroy()}}),null},Ibe=(e,n,a)=>{let t=document.getElementById(n);return t?(hls=new Wv.default,a.current.onInstanceCreated&&a.current.onInstanceCreated(hls),hls.on(Wv.default.Events.ERROR,function(o,u){if(a.current.onError&&a.current.onError("HLS error: "+u.type,u),u.fatal)switch(u.type){case Wv.default.ErrorTypes.MEDIA_ERROR:hls.recoverMediaError();break;default:hls.destroy(),a.current.onCriticalFail&&a.current.onCriticalFail(u.type);break}}),hls.on(Wv.default.Events.MEDIA_ATTACHED,()=>hls.loadSource(e)),hls.on(Wv.default.Events.MANIFEST_PARSED,()=>a.current.onReady&&a.current.onReady()),hls.on(Wv.default.Events.INIT_PTS_FOUND,(o,u)=>a.current.onInitialPts&&a.current.onInitialPts({initPTS:u.initPTS})),hls.attachMedia(t),hls):(a.current.onCriticalFail&&a.current.onCriticalFail("Couldn't find element #"+n),null)};var Tbe=fv();var az=function(){return function(){return Tbe(nz)}};Ja();var zl={PRIMARY:"#008CFD",SECONDARY:"#6E84A3",WHITE:"#FFF",GRAY_300:"#E3EBF6"};var _D=Tu(cz()),sz=4,t1e=({trackColor:e,background:n})=>({props:a,children:t})=>ka.createElement("div",Object.assign({},a,{style:Object.assign({},a.style,{height:`${sz}px`,borderRadius:`${sz*2}px`,background:n||e})}),...t),r1e=({horizontal:e})=>({props:n,isDragged:a})=>ka.createElement("svg",Object.assign({},n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 18 18"}),ka.createElement("circle",{cx:"9",cy:"9",r:"8.5",fill:a?zl.SECONDARY:zl.WHITE,stroke:zl.SECONDARY}),ka.createElement("path",{stroke:a?zl.WHITE:zl.SECONDARY,d:e?"M7.5 6L7.5 12":"M6 7.5L12 7.5"}),ka.createElement("path",{stroke:a?zl.WHITE:zl.SECONDARY,d:e?"M10.5 6L10.5 12":"M6 10.5L12 10.5"})),vz=e=>ka.createElement(_D.Range,{step:e.step,min:e.min,max:e.max,values:[e.value],onChange:([n])=>e.onChange(n),onFinalChange:([n])=>e.onFinalChange&&e.onFinalChange(n),renderTrack:t1e({trackColor:e.trackColor||zl.GRAY_300,background:e.fillBefore?(0,_D.getTrackBackground)({values:[e.value],colors:[zl.PRIMARY,zl.GRAY_300],min:e.min,max:e.max}):void 0}),renderThumb:r1e({horizontal:!0})});var o1e=fv(),fz={CanPassToJavaScript0:function(){},CanReceiveFromJavaScript1:function(){return av}};var _z=function(e){return function(){return function(){return o1e(vz)}}};var u1e=gr($e)()(),i1e=_z(fz)()(),l1e=Yn(co),c1e=Jn($e)()(),s1e=Yn(ga),pz=Te(he),v1e=Ua(Y),_1=Ma(Ve),sA=J(ca),dz=ln(on),f1e=nt(A_),Fc=J(wn),_1e=B_(Ve),vA=Wn(Ve),p1e=k(ae),d1e=lc(G_),m1e=dz(_a),Jv=dz(Kn),h1e=cr(wn),D1e=ee(_a),g1e=Xl(Bu),R1e=cr(at),fA=function(){function e(){}return e.value=new e,e}(),_A=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),pA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),mz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),hz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Dz=function(){function e(){}return e.value=new e,e}(),y1e=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),gz=function(e){return function(n){if(e.videoState instanceof M)return $n;if(e.videoState instanceof S){var a=u1e("")({style:dt({minWidth:"6rem",width:"6rem"})})(i1e({value:function(){return e.videoState.value0.muted?0:e.videoState.value0.volume}(),min:0,max:1,step:.05,onChange:l1e(n)(function(i){return Me.create(_A.create(i))})})),t=function(){if(e.videoState.value0.muted)return"fe-volume-x";if(Je)return"fe-volume-2";throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 128, column 5 - line 130, column 34): "+[])}(),o=c1e("btn large px-3 py-1 mr-3 text-white fe "+t)({onClick:s1e(n)(new Me(fA.value))})($n),u=pz("d-flex align-items-center text-white px-3")([Qe("LIVE"),v1e("text-danger x-large ml-2 mt-n1")("\u25CF")]);return pz("mb-2 w-100 d-flex align-items-center bg-semi-transparent-black "+function(){return e.visible?"":"hidden"}())([ya(e.config.liveIndicator)(u),ya(e.config.mute)(o),ya(e.config.volume)(a)])}throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 105, column 1 - line 105, column 50): "+[e.constructor.name,n.constructor.name])}},Rz=function(e){return Me.create(pA.create(e))},yz=function(e){return _1(sA(new yn(new y1e(function(n){return function(){return e(n)(),new Me(new pA(n))}}))))},p1=function(){return new Me(new dA(!0))}(),wz=function(e){return{config:e,videoState:M.value,visible:!1,visibilityExpiration:f1e}},bz=2e3,Ez=function(e){return function(n){if(n instanceof yn)return Fc(e);if(n instanceof Me){var a=_1e(vA(function(){var i=Ju();return p1e(function(l){return Me.create(hz.create(l))})(d1e(bz)(i))})),t=m1e(Qt(bz))(function(){return sA(new Me(Dz.value))}),o=function(u){if(n.value0 instanceof fA)return Fc(e);var i=function(l){if(n.value0 instanceof _A)return Fc(e);if(n.value0 instanceof pA)return Jv(_1(vA(function(){var R=jS(n.value0.value0)(),d=xS(n.value0.value0)();return new Me(new mz({muted:R,volume:d}))})))(function(){return Fc(e)});if(n.value0 instanceof mz)return Fc({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new S(n.value0.value0)});if(n.value0 instanceof dA)return Jv(h1e(n.value0.value0)(a))(function(){return Jv(_1(t))(function(){return Fc({config:e.config,videoState:e.videoState,visibilityExpiration:e.visibilityExpiration,visible:n.value0.value0})})});if(n.value0 instanceof hz)return Fc({config:e.config,videoState:e.videoState,visible:e.visible,visibilityExpiration:n.value0.value0});if(n.value0 instanceof Dz)return Jv(_1(D1e(vA(Ju))(function(s){var R=g1e(s)(e.visibilityExpiration);return R?sA(new Me(new dA(!1))):t})))(function(){return Fc(e)});throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 143, column 1 - line 143, column 55): "+[n.value0.constructor.name])};return n.value0 instanceof _A&&e.videoState instanceof S?Jv(a)(function(){return Jv(yz(function(l){return function(){return R1e(n.value0.value0>0)(Kf(!1)(l))(),NS(n.value0.value0)(l)()}}))(function(){return Fc({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new S({muted:e.videoState.value0.muted,volume:n.value0.value0})})})}):i(!0)};return n.value0 instanceof fA&&e.videoState instanceof S?Jv(a)(function(){return Jv(yz(Kf(!e.videoState.value0.muted)))(function(){return Fc({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new S({volume:e.videoState.value0.volume,muted:!e.videoState.value0.muted})})})}):o(!0)}throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 143, column 1 - line 143, column 55): "+[e.constructor.name,n.constructor.name])}},Iz=function(e){if(e instanceof S)return!1;if(e instanceof M)return!0;throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 212, column 1 - line 212, column 37): "+[e.constructor.name])};var Tz=e=>n=>a=>()=>e.then(a,n),Sz=e=>e instanceof Error,Cz=e=>e===null?"null":typeof e=="undefined"?"undefined":e.toString();var w1e=J($c(ur)),b1e=I_(ur),E1e=mn(Dn),Fz=ha(Yg(nR)(ur)),I1e=Qc(ur),T1e=k(Kg(Bc)),S1e=Xd(ur),C1e=pg(zn),F1e=Qa(lx);var G1e=function(e){var n=function(a){if(Sz(a))return w1e(a);if(Je)return b1e(new Kd(""));throw new Error("Failed pattern match at Utils.Promise (line 53, column 5 - line 55, column 43): "+[a.constructor.name])};return qt(function(a){return ou("Promise failed: "+Cz(e))})(E1e)(Jm(Fz(n(e))(Fz(I1e("Error")(e))(T1e(ou)(S1e(e))))))},d1=function(e){return iv(function(n){return C1e(F1e)(Tz(e)(function(a){return n(Ae.create(G1e(a)))()})(function(a){return n(Oe.create(a))()}))})};var M1e=ee(Ze),A1e=Te($e),mA=ir(dv),pD=ee(er),hA=Qs(at)(Gu),m1=Yn(ga),Gz=UR(Y)()(),L1e=az()(),P1e=J(at),dD=Yn(co),Mz=gr($e)()(),x1e=Jn(he)()(),N1e=Va(Y),j1e=Te(he),Az=ln(on),O1e=ys(Ve)(),U1e=ai(_n)(lt),k1e=we(or(Ya)),Zp=Az(_a),B1e=Bs(ca),H1e=Gr(x_),no=J(ca),Lz=Wn(Ve),Pz=Pt(Ar),xz=aI(_a),qr=J(wn),ao=Az(Kn),yu=Ma(Ve),Nz=k(Ga),jz=B_(Ve),Oz=k(zn),q1e=ot(hr(Ga)),W1e=k(ae),J1e=pe(ae),Uz=an(SP),kz=function(){function e(){}return e.value=new e,e}(),Bz=function(){function e(){}return e.value=new e,e}(),mD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Hz=function(){function e(){}return e.value=new e,e}(),ed=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),qz=function(){function e(){}return e.value=new e,e}(),Wz=function(){function e(){}return e.value=new e,e}(),Jz=function(){function e(){}return e.value=new e,e}(),DA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),gA=function(){function e(){}return e.value=new e,e}(),h1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),D1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),g1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),$z=function(){function e(){}return e.value=new e,e}(),RA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),yA=function(){function e(){}return e.value=new e,e}(),zz=function(){function e(){}return e.value=new e,e}(),Vz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),P0=function(){function e(){}return e.value=new e,e}(),Gc=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),R1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),wA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),hD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bA=function(e){var n=e.Monad0(),a=ee(n.Bind1()),t=Wn(e),o=J(n.Applicative0());return function(u){return function(i){return function(l){return a(t(vy(u.videoId)))(function(s){return bn(o(i.whenNotFound))(l)(M1e(s)($4))})}}}},Qz=bA(pr),EA=bA(Ve),Kz=function(e){var n=bA(e);return function(a){return n(a)({whenNotFound:Ee})}},$1e=Kz(pr),z1e=Kz(Ve),y1=function(e){return function(n){return function(a){var t=function(){var T=A1e("position-absolute-fullsize py-6 d-flex align-items-center justify-content-around");if(n.stage instanceof Hz)return T(e.errorScreen("It appears that video playback is not supported in your browser."));if(n.stage instanceof qz)return T(e.errorScreen("The video didn't load correctly, try refreshing the page."));if(n.stage instanceof mD)return T(e.introScreen);if(n.stage instanceof ed)return $n;throw new Error("Failed pattern match at Livestream.VideoPlayer (line 253, column 20 - line 264, column 16): "+[n.stage.constructor.name])}(),o=function(){return n.stage instanceof mD?n.stage.value0.reset:!1}(),u=mA(function(T){return pD(sy(T))(hA(function(L){return a(new Me(new wA({time:L})))}))}),i=mA(function(T){return pD(sy(T))(hA(function(L){return a(new Me(new R1({playing:!0,time:L})))}))}),l=function(T){return a(yn.create(T))},s=mA(function(T){return pD(sy(T))(hA(function(L){return l(new RA(L))}))}),R=m1(l)($z.value),d=Se([Gz("w-100 t--real-video")({id:n.videoId,controls:Tt(n.customControls),onVolumeChange:R,onTimeUpdate:u,onPlay:i,onPause:s})(""),ya(!o)(L1e({videoStreamUrl:e.watchUrl,videoElementId:n.videoId,onNotSupported:l(Wz.value),onError:function(T,L){return Ee},onCriticalFail:dD(l)(function(T){var L=T==="networkError";return L?gA.value:new h1("HLS player crashed")}),onReady:l(new D1({autoPlay:e.autoPlay})),onInitialPts:dD(l)(function(T){return new Vz(T.initPTS)})}))]),y=function(){return n.stage instanceof ed&&n.stage.value0.unmuteOverlay?Mz("position-absolute-fullsize d-flex align-items-center justify-content-center t--unmute-overlay")({style:dt({pointerEvents:"none"})})(x1e("btn btn-sm btn-light border-dark px-4 d-flex align-items-center")({onClick:m1(l)(zz.value),style:dt({pointerEvents:"all"})})([Qe("click for sound"),N1e("fe fe-volume-2 ml-2")("")])):$n}(),I=function(T){return Mz("position-absolute-fullsize d-flex align-items-end t--controls-overlay")({onMouseMove:dD(l)(function(L){return new Gc(p1)}),onMouseDown:dD(l)(function(L){return new Gc(p1)}),onTouchStart:dD(l)(function(L){return new Gc(p1)})})(gz(T)(function(L){return l(Gc.create(L))}))},b=Gz("w-100 t--real-video")({id:n.videoId,controls:Tt(n.customControls),playsInline:!0,onVolumeChange:R,onTimeUpdate:u,onPlay:i,onPause:s,onLoadedMetadata:m1(l)(new D1({autoPlay:e.autoPlay})),onError:m1(l)(gA.value),src:function(){return o?"":e.watchUrl}()})("");return j1e("position-relative w-100")([function(){if(n.support instanceof kz)return d;if(n.support instanceof Bz)return b;throw new Error("Failed pattern match at Livestream.VideoPlayer (line 175, column 7 - line 177, column 40): "+[n.support.constructor.name])}(),da(n.customControls)(I),ya(n.allowSound)(y),t])}}},V1e=function(e){var n=Wn(e.MonadEffect0());return function(a){return n(function(){return $1e(a)(Kf(!1))(),yA.value})}},Q1e=V1e(r8),IA=function(e){return O1e("Livestream: Error")({livestream_error_message:e})},Yz=function(e){return Qz(e)({whenNotFound:!1})(PS)},K1e=function(e){return Wn(e)(function(){var a=pD(pD(Wu)(HS))(BS)();return U1e(function(t){return k1e(sj(t)(a))(new S(0))})(["iPad","iPod","iPhone"])})},Xz=K1e(Ve),Y1e=function(e){var n=function(t){return Zp(B1e(e.allowSound)(H1e(ou("Skipping attempt to play unmuted because sound was programmatically disallowed"))))(function(){return Zp(d1(c1(t)))(function(){return no(new g1({unmuteOverlay:!1}))})})},a=function(t){return Zp(Lz(Kf(!0)(t)))(function(){return Zp(d1(c1(t)))(function(){return no(new g1({unmuteOverlay:!0}))})})};return EA(e)({whenNotFound:new h1("