var Purs_EntryPoints_Livestream_Livestream=(()=>{var IY=Object.create;var bg=Object.defineProperty;var TY=Object.getOwnPropertyDescriptor;var SY=Object.getOwnPropertyNames;var CY=Object.getPrototypeOf,FY=Object.prototype.hasOwnProperty;var UL=e=>bg(e,"__esModule",{value:!0});var GY=(e,n)=>()=>(e&&(n=e(e=0)),n);var Oe=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),kL=(e,n)=>{UL(e);for(var a in n)bg(e,a,{get:n[a],enumerable:!0})},MY=(e,n,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of SY(n))!FY.call(e,t)&&t!=="default"&&bg(e,t,{get:()=>n[t],enumerable:!(a=TY(n,t))||a.enumerable});return e},Mu=e=>MY(UL(bg(e!=null?IY(CY(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var GT={};kL(GT,{Children:()=>Uf,Component:()=>kf,Fragment:()=>CT,Suspense:()=>Hne,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>kne,cloneElement:()=>Im,createContext:()=>ST,createElement:()=>vt,createRef:()=>NR,default:()=>ka,forwardRef:()=>gi,isValidElement:()=>FT,lazy:()=>Bne,useCallback:()=>Tm,useContext:()=>qne,useEffect:()=>Gt,useImperativeHandle:()=>rs,useLayoutEffect:()=>Sm,useMemo:()=>Cm,useReducer:()=>Jne,useRef:()=>it,useState:()=>Ll,version:()=>Wne});var ka,kne,Uf,Im,kf,ST,vt,NR,gi,CT,FT,Bne,Hne,Tm,qne,Gt,rs,Sm,Cm,Jne,it,Ll,Wne,$a=GY(()=>{ka=window.React,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kne,Children:Uf,cloneElement:Im,Component:kf,createContext:ST,createElement:vt,createRef:NR,forwardRef:gi,Fragment:CT,isValidElement:FT,lazy:Bne,Suspense:Hne,useCallback:Tm,useContext:qne,useEffect:Gt,useImperativeHandle:rs,useLayoutEffect:Sm,useMemo:Cm,useReducer:Jne,useRef:it,useState:Ll,version:Wne}=window.React});var MT=Oe((RVe,Px)=>{"use strict";var Lx=Object.getOwnPropertySymbols,$ne=Object.prototype.hasOwnProperty,zne=Object.prototype.propertyIsEnumerable;function Vne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Qne(){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}}Px.exports=Qne()?Object.assign:function(e,n){for(var a,t=Vne(e),o,u=1;u{"use strict";var AT=MT(),J0=60103,xx=60106;mt.Fragment=60107;mt.StrictMode=60108;mt.Profiler=60114;var Nx=60109,jx=60110,Ox=60112;mt.Suspense=60113;var Ux=60115,kx=60116;typeof Symbol=="function"&&Symbol.for&&(nl=Symbol.for,J0=nl("react.element"),xx=nl("react.portal"),mt.Fragment=nl("react.fragment"),mt.StrictMode=nl("react.strict_mode"),mt.Profiler=nl("react.profiler"),Nx=nl("react.provider"),jx=nl("react.context"),Ox=nl("react.forward_ref"),mt.Suspense=nl("react.suspense"),Ux=nl("react.memo"),kx=nl("react.lazy"));var nl,Bx=typeof Symbol=="function"&&Symbol.iterator;function Kne(e){return e===null||typeof e!="object"?null:(e=Bx&&e[Bx]||e["@@iterator"],typeof e=="function"?e:null)}function Gm(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a{"use strict";Yx.exports=Kx()});var RN=Oe($0=>{"use strict";var Pl=MT(),us=OT();function _r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;aLm;Lm++)Go[Lm]=Lm+1;var Go,Lm;Go[15]=0;var tae=/^[: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]*$/,rN=Object.prototype.hasOwnProperty,oN={},uN={};function iN(e){return rN.call(uN,e)?!0:rN.call(oN,e)?!1:tae.test(e)?uN[e]=!0:(oN[e]=!0,!1)}function rae(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 oae(e,n,a,t){if(n===null||typeof n=="undefined"||rae(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 Du(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 Mo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mo[e]=new Du(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Mo[n]=new Du(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mo[e]=new Du(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mo[e]=new Du(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){Mo[e]=new Du(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mo[e]=new Du(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mo[e]=new Du(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mo[e]=new Du(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mo[e]=new Du(e,5,!1,e.toLowerCase(),null,!1,!1)});var zT=/[\-:]([a-z])/g;function VT(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(zT,VT);Mo[n]=new Du(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(zT,VT);Mo[n]=new Du(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(zT,VT);Mo[n]=new Du(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Mo[e]=new Du(e,1,!1,e.toLowerCase(),null,!1,!1)});Mo.xlinkHref=new Du("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Mo[e]=new Du(e,1,!1,e.toLowerCase(),null,!0,!0)});var uae=/["'&<>]/;function Bf(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var n=uae.exec(e);if(n){var a="",t,o=0;for(t=n.index;tWR))throw Error(_r(301));if(e===vc)if(JR=!0,e={action:a,next:null},_v===null&&(_v=new Map),a=_v.get(n),a===void 0)_v.set(n,e);else{for(n=a;n.next!==null;)n=n.next;n.next=e}}function KT(){}var qf=null,vae={readContext:function(e){var n=qf.threadID;return Am(e,n),e[n]},useContext:function(e){Hf();var n=qf.threadID;return Am(e,n),e[n]},useMemo:_N,useReducer:fN,useRef:function(e){vc=Hf(),Zt=QT();var n=Zt.memoizedState;return n===null?(e={current:e},Zt.memoizedState=e):n},useState:function(e){return fN(vN,e)},useLayoutEffect:function(){},useCallback:function(e,n){return _N(function(){return e},n)},useImperativeHandle:KT,useEffect:KT,useDebugValue:KT,useDeferredValue:function(e){return Hf(),e},useTransition:function(){return Hf(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(qf.identifierPrefix||"")+"R:"+(qf.uniqueID++).toString(36)},useMutableSource:function(e,n){return Hf(),n(e._source)}},pN={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function dN(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 mN={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},fae=Pl({menuitem:!0},mN),xm={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},_ae=["Webkit","ms","Moz","O"];Object.keys(xm).forEach(function(e){_ae.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),xm[n]=xm[e]})});var pae=/([A-Z])/g,dae=/^ms-/,pv=us.Children.toArray,YT=nae.ReactCurrentDispatcher,mae={listing:!0,pre:!0,textarea:!0},hae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,hN={},XT={};function Dae(e){if(e==null)return e;var n="";return us.Children.forEach(e,function(a){a!=null&&(n+=a)}),n}var gae=Object.prototype.hasOwnProperty,Rae={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function DN(e,n){if(e===void 0)throw Error(_r(152,Mm(n)||"Component"))}function yae(e,n,a){function t(i,l){var s=l.prototype&&l.prototype.isReactComponent,R=aae(l,n,a,s),d=[],y=!1,I={isMounted:function(){return!1},enqueueForceUpdate:function(){if(d===null)return null},enqueueReplaceState:function(X,oe){y=!0,d=[oe]},enqueueSetState:function(X,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=Pl({},s.state,b))}}else if(vc={},s=l(i.props,R,I),s=cN(l,i.props,s,R),s==null||s.render==null){e=s,DN(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 S=y;if(d=null,y=!1,S&&I.length===1)s.state=I[0];else{b=S?I[0]:s.state;var L=!0;for(S=S?1:0;S=l))throw Error(_r(304));var s=new Uint16Array(l);for(s.set(i),Go=s,Go[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===BR)this.popProvider(s.type);else if(s.type===HR){this.suspenseDepth--;var d=u.pop();if(i){i=!1;var y=s.fallbackFrame;if(!y)throw Error(_r(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(S){throw S!=null&&typeof S.then=="function"?Error(_r(294)):S}finally{}u.length<=this.suspenseDepth&&u.push(""),u[this.suspenseDepth]+=b}}return u[0]}finally{YT.current=o,qf=t,sN()}},n.render=function(a,t,o){if(typeof a=="string"||typeof a=="number")return o=""+a,o===""?"":this.makeStaticMarkup?Bf(o):this.previousWasTextNode?""+Bf(o):(this.previousWasTextNode=!0,Bf(o));if(t=yae(a,t,this.threadID),a=t.child,t=t.context,a===null||a===!1)return"";if(!us.isValidElement(a)){if(a!=null&&a.$$typeof!=null)throw o=a.$$typeof,Error(o===UT?_r(257):_r(258,o.toString()));return a=pv(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 aN:case nN:case kT:case BT:case JT:case kR:return a=pv(a.props.children),this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),"";case HR:throw Error(_r(294));case eN:throw Error(_r(343))}if(typeof u=="object"&&u!==null)switch(u.$$typeof){case qT:vc={};var i=u.render(a.props,a.ref);return i=cN(u.render,a.props,i,a.ref),i=pv(i),this.stack.push({type:null,domNamespace:o,children:i,childIndex:0,context:t,footer:""}),"";case WT:return a=[us.createElement(u.type,Pl({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),"";case BR:return u=pv(a.props.children),o={type:a,domNamespace:o,children:u,childIndex:0,context:t,footer:""},this.pushProvider(a),this.stack.push(o),"";case HT:u=a.type,i=a.props;var l=this.threadID;return Am(u,l),u=pv(i.children(u[l])),this.stack.push({type:a,domNamespace:o,children:u,childIndex:0,context:t,footer:""}),"";case Zx:throw Error(_r(338));case $T:return u=a.type,i=u._init,u=i(u._payload),a=[us.createElement(u,Pl({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:o,children:a,childIndex:0,context:t,footer:""}),""}throw Error(_r(130,u==null?u:typeof u,""))},n.renderDOM=function(a,t,o){var u=a.type.toLowerCase();if(o===pN.html&&dN(u),!hN.hasOwnProperty(u)){if(!hae.test(u))throw Error(_r(65,u));hN[u]=!0}var i=a.props;if(u==="input")i=Pl({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(_r(92));if(Array.isArray(s)){if(!(1>=s.length))throw Error(_r(93));s=s[0]}l=""+s}l==null&&(l="")}i=Pl({},i,{value:void 0,children:""+l})}else if(u==="select")this.currentSelectValue=i.value!=null?i.value:i.defaultValue,i=Pl({},i,{value:void 0});else if(u==="option"){s=this.currentSelectValue;var R=Dae(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=Bf(s);break e}s=null}return s!=null?(i=[],mae.hasOwnProperty(u)&&s.charAt(0)===` `&&(oe+=` `),oe+=s):i=pv(i.children),a=a.type,o=o==null||o==="http://www.w3.org/1999/xhtml"?dN(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}();$0.renderToNodeStream=function(){throw Error(_r(207))};$0.renderToStaticMarkup=function(e,n){e=new gN(e,!0,n);try{return e.read(1/0)}finally{e.destroy()}};$0.renderToStaticNodeStream=function(){throw Error(_r(208))};$0.renderToString=function(e,n){e=new gN(e,!1,n);try{return e.read(1/0)}finally{e.destroy()}};$0.version="17.0.2"});var wN=Oe((EVe,yN)=>{"use strict";yN.exports=RN()});var IO=Oe((ew,kC)=>{(function(n,a){typeof ew=="object"&&typeof kC=="object"?kC.exports=a():typeof define=="function"&&define.amd?define([],a):typeof ew=="object"?ew.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(S,L){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,$){O.__proto__=$}||function(O,$){for(var z in $)$.hasOwnProperty(z)&&(O[z]=$[z])},b(S,L)};return function(S,L){b(S,L);function O(){this.constructor=S}S.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(S){S===void 0&&(S="="),this._paddingCharacter=S}return b.prototype.encodedLength=function(S){return this._paddingCharacter?(S+2)/3*4|0:(S*8+5)/6|0},b.prototype.encode=function(S){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=S.length-O;if(z>0){var $=S[O]<<16|(z===2?S[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(S){return this._paddingCharacter?S/4*3|0:(S*6+7)/8|0},b.prototype.decodedLength=function(S){return this.maxDecodedLength(S.length-this._getPaddingLength(S))},b.prototype.decode=function(S){if(S.length===0)return new Uint8Array(0);for(var L=this._getPaddingLength(S),O=S.length-L,$=new Uint8Array(this.maxDecodedLength(O)),z=0,X=0,oe=0,te=0,ve=0,we=0,an=0;X>>4,$[z++]=ve<<4|we>>>2,$[z++]=we<<6|an,oe|=te&o,oe|=ve&o,oe|=we&o,oe|=an&o;if(X>>4,oe|=te&o,oe|=ve&o),X>>2,oe|=we&o),X>>8&0-65-26+97,L+=51-S>>>8&26-97-52+48,L+=61-S>>>8&52-48-62+43,L+=62-S>>>8&62-43-63+47,String.fromCharCode(L)},b.prototype._decodeChar=function(S){var L=o;return L+=(42-S&S-44)>>>8&-o+S-43+62,L+=(46-S&S-48)>>>8&-o+S-47+63,L+=(47-S&S-58)>>>8&-o+S-48+52,L+=(64-S&S-91)>>>8&-o+S-65+0,L+=(96-S&S-123)>>>8&-o+S-97+26,L},b.prototype._getPaddingLength=function(S){var L=0;if(this._paddingCharacter){for(var O=S.length-1;O>=0&&S[O]===this._paddingCharacter;O--)L++;if(S.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(S,b);function S(){return b!==null&&b.apply(this,arguments)||this}return S.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)},S.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},S}(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],S=s[++d];if((b&192)!=128||(S&192)!=128)throw new Error(o);y=(y&15)<<12|(b&63)<<6|S&63,I=2048}else if(y<248){if(d>=s.length-2)throw new Error(o);var b=s[++d],S=s[++d],L=s[++d];if((b&192)!=128||(S&192)!=128||(L&192)!=128)throw new Error(o);y=(y&15)<<18|(b&63)<<12|(S&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,Ee=function(){Q||(p.apply(null,arguments),Q=!0)};return this[D]=Ee,{number:D,id:G,name:A,callback:Ee}},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=Ja.createScriptRequest(A.getPath(p,D)),Ee=A.receivers.create(function(_n){if(A.receivers.remove(Ee),A.loading[p]){var ha=A.loading[p];delete A.loading[p];for(var gt=function(bo){bo||Q.cleanup()},Kt=0;Kt>>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,$)},X=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,X)},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,we=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 an(m){window.clearTimeout(m)}function sn(m){window.clearInterval(m)}var ce=function(m){we(p,m);function p(D,G){return m.call(this,setTimeout,an,D,function(A){return G(),null})||this}return p}(ve),le=function(m){we(p,m);function p(D,G){return m.call(this,setInterval,sn,D,function(A){return G(),A})||this}return p}(ve),je={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=Nc,wl=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)}}(),bl=function(m){wl(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),vn.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 Ee;try{Ee=se.decodeMessage(Q)}catch(_n){D.emit("error",{type:"MessageParseError",error:_n,data:Q.data})}if(Ee!==void 0){switch(vn.debug("Event recd",Ee),Ee.event){case"pusher:error":D.emit("error",{type:"PusherError",data:Ee.data});break;case"pusher:ping":D.emit("ping");break;case"pusher:pong":D.emit("pong");break}D.emit("message",Ee)}},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(){ra(G,function(Q,Ee){D.transport.unbind(Ee,Q)})};ra(G,function(Q,Ee){D.transport.bind(Ee,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),jc=bl,El=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 jc(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(He({transport:this.transport,action:p},D))},m}(),xi=El,dd=function(){function m(p,D){this.channel=p;var G=D.authTransport;if(typeof Ja.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||Ja.getAuthorizers(),m.authorizers[this.type].call(this,Ja,p,D)},m}(),ef=dd,W_=function(){function m(p,D){this.timeline=p,this.options=D||{}}return m.prototype.send=function(p,D){this.timeline.isEmpty()||this.timeline.send(Ja.TimelineTransport.getAgent(this,p),D)},m}(),$_=W_,Ni=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)}}(),tu=function(m){Ni(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),Oc=function(m){Ni(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),z_=function(m){Ni(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),md=function(m){Ni(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),V_=function(m){Ni(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),JD=function(m){Ni(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),Hs=function(m){Ni(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),DE=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)}}(),gE=function(m){DE(p,m);function p(D,G){var A=m.call(this,function(Q,Ee){vn.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 tu("Event '"+D+"' does not start with 'client-'");if(!this.subscribed){var A=Da.buildLogSuffix("triggeringClientEvents");vn.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?(vn.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),WD=gE,RE=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)}}(),yE=function(m){RE(p,m);function p(){return m!==null&&m.apply(this,arguments)||this}return p.prototype.authorize=function(D,G){var A=ji.createAuthorizer(this,this.pusher.config);return A.authorize(D,G)},p}(WD),hd=yE,$D=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;ra(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}(),wE=$D,bE=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)}}(),zD=function(m){bE(p,m);function p(D,G){var A=m.call(this,D,G)||this;return A.members=new wE,A}return p.prototype.authorize=function(D,G){var A=this;m.prototype.authorize.call(this,D,function(Q,Ee){if(!Q){if(Ee=Ee,Ee.channel_data===void 0){var _n=Da.buildLogSuffix("authenticationEndpoint");vn.error("Invalid auth response for channel '"+A.name+"',"+("expected 'channel_data' field. "+_n)),G("Invalid auth response");return}var ha=JSON.parse(Ee.channel_data);A.members.setMyID(ha.user_id)}G(Q,Ee)})},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 Ee=this.members.removeMember(A);Ee&&this.emit("pusher:member_removed",Ee);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}(hd),EE=zD,VD=a(1),Dd=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)}}(),TE=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,Ee){if(Q){G(!0,Ee);return}var _n=Ee.shared_secret;if(!_n){var ha="No shared_secret key in auth payload for encrypted channel: "+A.name;G(!0,ha);return}A.key=Object(Dd.decode)(_n),delete Ee.shared_secret,G(!1,Ee)})},p.prototype.trigger=function(D,G){throw new V_("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){vn.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!G.ciphertext||!G.nonce){vn.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+G);return}var Q=Object(Dd.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 He({},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 He({},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),vn.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),QD=FE,GE=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 qn(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(){ra(this.channels,function(p){p.disconnect()})},m}(),ME=GE;function KD(m,p){if(m.indexOf("private-encrypted-")===0){if(p.config.nacl)return ji.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 V_(D+". "+G)}else return m.indexOf("private-")===0?ji.createPrivateChannel(m,p):m.indexOf("presence-")===0?ji.createPresenceChannel(m,p):ji.createChannel(m,p)}var AE={createChannels:function(){return new ME},createConnectionManager:function(m,p){return new QD(m,p)},createChannel:function(m,p){return new WD(m,p)},createPrivateChannel:function(m,p){return new hd(m,p)},createPresenceChannel:function(m,p){return new EE(m,p)},createEncryptedChannel:function(m,p,D){return new SE(m,p,D)},createTimelineSender:function(m,p){return new $_(m,p)},createAuthorizer:function(m,p){return p.authorizer?p.authorizer(m,p):new ef(m,p)},createHandshake:function(m,p){return new xi(m,p)},createAssistantToTheTransportManager:function(m,p,D){return new Vl(m,p,D)}},ji=AE,LE=function(){function m(p){this.options=p||{},this.livesLeft=this.options.lives||1/0}return m.prototype.getAssistant=function(p){return ji.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}(),YD=LE,PE=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 In(this.strategies,Ce.method("isSupported"))},m.prototype.connect=function(p,D){var G=this,A=this.strategies,Q=0,Ee=this.timeout,_n=null,ha=function(gt,Kt){Kt?D(null,Kt):(Q=Q+1,G.loop&&(Q=Q%A.length),Q0&&(Q=new ce(G.timeout,function(){Ee.abort(),A(!0)})),Ee=p.connect(D,function(_n,ha){_n&&Q&&Q.isRunning()&&!G.failFast||(Q&&Q.ensureAborted(),A(_n,ha))}),{abort:function(){Q&&Q.ensureAborted(),Ee.abort()},forceMinPriority:function(_n){Ee.forceMinPriority(_n)}}},m}(),Uc=PE,xE=function(){function m(p){this.strategies=p}return m.prototype.isSupported=function(){return In(this.strategies,Ce.method("isSupported"))},m.prototype.connect=function(p,D){return NE(this.strategies,p,function(G,A){return function(Q,Ee){if(A[G].error=Q,Q){XD(A)&&D(!0);return}Kn(A,function(_n){_n.forceMinPriority(Ee.transport.priority)}),D(null,Ee)}})},m}(),gd=xE;function NE(m,p,D){var G=Jn(m,function(A,Q,Ee,_n){return A.connect(p,D(Q,_n))});return{abort:function(){Kn(G,Rd)},forceMinPriority:function(A){Kn(G,function(Q){Q.forceMinPriority(A)})}}}function XD(m){return gn(m,function(p){return Boolean(p.error)})}function Rd(m){!m.error&&!m.aborted&&(m.abort(),m.aborted=!0)}var jE=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=ZD(G),Q=[this.strategy];if(A&&A.timestamp+this.ttl>=Ce.now()){var Ee=this.transports[A.transport];Ee&&(this.timeline.info({cached:!0,transport:A.transport,latency:A.latency}),Q.push(new Uc([Ee],{timeout:A.latency*2+1e3,failFast:!0})))}var _n=Ce.now(),ha=Q.pop().connect(p,function gt(Kt,bo){Kt?(eg(G),Q.length>0?(_n=Ce.now(),ha=Q.pop().connect(p,gt)):D(Kt)):(UE(G,bo.transport.name,Ce.now()-_n),D(null,bo))});return{abort:function(){ha.abort()},forceMinPriority:function(gt){p=gt,ha&&ha.forceMinPriority(gt)}}},m}(),OE=jE;function yd(m){return"pusherTransport"+(m?"TLS":"NonTLS")}function ZD(m){var p=Ja.getLocalStorage();if(p)try{var D=p[yd(m)];if(D)return JSON.parse(D)}catch{eg(m)}return null}function UE(m,p,D){var G=Ja.getLocalStorage();if(G)try{G[yd(m)]=La({timestamp:Ce.now(),transport:p,latency:D})}catch{}}function eg(m){var p=Ja.getLocalStorage();if(p)try{delete p[yd(m)]}catch{}}var kE=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(Ee){p=Ee,A&&A.forceMinPriority(Ee)}}},m}(),Q_=kE,ng=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}(),nf=ng,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}(),HE=BE;function Il(m){return function(){return m.isSupported()}}var ag=function(m,p,D){var G={};function A(Fr,Rg,yg,hI,wg){var w=D(m,Fr,Rg,yg,hI,wg);return G[Fr]=w,w}var Q=Object.assign({},p,{hostNonTLS:m.wsHost+":"+m.wsPort,hostTLS:m.wsHost+":"+m.wssPort,httpPath:m.wsPath}),Ee=Object.assign({},Q,{useTLS:!0}),_n=Object.assign({},p,{hostNonTLS:m.httpHost+":"+m.httpPort,hostTLS:m.httpHost+":"+m.httpsPort,httpPath:m.httpPath}),ha={loop:!0,timeout:15e3,timeoutLimit:6e4},gt=new YD({lives:2,minPingDelay:1e4,maxPingDelay:m.activityTimeout}),Kt=new YD({lives:2,minPingDelay:1e4,maxPingDelay:m.activityTimeout}),bo=A("ws","ws",3,Q,gt),ii=A("wss","ws",3,Ee,gt),_I=A("sockjs","sockjs",1,_n),_g=A("xhr_streaming","xhr_streaming",1,_n,Kt),pg=A("xdr_streaming","xdr_streaming",1,_n,Kt),dg=A("xhr_polling","xhr_polling",1,_n),pI=A("xdr_polling","xdr_polling",1,_n),mg=new Uc([bo],ha),dI=new Uc([ii],ha),mI=new Uc([_I],ha),hg=new Uc([new nf(Il(_g),_g,pg)],ha),Dg=new Uc([new nf(Il(dg),dg,pI)],ha),gg=new Uc([new nf(Il(hg),new gd([hg,new Q_(Dg,{delay:4e3})]),Dg)],ha),Sd=new nf(Il(gg),gg,mI),Cd;return p.useTLS?Cd=new gd([mg,new Q_(Sd,{delay:2e3})]):Cd=new gd([mg,new Q_(dI,{delay:2e3}),new Q_(Sd,{delay:5e3})]),new OE(new HE(new nf(Il(bo),Cd,Sd)),G,{ttl:18e5,timeline:p.timeline,useTLS:p.useTLS})},qE=ag,JE=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()},tg={getRequest:function(m){var p=new window.XDomainRequest;return p.ontimeout=function(){m.emit("error",new Oc),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()}},WE=tg,rg=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)}}(),$E=256*1024,og=function(m){rg(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()},Ja.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&&(Ja.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>$E},p}(pa),ug=og,af;(function(m){m[m.CONNECTING=0]="CONNECTING",m[m.OPEN=1]="OPEN",m[m.CLOSED=3]="CLOSED"})(af||(af={}));var Oi=af,zE=1,ig=function(){function m(p,D){this.hooks=p,this.session=Fu(1e3)+"/"+Tl(8),this.location=VE(D),this.readyState=Oi.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===Oi.OPEN)try{return Ja.createSocketRequest("POST",wd(QE(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=Oi.CLOSED,this.onclose&&this.onclose({code:p,reason:D,wasClean:G})},m.prototype.onChunk=function(p){if(p.status===200){this.readyState===Oi.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()}},qa=cg,kc={createStreamingSocket:function(m){return this.createSocket(XE,m)},createPollingSocket:function(m){return this.createSocket(eI,m)},createSocket:function(m,p){return new KE(m,p)},createXHR:function(m,p){return this.createRequest(qa,m,p)},createRequest:function(m,p,D){return new ug(m,p,D)}},bd=kc;bd.createXDR=function(m,p){return this.createRequest(WE,m,p)};var nI=bd,aI={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:o,DependenciesReceivers:R,getDefaultStrategy:qE,Transports:wo,transportConnectionInitializer:JE,HTTPFactory:nI,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 ui},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)}},Ja=aI,K_;(function(m){m[m.ERROR=3]="ERROR",m[m.INFO=6]="INFO",m[m.DEBUG=7]="DEBUG"})(K_||(K_={}));var Y_=K_,tI=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(He({},D,{timestamp:Ce.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},m.prototype.error=function(p){this.log(Y_.ERROR,p)},m.prototype.info=function(p){this.log(Y_.INFO,p)},m.prototype.debug=function(p){this.log(Y_.DEBUG,p)},m.prototype.isEmpty=function(){return this.events.length===0},m.prototype.send=function(p,D){var G=this,A=He({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,Ee){Q||G.sent++,D&&D(Q,Ee)}),!0},m.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},m}(),sg=tI,Ed=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 Do=typeof Symbol=="function"&&Symbol.for,OF=Do?Symbol.for("react.element"):60103,UF=Do?Symbol.for("react.portal"):60106,yw=Do?Symbol.for("react.fragment"):60107,ww=Do?Symbol.for("react.strict_mode"):60108,bw=Do?Symbol.for("react.profiler"):60114,Ew=Do?Symbol.for("react.provider"):60109,Iw=Do?Symbol.for("react.context"):60110,kF=Do?Symbol.for("react.async_mode"):60111,Tw=Do?Symbol.for("react.concurrent_mode"):60111,Sw=Do?Symbol.for("react.forward_ref"):60112,Cw=Do?Symbol.for("react.suspense"):60113,Dfe=Do?Symbol.for("react.suspense_list"):60120,Fw=Do?Symbol.for("react.memo"):60115,Gw=Do?Symbol.for("react.lazy"):60116,gfe=Do?Symbol.for("react.block"):60121,Rfe=Do?Symbol.for("react.fundamental"):60117,yfe=Do?Symbol.for("react.responder"):60118,wfe=Do?Symbol.for("react.scope"):60119;function Ci(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case OF:switch(e=e.type,e){case kF:case Tw:case yw:case bw:case ww:case Cw:return e;default:switch(e=e&&e.$$typeof,e){case Iw:case Sw:case Gw:case Fw:case Ew:return e;default:return n}}case UF:return n}}}function c6(e){return Ci(e)===Tw}Ot.AsyncMode=kF;Ot.ConcurrentMode=Tw;Ot.ContextConsumer=Iw;Ot.ContextProvider=Ew;Ot.Element=OF;Ot.ForwardRef=Sw;Ot.Fragment=yw;Ot.Lazy=Gw;Ot.Memo=Fw;Ot.Portal=UF;Ot.Profiler=bw;Ot.StrictMode=ww;Ot.Suspense=Cw;Ot.isAsyncMode=function(e){return c6(e)||Ci(e)===kF};Ot.isConcurrentMode=c6;Ot.isContextConsumer=function(e){return Ci(e)===Iw};Ot.isContextProvider=function(e){return Ci(e)===Ew};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OF};Ot.isForwardRef=function(e){return Ci(e)===Sw};Ot.isFragment=function(e){return Ci(e)===yw};Ot.isLazy=function(e){return Ci(e)===Gw};Ot.isMemo=function(e){return Ci(e)===Fw};Ot.isPortal=function(e){return Ci(e)===UF};Ot.isProfiler=function(e){return Ci(e)===bw};Ot.isStrictMode=function(e){return Ci(e)===ww};Ot.isSuspense=function(e){return Ci(e)===Cw};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yw||e===Tw||e===bw||e===ww||e===Cw||e===Dfe||typeof e=="object"&&e!==null&&(e.$$typeof===Gw||e.$$typeof===Fw||e.$$typeof===Ew||e.$$typeof===Iw||e.$$typeof===Sw||e.$$typeof===Rfe||e.$$typeof===yfe||e.$$typeof===wfe||e.$$typeof===gfe)};Ot.typeOf=Ci});var f6=Oe((qFa,v6)=>{"use strict";v6.exports=s6()});var R_=Oe((tGa,Lw)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var o="",u=0;u{function l_e(){this.__data__=[],this.size=0}t5.exports=l_e});var sG=Oe((zMa,o5)=>{function c_e(e,n){return e===n||e!==e&&n!==n}o5.exports=c_e});var wh=Oe((VMa,u5)=>{var s_e=sG();function v_e(e,n){for(var a=e.length;a--;)if(s_e(e[a][0],n))return a;return-1}u5.exports=v_e});var l5=Oe((QMa,i5)=>{var f_e=wh(),__e=Array.prototype,p_e=__e.splice;function d_e(e){var n=this.__data__,a=f_e(n,e);if(a<0)return!1;var t=n.length-1;return a==t?n.pop():p_e.call(n,a,1),--this.size,!0}i5.exports=d_e});var s5=Oe((KMa,c5)=>{var m_e=wh();function h_e(e){var n=this.__data__,a=m_e(n,e);return a<0?void 0:n[a][1]}c5.exports=h_e});var f5=Oe((YMa,v5)=>{var D_e=wh();function g_e(e){return D_e(this.__data__,e)>-1}v5.exports=g_e});var p5=Oe((XMa,_5)=>{var R_e=wh();function y_e(e,n){var a=this.__data__,t=R_e(a,e);return t<0?(++this.size,a.push([e,n])):a[t][1]=n,this}_5.exports=y_e});var bh=Oe((ZMa,d5)=>{var w_e=r5(),b_e=l5(),E_e=s5(),I_e=f5(),T_e=p5();function Sp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var S_e=bh();function C_e(){this.__data__=new S_e,this.size=0}m5.exports=C_e});var g5=Oe((nAa,D5)=>{function F_e(e){var n=this.__data__,a=n.delete(e);return this.size=n.size,a}D5.exports=F_e});var y5=Oe((aAa,R5)=>{function G_e(e){return this.__data__.get(e)}R5.exports=G_e});var b5=Oe((tAa,w5)=>{function M_e(e){return this.__data__.has(e)}w5.exports=M_e});var vG=Oe((rAa,E5)=>{var A_e=typeof global=="object"&&global&&global.Object===Object&&global;E5.exports=A_e});var Tc=Oe((oAa,I5)=>{var L_e=vG(),P_e=typeof self=="object"&&self&&self.Object===Object&&self,x_e=L_e||P_e||Function("return this")();I5.exports=x_e});var nb=Oe((uAa,T5)=>{var N_e=Tc(),j_e=N_e.Symbol;T5.exports=j_e});var G5=Oe((iAa,F5)=>{var S5=nb(),C5=Object.prototype,O_e=C5.hasOwnProperty,U_e=C5.toString,Eh=S5?S5.toStringTag:void 0;function k_e(e){var n=O_e.call(e,Eh),a=e[Eh];try{e[Eh]=void 0;var t=!0}catch{}var o=U_e.call(e);return t&&(n?e[Eh]=a:delete e[Eh]),o}F5.exports=k_e});var A5=Oe((lAa,M5)=>{var B_e=Object.prototype,H_e=B_e.toString;function q_e(e){return H_e.call(e)}M5.exports=q_e});var Ih=Oe((cAa,x5)=>{var L5=nb(),J_e=G5(),W_e=A5(),$_e="[object Null]",z_e="[object Undefined]",P5=L5?L5.toStringTag:void 0;function V_e(e){return e==null?e===void 0?z_e:$_e:P5&&P5 in Object(e)?J_e(e):W_e(e)}x5.exports=V_e});var fG=Oe((sAa,N5)=>{function Q_e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}N5.exports=Q_e});var _G=Oe((vAa,j5)=>{var K_e=Ih(),Y_e=fG(),X_e="[object AsyncFunction]",Z_e="[object Function]",e0e="[object GeneratorFunction]",n0e="[object Proxy]";function a0e(e){if(!Y_e(e))return!1;var n=K_e(e);return n==Z_e||n==e0e||n==X_e||n==n0e}j5.exports=a0e});var U5=Oe((fAa,O5)=>{var t0e=Tc(),r0e=t0e["__core-js_shared__"];O5.exports=r0e});var H5=Oe((_Aa,B5)=>{var pG=U5(),k5=function(){var e=/[^.]+$/.exec(pG&&pG.keys&&pG.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o0e(e){return!!k5&&k5 in e}B5.exports=o0e});var dG=Oe((pAa,q5)=>{var u0e=Function.prototype,i0e=u0e.toString;function l0e(e){if(e!=null){try{return i0e.call(e)}catch{}try{return e+""}catch{}}return""}q5.exports=l0e});var W5=Oe((dAa,J5)=>{var c0e=_G(),s0e=H5(),v0e=fG(),f0e=dG(),_0e=/[\\^$.*+?()[\]{}|]/g,p0e=/^\[object .+?Constructor\]$/,d0e=Function.prototype,m0e=Object.prototype,h0e=d0e.toString,D0e=m0e.hasOwnProperty,g0e=RegExp("^"+h0e.call(D0e).replace(_0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function R0e(e){if(!v0e(e)||s0e(e))return!1;var n=c0e(e)?g0e:p0e;return n.test(f0e(e))}J5.exports=R0e});var z5=Oe((mAa,$5)=>{function y0e(e,n){return e==null?void 0:e[n]}$5.exports=y0e});var w_=Oe((hAa,V5)=>{var w0e=W5(),b0e=z5();function E0e(e,n){var a=b0e(e,n);return w0e(a)?a:void 0}V5.exports=E0e});var ab=Oe((DAa,Q5)=>{var I0e=w_(),T0e=Tc(),S0e=I0e(T0e,"Map");Q5.exports=S0e});var Th=Oe((gAa,K5)=>{var C0e=w_(),F0e=C0e(Object,"create");K5.exports=F0e});var Z5=Oe((RAa,X5)=>{var Y5=Th();function G0e(){this.__data__=Y5?Y5(null):{},this.size=0}X5.exports=G0e});var n9=Oe((yAa,e9)=>{function M0e(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}e9.exports=M0e});var t9=Oe((wAa,a9)=>{var A0e=Th(),L0e="__lodash_hash_undefined__",P0e=Object.prototype,x0e=P0e.hasOwnProperty;function N0e(e){var n=this.__data__;if(A0e){var a=n[e];return a===L0e?void 0:a}return x0e.call(n,e)?n[e]:void 0}a9.exports=N0e});var o9=Oe((bAa,r9)=>{var j0e=Th(),O0e=Object.prototype,U0e=O0e.hasOwnProperty;function k0e(e){var n=this.__data__;return j0e?n[e]!==void 0:U0e.call(n,e)}r9.exports=k0e});var i9=Oe((EAa,u9)=>{var B0e=Th(),H0e="__lodash_hash_undefined__";function q0e(e,n){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=B0e&&n===void 0?H0e:n,this}u9.exports=q0e});var c9=Oe((IAa,l9)=>{var J0e=Z5(),W0e=n9(),$0e=t9(),z0e=o9(),V0e=i9();function Cp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var s9=c9(),Q0e=bh(),K0e=ab();function Y0e(){this.size=0,this.__data__={hash:new s9,map:new(K0e||Q0e),string:new s9}}v9.exports=Y0e});var p9=Oe((SAa,_9)=>{function X0e(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}_9.exports=X0e});var Sh=Oe((CAa,d9)=>{var Z0e=p9();function epe(e,n){var a=e.__data__;return Z0e(n)?a[typeof n=="string"?"string":"hash"]:a.map}d9.exports=epe});var h9=Oe((FAa,m9)=>{var npe=Sh();function ape(e){var n=npe(this,e).delete(e);return this.size-=n?1:0,n}m9.exports=ape});var g9=Oe((GAa,D9)=>{var tpe=Sh();function rpe(e){return tpe(this,e).get(e)}D9.exports=rpe});var y9=Oe((MAa,R9)=>{var ope=Sh();function upe(e){return ope(this,e).has(e)}R9.exports=upe});var b9=Oe((AAa,w9)=>{var ipe=Sh();function lpe(e,n){var a=ipe(this,e),t=a.size;return a.set(e,n),this.size+=a.size==t?0:1,this}w9.exports=lpe});var mG=Oe((LAa,E9)=>{var cpe=f9(),spe=h9(),vpe=g9(),fpe=y9(),_pe=b9();function Fp(e){var n=-1,a=e==null?0:e.length;for(this.clear();++n{var ppe=bh(),dpe=ab(),mpe=mG(),hpe=200;function Dpe(e,n){var a=this.__data__;if(a instanceof ppe){var t=a.__data__;if(!dpe||t.length{var gpe=bh(),Rpe=h5(),ype=g5(),wpe=y5(),bpe=b5(),Epe=T9();function Gp(e){var n=this.__data__=new gpe(e);this.size=n.size}Gp.prototype.clear=Rpe;Gp.prototype.delete=ype;Gp.prototype.get=wpe;Gp.prototype.has=bpe;Gp.prototype.set=Epe;S9.exports=Gp});var G9=Oe((NAa,F9)=>{var Ipe="__lodash_hash_undefined__";function Tpe(e){return this.__data__.set(e,Ipe),this}F9.exports=Tpe});var A9=Oe((jAa,M9)=>{function Spe(e){return this.__data__.has(e)}M9.exports=Spe});var P9=Oe((OAa,L9)=>{var Cpe=mG(),Fpe=G9(),Gpe=A9();function tb(e){var n=-1,a=e==null?0:e.length;for(this.__data__=new Cpe;++n{function Mpe(e,n){for(var a=-1,t=e==null?0:e.length;++a{function Ape(e,n){return e.has(n)}j9.exports=Ape});var hG=Oe((BAa,U9)=>{var Lpe=P9(),Ppe=N9(),xpe=O9(),Npe=1,jpe=2;function Ope(e,n,a,t,o,u){var i=a&Npe,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&jpe?new Lpe:void 0;for(u.set(e,n),u.set(n,e);++y{var Upe=Tc(),kpe=Upe.Uint8Array;k9.exports=kpe});var q9=Oe((qAa,H9)=>{function Bpe(e){var n=-1,a=Array(e.size);return e.forEach(function(t,o){a[++n]=[o,t]}),a}H9.exports=Bpe});var W9=Oe((JAa,J9)=>{function Hpe(e){var n=-1,a=Array(e.size);return e.forEach(function(t){a[++n]=t}),a}J9.exports=Hpe});var K9=Oe((WAa,Q9)=>{var $9=nb(),z9=B9(),qpe=sG(),Jpe=hG(),Wpe=q9(),$pe=W9(),zpe=1,Vpe=2,Qpe="[object Boolean]",Kpe="[object Date]",Ype="[object Error]",Xpe="[object Map]",Zpe="[object Number]",ede="[object RegExp]",nde="[object Set]",ade="[object String]",tde="[object Symbol]",rde="[object ArrayBuffer]",ode="[object DataView]",V9=$9?$9.prototype:void 0,DG=V9?V9.valueOf:void 0;function ude(e,n,a,t,o,u,i){switch(a){case ode:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case rde:return!(e.byteLength!=n.byteLength||!u(new z9(e),new z9(n)));case Qpe:case Kpe:case Zpe:return qpe(+e,+n);case Ype:return e.name==n.name&&e.message==n.message;case ede:case ade:return e==n+"";case Xpe:var l=Wpe;case nde:var s=t&zpe;if(l||(l=$pe),e.size!=n.size&&!s)return!1;var R=i.get(e);if(R)return R==n;t|=Vpe,i.set(e,n);var d=Jpe(l(e),l(n),t,o,u,i);return i.delete(e),d;case tde:if(DG)return DG.call(e)==DG.call(n)}return!1}Q9.exports=ude});var X9=Oe(($Aa,Y9)=>{function ide(e,n){for(var a=-1,t=n.length,o=e.length;++a{var lde=Array.isArray;Z9.exports=lde});var nk=Oe((VAa,ek)=>{var cde=X9(),sde=rb();function vde(e,n,a){var t=n(e);return sde(e)?t:cde(t,a(e))}ek.exports=vde});var tk=Oe((QAa,ak)=>{function fde(e,n){for(var a=-1,t=e==null?0:e.length,o=0,u=[];++a{function _de(){return[]}rk.exports=_de});var lk=Oe((YAa,ik)=>{var pde=tk(),dde=ok(),mde=Object.prototype,hde=mde.propertyIsEnumerable,uk=Object.getOwnPropertySymbols,Dde=uk?function(e){return e==null?[]:(e=Object(e),pde(uk(e),function(n){return hde.call(e,n)}))}:dde;ik.exports=Dde});var sk=Oe((XAa,ck)=>{function gde(e,n){for(var a=-1,t=Array(e);++a{function Rde(e){return e!=null&&typeof e=="object"}vk.exports=Rde});var _k=Oe((eLa,fk)=>{var yde=Ih(),wde=Ch(),bde="[object Arguments]";function Ede(e){return wde(e)&&yde(e)==bde}fk.exports=Ede});var hk=Oe((nLa,mk)=>{var pk=_k(),Ide=Ch(),dk=Object.prototype,Tde=dk.hasOwnProperty,Sde=dk.propertyIsEnumerable,Cde=pk(function(){return arguments}())?pk:function(e){return Ide(e)&&Tde.call(e,"callee")&&!Sde.call(e,"callee")};mk.exports=Cde});var gk=Oe((aLa,Dk)=>{function Fde(){return!1}Dk.exports=Fde});var gG=Oe((Fh,Mp)=>{var Gde=Tc(),Mde=gk(),Rk=typeof Fh=="object"&&Fh&&!Fh.nodeType&&Fh,yk=Rk&&typeof Mp=="object"&&Mp&&!Mp.nodeType&&Mp,Ade=yk&&yk.exports===Rk,wk=Ade?Gde.Buffer:void 0,Lde=wk?wk.isBuffer:void 0,Pde=Lde||Mde;Mp.exports=Pde});var Ek=Oe((tLa,bk)=>{var xde=9007199254740991,Nde=/^(?:0|[1-9]\d*)$/;function jde(e,n){var a=typeof e;return n=n==null?xde:n,!!n&&(a=="number"||a!="symbol"&&Nde.test(e))&&e>-1&&e%1==0&&e{var Ode=9007199254740991;function Ude(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ode}Ik.exports=Ude});var Sk=Oe((oLa,Tk)=>{var kde=Ih(),Bde=RG(),Hde=Ch(),qde="[object Arguments]",Jde="[object Array]",Wde="[object Boolean]",$de="[object Date]",zde="[object Error]",Vde="[object Function]",Qde="[object Map]",Kde="[object Number]",Yde="[object Object]",Xde="[object RegExp]",Zde="[object Set]",eme="[object String]",nme="[object WeakMap]",ame="[object ArrayBuffer]",tme="[object DataView]",rme="[object Float32Array]",ome="[object Float64Array]",ume="[object Int8Array]",ime="[object Int16Array]",lme="[object Int32Array]",cme="[object Uint8Array]",sme="[object Uint8ClampedArray]",vme="[object Uint16Array]",fme="[object Uint32Array]",ur={};ur[rme]=ur[ome]=ur[ume]=ur[ime]=ur[lme]=ur[cme]=ur[sme]=ur[vme]=ur[fme]=!0;ur[qde]=ur[Jde]=ur[ame]=ur[Wde]=ur[tme]=ur[$de]=ur[zde]=ur[Vde]=ur[Qde]=ur[Kde]=ur[Yde]=ur[Xde]=ur[Zde]=ur[eme]=ur[nme]=!1;function _me(e){return Hde(e)&&Bde(e.length)&&!!ur[kde(e)]}Tk.exports=_me});var Fk=Oe((uLa,Ck)=>{function pme(e){return function(n){return e(n)}}Ck.exports=pme});var Mk=Oe((Mh,Ap)=>{var dme=vG(),Gk=typeof Mh=="object"&&Mh&&!Mh.nodeType&&Mh,Gh=Gk&&typeof Ap=="object"&&Ap&&!Ap.nodeType&&Ap,mme=Gh&&Gh.exports===Gk,yG=mme&&dme.process,hme=function(){try{var e=Gh&&Gh.require&&Gh.require("util").types;return e||yG&&yG.binding&&yG.binding("util")}catch{}}();Ap.exports=hme});var wG=Oe((iLa,Pk)=>{var Dme=Sk(),gme=Fk(),Ak=Mk(),Lk=Ak&&Ak.isTypedArray,Rme=Lk?gme(Lk):Dme;Pk.exports=Rme});var Nk=Oe((lLa,xk)=>{var yme=sk(),wme=hk(),bme=rb(),Eme=gG(),Ime=Ek(),Tme=wG(),Sme=Object.prototype,Cme=Sme.hasOwnProperty;function Fme(e,n){var a=bme(e),t=!a&&wme(e),o=!a&&!t&&Eme(e),u=!a&&!t&&!o&&Tme(e),i=a||t||o||u,l=i?yme(e.length,String):[],s=l.length;for(var R in e)(n||Cme.call(e,R))&&!(i&&(R=="length"||o&&(R=="offset"||R=="parent")||u&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||Ime(R,s)))&&l.push(R);return l}xk.exports=Fme});var Ok=Oe((cLa,jk)=>{var Gme=Object.prototype;function Mme(e){var n=e&&e.constructor,a=typeof n=="function"&&n.prototype||Gme;return e===a}jk.exports=Mme});var kk=Oe((sLa,Uk)=>{function Ame(e,n){return function(a){return e(n(a))}}Uk.exports=Ame});var Hk=Oe((vLa,Bk)=>{var Lme=kk(),Pme=Lme(Object.keys,Object);Bk.exports=Pme});var Jk=Oe((fLa,qk)=>{var xme=Ok(),Nme=Hk(),jme=Object.prototype,Ome=jme.hasOwnProperty;function Ume(e){if(!xme(e))return Nme(e);var n=[];for(var a in Object(e))Ome.call(e,a)&&a!="constructor"&&n.push(a);return n}qk.exports=Ume});var $k=Oe((_La,Wk)=>{var kme=_G(),Bme=RG();function Hme(e){return e!=null&&Bme(e.length)&&!kme(e)}Wk.exports=Hme});var Vk=Oe((pLa,zk)=>{var qme=Nk(),Jme=Jk(),Wme=$k();function $me(e){return Wme(e)?qme(e):Jme(e)}zk.exports=$me});var Kk=Oe((dLa,Qk)=>{var zme=nk(),Vme=lk(),Qme=Vk();function Kme(e){return zme(e,Qme,Vme)}Qk.exports=Kme});var Zk=Oe((mLa,Xk)=>{var Yk=Kk(),Yme=1,Xme=Object.prototype,Zme=Xme.hasOwnProperty;function ehe(e,n,a,t,o,u){var i=a&Yme,l=Yk(e),s=l.length,R=Yk(n),d=R.length;if(s!=d&&!i)return!1;for(var y=s;y--;){var I=l[y];if(!(i?I in n:Zme.call(n,I)))return!1}var b=u.get(e),S=u.get(n);if(b&&S)return b==n&&S==e;var L=!0;u.set(e,n),u.set(n,e);for(var O=i;++y{var nhe=w_(),ahe=Tc(),the=nhe(ahe,"DataView");eB.exports=the});var tB=Oe((DLa,aB)=>{var rhe=w_(),ohe=Tc(),uhe=rhe(ohe,"Promise");aB.exports=uhe});var oB=Oe((gLa,rB)=>{var ihe=w_(),lhe=Tc(),che=ihe(lhe,"Set");rB.exports=che});var iB=Oe((RLa,uB)=>{var she=w_(),vhe=Tc(),fhe=she(vhe,"WeakMap");uB.exports=fhe});var dB=Oe((yLa,pB)=>{var bG=nB(),EG=ab(),IG=tB(),TG=oB(),SG=iB(),lB=Ih(),Lp=dG(),cB="[object Map]",_he="[object Object]",sB="[object Promise]",vB="[object Set]",fB="[object WeakMap]",_B="[object DataView]",phe=Lp(bG),dhe=Lp(EG),mhe=Lp(IG),hhe=Lp(TG),Dhe=Lp(SG),b_=lB;(bG&&b_(new bG(new ArrayBuffer(1)))!=_B||EG&&b_(new EG)!=cB||IG&&b_(IG.resolve())!=sB||TG&&b_(new TG)!=vB||SG&&b_(new SG)!=fB)&&(b_=function(e){var n=lB(e),a=n==_he?e.constructor:void 0,t=a?Lp(a):"";if(t)switch(t){case phe:return _B;case dhe:return cB;case mhe:return sB;case hhe:return vB;case Dhe:return fB}return n});pB.exports=b_});var bB=Oe((wLa,wB)=>{var CG=C9(),ghe=hG(),Rhe=K9(),yhe=Zk(),mB=dB(),hB=rb(),DB=gG(),whe=wG(),bhe=1,gB="[object Arguments]",RB="[object Array]",ob="[object Object]",Ehe=Object.prototype,yB=Ehe.hasOwnProperty;function Ihe(e,n,a,t,o,u){var i=hB(e),l=hB(n),s=i?RB:mB(e),R=l?RB:mB(n);s=s==gB?ob:s,R=R==gB?ob:R;var d=s==ob,y=R==ob,I=s==R;if(I&&DB(e)){if(!DB(n))return!1;i=!0,d=!1}if(I&&!d)return u||(u=new CG),i||whe(e)?ghe(e,n,a,t,o,u):Rhe(e,n,s,a,t,o,u);if(!(a&bhe)){var b=d&&yB.call(e,"__wrapped__"),S=y&&yB.call(n,"__wrapped__");if(b||S){var L=b?e.value():e,O=S?n.value():n;return u||(u=new CG),o(L,O,a,t,u)}}return I?(u||(u=new CG),yhe(e,n,a,t,o,u)):!1}wB.exports=Ihe});var SB=Oe((bLa,TB)=>{var The=bB(),EB=Ch();function IB(e,n,a,t,o){return e===n?!0:e==null||n==null||!EB(e)&&!EB(n)?e!==e&&n!==n:The(e,n,a,t,IB,o)}TB.exports=IB});var FB=Oe((ELa,CB)=>{var She=SB();function Che(e,n){return She(e,n)}CB.exports=Che});var sH=Oe((hPa,aDe)=>{aDe.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 $z=Oe((RD,EA)=>{typeof window!="undefined"&&function(n,a){typeof RD=="object"&&typeof EA=="object"?EA.exports=a():typeof define=="function"&&define.amd?define([],a):typeof RD=="object"?RD.Hls=a():n.Hls=a()}(RD,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,S){if(typeof I!="function")throw new TypeError("The listener must be a function");var L=new i(I,b||d,S),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 S=0,L=b.length,O=new Array(L);S0},!1)}function d(y,I){for(var b={main:[I]},S={main:[]},L={main:{}};R(b);)for(var O=Object.keys(b),$=0;$>>8^qn&255^99,X[Cn]=qn,oe[qn]=Cn;var Kn=en[Cn],Jn=en[Kn],ft=en[Jn],Ue=en[qn]*257^qn*16843008;ve[Cn]=Ue<<24|Ue>>>8,we[Cn]=Ue<<16|Ue>>>16,an[Cn]=Ue<<8|Ue>>>24,sn[Cn]=Ue,Ue=ft*16843009^Jn*65537^Kn*257^Cn*16843008,le[qn]=Ue<<24|Ue>>>8,je[qn]=Ue<<16|Ue>>>16,Ce[qn]=Ue<<8|Ue>>>24,He[qn]=Ue,Cn?(Cn=Kn^en[en[en[ft^Kn]]],ra^=en[en[ra]]):Cn=ra=1}},$.expandKey=function(X){for(var oe=this.uint8ArrayToUint32Array_(X),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:he}}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,he={unit:K.subarray(j+ue,j+ue+re),pts:V,dts:V};return q.samples.push(he),{sample:he,length:re+ue}}}var X=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=X.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=we.BitratesMap[ue*14+N-1]*1e3,he=E===3?0:E===2?1:2,Ie=we.SamplingRateMap[he*3+W],Fe=K[j+3]>>6==3?1:2,Ge=we.SamplesCoefficients[E][P],ln=we.BytesInSlot[P],mn=Ge*8*ln,xe=parseInt(Ge*re/Ie+V,10)*ln;return{sampleRate:Ie,channelCount:Fe,frameLength:xe,samplesPerFrame:mn}}},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),he=this.getAvcEncryptedData(re),Ie=this;this.decryptBuffer(he.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}(),je=le,Ce={video:1,audio:2,id3:3,text:4},He=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 je(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(he){case pa:re&&(pt&&(Ge=ir(pt))&&Sr(Ge,!1),pt={data:[],size:0}),pt&&(pt.data.push(E.subarray(Fe,V+188)),pt.size+=V+188-Fe);break;case Za:re&&(Pa&&(Ge=ir(Pa))&&(wn.isAAC?ro(Ge):mr(Ge)),Pa={data:[],size:0}),Pa&&(Pa.data.push(E.subarray(Fe,V+188)),Pa.size+=V+188-Fe);break;case Lt:re&&(Ut&&(Ge=ir(Ut))&&jo(Ge),Ut={data:[],size:0}),Ut&&(Ut.data.push(E.subarray(Fe,V+188)),Ut.size+=V+188-Fe);break;case 0:re&&(Fe+=E[Fe]+1),ya=this._pmtId=Ha(E,Fe);break;case ya:re&&(Fe+=E[Fe]+1);var nr=It(E,Fe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,this.sampleAes!=null);pa=nr.avc,pa>0&&(xe.pid=pa),Za=nr.audio,Za>0&&(wn.pid=Za,wn.isAAC=nr.isAAC),Lt=nr.id3,Lt>0&&(Qn.pid=Lt),ln&&!mn&&(l.logger.log("reparse from beginning"),ln=!1,V=Cr-188),mn=this.pmtParsed=!0;break;case 17:case 8191:break;default:ln=!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"});pt&&(Ge=ir(pt))?(Sr(Ge,!0),xe.pesData=null):xe.pesData=pt,Pa&&(Ge=ir(Pa))?(wn.isAAC?ro(Ge):mr(Ge),wn.pesData=null):(Pa&&Pa.size&&l.logger.log("last AAC PES packet truncated,might overlap between fragments"),wn.pesData=Pa),Ut&&(Ge=ir(Ut))?(jo(Ge),Qn.pesData=null):Qn.pesData=Ut,this.sampleAes==null?this.remuxer.remux(wn,xe,Qn,this._txtTrack,P,N,W):this.decryptAndRemux(wn,xe,Qn,this._txtTrack,P,N,W)},K.decryptAndRemux=function(E,P,N,W,V,ue,re){if(E.samples&&E.isAAC){var he=this;this.sampleAes.decryptAacSamples(E.samples,0,function(){he.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 he=this;this.sampleAes.decryptAvcSamples(P.samples,0,0,function(){he.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,he,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 mn=new Uint8Array(ln[0].length+ln[1].length);mn.set(ln[0]),mn.set(ln[1],ln[0].length),ln[0]=mn,ln.splice(1,1)}if(N=ln[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,he=new Uint8Array(E.size);for(var xe=0,wn=ln.length;xeQn){Ge-=Qn;continue}else N=N.subarray(Ge),Qn-=Ge,Ge=0;he.set(N,P),P+=Qn}return ue&&(ue-=re+3),{data:he,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,he=this.avcSample,Ie,Fe=!1,Ge,ln=this.pushAccesUnit.bind(this),mn=function(wn,Qn,pa,Za){return{key:wn,pts:Qn,dts:pa,units:[],debug:Za}};E.data=null,he&&V.length&&!W.audFound&&(ln(he,W),he=this.avcSample=mn(!1,E.pts,E.dts,"")),V.forEach(function(xe){switch(xe.type){case 1:Ie=!0,he||(he=N.avcSample=mn(!0,E.pts,E.dts,"")),ue&&(he.debug+="NDR "),he.frame=!0;var wn=xe.data;if(Fe&&wn.length>4){var Qn=new ce(wn).readSliceType();(Qn===2||Qn===4||Qn===7||Qn===9)&&(he.key=!0)}break;case 5:Ie=!0,he||(he=N.avcSample=mn(!0,E.pts,E.dts,"")),ue&&(he.debug+="IDR "),he.key=!0,he.frame=!0;break;case 6:Ie=!0,ue&&he&&(he.debug+="SEI "),re=new ce(N.discardEPB(xe.data)),re.readUByte();for(var pa=0,Za=0,Lt=!1,ya=0;!Lt&&re.bytesAvailable>1;){pa=0;do ya=re.readUByte(),pa+=ya;while(ya===255);Za=0;do ya=re.readUByte(),Za+=ya;while(ya===255);if(pa===4&&re.bytesAvailable!==0){Lt=!0;var pt=re.readUByte();if(pt===181){var Pa=re.readUShort();if(Pa===49){var Ut=re.readUInt();if(Ut===1195456820){var Ha=re.readUByte();if(Ha===3){var It=re.readUByte(),ir=re.readUByte(),Sr=31&It,ro=[It,ir];for(Ge=0;Ge16){var mr=[];for(Ge=0;Ge<16;Ge++)mr.push(re.readUByte().toString(16)),(Ge===3||Ge===5||Ge===7||Ge===9)&&mr.push("-");var jo=Za-16,Cr=new Uint8Array(jo);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(ln,P-re-1),type:mn},Ie.push(Fe);else{var xe=this._getLastNalUnit();if(xe&&(he&&P<=4-he&&xe.state&&(xe.data=xe.data.subarray(0,xe.data.byteLength-he)),V=P-re-1,V>0)){var wn=new Uint8Array(xe.data.byteLength+V);wn.set(xe.data,0),wn.set(E.subarray(0,V),xe.data.byteLength),xe.data=wn}}P=0&&re>=0&&(Fe={data:E.subarray(ln,N),type:mn,state:re},Ie.push(Fe)),Ie.length===0){var Qn=this._getLastNalUnit();if(Qn){var pa=new Uint8Array(Qn.data.byteLength+E.byteLength);pa.set(Qn.data,0),pa.set(E,Qn.data.byteLength),Qn.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((Qn-W)/90)),W=Qn)}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/(Kn+1)),N=Math.floor(E%(Kn+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,he=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,he>>8&255,he&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/(Kn+1)),ue=Math.floor(P%(Kn+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/(Kn+1)),V=Math.floor(E%(Kn+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,he,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,he>>>16&255,he>>>8&255,he&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}(),ft=Jn,Ue=9e4;function ia(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 In(q,K){return K===void 0&&(K=!1),Ta(q,1e3,1/Ue,K)}function gn(q,K){return K===void 0&&(K=1),Ta(q,Ue,1/K)}var We=gn(10),na=gn(.2),fa=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 he=E.samples.length,Ie=P.samples.length,Fe=V,Ge=V;if(he&&Ie){var ln=(E.samples[0].pts-P.samples[0].pts)/P.inputTimeScale;Fe+=Math.max(0,ln),Ge+=Math.max(0,-ln)}if(he){E.timescale||(l.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(E,P,V));var mn=this.remuxAudio(E,Fe,ue,re);if(Ie){var xe;mn&&(xe=mn.endPTS-mn.startPTS),P.timescale||(l.logger.warn("regenerate InitSegment as video detected"),this.generateIS(E,P,V)),this.remuxVideo(P,Ge,ue,xe,re)}}else if(Ie){var wn=this.remuxVideo(P,Ge,ue,0,re);wn&&E.codec&&this.remuxEmptyAudio(E,Fe,ue,wn)}}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,he="audio/mp4",Ie={},Fe={tracks:Ie},Ge=this._initPTS===void 0,ln,mn;if(Ge&&(ln=mn=1/0),E.config&&V.length&&(E.timescale=E.samplerate,l.logger.log("audio sampling rate : "+E.samplerate),E.isAAC||(re.mpeg?(he="audio/mpeg",E.codec=""):re.mp3&&(E.codec="mp3")),Ie.audio={container:he,codec:E.codec,initSegment:!E.isAAC&&re.mpeg?new Uint8Array:ft.initSegment([E]),metadata:{channelCount:E.channelCount}},Ge&&(ln=mn=V[0].pts-E.inputTimeScale*N)),P.sps&&P.pps&&ue.length){var xe=P.inputTimeScale;P.timescale=xe,Ie.video={container:"video/mp4",codec:P.codec,initSegment:ft.initSegment([P]),metadata:{width:P.width,height:P.height}},Ge&&(ln=Math.min(ln,ue[0].pts-xe*N),mn=Math.min(mn,ue[0].dts-xe*N),this.observer.trigger(t.default.INIT_PTS_FOUND,{initPTS:ln}))}Object.keys(Ie).length?(W.trigger(t.default.FRAG_PARSING_INIT_SEGMENT,Fe),this.ISGenerated=!0,Ge&&(this._initPTS=ln,this._initDTS=mn)):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,he,Ie,Fe,Ge,ln,mn,xe=E.timescale,wn=E.samples,Qn=[],pa=wn.length,Za=this._PTSNormalize,Lt=this._initPTS,ya=this.nextAvcDts,pt=this.isSafari;if(pa!==0){pt&&(N|=wn.length&&ya&&(V&&Math.abs(P-ya/xe)<.1||Math.abs(wn[0].pts-ya-Lt)1?l.logger.log("AVC: "+In(It,!0)+" ms hole between fragments detected,filling it"):It<-1&&l.logger.log("AVC: "+In(-It,!0)+" ms overlapping between fragments detected"),Ge=ya,wn[0].dts=Ge,Fe=Math.max(Fe-It,ya),wn[0].pts=Fe,l.logger.log("Video: PTS/DTS adjusted: "+In(Fe,!0)+"/"+In(Ge,!0)+", delta: "+In(It,!0)+" ms")),Ha=wn[wn.length-1],mn=Math.max(Ha.dts,0),ln=Math.max(Ha.pts,0,mn),pt&&(re=Math.round((mn-Ge)/(wn.length-1)));for(var ir=0,Sr=0,ro=0;ro0?wo-1:wo].dts;if(jc.stretchShortVideoTrack){var xi=jc.maxBufferHole,dd=Math.floor(xi*xe),ef=(W?Fe+W*xe:this.nextAudioPts)-Ur.pts;ef>dd?(re=ef-El,re<0&&(re=El),l.logger.log("It is approximately "+In(ef,!1)+" ms to the next segment; using duration "+In(re,!1)+" ms for the last video frame.")):re=El}else re=El}Pi=Math.round(Ur.pts-Ur.dts)}Qn.push({size:ui,duration:re,cts:Pi,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:Ur.key?2:1,isNonSync:Ur.key?0:1}})}this.nextAvcDts=mn+re;var W_=E.dropped;if(E.nbNalu=0,E.dropped=0,Qn.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var $_=Qn[0].flags;$_.dependsOn=2,$_.isNonSync=0}E.samples=Qn,Ie=ft.moof(E.sequenceNumber++,Ge,E),E.samples=[];var Ni={data1:Ie,data2:he,startPTS:Fe/xe,endPTS:(ln+re)/xe,startDTS:Ge/xe,endDTS:this.nextAvcDts/xe,type:"video",hasAudio:!1,hasVideo:!0,nb:Qn.length,dropped:W_};return this.observer.trigger(t.default.FRAG_PARSING_DATA,Ni),Ni}},K.remuxAudio=function(E,P,N,W){var V=E.inputTimeScale,ue=E.timescale,re=V/ue,he=E.isAAC?1024:1152,Ie=he*re,Fe=this._PTSNormalize,Ge=this._initPTS,ln=!E.isAAC&&this.typeSupported.mpeg,mn,xe,wn,Qn,pa,Za,Lt=ln?0:8,ya=E.samples,pt=[],Pa=this.nextAudioPts;if(N|=ya.length&&Pa&&(W&&Math.abs(P-Pa/V)<.1||Math.abs(ya[0].pts-Pa-Ge)<20*Ie),ya.forEach(function(xi){xi.pts=xi.dts=Fe(xi.pts-Ge,P*V)}),ya=ya.filter(function(xi){return xi.pts>=0}),ya.length!==0){if(N||(W?Pa=P*V:Pa=ya[0].pts),E.isAAC)for(var Ut=this.config.maxAudioFramesDrift,Ha=0,It=Pa;Ha=Ut*Ie&&Sr.1*Ie,ir.pts=ir.dts=It,It+=Ie,Ha++}for(var nr=ya.length,Or=0;nr--;)Or+=ya[nr].unit.byteLength;for(var nu=0,au=ya.length;nu0&&ui0&&(xe=qn.getSilentFrame(E.manifestCodec||E.codec,E.channelCount),xe||(xe=Ur.subarray()),Or+=Pi*xe.length);else if(ui<-12){l.logger.log("drop overlapping AAC sample, expected/parsed/delta: "+In(Pa,!0)+" ms / "+In(Cu,!0)+" ms / "+In(-ui,!0)+" ms"),Or-=Ur.byteLength;continue}Cu=Pa}if(pa=Cu,Or>0){Or+=Lt;try{wn=new Uint8Array(Or)}catch{this.observer.trigger(t.default.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Or,reason:"fail allocating audio mdat "+Or});return}if(!ln){var Vl=new DataView(wn.buffer);Vl.setUint32(0,Or),wn.set(ft.types.mdat,4)}}else return;for(var Nc=0;Nc=2&&(wl=pt[nr-2].duration,mn.duration=wl),nr){this.nextAudioPts=Pa=Za+re*wl,E.samples=pt,ln?Qn=new Uint8Array:Qn=ft.moof(E.sequenceNumber++,pa/re,E),E.samples=[];var bl=pa/V,jc=Pa/V,El={data1:Qn,data2:wn,startPTS:bl,endPTS:jc,startDTS:bl,endDTS:jc,type:"audio",hasAudio:!0,hasVideo:!1,nb:nr};return this.observer.trigger(t.default.FRAG_PARSING_DATA,El),El}return null}},K.remuxEmptyAudio=function(E,P,N,W){var V=E.inputTimeScale,ue=E.samplerate?E.samplerate:V,re=V/ue,he=this.nextAudioPts,Ie=(he!==void 0?he:W.startDTS*V)+this._initDTS,Fe=W.endDTS*V+this._initDTS,Ge=1024,ln=re*Ge,mn=Math.ceil((Fe-Ie)/ln),xe=qn.getSilentFrame(E.manifestCodec||E.codec,E.channelCount);if(l.logger.warn("remux empty Audio"),!xe){l.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!");return}for(var wn=[],Qn=0;Qn4294967296;)E+=N;return E},q}(),La=fa,_t=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,he){var Ie=this.observer,Fe="";E&&(Fe+="audio"),P&&(Fe+="video"),Ie.trigger(t.default.FRAG_PARSING_DATA,{data1:he,startPTS:V,startDTS:V,type:Fe,hasAudio:!!E,hasVideo:!!P,nb:1,dropped:0}),Ie.trigger(t.default.FRAG_PARSED)},q}(),vn=_t,la=Object(s.getSelfScope)(),Et;try{Et=la.performance.now.bind(la.performance)}catch{l.logger.debug("Unable to use Performance API on this environment"),Et=la.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,he,Ie,Fe,Ge,ln){var mn=this;if(E.byteLength>0&&P!=null&&P.key!=null&&P.method==="AES-128"){var xe=this.decrypter;xe==null&&(xe=this.decrypter=new u.default(this.observer,this.config));var wn=Et();xe.decrypt(E,P.key.buffer,P.iv.buffer,function(Qn){var pa=Et();mn.observer.trigger(t.default.FRAG_DECRYPTED,{stats:{tstart:wn,tdecrypt:pa}}),mn.pushDecrypted(new Uint8Array(Qn),P,new Uint8Array(N),W,V,ue,re,he,Ie,Fe,Ge,ln)})}else this.pushDecrypted(new Uint8Array(E),P,new Uint8Array(N),W,V,ue,re,he,Ie,Fe,Ge,ln)},K.pushDecrypted=function(E,P,N,W,V,ue,re,he,Ie,Fe,Ge,ln){var mn=this.demuxer;if(!mn||(re||he)&&!this.probe(E)){for(var xe=this.observer,wn=this.typeSupported,Qn=this.config,pa=[{demux:en,remux:La},{demux:ve.default,remux:vn},{demux:te,remux:La},{demux:ra,remux:La}],Za=0,Lt=pa.length;Za1?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:X+=String.fromCharCode(O);break;case 12:case 13:$=d[oe++],X+=String.fromCharCode((O&31)<<6|$&63);break;case 14:$=d[oe++],z=d[oe++],X+=String.fromCharCode((O&15)<<12|($&63)<<6|(z&63)<<0);break;default:}}return X},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 S=this.initData=l.parseInitSegment(d);y==null&&(y="mp4a.40.5"),I==null&&(I="avc1.42e01e");var L={};S.audio&&S.video?L.audiovideo={container:"video/mp4",codec:y+","+I,initSegment:b?d:null}:(S.audio&&(L.audio={container:"audio/mp4",codec:y,initSegment:b?d:null}),S.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,S,L,O,$,z,X;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+S:O,L===y[0]&&(y.length===1?I.push({data:d,start:b+8,end:X}):($=l.findBox({data:d,start:b+8,end:X},y.slice(1)),$.length&&(I=I.concat($)))),b=X;return I},l.parseSegmentIndex=function(d){var y=l.findBox(d,["moov"])[0],I=y?y.end:null,b=0,S=l.findBox(d,["sidx"]),L;if(!S||!S[0])return null;L=[],S=S[0];var O=S.data[0];b=O===0?8:16;var $=l.readUint32(S,b);b+=4;var z=0,X=0;O===0?b+=8:b+=16,b+=2;var oe=S.end+X,te=l.readUint16(S,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(S,we);we+=4,L.push({referenceSize:sn,subsegmentDuration:le,info:{duration:le/$,start:oe,end:oe+sn-1}}),oe+=sn,we+=4,b=we}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 S=l.findBox(b,["tkhd"])[0];if(S){var L=S.data[S.start],O=L===0?12:20,$=l.readUint32(S,O),z=l.findBox(b,["mdia","mdhd"])[0];if(z){L=z.data[z.start],O=L===0?12:20;var X=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 we=l.findBox(b,["mdia","minf","stbl","stsd"]);if(we.length){we=we[0];var an=l.bin2str(we.data.subarray(we.start+12,we.start+16));t.logger.log("MP4Demuxer:"+ve+":"+an+" found")}y[$]={timescale:X,type:ve},y[ve]={timescale:X,id:$}}}}}}),y},l.getStartDTS=function(d,y){var I,b,S;return I=l.findBox(y,["moof","traf"]),b=[].concat.apply([],I.map(function(L){return l.findBox(L,["tfhd"]).map(function(O){var $,z,X;return $=l.readUint32(O,4),z=d[$].timescale||9e4,X=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],X/z})})),S=Math.min.apply(null,b),isFinite(S)?S:0},l.offsetStartDTS=function(d,y,I){l.findBox(y,["moof","traf"]).map(function(b){return l.findBox(b,["tfhd"]).map(function(S){var L=l.readUint32(S,4),O=d[L].timescale||9e4;l.findBox(b,["tfdt"]).map(function($){var z=$.data[$.start],X=l.readUint32($,4);if(z===0)l.writeUint32($,4,X-I*O);else{X*=Math.pow(2,32),X+=l.readUint32($,8),X-=I*O,X=Math.max(X,0);var oe=Math.floor(X/(u+1)),te=Math.floor(X%(u+1));l.writeUint32($,4,oe),l.writeUint32($,8,te)}})})})},s.append=function(d,y,I,b){var S=this.initData;S||(this.resetInitSegment(d,this.audioCodec,this.videoCodec,!1),S=this.initData);var L,O=this.initPTS;if(O===void 0){var $=l.getStartDTS(S,d);this.initPTS=O=$-y,this.observer.trigger(o.default.INIT_PTS_FOUND,{initPTS:O})}l.offsetStartDTS(S,d,O),L=l.getStartDTS(S,d),this.remuxer.remux(S.audio,S.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 QE});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},X(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=sn.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}(),je=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 He(w,h){var f=Ce[h];return!!f&&f[w.slice(0,4)]===!0}function en(w,h){return MediaSource.isTypeSupported((h||"video")+'/mp4;codecs="'+w+'"')}var Cn=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,ra=/#EXT-X-MEDIA:(.*)/g,Bn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),qn=/(?:(?:#(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?/,Kn=/\.(mp4|m4s|m4v|m4a)$/i,Jn=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=[];Cn.lastIndex=0;function c(x,H){["video","audio"].forEach(function(k){var ee=x.filter(function($e){return He($e,k)});if(ee.length){var be=ee.filter(function($e){return $e.lastIndexOf("avc1",0)===0||$e.lastIndexOf("mp4a",0)===0});H[k+"Codec"]=be.length>0?be[0]:ee[0],x=x.filter(function($e){return ee.indexOf($e)===-1})}}),H.unknownCodecs=x}for(var _;(_=Cn.exec(f))!=null;){var g={},C=g.attrs=new je(_[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(ra.lastIndex=0;(_=ra.exec(f))!==null;){var F=new je(_[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 an(v),x=0,H=null,k=new te,ee,be,$e,fn=null;for(Bn.lastIndex=0;(ee=Bn.exec(f))!==null;){var _a=ee[1];if(_a){k.duration=parseFloat(_a);var ea=(" "+ee[2]).slice(1);k.title=ea||null,k.tagList.push(ea?["INF",_a,ea]:["INF",_a])}else if(ee[3]){if(Object(i.isFiniteNumber)(k.duration)){var ca=g++;k.type=c,k.start=C,$e&&(k.levelkey=$e),k.sn=ca,k.level=r,k.cc=x,k.urlId=_,k.baseurl=v,k.relurl=(" "+ee[3]).slice(1),Ue(k,H),F.fragments.push(k),H=k,C+=k.duration,k=new te}}else if(ee[4]){var Ra=(" "+ee[4]).slice(1);H?k.setByteRange(Ra,H):k.setByteRange(Ra)}else if(ee[5])k.rawProgramDateTime=(" "+ee[5]).slice(1),k.tagList.push(["PROGRAM-DATE-TIME",k.rawProgramDateTime]),fn===null&&(fn=F.fragments.length);else{if(ee=ee[0].match(qn),!ee){s.logger.warn("No matches on slow regex match for level playlist!");continue}for(be=1;be=0&&($e.method=lt,$e.key=null,$e.iv=xa));break}case"START":{var Eo=new je(Oa),Z_=Eo.decimalFloatingPoint("TIME-OFFSET");Object(i.isFiniteNumber)(Z_)&&(F.startTimeOffset=Z_);break}case"MAP":{var e0=new je(Oa);k.relurl=e0.URI,e0.BYTERANGE&&k.setByteRange(e0.BYTERANGE),k.baseurl=v,k.level=r,k.type=c,k.sn="initSegment",F.initSegment=k,k=new te,k.rawProgramDateTime=F.initSegment.rawProgramDateTime;break}default:s.logger.warn("line parsed but not handled: "+ee);break}}}return k=H,k&&!k.relurl&&(F.fragments.pop(),C-=k.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(DI){return Kn.test(DI.relurl)})&&(s.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),k=new te,k.relurl=F.fragments[0].relurl,k.baseurl=v,k.level=r,k.type=c,k.sn="initSegment",F.initSegment=k,F.needSidxRanges=!0),fn&&ft(F.fragments,fn),F},w}();function ft(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 Ue(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 ia(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var Ta=window,In=Ta.performance,gn=function(w){ia(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 k={timeout:F,maxRetry:C,retryDelay:x,maxRetryDelay:H},ee={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,k,ee),!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=In.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=Jn.parseMasterPlaylist(F,x);if(!H.length){this._handleManifestParsingError(r,_,"no level found in manifest",g);return}var k=H.map(function(fn){return{id:fn.attrs.AUDIO,codec:fn.audioCodec}}),ee=Jn.parseMasterPlaylistMedia(F,x,"AUDIO",k),be=Jn.parseMasterPlaylistMedia(F,x,"SUBTITLES");if(ee.length){var $e=!1;ee.forEach(function(fn){fn.url||($e=!0)}),$e===!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"),ee.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1}))}C.trigger(l.default.MANIFEST_LOADED,{levels:H,audioTracks:ee,subtitles:be,url:x,stats:c,networkDetails:g})},f._handleTrackOrLevelPlaylist=function(r,c,_,g){var C=this.hls,F=_.id,x=_.level,H=_.type,k=h.getResponseUrl(r,_),ee=Object(i.isFiniteNumber)(F)?F:0,be=Object(i.isFiniteNumber)(x)?x:ee,$e=h.mapContextToLevelType(_),fn=Jn.parseLevelPlaylist(r.data,k,be,$e,ee);if(fn.tload=c.tload,H===I.MANIFEST){var _a={url:k,details:fn};C.trigger(l.default.MANIFEST_LOADED,{levels:[_a],audioTracks:[],url:k,stats:c,networkDetails:g})}if(c.tparsed=In.now(),fn.needSidxRanges){var ea=fn.initSegment.url;this.load({url:ea,isSidxRequest:!0,type:H,level:x,levelDetails:fn,id:F,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"});return}_.levelDetails=fn,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 _=S.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 k=C.fragments[x];k.byteRange.length===0&&k.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 k=h.canHaveQualityLevels(_.type);if(k)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),We=gn;function na(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var fa=function(w){na(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 k,ee,be;k={url:c.url,frag:c,responseType:"arraybuffer",progressData:!1};var $e=c.byteRangeStartOffset,fn=c.byteRangeEndOffset;Object(i.isFiniteNumber)($e)&&Object(i.isFiniteNumber)(fn)&&(k.rangeStart=$e,k.rangeEnd=fn),ee={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout},be={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},H.load(k,ee,be)},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=fa;function _t(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var vn=function(w){_t(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},k={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};c.loader.load(x,H,k)}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),la=vn;function Et(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"},ot=function(w){Et(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 k=0;k=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 k=c.fragments[H];c.isPartial(k)&&(g=k.body.startPTS-c.bufferPadding,C=k.body.endPTS+c.bufferPadding,r>=g&&r<=C&&(_=Math.min(r-g,C-r),x<=_&&(F=k.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,k=v,ee=0;ee=be&&v<$e)H=be,k=$e,F=k-v;else if(v+r1?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 xe(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,k;for(x=F-w.startSN,H=w.fragments,H[x]=h,k=x;k>0;k--)mn(H,k,k-1);for(k=x;kv.length))for(var c=0;ch?-1:0})}function Ha(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 Or(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 nu=250,au=2,wo=.1,Ur=.05,Cu=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 k=j.bufferInfo(c,g,0),ee=k.len>0,be=k.nextStart||0;if(!(!ee&&!be)){if(C){var $e=k.len>au,fn=!be||be-g>au;if($e||fn)return;this.moved=!1}if(!this.moved&&this.stalled){var _a=Math.max(be,k.start||0)-g;if(_a>0&&_a<=au){this._trySkipBufferHole(null);return}}var ea=self.performance.now();if(_===null){this.stalled=ea;return}var ca=ea-_;!C&&ca>=nu&&this._reportStall(k.len);var Ra=j.bufferInfo(c,g,r.maxBufferHole);this._tryFixBufferStall(Ra,ca)}}},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 Nc(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"},wl=function(w){Nc(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,k=x.start-H,ee=x.start+x.duration+H;Cee?(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}(Vl);function bl(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 k=j.bufferInfo(this.mediaBuffer?this.mediaBuffer:_,g,c.maxBufferHole),ee=k.len;if(!(ee>=H)){s.logger.trace("buffer length of "+ee.toFixed(3)+" is below max of "+H.toFixed(3)+". checking for more payload ..."),this.level=r.nextLoadLevel=C;var be=F.details;if(!be||be.live&&this.levelLastLoaded!==C){this.state=se.WAITING_LEVEL;return}if(this._streamEnded(k,be)){var $e={};this.altAudio&&($e.type="video"),this.hls.trigger(l.default.BUFFER_EOS,$e),this.state=se.ENDED;return}this._fetchPayloadOrEos(g,k,be)}}}},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,k=F[x-1].start+F[x-1].duration,ee=c.end,be;if(_.initSegment&&!_.initSegment.data)be=_.initSegment;else if(_.live){var $e=this.config.initialLiveManifestSize;if(x<$e){s.logger.warn("Can not start playback of a level, reason: not enough fragments "+x+" < "+$e);return}if(be=this._ensureFragmentAtLivePoint(_,ee,H,k,g,F,x),be===null)return}else ee$e&&$e>k.currentTime&&(s.logger.log("buffer end: "+c.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+$e.toFixed(3)),k.currentTime=$e),this.nextLoadPosition=$e}if(r.PTSKnown&&c>g&&k&&k.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),ee=jo(F,C.endProgramDateTime,H.maxFragLookUpTolerance);else{var fn=C.sn+1;if(fn>=r.startSN&&fn<=r.endSN){var _a=F[fn-r.startSN];C.cc===_a.cc&&(ee=_a,s.logger.log("live playlist, switching playlist, load frag with next SN: "+ee.sn))}ee||(ee=K.search(F,function(ea){return C.cc-ea.cc}),ee&&s.logger.log("live playlist, switching playlist, load frag with same CC: "+ee.sn))}ee||(ee=F[Math.min(x-1,Math.round(x/2))],s.logger.log("live playlist, switching playlist, unknown, load middle frag : "+ee.sn))}return ee},f._findFragment=function(r,c,_,g,C,F,x){var H=this.hls.config,k;if(CF-H.maxFragLookUpTolerance?0:H.maxFragLookUpTolerance;k=Cr(c,g,C,ee)}else k=g[_-1];if(k){var be=k.sn-x.startSN,$e=c&&k.level===c.level,fn=g[be-1],_a=g[be+1];if(c&&k.sn===c.sn)if($e&&!k.backtracked)if(k.snH.maxBufferHole&&c.dropped&&be?(k=fn,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")):(k=_a,s.logger.log("Re-loading fragment with SN: "+k.sn))}else k=null;else k.backtracked&&(_a&&_a.backtracked?(s.logger.warn("Already backtracked from fragment "+_a.sn+", will not backtrack to fragment "+k.sn+". Loading fragment "+_a.sn),k=_a):(s.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),k.dropped=0,fn?(k=fn,k.backtracked=!0):be&&(k=null)))}return k},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 Cu(_,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?(wn(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"),Sr(this.fragPrevious,g,c))):(s.logger.log("live playlist - first load, unknown sliding"),c.PTSKnown=!1,Sr(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 k=c.startTimeOffset;Object(i.isFiniteNumber)(k)?(k<0&&(s.logger.log("negative start time offset "+k+", count from end of last fragment"),k=x+F+k),s.logger.log("start time offset found in playlist, adjust startPosition to "+k),this.startPosition=k):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],k=H.details;if(this.bitrateTest=!1,this.stats=x,s.logger.log("Loaded "+c.sn+" of ["+k.startSN+" ,"+k.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(),k.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 ["+k.startSN+" ,"+k.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 ee=!(C&&C.seeking)&&(k.PTSKnown||!k.live),be=k.initSegment?k.initSegment.data:[],$e=this._getAudioCodec(H),fn=this.demuxer=this.demuxer||new Ge(this.hls,"main");fn.push(r.payload,be,$e,H.videoCodec,c,k.totalduration,ee)}}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 k=F.initSegment;k&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(l.default.BUFFER_APPENDING,{type:C,data:k,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=xe(C.details,F,r.startPTS,r.endPTS,r.startDTS,r.endDTS),k=this.hls;k.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(ee){ee&&ee.length&&c.state===se.PARSING&&(c.appended=!0,c.pendingBuffering=!0,k.trigger(l.default.BUFFER_APPENDING,{type:r.type,data:ee,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 : "+pt.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},jc(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}(wl),ef=dd;function W_(w,h){for(var f=0;f0){g=c[0].bitrate,c.sort(function(ee,be){return ee.bitrate-be.bitrate}),this._levels=c;for(var k=0;k=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:_})}}},$_(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),V_=a("./src/demux/id3.js");function JD(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 Hs(w){if(w&&w.cues)for(;w.cues.length>0;)w.removeCue(w.cues[0])}function DE(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 k=0;k=this.minWeight_},h.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},h.destroy=function(){},w}(),bE=wE;function zD(w,h){for(var f=0;f500*_.duration/H){var k=r.levels,ee=Math.max(1,F.bw?F.bw/8:F.loaded*1e3/x),be=k[_.level],$e=be.realBitrate?Math.max(be.realBitrate,be.bitrate):be.bitrate,fn=F.total?F.total:Math.max(F.loaded,Math.round(_.duration*$e/8)),_a=c.currentTime,ea=(fn-F.loaded)/ee,ca=(j.bufferInfo(c,_a,r.config.maxBufferHole).end-_a)/H;if(ca<2*_.duration/H&&ea>ca){var Ra,Oa;for(Oa=_.level-1;Oa>C;Oa--){var Gu=k[Oa].realBitrate?Math.max(k[Oa].realBitrate,k[Oa].bitrate):k[Oa].bitrate,Oo=_.duration*Gu/(8*.8*ee);if(Oo=g;ee--){var be=k[ee];if(!!be){var $e=be.details,fn=$e?$e.totalduration/$e.fragments.length:c,_a=$e?$e.live:!1,ea=void 0;ee<=r?ea=x*_:ea=H*_;var ca=k[ee].realBitrate?Math.max(k[ee].realBitrate,k[ee].bitrate):k[ee].bitrate,Ra=ca*fn/ea;if(s.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+ee+"/"+Math.round(ea)+"/"+ca+"/"+fn+"/"+F+"/"+Ra),ea>ca&&(!Ra||_a&&!this.bitrateTestDelay||Ra=0)return fn;s.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var _a=H?Math.min(H,g.maxStarvationDelay):g.maxStarvationDelay,ea=g.abrBandWidthFactor,ca=g.abrBandWidthUpFactor;if($e===0){var Ra=this.bitrateTestDelay;if(Ra){var Oa=H?Math.min(H,g.maxLoadingDelay):g.maxLoadingDelay;_a=Oa-Ra,s.logger.trace("bitrate test took "+Math.round(1e3*Ra)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*_a)+" ms"),ea=ca=1}}return fn=this._findBestLevel(x,H,be,C,c,$e+_a,ea,ca,_),Math.max(fn,0)}}]),h}(y),CE=SE;function FE(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var QD=W(),GE=function(w){FE(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(k,ee){return ee.parent===_?k+1:k},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&&QD){var _=this.mediaSource=new QD;_.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(k){s.logger.error("error while trying to add sourceBuffer:"+k.message),this.hls.trigger(l.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:k,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 k=H.buffered;k.length>0&&C>k.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 ee="null";return this.media&&(ee=this.media.currentTime.toString()),s.logger.log("sb remove "+r+" ["+H+","+k+"], of ["+F+","+x+"], pos:"+ee),c.remove(H,k),!0}}}catch(be){s.logger.warn("removeBufferRange failed",be)}return!1},h}(y),ME=GE;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(k,ee){return ee?k.width!==ee.width||k.height!==ee.height:!0},C=r.length-1,F=0;F=c||x.height>=_)&&g(x,r[F+1])){C=F;break}}return C},AE(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),YD=LE;function PE(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var Uc=window,xE=Uc.performance,gd=function(w){PE(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=xE.now();if(c){if(this.lastTime){var C=g-this.lastTime,F=_-this.lastDroppedFrames,x=c-this.lastDecodedFrames,H=1e3*F/C,k=this.hls;if(k.trigger(l.default.FPS_DROP,{currentDropped:F,currentDecoded:x,totalDroppedFrames:_}),H>0&&F>k.config.fpsDroppedMonitoringThreshold*x){var ee=k.currentLevel;s.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+ee),ee>0&&(k.autoLevelCapping===-1||k.autoLevelCapping>=ee)&&(ee=ee-1,k.trigger(l.default.FPS_DROP_LEVEL_CAPPING,{level:ee,droppedLevel:k.currentLevel}),k.autoLevelCapping=ee,k.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),NE=gd,XD=window,Rd=XD.performance,jE=XD.XMLHttpRequest,OE=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:Rd.now(),retry:0},this.retryDelay=r.retryDelay,this.loadInternal()},h.loadInternal=function(){var v,r=this.context;v=this.loader=new jE;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(Rd.now(),_.trequest)),c===4){var F=r.status;if(F>=200&&F<300){_.tload=Math.max(_.tfirst,Rd.now());var x,H;g.responseType==="arraybuffer"?(x=r.response,H=x.byteLength):(x=r.responseText,H=x.length),_.loaded=_.total=H;var k={url:r.responseURL,data:x};this.callbacks.onSuccess(k,_,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}(),yd=OE;function ZD(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(k){F||(!r.audioGroupId||k.groupId===r.audioGroupId)&&(!g||g===k.name)&&(r._setAudioTrack(k.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,k=j.bufferInfo(x,r,C.maxBufferHole),ee=j.bufferInfo(H,r,C.maxBufferHole),be=k.len,$e=k.end,fn=this.fragPrevious,_a=Math.min(C.maxBufferLength,C.maxMaxBufferLength),ea=Math.max(_a,ee.len),ca=this.audioSwitch,Ra=this.trackId;if((beOo||k.nextStart)s.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=Oo+.05;else return}if(_.initSegment&&!_.initSegment.data)lt=_.initSegment;else if($e<=Oo){if(lt=Oa[0],this.videoTrackCC!==null&<.cc!==this.videoTrackCC&&(lt=Ut(Oa,this.videoTrackCC)),_.live&<.loadIdx&<.loadIdx===this.fragLoadIdx){var dt=k.nextStart?k.nextStart:Oo;s.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(dt+.05)),this.media.currentTime=dt+.05;return}}else{var xa,Eo=C.maxFragLookUpTolerance,Z_=fn?Oa[fn.sn-Oa[0].sn+1]:void 0,e0=function(Fd){var OL=Math.min(Eo,Fd.duration);return Fd.start+Fd.duration-OL<=$e?1:Fd.start-OL>$e&&Fd.start?-1:0};$eUi-Eo&&(Eo=0),Z_&&!e0(Z_)?xa=Z_:xa=K.search(Oa,e0)):xa=Oa[Gu-1],xa&&(lt=xa,Oo=xa.start,fn&<.level===fn.level&<.sn===fn.sn&&(lt.sn<_.endSN?(lt=Oa[lt.sn+1-_.startSN],s.logger.log("SN just loaded, load next one: "+lt.sn)):lt=null))}lt&&(lt.encrypted?(s.logger.log("Loading key for "+lt.sn+" of ["+_.startSN+" ,"+_.endSN+"],track "+Ra),this.state=se.KEY_LOADING,g.trigger(l.default.KEY_LOADING,{frag:lt})):(s.logger.log("Loading "+lt.sn+", cc: "+lt.cc+" of ["+_.startSN+" ,"+_.endSN+"],track "+Ra+", currentTime:"+r+",bufferEnd:"+$e.toFixed(3)),this.fragCurrent=lt,(ca||this.fragmentTracker.getState(lt)===Da.NOT_LOADED)&&(lt.sn!=="initSegment"&&(this.startFragRequested=!0),Object(i.isFiniteNumber)(lt.sn)&&(this.nextLoadPosition=lt.start+lt.duration),g.trigger(l.default.FRAG_LOADING,{frag:lt}),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 DI=Il.now(),xL=this.retryDate;x=this.media;var EY=x&&x.seeking;(!xL||DI>=xL||EY)&&(s.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=se.IDLE);break;case se.WAITING_INIT_PTS:var gI=this.videoTrackCC;if(this.initPTS[gI]===void 0)break;var NL=this.waitingFragment;if(NL){var jL=NL.frag.cc;gI!==jL?(c=this.tracks[this.trackId],c.details&&c.details.live&&(s.logger.warn("Waiting fragment CC ("+jL+") does not match video track CC ("+gI+")"),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(ag):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?(wn(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,k=c.cc,ee=this.config.defaultAudioCodec||g.audioCodec||"mp4a.40.2",be=this.stats=r.stats;if(H==="initSegment")this.state=se.IDLE,be.tparsed=be.tbuffered=Il.now(),C.initSegment.data=r.payload,this.hls.trigger(l.default.FRAG_BUFFERED,{stats:be,frag:c,id:"audio"}),this.tick();else{this.state=se.PARSING,this.appended=!1,this.demuxer||(this.demuxer=new Ge(this.hls,"audio"));var $e=this.initPTS[k],fn=C.initSegment?C.initSegment.data:[];if(C.initSegment||$e!==void 0){this.pendingBuffering=!0,s.logger.log("Demuxing "+H+" of ["+C.startSN+" ,"+C.endSN+"],track "+x);var _a=!1;this.demuxer.push(r.payload,fn,ee,null,c,F,_a,$e)}else s.logger.log("unknown video PTS for continuity counter "+k+", 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),xe(F.details,_,r.startPTS,r.endPTS);var H=this.audioSwitch,k=this.media,ee=!1;if(H)if(k&&k.readyState){var be=k.currentTime;s.logger.log("switching audio track : currentTime:"+be),be>=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"}),ee=!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 $e=this.pendingData;if(!$e){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(fn){fn&&fn.length&&$e.push({type:r.type,data:fn,parent:"audio",content:"data"})}),!ee&&$e.length&&($e.forEach(function(fn){c.state===se.PARSING&&(c.pendingBuffering=!0,c.hls.trigger(l.default.BUFFER_APPENDING,fn))}),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=Il.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=Il.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 : "+pt.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=Il.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,k=x&&j.isBuffered(x,H)&&j.isBuffered(x,H+.5);if(k){var ee=this.config;ee.maxMaxBufferLength>=ee.maxBufferLength&&(ee.maxMaxBufferLength/=2,s.logger.warn("AudioStreamController: reduce max buffer length to "+ee.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())},nf(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}(wl),JE=qE,tg=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.");Gu=xa,this.hasBeenReset=!0}})),Object.defineProperty(x,"positionAlign",c({},H,{get:function(){return Oo},set:function(xa){var Eo=r(xa);if(!Eo)throw new SyntaxError("An invalid or illegal string was specified.");Oo=Eo,this.hasBeenReset=!0}})),Object.defineProperty(x,"size",c({},H,{get:function(){return Ui},set:function(xa){if(xa<0||xa>100)throw new Error("Size must be between 0 and 100.");Ui=xa,this.hasBeenReset=!0}})),Object.defineProperty(x,"align",c({},H,{get:function(){return lt},set:function(xa){var Eo=r(xa);if(!Eo)throw new SyntaxError("An invalid or illegal string was specified.");lt=Eo,this.hasBeenReset=!0}})),x.displayState=void 0}return _.prototype.getCueAsHTML=function(){var g=window.WebVTT;return g.convertCueToDOMTree(window,this.text)},_}(),WE=function(){return{decode:function(f){if(!f)return"";if(typeof f!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(f))}}};function rg(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new WE,this.regionList=[]}function $E(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 og(){this.values=Object.create(null)}og.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 ug(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 af=new tg(0,0,0),Oi=af.align==="middle"?"middle":"center";function zE(w,h,f){var v=w;function r(){var g=$E(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 og;ug(g,function(k,ee){switch(k){case"region":for(var be=f.length-1;be>=0;be--)if(f[be].id===ee){F.set(k,f[be].region);break}break;case"vertical":F.alt(k,ee,["rl","lr"]);break;case"line":var $e=ee.split(","),fn=$e[0];F.integer(k,fn),F.percent(k,fn)&&F.set("snapToLines",!1),F.alt(k,fn,["auto"]),$e.length===2&&F.alt("lineAlign",$e[1],["start",Oi,"end"]);break;case"position":$e=ee.split(","),F.percent(k,$e[0]),$e.length===2&&F.alt("positionAlign",$e[1],["start",Oi,"end","line-left","line-right","auto"]);break;case"size":F.percent(k,ee);break;case"align":F.alt(k,ee,["start",Oi,"end","left","right"]);break}},/:/,/\s/),C.region=F.get("region",null),C.vertical=F.get("vertical","");var x=F.get("line","auto");x==="auto"&&af.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",Oi);var H=F.get("position","auto");H==="auto"&&af.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 ig(w){return w.replace(//gi,` `)}rg.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=ig(F);x")===-1){f.cue.id=c;continue}case"CUE":try{zE(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 VE=rg;function QE(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 wd={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},lg=function(h){var f=h;return wd.hasOwnProperty(h)&&(f=wd[h]),String.fromCharCode(f)},Fu=15,Tl=100,KE={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},YE={17:2,18:4,21:6,22:8,23:10,19:13,20:15},XE={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ZE={25:2,26:4,29:6,30:8,31:10,27:13,28:15},eI=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],cg;(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"})(cg||(cg={}));var qa={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}},kc=function(h){for(var f=[],v=0;vTl&&(qa.log("ERROR","Too large cursor position "+this.pos),this.pos=Tl)},h.moveCursor=function(v){var r=this.pos+v;if(v>1)for(var c=this.pos+1;c=144&&this.backSpace();var r=lg(v);if(this.pos>=Tl){qa.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}(),K_=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 Ja,this.nonDisplayedMemory=new Ja,this.lastOutputScreen=new Ja,this.currRollUpRow=this.displayedMemory.rows[Fu-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[Fu-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,qa.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]}qa.log("INFO","MIDROW: "+JSON.stringify(r)),this.writeScreen.setPen(r)},h.outputDataUpdate=function(v){v===void 0&&(v=!1);var r=qa.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}(),Y_=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 K_(1,v),new K_(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,qa.setTime(v);for(var F=0;F ("+kc([_,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 qa.log("WARNING","No channel found yet. TEXT-MODE?");c?this.dataCounters.cmd+=2:C?this.dataCounters.char+=2:(this.dataCounters.other+=2,qa.log("WARNING","Couldn't parse cleaned data "+kc([_,g])+" orig: "+kc([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,qa.log("DEBUG","Repeated command ("+kc([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 qa.log("ERROR","Mismatch channel in midrow parsing"),!1;var _=this.channels[c-1];return _.ccMIDROW(r),qa.log("DEBUG","MIDROW ("+kc([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?KE[v]:XE[v]:_=c===1?YE[v]:ZE[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,qa.log("INFO","Special char '"+lg(C)+"' in channel "+c),_=[C]}else v>=32&&v<=127&&(_=r===0?[v]:[v,r]);if(_){var F=kc(_);qa.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=eI[_],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}(),Ed=function(h,f,v){return h.substr(v||0,f.length)===f},rI=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},X_=function(h){for(var f=5381,v=h.length;v;)f=f*33^h.charCodeAt(--v);return(f>>>0).toString()},oI=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},uI={parse:function(h,f,v,r,c,_){var g=/\r\n|\n\r|\n|\r/g,C=Object(V_.utf8ArrayToStr)(new Uint8Array(h)).trim().replace(g,` `).split(` `),F="00:00.000",x=0,H=0,k=0,ee=[],be,$e=!0,fn=!1,_a=new VE;_a.oncue=function(ea){var ca=v[r],Ra=v.ccOffset;ca&&ca.new&&(H!==void 0?Ra=v.ccOffset=ca.start:oI(v,r,k)),k&&(Ra=k-v.presentationOffset),fn&&(ea.startTime+=Ra-H,ea.endTime+=Ra-H),ea.id=X_(ea.startTime.toString())+X_(ea.endTime.toString())+X_(ea.text),ea.text=decodeURIComponent(encodeURIComponent(ea.text)),ea.endTime>0&&ee.push(ea)},_a.onparsingerror=function(ea){be=ea},_a.onflush=function(){if(be&&_){_(be);return}c(ee)},C.forEach(function(ea){if($e)if(Ed(ea,"X-TIMESTAMP-MAP=")){$e=!1,fn=!0,ea.substr(16).split(",").forEach(function(ca){Ed(ca,"LOCAL:")?F=ca.substr(6):Ed(ca,"MPEGTS:")&&(x=parseInt(ca.substr(7)))});try{f+(v[r].start*9e4||0)<0&&(f+=8589934592),x-=f,H=rI(F)/1e3,k=x/9e4}catch(ca){fn=!1,be=ca}return}else ea===""&&($e=!1);_a.parse(ea+` `)}),_a.flush()}},iI=uI;function vg(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function lI(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,w.__proto__=h}var cI=function(w){lI(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 sg(vg(r),"textTrack1"),_=new sg(vg(r),"textTrack2");r.cea608Parser=new tI(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],k=sI(H[0],H[1],c,_);if(k>=0&&(H[0]=Math.min(H[0],c),H[1]=Math.max(H[1],_),F=!0,k/(_-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=Lt(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(ha)},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&&Qn(F.details,_,this.lastAVStart),F.details=_,this.setInterval(ha))},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=_n.now();this.decrypter.decrypt(r.payload,_.key.buffer,_.iv.buffer,function(x){var H=_n.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),k=j.bufferedInfo(this._getBuffered(),g.currentTime,F),ee=k.end,be=k.len,$e=C[c].details,fn=$e.fragments,_a=fn.length,ea=fn[_a-1].start+fn[_a-1].duration;if(be>H)return;var ca,Ra=this.fragPrevious;eepg){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=pg-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 Kt.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(Kt.WIDEVINE,c,_)}},_I(h,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),h}(y),dI=mg;function mI(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);wg.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,S){return S="["+b+"] > "+S,S}var s=Object(t.getSelfScope)();function R(b){var S=s.console[b];return S?function(){for(var L=arguments.length,O=new Array(L),$=0;$1?S-1:0),O=1;O{"use strict";Object.defineProperty(yD,"__esModule",{value:!0});yD.Direction=void 0;var J1e;(function(e){e.Right="to right",e.Left="to left",e.Down="to bottom",e.Up="to top"})(J1e=yD.Direction||(yD.Direction={}))});var TA=Oe(Aa=>{"use strict";var wD=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=K1e;function Y1e(e,n,a){return ea?a:e}Aa.checkValuesAgainstBoundaries=Y1e;function X1e(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=X1e;function Z1e(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=Z1e;function eEe(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=eEe;function nEe(e,n,a){var t=a?-1:1;e.forEach(function(o,u){return Kz(o,t*n[u].x,n[u].y)})}Aa.translateThumbs=nEe;function aEe(e,n,a,t){for(var o=0,u=Xz(e[0],n,a,t),i=1;ii?s:i},e.getBoundingClientRect().width));return u},lEe=function(e,n,a,t,o,u,i){i===void 0&&(i=function(R){return R});var l=[],s=function(R){var d=Yz(a[R],t[R],o,u,i),y=n[R].x;n.forEach(function(I,b){var S=I.x,L=Yz(a[b],t[b],o,u,i);R!==b&&(y>=S&&y<=S+L||y+d>=S&&y+d<=S+L)&&(l.includes(b)||(l.push(R),l.push(b),l=wD(wD([],l,!0),[R,b],!1),s(b)))})};return s(e),Array.from(new Set(l.sort()))},cEe=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,IA.useState)({}),s=l[0],R=l[1],d=(0,IA.useState)(u(n[a].toFixed(i))),y=d[0],I=d[1];return(0,IA.useEffect)(function(){if(e){var b=e.getThumbs();if(b.length<1)return;var S={},L=e.getOffsets(),O=lEe(a,L,b,n,o,i,u),$=u(n[a].toFixed(i));if(O.length){var z=O.reduce(function(we,an,sn,ce){return we.length?wD(wD([],we,!0),[L[ce[sn]].x],!1):[L[ce[sn]].x]},[]);if(Math.min.apply(Math,z)===L[a].x){var X=[];O.forEach(function(we){X.push(n[we].toFixed(i))}),$=Array.from(new Set(X.sort(function(we,an){return parseFloat(we)-parseFloat(an)}))).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;S.left="".concat(Math.abs(oe-(te+ve))/2,"px"),S.transform="translate(-50%, 0)"}else S.visibility="hidden"}I($),R(S)}},[e,n]),[y,s]};Aa.useThumbOverlap=cEe;function Xz(e,n,a,t){var o=e.getBoundingClientRect(),u=o.left,i=o.top,l=o.width,s=o.height;return Qz(t)?Math.abs(a-(i+s/2)):Math.abs(n-(u+l/2))}});var eV=Oe(Gi=>{"use strict";var sEe=Gi&&Gi.__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)}}(),vEe=Gi&&Gi.__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]}),fEe=Gi&&Gi.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),_Ee=Gi&&Gi.__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)&&vEe(n,e,a);return fEe(n,e),n},Zz=Gi&&Gi.__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,Dt.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,Dt.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,Dt.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,Dt.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===no.Direction.Left||d===no.Direction.Down?-1:1;I!==-1&&(pEe.includes(o.key)?(o.preventDefault(),t.setState({draggedThumbIndex:I,isChanged:!0}),l((0,Dt.replaceAt)(i,I,t.normalizeValue(i[I]+b*(o.key==="PageUp"?s*10:s),I)))):dEe.includes(o.key)?(o.preventDefault(),t.setState({draggedThumbIndex:I,isChanged:!0}),l((0,Dt.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,S=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(),X=(0,Dt.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 no.Direction.Right:case no.Direction.Left:ve=oe/X*(I-y);break;case no.Direction.Down:case no.Direction.Up:ve=te/X*(I-y);break;default:(0,Dt.assertUnreachable)(d)}if(O&&(ve*=-1),Math.abs(ve)>=L/2){for(var we=0;weI?ve=I-S[we]:an=L/2&&b((0,Dt.replaceAt)(S,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,Dt.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,Dt.isVertical)(this.props.direction)?"ns-resize":"ew-resize":s.length===1&&!I?"pointer":"inherit"},onMouseDown:I?Dt.voidFn:this.onMouseDownTrack,onTouchStart:I?Dt.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:I,children:Zz(Zz([],O.map(function($,z,X){return l({props:{style:a.props.direction===no.Direction.Left||a.props.direction===no.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 X=a.state.draggedThumbIndex===z;return u({index:z,value:$,isDragged:X,props:{style:{position:"absolute",zIndex:L[z],cursor:I?"inherit":X?"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?Dt.voidFn:a.onKeyDown,onKeyUp:I?Dt.voidFn:a.onKeyUp}})}),!0)})},n.defaultProps={step:1,direction:no.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},n}(F1.Component);Gi.default=mEe});var nV=Oe(eu=>{"use strict";var hEe=eu&&eu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eu,"__esModule",{value:!0});eu.checkValuesAgainstBoundaries=eu.relativeValue=eu.useThumbOverlap=eu.Direction=eu.getTrackBackground=eu.Range=void 0;var DEe=hEe(eV());eu.Range=DEe.default;var G1=TA();Object.defineProperty(eu,"getTrackBackground",{enumerable:!0,get:function(){return G1.getTrackBackground}});Object.defineProperty(eu,"useThumbOverlap",{enumerable:!0,get:function(){return G1.useThumbOverlap}});Object.defineProperty(eu,"relativeValue",{enumerable:!0,get:function(){return G1.relativeValue}});Object.defineProperty(eu,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return G1.checkValuesAgainstBoundaries}});var gEe=C1();Object.defineProperty(eu,"Direction",{enumerable:!0,get:function(){return gEe.Direction}})});var iFe={};kL(iFe,{boot:()=>uFe});var BL=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 VL=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 Ld=function(e){return e.slice().reverse()};var KL=function(e,n){return n.filter(e)};var YL=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 kt={show:G2};var M2=function(e){return e.showRecordFields},lf=function(){return function(){return function(e){var n=M2(e);return{show:function(a){return"{"+(n(et.value)(a)+"}")}}}}};var cf={show:C2},Ye={show:S2},Ud={show:F2},Pg={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 sf=function(e){var n=ar(e);return function(a){var t=M2(a);return function(o){var u=ne(o);return{showRecordFields:function(i){return function(l){var s=t(et.value)(l),R=n(et.value),d=Lu(R)(l);return" "+(R+(": "+(u(d)+(","+s))))}}}}}},vf=function(e){var n=ar(e);return function(a){var t=ne(a);return{showRecordFields:function(o){return function(u){var i=n(et.value),l=Lu(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 Ne=function(){function e(){}return e.value=new e,e}(),kd=function(e){return e};var u0=function(e){return e.to};var i0=function(e){return e.from};var JY=pn(dn),M=function(){function e(){}return e.value=new e,e}(),T=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var A2=function(e){var n=tn(e);return{append:function(a){return function(t){if(a instanceof M)return t;if(t instanceof M)return a;if(a instanceof T&&t instanceof T)return new T(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 T)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])}}},St=bn(!0)(hn(!1)),Ct=bn(!1)(hn(!0));var ae={map:function(e){return function(n){return n instanceof T?new T(e(n.value0)):M.value}}},WY=U(ae);var Je=function(e){return bn(e)(JY)},yt=function(){return function(e){if(e instanceof T)return e.value0;throw new Error("Failed pattern match at Data.Maybe (line 288, column 1 - line 288, column 46): "+[e.constructor.name])}};var Wt=function(e){var n=Re(e);return{eq:function(a){return function(t){return a instanceof M&&t instanceof M?!0:a instanceof T&&t instanceof T?n(a.value0)(t.value0):!1}}}},ru=function(e){var n=Ke(e),a=Wt(e.Eq0());return{compare:function(t){return function(o){if(t instanceof M&&o instanceof M)return ke.value;if(t instanceof M)return De.value;if(o instanceof M)return de.value;if(t instanceof T&&o instanceof T)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 vr={apply:function(e){return function(n){if(e instanceof T)return WY(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 nn={bind:function(e){return function(n){if(e instanceof T)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 vr}};var oa=function(){return{pure:T.create,Apply0:function(){return vr}}}();var $r={alt:function(e){return function(n){return e instanceof M?n:e}},Functor0:function(){return ae}},$Y=function(){return{empty:M.value,Alt0:function(){return $r}}}(),kr={Applicative0:function(){return oa},Plus1:function(){return $Y}};var Me=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Pe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var c0=function(e){return bn(new Me(e))(Pe.create)};var hr={map:function(e){return function(n){if(n instanceof Me)return new Me(n.value0);if(n instanceof Pe)return new Pe(e(n.value0));throw new Error("Failed pattern match at Data.Either (line 0, column 0 - line 0, column 0): "+[n.constructor.name])}}},zY=U(hr);var Bt=function(e){return function(n){return function(a){if(a instanceof Me)return e(a.value0);if(a instanceof Pe)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])}}},ff=function(){return Bt(hn(M.value))(T.create)}();var Bd={apply:function(e){return function(n){if(e instanceof Me)return new Me(e.value0);if(e instanceof Pe)return zY(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 hr}};var Pu={bind:Bt(function(e){return function(n){return new Me(e)}})(function(e){return function(n){return n(e)}}),Apply0:function(){return Bd}};var Ys=function(){return{pure:Pe.create,Apply0:function(){return Bd}}}(),xg={Applicative0:function(){return Ys},Bind1:function(){return Pu}};var si=function(e){return e};var Jc={map:function(e){return function(n){return e(n)}}};var L2={apply:function(e){return function(n){return e(n)}},Functor0:function(){return Jc}},VY={bind:function(e){return function(n){return n(e)}},Apply0:function(){return L2}},P2={pure:si,Apply0:function(){return L2}},cr={Applicative0:function(){return P2},Bind1:function(){return VY}};var x2=function(e){return Math.min(Math.abs(e),2147483647)},N2=function(e){return function(n){return n===0?0:n>0?Math.floor(e/n):-Math.floor(e/-n)}},j2=function(e){return function(n){if(n===0)return 0;var a=Math.abs(n);return(e%a+a)%a}};var EI={Ring0:function(){return Kl}};var Io=function(e){return e.mod};var tr={degree:x2,div:N2,mod:j2,CommutativeRing0:function(){return EI}},io=function(e){return e.div};var wt={mempty:"",Semigroup0:function(){return of}};var Xa=function(e){return e.mempty};var U2=function(e){return function(){return e}},k2=function(e){return function(n){return function(){return n(e())()}}};var II=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}}},fP=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 DZ=Yt(cn),OP=av(g0),gZ=xt(cn);var em=function(e){return e.foldrWithIndex};var nm=function(e){return e.foldlWithIndex};var RZ=function(e){var n=em(e);return function(a){var t=tn(a.Semigroup0()),o=Xa(a);return function(u){return n(function(i){return function(l){return function(s){return t(u(i)(l))(s)}}})(o)}}},am={foldrWithIndex:function(e){return function(n){var a=DZ(function(o){return function(u){return e(o.value0)(o.value1)(u)}})(n),t=OP(Dn.create);return function(o){return a(t(o))}}},foldlWithIndex:function(e){return function(n){var a=gZ(function(o){return function(u){return e(u.value0)(o)(u.value1)}})(n),t=OP(Dn.create);return function(o){return a(t(o))}}},foldMapWithIndex:function(e){return RZ(am)(e)},Foldable0:function(){return cn}};var UP=function(e){var n=nm(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 kP=function(e){return function(n){return function(a){return(a|0)===a?e(a):n}}},Ft=function(e){return e},BP=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 $g=isFinite;var zg=Math.abs;var I0=Math.floor,XI=Math.log;var Vg=function(e){return function(n){return Math.pow(e,n)}};var Ef=Math.round;var HP=2.302585092994046;var qP=Jt(Od),JP=tt(Od);var TZ=function(){return BP(T.create)(M.value)}(),ac=TZ(10),If=function(){return kP(T.create)(M.value)}(),WP=function(e){if(!$g(e))return 0;if(e>=Ft(qP))return qP;if(e<=Ft(JP))return JP;if(qe)return Je(0)(If(e));throw new Error("Failed pattern match at Data.Int (line 72, column 1 - line 72, column 29): "+[e.constructor.name])},Qg=function(e){return WP(Ef(e))};var co=function(e){return WP(I0(e))};function Kg(e){return Object.prototype.toString.call(e).slice(8,-1)}function tm(e){return e===null}function Tf(e){return e===void 0}var Yg=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function $P(e){return e.stack||e.toString()}function vu(e){return new Error(e)}function T0(e){return e.message}function Xg(e){return function(){throw e}}var VP=function(e){return Xg(vu(e))};var QP={show:$P};var Lr=function(e){return e.throwError};var Nt=function(e){return e.catchError};var Sf=function(e){var n=Nt(e),a=e.MonadThrow0().Monad0(),t=U(a.Bind1().Apply0().Functor0()),o=J(a.Applicative0());return function(u){return n(t(Pe.create)(u))(function(i){return o(Me.create(i))})}};var Dr={liftEffect:pn(dn),Monad0:function(){return Xl}},yn=function(e){return e.liftEffect};var SZ=U(hr);var eT=function(e){return e};var nR=function(e){return e};var aR=function(e){return function(n){return e(n)}},tR=function(e){var n=U(e);return{map:function(a){return aR(n(SZ(a)))}}};var YP=function(e){return{Applicative0:function(){return Qc(e)},Bind1:function(){return Ff(e)}}},Ff=function(e){var n=Z(e.Bind1()),a=J(e.Applicative0());return{bind:function(t){return function(o){return n(t)(Bt(function(u){return a(Me.create(u))})(function(u){var i=o(u);return i}))}},Apply0:function(){return nT(e)}}},nT=function(e){var n=tR(e.Bind1().Apply0().Functor0());return{apply:ki(YP(e)),Functor0:function(){return n}}},Qc=function(e){return{pure:function(){var n=J(e.Applicative0());return function(a){return eT(n(Pe.create(a)))}}(),Apply0:function(){return nT(e)}}};var XP=function(e){var n=YP(e);return{throwError:function(){var a=J(e.Applicative0());return function(t){return eT(a(Me.create(t)))}}(),Monad0:function(){return n}}};var rR=function(e){var n=tn(e);return function(a){var t=a.Bind1(),o=Z(t),u=J(a.Applicative0()),i=tR(t.Apply0().Functor0());return{alt:function(l){return function(s){return o(l)(function(R){if(R instanceof Pe)return u(new Pe(R.value0));if(R instanceof Me)return o(s)(function(d){if(d instanceof Pe)return u(new Pe(d.value0));if(d instanceof Me)return u(new Me(n(R.value0)(d.value0)));throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 87, column 9 - line 89, column 49): "+[d.constructor.name])});throw new Error("Failed pattern match at Control.Monad.Except.Trans (line 83, column 5 - line 89, column 49): "+[R.constructor.name])})}},Functor0:function(){return i}}}};var Ou=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 iR=function(e){var n=ou(e);return function(a){return new Ou(a,n)}};var aT=function(e){var n=U(e);return{map:function(a){return function(t){return new Ou(a(t.value0),n(a)(t.value1))}}}};var tT=function(e){var n=Ar(e),a=xt(e),t=Yt(e);return{foldMap:function(o){var u=tn(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}(),at=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}(),lR=function(e){return e},NZ=function(e){return new at(e.value0,e.value1)};var jZ=function(e){var n=function(a){return function(t){var o=a,u=!1,i;function l(s,R){if(R instanceof at&&R.value1 instanceof at&&R.value1.value1 instanceof at){o=new at(R,s),t=R.value1.value1.value1;return}var d=function(I){return I instanceof at&&I.value1 instanceof at&&I.value1.value1 instanceof Vt?new at(e(I.value0),new at(e(I.value1.value0),Vt.value)):I instanceof at&&I.value1 instanceof Vt?new at(e(I.value0),Vt.value):Vt.value},y=function(I){return function(b){var S=I,L=!1,O;function $(z,X){if(z instanceof at&&z.value0 instanceof at&&z.value0.value1 instanceof at&&z.value0.value1.value1 instanceof at){S=z.value1,b=new at(e(z.value0.value0),new at(e(z.value0.value1.value0),new at(e(z.value0.value1.value1.value0),X)));return}return L=!0,X}for(;!L;)O=$(S,b);return O}};return u=!0,y(s)(d(R))}for(;!u;)i=l(o,t);return i}};return n(Vt.value)},a3={map:jZ};var rT=aT(a3),Co={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 at){l=new at(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=xt(Co)(Va(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 at){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=tn(e.Semigroup0()),a=Xa(e);return function(t){return xt(Co)(function(o){var u=n(o);return function(i){return u(t(i))}})(a)}}};var OZ=Yt(Co);var cR=tT(Co);var oT={append:function(e){return function(n){return OZ(at.create)(n)(e)}}},t3=tn(oT);var sR={append:function(e){return function(n){return new Ou(e.value0,t3(e.value1)(NZ(n)))}}};var UZ={alt:t3,Functor0:function(){return a3}},r3=function(){return{empty:Vt.value,Alt0:function(){return UZ}}}();var zZ=ut(z2);var l3=function(e){return new at(e,Vt.value)};var uT=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 at){t=new at(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 iT=function(e){var n=Z(e.Monad0().Bind1()),a=To(e);return function(t){var o=t.Plus1().Alt0(),u=ma(o),i=U(o.Functor0()),l=J(t.Applicative0());return function(s){var R=function(d){return n(u(i(zt.create)(s))(l(new Ht(ge))))(function(y){return l(zZ(function(I){return new at(I,d)})(function(I){return uT(d)})(y))})};return a(R)(Vt.value)}}};var $o=function(e){return Yt(e)(at.create)(Vt.value)};var c3=function(e){return e()};var s3=function(e){throw new Error(e)};var v3=function(){return s3};var VZ=v3(),QZ=c3,tc=function(e){return QZ(function(){return VZ(e)})};var fR=function(){var e=iR(r3);return function(n){return lR(e(n))}}();var _3=function(e){return e.value0};var F0=function(e){return e.join("")},om=function(e){return e.split("")},Uu=function(e){return e},p3=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 G3(e,n){var a=vT(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),t=vT(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return a-t}function M3(e){return function(n){return function(a){return function(t){var o=vT(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 A3=function(e,n,a){var t=new Date(Date.UTC(e,n,a));return e>=0&&e<100&&t.setUTCFullYear(e),t};function L3(e,n,a,t){var o=A3(n,a-1,t);return e(o.getUTCFullYear())(o.getUTCMonth()+1)(o.getUTCDate())}function P3(e,n,a){return A3(e,n-1,a).getUTCDay()}function lv(e){return e.charCodeAt(0)}function x3(e){return String.fromCharCode(e)}var Rr=function(e){var n=J(e.Applicative0()),a=ou(e.Plus1());return function(t){if(t)return n(ge);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 N3=tt(Ks),j3=Jt(Ks);var ua=function(e){return e.toEnum};var Wn=function(e){return e.fromEnum},fT=function(e){var n=ua(e),a=Wn(e),t=tt(e.Bounded0());return function(o){return function(u){return function(i){var l=n(i);if(l instanceof T)return l.value0;if(l instanceof M){var s=i=lv(N3)&&e<=lv(j3)?new T(x3(e)):M.value},mee={succ:xf(_T)(lv),pred:Nf(_T)(lv),Ord0:function(){return Lg}};var jf=function(){return{cardinality:lv(j3)-lv(N3)|0,toEnum:_T,fromEnum:lv,Bounded0:function(){return Ks},Enum1:function(){return mee}}}();var hR=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}},O3=ne(Ye);var pi=function(){function e(){}return e.value=new e,e}(),Vi=function(){function e(){}return e.value=new e,e}(),Qi=function(){function e(){}return e.value=new e,e}(),Ki=function(){function e(){}return e.value=new e,e}(),Yi=function(){function e(){}return e.value=new e,e}(),Xi=function(){function e(){}return e.value=new e,e}(),Al=function(){function e(){}return e.value=new e,e}(),fu=function(){function e(){}return e.value=new e,e}(),Bu=function(){function e(){}return e.value=new e,e}(),_u=function(){function e(){}return e.value=new e,e}(),Hu=function(){function e(){}return e.value=new e,e}(),qu=function(){function e(){}return e.value=new e,e}(),pu=function(){function e(){}return e.value=new e,e}(),du=function(){function e(){}return e.value=new e,e}(),Ju=function(){function e(){}return e.value=new e,e}(),Wu=function(){function e(){}return e.value=new e,e}(),$u=function(){function e(){}return e.value=new e,e}(),zu=function(){function e(){}return e.value=new e,e}(),di=function(){function e(){}return e.value=new e,e}();var U3={show:function(e){return"(Year "+(O3(e)+")")}},k3={show:function(e){if(e instanceof pi)return"Monday";if(e instanceof Vi)return"Tuesday";if(e instanceof Qi)return"Wednesday";if(e instanceof Ki)return"Thursday";if(e instanceof Yi)return"Friday";if(e instanceof Xi)return"Saturday";if(e instanceof Al)return"Sunday";throw new Error("Failed pattern match at Data.Date.Component (line 184, column 1 - line 191, column 25): "+[e.constructor.name])}},DR={show:function(e){if(e instanceof fu)return"January";if(e instanceof Bu)return"February";if(e instanceof _u)return"March";if(e instanceof Hu)return"April";if(e instanceof qu)return"May";if(e instanceof pu)return"June";if(e instanceof du)return"July";if(e instanceof Ju)return"August";if(e instanceof Wu)return"September";if(e instanceof $u)return"October";if(e instanceof zu)return"November";if(e instanceof di)return"December";throw new Error("Failed pattern match at Data.Date.Component (line 101, column 1 - line 113, column 29): "+[e.constructor.name])}},B3={show:function(e){return"(Day "+(O3(e)+")")}},gR=aa,RR=aa,H3=nt,hee={eq:function(e){return function(n){return e instanceof pi&&n instanceof pi||e instanceof Vi&&n instanceof Vi||e instanceof Qi&&n instanceof Qi||e instanceof Ki&&n instanceof Ki||e instanceof Yi&&n instanceof Yi||e instanceof Xi&&n instanceof Xi||e instanceof Al&&n instanceof Al}}},q3={compare:function(e){return function(n){if(e instanceof pi&&n instanceof pi)return ke.value;if(e instanceof pi)return De.value;if(n instanceof pi)return de.value;if(e instanceof Vi&&n instanceof Vi)return ke.value;if(e instanceof Vi)return De.value;if(n instanceof Vi)return de.value;if(e instanceof Qi&&n instanceof Qi)return ke.value;if(e instanceof Qi)return De.value;if(n instanceof Qi)return de.value;if(e instanceof Ki&&n instanceof Ki)return ke.value;if(e instanceof Ki)return De.value;if(n instanceof Ki)return de.value;if(e instanceof Yi&&n instanceof Yi)return ke.value;if(e instanceof Yi)return De.value;if(n instanceof Yi)return de.value;if(e instanceof Xi&&n instanceof Xi)return ke.value;if(e instanceof Xi)return De.value;if(n instanceof Xi)return de.value;if(e instanceof Al&&n instanceof Al)return ke.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 hee}},pT={eq:function(e){return function(n){return e instanceof fu&&n instanceof fu||e instanceof Bu&&n instanceof Bu||e instanceof _u&&n instanceof _u||e instanceof Hu&&n instanceof Hu||e instanceof qu&&n instanceof qu||e instanceof pu&&n instanceof pu||e instanceof du&&n instanceof du||e instanceof Ju&&n instanceof Ju||e instanceof Wu&&n instanceof Wu||e instanceof $u&&n instanceof $u||e instanceof zu&&n instanceof zu||e instanceof di&&n instanceof di}}},P0={compare:function(e){return function(n){if(e instanceof fu&&n instanceof fu)return ke.value;if(e instanceof fu)return De.value;if(n instanceof fu)return de.value;if(e instanceof Bu&&n instanceof Bu)return ke.value;if(e instanceof Bu)return De.value;if(n instanceof Bu)return de.value;if(e instanceof _u&&n instanceof _u)return ke.value;if(e instanceof _u)return De.value;if(n instanceof _u)return de.value;if(e instanceof Hu&&n instanceof Hu)return ke.value;if(e instanceof Hu)return De.value;if(n instanceof Hu)return de.value;if(e instanceof qu&&n instanceof qu)return ke.value;if(e instanceof qu)return De.value;if(n instanceof qu)return de.value;if(e instanceof pu&&n instanceof pu)return ke.value;if(e instanceof pu)return De.value;if(n instanceof pu)return de.value;if(e instanceof du&&n instanceof du)return ke.value;if(e instanceof du)return De.value;if(n instanceof du)return de.value;if(e instanceof Ju&&n instanceof Ju)return ke.value;if(e instanceof Ju)return De.value;if(n instanceof Ju)return de.value;if(e instanceof Wu&&n instanceof Wu)return ke.value;if(e instanceof Wu)return De.value;if(n instanceof Wu)return de.value;if(e instanceof $u&&n instanceof $u)return ke.value;if(e instanceof $u)return De.value;if(n instanceof $u)return de.value;if(e instanceof zu&&n instanceof zu)return ke.value;if(e instanceof zu)return De.value;if(n instanceof zu)return de.value;if(e instanceof di&&n instanceof di)return ke.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 pT}},J3=nt,yR=function(){return{bottom:-271820|0,top:275759,Ord0:function(){return gR}}}(),Dee=function(){return{bottom:pi.value,top:Al.value,Ord0:function(){return q3}}}(),wR=function(){return{bottom:fu.value,top:di.value,Ord0:function(){return P0}}}(),Pr={cardinality:547580,toEnum:function(e){if(e>=(-271820|0)&&e<=275759)return new T(e);if(qe)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 yR},Enum1:function(){return gee(0)}},gee=hR("enumYear","Data.Date.Component",function(){return{succ:function(){var e=ua(Pr),n=Wn(Pr);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(Pr),n=Wn(Pr);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return gR}}});var cv={cardinality:7,toEnum:function(e){return e===1?new T(pi.value):e===2?new T(Vi.value):e===3?new T(Qi.value):e===4?new T(Ki.value):e===5?new T(Yi.value):e===6?new T(Xi.value):e===7?new T(Al.value):M.value},fromEnum:function(e){if(e instanceof pi)return 1;if(e instanceof Vi)return 2;if(e instanceof Qi)return 3;if(e instanceof Ki)return 4;if(e instanceof Yi)return 5;if(e instanceof Xi)return 6;if(e instanceof Al)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 Dee},Enum1:function(){return Ree(0)}},Ree=hR("enumWeekday","Data.Date.Component",function(){return{succ:function(){var e=ua(cv),n=Wn(cv);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(cv),n=Wn(cv);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return q3}}});var rr={cardinality:12,toEnum:function(e){return e===1?new T(fu.value):e===2?new T(Bu.value):e===3?new T(_u.value):e===4?new T(Hu.value):e===5?new T(qu.value):e===6?new T(pu.value):e===7?new T(du.value):e===8?new T(Ju.value):e===9?new T(Wu.value):e===10?new T($u.value):e===11?new T(zu.value):e===12?new T(di.value):M.value},fromEnum:function(e){if(e instanceof fu)return 1;if(e instanceof Bu)return 2;if(e instanceof _u)return 3;if(e instanceof Hu)return 4;if(e instanceof qu)return 5;if(e instanceof pu)return 6;if(e instanceof du)return 7;if(e instanceof Ju)return 8;if(e instanceof Wu)return 9;if(e instanceof $u)return 10;if(e instanceof zu)return 11;if(e instanceof di)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 wR},Enum1:function(){return yee(0)}},yee=hR("enumMonth","Data.Date.Component",function(){return{succ:function(){var e=ua(rr),n=Wn(rr);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(rr),n=Wn(rr);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return P0}}});var pm={bottom:1,top:31,Ord0:function(){return RR}},mu={cardinality:31,toEnum:function(e){if(e>=1&&e<=31)return new T(e);if(qe)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 pm},Enum1:function(){return wee(0)}},wee=hR("enumDay","Data.Date.Component",function(){return{succ:function(){var e=ua(mu),n=Wn(mu);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(mu),n=Wn(mu);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return RR}}});var x0=NI()();var W3=pn(dn),dT=function(e){return e},bee=function(e){return e},dm=function(e){return e};var Eee=function(e){return e},N0=function(e){return e.toDuration};var $3={append:function(e){return function(n){return e+n}}};var bR={append:function(e){return function(n){return e+n}}};var z3=Hc;var V3=Hc;var ER=function(e){return e.fromDuration};var es={fromDuration:x0(dT)(function(e){return e*1e3}),toDuration:x0(dm)(function(e){return e/1e3})},sv={fromDuration:x0(bee)(function(e){return e*6e4}),toDuration:x0(dm)(function(e){return e/6e4})},j0={fromDuration:W3,toDuration:W3};var mT={fromDuration:x0(Eee)(function(e){return e*864e5}),toDuration:x0(dm)(function(e){return e/864e5})};var Y3=Wn(rr),hT=yt(),X3=ua(cv),Tee=ne(U3),See=ne(DR),Cee=ne(B3);var Fee=Re(H3),Gee=Re(pT),Mee=Re(J3),Aee=Ke(gR),Lee=Ke(P0),Pee=Ke(RR);var xee=ua(rr);var IR=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}(),Vu=function(e){return e.value0},mm=function(e){var n=P3(e.value0,Y3(e.value1),e.value2),a=n===0;return hT(X3(a?7:n))},Z3={show:function(e){return"(Date "+(Tee(e.value0)+(" "+(See(e.value1)+(" "+(Cee(e.value2)+")")))))}},Qu=function(e){return e.value1};var TR={eq:function(e){return function(n){return Fee(e.value0)(n.value0)&&Gee(e.value1)(n.value1)&&Mee(e.value2)(n.value2)}}},Nee=Re(TR),DT={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=Lee(e.value1)(n.value1);return t instanceof De?De.value:t instanceof de?de.value:Pee(e.value2)(n.value2)}},Eq0:function(){return TR}};var uc=function(e){return e.value2},vv=function(e){return function(n){return function(a){var t=function(o){return function(u){return function(i){return new IR(o,hT(xee(u)),i)}}};return L3(t,e,Y3(n),a)}}},SR=function(e){return function(n){return function(a){var t=new IR(e,n,a),o=Nee(vv(e)(n)(a))(t);return o?new T(t):M.value}}},gT=function(){return{bottom:new IR(tt(yR),tt(wR),tt(pm)),top:new IR(Jt(yR),Jt(wR),Jt(pm)),Ord0:function(){return DT}}}();var CR=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}},FR=ne(Ye);var ex={show:function(e){return"(Second "+(FR(e)+")")}},nx={show:function(e){return"(Minute "+(FR(e)+")")}},ax={show:function(e){return"(Millisecond "+(FR(e)+")")}},tx={show:function(e){return"(Hour "+(FR(e)+")")}},GR=aa,MR=aa,AR=aa,LR=aa,rx=nt,ox=nt,ux=nt,ix=nt,hm={bottom:0,top:59,Ord0:function(){return GR}},Dm={bottom:0,top:59,Ord0:function(){return MR}},gm={bottom:0,top:999,Ord0:function(){return AR}},Rm={bottom:0,top:23,Ord0:function(){return LR}},mi={cardinality:60,toEnum:function(e){if(e>=0&&e<=59)return new T(e);if(qe)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 hm},Enum1:function(){return jee(0)}},jee=CR("enumSecond","Data.Time.Component",function(){return{succ:function(){var e=ua(mi),n=Wn(mi);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(mi),n=Wn(mi);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return GR}}});var hi={cardinality:60,toEnum:function(e){if(e>=0&&e<=59)return new T(e);if(qe)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 Dm},Enum1:function(){return Oee(0)}},Oee=CR("enumMinute","Data.Time.Component",function(){return{succ:function(){var e=ua(hi),n=Wn(hi);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(hi),n=Wn(hi);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return MR}}});var hu={cardinality:1e3,toEnum:function(e){if(e>=0&&e<=999)return new T(e);if(qe)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 gm},Enum1:function(){return Uee(0)}},Uee=CR("enumMillisecond","Data.Time.Component",function(){return{succ:function(){var e=ua(hu),n=Wn(hu);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(hu),n=Wn(hu);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return AR}}});var Di={cardinality:24,toEnum:function(e){if(e>=0&&e<=23)return new T(e);if(qe)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 Rm},Enum1:function(){return kee(0)}},kee=CR("enumHour","Data.Time.Component",function(){return{succ:function(){var e=ua(Di),n=Wn(Di);return function(a){return e(function(t){return t+1|0}(n(a)))}}(),pred:function(){var e=ua(Di),n=Wn(Di);return function(a){return e(function(t){return t-1|0}(n(a)))}}(),Ord0:function(){return LR}}});var qee=ne(tx),Jee=ne(nx),Wee=ne(ex),$ee=ne(ax);var zee=Re(ix),Vee=Re(ox),Qee=Re(rx),Kee=Re(ux),Yee=Ke(LR),Xee=Ke(MR),Zee=Ke(GR),ene=Ke(AR);var ic=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}(),lx={show:function(e){return"(Time "+(qee(e.value0)+(" "+(Jee(e.value1)+(" "+(Wee(e.value2)+(" "+($ee(e.value3)+")")))))))}};var ns=function(e){return e.value2},as=function(e){return e.value1},Zi=function(e){return e.value3};var lc=function(e){return e.value0};var RT={eq:function(e){return function(n){return zee(e.value0)(n.value0)&&Vee(e.value1)(n.value1)&&Qee(e.value2)(n.value2)&&Kee(e.value3)(n.value3)}}},yT={compare:function(e){return function(n){var a=Yee(e.value0)(n.value0);if(a instanceof De)return De.value;if(a instanceof de)return de.value;var t=Xee(e.value1)(n.value1);if(t instanceof De)return De.value;if(t instanceof de)return de.value;var o=Zee(e.value2)(n.value2);return o instanceof De?De.value:o instanceof de?de.value:ene(e.value3)(n.value3)}},Eq0:function(){return RT}};var ym=function(){return{bottom:new ic(tt(Rm),tt(Dm),tt(hm),tt(gm)),top:new ic(Jt(Rm),Jt(Dm),Jt(hm),Jt(gm)),Ord0:function(){return yT}}}();var nne=Wn(Pr),ane=Wn(rr),tne=Wn(mu),rne=Wn(Di),one=Wn(hi),une=Wn(mi),ine=Wn(hu),lne=ne(Z3),cne=ne(lx),sne=Re(TR),vne=Re(RT),fne=Ke(DT),_ne=Ke(yT),pne=Z(nn),O0=Yn(vr),wT=U(ae),dne=Sl(nn),mne=ua(Pr),hne=ua(rr),Dne=ua(mu),gne=ua(Di),Rne=ua(hi),yne=ua(mi),wne=ua(hu),cc=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}(),bT=function(e){return{year:nne(Vu(e.value0)),month:ane(Qu(e.value0)),day:tne(uc(e.value0)),hour:rne(lc(e.value1)),minute:one(as(e.value1)),second:une(ns(e.value1)),millisecond:ine(Zi(e.value1))}},ET=function(e){return e.value1},cx={show:function(e){return"(DateTime "+(lne(e.value0)+(" "+(cne(e.value1)+")")))}};var bne={eq:function(e){return function(n){return sne(e.value0)(n.value0)&&vne(e.value1)(n.value1)}}},Ku={compare:function(e){return function(n){var a=fne(e.value0)(n.value0);return a instanceof De?De.value:a instanceof de?de.value:_ne(e.value1)(n.value1)}},Eq0:function(){return bne}},Yu=function(e){var n=N0(e);return function(a){return function(t){return n(G3(bT(a),bT(t)))}}},Of=function(e){return e.value0},U0=function(){return{bottom:new cc(tt(gT),tt(ym)),top:new cc(Jt(gT),Jt(ym)),Ord0:function(){return Ku}}}(),sc=function(e){var n=ER(e);return function(a){return function(t){return pne(M3(T.create)(M.value)(n(a))(bT(t)))(function(o){return O0(wT(cc.create)(dne(O0(O0(wT(SR)(mne(o.year)))(hne(o.month)))(Dne(o.day)))))(O0(O0(O0(wT(ic.create)(gne(o.hour)))(Rne(o.minute)))(yne(o.second)))(wne(o.millisecond)))})}}};var zo=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",S="Resume",L="Release",O="Finalizer",$="Finalized",z="Forked",X="Fiber",oe="Thunk";function te(Ue,ia,Ta,In){this.tag=Ue,this._1=ia,this._2=Ta,this._3=In}function ve(Ue){var ia=function(Ta,In,gn){return new te(Ue,Ta,In,gn)};return ia.tag=Ue,ia}function we(Ue){return new te(n,void 0)}function an(Ue){try{Ue()}catch(ia){setTimeout(function(){throw ia},0)}}function sn(Ue,ia,Ta){try{return ia(Ta())}catch(In){return Ue(In)}}function ce(Ue,ia,Ta){try{return ia(Ta)()}catch(In){return Ta(Ue(In))(),we}}var le=function(){var Ue=1024,ia=0,Ta=0,In=new Array(Ue),gn=!1;function We(){var na;for(gn=!0;ia!==0;)ia--,na=In[Ta],In[Ta]=void 0,Ta=(Ta+1)%Ue,na();gn=!1}return{isDraining:function(){return gn},enqueue:function(na){var fa,La;ia===Ue&&(La=gn,We(),gn=La),In[(Ta+ia)%Ue]=na,ia++,gn||We()}}}();function je(Ue){var ia={},Ta=0,In=0;return{register:function(gn){var We=Ta++;gn.onComplete({rethrow:!0,handler:function(na){return function(){In--,delete ia[We]}}})(),ia[We]=gn,In++},isEmpty:function(){return In===0},killAll:function(gn,We){return function(){if(In===0)return We();var na=0,fa={};function La(vn){fa[vn]=ia[vn].kill(gn,function(la){return function(){delete fa[vn],na--,Ue.isLeft(la)&&Ue.fromLeft(la)&&setTimeout(function(){throw Ue.fromLeft(la)},0),na===0&&We()}})()}for(var _t in ia)ia.hasOwnProperty(_t)&&(na++,La(_t));return ia={},Ta=0,In=0,function(vn){return new te(o,function(){for(var la in fa)fa.hasOwnProperty(la)&&fa[la]()})}}}}}var Ce=0,He=1,en=2,Cn=3,ra=4,Bn=5,qn=6;function Kn(Ue,ia,Ta){var In=0,gn=Ce,We=Ta,na=null,fa=null,La=null,_t=null,vn=null,la=0,Et=0,Da=null,ot=!0;function q(P){for(var N,W,V;;)switch(N=null,W=null,V=null,gn){case en:gn=He;try{We=La(We),_t===null?La=null:(La=_t._1,_t=_t._2)}catch(re){gn=Bn,na=Ue.left(re),We=null}break;case Cn:Ue.isLeft(We)?(gn=Bn,na=We,We=null):La===null?gn=Bn:(gn=en,We=Ue.fromRight(We));break;case He:switch(We.tag){case i:La&&(_t=new te(b,La,_t)),La=We._2,gn=He,We=We._1;break;case n:La===null?(gn=Bn,We=Ue.right(We._1)):(gn=en,We=We._1);break;case o:gn=Cn,We=sn(Ue.left,Ue.right,We._1);break;case u:gn=ra,We=ce(Ue.left,We._1,function(re){return function(){In===P&&(In++,le.enqueue(function(){In===P+1&&(gn=Cn,We=re,q(In))}))}});return;case a:gn=Bn,na=Ue.left(We._1),We=null;break;case t:La===null?vn=new te(b,We,vn,fa):vn=new te(b,We,new te(b,new te(S,La,_t),vn,fa),fa),La=null,_t=null,gn=He,We=We._1;break;case l:la++,La===null?vn=new te(b,We,vn,fa):vn=new te(b,We,new te(b,new te(S,La,_t),vn,fa),fa),La=null,_t=null,gn=He,We=We._1;break;case s:gn=Cn,N=Kn(Ue,ia,We._2),ia&&ia.register(N),We._1&&N.run(),We=Ue.right(N);break;case R:gn=He,We=ft(Ue,ia,We._1);break}break;case Bn:if(La=null,_t=null,vn===null)gn=qn,We=fa||na||We;else switch(N=vn._3,V=vn._1,vn=vn._2,V.tag){case t:fa&&fa!==N&&la===0?gn=Bn:na&&(gn=He,We=V._2(Ue.fromLeft(na)),na=null);break;case S:fa&&fa!==N&&la===0||na?gn=Bn:(La=V._1,_t=V._2,gn=en,We=Ue.fromRight(We));break;case l:la--,na===null&&(W=Ue.fromRight(We),vn=new te(b,new te(L,V._2,W),vn,N),(fa===N||la>0)&&(gn=He,We=V._3(W)));break;case L:vn=new te(b,new te($,We,na),vn,fa),gn=He,fa&&fa!==N&&la===0?We=V._1.killed(Ue.fromLeft(fa))(V._2):na?We=V._1.failed(Ue.fromLeft(na))(V._2):We=V._1.completed(Ue.fromRight(We))(V._2),na=null,la++;break;case O:la++,vn=new te(b,new te($,We,na),vn,fa),gn=He,We=V._1;break;case $:la--,gn=Bn,We=V._1,na=V._2;break}break;case qn:for(var ue in Da)Da.hasOwnProperty(ue)&&(ot=ot&&Da[ue].rethrow,an(Da[ue].handler(We)));Da=null,fa&&na?setTimeout(function(){throw Ue.fromLeft(na)},0):Ue.isLeft(We)&&ot&&setTimeout(function(){if(ot)throw Ue.fromLeft(We)},0);return;case Ce:gn=He;break;case ra:return}}function K(P){return function(){if(gn===qn)return ot=ot&&P.rethrow,P.handler(We)(),function(){};var N=Et++;return Da=Da||{},Da[N]=P,function(){Da!==null&&delete Da[N]}}}function j(P,N){return function(){if(gn===qn)return N(Ue.right(void 0))(),function(){};var W=K({rethrow:!1,handler:function(){return N(Ue.right(void 0))}})();switch(gn){case Ce:fa=Ue.left(P),gn=qn,We=fa,q(In);break;case ra:fa===null&&(fa=Ue.left(P)),la===0&&(gn===ra&&(vn=new te(b,new te(O,We(P)),vn,fa)),gn=Bn,We=null,na=null,q(++In));break;default:fa===null&&(fa=Ue.left(P)),la===0&&(gn=Bn,We=null,na=null)}return W}}function E(P){return function(){var N=K({rethrow:!1,handler:P})();return gn===Ce&&q(In),N}}return{kill:j,join:E,onComplete:K,isSuspended:function(){return gn===Ce},run:function(){gn===Ce&&(le.isDraining()?q(In):le.enqueue(function(){q(In)}))}}}function Jn(Ue,ia,Ta,In){var gn=0,We={},na=0,fa={},La=new Error("[ParAff] Early exit"),_t=null,vn=e;function la(K,j,E){var P=j,N=null,W=null,V=0,ue={},re,he;e:for(;;)switch(re=null,P.tag){case z:if(P._3===e&&(re=We[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(Ue.right(void 0))();else for(he=0,re=V;he()=>e.props.def;function Mx(e){class n extends ka.Component{constructor(t){super(t);t.init&&t.init(this)()}render(){return this.props.render(this)()}componentDidMount(){this.props.componentDidMount(this)()}componentWillUnmount(){this.props.componentWillUnmount(this)()}}return n.displayName=e?"Elmish_"+e:"ElmishRoot",n}var jR=typeof module=="undefined"?void 0:module.require,tVe=function(){try{return jR===void 0?void 0:jR("util")}catch{return}}();var rVe=function(){var e;if(typeof performance!="undefined")e=performance;else if(jR)try{e=jR("perf_hooks").performance}catch{}return function(){return(e||Date).now()}}();$a();var Ri=window.ReactDOM,{createPortal:Ax,findDOMNode:hVe,flushSync:DVe}=window.ReactDOM;var ZT=Mu(wN());function bN(e){return e.state&&e.state.s}function EN(e,n,a){return e.setState({s:n},a)}function IN(e,n){return e.state={s:n}}var TN=Ri.render,SN=Ri.hydrate,eS=ZT.default&&ZT.default.renderToString||(e=>""),wae=Ri.unmountComponentAtNode;function CN(e,n,a){return ka.createElement.apply(null,[e,bae(e,n)].concat(a))}function bae(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 FN=(e,n)=>n[e],GN=(e,n,a)=>a[e]=n;var Jf=function(n){return function(a){return n(a)()}};var z0=function(n){return function(a){return function(){return n(a)}}},dv=function(n){return function(a){return function(t){return function(){return n(a,t)}}}},V0=function(n){return function(a){return function(t){return function(o){return function(){return n(a,t,o)}}}}};function LN(e){return n=>e===n}var nS=function(e){return function(n){return function(a){var t=fe(a);if(e instanceof M&&t instanceof M)return ge;if(e instanceof T&&t instanceof M)return ge;if(e instanceof T&&t instanceof T){if(LN(e.value0)(t.value0))return ge;if(qe)return n(new T(t.value0))()}return n(t)()}}};var Oae=_e(Hn);var Y={asReactChildren:function(e){return[e]}},ze={asReactChildren:function(e){return[e]}},me={asReactChildren:pn(dn)};var aS=V0(EN),PN=function(){return V0(GN)},xN=dv(TN),NN=dv(SN),jN=z0(bN),tS=function(e){var n=bt(e);return function(a){return function(t){return Oae(function(){return FN(a,t)})(n)}}},ON=dv(IN),Nm=function(e){return e.asReactChildren},is=function(){return function(e){var n=Nm(e);return function(a){return function(t){return function(o){return CN(a,t,n(o))}}}}},Uae=is()(me),mv=function(){return function(e){return function(n){return Uae(e)(n)([])}}};var rS=U(Hn),kae=J(ct),UN=function(e){return{initialize:function(n){return ON(n)(e.initialState)},getState:function(n){return function(){var t=rS(fe)(jN(n))();return Je(e.initialState)(t)}},setState:aS}},kN=function(){var e=function(n){return function(a){return{initialize:function(t){return Wc(new T(a.initialState))(n)},getState:function(t){return rS(Je(a.initialState))(Zl(n))},setState:function(t){return function(o){return function(u){return function(){return Wc(new T(o))(n)(),aS(t)(o)(kae(ge))(),u()}}}}}}};return rS(e)($c(M.value))}();var BN=_e(Ve),HN=tn(Rt);var Hae=J(ct),qN=PN(),$R=_e(Hn),qae=tS(Ea),JN=U(Hn),Jae=tS(Ca(C3)),Wae=rn(Qe),$ae=Ua($t),zae=UI(ct)(cn),Vae=Wae(sa),WN=yn(Dr),Qae=Cg(Xl),Kae=tn(Js(SI(Tg))),$N=function(e){return e},Wf=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}(),Yae={map:function(e){return function(n){return new Wf(e(n.value0),n.value1)}}},yr=function(e){return{bimap:function(n){return function(a){return function(t){return new Wf(a(t.value0),BN(t.value1)(function(o){return function(u){return o({dispatch:function(i){return u.dispatch(n(i))},onStop:u.onStop})}}))}}}}},zN={apply:function(e){return function(n){return new Wf(e.value0(n.value0),HN(e.value1)(n.value1))}},Functor0:function(){return Yae}},$n={bind:function(e){return function(n){var a=n(e.value0);return new Wf(a.value0,HN(e.value1)(a.value1))}},Apply0:function(){return zN}},Rn={pure:function(e){return new Wf(e,[])},Apply0:function(){return zN}};var Xae=function(e){var n=Z(e);return function(a){var t=yn(a);return function(o){return function(u){return new Wf(o,BN(u)(function(i){return function(l){return n(i)(function(s){return t(l.dispatch(s))})}}))}}}};var jm=function(e){return new Wf(ge,[e])},za=function(e){return jm(hn(e))},Q0=function(e){var n=Z(e.Monad0().Bind1()),a=yn(e);return function(t){return jm(function(o){return n(t)(function(u){return a(bn(Hae(ge))(o.dispatch)(u))})})}},Ma=function(e){var n=Xae(e.Monad0().Bind1())(e);return function(a){return n(ge)([a])}},VN=function(e){return function(n){var a=qN("__unmounted"),t=qN("__subscriptions"),o=function(b){return function(S){return function(L){return function(){var $=$R(Fm(b))(function(z){return z.init})();return n({initialState:$.value0}).setState(b)(S)(L)()}}}},u=function(){var b=JN(Je(!1)),S=qae("__unmounted");return function(L){return b(S(L))}}(),i=function(){var b=JN(Je([])),S=Jae("__subscriptions");return function(L){return b(S(L))}}(),l=function(b){return function(){return $ae(zae)(i(b))(),t([])(b)()}},s=function(b){return function(){var L=$R(Fm(b))(function(O){return O.init})();return n({initialState:L.value0}).getState(b)()}},R=function(b){return function(S){return function(){var O=i(b)();return t(Jo(B0(S))(O))(b)()}}},d=function(b){return function(S){var L=function(O){return B0(Vae(Xt(0))(function(){return O({dispatch:function(){var $=y(S);return function(z){return WN($(z))}}(),onStop:R(S)})}))};return II(b)(L)}},y=function(b){return function(S){return Qae(u(b))(function(){var O=s(b)(),$=$R(Fm(b))(function(X){return X.update})(),z=$(O)(S);return o(b)(z.value0)(d(z.value1)(b))()})}},I=function(b){return function(){var L=s(b)(),O=$R(Fm(b))(function($){return $.view})();return O(L)(y(b))}};return function(b){return Gx(e,{def:b,init:n({initialState:b.init.value0}).initialize,render:I,componentDidMount:d(b.init.value1),componentWillUnmount:Kae(a(!0))(l)})}}},QN=function(e){return function(){var a=WN(kN)();return Fx(function(t){return VN(t)(a)(e)})}},hv=function(e){return function(n){return Cx(e,function(a){var t=VN(a)(UN);return function(o){return t(n(o))}})}};var KN=J(ct),YN=uu(),zR=function(e){return{handleMaybe:function(n){return function(a){return Jf(function(){var t=bn(KN(ge))(n);return function(o){return t(YN(a(o)))}}())}}}},Dv=function(e){return{handleMaybe:function(n){return function(a){return function(t){return bn(KN(ge))(n)(YN(a))()}}}}},vo={handle:function(e){return function(n){return function(a){return e(n(a))()}}}},VR={handleEffect:function(e){return Jf(e)}},gu={handleEffect:function(e){return Jf(hn(e))}},ga={handle:function(e){return function(n){return function(a){return e(n)()}}}},al=function(e){return e.handleMaybe},Br=function(e){return e.handleEffect},Zn=function(e){return e.handle};function QR(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 ls=function(){return function(){return function(e){return function(n){return QR(e,n)}}}};var KR=function(e){var n=ar(e);return function(){return function(){return function(a){return function(t){return yI(n(a))(t)}}}}};var oS=mv(),XN=is(),ZN=ls()();var Om=Be,ej=function(e){return function(n){return oS(Om(e))(n)}};var yi=function(e){var n=XN(e);return function(a){return function(t){return function(o){return n(Om(a))(ZN(o)({className:t}))}}}},Um=function(e){return function(n){return function(a){return oS(Om(e))(ZN(a)({className:n}))}}},nj=function(e){return function(n){return oS(Om(e))({className:n})}},wr=function(e){return function(n){var a=XN(n);return function(t){return function(o){return a(Om(e))({className:t})(o)}}}};var rt=Be;var YR=function(e){var n=yi(e);return function(){return function(){return n("video")}}},aj=function(e){return wr("video")(e)};var tj=function(e){return wr("ul")(e)};var $f=function(e){return wr("tr")(e)};var K0=function(e){return wr("thead")(e)};var Y0=function(e){return wr("th")(e)};var XR=function(){return function(){return Um("textarea")}};var rj=function(e){var n=yi(e);return function(){return function(){return n("td")}}},cs=function(e){return wr("td")(e)};var X0=function(e){return wr("tbody")(e)};var Z0=function(e){return wr("table")(e)};var Vo=function(e){return wr("strong")(e)},ZR=function(e){var n=yi(e);return function(){return function(){return n("span")}}},Ba=function(e){return wr("span")(e)},oj=function(){return function(){return Um("source")}};var uj=function(e){var n=yi(e);return function(){return function(){return n("select")}}};var ey=function(e){var n=yi(e);return function(){return function(){return n("p")}}},Qt=function(e){return wr("p")(e)};var ij=function(e){var n=yi(e);return function(){return function(){return n("option")}}};var lj=function(e){return wr("li")(e)};var ep=function(e){return wr("label")(e)};var fo=function(){return function(){return Um("input")}};var tl=function(){return function(){return Um("img")}};var Qa=function(e){return wr("i")(e)};var ss=nj("hr");var km=function(e){return wr("h6")(e)};var Xu=function(e){return wr("h4")(e)},cj=function(e){var n=yi(e);return function(){return function(){return n("h3")}}},Hr=function(e){return wr("h3")(e)},gv=function(e){var n=yi(e);return function(){return function(){return n("h2")}}},qt=function(e){return wr("h2")(e)};var Rv=function(e){return wr("h1")(e)},np=function(e){var n=yi(e);return function(){return function(){return n("form")}}};var or=function(e){var n=yi(e);return function(){return function(){return n("div")}}},Te=function(e){return wr("div")(e)};var zn=function(e){var n=yi(e);return function(){return function(){return n("button")}}},sj=function(e){return wr("button")(e)};var Mt=function(e){var n=yi(e);return function(){return function(){return n("a")}}};var vj=Mu(OT()),fj=vj.Fragment;var Xe=Be,Se=is()(me)(fj)({}),Vn=!1;var _j=bm(wm);var Zae=J(ct);var uS={map:function(e){return function(n){return _j(_j(e))(n)}}},pj=_e(uS),dj=function(e){var n=Z(e.Monad0().Bind1()),a=yn(e);return function(t){return jm(function(o){return n(t(o.dispatch))(function(u){return a(o.onStop(u))})})}},Zu=function(e){var n=dj(e);return function(a){return function(t){return n(pj(t)(a))}}};var mj=function(e){return function(n){return e(bn(Zae(ge))(n))}},ny=function(e){var n=dj(e);return function(a){return function(t){return n(mj(pj(t)(a)))}}};var Fn=function(){return{"genericTop'":Ne.value}}();var iS=function(e){return e["genericTop'"]},Gn=function(e){return{"genericTop'":iS(e)}};var Mn=function(){return{"genericBottom'":Ne.value}}();var Bm=function(e){return e["genericBottom'"]},An=function(e){return{"genericBottom'":Bm(e)}};var Ln=function(e){return{"genericBottom'":new ye(Bm(e))}},hj=function(e){var n=u0(e);return function(a){return n(Bm(a))}};var yv=U(ae),ay=wa();var lS=function(e){return e["genericToEnum'"]};var ty=function(e){return e["genericSucc'"]},cS=function(e){var n=u0(e),a=i0(e);return function(t){var o=yv(n),u=ty(t);return function(i){return o(u(a(i)))}}},sS=function(e){return e["genericPred'"]};var vS=function(e){return e["genericFromEnum'"]};var Pn=function(e){var n=sS(e),a=ty(e);return function(t){var o=iS(t);return function(u){var i=sS(u),l=ty(u);return function(s){var R=Bm(s);return{"genericPred'":function(d){if(d instanceof ye)return yv(ye.create)(n(d.value0));if(d instanceof ie){var y=i(d.value0);if(y instanceof M)return new T(new ye(o));if(y instanceof T)return new T(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 T(new ie(R));if(y instanceof T)return new T(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 yv(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 xn={"genericPred'":function(e){return M.value},"genericSucc'":function(e){return M.value}},Nn=function(e){var n=sS(e),a=ty(e);return{"genericPred'":function(t){return yv(kd)(n(t))},"genericSucc'":function(t){return yv(kd)(a(t))}}};var fS=function(e){return e["genericCardinality'"]};var jn=function(e){var n=fS(e),a=lS(e),t=vS(e);return function(o){var u=lS(o),i=vS(o);return{"genericCardinality'":ay(n)+ay(fS(o))|0,"genericToEnum'":function(l){var s=function(R){if(l>=0&&lt.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 708, column 5 - line 712, column 68): "+[t.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 700, column 32 - line 712, column 68): "+[a.constructor.name])};var mS=function(e){return function(n){return new Ao(1,1,e,n,rl.value,rl.value)}},wj=function(){var e=function(t){if(t instanceof rl)return 0;if(t instanceof Ao)return t.value0;throw new Error("Failed pattern match at Data.Map.Internal (line 757, column 12 - line 759, column 26): "+[t.constructor.name])},n=function(t,o,u,i,l,s,R){return s instanceof Ao&&s.value0>e(R)?ol(s.value2,s.value3,ol(t,o,u,s.value4),ol(i,l,s.value5,R)):ol(i,l,ol(t,o,u,s),R)},a=function(t,o,u,i,l,s,R){return s instanceof Ao&&e(l)<=s.value0?ol(s.value2,s.value3,ol(u,i,l,s.value4),ol(t,o,s.value5,R)):ol(u,i,l,ol(t,o,s,R))};return function(t,o,u,i){if(u instanceof rl)return i instanceof rl?mS(t)(o):i instanceof Ao&&i.value0>1?n(t,o,u,i.value2,i.value3,i.value4,i.value5):ol(t,o,u,i);if(u instanceof Ao){if(i instanceof Ao){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 rl&&u.value0>1?a(t,o,u.value2,u.value3,u.value4,u.value5,i):ol(t,o,u,i)}throw new Error("Failed pattern match at Data.Map.Internal (line 717, column 40 - line 738, column 34): "+[u.constructor.name])}}();var vs=function(e){var n=Ke(e);return function(a){var t=function(o){var u=!1,i;function l(s){if(s instanceof rl)return u=!0,M.value;if(s instanceof Ao){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 ke)return u=!0,new T(s.value3);throw new Error("Failed pattern match at Data.Map.Internal (line 283, column 7 - line 286, column 22): "+[R.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 280, column 8 - line 286, column 22): "+[s.constructor.name])}for(;!u;)i=l(o);return i};return t}};var bj=function(e){var n=Ke(e);return function(a){return function(t){var o=function(u){if(u instanceof rl)return mS(a)(t);if(u instanceof Ao){var i=n(a)(u.value2);if(i instanceof De)return wj(u.value2,u.value3,o(u.value4),u.value5);if(i instanceof de)return wj(u.value2,u.value3,u.value4,o(u.value5));if(i instanceof ke)return new Ao(u.value0,u.value1,a,t,u.value4,u.value5);throw new Error("Failed pattern match at Data.Map.Internal (line 471, column 7 - line 474, column 35): "+[i.constructor.name])}throw new Error("Failed pattern match at Data.Map.Internal (line 468, column 8 - line 474, column 35): "+[u.constructor.name])};return o}}};var fs=function(){return rl.value}(),ul=function(e){var n=bj(e);return function(a){return xt(a)(function(t){return function(o){return n(o.value0)(o.value1)(t)}})(fs)}};var fte=typeof Array.from=="function",Tj=typeof Symbol!="undefined"&&Symbol!=null&&typeof Symbol.iterator!="undefined"&&typeof String.prototype[Symbol.iterator]=="function",_te=typeof String.prototype.fromCodePoint=="function",pte=typeof String.prototype.codePointAt=="function",Sj=function(e){return pte?function(n){return n.codePointAt(0)}:e},Cj=function(e){return function(n){return function(a){return function(t){return function(o){return function(u){var i=u.length;if(o<0||o>=i)return a;if(Tj)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 Fj=function(e){return _te?String.fromCodePoint:e},Gj=function(e){return function(n){return Tj?function(a){for(var t="",o=a[Symbol.iterator](),u=0;u1;if(a){var t=qm(Kc(1)(e)),o=xj(t);return o?Pj(n)(t):n}return n},DS=Sj(Ite),oy=Mj(Ete)(DS),Ko=function(e){return uo(oy(e))};var jj=function(e){return function(n){return Lj(function(a){return Ko(Gf(a)(n))})(pR(e)(n))}},gS=function(){var e=fT(jf)(tt(Ks))(Jt(Ks));return function(n){return Uu(e(n))}}(),Tte=function(e){if(e<=65535)return gS(e);var n=Rte(e-65536|0)(1024)+55296|0,a=yte(e-65536|0)(1024)+56320|0;return gS(n)+gS(a)};var RS=Fj(Tte),Oj=function(e){return function(n){if(e<1)return"";var a=Vf(n);return a instanceof T?RS(a.value0.head)+Oj(e-1|0)(a.value0.tail):n}},il=Gj(Oj);var uy={eq:function(e){return function(n){return e===n}}},iy={compare:function(e){return function(n){return wte(e)(n)}},Eq0:function(){return uy}},tp=function(e){return function(n){return rc(Gl(il(e)(n)))(n)}};var Ste=function(e){return function(n){var a=e,t=!1,o;function u(i,l){var s=Vf(l);if(s instanceof T){var R=i===0;if(R)return t=!0,new T(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}},yS=function(e){return function(n){return e<0?M.value:e===0&&n===""?M.value:e===0?new T(DS(n)):Cj(Ste)(T.create)(M.value)(DS)(e)(n)}},Cte={bottom:0,top:1114111,Ord0:function(){return iy}},fc=function(){return{cardinality:1114111+1|0,fromEnum:function(e){return e},toEnum:function(e){if(e>=0&&e<=1114111)return new T(e);if(qe)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 Cte},Enum1:function(){return Fte(0)}}}(),Fte=Dte("enumCodePoint","Data.String.CodePoints",function(){return{succ:xf(ua(fc))(Wn(fc)),pred:Nf(ua(fc))(Wn(fc)),Ord0:function(){return iy}}});var Bte=wa();var Wj={show:Bte};var $j=pe;var Hte=uv(cn),qte=_e(Ve),Jte=gf(_S),Tn=function(e){return function(n){var a=Hte(qte(n)(function(t){return new Dn(e(t),t)}));return function(t){return oc(t)(a)}}},Wte=function(e){var n=cS(e),a=hj(e);return function(t){var o=n(t);return function(u){return function(i){return Jte(function(l){return new Dn(l,o(l))})(a(i))}}}},kn=function(e){var n=Wte(e);return function(a){var t=n(a);return function(o){var u=t(o);return function(i){return ap(u(i))}}}};var $te={info:"info",warning:"warn",error:"error"},xl=e=>n=>a=>t=>{let o=$te[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()},zj=(e,n)=>(n.__sentryFingerprint=e,n);var Vj=function(e){return Ji(zj)(e)};var _c="error";var cy={parseOrPanic:function(e){return function(n){var a=e.parse(n);if(a instanceof Pe)return a.value0;if(a instanceof Me)return xl(_c)("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])}}},ta=function(e){return e.parseOrPanic},zte=ta(cy),Na=function(e){var n=ta(e);return function(a){var t=U(a);return function(o){return n({parse:function(u){return t(T.create)(o.parse(u))},default:M.value,diagnosticName:o.diagnosticName})}}},Vte=Na(cy)(hr),_s=function(e){var n=Pf(e);return function(a){return Vte({parse:n,diagnosticName:a})}},Ze={parseOrPanic:function(e){return zte({default:e.default,diagnosticName:e.diagnosticName,parse:function(){var n=bn(new Me(""))(Pe.create);return function(a){return n(e.parse(a))}}()})}};var Qj=Nn(xn),Kj=An(Mn),Yj=Un(On),ps=function(){function e(){}return e.value=new e,e}(),ds=function(){function e(){}return e.value=new e,e}(),Qte={to:function(e){if(e instanceof ye)return ps.value;if(e instanceof ie)return ds.value;throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 16, column 1 - line 16, column 32): "+[e.constructor.name])},from:function(e){if(e instanceof ps)return new ye(Ne.value);if(e instanceof ds)return new ie(Ne.value);throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 16, column 1 - line 16, column 32): "+[e.constructor.name])}};var Kte=function(e){if(e instanceof ps)return"school";if(e instanceof ds)return"vine";throw new Error("Failed pattern match at Sem.Connections.Types.Actor (line 28, column 1 - line 28, column 29): "+[e.constructor.name])},sy=function(){return ta(Ze)({parse:Tn(Kte)(kn(Qte)(Pn(Qj)(Gn(Fn))(Qj)(Kj))(jn(Yj)(Yj))(Ln(Kj))),default:ps.value,diagnosticName:"Sem.Connections.Types.Actor"})}();var Xj=Nn(xn),Zj=Pn(Xj)(Gn(Fn)),e4=An(Mn),n4=Ln(e4),a4=Un(On),t4=jn(a4),Yte=ma($r),Nl=function(){function e(){}return e.value=new e,e}(),bv=function(){function e(){}return e.value=new e,e}(),ms=function(){function e(){}return e.value=new e,e}(),Xte={to:function(e){if(e instanceof ye)return Nl.value;if(e instanceof ie&&e.value0 instanceof ye)return bv.value;if(e instanceof ie&&e.value0 instanceof ie)return ms.value;throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 18, column 1 - line 18, column 33): "+[e.constructor.name])},from:function(e){if(e instanceof Nl)return new ye(Ne.value);if(e instanceof bv)return new ie(new ye(Ne.value));if(e instanceof ms)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 18, column 1 - line 18, column 33): "+[e.constructor.name])}};var Zte=function(e){if(e instanceof Nl)return"pending";if(e instanceof bv)return"connected";if(e instanceof ms)return"ignored";throw new Error("Failed pattern match at Sem.Connections.Types.Status (line 34, column 1 - line 34, column 30): "+[e.constructor.name])},bS=function(){var e=Tn(Zte)(kn(Xte)(Zj(Zj(Xj)(e4))(n4))(t4(t4(a4)))(n4)),n=function(a){return a==="cold"?new T(ms.value):M.value};return ta(Ze)({parse:function(a){return Yte(e(a))(n(a))},default:Nl.value,diagnosticName:"Sem.Connections.Types.Status"})}();var ere=iu(cn)(wt),r4=ne(Ye),nre=lu(cn)(wt),are=Ba(Y);var o4=function(e){return{initiator:sy(e.initiator),status:bS(e.status),introMessage:Je("")(fe(e.introMessage))}},u4=25,ES=function(e){return Ko(e)>=u4},i4=function(e){var n=Ko(e),a=n>0,t=ere(" ")([function(){return a?r4(n)+" characters":""}(),nre(["(",r4(u4),function(){return a?"":" character"}()," minimum)"])]),o=function(){var u=ES(e);return u?"text-success":""}();return are(o)(t)};var vy=function(){function e(){}return e.value=new e,e}(),l4=function(){function e(){}return e.value=new e,e}();var c4=function(){var e=ta(Ze)({parse:function(n){return n instanceof T&&n.value0==="paid"?new T(l4.value):n instanceof T&&n.value0==="free"?new T(vy.value):n instanceof T&&n.value0==="churned"?new T(vy.value):n instanceof M?new T(vy.value):M.value},default:vy.value,diagnosticName:"Sem.Types.PartnerStatus"});return function(n){return e(fe(n))}}();var s4=function(e){return{allowedToContact:e.allowedToContact,id:e.id,name:e.name,imageUrl:fe(e.imageUrl),partnerStatus:c4(e.partnerStatus)}};var tre=Z(nn),IS=Sa(),Jm=Wa(pe),v4=B({reflectSymbol:function(){return"id"}}),rre=rn(Qe)(nn),ore=Rr(kr),ure=U(ae);var ire=function(){function e(){}return e.value=new e,e}(),lre=function(){function e(){}return e.value=new e,e}(),cre=function(){function e(){}return e.value=new e,e}(),TS=function(){function e(){}return e.value=new e,e}(),sre=function(){function e(){}return e.value=new e,e}(),fy=function(){function e(){}return e.value=new e,e}(),Wm=function(){function e(){}return e.value=new e,e}(),SS=function(){function e(){}return e.value=new e,e}(),CS=function(){function e(){}return e.value=new e,e}();var f4={show:wa()};var vre=pe,fre=_s(IS(B({reflectSymbol:function(){return"avatarUrl"}})(Jm)(B({reflectSymbol:function(){return"bio"}})(Jm)(B({reflectSymbol:function(){return"connection"}})(Wa(IS(B({reflectSymbol:function(){return"initiator"}})(pe)(B({reflectSymbol:function(){return"introMessage"}})(Jm)(B({reflectSymbol:function(){return"status"}})(pe)(on))))))(B({reflectSymbol:function(){return"firstName"}})(pe)(v4(vre)(B({reflectSymbol:function(){return"lastName"}})(pe)(B({reflectSymbol:function(){return"school"}})(IS(B({reflectSymbol:function(){return"allowedToContact"}})(Ea)(v4($j)(B({reflectSymbol:function(){return"imageUrl"}})(Jm)(B({reflectSymbol:function(){return"name"}})(pe)(B({reflectSymbol:function(){return"partnerStatus"}})(Jm)(on)))))))(B({reflectSymbol:function(){return"title"}})(pe)(B({reflectSymbol:function(){return"type"}})(pe)(B({reflectSymbol:function(){return"unreadMessageCountFromSemUser"}})(un)(on))))))))))));var _4=function(e){if(e instanceof ire)return"sheet-view";if(e instanceof lre)return"school-details";if(e instanceof cre)return"network-gallery";if(e instanceof TS)return"livestream-details";if(e instanceof sre)return"card-view";throw new Error("Failed pattern match at Sem.Types.User (line 100, column 25 - line 105, column 26): "+[e.constructor.name])},p4=function(e){return tre(fre("SemUser")(e))(function(n){return rre(ore(n.type==="Sem::User"))(function(){return new T({school:s4(n.school),firstName:n.firstName,lastName:n.lastName,avatarUrl:fe(n.avatarUrl),title:n.title,bio:fe(n.bio),connection:ure(o4)(fe(n.connection)),unreadMessageCountFromSemUser:n.unreadMessageCountFromSemUser,id:n.id})})})};var hs=function(e){var n=null;return function(){return e===void 0||(n=e(),e=void 0),n}},Ds=function(e){return e()};var b4=function(){function e(){}return e.value=new e,e}(),E4=function(){function e(){}return e.value=new e,e}(),I4=function(){function e(){}return e.value=new e,e}();var Cre=function(e){if(e instanceof b4)return"disabled";if(e instanceof E4)return"free-consultation";if(e instanceof I4)return"more-information";throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types.InquiryMode (line 27, column 13 - line 30, column 40): "+[e.constructor.name])};var Fre=function(){return[b4.value,E4.value,I4.value]}(),T4=Na(Ze)(ae)({parse:Tn(Cre)(Fre),diagnosticName:"InquiryMode"});var Gre=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 S4(e,n,a,t,o,u,i){return Gre(e,n-1,a,t,o,u,i).getTime()}function C4(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 Mre=yt(),Are=ua(rr);var Lre=Wn(rr);var F4=function(e){return e},dy=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 cc(vv(n)(Mre(Are(a)))(t),new ic(o,u,i,l))}}}}}}};return C4(e)}();var G4=function(e){return S4(Vu(e.value0),Lre(Qu(e.value0)),uc(e.value0),lc(e.value1),as(e.value1),ns(e.value1),Zi(e.value1))};var M4=function(e){var n=tn(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(Xa(e))};var Pre=wa();var Qf=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}(),$m=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 A4=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),L4=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),LS=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 op={defer:function(e){var n=hs(e);return function(a,t,o,u,i){var l=Ds(n);return l(a,t,o,u,i)}}};var pc={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 dc={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 pc}};var mc={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 dc}},xre=Ua(mc);var ll={pure:function(e){return function(n,a,t,o,u){return u(n,e)}},Apply0:function(){return dc}};var Nre={Applicative0:function(){return ll},Bind1:function(){return mc}};var P4={throwError:function(e){return function(n,a,t,o,u){return o(n,e)}},Monad0:function(){return Nre}},jre=Lr(P4);var Kf={alt:function(e){return function(n){return function(a,t,o,u,i){return t(function(l){return e(new Qf(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 pc}},Ore=function(e){return function(n,a,t,o,u){var i=e(n);return u(i.value1,i.value0)}};var Ure=function(e){var n=e.Monad0(),a=U(n.Bind1().Apply0().Functor0()),t=J(n.Applicative0()),o=To(e);return function(u){return function(i){var l=function(s){var R=!1,d;function y(I){var b=I(ge);if(b instanceof A4){s=b.value0;return}if(b instanceof L4)return R=!0,a(zt.create)(b.value0);if(b instanceof LS)return R=!0,t(new Ht(new Dn(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,A4.create,L4.create,function(R,d){return new LS(R,new Me(d))},function(R,d){return new LS(R,new Pe(d))})})}}};var x4=Ore(function(e){return new Dn(e.value1,e)}),PS=function(e){return e.value1},xS=function(e){return e.value0};var kre={index:0,line:1,column:1},N4=function(e){var n=U(e.Monad0().Bind1().Apply0().Functor0()),a=Ure(e);return function(t){return function(o){var u=new Qf(t,kre,!1);return n(So)(a(u)(o))}}},Bre=N4(Hd),j4=function(e){var n=Bre(e);return function(a){return Pre(n(a))}};var Hre=function(e){return function(n){return jre(new $m(e,n))}},up=function(e){return xre(Hre(e))(x4)};var O4={empty:up("No alternative"),Alt0:function(){return Kf}},Yf={Applicative0:function(){return ll},Plus1:function(){return O4}};var Yre=ma(Kf);var Xre=J(ll);var Zre=U(pc);var hc=function(e){return function(n,a,t,o,u){return e(n,a,t,function(i,l){return o(new Qf(i.value0,i.value1,n.value2),l)},u)}};var my=function(e){return function(n){return Yre(n)(Xre(e))}},Xf=function(e){return my(M.value)(Zre(T.create)(e))};var k4=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 zm=function(e){return function(n){return function(a){return a.replace(e,n)}}};var jS={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 hy={global:!1,ignoreCase:!0,multiline:!1,dotAll:!1,sticky:!1,unicode:!1},ip={global:!0,ignoreCase:!1,multiline:!1,dotAll:!1,sticky:!1,unicode:!1};var eoe=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":""}()))))},gs=function(e){return function(n){return k4(Me.create)(Pe.create)(e)(eoe(n))}};var J4=Wn(fc),aoe=Io(tr);var toe=ne(kt);var W4=function(e){return function(n){return function(a){var t=J4(n);if(t===10)return{index:e.index+1|0,line:e.line+1|0,column:1};if(t===13){var o=yS(0)(a);return o instanceof T&&J4(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)-aoe(e.column-1|0)(8)|0}:{index:e.index+1|0,line:e.line,column:e.column+1|0}}}},roe=function(e){return function(n){return function(a){var t=e,o=n,u=!1,i;function l(s,R,d){var y=Vf(R);if(y instanceof M)return u=!0,s;if(y instanceof T){var I=function(){if(wi(y.value0.tail))return W4(s)(y.value0.head)(d);if(qe)return W4(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 US=kg(function(e){return function(n){return function(a){return function(t){return function(o){var u=wi(e.value0);return u?o(new Qf(e.value0,e.value1,!0),ge):t(e,new $m("Expected EOF",e.value1))}}}}}),$4=function(e){return kg(function(n){return function(a){return function(t){return function(o){return function(u){var i=e(n.value0);if(i instanceof Me)return o(n,new $m(i.value0,n.value1));if(i instanceof Pe)return u(new Qf(i.value0.remainder,roe(n.value1)(i.value0.consumed)(i.value0.remainder),!wi(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 Dc=function(e){return $4(function(n){var a=_i(e)(n);return a instanceof T?new Pe({value:e,consumed:e,remainder:a.value0}):new Me("Expected "+toe(e))})};var z4=ne(Ye),uoe=fr(xu),ioe=a0(dc);var loe=function(e){return"(line "+(z4(e.line)+(", col "+(z4(e.column)+")")))},coe=function(e){return xS(e)+(" "+loe(PS(e)))},kS=function(e){return function(n){return uoe(coe)(j4(n)(ioe(e)(US)))}};var Dy=ua(jf);var Lo=ne(Ye);var yoe=Ar(Co),woe=yoe(wt);var boe=bI(aa)(Kl);var BS=Wn(Pr),Eoe=ne(DR),Ioe=Wn(rr),X4=Wn(mu),Toe=wa(),Soe=Wn(cv),Z4=ne(k3),HS=Wn(Di),Coe=Io(tr),e8=Wn(hi),n8=Wn(mi),qS=Wn(hu),a8=io(tr);var lp=function(){function e(){}return e.value=new e,e}(),t8=function(){function e(){}return e.value=new e,e}(),Foe=function(){function e(){}return e.value=new e,e}(),jl=function(){function e(){}return e.value=new e,e}(),JS=function(){function e(){}return e.value=new e,e}(),r8=function(){function e(){}return e.value=new e,e}(),o8=function(){function e(){}return e.value=new e,e}(),Ol=function(){function e(){}return e.value=new e,e}(),Goe=function(){function e(){}return e.value=new e,e}(),Moe=function(){function e(){}return e.value=new e,e}(),Ul=function(){function e(){}return e.value=new e,e}(),Aoe=function(){function e(){}return e.value=new e,e}(),WS=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}(),Loe=function(){function e(){}return e.value=new e,e}(),bi=function(){function e(){}return e.value=new e,e}(),Poe=function(){function e(){}return e.value=new e,e}(),$S=function(){function e(){}return e.value=new e,e}(),xoe=function(){function e(){}return e.value=new e,e}(),Noe=function(){function e(){}return e.value=new e,e}(),joe=function(){function e(){}return e.value=new e,e}(),ht=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var Ooe=function(e){if(e instanceof fu)return"Jan";if(e instanceof Bu)return"Feb";if(e instanceof _u)return"Mar";if(e instanceof Hu)return"Apr";if(e instanceof qu)return"May";if(e instanceof pu)return"Jun";if(e instanceof du)return"Jul";if(e instanceof Ju)return"Aug";if(e instanceof Wu)return"Sep";if(e instanceof $u)return"Oct";if(e instanceof zu)return"Nov";if(e instanceof di)return"Dec";throw new Error("Failed pattern match at Data.Formatter.DateTime (line 489, column 19 - line 501, column 22): "+[e.constructor.name])};var Iv=function(e){if(e<0)return"-"+Iv(-e|0);if(e<10)return"0"+Lo(e);if(qe)return Lo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 194, column 1 - line 194, column 32): "+[e.constructor.name])},u8=function(e){if(e<0)return"-"+u8(-e|0);if(e<10)return"000"+Lo(e);if(e<100)return"00"+Lo(e);if(e<1e3)return"0"+Lo(e);if(qe)return Lo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 207, column 1 - line 207, column 35): "+[e.constructor.name])},i8=function(e){if(e<0)return"-"+i8(-e|0);if(e<10)return"00"+Lo(e);if(e<100)return"0"+Lo(e);if(qe)return Lo(e);throw new Error("Failed pattern match at Data.Formatter.DateTime (line 200, column 1 - line 200, column 32): "+[e.constructor.name])};var Uoe=function(e){var n=Lo(boe(e)),a=Ko(n);return a===1?"0"+n:a===2?n:tp(a-2|0)(n)};var koe=function(e){var n=e===0;return n?12:e},Boe=function(e){return function(n){if(n instanceof lp)return u8(BS(Vu(e.value0)));if(n instanceof t8)return Uoe(BS(Vu(e.value0)));if(n instanceof Foe)return Lo(BS(Vu(e.value0)));if(n instanceof jl)return Eoe(Qu(e.value0));if(n instanceof JS)return Ooe(Qu(e.value0));if(n instanceof r8)return Iv(Ioe(Qu(e.value0)));if(n instanceof o8)return Iv(X4(uc(e.value0)));if(n instanceof Ol)return Lo(X4(uc(e.value0)));if(n instanceof Goe)return Lo(co(function(t){return t/1e3}(Toe(F4(G4(e))))));if(n instanceof Moe)return Lo(Soe(mm(e.value0)));if(n instanceof Ul)return Z4(mm(e.value0));if(n instanceof Aoe)return il(3)(Z4(mm(e.value0)));if(n instanceof WS)return Iv(HS(lc(e.value1)));if(n instanceof kl)return Iv(koe(Coe(HS(lc(e.value1)))(12)));if(n instanceof Bl){var a=HS(lc(e.value1))>=12;return a?"PM":"AM"}if(n instanceof Loe)return Lo(e8(as(e.value1)));if(n instanceof bi)return Iv(e8(as(e.value1)));if(n instanceof Poe)return Lo(n8(ns(e.value1)));if(n instanceof $S)return Iv(n8(ns(e.value1)));if(n instanceof xoe)return i8(qS(Zi(e.value1)));if(n instanceof Noe)return Lo(function(t){return a8(t)(100)}(qS(Zi(e.value1))));if(n instanceof joe)return Iv(function(t){return a8(t)(10)}(qS(Zi(e.value1))));if(n instanceof ht)return n.value0;throw new Error("Failed pattern match at Data.Formatter.DateTime (line 169, column 38 - line 192, column 21): "+[n.constructor.name])}},Po=function(e){return function(n){return woe(Boe(n))(e)}};function gy(e){return Math.round(e).toString()}var cp=Z(mc);var Hoe=J(ll),qoe=E0(Yf)(op);var Joe=QI(Yf)(op),Ry=M4(wt),Woe=R0(ll)(Kd),$oe=U(ae);var l8=qc(aa),zoe=io(tr),Voe=ne(Ye),Qoe=_e(hr),Koe=ne(cf),Yoe=pn(dn);var Xoe=cp(Xf(hc(Dc("+"))))(function(e){return cp(qoe(Dc("0")))(function(n){return cp(Xf(hc(Dc(",0"))))(function(a){return cp(Xf(hc(Dc("."))))(function(t){return cp(Woe(t)(function(o){return hc(Joe(Dc("0")))}))(function(o){return cp(Xf(hc(Dc("a"))))(function(u){return Hoe({sign:Ct(e),before:uo(n),comma:Ct(a),after:Je(0)($oe(uo)(o)),abbreviations:Ct(u)})})})})})})}),Zoe=kS(Xoe);var c8=function(e){return function(n){var a=zg(n),t=function(){if(a>0)return l8(co(XI(a)/HP))(0);if(qe)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=zoe(t)(3),u=function(){var $=o<1;return $?n:n/Vg(1e3)(Ft(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(qe)return"10e+"+Voe(o*3|0);throw new Error("Failed pattern match at Data.Formatter.Number (line 107, column 7 - line 117, column 53): "+[])}();return c8({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=Vg(10)(Ft(l8(0)(e.after))),R=Ef(a*s)/s,d=I0(R),y=R-d,I=Ef(y*s),b=function(){var $=gy(I),z=Ko($),X=Ry("0")(e.after-z|0);return X+$}(),S=function(){var $=e.after<1;return $?"":"."+(function(){var z=I===0;return z?Ry("0")(e.after):""}()+function(){var z=I>0;return z?b:""}())}(),L=function($){return function(z){return function(X){var oe=$,te=z,ve=!1,we;function an(sn,ce,le){var je=Yd(le);if(je instanceof M)return ve=!0,F0(sn);if(je instanceof T&&ce<3){oe=Jo(je.value0.head)(sn),te=ce+1|0,X=je.value0.tail;return}oe=Jo(",")(sn),te=0,X=le}for(;!ve;)we=an(oe,te,X);return we}}},O=function(){return e.comma?L([])(0)(Ld(om(Ry("0")(l)+gy(d)))):Ry("0")(l)+gy(d)}();return function(){var $=n<0;if($)return"-";var z=n>0&&e.sign;return z?"+":""}()+(O+S)}},eue=function(e){return function(n){return Qoe(Zoe(e))(Va(c8)(n))}},Zf=function(e){return function(n){return Bt(hn(Koe(n)))(Yoe)(eue(e)(n))}};var aue=Be;var s8=function(e){return Tf(e)};var cl=function(e){var n=s8(e);return n?M.value:new T(aue(e))};var Ka=function(e){return function(n){var a=s8(e);return a?n:e}};var Vr=function(){return Be};var Vm=ne(Ye),tue=Wn(Pr),rue=Wn(rr),oue=Vr(),uue=uu(),iue=Yu(sv),zS=io(tr),lue=$o(cn);var cue=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 Vm(n.minutes)+(" minutes"+e.suffix);if(n.hours<=1)return"an hour"+e.suffix;if(n.hours<24)return Vm(n.hours)+(" hours"+e.suffix);if(n.days<=1)return"a day"+e.suffix;if(n.days<30)return Vm(n.days)+(" days"+e.suffix);if(n.months<=1)return"a month"+e.suffix;if(n.months<12)return Vm(n.months)+(" months"+e.suffix);if(n.years<=1)return"a year"+e.suffix;if(qe)return Vm(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])}},yy=function(e){return cue({suffix:" "+e,justNow:"just now"})},v8=function(){return function(e){var n=function(R){return(tue(Vu(Of(R)))*12|0)+rue(Qu(Of(R)))|0},a=oue(e),t=Ka(a.format)(yy("ago")),o=Qg(uue(iue(a.to)(a.from))),u=zS(o+30|0)(60),i=zS(u+12|0)(24),l=n(a.to)-n(a.from)|0,s=zS(l+6|0)(12);return t({minutes:o,hours:u,days:i,months:l,years:s})}};var sue=function(e){return function(n){return function(a){var t=e===1;return t?n:a}}},sl=function(e){return function(n){return function(a){return Zf("0,0")(Ft(e))+(" "+sue(e)(n)(a))}}};var f8=Zf("0,0");var _8=function(){return Po(lue([Ul.value,new ht(", "),jl.value,new ht(" "),Ol.value,new ht(" at "),kl.value,new ht(":"),bi.value,new ht(" "),Bl.value]))}();var VS=()=>document.visibilityState=="visible",p8=(e,n)=>document.elementFromPoint(e,n);var d8=function(){return function(){return ej("br")}};function m8(e){return function(n){return function(){return n.getElementById(e)}}}var vue=U(Hn),wy=function(e){var n=vue(fe),a=m8(e);return function(t){return n(a(t))}};var by=function(e){return function(n){return function(){return n[e]}}},fue=by("children"),_ue=by("firstElementChild"),pue=by("lastElementChild"),due=by("childElementCount");var xo=function(){return window};function h8(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 Sn=function(e){return function(n){return h8(M.value,T.create,e,n)}};var D8=Be;var Ey=Be;var g8=Be;function R8(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 QS=Be;var y8=function(e){return R8(M.value,T.create,e)};function KS(e){return function(){return e.seeking}}function Qm(e){return function(){return e.currentTime}}function YS(e){return function(){return e.volume}}function XS(e){return function(n){return function(){n.volume=e}}}function ZS(e){return function(){return e.muted}}function e_(e){return function(n){return function(){n.muted=e}}}var w8=Sn("HTMLMediaElement");var b8=Sn("HTMLMediaElement");function eC(e){return function(){return e.hash}}function nC(e){return function(n){return function(){n.hash=e}}}function aC(e){return function(n){return function(){n.href=e}}}function tC(e){return function(){return e.platform}}function Tv(e){return function(){return e.document}}function rC(e){return function(){return e.navigator}}function sp(e){return function(){return e.location}}var E8=Be;var Tue=U(Ve);var Sue=d8()(),Cue=R0(ct)(Kd),I8=Z($t),T8=_e(Hn),Fue=Z(nn);var S8=Xe("\xA0");var da=Va(bn(Vn));var Gue=function(e){return function(n){if(e)return Vn;if(qe)return n(ge);throw new Error("Failed pattern match at Utils.HTML (line 107, column 1 - line 107, column 65): "+[e.constructor.name,n.constructor.name])}},C8=function(e){return function(n){return Gue(e)(hn(n))}};var F8=function(e){return function(n){if(e)return n(ge);if(qe)return Vn;throw new Error("Failed pattern match at Utils.HTML (line 94, column 1 - line 94, column 61): "+[e.constructor.name,n.constructor.name])}},Ia=function(e){return function(n){return F8(e)(hn(n))}};var Km=function(e){return Se(zI(Sue({}))(Tue(Xe)(Qo(` `)(e))))},Iy=function(e){return Cue(b8(e.target))(Qm)};var G8=function(e){return function(){return p8(e.x,e.y)}},M8=function(e){return I8(T8(I8(xo)(Tv))(Ey))(wy(e))},Ty=function(e){return T8(M8(e))(function(n){return Fue(n)(y8)})};var fp=un;var A8=({just:e,nothing:n})=>a=>{try{let t=new Date(a);return isNaN(t.getTime())?n:e(t)}catch{return n}},oC=e=>({year:e.getFullYear(),month:e.getMonth(),day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}),L8=()=>new Date,P8=(()=>{let e=new Date;return typeof window!="undefined"?()=>e:()=>{let n=new Date;return n-e>1e3&&(e=n),e}})();var n_=(()=>{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 uC(){return Date.now()}var Pue=U(Hn);var ei=Pue(dy)(uC);var x8={liftAff:pn(dn),MonadEffect0:function(){return Le}};var V7n=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,S=y.reads,L,O,$,z,X;for(y.draining=!0;;){if(L=null,O=null,$=null,z=y.value,X=S.size,y.error!==null){for(z=d.left(y.error);L=l(I);)o(L.cb(z));for(;O=l(S);)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);X--&&(O=l(S));)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 que=Z($t);var j8=J(ct),Sv=Z(nn),Jue=ua(Pr),Wue=ua(rr),$ue=ua(mu),zue=ua(Di),Vue=ua(hi),Que=ua(mi),Kue=ua(hu),Yue=J(oa),O8=Ua($t),Xue=_e(ae);var Zue=function(){return ts($c(M.value))}();var U8=function(e){return Sv(Jue(e.year))(function(n){return Sv(Wue(e.month+1|0))(function(a){return Sv($ue(e.day))(function(t){return Sv(zue(e.hour))(function(o){return Sv(Vue(e.minute))(function(u){return Sv(Que(e.second))(function(i){return Sv(Kue(e.millisecond))(function(l){return Yue(new cc(vv(n)(a)(t),new ic(o,u,i,l)))})})})})})})})},k8=function(e){var n=VP("Failed to obtain current time. This should never happen.");return bn(n)(j8)(U8(oC(e)))},a_=O8(k8)(L8),lC=function(e){return ts(que(Zl(Zue))(bn(O8(k8)(P8))(j8)))},Ru=function(e){return Sv(Xue(A8({just:T.create,nothing:M.value})(e))(oC))(U8)};var cC=J(oa),aie=U(ae),B8=Z(nn);var H8=Nn(xn),q8=Pn(H8)(Gn(Fn)),J8=An(Mn),W8=Ln(J8),$8=Un(On),z8=jn($8);var sC=function(){function e(){}return e.value=new e,e}(),vC=function(){function e(){}return e.value=new e,e}(),fC=function(){function e(){}return e.value=new e,e}();var tie={to:function(e){if(e instanceof ye)return sC.value;if(e instanceof ie&&e.value0 instanceof ye)return vC.value;if(e instanceof ie&&e.value0 instanceof ie)return fC.value;throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 174, column 1 - line 174, column 41): "+[e.constructor.name])},from:function(e){if(e instanceof sC)return new ye(Ne.value);if(e instanceof vC)return new ie(new ye(Ne.value));if(e instanceof fC)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 174, column 1 - line 174, column 41): "+[e.constructor.name])}};var rie=function(e){if(e instanceof sC)return"stuffed";if(e instanceof vC)return"satisfied";if(e instanceof fC)return"hungry";throw new Error("Failed pattern match at ServiceProviders.Retail.Advising.Types (line 233, column 27 - line 236, column 35): "+[e.constructor.name])};var oie=Na(Ze)(ae)({parse:Tn(rie)(kn(tie)(q8(q8(H8)(J8))(W8))(z8(z8($8)))(W8)),diagnosticName:"ClientAppetite"}),V8=function(e){return B8(bn(cC(M.value))(function(){var n=aie(cC);return function(a){return n(oie(a))}}())(fe(e.clientAppetite)))(function(n){return B8(T4(e.inquiryMode))(function(a){return cC({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 Q8=Z(nn),_p=Sa(),_C=Wa(pe),K8=B({reflectSymbol:function(){return"description"}})(pe),Cy=B({reflectSymbol:function(){return"id"}})(un),pC=B({reflectSymbol:function(){return"name"}})(pe),Y8=_p(Cy(pC(B({reflectSymbol:function(){return"slug"}})(pe)(on)))),X8=Ca(Y8),uie=_s(_p(B({reflectSymbol:function(){return"advisingConfig"}})(Wa(_p(B({reflectSymbol:function(){return"canSubmitConsultInquiry"}})(Wa(Ea))(B({reflectSymbol:function(){return"clientAppetite"}})(_C)(B({reflectSymbol:function(){return"freeConsultationDurationMinutes"}})(Wa(un))(B({reflectSymbol:function(){return"inquiryMode"}})(pe)(B({reflectSymbol:function(){return"packages"}})(Ca(_p(B({reflectSymbol:function(){return"activeForSale"}})(Ea)(K8(Cy(pC(B({reflectSymbol:function(){return"numMinutes"}})(un)(B({reflectSymbol:function(){return"packageCategories"}})(X8)(B({reflectSymbol:function(){return"refundPeriodLengthDays"}})(un)(B({reflectSymbol:function(){return"totalPriceCents"}})(fp)(on)))))))))))(B({reflectSymbol:function(){return"pricePerHourCents"}})(fp)(B({reflectSymbol:function(){return"singleSessionDurationMinutes"}})(un)(B({reflectSymbol:function(){return"singleSessionRefundPeriodLengthDays"}})(un)(B({reflectSymbol:function(){return"themes"}})(Ca(_p(B({reflectSymbol:function(){return"active"}})(Ea)(B({reflectSymbol:function(){return"category"}})(Y8)(K8(B({reflectSymbol:function(){return"durationMinutes"}})(un)(Cy(B({reflectSymbol:function(){return"priceCents"}})(fp)(B({reflectSymbol:function(){return"title"}})(pe)(on))))))))))(on))))))))))))(B({reflectSymbol:function(){return"entity"}})(_p(B({reflectSymbol:function(){return"bio"}})(pe)(Cy(B({reflectSymbol:function(){return"imageUrl"}})(_C)(pC(B({reflectSymbol:function(){return"organizationId"}})(un)(B({reflectSymbol:function(){return"organizationName"}})(pe)(B({reflectSymbol:function(){return"shortEducation"}})(_C)(B({reflectSymbol:function(){return"tags"}})(X8)(on))))))))))(on)))),dC=J(oa),mC=U(ae),t_=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Rs=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),iie=function(e){return Q8(uie("ServiceProviderPresenter")(e))(function(n){return Q8(bn(dC(M.value))(function(){var a=mC(dC);return function(t){return a(V8(t))}}())(fe(n.advisingConfig)))(function(a){return dC({entity:n.entity,advisingConfig:a})})})},Z8=Na(Ze)(ae)({parse:function(e){return e.type==="Sem::User"?mC(t_.create)(p4(e.presenter)):e.type==="ServiceProviders::Individual"?mC(Rs.create)(iie(e.presenter)):M.value},diagnosticName:"Livestream Guest Presenter"});var e7=Nn(xn),n7=Pn(e7)(Gn(Fn)),a7=An(Mn),t7=Ln(a7),r7=Un(On),o7=jn(r7),ys=function(){function e(){}return e.value=new e,e}(),gc=function(){function e(){}return e.value=new e,e}(),ws=function(){function e(){}return e.value=new e,e}(),lie={to:function(e){if(e instanceof ye)return ys.value;if(e instanceof ie&&e.value0 instanceof ye)return gc.value;if(e instanceof ie&&e.value0 instanceof ie)return ws.value;throw new Error("Failed pattern match at Livestream.Types.Poll (line 41, column 1 - line 41, column 37): "+[e.constructor.name])},from:function(e){if(e instanceof ys)return new ye(Ne.value);if(e instanceof gc)return new ie(new ye(Ne.value));if(e instanceof ws)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at Livestream.Types.Poll (line 41, column 1 - line 41, column 37): "+[e.constructor.name])}},u7={eq:function(e){return function(n){return e instanceof ys&&n instanceof ys||e instanceof gc&&n instanceof gc||e instanceof ws&&n instanceof ws}}},Fy=function(e){if(e instanceof ys)return"ready";if(e instanceof gc)return"live";if(e instanceof ws)return"closed";throw new Error("Failed pattern match at Livestream.Types.Poll (line 64, column 23 - line 67, column 21): "+[e.constructor.name])};var Ym=function(){return ta(Ze)({parse:Tn(Fy)(kn(lie)(n7(n7(e7)(a7))(t7))(o7(o7(r7)))(t7)),default:ys.value,diagnosticName:"livestream poll status"})}(),hC=function(e){return{id:e.id,question:e.question,multiSelect:e.multiSelect,options:e.options,autoDisplayMinutesFromStart:fe(e.autoDisplayMinutesFromStart)}};var i7=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 cie=Ke(aa),sie=ku(),l7=_e(ae),c7=Nn(xn),s7=Pn(c7)(Gn(Fn)),v7=An(Mn),f7=Ln(v7),_7=Un(On),p7=jn(_7),d7=ta(Ze),m7=df(),h7=Ua(nn),vie=_e(Ve),fie=U(ae),_ie=Z(nn),yu=function(){function e(){}return e.value=new e,e}(),qr=function(){function e(){}return e.value=new e,e}(),br=function(){function e(){}return e.value=new e,e}();var ni=Ye,pie=ne(ni);var die={to:function(e){if(e instanceof ye)return yu.value;if(e instanceof ie&&e.value0 instanceof ye)return qr.value;if(e instanceof ie&&e.value0 instanceof ie)return br.value;throw new Error("Failed pattern match at Livestream.Types.Conference (line 175, column 1 - line 175, column 39): "+[e.constructor.name])},from:function(e){if(e instanceof yu)return new ye(Ne.value);if(e instanceof qr)return new ie(new ye(Ne.value));if(e instanceof br)return new ie(new ie(Ne.value));throw new Error("Failed pattern match at Livestream.Types.Conference (line 175, column 1 - line 175, column 39): "+[e.constructor.name])}},Cv={eq:function(e){return function(n){return e instanceof yu&&n instanceof yu||e instanceof qr&&n instanceof qr||e instanceof br&&n instanceof br}}},Xm={eq:function(e){return function(n){return e===n}}},D7={compare:function(e){return function(n){return cie(e)(n)}},Eq0:function(){return Xm}};var Fv=function(e){return sie({livestream_conference_id:pie(e.id),livestream_conference_presenter_name:Je("")(l7(e.presenter)(function(n){return n.fullName})),livestream_conference_uid:e.uid,livestream_conference_title:e.title,livestream_conference_partner_type:Je("")(e.partnerType)})},g7=function(){var e=function(n){if(n instanceof yu)return"waiting_room";if(n instanceof qr)return"on_air";if(n instanceof br)return"complete";throw new Error("Failed pattern match at Livestream.Types.Conference (line 188, column 17 - line 191, column 35): "+[n.constructor.name])};return Tn(e)(kn(die)(s7(s7(c7)(v7))(f7))(p7(p7(_7)))(f7))}(),R7=function(){return d7({parse:g7,default:yu.value,diagnosticName:"livestream status"})}(),mie=d7({parse:Ru,default:tt(U0),diagnosticName:"livestream scheduled start time"}),Zm=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:l7(fe(e.school))(function(n){return{cityState:n.cityState,name:n.name,id:m7(n.id),slug:m7(n.slug)}}),scheduledStartTime:mie(e.scheduledStartTime),onAirTime:h7(Ru)(fe(e.onAirTime)),streamStatus:R7(e.streamStatus),watchUrl:fe(e.watchUrl),streamingStartTime:h7(Ru)(fe(e.streamingStartTime)),polls:vie(e.polls)(function(n){return{poll:hC(n.poll),status:Ym(n.status)}}),presenter:fie(i7)(fe(e.presenter)),partnerType:fe(e.partnerType),guestPresenter:_ie(fe(e.guestPresenter))(Z8),zoomJoinUrl:fe(e.zoomJoinUrl),zoomStartUrl:fe(e.zoomStartUrl)}};var y7=Nn(xn),w7=An(Mn),b7=Un(On),Ei=function(){function e(){}return e.value=new e,e}(),pp=function(){function e(){}return e.value=new e,e}(),hie={to:function(e){if(e instanceof ye)return Ei.value;if(e instanceof ie)return pp.value;throw new Error("Failed pattern match at Profile.PublishScope (line 20, column 1 - line 20, column 39): "+[e.constructor.name])},from:function(e){if(e instanceof Ei)return new ye(Ne.value);if(e instanceof pp)return new ie(Ne.value);throw new Error("Failed pattern match at Profile.PublishScope (line 20, column 1 - line 20, column 39): "+[e.constructor.name])}},Gy={eq:function(e){return function(n){return e instanceof Ei&&n instanceof Ei||e instanceof pp&&n instanceof pp}}};var eh=function(e){if(e instanceof pp)return"anonymous-all-schools";if(e instanceof Ei)return"all-schools";throw new Error("Failed pattern match at Profile.PublishScope (line 30, column 13 - line 32, column 30): "+[e.constructor.name])},My=function(){return ta(Ze)({parse:Tn(eh)(kn(hie)(Pn(y7)(Gn(Fn))(y7)(w7))(jn(b7)(b7))(Ln(w7))),diagnosticName:"Profile.PublishScope",default:pp.value})}();var vl=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),fl=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),_l=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),pl=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var DC=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)}},r_=function(e){return{author:e.author,text:e.text,isFromHQ:e.isFromHQ,isPublic:e.isPublic,id:e.id,time:Ru(e.time)}},E7=function(e){return{autoRequestFromLivestreams:e.autoRequestFromLivestreams,fullName:fe(e.fullName),publishScope:My(e.publishScope)}},gC=function(e){return{id:e.id,title:e.title,url:e.url,buttonText:e.buttonText,autoDisplayMinutesFromStart:fe(e.autoDisplayMinutesFromStart)}},Ii="overlay-visibility-test";var I7=Nn(xn),Ay=Pn(I7)(Gn(Fn)),T7=An(Mn),Ly=Ln(T7),S7=Un(On),Py=jn(S7),bs=function(){function e(){}return e.value=new e,e}(),Gv=function(){function e(){}return e.value=new e,e}(),o_=function(){function e(){}return e.value=new e,e}(),Mv=function(){function e(){}return e.value=new e,e}(),Av=function(){function e(){}return e.value=new e,e}(),Die={to:function(e){if(e instanceof ye)return bs.value;if(e instanceof ie&&e.value0 instanceof ye)return Gv.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ye)return o_.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ye)return Mv.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ie)return Av.value;throw new Error("Failed pattern match at Livestream.Types.Reaction (line 20, column 1 - line 20, column 39): "+[e.constructor.name])},from:function(e){if(e instanceof bs)return new ye(Ne.value);if(e instanceof Gv)return new ie(new ye(Ne.value));if(e instanceof o_)return new ie(new ie(new ye(Ne.value)));if(e instanceof Mv)return new ie(new ie(new ie(new ye(Ne.value))));if(e instanceof Av)return new ie(new ie(new ie(new ie(Ne.value))));throw new Error("Failed pattern match at Livestream.Types.Reaction (line 20, column 1 - line 20, column 39): "+[e.constructor.name])}},C7=function(e){if(e instanceof bs)return"love-this";if(e instanceof Gv)return"helpful";if(e instanceof o_)return"not-helpful";if(e instanceof Mv)return"writing-down";if(e instanceof Av)return"funny";throw new Error("Failed pattern match at Livestream.Types.Reaction (line 51, column 17 - line 56, column 19): "+[e.constructor.name])},F7=function(e){return{authorTag:e.authorTag,kind:C7(e.kind)}},gie=function(){return ta(Ze)({parse:Tn(C7)(kn(Die)(Ay(Ay(Ay(Ay(I7)(T7))(Ly))(Ly))(Ly))(Py(Py(Py(Py(S7)))))(Ly)),default:bs.value,diagnosticName:"Livestream Reaction Kind"})}(),G7=function(e){return{authorTag:e.authorTag,kind:gie(e.kind)}};var M7=typeof CV!="undefined"&&CV.pathInfo||typeof global!="undefined"&&global.CV&&global.CV.pathInfo||(e=>null);function A7(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 L7(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,S){try{l.abort()}catch(L){return b(L)}return S()}}}var xy="application/json",P7="application/x-www-form-urlencoded";var x7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),N7=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),j7=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}(),RC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ny=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),k7=function(e){return e instanceof RC?new T(P7):e instanceof Ny?new T(xy):M.value};var B7=function(){return Ny.create}();var H7=wa();var jy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Oy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dp=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}(),q7=function(e){if(e instanceof jy||e instanceof Oy)return H7(e.value0);if(e instanceof dp)return e.value1;throw new Error("Failed pattern match at Affjax.RequestHeader (line 26, column 1 - line 26, column 33): "+[e.constructor.name])};var yC=function(e){if(e instanceof jy)return"Accept";if(e instanceof Oy)return"Content-Type";if(e instanceof dp)return e.value0;throw new Error("Failed pattern match at Affjax.RequestHeader (line 21, column 1 - line 21, column 32): "+[e.constructor.name])};var J7=pn(dn),wC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),EC=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Uy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ky=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}(),W7=function(e){if(e instanceof wC)return"arraybuffer";if(e instanceof bC)return"blob";if(e instanceof EC)return"document";if(e instanceof Uy||e instanceof ky)return"text";if(e instanceof By)return"";throw new Error("Failed pattern match at Affjax.ResponseFormat (line 44, column 3 - line 50, column 19): "+[e.constructor.name])},$7=function(e){return e instanceof Uy?new T(xy):M.value},z7=function(){return new ky(J7)}();var V7=function(){return new By(J7)}();var Q7=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 yie=wa();var nh=function(e){return yie(nR(e))};function K7(e,n,a){try{return n(JSON.parse(a))}catch(t){return e(t.message)}}var Hy=function(e){return K7(Me.create,Pe.create,e)};function Y7(e){return e.replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16)})}function X7(e,n,a){try{return n(Y7(encodeURIComponent(a)))}catch(t){return e(t)}}function Z7(e,n,a){try{return n(Y7(encodeURIComponent(a)).replace(/%20/g,"+"))}catch(t){return e(t)}}var qy=function(){return nv(X7)(hn(M.value))(T.create)}();var Jy=function(){return nv(Z7)(hn(M.value))(T.create)}();var wie=Yn(vr),eO=U(ae),bie=lo(ju)(oa);var Eie=function(e){return e};var nO=function(){var e=function(t){if(t.value1 instanceof M)return Jy(t.value0);if(t.value1 instanceof T)return wie(eO(function(o){return function(u){return o+("="+u)}})(Jy(t.value0)))(Jy(t.value1.value0));throw new Error("Failed pattern match at Data.FormURLEncoded (line 37, column 16 - line 39, column 114): "+[t.constructor.name])},n=eO(sr("&")),a=bie(e);return function(t){return n(a(Eie(t)))}}();var IC=function(){function e(){}return e.value=new e,e}(),u_=function(){function e(){}return e.value=new e,e}(),TC=function(){function e(){}return e.value=new e,e}(),i_=function(){function e(){}return e.value=new e,e}(),Wy=function(){function e(){}return e.value=new e,e}(),ah=function(){function e(){}return e.value=new e,e}(),SC=function(){function e(){}return e.value=new e,e}(),CC=function(){function e(){}return e.value=new e,e}(),FC=function(){function e(){}return e.value=new e,e}(),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}(),$y=function(){function e(){}return e.value=new e,e}();var Iie=function(e){return e},Tie={show:function(e){if(e instanceof IC)return"OPTIONS";if(e instanceof u_)return"GET";if(e instanceof TC)return"HEAD";if(e instanceof i_)return"POST";if(e instanceof Wy)return"PUT";if(e instanceof ah)return"DELETE";if(e instanceof SC)return"TRACE";if(e instanceof CC)return"CONNECT";if(e instanceof FC)return"PROPFIND";if(e instanceof GC)return"PROPPATCH";if(e instanceof MC)return"MKCOL";if(e instanceof AC)return"COPY";if(e instanceof LC)return"MOVE";if(e instanceof PC)return"LOCK";if(e instanceof xC)return"UNLOCK";if(e instanceof $y)return"PATCH";throw new Error("Failed pattern match at Data.HTTP.Method (line 43, column 1 - line 59, column 23): "+[e.constructor.name])}};var aO=Bt(ne(Tie))(Iie);var tO={eq:function(e){return function(n){return e instanceof IC&&n instanceof IC||e instanceof u_&&n instanceof u_||e instanceof TC&&n instanceof TC||e instanceof i_&&n instanceof i_||e instanceof Wy&&n instanceof Wy||e instanceof ah&&n instanceof ah||e instanceof SC&&n instanceof SC||e instanceof CC&&n instanceof CC||e instanceof FC&&n instanceof FC||e instanceof GC&&n instanceof GC||e instanceof MC&&n instanceof MC||e instanceof AC&&n instanceof AC||e instanceof LC&&n instanceof LC||e instanceof PC&&n instanceof PC||e instanceof xC&&n instanceof xC||e instanceof $y&&n instanceof $y}}};var rO=function(e){return fv(function(n){return function(){var t=e(function(o){return n(Me.create(o))()},function(o){return n(Pe.create(o))()});return function(o){return fv(function(u){return function(){return t(o,function(l){return u(Me.create(l))()},function(l){return u(Pe.create(l))()}),TT}})}}})};var NC=J(Qc(cr)),Sie=M0(cr),l_=Xc(cr),oO=ma(rR(sR)(cr)),Cie=tf(Ff(cr)),zy=U(ae),Fie=vi(cn)(st),Gie=Re(Pt),Mie=Ua(nn),Aie=U(Ve),Lie=_e(Ga),Pie=Sf(xr),xie=J(Xn);var Vy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Qy=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}(),Ky=function(){function e(){}return e.value=new e,e}(),Yy=function(){function e(){}return e.value=new e,e}(),Xy=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),uO=function(e){return function(n){var a=function(d){return d===""?NC(gj):Bt(function(y){return Sie(lm.create(y))})(NC)(Hy(d))},t=function(){if(n.responseFormat instanceof wC)return l_("ArrayBuffer");if(n.responseFormat instanceof bC)return l_("Blob");if(n.responseFormat instanceof EC)return function(d){return oO(l_("Document")(d))(oO(l_("XMLDocument")(d))(l_("HTMLDocument")(d)))};if(n.responseFormat instanceof Uy)return Cie(function(d){return n.responseFormat.value0(a(d))})(l_("String"));if(n.responseFormat instanceof ky)return l_("String");if(n.responseFormat instanceof By)return hn(n.responseFormat.value0(NC(ge)));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 x7)return new Pe(d.value0(so));if(d instanceof N7)return new Pe(so(d.value0));if(d instanceof j7)return new Pe(so(d.value0));if(d instanceof O7)return new Pe(so(d.value0));if(d instanceof U7)return new Pe(so(d.value0));if(d instanceof RC)return c0("Body contains values that cannot be encoded as application/x-www-form-urlencoded")(zy(so)(nO(d.value0)));if(d instanceof Ny)return new Pe(so(ry(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 T&&!Fie(n0(Gie)(yC)(d.value0))(y)?y0(y)(d.value0):y}},i=function(d){return u(zy(Oy.create)(Mie(k7)(d)))(u(zy(jy.create)($7(n.responseFormat)))(n.headers))},l=function(d){return{method:aO(n.method),url:n.url,headers:Aie(function(y){return{field:yC(y),value:q7(y)}})(i(n.content)),content:d,responseType:W7(n.responseFormat),username:Fa(n.username),password:Fa(n.password),withCredentials:n.withCredentials,timeout:Je(0)(zy(function(y){return y})(n.timeout))}},s=function(d){return Lie(Pie(rO(L7(e,"AffjaxTimeoutErrorMessageIdent","AffjaxRequestFailedMessageIdent",Q7.create,l(d)))))(function(y){if(y instanceof Pe){var I=nh(t(y.value0.body));if(I instanceof Me)return new Me(new Qy(_3(I.value0),y.value0));if(I instanceof Pe)return new Pe({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 Me)return new Me(function(){var b=T0(y.value0),S=b==="AffjaxTimeoutErrorMessageIdent";if(S)return Ky.value;var L=b==="AffjaxRequestFailedMessageIdent";return L?Yy.value:new Xy(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 T){var R=o(n.content.value0);if(R instanceof Pe)return s(Fa(new T(R.value0)));if(R instanceof Me)return xie(new Me(new Vy(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 mp=function(){return{method:new Me(u_.value),url:"/",headers:[],content:M.value,username:M.value,password:M.value,withCredentials:!1,responseFormat:V7,timeout:M.value}}();var iO={eq:function(e){return function(n){return e===n}}};var jC={newXHR:function(){return new XMLHttpRequest},fixupUrl:function(e){return e||"/"}};var lO=uO(jC);function cO(e){return Buffer.from(e).toString("base64")}function sO(e,n,a){let t;try{t=n(btoa(a))}catch(o){t=e(o)}return t}var OC=typeof btoa=="function";function vO(e){let n=32768,a=[];for(let t=0;t{let e=null,n=0,a=()=>{if(!bc||!bc.key)return bc||console.error("Pusher config is missing in global context"),new ele;let t={auth:{headers:{"X-CSRF-Token":bc.authToken}},authEndpoint:bc.authPath,cluster:bc.cluster};return bc.dev&&Object.assign(t,{wsHost:bc.dev.wsHost,wsPort:bc.dev.wsPort,enabledTransports:["ws"],forceTLS:!1,disableStats:!0}),new TO.default(bc.key,t)};return{acquireConnection:()=>(e||(e=a(),n=0),n++,e),releaseConnection:()=>{--n<=0&&(e.disconnect(),e=null)}}})(),SO=e=>{let n=Xie().subscribe(e.channel);return n.bind(e.event,e.handler),()=>{n.unbind(e.event,e.handler),Zie()}};function ele(){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 nle(e);return this.channels.push(a),a},this.channelNames=function(){return this.channels.map(e=>e.name)}}function nle(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 ale=lu(cn)(wt),tle=Bo(ct)(Nu),rle=_e(uS);var ole={show:function(e){return e}},ule=ne(ole),nw=pe,ile=function(e){var n=_s(e);return function(a){return function(t){return function(o){var u=ale(["Pusher event ",t," over channel ",ule(a)]),i=function(l){return tle(n(u)(l))(o)()};return function(){return SO({channel:a,event:t,handler:i})}}}}},Ti=function(e){var n=ile(e);return function(a){var t=a.Monad0(),o=Z(t.Bind1()),u=yn(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))})}}}}},lle=Ti(Lf),aw=function(e){var n=lle(e);return function(a){return function(t){return rle(n(a)(t))(hn(ge))}}};var CO=wc(Rc),wu=Hl(CO),Er=Z(sa),rh=Hl(wc(CO)),FO=J(Xn),cle=_e(ae),oh=Sa(),GO=B({reflectSymbol:function(){return"pollId"}})(un),sle=B({reflectSymbol:function(){return"status"}})(pe)(on),vle=bt(Ca(oh(GO(sle)))),MO=U(Ve),AO=U(Ga),fle=B({reflectSymbol:function(){return"id"}}),_le=fle(un),LO=oh(B({reflectSymbol:function(){return"author"}})(oh(B({reflectSymbol:function(){return"cvid"}})(pe)(B({reflectSymbol:function(){return"username"}})(pe)(on))))(_le(B({reflectSymbol:function(){return"isFromHQ"}})(Ea)(B({reflectSymbol:function(){return"isPublic"}})(Ea)(B({reflectSymbol:function(){return"text"}})(pe)(B({reflectSymbol:function(){return"time"}})(pe)(on))))))),ple=Dp(LO);var dle=Wa(pe);var mle=Dp(Ca(oh(GO(B({reflectSymbol:function(){return"responses"}})(oh(B({reflectSymbol:function(){return"answered"}})(un)(B({reflectSymbol:function(){return"optionCounts"}})(Ca(un))(B({reflectSymbol:function(){return"seen"}})(un)(B({reflectSymbol:function(){return"skipped"}})(un)(on))))))(on))))),hle=Dp(dle),Dle=Dp(Ca(LO));var BC=rh("livestreams_polls_status_path")(function(e){return function(n){return function(a){return Er(e({id:n.id,status:Fy(a)}))(yc(function(t){return FO(Je([])(cle(vle(t))(MO(function(o){return{pollId:o.pollId,status:Ym(o.status)}}))))}))}}});var HC=rh("livestreams_polls_answer_path")(function(e){return function(n){return function(a){return Er(e({id:n.id,options:a}))(er)}}}),PO=wu("livestreams_conferences_status_on_air_path")(function(e){return function(n){return Er(e({conference_id:n}))(er)}}),xO=wu("livestreams_conferences_status_complete_path")(function(e){return function(n){return Er(e({conference_id:n}))(er)}}),NO=wu("livestreams_cta_save_referral_path")(function(e){return function(n){return Er(e(n))(er)}}),jO=wu("livestreams_polls_report_shown_path")(function(e){return function(n){return Er(e({id:n.id}))(er)}}),OO=rh("livestreams_client_window_visibility_path")(function(e){return function(n){return function(a){return Er(e({stream_id:n,visible:a.visible}))(er)}}}),UO=rh("livestreams_recording_watch_event_path")(function(e){return function(n){return function(a){return Er(e({conference_id:n,current_time_minutes:a}))(er)}}}),kO=wu("livestreams_questions_visibility_path")(function(e){return function(n){return Er(e({question_id:n.questionId,is_public:n.isPublic}))(er)}}),BO=wu("livestreams_questions_post_path")(function(e){return function(n){return Er(e({conference_id:n.conferenceId,question_text:n.text,hq_broadcast:n.hqBroadcast}))(yc(function(a){return AO(r_)(ple("Livestream question")(a))}))}}),HO=wu("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_referral:!0,from_conference_id:n.fromConference,id:n.ctaId}))(er)}}),qO=wu("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_general:!0,from_conference_id:n.fromConference,id:n.ctaId}))(er)}}),JO=wu("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_featured_service_providers:!0,from_conference_id:n.fromConference,id:n.ctaId}))(er)}}),WO=wu("livestreams_cta_open_path")(function(e){return function(n){return Er(e({is_event:!0,from_conference_id:n.fromConference,cta_conference_id:n.cta}))(er)}}),tw=wu("livestreams_register_path")(function(e){return function(n){return Er(e({from_conference_id:Fa(n.fromConference),register_for_conference_id:n.registerForConference,utm_cv_source:n.utmSource}))(er)}});var $O=rh("livestreams_reactions_launch_path")(function(e){return function(n){return function(a){return Er(e({conference_id:n,reaction:F7(a)}))(er)}}}),zO=wu("livestreams_polls_responses_path")(function(e){return function(n){return Er(e({conference_id:n}))(yc(mle("livestream poll responses")))}}),VO=wu("livestreams_conferences_download_url_path")(function(e){return function(n){return Er(e({conference_id:n}))(yc(function(a){return AO(fe)(hle("Livestream download URL")(a))}))}}),rw=Hl(Rc)("livestreams_dismiss_network_settings_modal_path")(function(e){return Er(e({}))(er)});var QO=wu("livestreams_conferences_ban_user_path")(function(e){return function(n){return Er(e({conference_id:n.conferenceId,user_cvid:n.userCvid}))(er)}}),ow=wu("livestreams_questions_all_path")(function(e){return function(n){return Er(e({conference_id:n}))(yc(function(a){return Er(Dle("Livestream questions")(a))(function(t){return FO(MO(r_)(t))})}))}});var JC=function(){function e(){}return e.value=new e,e}(),WC=function(){function e(){}return e.value=new e,e}(),$C=function(){function e(){}return e.value=new e,e}(),zC=function(){function e(){}return e.value=new e,e}(),VC=function(){function e(){}return e.value=new e,e}(),QC=function(){function e(){}return e.value=new e,e}(),KC=function(){function e(){}return e.value=new e,e}(),YC=function(){function e(){}return e.value=new e,e}(),XC=function(){function e(){}return e.value=new e,e}(),ZC=function(){function e(){}return e.value=new e,e}(),eF=function(){function e(){}return e.value=new e,e}(),nF=function(){function e(){}return e.value=new e,e}(),aF=function(){function e(){}return e.value=new e,e}(),tF=function(){function e(){}return e.value=new e,e}(),jt=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),rF=function(){function e(){}return e.value=new e,e}();var iw=function(e){if(e instanceof jt&&e.value0 instanceof JC)return"architecture";if(e instanceof jt&&e.value0 instanceof $C)return"chemistry";if(e instanceof jt&&e.value0 instanceof WC)return"business";if(e instanceof jt&&e.value0 instanceof zC)return"computer-science";if(e instanceof jt&&e.value0 instanceof VC)return"criminal-justice-and-corrections";if(e instanceof jt&&e.value0 instanceof QC)return"economics";if(e instanceof jt&&e.value0 instanceof KC)return"engineering";if(e instanceof jt&&e.value0 instanceof YC)return"english";if(e instanceof jt&&e.value0 instanceof XC)return"film";if(e instanceof jt&&e.value0 instanceof ZC)return"finance";if(e instanceof jt&&e.value0 instanceof eF)return"history";if(e instanceof jt&&e.value0 instanceof nF)return"political-science";if(e instanceof jt&&e.value0 instanceof aF)return"pre-med";if(e instanceof jt&&e.value0 instanceof tF)return"psychology";if(e instanceof rF)return"overall";throw new Error("Failed pattern match at Hub.Ranking (line 98, column 8 - line 113, column 23): "+[e.constructor.name])};var lw=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}();var KO=function(e){if(e instanceof lw)return M.value;if(e instanceof Ele)return new T("open");if(e instanceof ble)return new T("on");throw new Error("Failed pattern match at Hub.Types.WhatificatorPhase (line 26, column 13 - line 29, column 22): "+[e.constructor.name])};var eU=yt();var s_=function(e){return function(n){var a=function(){var u=Yc("?")(n);return u?"&":"?"}(),t=eU(qy(e.value)),o=eU(qy(e.key));return n+(a+(o+("="+t)))}};var Vle=function(){function e(){}return e.value=new e,e}(),Qle=function(){function e(){}return e.value=new e,e}(),Kle=function(){function e(){}return e.value=new e,e}(),Yle=function(){function e(){}return e.value=new e,e}(),Xle=function(){function e(){}return e.value=new e,e}(),Zle=function(){function e(){}return e.value=new e,e}(),ece=function(){function e(){}return e.value=new e,e}(),nce=function(){function e(){}return e.value=new e,e}(),ace=function(){function e(){}return e.value=new e,e}(),tce=function(){function e(){}return e.value=new e,e}(),rce=function(){function e(){}return e.value=new e,e}(),oce=function(){function e(){}return e.value=new e,e}(),uce=function(){function e(){}return e.value=new e,e}(),ice=function(){function e(){}return e.value=new e,e}(),lce=function(){function e(){}return e.value=new e,e}(),cce=function(){function e(){}return e.value=new e,e}(),sce=function(){function e(){}return e.value=new e,e}(),vce=function(){function e(){}return e.value=new e,e}(),fce=function(){function e(){}return e.value=new e,e}(),_ce=function(){function e(){}return e.value=new e,e}(),pce=function(){function e(){}return e.value=new e,e}(),dce=function(){function e(){}return e.value=new e,e}(),mce=function(){function e(){}return e.value=new e,e}(),hce=function(){function e(){}return e.value=new e,e}(),Dce=function(){function e(){}return e.value=new e,e}(),gce=function(){function e(){}return e.value=new e,e}(),Rce=function(){function e(){}return e.value=new e,e}(),yce=function(){function e(){}return e.value=new e,e}(),wce=function(){function e(){}return e.value=new e,e}(),bce=function(){function e(){}return e.value=new e,e}(),Ece=function(){function e(){}return e.value=new e,e}(),Ice=function(){function e(){}return e.value=new e,e}(),Tce=function(){function e(){}return e.value=new e,e}(),Sce=function(){function e(){}return e.value=new e,e}(),Cce=function(){function e(){}return e.value=new e,e}(),Fce=function(){function e(){}return e.value=new e,e}(),Gce=function(){function e(){}return e.value=new e,e}(),Mce=function(){function e(){}return e.value=new e,e}(),Ace=function(){function e(){}return e.value=new e,e}(),Lce=function(){function e(){}return e.value=new e,e}(),Pce=function(){function e(){}return e.value=new e,e}(),xce=function(){function e(){}return e.value=new e,e}(),Nce=function(){function e(){}return e.value=new e,e}(),jce=function(){function e(){}return e.value=new e,e}(),Oce=function(){function e(){}return e.value=new e,e}(),Uce=function(){function e(){}return e.value=new e,e}(),kce=function(){function e(){}return e.value=new e,e}(),Bce=function(){function e(){}return e.value=new e,e}(),Hce=function(){function e(){}return e.value=new e,e}(),qce=function(){function e(){}return e.value=new e,e}(),Jce=function(){function e(){}return e.value=new e,e}(),Wce=function(){function e(){}return e.value=new e,e}(),$ce=function(){function e(){}return e.value=new e,e}(),zce=function(){function e(){}return e.value=new e,e}(),Vce=function(){function e(){}return e.value=new e,e}(),Qce=function(){function e(){}return e.value=new e,e}();var va=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bu=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var nU=function(e){if(e instanceof va&&e.value0 instanceof Vle)return"AcceptanceRate";if(e instanceof va&&e.value0 instanceof Qle)return"AcceptanceRateMen";if(e instanceof va&&e.value0 instanceof Kle)return"AcceptanceRateWomen";if(e instanceof va&&e.value0 instanceof Yle)return"Address";if(e instanceof va&&e.value0 instanceof Xle)return"AdmissionChances";if(e instanceof va&&e.value0 instanceof Zle)return"AdmissionDifficulty";if(e instanceof va&&e.value0 instanceof ece)return"AdmissionsNotificationDate";if(e instanceof va&&e.value0 instanceof nce)return"AdmissionsWebsite";if(e instanceof va&&e.value0 instanceof ace)return"AppDeadlineIsRolling";if(e instanceof va&&e.value0 instanceof tce)return"ApplicationEffort";if(e instanceof va&&e.value0 instanceof rce)return"ApplicationRound";if(e instanceof va&&e.value0 instanceof oce)return"BasketballConference";if(e instanceof va&&e.value0 instanceof uce)return"CampusSetting";if(e instanceof va&&e.value0 instanceof ice)return"City";if(e instanceof va&&e.value0 instanceof lce)return"ClassRank";if(e instanceof va&&e.value0 instanceof cce)return"CoEdSingleSex";if(e instanceof va&&e.value0 instanceof sce)return"CollegeType";if(e instanceof va&&e.value0 instanceof vce)return"CommuterCollege";if(e instanceof va&&e.value0 instanceof fce)return"Diversity";if(e instanceof va&&e.value0 instanceof _ce)return"DropoutRate";if(e instanceof va&&e.value0 instanceof dce)return"FinancialAidWebsite";if(e instanceof va&&e.value0 instanceof mce)return"FirstYearEnrollment";if(e instanceof va&&e.value0 instanceof hce)return"FootballConference";if(e instanceof va&&e.value0 instanceof Dce)return"FourYearGraduationRate";if(e instanceof va&&e.value0 instanceof gce)return"HasDivisionOneBasketball";if(e instanceof va&&e.value0 instanceof Rce)return"HasDivisionOneFootball";if(e instanceof va&&e.value0 instanceof yce)return"HasMedicalSchool";if(e instanceof va&&e.value0 instanceof wce)return"HasStudyAbroad";if(e instanceof va&&e.value0 instanceof bce)return"HBCU";if(e instanceof va&&e.value0 instanceof Ece)return"InListStatus";if(e instanceof va&&e.value0 instanceof Ice)return"MainWebsite";if(e instanceof va&&e.value0 instanceof pce)return"Majors";if(e instanceof va&&e.value0 instanceof Tce)return"Name";if(e instanceof va&&e.value0 instanceof Sce)return"NetCostEstimate";if(e instanceof va&&e.value0 instanceof Cce)return"Notes";if(e instanceof va&&e.value0 instanceof Fce)return"PercentInternationalStudents";if(e instanceof va&&e.value0 instanceof Gce)return"Phone";if(e instanceof va&&e.value0 instanceof Mce)return"Photo";if(e instanceof va&&e.value0 instanceof Ace)return"Prestige";if(e instanceof va&&e.value0 instanceof Lce)return"ProgramLength";if(e instanceof va&&e.value0 instanceof Pce)return"PublicPrivate";if(e instanceof va&&e.value0 instanceof xce)return"RecommendationLetters";if(e instanceof va&&e.value0 instanceof Nce)return"Region";if(e instanceof va&&e.value0 instanceof jce)return"ReligiousAffiliation";if(e instanceof va&&e.value0 instanceof Oce)return"SatActDeadline";if(e instanceof va&&e.value0 instanceof Uce)return"SatActTestPolicy";if(e instanceof va&&e.value0 instanceof kce)return"SatSubjectTestDeadline";if(e instanceof va&&e.value0 instanceof Bce)return"SixYearGraduationRate";if(e instanceof va&&e.value0 instanceof Hce)return"State";if(e instanceof va&&e.value0 instanceof qce)return"StudentFacultyRatio";if(e instanceof va&&e.value0 instanceof Jce)return"SubmissionDeadline";if(e instanceof va&&e.value0 instanceof Wce)return"TOEFLPolicy";if(e instanceof va&&e.value0 instanceof $ce)return"TotalUndergrads";if(e instanceof va&&e.value0 instanceof zce)return"TuitionInState";if(e instanceof va&&e.value0 instanceof Vce)return"TuitionOutOfState";if(e instanceof va&&e.value0 instanceof Qce)return"YieldRate";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof JC)return"RankingArchitecture";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof WC)return"RankingBusiness";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof $C)return"RankingChemistry";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof zC)return"RankingComputerScience";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof VC)return"RankingCriminalJusticeAndCorrections";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof QC)return"RankingEconomics";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof KC)return"RankingEngineering";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof YC)return"RankingEnglish";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof XC)return"RankingFilm";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof ZC)return"RankingFinance";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof eF)return"RankingHistory";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof nF)return"RankingPoliticalScience";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof aF)return"RankingPreMed";if(e instanceof bu&&e.value0 instanceof jt&&e.value0.value0 instanceof tF)return"RankingPsychology";if(e instanceof bu&&e.value0 instanceof rF)return"OverallRanking";throw new Error("Failed pattern match at Hub.Facet (line 309, column 6 - line 380, column 43): "+[e.constructor.name])};var Kce=function(){function e(){}return e.value=new e,e}(),Yce=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Xce=function(){function e(){}return e.value=new e,e}();var aU=function(e){if(e instanceof Kce)return"filters";if(e instanceof Yce)return"filter:"+nU(e.value0);if(e instanceof Xce)return"rankings";throw new Error("Failed pattern match at Hub.Visuals.MobileOverlay (line 40, column 26 - line 43, column 39): "+[e.constructor.name])};function tU(e,n){typeof CV!="undefined"&&CV.tracking&&CV.tracking.event(e,n)}var Zce=ku();var Es=function(e){var n=yn(e);return function(a){return function(t){return n(function(){return tU(a,t)})}}},Is=function(e){var n=Es(e);return function(){return function(a){return function(t){return n(a)(Zce(t))}}}};var uh=function(){function e(){}return e.value=new e,e}(),Lv=function(){function e(){}return e.value=new e,e}(),ih=function(){function e(){}return e.value=new e,e}(),Cse=function(){function e(){}return e.value=new e,e}(),uU=function(e){if(e instanceof uh)return"modal-sm";if(e instanceof Lv)return"";if(e instanceof ih)return"modal-lg";if(e instanceof Cse)return"modal-xl";throw new Error("Failed pattern match at Bootstrap.Modal.Size (line 14, column 13 - line 18, column 27): "+[e.constructor.name])};var lh="";function iU(e){var n=e.split(` `);return n.reduce(function(a,t){var o=Mse(t)||Lse(t)||Nse(t)||kse(t)||Ose(t);return o&&a.push(o),a},[])}var Fse=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gse=/\((\S*)(?::(\d+))(?::(\d+))\)/;function Mse(e){var n=Fse.exec(e);if(!n)return null;var a=n[2]&&n[2].indexOf("native")===0,t=n[2]&&n[2].indexOf("eval")===0,o=Gse.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]||lh,arguments:a?[n[2]]:[],lineNumber:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}var Ase=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Lse(e){var n=Ase.exec(e);return n?{file:n[2],methodName:n[1]||lh,arguments:[],lineNumber:+n[3],column:n[4]?+n[4]:null}:null}var Pse=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,xse=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Nse(e){var n=Pse.exec(e);if(!n)return null;var a=n[3]&&n[3].indexOf(" > eval")>-1,t=xse.exec(n[3]);return a&&t!=null&&(n[3]=t[1],n[4]=t[2],n[5]=null),{file:n[3],methodName:n[1]||lh,arguments:n[2]?n[2].split(","):[],lineNumber:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}var jse=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Ose(e){var n=jse.exec(e);return n?{file:n[3],methodName:n[1]||lh,arguments:[],lineNumber:+n[4],column:n[5]?+n[5]:null}:null}var Use=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function kse(e){var n=Use.exec(e);return n?{file:n[2],methodName:n[1]||lh,arguments:[],lineNumber:+n[3],column:n[4]?+n[4]:null}:null}function lU({skipFrames:e,prefix:n}){let a=new Error().stack,o=iU(a)[e],u=cU(o.file.replace(/^(http(s?):\/\/)?[^\/]+/,"")),i=cU(o.methodName);return`${n}_${u}_${i}_${o.lineNumber}_${o.column}`}var cU=e=>e.replace(/[^\d\w]+/g,"_").replace(/(^_|_$)/g,"");var Bse=J(Rn),Hse=pn(dn),sw=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),qse={map:function(e){return function(n){return new sw(function(a){return n.value0(function(t){return a(e(t))})})}}},Jse=U(qse);var sU=function(e){return $N(lU(e))},v_=function(e){return new sw(function(n){return n(e)})},Rp=function(e){return function(n){return new sw(function(a){return hv(e)(n)(a)})}},vU=function(e){return function(n){return hv(e)(function(a){return{init:Bse(ge),update:hn(r0),view:hn(hn(n.value0(Hse)))}})(ge)}},fU=function(e){var n=sU({skipFrames:3,prefix:"WithHook"});return function(a){return vU(n)(Jse(a)(e))}};var vw=function(e){var n=sU({skipFrames:3,prefix:"HooksComponent"});return vU(n)(e)},Pv=function(){return function(e){return function(n){return new sw(function(a){return e.value0(function(t){var o=n(t);return o.value0(a)})})}}},Wse=Pv(),ch=function(e){return function(){return Wse}};var _U=rn(Qe)($n),$se=Zu(Le),zse=pn(dn),pU=J(Rn),fw=function(e){return function(n){return Rp("UseSubscription")(function(a){return{init:_U($se(zse)(e))(function(){return pU(ge)}),update:function(t){return function(o){return _U(za(n(o)))(function(){return pU(ge)})}},view:function(t){return function(o){return a(ge)}}}})}};function uF(e){return function(){return function(n){return e(n)()}}}function iF(e){return function(n){return function(a){return function(t){return function(){return t.addEventListener(e,n,a)}}}}}function lF(e){return function(n){return function(a){return function(t){return function(){return t.removeEventListener(e,n,a)}}}}}var dU="message";var mU="hashchange";var hU="popstate";var DU="keyup",gU="keydown";var RU="mouseup";var yU="mousemove";var wU=yn(Le),bU=U(Hn),Vse=Ua($t),sh=function(){var e=function(t){return function(o){return function(u){return wU(function(){var l=o(),s=uF(function(R){return u(R)})();return iF(t)(s)(!1)(l)(),wU(lF(t)(s)(!1)(l))})}}},n=function(t){return e(t)(bU(E8)(xo))},a=function(t){return e(t)(bU(g8)(Vse(Tv)(xo)))};return{hashchange:n(mU),mousemove:n(yU),mouseup:n(RU),popstate:n(hU),resize:n("resize"),message:n(dU),keydown:a(gU),keyup:a(DU),selectionchange:a("selectionchange"),visibilitychange:a("visibilitychange")}}();var _w=function(){return Be};var yp=Te(ze),cF=Vr(),Qse=or(ze)()(),Kse=or(me)()(),Yse=Te(me),Xse=zn(Y)()(),Zse=Br(gu),eve=lr(Xn),nve=yn(Le),EU=_w(),ql=function(){return function(e){var n=yp("modal-backdrop fade show")(Vn),a=cF(e),t=cl(a.footer),o=cl(a.header),u=Ka(a.size)(Lv.value),i=sr(" ")([function(){var s=Ka(a.scrollable)(!0);return s?"modal-dialog-scrollable":""}(),function(){var s=Ka(a.centered)(!0);return s?"modal-dialog-centered":""}(),uU(u),Ka(a.dialogClass)("")]),l=yp("modal fade show d-block")(Qse("modal-dialog "+i)({style:Ka(a.dialogStyle)(rt({}))})(Kse("modal-content "+Ka(a.contentClass)(""))({style:Ka(a.contentStyle)(rt({}))})([da(o)(yp("modal-header "+Ka(a.headerClass)(""))),yp("modal-body "+Ka(a.bodyClass)(""))(a.body),da(t)(yp("modal-footer "+Ka(a.footerClass)("")))])));return Se([l,n])}},sF=ql(),Jl=function(){return function(e){var n=cF(e),a=Yse("d-flex w-100 justify-content-between align-items-center")([yp("mr-4")(Ka(n.title)(Vn)),Xse("btn btn-link large mr-n3 py-0 fe fe-x t--close "+Ka(n.dismissButtonClass)("text-body"))({type:"button",onClick:Zse(n.onDismiss)})("")]),t=function(o){return eve(o.key==="Escape")(nve(n.onDismiss))};return fU(fw(sh.keyup)(t))(function(o){var u=Ka(n.bodyScrollable)(!1);return sF(u?function(){var i=cF(EU(n));return{body:i.body,bodyClass:i.bodyClass,centered:i.centered,contentClass:i.contentClass,contentStyle:i.contentStyle,dialogClass:i.dialogClass,dialogStyle:i.dialogStyle,footer:i.footer,footerClass:i.footerClass,headerClass:i.headerClass,scrollable:i.scrollable,size:i.size,header:a}}():EU({bodyClass:n.bodyClass,bodyScrollable:n.bodyScrollable,centered:n.centered,contentClass:n.contentClass,contentStyle:n.contentStyle,dialogClass:n.dialogClass,dialogStyle:n.dialogStyle,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])}))})}},wp=function(e){var n=Nm(e);return function(a){return function(t){return sF({bodyClass:a,body:Se(n(t))})}}};var IU=J(Rn),tve=pn(dn);var rve=function(e){return function(n){return function(a){return Rp(e)(function(t){return n({init:IU(a),update:function(o){return function(u){return IU(u)}},view:p0(t)})})}}},Ts=function(e){return rve("UseState")(tve)(e)};var ove=Vr(),uve=pn(dn),ive=np(me)()(),lve=zn(ze)()(),cve=fo()();var pw="login",vF=function(){return function(e){var n=ove(e),a=function(){var u=Ka(n.auth0ActiveTab)(pw);return u}(),t=Je({path:"",token:""})(Zy("login_path")),o=function(u){return function(i){return bn(uve)(function(l){return s_(function(s){return{key:u,value:s}}(l))})(cl(i))}};return ive("d-inline")({method:"post",action:o("origin")(n.origin)(o("login_hint")(n.auth0LoginHint)(s_({key:"screen_hint",value:a})(t.path))),target:function(){var u=Ka(n.openInNewTab)(!1);return u?"_blank":""}()})([lve(Ka(n.className)("btn btn-primary px-4"))({type:"submit",disabled:Ka(n.disabled)(!1)})(Ka(n.content)(Xe(Ka(n.text)("Log in")))),cve("")({type:"hidden",name:"authenticity_token",value:t.token})])}};var fF=typeof CV!="undefined"&&CV.assetsRoot||typeof global!="undefined"&&global.CV&&global.CV.assetsRoot||"/";var _F=zc(ko(st)),sve=pn(dn),vve=tl()(),dw=function(e){var n=_i(e);return function(a){return Ct(n(a))}},fve=function(e){if(_F(dw("http://"))(_F(dw("https://"))(_F(dw("//"))(dw("blob:"))))(e))return e;if(qe)return fF+Je(e)(_i("/")(e));throw new Error("Failed pattern match at Utils.AppAssets (line 47, column 1 - line 47, column 30): "+[e.constructor.name])},Eu=function(){return function(){return function(e){return function(n){var a=function(o){return sve},t=a(n)(L0("src")(fve(n.src))(n));return vve(e)(t)}}}};var f_=function(e){return function(n){return function(){return n[e]}}},_ve=f_("URL"),pve=f_("documentURI"),dve=f_("origin"),mve=f_("compatMode"),hve=f_("characterSet"),Dve=f_("contentType");var gve=f_("documentElement");var mw=function(e){return function(n){return n[e]}},yve=mw("namespaceURI"),wve=mw("prefix"),bve=mw("localName"),Eve=mw("tagName");function pF(e){return function(){return e.id}}function dF(e){return function(){return e.classList}}function mF(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 hF=Be;var SU=Sn("Element");var Wl=function(e){return function(n){return function(){return n[e]}}};var Tve=Wl("baseURI"),Sve=Wl("ownerDocument"),CU=Wl("parentNode"),Cve=Wl("parentElement");var Fve=Wl("childNodes"),Gve=Wl("firstChild"),Mve=Wl("lastChild"),Ave=Wl("previousSibling"),Lve=Wl("nextSibling"),Pve=Wl("nodeValue");var xve=Wl("textContent");function DF(e){return function(n){return function(){return e.isEqualNode(n)}}}var Ove=U(Hn);var FU=function(){var e=Ove(fe);return function(n){return e(CU(n))}}();var Uve=JSON.stringify;var p_=function(){function e(){}return e.value=new e,e}(),GU=function(){function e(){}return e.value=new e,e}(),MU=function(){function e(){}return e.value=new e,e}(),vh=function(){function e(){}return e.value=new e,e}(),AU=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}();var hw=function(e){if(e instanceof p_)return M.value;if(e instanceof GU)return new T("for-you");if(e instanceof MU)return new T("chancing");if(e instanceof vh)return new T("finances");if(e instanceof AU)return new T("majors");if(e instanceof LU)return new T("admission-requirements");if(e instanceof PU)return new T("essay-prompts");throw new Error("Failed pattern match at SchoolDetails.Types (line 84, column 14 - line 91, column 39): "+[e.constructor.name])};var xU=Ua($t);var NU=function(e){return xU(aC(e))(xU(sp)(xo))};var gF=_e(ae);var RF=iu(cn)(wt),qve=wa(),Jve=li(ae),yF=function(e){return"/schools/"+e.slug},wF="/schools/hub";var jU=function(e){return function(n){var a=gF(KO(n.whatificator))(function(l){return"simulator="+l}),t=gF(n.mobileOverlay)(function(l){return"overlay="+aU(l)}),o=sr("&")(Wo([t,a])),u=gF(n.focusedSchool)(function(l){return RF("/")(Wo([new T(qve(l.slug)),hw(l.tab)]))}),i=function(){return e.knownSeoState instanceof T&&n.seoView?RF("/")(Wo([new T(yF({slug:e.knownSeoState.value0.slug})),u])):RF("/")(Wo([new T(wF),new T(bn(e.basePath)(iw)(n.ranking)),Jve(u)("d"),u]))}();return i+(function(){var l=o==="";return l?"":"?"}()+o)}};var OU="/profile";var $ve=wa();var bF=function(e){return function(n){return sr("/")(Wo([new T("/schools"),new T($ve(n)),hw(e)]))}},UU=OU,kU="/livestreams/upcoming";var zve=function(e){return jU({basePath:"all",knownSeoState:M.value})({ranking:M.value,focusedSchool:e,mobileOverlay:M.value,seoView:!1,whatificator:lw.value})};var Dw=function(e){return function(n){return zve(new T({tab:e,slug:n}))}};var BU=function(){function e(){}return e.value=new e,e}(),HU=function(){function e(){}return e.value=new e,e}(),gw=function(){function e(){}return e.value=new e,e}(),Rw=function(){function e(){}return e.value=new e,e}(),qU=function(){function e(){}return e.value=new e,e}(),JU=function(){function e(){}return e.value=new e,e}(),WU=function(){function e(){}return e.value=new e,e}(),$U=function(e){if(e instanceof BU)return"avatar-xxs";if(e instanceof HU)return"avatar-xs";if(e instanceof gw)return"avatar-sm";if(e instanceof Rw)return"";if(e instanceof qU)return"avatar-lg";if(e instanceof JU)return"avatar-xl";if(e instanceof WU)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 zU={show:wa()};var Vve=Number.MAX_SAFE_INTEGER;var IF=function(e){if(e.first==="")return e.last;if(e.last==="")return e.first;if(qe)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 sfe=Re(Gy);var QU={show:function(e){return e}};var KU=function(e){return sfe(e.publishScope)(Ei.value)};var bp=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),TF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),SF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),CF=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}(),GF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MF=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var AF=ne(zU);var vfe=ne(f4),YU=ne(Wj),ffe=ne(QU);var _fe="/messages";var pfe=function(e){return function(n){return e+("/"+function(){if(n instanceof bp)return"admission-officer/"+vfe(n.value0);if(n instanceof TF)return"school/"+YU(n.value0);if(n instanceof SF)return"student/"+ffe(n.value0);if(n instanceof CF)return"high-school/"+AF(n.value0);if(n instanceof FF)return"service-provider/"+AF(n.value0);if(n instanceof GF)return"parent/"+AF(n.value0);if(n instanceof MF)return"recruiter/"+YU(n.value0);throw new Error("Failed pattern match at DirectMessages.Urls (line 31, column 59 - line 38, column 63): "+[n.constructor.name])}())}},LF=pfe(_fe);var dfe=Hl(wc(Rc)),mfe=Z(sa),XU=_e(ae),ZU=wa(),hfe=Tt(Ga);var e6=dfe("network_connections_invite_school_path")(function(e){return function(n){return mfe(e({school_id:n.schoolId,message:Fa(n.introMessage),sem_user_id:Fa(XU(n.semUserId)(ZU)),livestream_id:Fa(XU(n.livestreamId)(ZU))}))(er)}}),n6=function(e){return function(n){return hfe(e6({schoolId:e,introMessage:M.value,semUserId:M.value,livestreamId:new T(n)}))}};var a6=function(e){return function(n){return function(a){return e6({schoolId:e,introMessage:new T(a.introMessage),semUserId:new T(n),livestreamId:M.value})}}};$a();function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(a[o]=e[o]);return a}function xv(e,n){if(e==null)return{};var a=PF(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}$a();$a();function d_(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function r6(e,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:1;i6+=1;var a=i6;function t(o){if(o===0)l6(a),e();else{var u=o6(function(){t(o-1)});jF.set(a,u)}}return t(n),a}Si.cancel=function(e){var n=jF.get(e);return l6(n),u6(n)};function g_(e,n){return e?e.contains(n):!1}function ph(e){return e instanceof HTMLElement?e:Ri.findDOMNode(e)}var _6=Mu(f6());$a();function BF(e,n){typeof e=="function"?e(n):eo(e)==="object"&&e&&"current"in e&&(e.current=n)}function Mw(){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=Si(function(){o<=1?t({isCanceled:function(){return u!==e.current}}):a(t,o-1)});e.current=u}return Gt(function(){return function(){n()}},[]),[a,n]};$a();var Sfe=Ec()?Sm:Gt,Ow=Sfe;var I6=[dl,Ss,Ov,jw],KF=!1,T6=!0;function Uw(e){return e===Ov||e===jw}var S6=function(e,n){var a=Cs(QF),t=At(a,2),o=t[0],u=t[1],i=E6(),l=At(i,2),s=l[0],R=l[1];function d(){u(dl,!0)}return Ow(function(){if(o!==QF&&o!==jw){var y=I6.indexOf(o),I=I6[y+1],b=n(o);b===KF?u(I,!0):s(function(S){function L(){S.isCanceled()||u(I,!0)}b===!0?L():Promise.resolve(b).then(L)})}},[e,o]),Gt(function(){return function(){R()}},[]),[d,o]};$a();$a();var C6=function(e){var n=it(),a=it(e);a.current=e;var t=Tm(function(i){a.current(i)},[]);function o(i){i&&(i.removeEventListener(zF,t),i.removeEventListener($F,t))}function u(i){n.current&&n.current!==i&&o(n.current),i&&i!==n.current&&(i.addEventListener(zF,t),i.addEventListener($F,t),n.current=i)}return Gt(function(){return function(){o(n.current)}},[]),[u,o]};function YF(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,S=t.onLeavePrepare,L=t.onAppearStart,O=t.onEnterStart,$=t.onLeaveStart,z=t.onAppearActive,X=t.onEnterActive,oe=t.onLeaveActive,te=t.onAppearEnd,ve=t.onEnterEnd,we=t.onLeaveEnd,an=t.onVisibleChanged,sn=Cs(),ce=At(sn,2),le=ce[0],je=ce[1],Ce=Cs(jv),He=At(Ce,2),en=He[0],Cn=He[1],ra=Cs(null),Bn=At(ra,2),qn=Bn[0],Kn=Bn[1],Jn=it(!1),ft=it(null);function Ue(){return a()}var ia=it(!1);function Ta(ot){var q=Ue();if(!(ot&&!ot.deadline&&ot.target!==q)){var K=ia.current,j;en===dh&&K?j=te==null?void 0:te(q,ot):en===mh&&K?j=ve==null?void 0:ve(q,ot):en===hh&&K&&(j=we==null?void 0:we(q,ot)),en!==jv&&K&&j!==!1&&(Cn(jv,!0),Kn(null,!0))}}var In=C6(Ta),gn=At(In,1),We=gn[0],na=Cm(function(){var ot,q,K;switch(en){case dh:return ot={},Yo(ot,dl,I),Yo(ot,Ss,L),Yo(ot,Ov,z),ot;case mh:return q={},Yo(q,dl,b),Yo(q,Ss,O),Yo(q,Ov,X),q;case hh:return K={},Yo(K,dl,S),Yo(K,Ss,$),Yo(K,Ov,oe),K;default:return{}}},[en]),fa=S6(en,function(ot){if(ot===dl){var q=na[dl];return q?q(Ue()):KF}if(vn in na){var K;Kn(((K=na[vn])===null||K===void 0?void 0:K.call(na,Ue(),null))||null)}return vn===Ov&&(We(Ue()),d>0&&(clearTimeout(ft.current),ft.current=setTimeout(function(){Ta({deadline:!0})},d))),T6}),La=At(fa,2),_t=La[0],vn=La[1],la=Uw(vn);ia.current=la,Ow(function(){je(n);var ot=Jn.current;if(Jn.current=!0,!!e){var q;!ot&&n&&l&&(q=dh),ot&&n&&u&&(q=mh),(ot&&!n&&R||!ot&&y&&!n&&R)&&(q=hh),q&&(Cn(q),_t())}},[n]),Gt(function(){(en===dh&&!l||en===mh&&!u||en===hh&&!R)&&Cn(jv)},[l,u,R]),Gt(function(){return function(){Jn.current=!1,clearTimeout(ft.current)}},[]);var Et=it(!1);Gt(function(){le&&(Et.current=!0),le!==void 0&&en===jv&&((Et.current||le)&&(an==null||an(le)),Et.current=!0)},[le,en]);var Da=qn;return na[dl]&&vn===Ss&&(Da=ba({transition:"none"},Da)),[en,vn,Da,le!=null?le:n]}$a();var Cfe=function(e){h_(a,e);var n=D_(a);function a(){return d_(this,a),n.apply(this,arguments)}return m_(a,[{key:"render",value:function(){return this.props.children}}]),a}(kf),F6=Cfe;function Ffe(e){var n=e;eo(e)==="object"&&(n=e.transitionSupport);function a(o){return!!(o.motionName&&n)}var t=gi(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,S=o.eventProps,L=a(o),O=it(),$=it();function z(){try{return O.current instanceof HTMLElement?O.current:ph($.current)}catch{return null}}var X=YF(L,l,z,o),oe=At(X,4),te=oe[0],ve=oe[1],we=oe[2],an=oe[3],sn=it(an);an&&(sn.current=!0);var ce=Tm(function(ra){O.current=ra,BF(u,ra)},[u]),le,je=ba(ba({},S),{},{visible:l});if(!y)le=null;else if(te===jv||!a(o))an?le=y(ba({},je),ce):!R&&sn.current?le=y(ba(ba({},je),{},{className:b}),ce):d?le=y(ba(ba({},je),{},{style:{display:"none"}}),ce):le=null;else{var Ce,He;ve===dl?He="prepare":Uw(ve)?He="active":ve===Ss&&(He="start"),le=y(ba(ba({},je),{},{className:(0,G6.default)(VF(I,te),(Ce={},Yo(Ce,VF(I,"".concat(te,"-").concat(He)),He),Yo(Ce,I,typeof I=="string"),Ce)),style:we}),ce)}if(FT(le)&&Aw(le)){var en=le,Cn=en.ref;Cn||(le=Im(le,{ref:ce}))}return vt(F6,{ref:$},le)});return t.displayName="CSSMotion",t}var kw=Ffe(Nw);$a();var Bw="add",Hw="keep",qw="remove",Jw="removed";function Gfe(e){var n;return e&&eo(e)==="object"&&"key"in e?n=e:n={key:e},ba(ba({},n),{},{key:String(n.key)})}function Ww(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Gfe)}function M6(){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=Ww(e),i=Ww(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!==qw}),a.forEach(function(d){d.key===R&&(d.status=Hw)})}),a}var Mfe=["component","children","onVisibleChanged","onAllRemoved"],Afe=["status"],Lfe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Pfe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kw,a=function(t){h_(u,t);var o=D_(u);function u(){var i;d_(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 r_e(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 cG(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 K6(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 Yw(e,n,a,t,o){var u=K6(n,a[1]),i=K6(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 Y6(e,n,a){return e.lefta.right}function X6(e,n,a){return e.topa.bottom}function o_e(e,n,a){return e.left>a.right||e.left+n.widtha.bottom||e.top+n.height=a.right||t.top>=a.bottom}function eb(e,n,a){var t=a.target||n,o=cG(t),u=!i_e(t,a.overflow&&a.overflow.alwaysByViewport);return n5(e,o,a,u)}eb.__getOffsetParent=iG;eb.__getVisibleRectForElement=lG;function a5(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 n5(e,y,x6(x6({},a),{},{points:b}),I)}var kB=Mu(FB());var GB=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(){!FG||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Phe?(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(){!FG||!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=Lhe.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}(),MB=function(e,n){for(var a=0,t=Object.keys(n);a0},e}(),PB=typeof WeakMap!="undefined"?new WeakMap:new GB,xB=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=xhe.getInstance(),t=new Whe(n,a,this);PB.set(this,t)}return e}();["observe","unobserve","disconnect"].forEach(function(e){xB.prototype[e]=function(){var n;return(n=PB.get(this))[e].apply(n,arguments)}});var $he=function(){return typeof ub.ResizeObserver!="undefined"?ub.ResizeObserver:xB}(),NB=$he;function jB(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 OB(e,n){e!==document.activeElement&&g_(n,e)&&typeof e.focus=="function"&&e.focus()}function GG(e,n){var a=null,t=null;function o(i){var l=At(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 NB(o);return e&&u.observe(e),function(){u.disconnect()}}$a();var UB=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 BB(e){return typeof e!="function"?null:e()}function HB(e){return eo(e)!=="object"||!e?null:e}var zhe=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),S=ka.useRef({});S.current.disabled=o,S.current.target=u,S.current.align=i,S.current.onAlign=l;var L=UB(function(){var ve=S.current,we=ve.disabled,an=ve.target,sn=ve.align,ce=ve.onAlign;if(!we&&an){var le=I.current,je,Ce=BB(an),He=HB(an);y.current.element=Ce,y.current.point=He,y.current.align=sn;var en=document,Cn=en.activeElement;return Ce&&L6(Ce)?je=eb(le,Ce,sn):He&&(je=a5(le,He,sn)),OB(Cn,le),ce&&je&&ce(le,je),!0}return!1},d),O=At(L,2),$=O[0],z=O[1],X=ka.useRef({cancel:function(){}}),oe=ka.useRef({cancel:function(){}});ka.useEffect(function(){var ve=BB(u),we=HB(u);I.current!==oe.current.element&&(oe.current.cancel(),oe.current.element=I.current,oe.current.cancel=GG(I.current,$)),(y.current.element!==ve||!jB(y.current.point,we)||!(0,kB.default)(y.current.align,i))&&($(),X.current.element!==ve&&(X.current.cancel(),X.current.element=ve,X.current.cancel=GG(ve,$)))}),ka.useEffect(function(){o?z():$()},[o]);var te=ka.useRef(null);return ka.useEffect(function(){s?te.current||(te.current=Nv(window,"resize",$)):te.current&&(te.current.remove(),te.current=null)},[s]),ka.useEffect(function(){return function(){X.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:Mw(b.ref,I)})),b},qB=ka.forwardRef(zhe);qB.displayName="Align";var JB=qB;var WB=JB;$a();var Vhe=Ec()?Sm:Gt,MG=Vhe;var KB=Mu(R_());function Ah(){"use strict";Ah=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,je){return Object.defineProperty(ce,le,{value:je,enumerable:!0,configurable:!0,writable:!0}),ce[le]}try{l({},"")}catch{l=function(je,Ce,He){return je[Ce]=He}}function s(ce,le,je,Ce){var He=le&&le.prototype instanceof y?le:y,en=Object.create(He.prototype),Cn=new we(Ce||[]);return en._invoke=function(ra,Bn,qn){var Kn="suspendedStart";return function(Jn,ft){if(Kn==="executing")throw new Error("Generator is already running");if(Kn==="completed"){if(Jn==="throw")throw ft;return sn()}for(qn.method=Jn,qn.arg=ft;;){var Ue=qn.delegate;if(Ue){var ia=oe(Ue,qn);if(ia){if(ia===d)continue;return ia}}if(qn.method==="next")qn.sent=qn._sent=qn.arg;else if(qn.method==="throw"){if(Kn==="suspendedStart")throw Kn="completed",qn.arg;qn.dispatchException(qn.arg)}else qn.method==="return"&&qn.abrupt("return",qn.arg);Kn="executing";var Ta=R(ra,Bn,qn);if(Ta.type==="normal"){if(Kn=qn.done?"completed":"suspendedYield",Ta.arg===d)continue;return{value:Ta.arg,done:qn.done}}Ta.type==="throw"&&(Kn="completed",qn.method="throw",qn.arg=Ta.arg)}}}(ce,je,Cn),en}function R(ce,le,je){try{return{type:"normal",arg:ce.call(le,je)}}catch(Ce){return{type:"throw",arg:Ce}}}e.wrap=s;var d={};function y(){}function I(){}function b(){}var S={};l(S,o,function(){return this});var L=Object.getPrototypeOf,O=L&&L(L(an([])));O&&O!==n&&a.call(O,o)&&(S=O);var $=b.prototype=y.prototype=Object.create(S);function z(ce){["next","throw","return"].forEach(function(le){l(ce,le,function(je){return this._invoke(le,je)})})}function X(ce,le){function je(He,en,Cn,ra){var Bn=R(ce[He],ce,en);if(Bn.type!=="throw"){var qn=Bn.arg,Kn=qn.value;return Kn&&eo(Kn)=="object"&&a.call(Kn,"__await")?le.resolve(Kn.__await).then(function(Jn){je("next",Jn,Cn,ra)},function(Jn){je("throw",Jn,Cn,ra)}):le.resolve(Kn).then(function(Jn){qn.value=Jn,Cn(qn)},function(Jn){return je("throw",Jn,Cn,ra)})}ra(Bn.arg)}var Ce;this._invoke=function(He,en){function Cn(){return new le(function(ra,Bn){je(He,en,ra,Bn)})}return Ce=Ce?Ce.then(Cn,Cn):Cn()}}function oe(ce,le){var je=ce.iterator[le.method];if(je===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(je,ce.iterator,le.arg);if(Ce.type==="throw")return le.method="throw",le.arg=Ce.arg,le.delegate=null,d;var He=Ce.arg;return He?He.done?(le[ce.resultName]=He.value,le.next=ce.nextLoc,le.method!=="return"&&(le.method="next",le.arg=void 0),le.delegate=null,d):He:(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 we(ce){this.tryEntries=[{tryLoc:"root"}],ce.forEach(te,this),this.reset(!0)}function an(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 je=-1,Ce=function He(){for(;++je=0;--He){var en=this.tryEntries[He],Cn=en.completion;if(en.tryLoc==="root")return Ce("end");if(en.tryLoc<=this.prev){var ra=a.call(en,"catchLoc"),Bn=a.call(en,"finallyLoc");if(ra&&Bn){if(this.prev=0;--Ce){var He=this.tryEntries[Ce];if(He.tryLoc<=this.prev&&a.call(He,"finallyLoc")&&this.prev=0;--je){var Ce=this.tryEntries[je];if(Ce.finallyLoc===le)return this.complete(Ce.completion,Ce.afterLoc),ve(Ce),d}},catch:function(le){for(var je=this.tryEntries.length-1;je>=0;--je){var Ce=this.tryEntries[je];if(Ce.tryLoc===le){var He=Ce.completion;if(He.type==="throw"){var en=He.arg;ve(Ce)}return en}}throw new Error("illegal catch attempt")},delegateYield:function(le,je,Ce){return this.delegate={iterator:an(le),resultName:je,nextLoc:Ce},this.method==="next"&&(this.arg=void 0),d}},e}function $B(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 AG(e){return function(){var n=this,a=arguments;return new Promise(function(t,o){var u=e.apply(n,a);function i(s){$B(u,t,o,i,l,"next",s)}function l(s){$B(u,t,o,i,l,"throw",s)}i(void 0)})}}$a();var zB=["measure","alignPre","align",null,"motion"],VB=function(e,n){var a=Cs(null),t=At(a,2),o=t[0],u=t[1],i=it();function l(d){u(d,!0)}function s(){Si.cancel(i.current)}function R(d){s(),i.current=Si(function(){l(function(y){switch(o){case"align":return"motion";case"motion":return"stable";default:}return y}),d==null||d()})}return Gt(function(){l("measure")},[e]),Gt(function(){switch(o){case"measure":n();break;default:}o&&(i.current=Si(AG(Ah().mark(function d(){var y,I;return Ah().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:y=zB.indexOf(o),I=zB[y+1],I&&y!==-1&&l(I);case 3:case"end":return S.stop()}},d)}))))},[o]),Gt(function(){return function(){s()}},[]),[o,R]};$a();var QB=function(e){var n=Ll({width:0,height:0}),a=At(n,2),t=a[0],o=a[1];function u(l){o({width:l.offsetWidth,height:l.offsetHeight})}var i=Cm(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 YB=gi(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,S=e.getClassNameFromAlign,L=e.onAlign,O=e.onMouseEnter,$=e.onMouseLeave,z=e.onMouseDown,X=e.onTouchStart,oe=e.onClick,te=it(),ve=it(),we=Ll(),an=At(we,2),sn=an[0],ce=an[1],le=QB(s),je=At(le,2),Ce=je[0],He=je[1];function en(){s&&He(b())}var Cn=VB(a,en),ra=At(Cn,2),Bn=ra[0],qn=ra[1],Kn=Ll(0),Jn=At(Kn,2),ft=Jn[0],Ue=Jn[1],ia=it();MG(function(){Bn==="alignPre"&&Ue(0)},[Bn]);function Ta(){return I||b}function In(){var vn;(vn=te.current)===null||vn===void 0||vn.forceAlign()}function gn(vn,la){var Et=S(la);sn!==Et&&ce(Et),Ue(function(Da){return Da+1}),Bn==="align"&&(L==null||L(vn,la))}MG(function(){Bn==="align"&&(ft<2?In():qn(function(){var vn;(vn=ia.current)===null||vn===void 0||vn.call(ia)}))},[ft]);var We=ba({},$w(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(vn){var la=We[vn];We[vn]=function(Et,Da){return qn(),la==null?void 0:la(Et,Da)}});function na(){return new Promise(function(vn){ia.current=vn})}Gt(function(){!We.motionName&&Bn==="motion"&&qn()},[We.motionName,Bn]),rs(n,function(){return{forceAlign:In,getElement:function(){return ve.current}}});var fa=ba(ba({},Ce),{},{zIndex:l,opacity:Bn==="motion"||Bn==="stable"||!a?void 0:0,pointerEvents:!a&&Bn!=="stable"?"none":void 0},u),La=!0;(y==null?void 0:y.points)&&(Bn==="align"||Bn==="stable")&&(La=!1);var _t=i;return Uf.count(i)>1&&(_t=vt("div",{className:"".concat(t,"-content")},i)),vt(Ip,ho({visible:a,ref:ve,leavedClassName:"".concat(t,"-hidden")},We,{onAppearPrepare:na,onEnterPrepare:na,removeOnLeave:R,forceRender:d}),function(vn,la){var Et=vn.className,Da=vn.style,ot=(0,KB.default)(t,o,sn,Et);return vt(WB,{target:Ta(),key:"popup",ref:te,monitorWindowResize:!0,disabled:La,align:y,onAlign:gn},vt("div",{ref:la,className:ot,onMouseEnter:O,onMouseLeave:$,onMouseDownCapture:z,onTouchStartCapture:X,onClick:oe,style:ba(ba({},Da),fa)},_t))})});YB.displayName="PopupInner";var XB=YB;$a();var ZB=Mu(R_()),eH=gi(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=it();rs(n,function(){return{forceAlign:function(){},getElement:function(){return b.current}}});var S=ba({zIndex:o},s),L=u;return Uf.count(u)>1&&(L=vt("div",{className:"".concat(a,"-content")},u)),y&&(L=y(L)),vt(Ip,ho({visible:t,ref:b,removeOnLeave:!0},d),function(O,$){var z=O.className,X=O.style,oe=(0,ZB.default)(a,l,z);return vt("div",{ref:$,className:oe,onClick:I,style:ba(ba({},X),S)},L)})});eH.displayName="MobilePopupInner";var nH=eH;var Qhe=["visible","mobile"],aH=gi(function(e,n){var a=e.visible,t=e.mobile,o=xv(e,Qhe),u=Ll(a),i=At(u,2),l=i[0],s=i[1],R=Ll(!1),d=At(R,2),y=d[0],I=d[1],b=ba(ba({},o),{},{visible:l});Gt(function(){s(a),a&&t&&I(h6())},[a,t]);var S=y?vt(nH,ho({},b,{mobile:t,ref:n})):vt(XB,ho({},b,{ref:n}));return vt("div",null,vt(XF,b),S)});aH.displayName="Popup";var tH=aH;$a();var Khe=ST(null),LG=Khe;function PG(){}function Yhe(){return""}function Xhe(e){return e?e.ownerDocument:window.document}var Zhe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function eDe(e){var n=function(a){h_(o,a);var t=D_(o);function o(u){var i;d_(this,o),i=t.call(this,u),i.popupRef=NR(),i.triggerRef=NR(),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&&g_((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();(!g_(d,R)||i.isContextMenuOnly())&&!g_(y,R)&&!i.hasPopupMouseDown&&i.close()}},i.getRootDomNode=function(){var s=i.props.getTriggerDOMNode;if(s)return s(i.triggerRef.current);try{var R=ph(i.triggerRef.current);if(R)return R}catch{}return Ri.findDOMNode(fh(i))},i.getPopupClassNameFromAlign=function(s){var R=[],d=i.props,y=d.popupPlacement,I=d.builtinPlacements,b=d.prefixCls,S=d.alignPoint,L=d.getPopupClassNameFromAlign;return y&&I&&R.push(m6(I,b,s,S)),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,S=s.popupAnimation,L=s.popupTransitionName,O=s.popupStyle,$=s.mask,z=s.maskAnimation,X=s.maskTransitionName,oe=s.maskMotion,te=s.zIndex,ve=s.popup,we=s.stretch,an=s.alignPoint,sn=s.mobile,ce=s.forceRender,le=s.onPopupClick,je=i.state,Ce=je.popupVisible,He=je.point,en=i.getPopupAlign(),Cn={};return i.isMouseEnterToShow()&&(Cn.onMouseEnter=i.onPopupMouseEnter),i.isMouseLeaveToHide()&&(Cn.onMouseLeave=i.onPopupMouseLeave),Cn.onMouseDown=i.onPopupMouseDown,Cn.onTouchStart=i.onPopupMouseDown,vt(tH,ho({prefixCls:R,destroyPopupOnHide:d,visible:Ce,point:an&&He,className:y,align:en,onAlign:I,animation:S,getClassNameFromAlign:i.getPopupClassNameFromAlign},Cn,{stretch:we,getRootDomNode:i.getRootDomNode,style:O,mask:$,zIndex:te,transitionName:L,maskAnimation:z,maskTransitionName:X,maskMotion:oe,ref:i.popupRef,motion:b,mobile:sn,forceRender:ce,onClick:le}),typeof ve=="function"?ve():ve)},i.attachParent=function(s){Si.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=Si(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},Zhe.forEach(function(s){i["fire".concat(s)]=function(R){i.fireEvents(s,R)}}),i}return m_(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=Nv(s,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(s=s||i.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Nv(s,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(s=s||i.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Nv(s,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Nv(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Si.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?d6(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=Uf.only(s),S={key:"trigger"};this.isContextMenuToShow()?S.onContextMenu=this.onContextMenu:S.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(S.onClick=this.onClick,S.onMouseDown=this.onMouseDown,S.onTouchStart=this.onTouchStart):(S.onClick=this.createTwoChains("onClick"),S.onMouseDown=this.createTwoChains("onMouseDown"),S.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(S.onMouseEnter=this.onMouseEnter,d&&(S.onMouseMove=this.onMouseMove)):S.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?S.onMouseLeave=this.onMouseLeave:S.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(S.onFocus=this.onFocus,S.onBlur=this.onBlur):(S.onFocus=this.createTwoChains("onFocus"),S.onBlur=this.createTwoChains("onBlur"));var L=(0,rH.default)(b&&b.props&&b.props.className,y);L&&(S.className=L);var O=ba({},S);Aw(b)&&(O.ref=Mw(this.triggerRef,b.ref));var $=Im(b,O),z;return(i||this.popupRef.current||R)&&(z=vt(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!i&&I&&(z=null),vt(LG.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}(kf);return n.contextType=LG,n.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Yhe,getDocument:Xhe,onPopupVisibleChange:PG,afterPopupVisibleChange:PG,onPopupAlign:PG,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 oH=eDe(p6);var ml={adjustX:1,adjustY:1},hl=[0,0],uH={left:{points:["cr","cl"],overflow:ml,offset:[-4,0],targetOffset:hl},right:{points:["cl","cr"],overflow:ml,offset:[4,0],targetOffset:hl},top:{points:["bc","tc"],overflow:ml,offset:[0,-4],targetOffset:hl},bottom:{points:["tc","bc"],overflow:ml,offset:[0,4],targetOffset:hl},topLeft:{points:["bl","tl"],overflow:ml,offset:[0,-4],targetOffset:hl},leftTop:{points:["tr","tl"],overflow:ml,offset:[-4,0],targetOffset:hl},topRight:{points:["br","tr"],overflow:ml,offset:[0,-4],targetOffset:hl},rightTop:{points:["tl","tr"],overflow:ml,offset:[4,0],targetOffset:hl},bottomRight:{points:["tr","br"],overflow:ml,offset:[0,4],targetOffset:hl},rightBottom:{points:["bl","br"],overflow:ml,offset:[4,0],targetOffset:hl},bottomLeft:{points:["tl","bl"],overflow:ml,offset:[0,4],targetOffset:hl},leftBottom:{points:["br","bl"],overflow:ml,offset:[-4,0],targetOffset:hl}};$a();var iH=Mu(R_());function cb(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 vt("div",{className:(0,iH.default)("".concat(o,"-content"),l),style:s},n!==!1&&vt("div",{className:"".concat(o,"-arrow"),key:"arrow"},a),vt("div",{className:"".concat(o,"-inner"),id:u,role:"tooltip",style:i},typeof t=="function"?t():t))}var nDe=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,S=n.onVisibleChange,L=n.afterVisibleChange,O=n.transitionName,$=n.animation,z=n.motion,X=n.placement,oe=X===void 0?"right":X,te=n.align,ve=te===void 0?{}:te,we=n.destroyTooltipOnHide,an=we===void 0?!1:we,sn=n.defaultVisible,ce=n.getTooltipContainer,le=n.overlayInnerStyle,je=n.arrowContent,Ce=n.overlay,He=n.id,en=n.showArrow,Cn=xv(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),ra=it(null);rs(a,function(){return ra.current});var Bn=ba({},Cn);"visible"in n&&(Bn.popupVisible=n.visible);var qn=function(){return vt(cb,{showArrow:en,arrowContent:je,key:"content",prefixCls:I,id:He,overlayInnerStyle:le},Ce)},Kn=!1,Jn=!1;if(typeof an=="boolean")Kn=an;else if(an&&eo(an)==="object"){var ft=an.keepParent;Kn=ft===!0,Jn=ft===!1}return vt(oH,ho({popupClassName:t,prefixCls:I,popup:qn,action:u,builtinPlacements:uH,popupPlacement:oe,ref:ra,popupAlign:ve,getPopupContainer:ce,onPopupVisibleChange:S,afterPopupVisibleChange:L,popupTransitionName:O,popupAnimation:$,popupMotion:z,defaultPopupVisible:sn,destroyPopupOnHide:Kn,autoDestroy:Jn,mouseLeaveDelay:R,popupStyle:d,mouseEnterDelay:l},Bn),b)},lH=gi(nDe);var cH=lH;var vH=e=>ka.createElement(cH,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(()=>Mu(sH())).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)}$a();var fH=class extends ka.Component{componentDidUpdate(n){this.props.componentDidUpdate(n.deps)}render(){return this.props.children}},_H=fH;var tDe=yt();var pH=function(e){return"ref:"+ar(e)(et.value)},dH=function(e){var n=pH(e);return function(a){return tDe(oc(n)(a))}},mH=function(e){var n=pH(e);return function(a){return mR(n)(a)}};var rDe=is(),hH=rn(Qe)($n),DH=J(Rn),oDe=al(zR(el)),gH={reflectSymbol:function(){return"deps"}},uDe=dH(gH),iDe=mH(gH),lDe=pn(dn);var cDe=function(e){var n=rDe(e);return function(){return function(){return n(_H)}}},sDe=cDe(ze)()(),vDe=function(e){var n=Uo(e);return function(a){return function(t){return function(o){return function(u){return Rp(a)(function(i){return t({init:hH(za(u(o)))(function(){return DH(o)}),update:function(l){return function(s){return hH(za(u(s)))(function(){return DH(s)})}},view:function(l){return function(s){return sDe({componentDidUpdate:oDe(s)(function(R){var d=n(uDe(R))(o);return d?new T(o):M.value}),deps:iDe(o)})(i(ge))}}})})}}}}};var RH=function(e){var n=vDe(e);return function(a){return function(t){return n("UseEffectPrime")(lDe)(a)(t)}}};var _De=is();var yH="click";var sb="top",xp=function(e){var n=_De(e);return function(){return function(){return n(vH)}}};var wH="right";var bH=e=>()=>e.preventDefault&&e.preventDefault();var xG=function(){return bH};var pDe=Sa();var NG=Z(nn),jG=bt(pDe(B({reflectSymbol:function(){return"value"}})(pe)(on))),OG=J(oa);var vb=function(e){return Je("")(NG(jG(so(e.target)))(function(n){return OG(n.value)}))},UG=function(e){return Je("")(NG(jG(so(e.target)))(function(n){return OG(n.value)}))},Fs=function(e){return Je("")(NG(jG(so(e.target)))(function(n){return OG(n.value)}))};var EH="/network/connections";var IH=15;var dDe=xp(ze)()(),mDe=Ba(me),hDe=function(){return"You\u2019ve hit the "+(ne(Ye)(IH)+`-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. `)}(),DDe=Vo(ze)("text-decoration-underline")(Mt(Y)()()("text-dark")({href:EH})("Manage my connections")),TH=function(e){return function(n){return dDe({placement:e,trigger:yH,overlay:mDe("")([Xe(hDe),DDe]),overlayStyle:rt({width:"15rem"}),overlayClassName:"t--connection-limit-tooltip"})(n)}};var SH=Z(nn),Np=function(e){var n=SH(e.guestPresenter)(function(a){if(a instanceof t_)return new T(a.value0);if(a instanceof Rs)return M.value;throw new Error("Failed pattern match at Livestream.Utils (line 21, column 31 - line 23, column 40): "+[a.constructor.name])});return SH(n)(function(a){return new T({name:a.school.name,id:a.school.id})})};var gDe=function(){function e(){}return e.value=new e,e}(),RDe=function(){function e(){}return e.value=new e,e}(),kG=function(){function e(){}return e.value=new e,e}(),yDe=function(){function e(){}return e.value=new e,e}(),wDe=function(){function e(){}return e.value=new e,e}(),bDe=function(){function e(){}return e.value=new e,e}(),CH=function(e){if(e instanceof gDe)return"account_settings_page";if(e instanceof RDe)return"preference_survey";if(e instanceof kG)return"livestream_registration";if(e instanceof yDe)return"chancing_wizard_network_step";if(e instanceof wDe)return"main_profile_page";if(e instanceof bDe)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 SDe=wc(Rc),BG=Hl(SDe),HG=Z(sa);var CDe=Vr(),FH=_e(ae);var GH=BG("profile_visibility_path")(function(e){return function(n){return HG(e({visibility:{publish_scope:eh(n)}}))(er)}}),MH=function(){return BG("profile_network_settings_path")(function(e){return function(n){return function(a){return HG(e({network_settings:{publish_scope:eh(a.publishScope),publish_context:CH(a.publishContext),automatic_accept_requests_for_school_list:a.autoAcceptForSchoolList,automatic_connection_requests_from_livestreams:a.autoRequestFromLivestreams,livestream:Fa(FH(cl(a.livestreamConference))(function(t){return{school_name:Fa(FH(Np(t))(function(o){return o.name})),title:t.title,id:t.id}}))}}))(er)}(CDe(n))}})},AH=BG("profile_name_path")(function(e){return function(n){return HG(e({name:n}))(er)}});var Ae=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),En=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}();var FDe=Jl(),GDe=Hr(Y),MDe=qt(Y),qG=Qt(Y),JG=Xu(Y),Uv=Te(me),jp=zn(Y)()(),WG=Br(gu),ADe=rn(Qe),$G=Zn(ga),E_=Te(ze),LH=Eu()(),LDe=Rv(Y),PDe=Vc(wt),PH=fo()(),zG=Zn(vo),xDe=XR()(),xH=Te(Y),NDe=tj(me),VG=lj(Y),jDe=Ba(Y),ODe=xp(ze)()(),UDe=Qt(me),kDe=Mt(Y)()(),BDe=Qa(Y),I_=J(Rn),NH=ADe($n),HDe=_w(),Lh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),jH=function(){function e(){}return e.value=new e,e}(),OH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),BH=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Ph=function(){function e(){}return e.value=new e,e}(),QG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),HH=function(e){return function(n){var a=function(R){return FDe({body:R,title:GDe("my-0")(function(){return e.stage instanceof fy?"Join the CollegeVine network":"Connect with "+e.schoolName}()),headerClass:"pb-0",onDismiss:n(new En(Ph.value)),size:ih.value})},t=_4(e.context),o=Se([MDe("mt-3")("Review your message before you send it"),qG("mt-2")(` Because this is your first message to the counselor, we want to make sure you\u2019re ready to send. `),JG("mt-4")("Your message"),Km(e.message),Uv("d-flex mt-4 justify-content-start")([jp("btn btn-primary btn-lg t--sem-user-connection-modal-confirm-message-"+t)({onClick:WG(function(){return n(new En(new QG({introMessage:e.message})))(),n(new Ae(new Lh(CS.value)))()})})("Send"),jp("btn btn-lg btn-outline-primary ml-3 text-nowrap")({onClick:$G(n)(new Ae(new Lh(Wm.value)))})("No, I need to edit something")])]),u=Se([Uv("text-center")([E_("")(LH("mt-4")({src:"/img/checkmate-icon.png",height:"80",width:"80"})),LDe("mt-4")("Connection request sent!"),qG("mx-md-4")(PDe(["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."])),jp("btn btn-lg btn-outline-secondary mt-4")({onClick:$G(n)(new En(Ph.value))})("Close")])]),i=jp("btn btn-outline-secondary ml-3 t--sem-user-connection-modal-close-"+t)({onClick:$G(n)(new En(Ph.value))})("Cancel"),l=function(){var R=ES(e.message)&&function(){if(e.profile.fullName instanceof T)return!0;if(e.profile.fullName instanceof M)return!wi(e.firstName)&&!wi(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 T&&e.vineBelowConnectionLimit.value0)return!1;if(e.vineBelowConnectionLimit instanceof T&&!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([Ia(St(e.profile.fullName))(Se([JG("mt-md-4")("Your preferred name"),Uv("form-row mx-1")([PH("col form-control mr-2 t--sem-user-connection-modal-first-name-"+t)({type:"text",value:e.firstName,onChange:zG(n)(function(y){return Ae.create(kH.create(Fs(y)))}),placeholder:"First name"}),PH("col form-control ml-2 t--sem-user-connection-modal-last-name-"+t)({type:"text",value:e.lastName,onChange:zG(n)(function(y){return Ae.create(BH.create(Fs(y)))}),placeholder:"Last name"})])])),JG("mt-md-4")("Your message"),xDe("form-control t--sem-user-connection-modal-text-area-"+t)({rows:7,value:e.message,onChange:zG(n)(function(y){return Ae.create(UH.create(vb(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! `}),E_("mt-2")(i4(e.message)),xH("mt-3 mt-md-4 small")("The ideal connection message should include:"),NDe("small")([VG("")("Your name, where you\u2019re from, and a bit about who you are"),VG("")("What you\u2019re interested in studying along with one or two insightful questions"),VG("")("That you\u2019re eager to connect with an admissions counselor and would love to stay in touch")]),Uv("d-flex mt-4 justify-content-start")([TH(sb)(E_("")(jp("btn btn-primary btn-lg t--sem-user-connection-modal-connect-"+t)({onClick:WG(function(){return function(){if(e.profile.fullName instanceof T)return ge;if(e.profile.fullName instanceof M)return n(new Ae(new OH({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 Ae(new Lh(SS.value)))()}),disabled:!R||d,style:rt({pointerEvents:function(){return d?"none":"auto"}()})})("Connect"))),i])])}(),s=Uv("mx-md-7")([E_("border border-success rounded p-4 my-4")(Uv("row align-items-center")([E_("col-12 col-md-auto text-center text-md-left")(LH("img-fluid")({src:"/img/network/publish-profile-icon.png",height:"67",width:"143"})),E_("col text-center text-md-left")(jDe("fw-bold font-weight-bold text-gray-800")("Network with verified admissions counselors on CollegeVine"))])),Uv("d-flex flex-nowrap align-items-center")([xH("mr-4")("Publish your profile to join the CollegeVine Network"),ODe({placement:wH,overlay:UDe("")([Xe(` 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 `),kDe("")({href:UU})("your profile"),Xe(".")]),overlayStyle:rt({width:"15rem"})})(BDe("cursor-default text-secondary fe fe-info large")(""))]),qG("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."),Uv("d-flex mt-4 justify-content-start justify-content-md-center")([jp("btn btn-primary t--sem-user-connection-modal-publish-profile-"+t)({onClick:WG(function(){return n(new Ae(jH.value))(),n(new Ae(new Lh(Wm.value)))()})})("Publish profile"),i])]);return E_("t--network-sem-user-modal")(function(){if(e.stage instanceof fy)return a(s);if(e.stage instanceof Wm)return a(l);if(e.stage instanceof SS)return a(o);if(e.stage instanceof CS)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])}())}},qH=function(e){return function(n){if(n instanceof Ae){if(n.value0 instanceof Lh)return I_({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 jH)return NH(za(GH(Ei.value)))(function(){return I_({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:Ei.value}})});if(n.value0 instanceof OH)return NH(za(AH(n.value0.value0)))(function(){return I_({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 T(IF(n.value0.value0))}})});if(n.value0 instanceof UH)return I_({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 kH)return I_({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 BH)return I_({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 En)return I_(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])}},qDe=function(e){var n=KU(e);return n?Wm.value:fy.value},JH=function(e){return{firstName:"",lastName:"",message:"",profile:HDe(e.profile),stage:qDe(e.profile),schoolName:e.schoolName,context:e.context,vineBelowConnectionLimit:e.vineBelowConnectionLimit}};var fb=Re(Wt(Pt)),JDe=Vr(),KG=Te(ze),WDe=Eu()(),YG=Ba(Y),$De=Qa(Y),zDe=Pv(),VDe=ch(Qe)(),QDe=yn(Le),KDe=or(ze)()(),YDe=zn(me)()(),XDe=Br(VR),ZDe=xG(),ege=Ua($t),Op=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}(),XG=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ZG=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}(),nge=function(){function e(){}return e.value=new e,e}(),age={eq:function(e){return function(n){return e instanceof Op&&n instanceof Op?e.value0.url===n.value0.url:e instanceof xh&&n instanceof xh?fb(e.value0.backgroundColorClass)(n.value0.backgroundColorClass)&&e.value0.initials===n.value0.initials&&fb(e.value0.textColorClass)(n.value0.textColorClass):e instanceof XG&&n instanceof XG?fb(e.value0.backgroundColorClass)(n.value0.backgroundColorClass)&&e.value0.iconClass===n.value0.iconClass:e instanceof ZG&&n instanceof ZG?fb(e.value0.backgroundColorClass)(n.value0.backgroundColorClass)&&e.value0.name===n.value0.name:!1}}},tge=RH(age),$H=function(){return function(e){var n=JDe(e),a=function(){var o=Ka(n.shape)(WH.value);if(o instanceof WH)return"rounded-circle";if(o instanceof nge)return"rounded";throw new Error("Failed pattern match at Dashkit.Avatar (line 122, column 9 - line 124, column 37): "+[o.constructor.name])}(),t=function(o){return KG("avatar "+($U(Ka(n.size)(Rw.value))+(" "+Ka(n.className)(""))))(function(){if(o instanceof Op)return WDe("avatar-img img-fluid "+(a+(" "+Ka(n.borderClassName)(""))))({src:o.value0.url});if(o instanceof xh)return YG("avatar-title font-weight-bold fw-bold "+(a+(" "+(Je("")(o.value0.backgroundColorClass)+(" "+(Je("")(o.value0.textColorClass)+(" "+Ka(n.borderClassName)(""))))))))(o.value0.initials);if(o instanceof XG)return KG("avatar-title "+(a+(" "+(Je("")(o.value0.backgroundColorClass)+(" "+Ka(n.borderClassName)(""))))))($De(o.value0.iconClass)(""));if(o instanceof ZG)return KG("avatar-title "+(a+(" "+(Je("")(o.value0.backgroundColorClass)+(" "+Ka(n.borderClassName)(""))))))(YG("material-symbol")(o.value0.name));throw new Error("Failed pattern match at Dashkit.Avatar (line 83, column 11 - line 119, column 46): "+[o.constructor.name])}())};return vw(zDe(Ts(n.source))(function(o){return VDe(tge(n.source)(function(u){return QDe(o.value1(u))}))(function(){return v_(Se([t(o.value0),function(){return o.value0 instanceof Op?da(cl(n.hideAvatar))(function(u){return KDe("hq-only-menu-item")({style:rt({marginTop:"-50px",marginLeft:"200px"})})(YDe("btn btn-sm btn-warning mb-4 t--hide-avatar")({onClick:XDe(function(i){return function(){return ZDe(i)(),ege(o.value1)(u)()}})})([YG("badge badge-info bg-info text-dark mr-2")("HQ"),Xe("Hide")]))}):Vn}()]))})}))}};var rge=$H();var zH=function(e){return function(n){return rge({source:function(){if(e.avatarUrl instanceof T)return new Op({url:e.avatarUrl.value0});if(e.avatarUrl instanceof M)return new xh({initials:e.initials,backgroundColorClass:M.value,textColorClass:M.value});throw new Error("Failed pattern match at Sem.Utils (line 16, column 15 - line 24, column 14): "+[e.avatarUrl.constructor.name])}(),size:n})}};var eM=U(ae),oge=tn(A2(of));var VH=function(e){var n=function(a){return Je("")(eM(Uu)(im(0)(a)))};return wv(function(){var a=Qo(" ")(e);return a.length===2?n(a[0])+n(a[1]):a.length===1?n(a[0]):a.length===0?"":Je("?")(oge(eM(n)(b0(a)))(eM(n)(Xd(a))))}())},QH=function(e){return e.firstName+(" "+e.lastName)};var nM=Hr(Y),uge=Mt(Y)()(),ige=Mt(me)()(),KH=Qa(Y),lge=zn(me)()(),cge=al(Dv(el)),sge=_e(ae),vge=Z(nn),aM=Te(Y),_b=Te(me),YH=Te(ze),fge=km(Y),XH=ls()(),_ge=Xu(Y),pge=Qt(Y),Up=J(Rn),ZH=rn(Qe),dge=ZH($n),mge=Ma(Le),hge=ZH(sa),Dge=J(Xn),gge=ut(yr(Ga)),eq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Nh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),nq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),aq=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),tq=function(){var e=function(a){return function(t){return function(o){var u=nM("text-primary")(t.semUser.firstName+(" from "+(t.semUser.school.name+" sent you a connection request!"))),i=nM("text-primary")("Reach out to "+(t.semUser.firstName+" to ask a question or introduce yourself!")),l=[u,uge("btn btn-primary d-flex align-items-center w-50 justify-content-center t--livestream-details-view-pending-invitation-from-sem-user")({href:LF(new bp(t.semUser.id))})("View Message")],s=QH(t.semUser),R=VH(s),d=nM("text-primary")("Reach out to "+(t.semUser.firstName+" to ask a question!")),y=[d,ige("btn btn-primary d-flex align-items-center w-50 justify-content-center t--livestream-details-messages-link")({href:LF(new bp(t.semUser.id))})([KH("fe fe-message-square mr-2 large")(""),Xe("Send a message to "+t.semUser.firstName)])],I=function(L){return lge("btn btn-primary d-flex align-items-center justify-content-center t--livestream-details-connect-with-sem-user")({onClick:cge(o)(sge(vge(a.currentUser)(function(O){return O.profile}))(nq.create)),disabled:L.isDisabled})([KH("fe fe-message-square mr-2 large")(""),Xe("Connect with "+t.semUser.firstName)])},b=[i,I({isDisabled:!1})],S=[i,I({isDisabled:!0}),aM("mt-4 text-secondary small")("Invitation pending")];return _b("t--livestream-details-guest-presenter-sem-user mb-4")([da(a.currentUser)(function(L){return Ia(L.hasAccessToNetwork&&t.semUser.school.allowedToContact)(YH("card")(_b("card-body")(function(){if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof bv)return y;if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof Nl&&t.semUser.connection.value0.initiator instanceof ds||t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof ms&&t.semUser.connection.value0.initiator instanceof ds)return S;if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof Nl&&t.semUser.connection.value0.initiator instanceof ps)return l;if(t.semUser.connection instanceof T&&t.semUser.connection.value0.status instanceof ms&&t.semUser.connection.value0.initiator instanceof ps||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])}())))}),fge("text-uppercase text-secondary")("Your guest presenter"),_b("row align-items-center mt-4")([YH("col-auto")(zH(XH(t.semUser)({initials:R}))(gw.value)),_b("col")([_ge("mb-1")(s),aM("text-secondary small")(t.semUser.school.name),aM("text-secondary small")(t.semUser.title)]),da(t.semUser.bio)(function(L){return pge("mt-4 mb-2 ml-2")(L)})]),da(t.modal)(function(L){return HH(L.value0)(function(O){return o(Nh.create(O))})})])}}},n=function(a){return function(t){return function(o){if(o instanceof Nh&&o.value0 instanceof En){if(o.value0.value0 instanceof Ph)return Up({currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:M.value});if(o.value0.value0 instanceof QG)return dge(mge(hge(a6(t.semUser.school.id)(t.semUser.id)({introMessage:o.value0.value0.value0.introMessage}))(function(){return Dge(new aq({introMessage:o.value0.value0.value0.introMessage}))})))(function(){return Up(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 T&&o instanceof Nh&&o.value0 instanceof Ae)return gge(Nh.create)(function(u){return{currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:new T(new eq(u))}})(qH(t.modal.value0.value0)(new Ae(o.value0.value0)));if(o instanceof Nh&&o.value0 instanceof Ae)return Up(t);if(o instanceof nq)return Up({currentUser:t.currentUser,semUser:t.semUser,vineBelowConnectionLimit:t.vineBelowConnectionLimit,modal:new T(new eq(JH({schoolName:a.semUser.school.name,context:TS.value,profile:o.value0,vineBelowConnectionLimit:a.vineBelowConnectionLimit})))});if(o instanceof aq)return Up({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 T({initiator:ds.value,introMessage:o.value0.introMessage,status:Nl.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 hv("Livestream Guest Presenter SEM user")(function(a){return{init:Up(XH(a)({modal:M.value})),view:e(a),update:n(a)}})}();var pb=function(){function e(){}return e.value=new e,e}(),rq=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}();var Rge=yt(),yge=tn(jS),tM=function(e){var n=function(u){return Rge(ff(u))},a=n(gs("[^a-z0-9\\-_]+")(yge(ip)(hy))),t=n(gs("^-|-$")(ip)),o=n(gs("-{2,}")(ip));return zm(t)("")(zm(o)("-")(zm(a)("-")(zf(Hm(e)))))};var Ege=U(Ve),Ige=_e(Ve),jh=ne(Ye),rM=wa(),Tge=tn(Rt),Oh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Sge=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Cge=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Fge=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Uh=function(){function e(){}return e.value=new e,e}(),Gge=function(){function e(){}return e.value=new e,e}();var iq=function(e){var n=function(t){return t.key+("="+t.value)},a=function(t){return t.length===0?"":"?"+sr("&")(t)};return a(Ege(n)(e))};var lq=function(e){return Ige(e)(function(n){if(n instanceof Oh)return{key:"utm_cv_source",value:n.value0};if(n instanceof Sge)return{key:"utm_source",value:n.value0};if(n instanceof Cge)return{key:"utm_campaign",value:n.value0};if(n instanceof Fge)return{key:"utm_content",value:n.value0};throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 196, column 3 - line 204, column 36): "+[n.constructor.name])})};var db=function(e){return function(n){return function(a){var t=function(){if(e instanceof Uh)return"i";if(e instanceof Gge)return"o";throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 112, column 12 - line 114, column 24): "+[e.constructor.name])}();return"/experts/profile/"+(t+("/"+(jh(n.id)+("-"+(tM(n.name)+iq(lq(a)))))))}}};var cq=function(e){return function(n){return function(a){var t=function(){if(n instanceof pb)return[];if(n instanceof rq)return[{key:"theme",value:jh(rM(n.value0))}];if(n instanceof oq)return[{key:"package",value:jh(rM(n.value0))}];if(n instanceof uq)return[{key:"packageOffer",value:jh(rM(n.value0))}];throw new Error("Failed pattern match at ServiceProviders.Retail.Urls (line 146, column 5 - line 154, column 71): "+[n.constructor.name])}(),o=Tge(t)(lq(a));return"/experts/advising/book/"+(jh(e.id)+("-"+(tM(e.name)+iq(o))))}}};var Mge=ne(Ye),Age=wa(),Lge=Ba(me),oM=Qa(Y),Gs=Te(me),sq=km(Y),Pge=U(Ve),xge=Mt(ze)()(),mb=Te(ze),Nge=tl()(),jge=Hr(Y),vq=Mt(me)()(),hb=Mt(Y)()(),fq=function(e){return function(n){var a=new Oh("sp-guest-presenter-card-from-conference-"+Mge(Age(e))),t=function(d){return Lge("badge badge-light bg-light text-dark mr-3")([oM("fe fe-tag mr-2")(""),Xe(d.name)])},o=db(Uh.value)(n.entity)([a]),u=function(d){return function(y){return Gs("mb-3")([sq("text-secondary text-uppercase mb-2")(d),y])}},i=Gs("mt-4")([da(fe(n.entity.shortEducation))(function(d){return u("Education")(Xe(d))}),u("Bio")(Km(n.entity.bio)),C8(fi(n.entity.tags))(u("Specialties")(Se(Pge(t)(n.entity.tags))))]),l=Gs("row")([da(fe(n.entity.imageUrl))(function(d){return xge("btn btn-link text-body p-0 m-0")({href:o,target:"_blank"})(mb("col-auto my-auto")(mb("avatar avatar-md")(Nge("avatar-img rounded-circle")({src:d}))))}),Gs("col-auto my-auto")([sq("text-uppercase text-secondary mb-2")("Advisor"),jge("m-0")(n.entity.name)]),Gs("col text-center text-md-right my-auto")([mb("d-none d-md-block")(vq("btn btn-sm btn-outline-primary t--open-message-modal")({href:o,target:"_blank"})([oM("fe fe-message-square mr-2")(""),Xe("Message")])),mb("d-block d-md-none")(vq("btn btn-sm btn-outline-primary t--open-message-modal")({href:o,target:"_blank"})([oM("fe fe-message-square mr-2")(""),Xe("Message")]))])]),s=cq(n.entity)(pb.value)([a]),R=da(n.advisingConfig)(function(d){return Gs("mt-4")([Gs("d-none d-md-block")([da(d.freeConsultationDurationMinutes)(function(y){return hb("btn btn-primary px-3 mr-3")({href:o,target:"_blank"})("Book a free consultation")}),hb("btn btn-outline-primary px-3 mr-3")({href:s,target:"_blank"})("Book a session")]),Gs("d-block d-md-none text-center")([da(d.freeConsultationDurationMinutes)(function(y){return hb("btn btn-primary mr-3")({href:o,target:"_blank"})("Book a free consultation")}),hb("btn btn-outline-primary")({href:s,target:"_blank"})("Book a session")])])});return Gs("mt-4 mt-md-0 t--service-provider-guest-presenter")([l,i,R])}};var kh=function(e){return function(n){return function(a){return function(t){if(n instanceof t_)return tq({semUser:n.value0,currentUser:a,vineBelowConnectionLimit:t.vineBelowConnectionLimit});if(n instanceof Rs)return fq(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 _q="/experts/essay-review";var Oge=Mt(me)()(),Uge=Qa(Y),kp=Te(Y),Iu=Te(ze),Xo=Te(me),pq=Hr(Y),dq=tl()(),mq=_e(Ve),kge=Ba(Y),hq=_e(ae),Bge=Qt(me),Dq=Vo(Y),uM=Mt(Y)()(),Hge=ne(Ye),Bh=U(ae),qge=ey(me)()(),Jge=ne(ni),Hh=function(e){var n=function(a){return function(t){return Oge("mr-3")({href:t,target:"_blank"})([Xe(a),Uge("fe fe-external-link ml-1")("")])}};return Se([kp("text-uppercase text-muted small mb-2")("School information"),Iu("card shadow-none")(Xo("card-body")([pq("mb-1")(e.name),kp("text-uppercase small text-secondary")(e.cityState),Xo("mt-3 d-none d-md-block")([n("Stats")(Dw(p_.value)(e.slug)),n("Cost")(Dw(vh.value)(e.slug)),n("Map")(Dw(p_.value)(e.slug))]),Xo("mt-3 d-md-none")([n("Stats")(bF(p_.value)(e.slug)),n("Cost")(bF(vh.value)(e.slug))])]))])},Wge=function(e){var n=function(i){return dq("avatar-img rounded-circle")({src:i})},a=sr(" ")(mq(Qo(" ")(e.fullName))(il(1))),t=kge("avatar-title rounded-circle text-uppercase")(a),o=function(i){return Je("")(hq(i)(function(l){return" '"+l}))},u=function(i){return function(l){return Bge("")([Dq("")(i+": "),Xe(l)])}};return Se([kp("text-uppercase text-muted small mb-2")("Your host"),Xo("row align-items-center mb-4 pr-4")([Iu("col-auto")(Iu("avatar")(bn(t)(n)(e.pictureUrl))),Iu("col")(Xo("row align-items-center justify-content-between")([kp("col-12 col-md-auto x-large")(e.fullName),Iu("col-12 col-md-auto")(da(e.allStreamsUrl)(function(i){return uM("t--host-streams")({href:i})("See all "+(Hge(e.totalStreams)+(" streams by "+e.firstName)))}))]))]),Se(Wo([Bh(u("Undergrad College"))(hq(e.undergrad.college)(function(i){return i+o(e.undergrad.year)})),Bh(u("Major"))(e.undergrad.major),Bh(u("Graduate College"))(e.gradCollege),Bh(u("Work Experience"))(e.workExperience),Bh(u("My Admissions Story"))(e.admissionsStory)]))])},$ge=Xo("rounded bg-tan mb-3 overflow-hidden")([Xo("row")([Iu("col-12 col-md")(Xo("m-4")([Xu(Y)("")("Get your essay reviewed by an expert"),Qt(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. `),uM("btn btn-dark px-4")({href:s_({key:"utm_cv_source",value:"essay-livestream-cta"})(_q)})("Submit my essay for review")])),Iu("d-none d-md-block col-12 col-md-auto")(Eu()()("h-100")({src:"/img/livestreams/mkt-239-livestreams-advisors-essays-cta.svg"}))])]),zge=function(e){return Se([kp("text-uppercase text-muted small mb-2")("Description"),Xo("")([Iu("col-6 col-md-4 float-right")(dq("img-fluid rounded")({src:e.imageUrl})),Xo("")(mq(Qo(` `)(e.description))(function(n){return qge("")({dangerouslySetInnerHTML:{__html:n}})([])}))])])},Vge=function(e){var n=e.paths.collegeFair+("?utm_cv_source=banner-livestream-watch-"+Jge(e.conference.id));return Iu("card mt-3")(Iu("card-body py-3")(Xo("row align-items-center")([Iu("col-12 col-md-auto mb-3 mb-md-0")(kp("bg-warning rounded px-3 py-1 small mt-2 mt-md-0")("SPECIAL EVENT")),Xo("col-12 col-md mb-3 mb-md-0")([Xe("This livestream was part of the "),Dq("")("\u{1F3AA} Student panel college fair"),Xe(". Recordings for all 100+ Q&A panels are available.")]),Iu("col-12 col-md-auto")(uM("btn btn-sm btn-outline-primary px-3")({href:n})("See all recordings"))])))},Db=function(e){var n=function(){if(e.conference.presenter instanceof T&&e.conference.guestPresenter instanceof T||e.conference.presenter instanceof T&&e.conference.guestPresenter instanceof M||e.conference.presenter instanceof M&&e.conference.guestPresenter instanceof T)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([Ia(e.conference.collegeFair)(Vge(e)),function(){return e.featureFlags.mkt293LivestreamsEssayReviewCtaForAdvisorStreams&&e.conference.guestPresenter instanceof T&&e.conference.guestPresenter.value0 instanceof Rs?$ge:Vn}(),Iu("card")(Xo("card-body")([pq("text-center mb-4")("About this livestream"),Xo("row")([Xo(n)([da(e.conference.school)(function(a){return Iu("d-md-none")(Hh(a))}),zge(e.conference)]),Xo(n)([da(e.conference.guestPresenter)(function(a){return kh(e.conference.id)(a)(e.user)({vineBelowConnectionLimit:e.vineBelowConnectionLimit})}),da(e.conference.school)(function(a){return Iu("d-none d-md-block")(Hh(a))}),da(e.conference.presenter)(Wge)])])]))])};var gq=rn(Qe),Qge=gq($n),Kge=Ma(Le),Yge=Nt(xr),Rq=J(Xn),gb=J(Rn),Xge=gq(sa),Rb=J(oa),yq=Te(Y),yb=Xu(Y),wb=Z0(me),bb=K0(me),kv=$f(me),Dl=Y0(Y),Eb=X0(me),Ib=_e(Ve),Bv=cs(Y),Tb=cs(ze),Sb=zn(Y)()(),Cb=Zn(ga),Zge=qi(Ya),eRe=U(Ve),nRe=tn(Js(Js(Gg))),aRe=qi(Ku),tRe=qi(D7),rRe=ne(ni),oRe=qt(Y),uRe=Te(me),Fb=function(){function e(){}return e.value=new e,e}(),wq=function(){function e(){}return e.value=new e,e}(),qh=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),bq=function(){function e(){}return e.value=new e,e}(),Eq=function(){function e(){}return e.value=new e,e}(),Iq=function(e){return function(n){return function(a){var t=function(u){return Qge(Kge(Yge(u)(function(i){return Rq(Eq.value)})))(function(){return gb({ctas:n.ctas,stage:wq.value,error:M.value})})},o=function(u){if(u instanceof vl)return WO({fromConference:e.conference.id,cta:u.value0.conferenceId});if(u instanceof fl)return qO({fromConference:e.conference.id,ctaId:u.value0.id});if(u instanceof _l)return JO({fromConference:e.conference.id,ctaId:u.value0.id});if(u instanceof pl)return HO({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 qh)return t(Xge(o(a.value0))(function(){return Rq(bq.value)}));if(a instanceof bq)return gb({ctas:n.ctas,error:n.error,stage:Fb.value});if(a instanceof Eq)return gb({ctas:n.ctas,stage:Fb.value,error:new T("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])}}},Tq=function(e){return gb({stage:Fb.value,error:M.value,ctas:e})},iRe=function(){return Po($o(cn)([jl.value,new ht(" "),Ol.value,new ht(", "),kl.value,new ht(":"),bi.value,new ht(" "),Bl.value]))}(),Sq=function(e){return function(n){if(e.ctas.length===0)return Vn;var a=function(L){return L instanceof pl?Rb(L.value0):M.value},t=function(L){return L instanceof fl?Rb(L.value0):M.value},o=function(L){return L instanceof _l?Rb(L.value0):M.value},u=function(L){return L instanceof vl?Rb(L.value0):M.value},i=function(){if(e.stage instanceof Fb)return Vn;if(e.stage instanceof wq)return yq("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?Vn:Se([yb("")("Referrals"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Title"),Dl("")("Actions")])]),Eb("")(Ib(L)(function(O){return kv("t--cta t--cta-referral")([Bv("pt-3")(O.title),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new pl(O)))})("Launch CTA"))])}))])])},s=function(L){return L.length===0?Vn:Se([yb("")("General"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Title"),Dl("")("URL"),Dl("")("Link Text"),Dl("")("Actions")])]),Eb("")(Ib(Rf(Zge(function(O){return O.title}))(L))(function(O){return kv("t--cta t--cta-general")([Bv("pt-3")(function(){var $=Ct(O.autoDisplayMinutesFromStart);return $?"\u23F0 ":""}()+O.title),Bv("pt-3")(O.url),Bv("pt-3")(O.buttonText),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new fl(O)))})("Launch CTA"))])}))])])},R=function(L){return L.length===0?Vn:Se([yb("")("Featured Service Providers"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Advisors"),Dl("")("Link Text"),Dl("")("Actions")])]),Eb("")(Ib(L)(function(O){return kv("t--cta t--cta-featured-sp")([Bv("pt-3")(sr(", ")(eRe(function($){return $.name})(O.providers))),Bv("pt-3")(O.linkText),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new _l(O)))})("Launch CTA"))])}))])])},d=function(L){return L.length===0?Vn:Se([yb("")("Upcoming events"),wb("table table-sm mb-0")([bb("")([kv("")([Dl("")("Livestream"),Dl("")("Date & Time"),Dl("")("Actions")])]),Eb("")(Ib(Rf(nRe(aRe(function(O){return O.startTime}))(tRe(function(O){return O.conferenceId})))(L))(function(O){return kv("t--cta t--cta-stream-"+rRe(O.conferenceId))([Bv("pt-3")(O.title),Bv("pt-3")(iRe(O.startTime)+(" "+n_)),Tb("text-nowrap")(Sb("btn btn-white btn-sm px-4 t--open")({onClick:Cb(n)(new qh(new vl(O)))})("Launch CTA"))])}))])])},y=zr(a)(e.ctas),I=zr(t)(e.ctas),b=zr(o)(e.ctas),S=zr(u)(e.ctas);return Se([oRe("")("Calls to action"),uRe("t--ctas position-relative")([da(e.error)(function(L){return yq("alert alert-danger")(L)}),d(S),s(I),R(b),l(y),i])])}};var Cq=Hl(wc(Rc)),Fq=Z(sa),lRe=UC(pe),Bp=function(){function e(){}return e.value=new e,e}(),Jh=function(){function e(){}return e.value=new e,e}(),Wh=function(){function e(){}return e.value=new e,e}(),Gq={eq:function(e){return function(n){return e instanceof Bp&&n instanceof Bp||e instanceof Jh&&n instanceof Jh||e instanceof Wh&&n instanceof Wh}}},Mq=Cq("profile_validate_username_path")(function(e){return function(n){return Fq(e({username:n}))(yc(function(a){return lRe("username validation result")(a)(function(t){return t==="available"?new T(Bp.value):t==="taken"?new T(Jh.value):t==="invalid"?new T(Wh.value):M.value})}))}}),Aq=Cq("profile_set_username_path")(function(e){return function(n){return Fq(e({username:n}))(er)}});var cRe=Re(Wt(Fl()(Bi(Bi(Cl)()({reflectSymbol:function(){return"username"}})(Pt))()({reflectSymbol:function(){return"result"}})(Gq)))),iM=Te(me),Lq=Te(ze),sRe=Qt(Y),vRe=Eu()(),$h=Te(Y),fRe=fo()(),_Re=Zn(vo),Pq=zn(Y)()(),pRe=Zn(ga),dRe=al(Dv(el)),lM=rn(Qe)($n),mRe=lr(Rn),cM=Ma(Le),hRe=li(Ga),T_=J(Rn),DRe=U(Ga),gRe=Z(sa),RRe=Sf(xr),xq=J(Xn),Nq=function(){function e(){}return e.value=new e,e}(),jq=function(){function e(){}return e.value=new e,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,a){this.value0=n,this.value1=a}return e.create=function(n){return function(a){return new e(n,a)}},e}(),Bq=function(){function e(){}return e.value=new e,e}(),Hq=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}(),vM=function(){function e(){}return e.value=new e,e}(),qq=function(e){return function(n){var a=e.username!==""&&St(e.updating)&&cRe(e.validated)(new T({username:e.username,result:Bp.value}));return Se([iM("row")([Lq("col col-md-6")(sRe("")("This username will keep your identity private in CollegeVine communities, livestreams, and on peer essay review leaderboards.")),Lq("col-6 d-none d-md-block")(vRe("img-fluid")({src:"/img/illustrations/clipboards.svg"}))]),$h("")("Your username:"),iM("input-group")([fRe("form-control")({autoFocus:!0,type:"text",value:e.username,onChange:_Re(n)(function(t){return Ae.create(Oq.create(Fs(t)))})})]),iM("d-flex mt-3")([Pq("btn btn-light mr-3")({onClick:pRe(n)(new En(vM.value))})("Cancel"),Pq("btn btn-primary t--submit-username")({type:"button",disabled:!a,onClick:dRe(n)(function(){return a?new T(new Ae(Bq.value)):M.value}())})("Save")]),da(e.validated)(function(t){if(t.result instanceof Bp)return Vn;if(t.result instanceof Jh)return $h("small text-danger")("Sorry, this username is already taken");if(t.result instanceof Wh)return $h("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 Nq)return $h("text-success")("Updating your username...");if(t instanceof jq)return $h("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])})])}},Jq=function(e){return function(n){if(n instanceof Ae){if(n.value0 instanceof Oq)return lM(mRe(n.value0.value0!=="")(cM(hRe(Xt(100))(new Ae(new Uq(n.value0.value0))))))(function(){return T_({updating:e.updating,validated:e.validated,username:n.value0.value0})});if(n.value0 instanceof Uq){if(n.value0.value0===e.username)return lM(cM(DRe(function(){var a=kq.create(n.value0.value0);return function(t){return Ae.create(a(t))}}())(Mq(n.value0.value0))))(function(){return T_({username:e.username,validated:M.value,updating:M.value})});if(qe)return T_(e)}if(n.value0 instanceof kq)return T_({updating:e.updating,username:e.username,validated:new T({username:n.value0.value0,result:n.value0.value1})});if(n.value0 instanceof Bq)return lM(cM(gRe(RRe(Aq(e.username)))(function(a){if(a instanceof Pe)return xq(new En(new sM(e.username)));if(a instanceof Me)return xq(new Ae(Hq.value));throw new Error("Failed pattern match at Community.Profile.UsernameForm (line 119, column 7 - line 123, column 48): "+[a.constructor.name])})))(function(){return T_({username:e.username,validated:M.value,updating:new T(Nq.value)})});if(n.value0 instanceof Hq)return T_({username:e.username,validated:e.validated,updating:new T(jq.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 En)return T_(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])}},Wq=function(e){return{username:e,validated:M.value,updating:M.value}};var yRe=Vr(),wRe=xp(ze)()(),bRe=Ba(me),ERe=Qa(Y),IRe=function(e){var n=Nm(e);return function(){return function(a){return function(t){var o=yRe(a);return wRe({placement:sb,overlay:Se(n(t)),overlayStyle:Ka(o.overlayStyle)(rt({width:"15rem"}))})(bRe("d-inline-flex align-items-center text-secondary "+o.className)([ERe("d-inline-block fe fe-help-circle "+function(){var u=wi(o.anchorText);return u?"":"mr-2"}())(""),Xe(o.anchorText)]))}}}},Gb=function(e){var n=IRe(e)();return function(a){return n({className:a,anchorText:""})}};var fM=function(e){return e};var TRe=function(e){return e},$q=function(e){var n=Ke(e),a=TRe(e.Eq0());return{compare:function(t){return function(o){return D2(n(t)(o))}},Eq0:function(){return a}}};var zq=Nn(xn),zh=Pn(zq)(Gn(Fn)),Vq=An(Mn),Vh=Ln(Vq),Qq=Un(On),Qh=jn(Qq),SRe=U(ae),Hp=function(){function e(){}return e.value=new e,e}(),qp=function(){function e(){}return e.value=new e,e}(),Jp=function(){function e(){}return e.value=new e,e}(),Wp=function(){function e(){}return e.value=new e,e}(),$p=function(){function e(){}return e.value=new e,e}(),S_=function(){function e(){}return e.value=new e,e}(),CRe={to:function(e){if(e instanceof ye)return Hp.value;if(e instanceof ie&&e.value0 instanceof ye)return qp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ye)return Jp.value;if(e instanceof ie&&e.value0 instanceof ie&&e.value0.value0 instanceof ie&&e.value0.value0.value0 instanceof ye)return Wp.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 $p.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 S_.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 Hp)return new ye(Ne.value);if(e instanceof qp)return new ie(new ye(Ne.value));if(e instanceof Jp)return new ie(new ie(new ye(Ne.value)));if(e instanceof Wp)return new ie(new ie(new ie(new ye(Ne.value))));if(e instanceof $p)return new ie(new ie(new ie(new ie(new ye(Ne.value)))));if(e instanceof S_)return new ie(new ie(new ie(new ie(new ie(Ne.value)))));throw new Error("Failed pattern match at Common.Persona (line 25, column 1 - line 25, column 34): "+[e.constructor.name])}},Kq=kn(CRe)(zh(zh(zh(zh(zh(zq)(Vq))(Vh))(Vh))(Vh))(Vh))(Qh(Qh(Qh(Qh(Qh(Qq))))))(Vh);var FRe={eq:function(e){return function(n){return e instanceof Hp&&n instanceof Hp||e instanceof qp&&n instanceof qp||e instanceof Jp&&n instanceof Jp||e instanceof Wp&&n instanceof Wp||e instanceof $p&&n instanceof $p||e instanceof S_&&n instanceof S_}}},Mb=function(e){if(e instanceof Hp)return"student";if(e instanceof qp)return"transfer_student";if(e instanceof Jp)return"counselor";if(e instanceof Wp)return"iec";if(e instanceof $p)return"parent";if(e instanceof S_)return"sem_user";throw new Error("Failed pattern match at Common.Persona (line 43, column 13 - line 49, column 24): "+[e.constructor.name])},Yq=function(){var e=Tn(Mb)(Kq);return ta(Ze)({parse:function(n){return n==="unknown"?new T(M.value):SRe(T.create)(e(n))},default:M.value,diagnosticName:"User Persona"})}(),Xq=function(e){if(e instanceof Hp)return"Student";if(e instanceof qp)return"Transfer Student";if(e instanceof Jp)return"High School Counselor";if(e instanceof Wp)return"Independent Educational Counselor (IEC)";if(e instanceof $p)return"Parent";if(e instanceof S_)return"SEM User";throw new Error("Failed pattern match at Common.Persona (line 33, column 11 - line 39, column 24): "+[e.constructor.name])},Zq=function(){return bf(FRe)(S_.value)(Kq)}();function eJ(){typeof fbq!="undefined"&&fbq("trackCustom","LivestreamRegistrationComplete")}var GRe=J(ct),MRe=ts($c(!1));var Ab=function(e){if(ts(Zl(MRe)))return GRe(ge);if(qe)return eJ;throw new Error("Failed pattern match at Livestream.Upcoming.Register.Tracking (line 18, column 1 - line 18, column 53): "+[e.constructor.name])};var _M=U(hr);var pM=Z(Pu),ARe=J(Ys),LRe=To($2);var nJ=function(e){return e},aJ=function(e){return function(n){return _M(function(a){return a.result})(e({substring:n,position:0}))}};var Sc={map:function(e){return function(n){var a=_M(function(t){return{result:e(t.result),suffix:t.suffix}});return function(t){return a(n(t))}}}},C_=function(e){return function(n){return new Me({pos:n.position,error:e})}},F_={apply:function(e){return function(n){return function(a){return pM(e(a))(function(t){return pM(n(t.suffix))(function(o){return ARe({result:t.result(o.result),suffix:o.suffix})})})}}},Functor0:function(){return Sc}};var Ms={bind:function(e){return function(n){return function(a){return pM(e(a))(function(t){return nJ(n(t.result))(t.suffix)})}}},Apply0:function(){return F_}};var As={pure:function(e){return function(n){return new Pe({result:e,suffix:n})}},Apply0:function(){return F_}};var PRe={Applicative0:function(){return As},Bind1:function(){return Ms}},tJ={tailRecM:function(e){return function(n){var a=function(t){if(t.result instanceof zt)return new zt({state:t.result.value0,str:t.suffix});if(t.result instanceof Ht)return new Ht({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 LRe(function(o){return _M(a)(nJ(e(o.state))(o.str))})({state:n,str:t})}}},Monad0:function(){return PRe}};var G_={alt:function(e){return function(n){return function(a){var t=e(a);if(t instanceof Me){if(a.position===t.value0.pos)return n(a);if(qe)return new Me({error:t.value0.error,pos:t.value0.pos})}return t}}},Functor0:function(){return Sc}},xRe={empty:C_("No alternative"),Alt0:function(){return G_}},rJ={Applicative0:function(){return As},Plus1:function(){return xRe}};var oJ=ma(G_),dM=Z(Ms),mM=J(As),NRe=U(Sc);var jRe=oo(F_),ORe=Yn(F_);var hM=function(e){return function(n){return oJ(e)(C_(n))}},DM=function(e){return function(n){var a=e(n);return a instanceof Me?new Me({pos:n.position,error:a.value0.error}):a}},Cc=function(e){return oJ(dM(e)(function(n){return mM(ge)}))(mM(ge))};var uJ=function(e){return function(n){return new Ou(e,n)}};var URe=function(e){return function(n){var a=e(n);if(a instanceof Pe){var t=n.position65535;return t?e(n):sJ(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])})}(),Hv=function(e){return DM(cJ(qRe)(function(n){var a=e(n);return a?sJ(n):C_("Character "+(vJ(n)+" did not satisfy predicate"))}))},Fi=function(e){return hM(Hv(function(n){return n===e}))("Could not match character "+vJ(e))};var JRe=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}},WRe=yt(),gM=U(Sc),$Re=lu(cR)(wt),zRe=U(rT),go=rn(Qe)(Ms),Zo=Tt(Sc),Ls=J(As),ai=ma(G_);var zp=oo(F_),qv=Z(Ms),_J=lu(Co)(wt);var Ir=function(e){return WRe(Dy(e))},RM=function(e){return gM(function(){var n=zRe(Uu);return function(a){return $Re(n(a))}}())(iJ(Hv(e)))},pJ=function(e){return go(Zo(e))(function(){return go(Zo(Lb(e)))(function(){return Ls(ge)})})},Lb=function(e){return ai(pJ(e))(Ls(ge))},dJ=function(e){return go(Zo(Hv(e)))(function(){return go(Zo(Lb(Hv(e))))(function(){return Ls(ge)})})},VRe=Fi(Ir(0));var mJ=Fi(` `),hJ=function(e){return e===" "||e===" "},QRe=Hv(hJ),yM=dJ(hJ),KRe=function(e){var n=e>="0"&&e<="9",a=e>="a"&&e<="z"||e>="A"&&e<="Z";return n||a},Fc=function(e){return function(n){return function(a){return a>=e&&a<=n}}},YRe=Fc(Ir(33))(Ir(126)),XRe=Hv(YRe),wM=function(e){return function(n){return Yc(Uu(n))(e)}},Pb=function(e){return Fc(Ir(1))(Ir(8))(e)||Fc(Ir(14))(Ir(31))(e)||wM("\v\f\x7F")(e)},ZRe=function(e){return Fc(Ir(33))(Ir(39))(e)||Fc(Ir(42))(Ir(91))(e)||Fc(Ir(93))(Ir(126))(e)||Pb(e)},eye=function(e){return Fc(Ir(33))(Ir(90))(e)||Fc(Ir(94))(Ir(126))(e)||Pb(e)},nye=Hv(Pb),aye=function(e){return wM(Uu(Ir(33)))(e)||Fc(Ir(35))(Ir(91))(e)||Fc(Ir(93))(Ir(126))(e)||Pb(e)};var DJ=Fi("\r"),gJ=Zo(zp(DJ)(mJ)),Vp=function(){var e=pJ(zp(gJ)(yM)),n=zp(yM)(Cc(zp(gJ)(yM)));return ai(n)(e)}(),RJ=function(){var e=go(Zo(Fi("\\")))(function(){return ai(XRe)(ai(QRe)(ai(mJ)(ai(DJ)(ai(nye)(VRe)))))});return qv(e)(function(n){return Ls("\\"+Uu(n))})}(),tye=ai(RM(aye))(RJ),rye=function(){var e=go(Zo(Fi('"')))(function(){return qv(M_(zp(Cc(Vp))(tye)))(function(n){return go(Zo(Cc(Vp)))(function(){return go(Zo(Fi('"')))(function(){return Ls(n)})})})});return gM(function(n){return'"'+(_J(n)+'"')})(e)}(),yJ=JRe("comment","Text.Email.Parser",function(){return go(Zo(Fi("(")))(function(){return go(Lb(ai(dJ(ZRe))(ai(Zo(RJ))(ai(yJ(155))(Vp)))))(function(){return go(Zo(Fi(")")))(function(){return Ls(ge)})})})}),oye=yJ(152),xb=Lb(ai(oye)(Vp)),uye=go(Cc(xb))(function(){return go(Zo(Fi("[")))(function(){return qv(M_(zp(Cc(Vp))(RM(eye))))(function(e){return go(Cc(Vp))(function(){return go(Zo(Fi("]")))(function(){return go(Cc(xb))(function(){return Ls("["+(_J(e)+"]"))})})})})})}),iye=function(){var e=function(n){return KRe(n)||wM("!#$%&'*+/=?^_`{|}~-")(n)};return RM(e)}(),wJ=function(){var e=go(Zo(Cc(xb)))(function(){return qv(ai(iye)(rye))(function(a){return go(Zo(Cc(xb)))(function(){return Ls(a)})})}),n=lJ(e)(Fi("."));return gM(iu(cR)(wt)("."))(n)}(),lye=ai(wJ)(uye),cye=wJ,bM=qv(cye)(function(e){return qv(Fi("@"))(function(){return qv(lye)(function(n){return qv(fJ)(function(){return Ls({localPart:e,domainPart:n})})})})});var vye=function(e){return aJ(bM)(e)},fye=function(){var e=fr(xu)(ne(lf()()(sf({reflectSymbol:function(){return"error"}})(vf({reflectSymbol:function(){return"pos"}})(Ye))(kt))));return function(n){return e(vye(n))}}(),Kh=function(e){var n=fye(e);if(n instanceof Me)return!1;if(n instanceof Pe)return!0;throw new Error("Failed pattern match at Text.Email.Validate (line 35, column 5 - line 37, column 25): "+[n.constructor.name])};var EM=Vo(Y),Nb=fo()(),_ye=Zn(vo),bJ=uj(me)()(),EJ=_e(ae),IJ=al(zR(el)),TJ=U(ae),jb=ij(Y)()(),SJ=_e(Ve),Yh=Te(me),pye=vF(),IM=ne(Ye),dye=kI(cn)(st),mye=np(me)()(),A_=Te(ze),CJ=zn(Y)()(),hye=Zn(ga),Dye=Br(gu),gye=ne(ni),Xh=J(Rn),FJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),GJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),AJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),LJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Qp=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(S){return function(L){return Se([EM("")(y),Nb("form-control")({type:"text",name:"livestream_public_registration_form["+(d+"]"),value:b,placeholder:I,autoFocus:L.autoFocus,onChange:_ye(t)(function(O){return S(Fs(O))})})])}}}}}},u=[EM("")("I'm a..."),bJ("form-control")({name:"livestream_public_registration_form[i_am_a]",value:Je("")(EJ(a.persona)(Mb)),onChange:IJ(t)(function(d){return TJ(LJ.create)(Yq(UG(d)))})})([Ia(St(a.persona))(jb("")({value:""})("Select one...")),Se(SJ(Zq)(function(d){return jb("")({value:Mb(d)})(Xq(d))}))])],i=Yh("d-flex align-items-center")([Xe("Already have an account? "),pye({text:"Log in",className:"btn btn-link px-2",auth0ActiveTab:pw,openInNewTab:!1})]),l=[EM("")("Graduation year"),bJ("form-control")({name:"livestream_public_registration_form[high_school_graduation_year]",value:Je("")(EJ(a.gradYear)(IM)),onChange:IJ(t)(function(d){return TJ(AJ.create)(ac(UG(d)))})})([Ia(St(a.gradYear))(jb("")({value:""})("Select one...")),Se(SJ(n.allowedGradYears)(function(d){return jb("")({value:IM(d)})(IM(d))}))])],s=Je({path:"",token:""})(Zy("livestreams_register_path")),R=dye([Kh(a.email),a.firstName!=="",a.lastName!=="",Ct(a.gradYear),Ct(a.persona)]);return Se([i,mye("")({action:s.path,method:"POST"})([A_("row")(A_("col")(o("email")("Email")("Your email")(a.email)(FJ.create)({autoFocus:e.autoFocus}))),A_("row mt-3")(A_("col")(o("first_name")("First name")("Your first name")(a.firstName)(GJ.create)({autoFocus:!1}))),A_("row mt-3")(A_("col")(o("last_name")("Last name")("Your last name")(a.lastName)(MJ.create)({autoFocus:!1}))),Yh("row mt-3")([Yh("col-6")(l),Yh("col-6")(u)]),A_("row mt-3")(Yh("col-12")([CJ("btn btn-primary w-100 mt-3 t--register")({type:"submit",disabled:!R,onClick:hye(Ab)(ge)})("Register"),da(e.cancelButton)(function(d){return CJ("btn btn-outline-primary w-100 mt-3 t--cancel-registration")({type:"button",onClick:Dye(d.click)})(d.text)})])),Nb("")({type:"hidden",name:"authenticity_token",value:s.token}),Nb("")({type:"hidden",name:"register_for_conference_id",value:gye(n.conference.id)}),Nb("")({type:"hidden",name:"utm_cv_source",value:n.paths.utmSource})])])}}}},Kp=function(e){return function(n){if(n instanceof FJ)return Xh({firstName:e.firstName,gradYear:e.gradYear,lastName:e.lastName,persona:e.persona,email:n.value0});if(n instanceof GJ)return Xh({email:e.email,gradYear:e.gradYear,lastName:e.lastName,persona:e.persona,firstName:n.value0});if(n instanceof MJ)return Xh({email:e.email,firstName:e.firstName,gradYear:e.gradYear,persona:e.persona,lastName:n.value0});if(n instanceof AJ)return Xh({email:e.email,firstName:e.firstName,lastName:e.lastName,persona:e.persona,gradYear:new T(n.value0)});if(n instanceof LJ)return Xh({email:e.email,firstName:e.firstName,gradYear:e.gradYear,lastName:e.lastName,persona:new T(n.value0)});throw new Error("Failed pattern match at Livestream.Register.Anonymous (line 176, column 16 - line 186, column 36): "+[n.constructor.name])}},Yp=function(){return{email:"",firstName:"",lastName:"",gradYear:M.value,persona:M.value}}();var PJ=Te(me),Rye=Gb(Y),yye=Mt(Y)()(),Xp=function(e){return Se([PJ("")([Xe(` For college information sessions, we may tell the college that you attended. You can opt out anytime in your profile. `),Rye("")(` 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. `)]),PJ("")([Xe(` By completing this registration form you agree to CollegeVine\u2019s Website Terms and Conditions, which can be found `),yye("")({href:e.paths.termsAndConditions})("here"),Xe(".")])])};var TM={eq:function(e){return function(n){return e===n}}};var Ps=rn(Qe)($n),wye=Zu(Le),xJ=Sa(),bye=Ti(xJ(B({reflectSymbol:function(){return"author"}})(xJ(B({reflectSymbol:function(){return"cvid"}})(pe)(B({reflectSymbol:function(){return"username"}})(pe)(on))))(B({reflectSymbol:function(){return"id"}})(un)(B({reflectSymbol:function(){return"isFromHQ"}})(Ea)(B({reflectSymbol:function(){return"isPublic"}})(Ea)(B({reflectSymbol:function(){return"text"}})(pe)(B({reflectSymbol:function(){return"time"}})(pe)(on))))))))(Le),Zp=Ma(Le),Ob=J(Xn),Tr=J(Rn),SM=Jl(),Eye=Qt(me),CM=Ba(Y),FM=Vo(Y),Iye=Qa(Y),L_=Te(me),ed=Te(ze),Ub=zn(Y)()(),nd=Zn(ga),Zh=Te(Y),NJ=qt(Y),jJ=_e(Ve),Tye=or(me)()(),Sye=Ba(me),OJ=Z(nn),Cye=XR()(),Fye=Zn(vo),Gye=al(Dv(el)),Mye=ep(me),Aye=fo()(),Lye=Gb(Y),Pye=Re(Wt(Pt)),xye=_e(ae),UJ=qo($q(ru(Ku))),Nye=Uo(TM),kJ=U(Ga),jye=tn(Rt),Oye=Wg(TM),BJ=ut(yr(Ga)),HJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),qJ=function(){function e(){}return e.value=new e,e}(),JJ=function(){function e(){}return e.value=new e,e}(),P_=function(){function e(){}return e.value=new e,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}(),WJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),$J=function(){function e(){}return e.value=new e,e}(),GM=function(){function e(){}return e.value=new e,e}(),MM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),zJ=function(){function e(){}return e.value=new e,e}(),VJ=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),AM=function(){function e(){}return e.value=new e,e}(),qb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Jb=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),QJ=function(){function e(){}return e.value=new e,e}(),ad=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),eD=function(){function e(){}return e.value=new e,e}();var KJ=function(e){return Ps(wye(function(n){return Ae.create(MM.create(r_(n)))})(bye(e.pusher.dataChannel)("question")))(function(){return Ps(Zp(Ob(new Ae(zJ.value))))(function(){return Tr({newQuestionText:"",newQuestionBroadcast:!1,questions:[],modal:P_.value})})})},YJ=function(e){if(e.user instanceof M)return new T(new Ae(AM.value));if(e.user instanceof T&&e.user.value0.username instanceof M)return new T(new Ae(QJ.value));if(e.user instanceof T&&e.user.value0.username instanceof T)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])},Uye=function(){return Po($o(cn)([kl.value,new ht(":"),bi.value,new ht(" "),Bl.value]))}(),XJ=function(e){return function(n){return function(a){var t=function(s){return a(Ae.create(s))},o=function(s){return SM({onDismiss:t(eD.value),body:Se([Eye("")([CM("")("By: "),FM("")("@"+s.author.username)]),Iye("")(s.text),ss(""),L_("row align-items-center mb-3")([ed("col-4")(Ub("btn w-100 btn-"+function(){return s.isPublic?"secondary":"success"}())({onClick:nd(t)(new Jb(qJ.value))})(function(){return s.isPublic?"Hide from audience":"Show to audience"}())),Zh("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."}())]),L_("row align-items-center")([ed("col-4")(Ub("btn w-100 btn-danger")({onClick:nd(t)(new Jb(JJ.value))})("Ban this user")),L_("col")([Xe("This user will not be able to ask any more questions "),FM("")("in this livestream. "),CM("text-danger")("There is no way to un-ban a user!")])])]),bodyClass:"t--question-modal",footer:Se([Ub("btn btn-outline-primary px-4")({onClick:nd(t)(eD.value)})("Never mind, close this dialog")])})},u=function(s){return SM({onDismiss:t(eD.value),title:NJ("")("Please introduce yourself to participate:"),bodyClass:"t--questions-registration-form",body:Se([Qp({cancelButton:M.value,autoFocus:!0})(e)(s)(function(R){return t(qb.create(R))}),ed("small mt-3")(Xp(e))])})},i=function(s){return SM({onDismiss:t(eD.value),title:NJ("")("Please select a user name"),body:qq(s)(function(R){return t(ad.create(R))}),bodyClass:"t--username-modal"})},l=function(s){var R=function(y){return function(I){return function(b){return Se([Zh("ml-2 badge badge-"+I)(y),da(b)(function(S){return Zh("ml-2 text-secondary")(Uye(S))})])}}},d=s.isFromHQ&&s.isPublic;return d?R("CollegeVine")("success")(s.time):s.isPublic?R("Question")("warning")(M.value):Vn};return Se([ed("position-relative h-100")(ed("d-flex flex-column position-absolute-fullsize")(L_("d-flex flex-column flex-grow-1 min-height-0")([L_("flex-grow-1 min-height-0 overflow-y-auto bg-white border rounded mb-2 p-2 t--questions-list")(jJ(n.questions)(function(s){return Tye("p-1 t--question"+function(){return e.isPrivilegedUser?" cursor-pointer":""}())({onClick:nd(t)(new Jb(new HJ(s)))})([Sye("small d-inline-flex align-items-center")([FM("")("@"+s.author.username),l(s),Xe(":")]),CM("ml-1")(s.text)])})),L_("")([da(OJ(e.user)(function(s){return s.username}))(function(s){return Zh("small text-secondary mt-2")("@"+s)}),Cye("form-control t--question-text")({onChange:Fye(t)(function(s){return WJ.create(vb(s))}),onClick:Gye(a)(YJ(e)),placeholder:"Ask a question...",rows:1,value:n.newQuestionText}),Ia(e.isPrivilegedUser)(ed("form-check my-2")(Mye("form-check-label d-flex align-items-center t--broadcast-checkbox")([Aye("form-check-input mr-2 mt-0")({type:"checkbox",checked:n.newQuestionBroadcast,onChange:nd(t)($J.value)}),Zh("badge badge-info bg-info text-dark mr-2")("HQ"),Xe("Send to all viewers")]))),L_("d-flex justify-content-end align-items-center")([Lye("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. `),Ub("mt-2 px-5 btn-sm btn btn-primary t--submit-question")({onClick:nd(t)(GM.value),disabled:n.newQuestionText===""})(function(){return n.newQuestionBroadcast?"Send to all":"Send to host"}())])])]))),function(){if(n.modal instanceof P_)return Vn;if(n.modal instanceof Bb)return u(n.modal.value0);if(n.modal instanceof kb)return o(n.modal.value0);if(n.modal instanceof Hb)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])}()])}}},kye=function(e){return function(n){return Pye(xye(e.user)(function(a){return a.cvid}))(new T(n.author.cvid))||n.isPublic||e.isPrivilegedUser}},ZJ=function(e){return function(n){return function(a){if(a instanceof En)return Tr(n);if(a instanceof Ae){if(a.value0 instanceof WJ){var t=YJ(e);if(t instanceof T)return Ps(Zp(Ob(t.value0)))(function(){return Tr(n)});if(t instanceof M)return Tr({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 $J)return Tr({modal:n.modal,newQuestionText:n.newQuestionText,questions:n.questions,newQuestionBroadcast:!n.newQuestionBroadcast});var t=function(o){if(a.value0 instanceof GM)return Ps(Zp(Ob(new Ae(AM.value))))(function(){return Tr(n)});if(a.value0 instanceof MM)return Tr({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:UJ(function(l){return fM(function(s){return s.time}(l))})(cu(kye(e))(Jo(a.value0.value0)(cu(function(){var l=Nye(a.value0.value0.id);return function(s){return l(function(R){return R.id}(s))}}())(n.questions))))});if(a.value0 instanceof zJ)return Ps(Zp(kJ(function(l){return Ae.create(VJ.create(l))})(ow(e.conference.id))))(function(){return Tr(n)});if(a.value0 instanceof VJ){var u=jJ(a.value0.value0)(function(l){return l.id});return Tr({modal:n.modal,newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:UJ(function(l){return fM(function(s){return s.time}(l))})(jye(a.value0.value0)(cu(function(l){return Oye(l.id)(u)})(n.questions)))})}if(a.value0 instanceof AM)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Bb(Yp)});var i=function(l){if(a.value0 instanceof qb)return Tr(n);if(a.value0 instanceof QJ)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Hb(Wq(Je("")(OJ(e.user)(function(R){return R.username}))))});if(a.value0 instanceof ad&&a.value0.value0 instanceof En&&a.value0.value0.value0 instanceof sM)return Ps(Zp(Ob(new En(a.value0.value0.value0.value0))))(function(){return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value})});if(a.value0 instanceof ad&&a.value0.value0 instanceof En&&a.value0.value0.value0 instanceof vM)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value});var s=function(R){if(a.value0 instanceof ad&&qe)return Tr(n);if(a.value0 instanceof eD)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value});if(a.value0 instanceof Jb){if(e.isPrivilegedUser){if(a.value0.value0 instanceof HJ)return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new kb(a.value0.value0.value0)});var d=function(y){var I=function(b){return Tr(n)};return a.value0.value0 instanceof JJ&&n.modal instanceof kb?Ps(za(QO({conferenceId:e.conference.id,userCvid:n.modal.value0.author.cvid})))(function(){return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value})}):I(!0)};return a.value0.value0 instanceof qJ&&n.modal instanceof kb?Ps(za(kO({questionId:n.modal.value0.id,isPublic:!n.modal.value0.isPublic})))(function(){return Tr({newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:P_.value})}):d(!0)}if(qe)return Tr(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 ad&&n.modal instanceof Hb?BJ(function(R){return Ae.create(ad.create(R))})(function(R){return{newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Hb(R)}})(Jq(n.modal.value0)(a.value0.value0)):s(!0)};return a.value0 instanceof qb&&n.modal instanceof Bb?BJ(function(l){return Ae.create(qb.create(l))})(function(l){return{newQuestionBroadcast:n.newQuestionBroadcast,newQuestionText:n.newQuestionText,questions:n.questions,modal:new Bb(l)}})(Kp(n.modal.value0)(a.value0.value0)):i(!0)};return a.value0 instanceof GM&&e.user instanceof T?Ps(Zp(kJ(function(o){return Ae.create(MM.create(o))})(BO({conferenceId:e.conference.id,text:n.newQuestionText,hqBroadcast:n.newQuestionBroadcast}))))(function(){return Tr({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 Wb,Bye=new Uint8Array(16);function LM(){if(!Wb&&(Wb=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Wb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wb(Bye)}var eW=/^(?:[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 Hye(e){return typeof e=="string"&&eW.test(e)}var PM=Hye;var No=[];for($b=0;$b<256;++$b)No.push(($b+256).toString(16).substr(1));var $b;function qye(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(No[e[n+0]]+No[e[n+1]]+No[e[n+2]]+No[e[n+3]]+"-"+No[e[n+4]]+No[e[n+5]]+"-"+No[e[n+6]]+No[e[n+7]]+"-"+No[e[n+8]]+No[e[n+9]]+"-"+No[e[n+10]]+No[e[n+11]]+No[e[n+12]]+No[e[n+13]]+No[e[n+14]]+No[e[n+15]]).toLowerCase();if(!PM(a))throw TypeError("Stringified UUID is invalid");return a}var nW=qye;function Jye(e,n,a){e=e||{};var t=e.random||(e.rng||LM)();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 nW(t)}var xM=Jye;var aW=xM;var Wye=function(e){return e},NM=function(e){return e};var jM=Z($t)(aW)(function(){var e=J(ct);return function(n){return e(Wye(n))}}());var td=Ma(Le),tW=rn(Qe),$ye=tW(sa),zye=tn(bR),Vye=U(Ga),nD=yn(Le),Qye=Qa(Y),Kye=Eu()(),rW=or(ze)()(),oW=jd(Ku),Yye=Io(tr),Xye=Wn(hu),Zye=ne(cx),uW=ne(cf),ewe=U(Ve),Gc=tW($n),nwe=Zu(Le),awe=Ti(Sa()(B({reflectSymbol:function(){return"authorTag"}})(pe)(B({reflectSymbol:function(){return"kind"}})(pe)(on))))(Le),zb=U(Hn),Jv=J(Rn),iW=tt(U0),lW=Nd(Ku),twe=J(Xn),OM=sc(j0),rwe=Te(me),owe=_e(Ve),uwe=zn(me)()(),iwe=Zn(ga),lwe=Ba(Y),Vb=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}(),aD=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}(),cW=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(e){return td($ye(Xt(zye(e)(10)))(function(){return Vye(UM.create)(nD(ei))}))},sW=50,vW=function(e){var n=function(o){return Qye("text-white fe fe-"+o)("")},a=function(){if(e instanceof bs)return n("heart");if(e instanceof Gv)return n("thumbs-up");if(e instanceof o_)return n("thumbs-down");if(e instanceof Mv)return n("file-text");if(e instanceof Av)return Kye("")({src:"/img/icons/smile-white.svg",style:rt({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 bs)return"#F0747B";if(e instanceof Gv)return"#008CFD";if(e instanceof o_)return"#6E84A3";if(e instanceof Mv)return"#18A668";if(e instanceof Av)return"#F6C343";throw new Error("Failed pattern match at Livestream.Live.Reactions (line 165, column 23 - line 170, column 34): "+[e.constructor.name])}();return rW("d-flex justify-content-center align-items-center rounded-circle")({style:rt({backgroundColor:t,height:"1.5rem",width:"1.5rem"})})(a)},fW=6,_W=function(){return fW*1e3}(),pW=function(e){return function(n){var a=function(t){if(oW(t.removeAt)(e.currentTime))return Vn;var o=Ft(Yye(Xye(Zi(ET(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=oW(t.startDecayAt)(e.currentTime),R=fW+(o-5)/10;return rW("position-absolute mb-4 mt-2")({key:Zye(t.startDecayAt),style:rt({right:uW(l)+"rem",top:function(){return s?"0":"90%"}(),opacity:function(){return s?0:i?1:.6}(),transitionProperty:"top opacity",transitionDuration:uW(R)+"s",transitionTimingFunction:u})})(vW(t.reaction.kind))};return Se(ewe(a)(e.reactions))}},dW=function(e){return Gc(nwe(function(n){return new aD(G7(n),M.value)})(awe(e.pusher.dataChannel)("reaction")))(function(){return Gc(td(nD(zb(function(n){return cW.create(NM(n))})(jM))))(function(){return Gc(td(nD(zb(UM.create)(ei))))(function(){return Jv({authorTag:"",currentTime:iW,coolDownUntil:iW,reactions:[]})})})})},mW=800,hW=function(e){return function(n){return function(a){if(a instanceof Vb&&a.value1 instanceof M)return Gc(td(nD(zb(function(){var t=Vb.create(a.value0);return function(o){return t(T.create(o))}}())(ei))))(function(){return Jv(n)});if(a instanceof Vb&&a.value1 instanceof T){if(lW(n.coolDownUntil)(a.value1.value0))return Gc(td(twe(new aD({kind:a.value0,authorTag:n.authorTag},new T(a.value1.value0)))))(function(){return Jv(n)});if(qe)return Gc(za($O(e.conference.id)({authorTag:n.authorTag,kind:a.value0})))(function(){return Gc(kM(mW))(function(){return Jv({authorTag:n.authorTag,currentTime:n.currentTime,reactions:n.reactions,coolDownUntil:Je(a.value1.value0)(OM(mW)(a.value1.value0))})})})}if(a instanceof aD&&a.value1 instanceof M)return Gc(td(nD(zb(function(){var t=aD.create(a.value0);return function(o){return t(T.create(o))}}())(ei))))(function(){return Jv(n)});if(a instanceof aD&&a.value1 instanceof T)return Gc(kM(sW))(function(){return Gc(kM(_W))(function(){var t={reaction:a.value0,startDecayAt:Je(a.value1.value0)(OM(sW)(a.value1.value0)),removeAt:Je(a.value1.value0)(OM(_W)(a.value1.value0))};return Jv({authorTag:n.authorTag,coolDownUntil:n.coolDownUntil,reactions:y0(n.reactions)(t),currentTime:a.value1.value0})})});if(a instanceof cW)return Jv({coolDownUntil:n.coolDownUntil,currentTime:n.currentTime,reactions:n.reactions,authorTag:a.value0});if(a instanceof UM)return Jv({authorTag:n.authorTag,coolDownUntil:n.coolDownUntil,reactions:cu(function(t){return lW(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])}}},DW=function(e){return function(n){var a=function(t){if(t instanceof bs)return"love this";if(t instanceof Gv)return"helpful";if(t instanceof o_)return"not helpful";if(t instanceof Mv)return"taking notes";if(t instanceof Av)return"LOL";throw new Error("Failed pattern match at Livestream.Live.Reactions (line 144, column 13 - line 149, column 30): "+[t.constructor.name])};return rwe("d-flex justify-content-end my-2")(owe([bs.value,Av.value,Gv.value,Mv.value])(function(t){return uwe("btn bg-light d-flex align-items-center p-0 ml-3")({onClick:iwe(n)(new Vb(t,M.value)),style:rt({borderRadius:"1em"})})([vW(t),lwe("d-none d-md-inline text-secondary small ml-2 mr-3")(a(t))])}))}};var gW=rn(Qe),cwe=Z(sa),BM=yn(Le),Qb=J(Xn),Kb=Qt(Y),Yb=ne(Ye),tD=gW($n),rD=Ma(Le),gl=J(Rn),RW=Nt(xr),yW=oo(Em),wW=U(Ga),swe=Bo(Rn)(Nu),vwe=Yu(es),bW=Te(Y),fwe=ql(),_we=qt(Y),EW=zn(Y)()(),HM=Zn(ga),IW=Te(ze),pwe=zn(me)()(),dwe=Qa(Y),mwe=Te(me),TW=function(){function e(){}return e.value=new e,e}(),SW=function(){function e(){}return e.value=new e,e}(),CW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),FW=function(){function e(){}return e.value=new e,e}(),GW=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MW=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}(),qM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),LW=function(){function e(){}return e.value=new e,e}(),PW=function(){function e(){}return e.value=new e,e}(),JM=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}(),Xb=function(){function e(){}return e.value=new e,e}(),xW=gW(sa)(Xt(1e3))(function(){return cwe(BM(ei))(function(e){return Qb(new JM(e))})}),hwe=function(e){return{header:"Go on-air?",body:Se([Kb("")("Are you sure you want to go on-air?"),Kb("mb-0 font-weight-bold fw-bold")(` Watchers will start seeing your stream in `+(Yb(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:FW.value}},NW=function(e){return function(n){return function(a){return function(t){return tD(rD(xW))(function(){return gl({confirmation:n.confirmation,network:TW.value,streamStatus:t,transition:new T({since:a,secondsLeft:e.videoLagSeconds})})})}}}},jW=function(e){return function(n){return function(a){if(a instanceof FW)return tD(rD(RW(yW(PO(e.conference.id))(wW(GW.create)(BM(ei))))(function(l){return Qb(new WM("Error opening the stream. Please try again."))})))(function(){return gl({confirmation:n.confirmation,streamStatus:n.streamStatus,transition:n.transition,network:SW.value})});if(a instanceof GW)return NW(e)(n)(a.value0)(qr.value);if(a instanceof MW)return tD(rD(RW(yW(xO(e.conference.id))(wW(AW.create)(BM(ei))))(function(l){return Qb(new WM("Error closing the stream. Please try again."))})))(function(){return gl(n)});if(a instanceof AW)return NW(e)(n)(a.value0)(br.value);if(a instanceof qM)return gl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:new T(a.value0)});if(a instanceof LW)return tD(swe(n.confirmation)(function(l){return rD(Qb(l.confirmMsg))}))(function(){return gl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:M.value})});if(a instanceof PW)return gl({network:n.network,streamStatus:n.streamStatus,transition:n.transition,confirmation:M.value});if(a instanceof WM)return gl({confirmation:n.confirmation,streamStatus:n.streamStatus,transition:n.transition,network:new CW(a.value0)});var t=function(l){if(a instanceof JM||a instanceof Xb)return gl(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 JM){if(n.transition instanceof T){var o=vwe(a.value0)(n.transition.value0.since),u=e.videoLagSeconds-co(o)|0,i=u>0;return i?tD(rD(xW))(function(){return gl({confirmation:n.confirmation,network:n.network,streamStatus:n.streamStatus,transition:new T({since:n.transition.value0.since,secondsLeft:u})})}):gl({confirmation:n.confirmation,network:n.network,streamStatus:n.streamStatus,transition:M.value})}return t(!0)}return t(!0)}}},OW=function(e){return gl({streamStatus:e.streamStatus,transition:M.value,network:TW.value,confirmation:M.value})},Dwe=function(){return{header:"End the stream?",body:Se([Kb("")("Are you sure you want to end the stream?"),Kb("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:MW.value}}(),UW=function(e){return function(n){return function(a){var t=function(){return n.network instanceof SW?bW("position-absolute-fullsize d-flex align-items-center justify-content-center bg-semi-transparent-white")("Switching..."):Vn}(),o=function(R){return fwe({header:_we("my-0")(R.header),bodyClass:"p-5",body:R.body,footerClass:"p-4",footer:Se([EW("btn btn-primary px-4")({onClick:HM(a)(LW.value)})(R.confirmText),EW("btn btn-outline-primary px-4")({onClick:HM(a)(PW.value)})(R.cancelText)])})},u=function(R){return function(d){return function(y){return function(I){return function(b){return IW("col-auto pr-0")(pwe("btn btn-"+(R+(" px-5 d-flex align-items-center font-size-lg btn-"+I)))({onClick:HM(a)(b)})([dwe("fe mr-2 fe-"+d)(""),Xe(y)]))}}}}},i=function(){if(n.streamStatus instanceof yu)return u("lg")("power")("GO ON-AIR")("outline-secondary")(new qM(hwe(e)));var R=function(d){if(n.streamStatus instanceof qr)return Se([u("lg")("radio")("ON AIR")("success")(Xb.value),u("sm")("x-circle")("End stream")("outline-danger")(new qM(Dwe))]);if(n.streamStatus instanceof br)return u("lg")("slash")("STREAM IS OVER")("outline-secondary")(Xb.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 qr&&n.transition instanceof T?u("lg")("radio")("ON AIR")("success")(Xb.value):R(!0)}(),l=function(R){return bW("alert small m-0 flex-grow-1 alert-"+R)},s=function(){if(n.network instanceof CW)return l("danger")(n.network.value0);if(n.streamStatus instanceof yu)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 qr)return l("light")(` We're live. The audience should see your video with a `+(Yb(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 br)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 br&&n.transition instanceof T?l("info")("You may stop presenting now. The audience will keep seeing the tail of the stream for another "+(Yb(n.transition.value0.secondsLeft)+" seconds.")):y(!0)};return n.streamStatus instanceof qr&&n.transition instanceof T?l("info")("Start presenting now. The audience will see the stream in "+(Yb(n.transition.value0.secondsLeft)+" seconds...")):R(!0)}();return mwe("position-relative row align-items-center t--stream-controls")([i,IW("col")(s),t,da(n.confirmation)(o)])}}};var gwe=sc(sv),kW=Yu(sv),BW=v8(),Rwe=Jl(),ywe=qt(Y),wwe=Te(Y),HW=Qt(Y),bwe=zn(Y)()(),Ewe=Zn(ga),qW=Ma(Le),JW=rn(Qe),WW=U(Ga),$W=yn(Le),zW=JW($n),Iwe=Wi(nt),$M=J(Rn),zM=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),VM=function(){function e(){}return e.value=new e,e}(),Twe=[30,15,5,0],VW=function(e){return Je(e.conference.scheduledStartTime)(gwe(Ft(e.conference.duration))(e.conference.scheduledStartTime))},QW=function(e){return function(n){return function(a){if(!n.modal)return Vn;if(n.now instanceof M)return Vn;if(n.now instanceof T){var t=VW(e),o=kW(t)(n.now.value0),u=function(){if(o<1)return" ended "+BW({from:t,to:n.now.value0,format:yy("ago")});if(qe)return" ends "+BW({from:n.now.value0,to:t,format:yy("from now")});throw new Error("Failed pattern match at Livestream.Live.StreamEndWarning (line 75, column 7 - line 77, column 105): "+[])}();return Rwe({onDismiss:a(VM.value),body:Se([ywe("mb-0")("Host-only warning"),wwe("text-secondary mb-4")("You see this because you're the host. The audience doesn't see this."),HW("font-weight-bold fw-bold")("\u23F0 Scheduled stream time "+u),HW("")(` You have `+(sl(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. `)),bwe("btn btn-primary px-4")({onClick:Ewe(a)(VM.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])}}},Swe=qW(JW(sa)(Xt(60100))(function(){return WW(zM.create)($W(a_))})),KW=function(e){return function(n){return function(a){if(a instanceof zM)return zW(Swe)(function(){var t=kW(VW(e))(a.value0),o=Iwe(co(t))(Twe);return $M({now:new T(a.value0),modal:n.modal||o})});if(a instanceof VM)return $M({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])}}},YW=function(){return zW(qW(WW(zM.create)($W(a_))))(function(){return $M({modal:!1,now:M.value})})}();var XW=rn(Qe),Cwe=XW(sa),ZW=J(Xn),Fwe=XW($n),Gwe=Ma(Le),Mwe=Nt(xr),Zb=J(Rn),Awe=Re(Xm),e$=$o(cn),QM=Te(me),e1=Qa(Y),Lwe=zn(Y)()(),n$=Zn(ga),Pwe=Mt(Y)()(),xwe=zn(ze)()(),Nwe=ql(),a$=Te(ze),jwe=Vo(Y),Owe=gv(Y)()(),Uwe=Ba(Y),t$=function(){function e(){}return e.value=new e,e}(),r$=function(){function e(){}return e.value=new e,e}(),KM=function(){function e(){}return e.value=new e,e}(),o$=function(){function e(){}return e.value=new e,e}(),u$=function(){function e(){}return e.value=new e,e}(),i$=function(){function e(){}return e.value=new e,e}(),l$=function(){function e(){}return e.value=new e,e}(),kwe=function(){function e(){}return e.value=new e,e}(),c$=function(e){return function(n){return function(a){var t=Cwe(tw({fromConference:new T(e.conference.id),registerForConference:n.cta.conferenceId,utmSource:e.paths.utmSource}))(function(){return ZW(new Ae(i$.value))});if(a instanceof u$)return Fwe(Gwe(Mwe(t)(function(o){return ZW(new Ae(l$.value))})))(function(){return Zb({cta:n.cta,stage:r$.value})});if(a instanceof i$)return Zb({cta:n.cta,stage:o$.value});if(a instanceof l$)return Zb({cta:n.cta,stage:KM.value});throw new Error("Failed pattern match at Livestream.Ctas.Display.Event (line 138, column 24 - line 148, column 44): "+[a.constructor.name])}}},s$=function(e){return function(n){return Awe(e.cta.conferenceId)(n.conferenceId)}},v$=function(e){return Zb({cta:e,stage:t$.value})},Bwe=function(){return Po(e$([Ul.value,new ht(", "),jl.value,new ht(" "),Ol.value,new ht(" at "),kl.value,new ht(":"),bi.value,new ht(" "),Bl.value]))}(),Hwe=function(){return Po(e$([Ul.value]))}(),f$=function(e){return function(n){return function(a){var t=function(){return n.stage instanceof KM?QM("text-danger small mt-2")([e1("fe fe-x-circle mr-2")(""),Xe("Something went wrong. Please try again.")]):Vn}(),o=function(R){return a(Ae.create(R))},u=function(){if(e.user instanceof T)return Lwe("btn btn-primary px-4 t--register-one-click")({onClick:n$(o)(u$.value)})("Register (one-click)");if(e.user instanceof M)return Pwe("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 t$||n.stage instanceof KM)return u;if(n.stage instanceof r$)return QM("text-secondary")([e1("fe fe-refresh-cw mr-2")(""),Xe("Hold on tight...")]);if(n.stage instanceof o$)return QM("text-success")([e1("fe fe-check-circle mr-2")(""),Xe("You\u2019ve registered \u2013\xA0see you "+(Hwe(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(En.create(R))},s=xwe("btn btn-sm btn-outline-primary d-flex py-1 px-2")({onClick:n$(l)(kwe.value)})(e1("fe fe-x")(""));return Nwe({body:Se([a$("row justify-content-end mt-n3")(s),jwe("")("Join us for our upcoming livestream:"),Owe("mt-3")({id:Ii})(n.cta.title),Uwe("small")(Bwe(n.cta.startTime)+(" "+n_)),a$("row mt-6 ml-0")(i),t]),bodyClass:"t--cta-active",size:uh.value})}}};var qwe=ql(),n1=Te(me),Jwe=cj(Y)()(),a1=Te(ze),Wwe=zn(ze)()(),_$=Zn(ga),$we=Qa(Y),zwe=_e(Ve),Vwe=tl()(),Qwe=Hr(Y),Kwe=Qt(Y),Ywe=Mt(Y)()(),Xwe=rn(Qe),Zwe=Xwe($n),ebe=Ma(Le),nbe=yn(Le),abe=Is(Dr)(),tbe=ne(Ye),p$=J(Rn),rbe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),d$=function(){function e(){}return e.value=new e,e}(),m$=function(e){return function(n){var a=function(){var i=uo(e.cta.providers);return i===1?Lv.value:i===2?Lv.value:ih.value}(),t=function(i){return n(Ae.create(i))},o=function(i){return n(En.create(i))},u=function(){var i=uo(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 qwe({bodyClass:"bg-gray-900 text-white t--cta-active",body:Se([n1("row no-gutters g-0 mb-4")([n1("col text-center")([Jwe("mb-2")({id:Ii})("The admissions process is hard - advisors are here to help!"),Xe("Schedule a free consulation to get your questions answered")]),a1("col-auto text-right")(Wwe("btn btn-link p-0 m-0 text-white")({onClick:_$(o)(d$.value)})($we("fe fe-x")("")))]),n1("row text-center")(zwe(e.cta.providers)(function(i){return n1(u)([a1("row mb-3")(a1("col-auto mx-auto")(a1("avatar avatar-xl")(Vwe("avatar-img rounded-circle img-fluid")({src:i.avatarUrl})))),Qwe("mb-2")(i.name),Kwe("mb-3")(i.location),Ywe("btn btn-primary btn-sm px-3 py-1")({target:"_blank",href:i.linkUrl,onClick:_$(t)(new rbe(i.avatarUrl))})(e.cta.linkText)])}))]),size:a})}},h$=function(e){return function(n){return Zwe(ebe(nbe(function(){return abe("Livestream: CTA Popup Link Clicked")({livestream_cta_id:tbe(e.cta.id),livestream_cta_url:n.value0})(),new En(d$.value)})))(function(){return p$(e)})}},D$=function(e){return function(n){return e.cta.id===n.id}},g$=function(e){return p$({cta:e})};var obe=Mt(Y)()(),R$=Zn(ga),ube=zn(ze)()(),ibe=Qa(Y),lbe=ql(),y$=Te(ze),cbe=gv(Y)()(),sbe=rn(Qe),vbe=sbe($n),fbe=Ma(Le),_be=yn(Le),pbe=Is(Dr)(),dbe=ne(Ye),w$=J(Rn),mbe=function(){function e(){}return e.value=new e,e}(),b$=function(){function e(){}return e.value=new e,e}(),E$=function(e){return function(n){var a=function(i){return n(Ae.create(i))},t=obe("btn btn-primary px-4 t--register-new-tab")({href:e.cta.url,target:"_blank",rel:"noopener",onClick:R$(a)(mbe.value)})(e.cta.buttonText),o=function(i){return n(En.create(i))},u=ube("btn btn-sm btn-outline-primary d-flex py-1 px-2")({onClick:R$(o)(b$.value)})(ibe("fe fe-x")(""));return lbe({body:Se([y$("row justify-content-end mt-n3")(u),cbe("mt-3")({id:Ii})(e.cta.title),y$("row mt-6 ml-0")(t)]),bodyClass:"t--cta-active",size:uh.value})}},I$=function(e){return function(n){return vbe(fbe(_be(function(){return pbe("Livestream: CTA Popup Link Clicked")({livestream_cta_id:dbe(e.cta.id),livestream_cta_title:e.cta.title,livestream_cta_url:e.cta.url})(),new En(b$.value)})))(function(){return w$(e)})}},T$=function(e){return function(n){return e.cta.id===n.id}},S$=function(e){return w$({cta:e})};var YM=rn(Qe),ti=YM(nn),ri=Rr(kr),rd=J(oa),C$=Gr(ko(st)),oD=ma($r),xs=J(Rn),hbe=YM($n),Dbe=Ma(Le),gbe=YM(sa),Rbe=J(Xn),XM=Te(me),ybe=ep(Y),wbe=fo()(),bbe=Zn(vo),Ebe=zn(ze)()(),F$=Zn(ga),Ibe=Qa(Y),Tbe=ql(),ZM=Te(ze),Sbe=gv(Y)()(),Cbe=Qt(Y),Fbe=zn(Y)()(),G$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),M$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),A$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),L$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),P$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),x$=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),N$=function(){function e(){}return e.value=new e,e}(),j$=function(){function e(){}return e.value=new e,e}(),O$=function(e){return function(n){return e.cta.id===n.id}},U$=function(e){return function(n){var a=ti(ri(n.cta.requireReferredUserLastName))(function(){return ti(ri(n.referredUserLastName===""))(function(){return rd("Please enter the other person\u2019s last name")})}),t=ti(ri(n.cta.requireReferredUserFirstName))(function(){return ti(ri(n.referredUserFirstName===""))(function(){return rd("Please enter the other person\u2019s first name")})}),o=ti(ri(C$(Kh)(n.referredUserEmail)))(function(){return rd("Please enter a valid email address")}),u=ti(ri(St(e.user)))(function(){return ti(ri(n.cta.requireAnonymousUserLastName))(function(){return ti(ri(n.anonymousUserLastName===""))(function(){return rd("Please enter your last name")})})}),i=ti(ri(St(e.user)))(function(){return ti(ri(n.cta.requireAnonymousUserFirstName))(function(){return ti(ri(n.anonymousUserFirstName===""))(function(){return rd("Please enter your first name")})})}),l=ti(ri(St(e.user)))(function(){return ti(ri(n.cta.requireAnonymousUserEmail))(function(){return ti(ri(C$(Kh)(n.anonymousUserEmail)))(function(){return rd("Please enter a valid email address")})})});return oD(i)(oD(u)(oD(l)(oD(t)(oD(a)(o)))))}},k$=function(e){return function(n){return function(a){if(a instanceof G$)return xs({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 M$)return xs({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 A$)return xs({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 L$)return xs({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 P$)return xs({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 x$)return xs({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 N$){var t=St(U$(e)(n));return t?hbe(Dbe(gbe(NO({ctaId:n.cta.id,anonymousUserFirstName:n.anonymousUserFirstName,anonymousUserLastName:n.anonymousUserLastName,anonymousUserEmail:n.anonymousUserEmail,referredUserFirstName:n.referredUserFirstName,referredUserLastName:n.referredUserLastName,referredUserEmail:n.referredUserEmail}))(function(){return Rbe(new En(j$.value))})))(function(){return xs(n)}):xs({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])}}},B$=function(e){return function(n){return function(a){var t=U$(e)(n),o=function(I){return function(b){return function(S){return function(L){return function(O){return XM(I)([ybe("mb-2")(S),wbe("form-control "+b)({type:"text",value:L,onChange:bbe(a)(function($){return Ae.create(O(Fs($)))})})])}}}}},u=Ia(St(e.user)&&n.cta.requireAnonymousUserEmail)(o("col-12 mb-3")("t--anon-email")("Your email")(n.anonymousUserEmail)(A$.create)),i=Ia(St(e.user))(Se([Ia(n.cta.requireAnonymousUserFirstName)(o("col-12 col-md-6 mb-3")("t--anon-first-name")("Your first name")(n.anonymousUserFirstName)(G$.create)),Ia(n.cta.requireAnonymousUserLastName)(o("col-12 col-md-6 mb-3")("t--anon-last-name")("Your last name")(n.anonymousUserLastName)(M$.create))])),l=o("col-12 mb-3")("t--referred-email")("Other person\u2019s email")(n.referredUserEmail)(x$.create),s=Se([Ia(n.cta.requireReferredUserFirstName)(o("col-12 col-md-6 mb-3")("t--referred-first-name")("Other person\u2019s first name")(n.referredUserFirstName)(L$.create)),Ia(n.cta.requireReferredUserLastName)(o("col-12 col-md-6 mb-3")("t--referred-last-name")("Other person\u2019s last name")(n.referredUserLastName)(P$.create))]),R=function(I){return a(Ae.create(I))},d=function(I){return a(En.create(I))},y=Ebe("btn btn-sm btn-outline-primary d-flex py-1 px-2 t--close")({onClick:F$(d)(j$.value)})(Ibe("fe fe-x")(""));return Tbe({body:Se([ZM("row justify-content-end mt-n3")(y),Sbe("mt-3")({id:Ii})(n.cta.title),da(n.cta.description)(Cbe("")),XM("row")([i,u,s,l]),XM("row")([ZM("col-auto my-auto")(Fbe("btn btn-primary t--save")({onClick:F$(R)(N$.value)})("Save")),ZM("col my-auto text-danger")(Ia(n.validationActive)(da(t)(Xe)))])]),bodyClass:"t--cta-active",size:Lv.value})}}},H$=function(e){return xs({cta:e,anonymousUserFirstName:"",anonymousUserLastName:"",anonymousUserEmail:"",referredUserFirstName:"",referredUserLastName:"",referredUserEmail:"",validationActive:!1})};var Gbe=Ma(Le),Mbe=J(Xn),Wv=ut(yr(Ga)),t1=rn(Qe)($n),uD=J(Rn),iD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),lD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),cD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),sD=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}(),o1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),u1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),i1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Abe=function(){function e(){}return e.value=new e,e}(),q$=function(e){return function(n){return function(a){var t=function(o){return a(Ae.create(o))};if(n instanceof iD)return f$(e)(n.value0)(function(o){return t(r1.create(o))});if(n instanceof lD)return m$(n.value0)(function(o){return t(o1.create(o))});if(n instanceof cD)return E$(n.value0)(function(o){return t(u1.create(o))});if(n instanceof sD)return B$(e)(n.value0)(function(o){return t(i1.create(o))});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 61, column 29 - line 69, column 61): "+[n.constructor.name])}}},J$=function(e){return function(n){return function(a){var t=Gbe(Mbe(new En(Abe.value)));if(n instanceof iD&&a instanceof r1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(r1.create(o))})(iD.create)(c$(e)(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(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 lD&&a instanceof o1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(o1.create(o))})(lD.create)(h$(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(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 cD&&a instanceof u1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(u1.create(o))})(cD.create)(I$(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(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 sD&&a instanceof i1){if(a.value0 instanceof Ae)return Wv(function(o){return Ae.create(i1.create(o))})(sD.create)(k$(e)(n.value0)(a.value0.value0));if(a.value0 instanceof En)return t1(t)(function(){return uD(n)});throw new Error("Failed pattern match at Livestream.Ctas.Display (line 101, column 5 - line 107, column 19): "+[a.value0.constructor.name])}return uD(n)}}},W$=function(e){return function(n){return e instanceof iD&&n instanceof vl?s$(e.value0)(n.value0):e instanceof cD&&n instanceof fl?T$(e.value0)(n.value0):e instanceof lD&&n instanceof _l?D$(e.value0)(n.value0):e instanceof sD&&n instanceof pl?O$(e.value0)(n.value0):!1}},$$=function(e){if(e instanceof vl)return Wv(function(n){return Ae.create(r1.create(n))})(iD.create)(v$(e.value0));if(e instanceof _l)return Wv(function(n){return Ae.create(o1.create(n))})(lD.create)(g$(e.value0));if(e instanceof fl)return Wv(function(n){return Ae.create(u1.create(n))})(cD.create)(S$(e.value0));if(e instanceof pl)return Wv(function(n){return Ae.create(i1.create(n))})(sD.create)(H$(e.value0));throw new Error("Failed pattern match at Livestream.Ctas.Display (line 49, column 8 - line 58, column 66): "+[e.constructor.name])};var z$=qt(Y),l1=Te(me),Lbe=Vo(Y),Pbe=gv(Y)()(),xbe=ep(me),Nbe=fo()(),eA=Wi(nt),jbe=Zn(vo),V$=zn(Y)()(),Q$=Zn(ga),Obe=wp(ze),Ube=yn(Le),kbe=Es(Dr),Bbe=ku(),Hbe=ne(Ye),x_=J(Rn),qbe=bf(nt),N_=rn(Qe)($n),Jbe=Nt(xr),nA=J(Xn),Wbe=Bo(Xn)(cn),$be=lr(Xn),K$=Ma(Le),zbe=ut(yr(Ga)),od=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),aA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),tA=function(){function e(){}return e.value=new e,e}(),Y$=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}(),X$=function(e){return function(n){return function(a){var t=Se([z$("text-center")("The host just asked a poll question!"),z$("text-center")("To participate in live polls, please introduce yourself:"),Qp({cancelButton:new T({text:"Not now",click:a(new od({keepShowingPolls:!1}))}),autoFocus:!0})(e)(n.registration)(function(i){return a(rA.create(i))}),l1("small mt-3")([Xp(e),l1("mt-2")([Xe("After submitting, you\u2019ll be able to answer all "),Lbe("")("future"),Xe(" poll questions in this stream!")])])]),o=Se([Pbe("font-weight-bold fw-bold")({id:Ii})(n.poll.question),l1("d-flex flex-column ml-4")(w0(function(i){return function(l){return xbe("form-check-label mb-2")([Nbe("form-check-input mt-2 t--option")({checked:eA(i)(n.selected),onChange:jbe(a)(function(s){return new aA(i)}),type:function(){return n.poll.multiSelect?"checkbox":"radio"}()}),Xe(l)])}})(n.poll.options)),l1("d-flex justify-content-start mt-6")([V$("btn btn-primary px-4 mr-3 t--submit")({onClick:Q$(a)(tA.value),disabled:fi(n.selected)})("Submit answer"),V$("btn btn-outline-primary px-4 d-flex align-items-center t--skip")({onClick:Q$(a)(Y$.value)})("Do it later")])]),u=function(){if(e.user instanceof T)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 Obe(u)(function(){if(e.user instanceof T)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])}())}}},Z$=function(e){return function(n){return function(a){var t=function(o){return Ube(kbe("Livestream: Poll Response")(Zc(Fv(e.conference))(Bbe({livestream_poll_id:Hbe(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 od)return x_(n);if(a instanceof aA&&n.poll.multiSelect)return x_({poll:n.poll,registration:n.registration,selected:function(){var o=eA(a.value0)(n.selected);return o?qbe(a.value0)(n.selected):Jo(a.value0)(n.selected)}()});if(a instanceof aA)return x_({poll:n.poll,registration:n.registration,selected:[a.value0]});if(a instanceof tA&&fi(n.selected))return x_(n);if(a instanceof tA)return N_(za(Jbe(HC(n.poll)(n.selected))(function(o){return xl(_c)("Error answering a Livestream poll")({poll_id:n.poll.id})(function(u){return nA(ge)})})))(function(){return N_(za(Wbe(w0(function(o){return function(u){return{idx:o,opt:u}}})(n.poll.options))(function(o){return $be(eA(o.idx)(n.selected))(t({skipped:!1,option:o.opt}))})))(function(){return N_(K$(nA(new od({keepShowingPolls:!0}))))(function(){return x_(n)})})});if(a instanceof Y$)return N_(za(HC(n.poll)([])))(function(){return N_(za(t({skipped:!0,option:""})))(function(){return N_(K$(nA(new od({keepShowingPolls:!0}))))(function(){return x_(n)})})});if(a instanceof rA)return zbe(rA.create)(function(o){return{poll:n.poll,selected:n.selected,registration:o}})(Kp(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])}}},ez=function(e){return N_(za(jO(e)))(function(){return x_({poll:e,selected:[],registration:Yp})})};var nz=rn(Qe),Vbe=nz(sa),Qbe=Z(sa),az=yn(Le),Kbe=Bo(Xn)(Nu),Ybe=Es(Dr),tz=ku(),Xbe=ne(Pg),Zbe=ne(ni),c1=ne(Ye),Rl=J(Rn),rz=yr(Ga),oz=ut(rz),uz=Z($n),iz=fr(rz),$v=nz($n),e1e=Re(nt),zv=J(oa),vD=ny(Le),fD=U(ae),n1e=U(Au),_D=h0(cn),oA=Sa(),lz=Ti(oA(B({reflectSymbol:function(){return"poll_id"}})(un)(on)))(Le),a1e=Zu(Le),t1e=Re(Wt(Xm)),r1e=Ti(oA(B({reflectSymbol:function(){return"conference_id"}})(un)(on)))(Le),uA=Re(Wt(nt)),iA=Ti(oA(B({reflectSymbol:function(){return"id"}})(un)(on)))(Le),pD=function(){function e(){}return e.value=new e,e}(),ud=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),dD=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}(),s1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),v1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),lA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),ld=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),cz=function(e){return function(n){return function(a){if(n.stage instanceof pD)return Vn;if(n.stage instanceof ud)return X$(e)(n.stage.value0)(function(t){return a(id.create(t))});if(n.stage instanceof dD)return q$(e)(n.stage.value0)(function(t){return a(s1.create(t))});throw new Error("Failed pattern match at Livestream.Live.VideoOverlay (line 96, column 3 - line 102, column 59): "+[n.stage.constructor.name])}}},o1e=function(e){return function(n){return e instanceof dD?W$(e.value0)(n):!1}},u1e=function(){return function(e){return function(n){return function(a){return Vbe(Xt(100))(function(){return Qbe(az(Ty(Ii)))(function(t){return Kbe(t)(function(o){return az(function(){var i=mF(QS(o))(),l=G8({x:i.left+1,y:i.top+1})(),s=pF(QS(l))();return Ybe(n)(Zc(tz(a))(Zc(Fv(e.conference))(tz({livestream_popup_visible:Xbe(s===Ii)}))))()})})})})}}}},sz=u1e(),i1e=function(e){var n=function(){return sz(e)("Livestream: CTA Popup Shown")},a=n();return function(t){if(t instanceof vl)return a({livestream_cta_target_conference_id:Zbe(t.value0.conferenceId)});if(t instanceof _l)return a({livestream_cta_id:c1(t.value0.id)});if(t instanceof fl)return a({livestream_cta_id:c1(t.value0.id),livestream_cta_title:t.value0.title,livestream_cta_url:t.value0.url});if(t instanceof pl)return a({livestream_cta_id:c1(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])}},vz=function(e){return function(n){return function(a){if(a instanceof id&&a.value0 instanceof od)return Rl({stage:pD.value,showPolls:a.value0.value0.keepShowingPolls});var t=function(o){if(a instanceof id)return Rl(n);if(a instanceof s1){if(a.value0 instanceof En)return Rl({showPolls:n.showPolls,stage:pD.value});var u=function(s){return Rl(n)};return a.value0 instanceof Ae&&n.stage instanceof dD?oz(s1.create)(function(s){return{showPolls:n.showPolls,stage:new dD(s)}})(J$(e)(n.stage.value0)(a.value0.value0)):u(!0)}var u=function(l){if(a instanceof v1&&n.showPolls)return uz(iz(id.create)(ez(a.value0)))(function(d){return $v(za(sz(e)("Livestream: Poll Popup Shown")({livestream_poll_id:c1(a.value0.id)})))(function(){return Rl({showPolls:n.showPolls,stage:new ud(d)})})});if(a instanceof v1)return Rl(n);var s=function(d){if(a instanceof lA||a instanceof ld&&o1e(n.stage)(a.value0))return Rl(n);if(a instanceof ld)return $v(za(i1e(e)(a.value0)))(function(){return uz(iz(s1.create)($$(a.value0)))(function(y){return Rl({showPolls:n.showPolls,stage:new dD(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 lA){if(n.stage instanceof ud){var R=n.stage.value0.poll.id===a.value0.pollId;return R?Rl({showPolls:n.showPolls,stage:pD.value}):s(!0)}return s(!0)}return s(!0)};if(a instanceof v1){if(n.stage instanceof ud){var i=n.stage.value0.poll.id===a.value0.id;return i?Rl(n):u(!0)}return u(!0)}return u(!0)};return a instanceof id&&n.stage instanceof ud?oz(id.create)(function(o){return{showPolls:n.showPolls,stage:new ud(o)}})(Z$(e)(n.stage.value0)(a.value0)):t(!0)}}},fz=function(e){var n=function(u){return u instanceof pl?zv(u.value0.id):M.value},a=function(u){return u instanceof _l?zv(u.value0.id):M.value},t=function(u){return u instanceof fl?zv(u.value0.id):M.value},o=function(u){return u instanceof vl?zv(u.value0.conferenceId):M.value};return $v(vD(function(u){return fD(n1e(v1.create)(function(i){return i.poll}))(_D(function(){var i=e1e(u.poll_id);return function(l){return i(function(s){return s.poll.id}(l))}}())(e.conference.polls))})(lz(e.pusher.dataChannel)("show-poll")))(function(){return $v(a1e(function(u){return new lA({pollId:u.poll_id})})(lz(e.pusher.dataChannel)("hide-poll")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=t1e(zv(u.conference_id));return function(l){return i(o(l))}}())(e.ctas))})(r1e(e.pusher.dataChannel)("show-event-cta")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=uA(zv(u.id));return function(l){return i(t(l))}}())(e.ctas))})(iA(e.pusher.dataChannel)("show-general-cta")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=uA(zv(u.id));return function(l){return i(a(l))}}())(e.ctas))})(iA(e.pusher.dataChannel)("show-featured-sps-cta")))(function(){return $v(vD(function(u){return fD(ld.create)(_D(function(){var i=uA(zv(u.id));return function(l){return i(n(l))}}())(e.ctas))})(iA(e.pusher.dataChannel)("show-referral-cta")))(function(){return Rl({stage:pD.value,showPolls:!0})})})})})})})};var l1e=Jl(),cA=Te(me),c1e=qt(ze),s1e=Ba(me),v1e=Qa(Y),_z=Eu()(),pz=qt(Y),f1e=Qt(Y),f1=zn(Y)()(),_1e=Br(gu),p1e=rn(Qe),sA=Zn(ga),dz=p1e($n),d1e=MH(),vA=J(Rn),mz=Z(nn),m1e=Qs(V3),h1e=Yu(mT),D1e=Re(Gy),g1e=Re($s),R1e=ls()(),hz=function(){function e(){}return e.value=new e,e}(),fA=function(){function e(){}return e.value=new e,e}(),Dz=function(){function e(){}return e.value=new e,e}(),_A=function(){function e(){}return e.value=new e,e}(),pA=function(){function e(){}return e.value=new e,e}(),_1=function(e){return function(n){return l1e({onDismiss:n(new En(pA.value)),bodyClass:"t--livestreams-update-network-settings-modal",body:function(){if(e.modalView instanceof hz)return cA("text-center")([Ia(e.confirmConferenceRegistration)(c1e("mb-4")(s1e("badge badge-soft-primary bg-primary-soft")([v1e("fe fe-check mr-1")(""),Xe("You\u2019re registered!")]))),_z("my-4")({src:"/img/network/counselor.svg",height:"76",width:"91"}),pz("")("Connect with colleges when you attend or register for their livestreams?"),f1e("text-secondary")("Connecting with colleges puts you on their radar and introduces you to admissions officers and current students"),cA("mx-md-6 mt-4")([f1("btn btn-primary w-100 t--livestream-opt-into-auto-connect")({onClick:_1e(function(){return n(new Ae(Dz.value))(),n(new Ae(_A.value))()})})("Yes, always connect"),f1("btn btn-outline-primary w-100 mt-3 t--livestream-connect-with-school")({onClick:sA(n)(new Ae(_A.value))})("Only connect with "+e.school.name),f1("btn btn-link mt-3")({onClick:sA(n)(new En(pA.value))})("Close")])]);if(e.modalView instanceof fA)return cA("text-center")([_z("mt-4")({src:"/img/livestreams/network-settings-modal/connection-sent.png",height:"42",width:"42"}),pz("")("Connection request sent!"),f1("mt-4 btn btn-primary t--livestream-network-settings-modal-close")({onClick:sA(n)(new En(pA.value))})("Close")]);throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 81, column 13 - line 112, column 12): "+[e.modalView.constructor.name])}()})}},p1=function(e){return function(n){if(n instanceof Ae){if(n.value0 instanceof Dz)return dz(za(d1e({publishScope:Ei.value,publishContext:kG.value,autoRequestFromLivestreams:!0,livestreamConference:e.conference})))(function(){return vA({conference:e.conference,confirmConferenceRegistration:e.confirmConferenceRegistration,school:e.school,modalView:fA.value})});if(n.value0 instanceof _A)return dz(za(n6(e.school.id)(e.conference.id)))(function(){return vA({conference:e.conference,confirmConferenceRegistration:e.confirmConferenceRegistration,school:e.school,modalView:fA.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 En)return vA(e);throw new Error("Failed pattern match at Livestream.NetworkSettingsModal (line 58, column 1 - line 58, column 55): "+[e.constructor.name,n.constructor.name])}},d1=function(e){return function(n){var a=Je(!1)(mz(e.dismissedNetworkSettingsModalAt)(function(o){return new T(m1e(h1e(lC(ge))(o))(30))})),t=function(o){return[n.rcr834NetworkSettingsModal,D1e(o.publishScope)(Ei.value),!o.autoRequestFromLivestreams,e.hasAccessToNetwork,!a]};return Je(!1)(mz(e.profile)(function(o){return new T(KI(g1e(!0))(t(o)))}))}},m1=function(e){return R1e(e)({modalView:hz.value})};var mD=function(){function e(){}return e.value=new e,e}(),cd=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}(),h1=function(){function e(){}return e.value=new e,e}();var gz=rn(Qe),Rz=gz($n),dA=Ma(Le),y1e=gz(sa),mA=J(Xn),D1=J(Rn),yz=function(e){return function(n){return function(a){return function(t){return a.throttleState instanceof mD&&t instanceof hD?Rz(dA(y1e(Xt(a.delay))(function(){return mA(e(h1.value))})))(function(){return D1(n({delay:a.delay,throttleState:new cd(t.value0)}))}):a.throttleState instanceof cd&&t instanceof hD?D1(n({delay:a.delay,throttleState:new cd(t.value0)})):a.throttleState instanceof cd&&t instanceof h1?Rz(dA(mA(a.throttleState.value0)))(function(){return D1(n({delay:a.delay,throttleState:mD.value}))}):D1(n(a))}}}},wz=function(e){return function(n){return dA(mA(e(new hD(n))))}},bz=function(e){return{throttleState:mD.value,delay:e}};var g1=Te(Y),R1=Te(me),w1e=qt(Y),Ns=ne(Ye),b1e=io(tr),Ez=Te(ze),E1e=or(Y)()(),I1e=Vo(Y),T1e=Ba(Y),S1e=$f(ze),C1e=rj(me)()(),Iz=vs(aa),y1=zn(Y)()(),hA=Zn(ga),Tz=Wi(nt),Sz=$f(me),w1=cs(Y),F1e=cs(ze),G1e=cs(me),M1e=Z0(me),A1e=K0(me),sd=Y0(Y),L1e=X0(me),b1=_e(Ve),P1e=qo(aa),DD=rn(Qe)($n),DA=Ma(Le),x1e=Nt(xr),Cz=J(Xn),Vv=J(Rn),gA=U(Ga),N1e=Re(u7),Fz=ul(aa)(cn),j1e=qg(aa),O1e=tn(Rt),U1e=bf(nt),k1e=Zu(Le),B1e=aw(Le),E1=function(){function e(){}return e.value=new e,e}(),Gz=function(){function e(){}return e.value=new e,e}(),Mz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Az=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),RA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),Lz=function(){function e(){}return e.value=new e,e}(),Pz=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),xz=function(){function e(){}return e.value=new e,e}(),yA=function(){function e(){}return e.value=new e,e}(),Nz=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}(),jz=function(e){return function(n){return function(a){if(e.conference.polls.length===0)return Vn;var t=function(){if(n.stage instanceof E1)return Vn;if(n.stage instanceof Gz)return g1("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=R1("d-flex flex-nowrap align-items-baseline")([w1e("")("Polls"),g1("text-muted ml-3 small")("Polls will be shown to viewers "+(Ns(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 S=function(){if(R===0)return"0%";if(qe)return Ns(b1e(100*b|0)(R))+"%";throw new Error("Failed pattern match at Livestream.Polls.LaunchPolls (line 181, column 13 - line 183, column 69): "+[])}();return R1("row align-items-center bg-light-grey mb-1 py-2 t--poll-response-option")([g1("col-7 d-flex justify-content-end")(I),Ez("col-4")(Ez("progress")(E1e("progress-bar")({style:rt({width:S})})(""))),R1("col-1")([I1e("")(Ns(b)),T1e("text-secondary text-nowrap")(" ("+(S+")"))])])}};return S1e("t--poll-responses-"+Ns(s.id))(C1e("py-0")({colSpan:6})(WI(y)(s.options)(d.optionCounts)))}}},i=function(s){var R=Je(s.status)(Iz(s.poll.id)(n.statuses)),d=y1("btn btn-white btn-sm px-4 t--open")({onClick:hA(a)(new Mz(s.poll))})("Launch poll");if(R instanceof ys)return d;if(R instanceof gc)return Se([y1("btn btn-success btn-sm px-4 mr-3")({disabled:!0})("Poll LIVE"),y1("btn btn-danger btn-sm px-4 t--close")({onClick:hA(a)(new Az(s.poll))})("Close poll")]);if(R instanceof ws)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=Tz(s.poll.id)(n.expandedResponses),d=Iz(s.poll.id)(n.responses),y=bn(0)(function(S){return S.answered})(d),I=bn(0)(function(S){return S.seen})(d),b=bn(0)(function(S){return S.skipped})(d);return Se([Sz("t--poll t--poll-"+Ns(s.poll.id))([w1("pt-3")(function(){var S=Ct(s.poll.autoDisplayMinutesFromStart);return S?"\u23F0 ":""}()+s.poll.question),F1e("text-nowrap")(i(s)),w1("t--shown")(Ns(I)),G1e("t--answers")([Xe(Ns(y)),y1("btn btn-sm btn-white ml-2 py-0 px-1 "+("fe fe-chevron-"+function(){return R?"up":"down t--expand-responses"}()))({onClick:hA(a)(new Pz(s.poll.id))})("")]),w1("t--skipped")(Ns(b)),w1("t--pending")(Ns((I-y|0)-b|0))]),Ia(R)(da(d)(u(s.poll)(y)))])};return Se([o,R1("t--polls position-relative")([da(n.error)(function(s){return g1("alert alert-danger")(s)}),M1e("table table-sm mb-0")([A1e("")([Sz("")([sd("")("Question"),sd("")("Actions"),sd("")("# saw poll"),sd("")("# answered"),sd("")("# skipped"),sd("")("# not responded")])]),L1e("")(b1(P1e(function(s){return-function(R){return R.poll.id}(s)|0})(e.conference.polls))(l))]),t])])}}},Oz=function(e){return function(n){var a=function(t){return DD(DA(x1e(t)(function(o){return Cz(Lz.value)})))(function(){return Vv({expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,responses:n.responses,statuses:n.statuses,stage:Gz.value,error:M.value})})};return function(t){if(t instanceof Mz)return a(gA(RA.create)(BC(t.value0)(gc.value)));if(t instanceof Az)return a(gA(RA.create)(BC(t.value0)(ws.value)));if(t instanceof RA){var o=b1(cu(function(){var u=N1e(gc.value);return function(i){return u(function(l){return l.status}(i))}}())(t.value0))(function(u){return u.pollId});return Vv({error:n.error,responseThrottle:n.responseThrottle,responses:n.responses,statuses:Fz(b1(t.value0)(function(u){return new Dn(u.pollId,u.status)})),expandedResponses:j1e(O1e(n.expandedResponses)(o)),stage:E1.value})}if(t instanceof Lz)return Vv({expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,responses:n.responses,statuses:n.statuses,stage:E1.value,error:new T("That didn't work for some reason, try again")});if(t instanceof Pz)return Vv({error:n.error,responseThrottle:n.responseThrottle,responses:n.responses,stage:n.stage,statuses:n.statuses,expandedResponses:function(){var u=Tz(t.value0)(n.expandedResponses);return u?U1e(t.value0)(n.expandedResponses):Jo(t.value0)(n.expandedResponses)}()});if(t instanceof xz)return DD(wz(wA.create)(yA.value))(function(){return Vv(n)});if(t instanceof yA)return DD(DA(gA(Nz.create)(zO(e.conference.id))))(function(){return Vv(n)});if(t instanceof Nz)return Vv({error:n.error,expandedResponses:n.expandedResponses,responseThrottle:n.responseThrottle,stage:n.stage,statuses:n.statuses,responses:Fz(b1(t.value0)(function(u){return new Dn(u.pollId,u.responses)}))});if(t instanceof wA)return yz(wA.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])}}},Uz=function(e){return DD(k1e(hn(xz.value))(B1e(e.pusher.dataChannel)("poll-responses-changed")))(function(){return DD(DA(Cz(yA.value)))(function(){return Vv({statuses:fs,responses:fs,expandedResponses:[],responseThrottle:bz(500),stage:E1.value,error:M.value})})})};var kz=Eu()(),Bz=Te(me),Hz=qt(Y),qz=Hr(Y),Jz=kz("img-fluid mb-6")({src:"/img/logo-white.svg",style:rt({width:"5em"})}),I1=function(e){return Bz(e+` t--splashscreen position-absolute-fullsize d-flex flex-column align-items-center justify-content-around bg-dark text-white `)},gD=function(e){return I1("")([Hz("text-center")(e)])},bA=I1("t--splashscreen-intro")([Te(ze)("text-center mt-7")(qz("")("The recording will load in a moment.")),Jz]),T1=I1("px-4 px-md-6 t--splashscreen-intro")([kz("img-fluid")({src:"/img/illustrations/livestreams/2022-02-intro.svg"})]),Wz=I1("t--splashscreen-complete")([Bz("text-center mt-7")([qz("")("The event is now over."),Hz("")("Thank you for attending!"),Xu(Y)("")("A recording will be available to watch shortly.")]),Jz]);var S1=e=>e.play();var Qv=Mu($z());$a();var zz=e=>{let[n,a]=ka.useState(),[t,o]=ka.useState(),u=ka.useRef();return u.current=e,Gt(()=>{if(!t)return Qv.default.isSupported()?a(H1e(e.videoStreamUrl,e.videoElementId,u)):e.onNotSupported(),o(!0),()=>{n&&n.destroy()}}),null},H1e=(e,n,a)=>{let t=document.getElementById(n);return t?(hls=new Qv.default,a.current.onInstanceCreated&&a.current.onInstanceCreated(hls),hls.on(Qv.default.Events.ERROR,function(o,u){if(a.current.onError&&a.current.onError("HLS error: "+u.type,u),u.fatal)switch(u.type){case Qv.default.ErrorTypes.MEDIA_ERROR:hls.recoverMediaError();break;default:hls.destroy(),a.current.onCriticalFail&&a.current.onCriticalFail(u.type);break}}),hls.on(Qv.default.Events.MEDIA_ATTACHED,()=>hls.loadSource(e)),hls.on(Qv.default.Events.MANIFEST_PARSED,()=>a.current.onReady&&a.current.onReady()),hls.on(Qv.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 q1e=mv();var Vz=function(){return function(){return q1e(zz)}};$a();var $l={PRIMARY:"#008CFD",SECONDARY:"#6E84A3",WHITE:"#FFF",GRAY_300:"#E3EBF6"};var bD=Mu(nV()),aV=4,REe=({trackColor:e,background:n})=>({props:a,children:t})=>ka.createElement("div",Object.assign({},a,{style:Object.assign({},a.style,{height:`${aV}px`,borderRadius:`${aV*2}px`,background:n||e})}),...t),yEe=({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?$l.SECONDARY:$l.WHITE,stroke:$l.SECONDARY}),ka.createElement("path",{stroke:a?$l.WHITE:$l.SECONDARY,d:e?"M7.5 6L7.5 12":"M6 7.5L12 7.5"}),ka.createElement("path",{stroke:a?$l.WHITE:$l.SECONDARY,d:e?"M10.5 6L10.5 12":"M6 10.5L12 10.5"})),tV=e=>ka.createElement("div",{"aria-label":e.ariaLabel},ka.createElement(bD.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:REe({trackColor:e.trackColor||$l.GRAY_300,background:e.fillBefore?(0,bD.getTrackBackground)({values:[e.value],colors:[$l.PRIMARY,$l.GRAY_300],min:e.min,max:e.max,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":e.value}):void 0}),renderThumb:yEe({horizontal:!0})}));var wEe=mv(),rV={CanPassToJavaScript0:function(){},CanReceiveFromJavaScript1:function(){return iv}};var oV=function(e){return function(){return function(){return wEe(tV)}}};var bEe=or(ze)()(),EEe=oV(rV)()(),IEe=Zn(vo),TEe=zn(ze)()(),SEe=Zn(ga),uV=Te(me),CEe=Ba(Y),M1=Ma(Le),SA=J(Xn),iV=rn(Qe),FEe=tt(U0),Mc=J(Rn),GEe=Q0(Le),CA=yn(Le),MEe=U(ae),AEe=sc(j0),LEe=iV(sa),Kv=iV($n),PEe=lr(Rn),xEe=Z(sa),NEe=Yl(Ku),jEe=lr(ct),FA=function(){function e(){}return e.value=new e,e}(),GA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),MA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),lV=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),AA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),cV=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),sV=function(){function e(){}return e.value=new e,e}(),OEe=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),vV=function(e){return function(n){if(e.videoState instanceof M)return Vn;if(e.videoState instanceof T){var a=bEe("")({style:rt({minWidth:"6rem",width:"6rem"})})(EEe({value:function(){return e.videoState.value0.muted?0:e.videoState.value0.volume}(),min:0,max:1,step:.05,onChange:IEe(n)(function(i){return Ae.create(GA.create(i))}),ariaLabel:"Volume slider"})),t=function(){if(e.videoState.value0.muted)return"fe-volume-x";if(qe)return"fe-volume-2";throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 128, column 5 - line 130, column 34): "+[])}(),o=TEe("btn large px-3 py-1 mr-3 text-white fe "+t)({onClick:SEe(n)(new Ae(FA.value))})(Vn),u=uV("d-flex align-items-center text-white px-3")([Xe("LIVE"),CEe("text-danger x-large ml-2 mt-n1")("\u25CF")]);return uV("mb-2 w-100 d-flex align-items-center bg-semi-transparent-black "+function(){return e.visible?"":"hidden"}())([Ia(e.config.liveIndicator)(u),Ia(e.config.mute)(o),Ia(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])}},fV=function(e){return Ae.create(MA.create(e))},_V=function(e){return M1(SA(new En(new OEe(function(n){return function(){return e(n)(),new Ae(new MA(n))}}))))},A1=function(){return new Ae(new AA(!0))}(),pV=function(e){return{config:e,videoState:M.value,visible:!1,visibilityExpiration:FEe}},dV=2e3,mV=function(e){return function(n){if(n instanceof En)return Mc(e);if(n instanceof Ae){var a=GEe(CA(function(){var i=ei();return MEe(function(l){return Ae.create(cV.create(l))})(AEe(dV)(i))})),t=LEe(Xt(dV))(function(){return SA(new Ae(sV.value))}),o=function(u){if(n.value0 instanceof FA)return Mc(e);var i=function(l){if(n.value0 instanceof GA)return Mc(e);if(n.value0 instanceof MA)return Kv(M1(CA(function(){var R=ZS(n.value0.value0)(),d=YS(n.value0.value0)();return new Ae(new lV({muted:R,volume:d}))})))(function(){return Mc(e)});if(n.value0 instanceof lV)return Mc({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new T(n.value0.value0)});if(n.value0 instanceof AA)return Kv(PEe(n.value0.value0)(a))(function(){return Kv(M1(t))(function(){return Mc({config:e.config,videoState:e.videoState,visibilityExpiration:e.visibilityExpiration,visible:n.value0.value0})})});if(n.value0 instanceof cV)return Mc({config:e.config,videoState:e.videoState,visible:e.visible,visibilityExpiration:n.value0.value0});if(n.value0 instanceof sV)return Kv(M1(xEe(CA(ei))(function(s){var R=NEe(s)(e.visibilityExpiration);return R?SA(new Ae(new AA(!1))):t})))(function(){return Mc(e)});throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 144, column 1 - line 144, column 55): "+[n.value0.constructor.name])};return n.value0 instanceof GA&&e.videoState instanceof T?Kv(a)(function(){return Kv(_V(function(l){return function(){return jEe(n.value0.value0>0)(e_(!1)(l))(),XS(n.value0.value0)(l)()}}))(function(){return Mc({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new T({muted:e.videoState.value0.muted,volume:n.value0.value0})})})}):i(!0)};return n.value0 instanceof FA&&e.videoState instanceof T?Kv(a)(function(){return Kv(_V(e_(!e.videoState.value0.muted)))(function(){return Mc({config:e.config,visibilityExpiration:e.visibilityExpiration,visible:e.visible,videoState:new T({volume:e.videoState.value0.volume,muted:!e.videoState.value0.muted})})})}):o(!0)}throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 144, column 1 - line 144, column 55): "+[e.constructor.name,n.constructor.name])}},hV=function(e){if(e instanceof T)return!1;if(e instanceof M)return!0;throw new Error("Failed pattern match at Livestream.VideoPlayer.CustomControls (line 213, column 1 - line 213, column 37): "+[e.constructor.name])};var DV=e=>n=>a=>()=>e.then(a,n),gV=e=>e instanceof Error,RV=e=>e===null?"null":typeof e=="undefined"?"undefined":e.toString();var UEe=J(Qc(cr)),kEe=M0(cr),BEe=pn(dn),yV=ma(rR(sR)(cr)),HEe=Xc(cr),qEe=U(tR(Jc)),JEe=sm(cr),WEe=Eg(Hn),$Ee=Xa(Sx);var zEe=function(e){var n=function(a){if(gV(a))return UEe(a);if(qe)return kEe(new lm(""));throw new Error("Failed pattern match at Utils.Promise (line 49, column 5 - line 51, column 43): "+[a.constructor.name])};return Bt(function(a){return vu("Promise failed: "+RV(e))})(BEe)(nh(yV(n(e))(yV(HEe("Error")(e))(qEe(vu)(JEe(e))))))},L1=function(e){return fv(function(n){return WEe($Ee)(DV(e)(function(a){return n(Me.create(zEe(a)))()})(function(a){return n(Pe.create(a))()}))})};var VEe=Z(nn),QEe=Te(ze),LA=Br(VR),ED=Z($t),PA=Zs(ct)(Nu),P1=Zn(ga),wV=YR(Y)()(),KEe=Vz()(),YEe=J(ct),ID=Zn(vo),bV=or(ze)()(),XEe=zn(me)()(),ZEe=Qa(Y),eIe=Te(me),EV=rn(Qe),nIe=Is(Le)(),aIe=vi(cn)(st),tIe=Re(Wt(nt)),vd=EV(sa),rIe=qs(Xn),oIe=Lr(q0),ao=J(Xn),IV=yn(Le),TV=Nt(xr),SV=RI(sa),Jr=J(Rn),to=EV($n),Tu=Ma(Le),FV=U(Ga),GV=Q0(Le),MV=U(Hn),uIe=ut(yr(Ga)),iIe=U(ae),lIe=_e(ae),AV=tn($3),LV=function(){function e(){}return e.value=new e,e}(),PV=function(){function e(){}return e.value=new e,e}(),TD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),xV=function(){function e(){}return e.value=new e,e}(),fd=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),NV=function(){function e(){}return e.value=new e,e}(),jV=function(){function e(){}return e.value=new e,e}(),OV=function(){function e(){}return e.value=new e,e}(),xA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),NA=function(){function e(){}return e.value=new e,e}(),x1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),N1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),j1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UV=function(){function e(){}return e.value=new e,e}(),jA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),OA=function(){function e(){}return e.value=new e,e}(),kV=function(){function e(){}return e.value=new e,e}(),BV=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),O_=function(){function e(){}return e.value=new e,e}(),Ac=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),O1=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),UA=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),SD=function(){function e(n){this.value0=n}return e.create=function(n){return new e(n)},e}(),kA=function(e){var n=e.Monad0(),a=Z(n.Bind1()),t=yn(e),o=J(n.Applicative0());return function(u){return function(i){return function(l){return a(t(Ty(u.videoId)))(function(s){return bn(o(i.whenNotFound))(l)(VEe(s)(w8))})}}}},HV=kA(Dr),BA=kA(Le),qV=function(e){var n=kA(e);return function(a){return n(a)({whenNotFound:ge})}},cIe=qV(Dr),sIe=qV(Le),U1=function(e){return function(n){return function(a){var t=function(){var S=QEe("position-absolute-fullsize py-6 d-flex align-items-center justify-content-around");if(n.stage instanceof xV)return S(e.errorScreen("It appears that video playback is not supported in your browser."));if(n.stage instanceof NV)return S(e.errorScreen("The video didn't load correctly, try refreshing the page."));if(n.stage instanceof TD)return S(e.introScreen);if(n.stage instanceof fd)return Vn;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 TD?n.stage.value0.reset:!1}(),u=LA(function(S){return ED(Iy(S))(PA(function(L){return a(new Ae(new UA({time:L})))}))}),i=LA(function(S){return ED(Iy(S))(PA(function(L){return a(new Ae(new O1({playing:!0,time:L})))}))}),l=function(S){return a(En.create(S))},s=LA(function(S){return ED(Iy(S))(PA(function(L){return l(new jA(L))}))}),R=P1(l)(UV.value),d=Se([wV("w-100 t--real-video")({id:n.videoId,controls:St(n.customControls),onVolumeChange:R,onTimeUpdate:u,onPlay:i,onPause:s})(""),Ia(!o)(KEe({videoStreamUrl:e.watchUrl,videoElementId:n.videoId,onNotSupported:l(jV.value),onError:function(S,L){return ge},onCriticalFail:ID(l)(function(S){var L=S==="networkError";return L?NA.value:new x1("HLS player crashed")}),onReady:l(new N1({autoPlay:e.autoPlay})),onInitialPts:ID(l)(function(S){return new BV(S.initPTS)})}))]),y=function(){return n.stage instanceof fd&&n.stage.value0.unmuteOverlay?bV("position-absolute-fullsize d-flex align-items-center justify-content-center t--unmute-overlay")({style:rt({pointerEvents:"none"})})(XEe("btn btn-sm btn-light border-dark px-4 d-flex align-items-center")({onClick:P1(l)(kV.value),style:rt({pointerEvents:"all"})})([Xe("click for sound"),ZEe("fe fe-volume-2 ml-2")("")])):Vn}(),I=function(S){return bV("position-absolute-fullsize d-flex align-items-end t--controls-overlay")({onMouseMove:ID(l)(function(L){return new Ac(A1)}),onMouseDown:ID(l)(function(L){return new Ac(A1)}),onTouchStart:ID(l)(function(L){return new Ac(A1)})})(vV(S)(function(L){return l(Ac.create(L))}))},b=wV("w-100 t--real-video")({id:n.videoId,controls:St(n.customControls),playsInline:!0,onVolumeChange:R,onTimeUpdate:u,onPlay:i,onPause:s,onLoadedMetadata:P1(l)(new N1({autoPlay:e.autoPlay})),onError:P1(l)(NA.value),src:function(){return o?"":e.watchUrl}()})("");return eIe("position-relative w-100")([function(){if(n.support instanceof LV)return d;if(n.support instanceof PV)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),Ia(n.allowSound)(y),t])}}},vIe=function(e){var n=yn(e.MonadEffect0());return function(a){return n(function(){return cIe(a)(e_(!1))(),OA.value})}},fIe=vIe(x8),HA=function(e){return nIe("Livestream: Error")({livestream_error_message:e})},JV=function(e){return HV(e)({whenNotFound:!1})(KS)},_Ie=function(e){return yn(e)(function(){var a=ED(ED(xo)(rC))(tC)();return aIe(function(t){return tIe(jj(t)(a))(new T(0))})(["iPad","iPod","iPhone"])})},WV=_Ie(Le),pIe=function(e){var n=function(t){return vd(rIe(e.allowSound)(oIe(vu("Skipping attempt to play unmuted because sound was programmatically disallowed"))))(function(){return vd(L1(S1(t)))(function(){return ao(new j1({unmuteOverlay:!1}))})})},a=function(t){return vd(IV(e_(!0)(t)))(function(){return vd(L1(S1(t)))(function(){return ao(new j1({unmuteOverlay:!0}))})})};return BA(e)({whenNotFound:new x1("