161 lines
1.1 MiB
JavaScript
Raw Normal View History

var hD=(b,D)=>()=>(D||b((D={exports:{}}).exports,D),D.exports);var iR=hD((uR,Th)=>{(function(){const D=document.createElement("link").relList;if(D&&D.supports&&D.supports("modulepreload"))return;for(const T of document.querySelectorAll('link[rel="modulepreload"]'))x(T);new MutationObserver(T=>{for(const j of T)if(j.type==="childList")for(const O of j.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&x(O)}).observe(document,{childList:!0,subtree:!0});function N(T){const j={};return T.integrity&&(j.integrity=T.integrity),T.referrerPolicy&&(j.referrerPolicy=T.referrerPolicy),T.crossOrigin==="use-credentials"?j.credentials="include":T.crossOrigin==="anonymous"?j.credentials="omit":j.credentials="same-origin",j}function x(T){if(T.ep)return;T.ep=!0;const j=N(T);fetch(T.href,j)}})();var yD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zf(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}var _0={exports:{}},yh={},U0={exports:{}},Wt={};/**
2025-04-24 17:06:14 -04:00
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var h2;function gD(){if(h2)return Wt;h2=1;var b=Symbol.for("react.element"),D=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),O=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.iterator;function A(se){return se===null||typeof se!="object"?null:(se=v&&se[v]||se["@@iterator"],typeof se=="function"?se:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,ee={};function re(se,Ie,Lt){this.props=se,this.context=Ie,this.refs=ee,this.updater=Lt||z}re.prototype.isReactComponent={},re.prototype.setState=function(se,Ie){if(typeof se!="object"&&typeof se!="function"&&se!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,se,Ie,"setState")},re.prototype.forceUpdate=function(se){this.updater.enqueueForceUpdate(this,se,"forceUpdate")};function ge(){}ge.prototype=re.prototype;function Ae(se,Ie,Lt){this.props=se,this.context=Ie,this.refs=ee,this.updater=Lt||z}var oe=Ae.prototype=new ge;oe.constructor=Ae,I(oe,re.prototype),oe.isPureReactComponent=!0;var De=Array.isArray,Ge=Object.prototype.hasOwnProperty,mt={current:null},ln={key:!0,ref:!0,__self:!0,__source:!0};function xn(se,Ie,Lt){var G,It={},kt=null,dn=null;if(Ie!=null)for(G in Ie.ref!==void 0&&(dn=Ie.ref),Ie.key!==void 0&&(kt=""+Ie.key),Ie)Ge.call(Ie,G)&&!ln.hasOwnProperty(G)&&(It[G]=Ie[G]);var on=arguments.length-2;if(on===1)It.children=Lt;else if(1<on){for(var Sn=Array(on),oi=0;oi<on;oi++)Sn[oi]=arguments[oi+2];It.children=Sn}if(se&&se.defaultProps)for(G in on=se.defaultProps,on)It[G]===void 0&&(It[G]=on[G]);return{$$typeof:b,type:se,key:kt,ref:dn,props:It,_owner:mt.current}}function mn(se,Ie){return{$$typeof:b,type:se.type,key:Ie,ref:se.ref,props:se.props,_owner:se._owner}}function _(se){return typeof se=="object"&&se!==null&&se.$$typeof===b}function le(se){var Ie={"=":"=0",":":"=2"};return"$"+se.replace(/[=:]/g,function(Lt){return Ie[Lt]})}var pe=/\/+/g;function qe(se,Ie){return typeof se=="object"&&se!==null&&se.key!=null?le(""+se.key):Ie.toString(36)}function be(se,Ie,Lt,G,It){var kt=typeof se;(kt==="undefined"||kt==="boolean")&&(se=null);var dn=!1;if(se===null)dn=!0;else switch(kt){case"string":case"number":dn=!0;break;case"object":switch(se.$$typeof){case b:case D:dn=!0}}if(dn)return dn=se,It=It(dn),se=G===""?"."+qe(dn,0):G,De(It)?(Lt="",se!=null&&(Lt=se.replace(pe,"$&/")+"/"),be(It,Ie,Lt,"",function(oi){return oi})):It!=null&&(_(It)&&(It=mn(It,Lt+(!It.key||dn&&dn.key===It.key?"":(""+It.key).replace(pe,"$&/")+"/")+se)),Ie.push(It)),1;if(dn=0,G=G===""?".":G+":",De(se))for(var on=0;on<se.length;on++){kt=se[on];var Sn=G+qe(kt,on);dn+=be(kt,Ie,Lt,Sn,It)}else if(Sn=A(se),typeof Sn=="function")for(se=Sn.call(se),on=0;!(kt=se.next()).done;)kt=kt.value,Sn=G+qe(kt,on++),dn+=be(kt,Ie,Lt,Sn,It);else if(kt==="object")throw Ie=String(se),Error("Objects are not valid as a React child (found: "+(Ie==="[object Object]"?"object with keys {"+Object.keys(se).join(", ")+"}":Ie)+"). If you meant to render a collection of children, use an array instead.");return dn}function ke(se,Ie,Lt){if(se==null)return se;var G=[],It=0;return be(se,G,"","",function(kt){return Ie.call(Lt,kt,It++)}),G}function Ut(se){if(se._status===-1){var Ie=se._result;Ie=Ie(),Ie.then(function(Lt){(se._status===0||se._status===-1)&&(se._status=1,se._result=Lt)},function(Lt){(se._status===0||se._status===-1)&&(se._status=2,se._result=Lt)}),se._status===-1&&(se._status=0,se._result=Ie)}if(se._status===1)return se._result.default;throw se._result}var Ot={current:null},Ue={transition:null},gt={ReactCurrentDispatcher:Ot,ReactCurrentBatchConfig:Ue,ReactCurrentOwner:mt};function Xe(){throw Error("act(...) is not supported in production builds of React.")}return Wt.Children={map:ke,forEach:function(se,Ie,
2025-04-24 17:06:14 -04:00
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var g2;function vD(){if(g2)return yh;g2=1;var b=ev(),D=Symbol.for("react.element"),N=Symbol.for("react.fragment"),x=Object.prototype.hasOwnProperty,T=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function O(h,l,u){var d,v={},A=null,z=null;u!==void 0&&(A=""+u),l.key!==void 0&&(A=""+l.key),l.ref!==void 0&&(z=l.ref);for(d in l)x.call(l,d)&&!j.hasOwnProperty(d)&&(v[d]=l[d]);if(h&&h.defaultProps)for(d in l=h.defaultProps,l)v[d]===void 0&&(v[d]=l[d]);return{$$typeof:D,type:h,key:A,ref:z,props:v,_owner:T.current}}return yh.Fragment=N,yh.jsx=O,yh.jsxs=O,yh}var v2;function mD(){return v2||(v2=1,_0.exports=vD()),_0.exports}var ae=mD(),we=ev();const xh=Zf(we);var Wg={},j0={exports:{}},Gi={},B0={exports:{}},V0={};/**
2025-04-24 17:06:14 -04:00
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var m2;function SD(){return m2||(m2=1,function(b){function D(Ue,gt){var Xe=Ue.length;Ue.push(gt);e:for(;0<Xe;){var se=Xe-1>>>1,Ie=Ue[se];if(0<T(Ie,gt))Ue[se]=gt,Ue[Xe]=Ie,Xe=se;else break e}}function N(Ue){return Ue.length===0?null:Ue[0]}function x(Ue){if(Ue.length===0)return null;var gt=Ue[0],Xe=Ue.pop();if(Xe!==gt){Ue[0]=Xe;e:for(var se=0,Ie=Ue.length,Lt=Ie>>>1;se<Lt;){var G=2*(se+1)-1,It=Ue[G],kt=G+1,dn=Ue[kt];if(0>T(It,Xe))kt<Ie&&0>T(dn,It)?(Ue[se]=dn,Ue[kt]=Xe,se=kt):(Ue[se]=It,Ue[G]=Xe,se=G);else if(kt<Ie&&0>T(dn,Xe))Ue[se]=dn,Ue[kt]=Xe,se=kt;else break e}}return gt}function T(Ue,gt){var Xe=Ue.sortIndex-gt.sortIndex;return Xe!==0?Xe:Ue.id-gt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var j=performance;b.unstable_now=function(){return j.now()}}else{var O=Date,h=O.now();b.unstable_now=function(){return O.now()-h}}var l=[],u=[],d=1,v=null,A=3,z=!1,I=!1,ee=!1,re=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,Ae=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(Ue){for(var gt=N(u);gt!==null;){if(gt.callback===null)x(u);else if(gt.startTime<=Ue)x(u),gt.sortIndex=gt.expirationTime,D(l,gt);else break;gt=N(u)}}function De(Ue){if(ee=!1,oe(Ue),!I)if(N(l)!==null)I=!0,Ut(Ge);else{var gt=N(u);gt!==null&&Ot(De,gt.startTime-Ue)}}function Ge(Ue,gt){I=!1,ee&&(ee=!1,ge(xn),xn=-1),z=!0;var Xe=A;try{for(oe(gt),v=N(l);v!==null&&(!(v.expirationTime>gt)||Ue&&!le());){var se=v.callback;if(typeof se=="function"){v.callback=null,A=v.priorityLevel;var Ie=se(v.expirationTime<=gt);gt=b.unstable_now(),typeof Ie=="function"?v.callback=Ie:v===N(l)&&x(l),oe(gt)}else x(l);v=N(l)}if(v!==null)var Lt=!0;else{var G=N(u);G!==null&&Ot(De,G.startTime-gt),Lt=!1}return Lt}finally{v=null,A=Xe,z=!1}}var mt=!1,ln=null,xn=-1,mn=5,_=-1;function le(){return!(b.unstable_now()-_<mn)}function pe(){if(ln!==null){var Ue=b.unstable_now();_=Ue;var gt=!0;try{gt=ln(!0,Ue)}finally{gt?qe():(mt=!1,ln=null)}}else mt=!1}var qe;if(typeof Ae=="function")qe=function(){Ae(pe)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,ke=be.port2;be.port1.onmessage=pe,qe=function(){ke.postMessage(null)}}else qe=function(){re(pe,0)};function Ut(Ue){ln=Ue,mt||(mt=!0,qe())}function Ot(Ue,gt){xn=re(function(){Ue(b.unstable_now())},gt)}b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(Ue){Ue.callback=null},b.unstable_continueExecution=function(){I||z||(I=!0,Ut(Ge))},b.unstable_forceFrameRate=function(Ue){0>Ue||125<Ue?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):mn=0<Ue?Math.floor(1e3/Ue):5},b.unstable_getCurrentPriorityLevel=function(){return A},b.unstable_getFirstCallbackNode=function(){return N(l)},b.unstable_next=function(Ue){switch(A){case 1:case 2:case 3:var gt=3;break;default:gt=A}var Xe=A;A=gt;try{return Ue()}finally{A=Xe}},b.unstable_pauseExecution=function(){},b.unstable_requestPaint=function(){},b.unstable_runWithPriority=function(Ue,gt){switch(Ue){case 1:case 2:case 3:case 4:case 5:break;default:Ue=3}var Xe=A;A=Ue;try{return gt()}finally{A=Xe}},b.unstable_scheduleCallback=function(Ue,gt,Xe){var se=b.unstable_now();switch(typeof Xe=="object"&&Xe!==null?(Xe=Xe.delay,Xe=typeof Xe=="number"&&0<Xe?se+Xe:se):Xe=se,Ue){case 1:var Ie=-1;break;case 2:Ie=250;break;case 5:Ie=1073741823;break;case 4:Ie=1e4;break;default:Ie=5e3}return Ie=Xe+Ie,Ue={id:d++,callback:gt,priorityLevel:Ue,startTime:Xe,expirationTime:Ie,sortIndex:-1},Xe>se?(Ue.sortIndex=Xe,D(u,Ue),N(l)===null&&Ue===N(u)&&(ee?(ge(xn),xn=-1):ee=!0,Ot(De,Xe-se))):(Ue.sortIndex=Ie,D(l,Ue),I||z||(I=!0,Ut(Ge))),Ue},b.unstable_shouldYield=le,b.unstable_wrapCallback=function(Ue){var gt=A;return function(){var Xe=A;A=gt;try{return Ue.apply(this,arguments)
2025-04-24 17:06:14 -04:00
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var w2;function TD(){if(w2)return Gi;w2=1;var b=ev(),D=wD();function N(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,y=1;y<arguments.length;y++)c+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var x=new Set,T={};function j(s,c){O(s,c),O(s+"Capture",c)}function O(s,c){for(T[s]=c,s=0;s<c.length;s++)x.add(c[s])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},v={};function A(s){return l.call(v,s)?!0:l.call(d,s)?!1:u.test(s)?v[s]=!0:(d[s]=!0,!1)}function z(s,c,y,S){if(y!==null&&y.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return S?!1:y!==null?!y.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function I(s,c,y,S){if(c===null||typeof c>"u"||z(s,c,y,S))return!0;if(S)return!1;if(y!==null)switch(y.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function ee(s,c,y,S,k,R,V){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=S,this.attributeNamespace=k,this.mustUseProperty=y,this.propertyName=s,this.type=c,this.sanitizeURL=R,this.removeEmptyString=V}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){re[s]=new ee(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];re[c]=new ee(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){re[s]=new ee(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){re[s]=new ee(s,2,!1,s,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(s){re[s]=new ee(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){re[s]=new ee(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){re[s]=new ee(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){re[s]=new ee(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){re[s]=new ee(s,5,!1,s.toLowerCase(),null,!1,!1)});var ge=/[\-:]([a-z])/g;function Ae(s){return s[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 ve
2025-04-24 17:06:14 -04:00
`+se+s}var Lt=!1;function G(s,c){if(!s||Lt)return"";Lt=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(me){var S=me}Reflect.construct(s,[],c)}else{try{c.call()}catch(me){S=me}s.call(c.prototype)}else{try{throw Error()}catch(me){S=me}s()}}catch(me){if(me&&S&&typeof me.stack=="string"){for(var k=me.stack.split(`
`),R=S.stack.split(`
`),V=k.length-1,J=R.length-1;1<=V&&0<=J&&k[V]!==R[J];)J--;for(;1<=V&&0<=J;V--,J--)if(k[V]!==R[J]){if(V!==1||J!==1)do if(V--,J--,0>J||k[V]!==R[J]){var te=`
`+k[V].replace(" at new "," at ");return s.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",s.displayName)),te}while(1<=V&&0<=J);break}}}finally{Lt=!1,Error.prepareStackTrace=y}return(s=s?s.displayName||s.name:"")?Ie(s):""}function It(s){switch(s.tag){case 5:return Ie(s.type);case 16:return Ie("Lazy");case 13:return Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 2:case 15:return s=G(s.type,!1),s;case 11:return s=G(s.type.render,!1),s;case 1:return s=G(s.type,!0),s;default:return""}}function kt(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case ln:return"Fragment";case mt:return"Portal";case mn:return"Profiler";case xn:return"StrictMode";case qe:return"Suspense";case be:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case le:return(s.displayName||"Context")+".Consumer";case _:return(s._context.displayName||"Context")+".Provider";case pe:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ke:return c=s.displayName||null,c!==null?c:kt(s.type)||"Memo";case Ut:c=s._payload,s=s._init;try{return kt(s(c))}catch{}}return null}function dn(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kt(c);case 8:return c===xn?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function on(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Sn(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function oi(s){var c=Sn(s)?"checked":"value",y=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),S=""+s[c];if(!s.hasOwnProperty(c)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var k=y.get,R=y.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return k.call(this)},set:function(V){S=""+V,R.call(this,V)}}),Object.defineProperty(s,c,{enumerable:y.enumerable}),{getValue:function(){return S},setValue:function(V){S=""+V},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function lc(s){s._valueTracker||(s._valueTracker=oi(s))}function Me(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var y=c.getValue(),S="";return s&&(S=Sn(s)?s.checked?"true":"false":s.value),s=S,s!==y?(c.setValue(s),!0):!1}function sc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function nd(s,c){var y=c.checked;return Xe({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??s._wrapperState.initialChecked})}function Ju(s,c){var y=c.defaultValue==null?"":c.defaultValue,S=c.checked!=null?c.checked:c.defaultChecked;y=on(c.value!=null?c.value:y),s._wrapperState={initialChecked:S,initialValue:y,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Bs(s,c){c=c.checked,c!=null&&oe(s,"checked",c,!1)}function Qu(s,c){Bs(s,c);var y=on(c.value),S=c.type;if(y!=null)S==="number"?(y===0&&s.value===""||s.value!=y)&&(s.value=""+y):s.value!==""+y&&(s.value=""+y);else if(S==="submit"||S==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?Ti(s,c.type,y):c.hasOwnProperty("defaultValue")&&Ti(s,c.type,on(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function Ph(s,c,y){if(c.hasOwnProperty("val
`).replace(Dd,"")}function ha(s,c,y){if(c=pa(c),pa(s)!==c&&y)throw Error(N(425))}function ya(){}var Oc=null,Od=null;function Rd(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var ns=typeof setTimeout=="function"?setTimeout:void 0,fv=typeof clearTimeout=="function"?clearTimeout:void 0,bd=typeof Promise=="function"?Promise:void 0,dv=typeof queueMicrotask=="function"?queueMicrotask:typeof bd<"u"?function(s){return bd.resolve(null).then(s).catch(pv)}:ns;function pv(s){setTimeout(function(){throw s})}function Rc(s,c){var y=c,S=0;do{var k=y.nextSibling;if(s.removeChild(y),k&&k.nodeType===8)if(y=k.data,y==="/$"){if(S===0){s.removeChild(k),rr(c);return}S--}else y!=="$"&&y!=="$?"&&y!=="$!"||S++;y=k}while(y);rr(c)}function Ru(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function Md(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var y=s.data;if(y==="$"||y==="$!"||y==="$?"){if(c===0)return s;c--}else y==="/$"&&c++}s=s.previousSibling}return null}var fl=Math.random().toString(36).slice(2),di="__reactFiber$"+fl,dl="__reactProps$"+fl,Zo="__reactContainer$"+fl,Ld="__reactEvents$"+fl,hv="__reactListeners$"+fl,rs="__reactHandles$"+fl;function Co(s){var c=s[di];if(c)return c;for(var y=s.parentNode;y;){if(c=y[Zo]||y[di]){if(y=c.alternate,c.child!==null||y!==null&&y.child!==null)for(s=Md(s);s!==null;){if(y=s[di])return y;s=Md(s)}return c}s=y,y=s.parentNode}return null}function pl(s){return s=s[di]||s[Zo],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function bu(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(N(33))}function ga(s){return s[dl]||null}var va=[],hl=-1;function Pi(s){return{current:s}}function vn(s){0>hl||(s.current=va[hl],va[hl]=null,hl--)}function un(s,c){hl++,va[hl]=s.current,s.current=c}var eu={},fr=Pi(eu),Nr=Pi(!1),Mu=eu;function is(s,c){var y=s.type.contextTypes;if(!y)return eu;var S=s.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===c)return S.__reactInternalMemoizedMaskedChildContext;var k={},R;for(R in y)k[R]=c[R];return S&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=k),k}function dr(s){return s=s.childContextTypes,s!=null}function bc(){vn(Nr),vn(fr)}function Zt(s,c,y){if(fr.current!==eu)throw Error(N(168));un(fr,c),un(Nr,y)}function Nd(s,c,y){var S=s.stateNode;if(c=c.childContextTypes,typeof S.getChildContext!="function")return y;S=S.getChildContext();for(var k in S)if(!(k in c))throw Error(N(108,dn(s)||"Unknown",k));return Xe({},y,S)}function os(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||eu,Mu=fr.current,un(fr,s),un(Nr,Nr.current),!0}function zh(s,c,y){var S=s.stateNode;if(!S)throw Error(N(169));y?(s=Nd(s,c,Mu),S.__reactInternalMemoizedMergedChildContext=s,vn(Nr),vn(fr),un(fr,s)):vn(Nr),un(Nr,y)}var tu=null,ma=!1,Mc=!1;function Di(s){tu===null?tu=[s]:tu.push(s)}function Nt(s){ma=!0,Di(s)}function $t(){if(!Mc&&tu!==null){Mc=!0;var s=0,c=jt;try{var y=tu;for(jt=1;s<y.length;s++){var S=y[s];do S=S(!0);while(S!==null)}tu=null,ma=!1}catch(k){throw tu!==null&&(tu=tu.slice(s+1)),zl(Mr,$t),k}finally{jt=c,Mc=!1}}return null}var Oi=[],Lu=0,nu=null,Sa=0,pi=[],Ri=0,Te=null,ko=1,bi="";function xt(s,c){Oi[Lu++]=Sa,Oi[Lu++]=nu,nu=s,Sa=c}function yl(s,c,y){pi[Ri++]=ko,pi[Ri++]=bi,pi[Ri++]=Te,Te=s;var S=ko;s=bi;var k=32-Yr(S)-1;S&=~(1<<k),y+=1;var R=32-Yr(c)+k;if(30<R){var V=k-k%5;R=(S&(1<<V)-1).toString(32),S>>=V,k-=V,ko=1<<32-Yr(c)+k|y<<k|S,bi=R+s}else ko=1<<R|y<<k|S,bi=s}function ru(s){s.return!==null&&(xt(s,1),yl(s,1,0))}function Bt(s){for(;s===nu;)nu=Oi[--Lu],Oi[Lu]=null,Sa=Oi[--Lu],Oi[Lu]=null;for(;s===Te;)Te=pi[--Ri],pi[Ri]=null,bi=pi[--Ri],pi[Ri]=null,ko=pi[--Ri],pi[Ri]=null}var Bn=null,Qr=null,wt=!1,no=null;function _d(s,c){var y=ji(5,null,null,0);y.elementType="DELETED",y.stateNode=c,y.return=s,c=s.deletio
2025-04-24 17:06:14 -04:00
Error generating stack: `+R.message+`
`+R.stack}return{value:s,source:c,stack:k,digest:null}}function cu(s,c,y){return{value:s,source:null,stack:y??null,digest:c??null}}function Bu(s,c){try{console.error(c.value)}catch(y){setTimeout(function(){throw y})}}var ty=typeof WeakMap=="function"?WeakMap:Map;function ba(s,c,y){y=ou(-1,y),y.tag=3,y.payload={element:null};var S=c.value;return y.callback=function(){Ba||(Ba=!0,af=S),Bu(s,c)},y}function Ma(s,c,y){y=ou(-1,y),y.tag=3;var S=s.type.getDerivedStateFromError;if(typeof S=="function"){var k=c.value;y.payload=function(){return S(k)},y.callback=function(){Bu(s,c)}}var R=s.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(y.callback=function(){Bu(s,c),typeof S!="function"&&(pu===null?pu=new Set([this]):pu.add(this));var V=c.stack;this.componentDidCatch(c.value,{componentStack:V!==null?V:""})}),y}function tp(s,c,y){var S=s.pingCache;if(S===null){S=s.pingCache=new ty;var k=new Set;S.set(c,k)}else k=S.get(c),k===void 0&&(k=new Set,S.set(c,k));k.has(y)||(k.add(y),s=Sp.bind(null,s,c,y),c.then(s,s))}function np(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function rp(s,c,y,S,k){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(c=ou(-1,1),c.tag=2,uu(y,c,1))),y.lanes|=1),s):(s.flags|=65536,s.lanes=k,s)}var vv=De.ReactCurrentOwner,ir=!1;function cn(s,c,y,S){c.child=s===null?Ao(c,null,y,S):Mt(c,s.child,y,S)}function Ro(s,c,y,S,k){y=y.render;var R=c.ref;return vl(c,k),S=Hd(s,c,y,S,R,k),y=Kc(),s!==null&&!ir?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~k,fu(s,c,k)):(wt&&y&&ru(c),c.flags|=1,cn(s,c,S,k),c.child)}function Jc(s,c,y,S,k){if(s===null){var R=y.type;return typeof R=="function"&&!Tp(R)&&R.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(c.tag=15,c.type=R,Pr(s,c,R,S,k)):(s=Ga(y.type,null,S,c,c.mode,k),s.ref=c.ref,s.return=c,c.child=s)}if(R=s.child,(s.lanes&k)===0){var V=R.memoizedProps;if(y=y.compare,y=y!==null?y:rn,y(V,S)&&s.ref===c.ref)return fu(s,c,k)}return c.flags|=1,s=_o(R,S),s.ref=c.ref,s.return=c,c.child=s}function Pr(s,c,y,S,k){if(s!==null){var R=s.memoizedProps;if(rn(R,S)&&s.ref===c.ref)if(ir=!1,c.pendingProps=S=R,(s.lanes&k)!==0)(s.flags&131072)!==0&&(ir=!0);else return c.lanes=s.lanes,fu(s,c,k)}return or(s,c,y,S,k)}function dt(s,c,y){var S=c.pendingProps,k=S.children,R=s!==null?s.memoizedState:null;if(S.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},un(Il,gi),gi|=y;else{if((y&1073741824)===0)return s=R!==null?R.baseLanes|y:y,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,un(Il,gi),gi|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},S=R!==null?R.baseLanes:y,un(Il,gi),gi|=S}else R!==null?(S=R.baseLanes|y,c.memoizedState=null):S=y,un(Il,gi),gi|=S;return cn(s,c,k,y),c.child}function Qc(s,c){var y=c.ref;(s===null&&y!==null||s!==null&&s.ref!==y)&&(c.flags|=512,c.flags|=2097152)}function or(s,c,y,S,k){var R=dr(y)?Mu:fr.current;return R=is(c,R),vl(c,k),y=Hd(s,c,y,S,R,k),S=Kc(),s!==null&&!ir?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~k,fu(s,c,k)):(wt&&S&&ru(c),c.flags|=1,cn(s,c,y,k),c.child)}function Oe(s,c,y,S,k){if(dr(y)){var R=!0;os(c)}else R=!1;if(vl(c,k),c.stateNode===null)Ts(s,c),Zd(c,y,S),Ra(c,y,S,k),S=!0;else if(s===null){var V=c.stateNode,J=c.memoizedProps;V.props=J;var te=V.context,me=y.contextType;typeof me=="object"&&me!==null?me=Ur(me):(me=dr(y)?Mu:fr.current,me=is(c,me));var Ee=y.getDerivedStateFromProps,Pe=typeof Ee=="function"||typeof V.getSnapshotBeforeUpdate=="function";Pe||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(J!==S||te!==me)&&ep(c,V,S,me),io=!1;var xe=c.memoizedState;V.state=xe,Ia(c,S,V,k),te=c.memoizedState,J!==S||xe!==te||Nr.current||io?(typeof Ee=="function"&&(Yc(c,y,Ee,S),te=c.memoizedState),(J=io||$c(c,y,J,S,xe,te,me))?(Pe||typeof V.UNSAFE_componentWillMount!="function"&&typ
2025-04-24 17:06:14 -04:00
* react-router v7.1.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var E2="popstate";function kD(b={}){function D(x,T){let{pathname:j,search:O,hash:h}=x.location;return Q0("",{pathname:j,search:O,hash:h},T.state&&T.state.usr||null,T.state&&T.state.key||"default")}function N(x,T){return typeof T=="string"?T:Ih(T)}return PD(D,N,null,b)}function zn(b,D){if(b===!1||b===null||typeof b>"u")throw new Error(D)}function Yu(b,D){if(!b){typeof console<"u"&&console.warn(D);try{throw new Error(D)}catch{}}}function AD(){return Math.random().toString(36).substring(2,10)}function C2(b,D){return{usr:b.state,key:b.key,idx:D}}function Q0(b,D,N=null,x){return{pathname:typeof b=="string"?b:b.pathname,search:"",hash:"",...typeof D=="string"?ed(D):D,state:N,key:D&&D.key||x||AD()}}function Ih({pathname:b="/",search:D="",hash:N=""}){return D&&D!=="?"&&(b+=D.charAt(0)==="?"?D:"?"+D),N&&N!=="#"&&(b+=N.charAt(0)==="#"?N:"#"+N),b}function ed(b){let D={};if(b){let N=b.indexOf("#");N>=0&&(D.hash=b.substring(N),b=b.substring(0,N));let x=b.indexOf("?");x>=0&&(D.search=b.substring(x),b=b.substring(0,x)),b&&(D.pathname=b)}return D}function PD(b,D,N,x={}){let{window:T=document.defaultView,v5Compat:j=!1}=x,O=T.history,h="POP",l=null,u=d();u==null&&(u=0,O.replaceState({...O.state,idx:u},""));function d(){return(O.state||{idx:null}).idx}function v(){h="POP";let re=d(),ge=re==null?null:re-u;u=re,l&&l({action:h,location:ee.location,delta:ge})}function A(re,ge){h="PUSH";let Ae=Q0(ee.location,re,ge);u=d()+1;let oe=C2(Ae,u),De=ee.createHref(Ae);try{O.pushState(oe,"",De)}catch(Ge){if(Ge instanceof DOMException&&Ge.name==="DataCloneError")throw Ge;T.location.assign(De)}j&&l&&l({action:h,location:ee.location,delta:1})}function z(re,ge){h="REPLACE";let Ae=Q0(ee.location,re,ge);u=d();let oe=C2(Ae,u),De=ee.createHref(Ae);O.replaceState(oe,"",De),j&&l&&l({action:h,location:ee.location,delta:0})}function I(re){let ge=T.location.origin!=="null"?T.location.origin:T.location.href,Ae=typeof re=="string"?re:Ih(re);return Ae=Ae.replace(/ $/,"%20"),zn(ge,`No window.location.(origin|href) available to create URL for href: ${Ae}`),new URL(Ae,ge)}let ee={get action(){return h},get location(){return b(T,O)},listen(re){if(l)throw new Error("A history only accepts one active listener");return T.addEventListener(E2,v),l=re,()=>{T.removeEventListener(E2,v),l=null}},createHref(re){return D(T,re)},createURL:I,encodeLocation(re){let ge=I(re);return{pathname:ge.pathname,search:ge.search,hash:ge.hash}},push:A,replace:z,go(re){return O.go(re)}};return ee}function V2(b,D,N="/"){return DD(b,D,N,!1)}function DD(b,D,N,x){let T=typeof D=="string"?ed(D):D,j=Us(T.pathname||"/",N);if(j==null)return null;let O=F2(b);OD(O);let h=null;for(let l=0;h==null&&l<O.length;++l){let u=FD(j);h=BD(O[l],u,x)}return h}function F2(b,D=[],N=[],x=""){let T=(j,O,h)=>{let l={relativePath:h===void 0?j.path||"":h,caseSensitive:j.caseSensitive===!0,childrenIndex:O,route:j};l.relativePath.startsWith("/")&&(zn(l.relativePath.startsWith(x),`Absolute route path "${l.relativePath}" nested under path "${x}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(x.length));let u=Fl([x,l.relativePath]),d=N.concat(l);j.children&&j.children.length>0&&(zn(j.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),F2(j.children,D,d,u)),!(j.path==null&&!j.index)&&D.push({path:u,score:UD(u,j.index),routesMeta:d})};return b.forEach((j,O)=>{var h;if(j.path===""||!((h=j.path)!=null&&h.includes("?")))T(j,O);else for(let l of K2(j.path))T(j,O,l)}),D}function K2(b){let D=b.split("/");if(D.length===0)return[];let[N,...x]=D,T=N.endsWith("?"),j=N.replace(/\?$/,"");if(x.length===0)return T?[j,""]:[j];let O=K2(x.join("/")),h=[];return h.push(...O.map(l=>l===""?j:[j,l].join("/"))),T&&h.push(...O),h.map(l=>b.startsWith("/")&&l===""?"/":l)}function OD(b){b.sort((D,N)=>D.score!==N.score?N.score-D.score:jD(D.routesMeta.map(x=>x.childrenIndex),N.routesMeta.map(x=>x.childrenIndex)))}var RD=/^:[\w-]+$/,bD=3,MD=2,LD=1,ND=10,_D=-2,k2=b=>b==="*";function UD(b,D){let N=b.split("/"),x=
2025-04-24 17:06:14 -04:00
Please change the parent <Route path="${Ae}"> to <Route path="${Ae==="/"?"*":`${Ae}/*`}">.`)}let v=js(),A;if(D){let Ae=typeof D=="string"?ed(D):D;zn(u==="/"||((ge=Ae.pathname)==null?void 0:ge.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${Ae.pathname}" was given in the \`location\` prop.`),A=Ae}else A=v;let z=A.pathname||"/",I=z;if(u!=="/"){let Ae=u.replace(/^\//,"").split("/");I="/"+z.replace(/^\//,"").split("/").slice(Ae.length).join("/")}let ee=V2(b,{pathname:I});Yu(d||ee!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Yu(ee==null||ee[ee.length-1].route.element!==void 0||ee[ee.length-1].route.Component!==void 0||ee[ee.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let re=uO(ee&&ee.map(Ae=>Object.assign({},Ae,{params:Object.assign({},h,Ae.params),pathname:Fl([u,T.encodeLocation?T.encodeLocation(Ae.pathname).pathname:Ae.pathname]),pathnameBase:Ae.pathnameBase==="/"?u:Fl([u,T.encodeLocation?T.encodeLocation(Ae.pathnameBase).pathname:Ae.pathnameBase])})),j,N,x);return D&&re?we.createElement(Ch.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...A},navigationType:"POP"}},re):re}function nO(){let b=fO(),D=XD(b)?`${b.status} ${b.statusText}`:b instanceof Error?b.message:JSON.stringify(b),N=b instanceof Error?b.stack:null,x="rgba(200,200,200, 0.5)",T={padding:"0.5rem",backgroundColor:x},j={padding:"2px 4px",backgroundColor:x},O=null;return console.error("Error handled by React Router default ErrorBoundary:",b),O=we.createElement(we.Fragment,null,we.createElement("p",null,"💿 Hey developer 👋"),we.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",we.createElement("code",{style:j},"ErrorBoundary")," or"," ",we.createElement("code",{style:j},"errorElement")," prop on your route.")),we.createElement(we.Fragment,null,we.createElement("h2",null,"Unexpected Application Error!"),we.createElement("h3",{style:{fontStyle:"italic"}},D),N?we.createElement("pre",{style:T},N):null,O)}var rO=we.createElement(nO,null),iO=class extends we.Component{constructor(b){super(b),this.state={location:b.location,revalidation:b.revalidation,error:b.error}}static getDerivedStateFromError(b){return{error:b}}static getDerivedStateFromProps(b,D){return D.location!==b.location||D.revalidation!=="idle"&&b.revalidation==="idle"?{error:b.error,location:b.location,revalidation:b.revalidation}:{error:b.error!==void 0?b.error:D.error,location:D.location,revalidation:b.revalidation||D.revalidation}}componentDidCatch(b,D){console.error("React Router caught the following error during render",b,D)}render(){return this.state.error!==void 0?we.createElement(Kl.Provider,{value:this.props.routeContext},we.createElement(o1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function oO({routeContext:b,match:D,children:N}){let x=we.useContext(td);return x&&x.static&&x.staticContext&&(D.route.errorElement||D.route.ErrorBoundary)&&(x.staticContext._deepestRenderedBoundaryId=D.route.id),we.createElement(Kl.Provider,{value:b},N)}function uO(b,D=[],N=null,x=null){if(b==null){if(!N)return null;if(N.errors)b=N.matches;else if(D.length===0&&!N.initialized&&N.matches.length>0)b=N.matches;else return null}let T=b,j=N==null?void 0:N.errors;if(j!=null){let l=T.findIndex(u=>u.route.id&&(j==null?void 0:j[u.route.id])!==void 0);zn(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(j).join(",")}`),T=T.slice(0,Math.min(T.length,l+1))}let O=!1,h=-1;if(N)for(let l=0;l<T.length;l++){let u=T[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(h=l),u.route.id){let{loaderData:d,errors:v
2025-04-24 17:06:14 -04:00
object-assign
(c) Sindre Sorhus
@license MIT
*/var X0,L2;function c3(){if(L2)return X0;L2=1;var b=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;function x(j){if(j==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(j)}function T(){try{if(!Object.assign)return!1;var j=new String("abc");if(j[5]="de",Object.getOwnPropertyNames(j)[0]==="5")return!1;for(var O={},h=0;h<10;h++)O["_"+String.fromCharCode(h)]=h;var l=Object.getOwnPropertyNames(O).map(function(d){return O[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return X0=T()?Object.assign:function(j,O){for(var h,l=x(j),u,d=1;d<arguments.length;d++){h=Object(arguments[d]);for(var v in h)D.call(h,v)&&(l[v]=h[v]);if(b){u=b(h);for(var A=0;A<u.length;A++)N.call(h,u[A])&&(l[u[A]]=h[u[A]])}}return l},X0}var f3=c3();const d3=Zf(f3);var uc={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},Dt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Dt).map(function(b){return Dt[b]});var _n={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Zg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Eh={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},p3=Object.keys(Zg).reduce(function(b,D){return b[Zg[D]]=D,b},{}),h3=[Dt.NOSCRIPT,Dt.SCRIPT,Dt.STYLE],gu="data-react-helmet",y3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},g3=function(b,D){if(!(b instanceof D))throw new TypeError("Cannot call a class as a function")},v3=function(){function b(D,N){for(var x=0;x<N.length;x++){var T=N[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(D,T.key,T)}}return function(D,N,x){return N&&b(D.prototype,N),x&&b(D,x),D}}(),Wi=Object.assign||function(b){for(var D=1;D<arguments.length;D++){var N=arguments[D];for(var x in N)Object.prototype.hasOwnProperty.call(N,x)&&(b[x]=N[x])}return b},m3=function(b,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);b.prototype=Object.create(D&&D.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(b,D):b.__proto__=D)},N2=function(b,D){var N={};for(var x in b)D.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(b,x)&&(N[x]=b[x]);return N},S3=function(b,D){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:b},e1=function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return N===!1?String(D):String(D).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},w3=function(D){var N=Jf(D,Dt.TITLE),x=Jf(D,Eh.TITLE_TEMPLATE);if(x&&N)return x.replace(/%s/g,function(){return Array.isArray(N)?N.join(""):N});var T=Jf(D,Eh.DEFAULT_TITLE);return N||T||void 0},T3=function(D){return Jf(D,Eh.ON_CHANGE_CLIENT_STATE)||function(){}},Y0=function(D,N){return N.filter(function(x){return typeof x[D]<"u"}).map(function(x){return x[D]}).reduce(function(x,T){return Wi({},x,T)},{})},x3=function(D,N){return N.filter(function(x){return typeof x[Dt.BASE]<"u"}).map(function(x){return x[Dt.BASE]}).reverse().reduce(function(x,T){if(!x.length)for(var j=Object.keys(T),O=0;O<j.length;O++){var
2025-04-24 17:06:14 -04:00
* protobuf.js v7.4.0 (c) 2016, daniel wirtz
* compiled thu, 22 aug 2024 20:30:39 utc
* licensed under the bsd-3-clause license
* see: https://github.com/dcodeio/protobuf.js for details
*/(function(b){(function(D,N,x){var T=function j(O){var h=N[O];return h||D[O][0].call(h=N[O]={exports:{}},j,h,h.exports),h.exports}(x[0]);T.util.global.protobuf=T,typeof define=="function"&&define.amd&&define(["long"],function(j){return j&&j.isLong&&(T.util.Long=j,T.configure()),T}),typeof Th=="object"&&Th&&Th.exports&&(Th.exports=T)})({1:[function(D,N,x){N.exports=function(T,j){for(var O=Array(arguments.length-1),h=0,l=2,u=!0;l<arguments.length;)O[h++]=arguments[l++];return new Promise(function(d,v){O[h]=function(A){if(u)if(u=!1,A)v(A);else{for(var z=Array(arguments.length-1),I=0;I<z.length;)z[I++]=arguments[I];d.apply(null,z)}};try{T.apply(j||null,O)}catch(A){u&&(u=!1,v(A))}})}},{}],2:[function(D,N,x){x.length=function(l){var u=l.length;if(!u)return 0;for(var d=0;1<--u%4&&(l[0|u]||"")=="=";)++d;return Math.ceil(3*l.length)/4-d};for(var T=Array(64),j=Array(123),O=0;O<64;)j[T[O]=O<26?O+65:O<52?O+71:O<62?O-4:O-59|43]=O++;x.encode=function(l,u,d){for(var v,A=null,z=[],I=0,ee=0;u<d;){var re=l[u++];switch(ee){case 0:z[I++]=T[re>>2],v=(3&re)<<4,ee=1;break;case 1:z[I++]=T[v|re>>4],v=(15&re)<<2,ee=2;break;case 2:z[I++]=T[v|re>>6],z[I++]=T[63&re],ee=0}8191<I&&((A=A||[]).push(String.fromCharCode.apply(String,z)),I=0)}return ee&&(z[I++]=T[v],z[I++]=61,ee===1&&(z[I++]=61)),A?(I&&A.push(String.fromCharCode.apply(String,z.slice(0,I))),A.join("")):String.fromCharCode.apply(String,z.slice(0,I))};var h="invalid encoding";x.decode=function(l,u,d){for(var v,A=d,z=0,I=0;I<l.length;){var ee=l.charCodeAt(I++);if(ee==61&&1<z)break;if((ee=j[ee])===b)throw Error(h);switch(z){case 0:v=ee,z=1;break;case 1:u[d++]=v<<2|(48&ee)>>4,v=ee,z=2;break;case 2:u[d++]=(15&v)<<4|(60&ee)>>2,v=ee,z=3;break;case 3:u[d++]=(3&v)<<6|ee,z=0}}if(z===1)throw Error(h);return d-A},x.test=function(l){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l)}},{}],3:[function(D,N,x){function T(){this.t={}}(N.exports=T).prototype.on=function(j,O,h){return(this.t[j]||(this.t[j]=[])).push({fn:O,ctx:h||this}),this},T.prototype.off=function(j,O){if(j===b)this.t={};else if(O===b)this.t[j]=[];else for(var h=this.t[j],l=0;l<h.length;)h[l].fn===O?h.splice(l,1):++l;return this},T.prototype.emit=function(j){var O=this.t[j];if(O){for(var h=[],l=1;l<arguments.length;)h.push(arguments[l++]);for(l=0;l<O.length;)O[l].fn.apply(O[l++].ctx,h)}return this}},{}],4:[function(D,N,x){function T(u){function d(le,pe,qe,be){var ke=pe<0?1:0;le((pe=ke?-pe:pe)===0?0<1/pe?0:2147483648:isNaN(pe)?2143289344:34028234663852886e22<pe?(ke<<31|2139095040)>>>0:pe<11754943508222875e-54?(ke<<31|Math.round(pe/1401298464324817e-60))>>>0:(ke<<31|127+(le=Math.floor(Math.log(pe)/Math.LN2))<<23|8388607&Math.round(pe*Math.pow(2,-le)*8388608))>>>0,qe,be)}function v(le,pe,qe){return le=le(pe,qe),pe=2*(le>>31)+1,qe=le>>>23&255,le&=8388607,qe==255?le?NaN:1/0*pe:qe==0?1401298464324817e-60*pe*le:pe*Math.pow(2,qe-150)*(8388608+le)}function A(le,pe,qe){re[0]=le,pe[qe]=ge[0],pe[qe+1]=ge[1],pe[qe+2]=ge[2],pe[qe+3]=ge[3]}function z(le,pe,qe){re[0]=le,pe[qe]=ge[3],pe[qe+1]=ge[2],pe[qe+2]=ge[1],pe[qe+3]=ge[0]}function I(le,pe){return ge[0]=le[pe],ge[1]=le[pe+1],ge[2]=le[pe+2],ge[3]=le[pe+3],re[0]}function ee(le,pe){return ge[3]=le[pe],ge[2]=le[pe+1],ge[1]=le[pe+2],ge[0]=le[pe+3],re[0]}var re,ge,Ae,oe,De;function Ge(le,pe,qe,be,ke,Ut){var Ot,Ue=be<0?1:0;(be=Ue?-be:be)===0?(le(0,ke,Ut+pe),le(0<1/be?0:2147483648,ke,Ut+qe)):isNaN(be)?(le(0,ke,Ut+pe),le(2146959360,ke,Ut+qe)):17976931348623157e292<be?(le(0,ke,Ut+pe),le((Ue<<31|2146435072)>>>0,ke,Ut+qe)):be<22250738585072014e-324?(le((Ot=be/5e-324)>>>0,ke,Ut+pe),le((Ue<<31|Ot/4294967296)>>>0,ke,Ut+qe)):(le(4503599627370496*(Ot=be*Math.pow(2,-(be=(be=Math.floor(Math.log(be)/Math.LN2))===1024?1023:be)))>>>0,ke,Ut+pe),le((Ue<<31|be+1023<<20|1048576*Ot&1048575)>>>0,ke,Ut+qe))}function mt(le,pe,qe,be,ke){return pe=le(be,ke+pe),le=le(be,ke+qe),be=2*(le>>31)+1,ke=le>>>20&2047,qe=4294967296*(1048575&le)+pe,ke==2047?qe?NaN:1/0*be:ke==0?5e-324*be*qe:be*Math.pow(2,ke-1075)*(qe+4503599627370496)}function ln(le,pe,qe){Ae[0]=le,pe[qe]=oe[0],pe[qe+1]=oe[1],pe[qe+2]=oe[2],pe[qe+3
`).map(O=>O.trim()).filter(Boolean);const N={method:"UNDEFINED",url:"",headers:{},body:null},x=b.match(D);if(!x)throw console.log(b),new Error("Invalid 'Copy as fetch' string.");N.url=x[1];const T=x[2],j=JSON.parse(T);return j.method&&(N.method=j.method),j.headers&&(N.headers=j.headers),j.body&&(N.body=j.body),N}const V3=new Uint8Array([237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237]),F3=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),K3=new Uint8Array([112,115,115,104]);function r1(b,D){const N=new ArrayBuffer(4);return new DataView(N).setUint32(0,b,D),new Uint8Array(N)}function $0(b,D){const N=new ArrayBuffer(2);return new DataView(N).setUint16(0,b,D),new Uint8Array(N)}function j2(b,D){const N=b.length,x=N+32,T=new Uint8Array([...r1(x,!1),...K3,...new Uint8Array(4),...D,...r1(N,!1),...b]);return oI(T)}function H3(b){const D=new Uint8Array([...$0(1,!0),...$0(b.length,!0),...b]);return new Uint8Array([...r1(D.length+2+4,!0),...$0(1,!0),...D])}function q3(b){const D=new Uint8Array(b.length*2);for(let N=0;N<b.length;N++){const x=b.charCodeAt(N);D[N*2]=x&255,D[N*2+1]=x>>8}return D}function z3(b){return Uint8Array.from(b.split("").map(D=>D.charCodeAt()))}async function G3(){try{const b=await navigator.clipboard.readText(),D=B3(b);let N,x;if(D.body.startsWith("<")){x=D.body;const T=x.match(/.*(<WRMHEADER.*<\/WRMHEADER>).*/),j=T?T[1]:null,O=q3(j),h=H3(O);N=j2(h,F3)}else{const T=z3(D.body);let j,O;try{j=U3.decode(T),O=j3.decode(j.msg)}catch(h){console.error("Decoding failed, returning empty pssh",h),N=""}if(O&&O.contentId&&O.contentId.widevinePsshData){const h=O.contentId.widevinePsshData.psshData[0];N=j2(h,V3)}W3(T)?x=oI(T):x=D.body}document.getElementById("licurl").value=D.url,document.getElementById("headers").value=JSON.stringify(D.headers),document.getElementById("pssh").value=N,document.getElementById("data").value=x}catch(b){console.error("Failed to read clipboard contents:",b)}}function W3(b){return b.some(D=>D>127)}function X3(){const[b,D]=we.useState(""),[N,x]=we.useState(!1),T=()=>{let u=document.getElementById("main_content");u.scrollTop=0},j=u=>{let d=document.getElementById("messageresults").innerHTML;d=d.replace(/<br\s*\/?>/gi,`
`),navigator.clipboard.writeText(d),console.log(d)},O=u=>{u.preventDefault()},h=u=>{let d=document.getElementById("pssh").value,v=document.getElementById("licurl").value,A=document.getElementById("proxy").value,z=document.getElementById("headers").value,I=document.getElementById("cookies").value,ee=document.getElementById("data").value;fetch("/api/decrypt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pssh:d,licurl:v,proxy:A,headers:z,cookies:I,data:ee})}).then(re=>re.json()).then(re=>{const ge=re.message.replace(/\n/g,"<br />");D(ge),x(!0)}).catch(re=>{console.error("Error during decryption request:",re),D("Error: Unable to process request."),x(!0)})},l=u=>{let d=document.getElementById("pssh"),v=document.getElementById("licurl");document.getElementById("proxy");let A=document.getElementById("headers"),z=document.getElementById("cookies"),I=document.getElementById("data");d.value="",v.value="",A.value="",z.value="",I.value="",D(""),x(!1)};return we.useEffect(()=>{if(N){let u=document.getElementById("main_content");u.scrollTop=u.scrollHeight}},[b,N]),ae.jsxs(ae.Fragment,{children:[ae.jsxs("div",{className:"w-full min-h-full bg-zinc-900 flex flex-col items-center justify-center",children:[ae.jsx(Qf,{children:ae.jsx("title",{children:"CDRM-Project"})}),ae.jsxs("form",{className:"flex flex-col w-8/10 min-h-8/10 bg-[rgba(0,0,0,0.2)] p-10 border-black border-1 rounded-xl shadow-lg shadow-cyan-500/50 overflow-y-auto",onSubmit:O,children:[ae.jsx("label",{htmlFor:"pssh",className:"text-white mb-1",children:"PSSH:"}),ae.jsx("input",{type:"text",id:"pssh",name:"pssh",className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-shadow duration-300 ease-in-out p-2"}),ae.jsx("label",{htmlFor:"licurl",className:"text-white mb-1 mt-1",children:"License URL:"}),ae.jsx("input",{type:"text",id:"licurl",name:"licurl",className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-shadow duration-300 ease-in-out p-2"}),ae.jsx("label",{htmlFor:"proxy",className:"text-white mb-1 mt-1",children:"Proxy:"}),ae.jsx("input",{type:"text",id:"proxy",name:"proxy",className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-shadow duration-300 ease-in-out p-2"}),ae.jsx("label",{htmlFor:"headers",className:"text-white mb-1 mt-1",children:"Headers:"}),ae.jsx("textarea",{id:"headers",name:"headers",className:"text-white bg-[rgba(0,0,0,0.2)] h-24 focus:h-92 focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("label",{htmlFor:"cookies",className:"text-white mb-1 mt-1",children:"Cookies:"}),ae.jsx("textarea",{id:"cookies",name:"cookies",className:"text-white bg-[rgba(0,0,0,0.2)] h-24 focus:h-92 focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("label",{htmlFor:"data",className:"text-white mb-1 mt-1",children:"Data:"}),ae.jsx("textarea",{id:"data",name:"data",className:"text-white bg-[rgba(0,0,0,0.2)] h-24 focus:h-92 focus:outline-none rounded focus:shadow-sm focus:shadow-cyan-500/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsxs("div",{className:"flex flex-row w-full justify-evenly mt-5 mb-5",children:[ae.jsx("button",{type:"button",onClick:h,className:"bg-cyan-500 text-white rounded p-2 hover:bg-cyan-600 transition-colors duration-300 ease-in-out w-1/6 cursor-pointer active:transform active:scale-95 overflow-x-hidden overflow-y-hidden",children:"Submit"}),ae.jsx("button",{type:"button",onClick:G3,className:"bg-yellow-500 text-white rounded p-2 hover:bg-yellow-600 transition-colors duration-300 ease-in-out w-1/6 cursor-pointer active:transform active:scale-95 overflow-x-hidden overflow-y-hidden",children:"Paste from fetch"}),ae.jsx("button",{type:"button",onClick:l,className:"bg-red-500 text-white rounded p-2 hover:bg-red-600 transition-colors duration-300 ease-in
2025-04-24 17:06:14 -04:00
print(requests.post(
url='${Yf}/api/decrypt',
headers={
'Content-Type': 'application/json',
},
json={
'pssh': 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA==',
'licurl': 'https://cwip-shaka-proxy.appspot.com/no_auth',
'headers': str({
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0',
'Accept': '*/*',
'Accept-Language': 'en-US,en;q=0.5',
})
}
).json()['message'])`})})]}),ae.jsxs("details",{open:!0,className:" p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900",children:["Sending a search request | ","(Python)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsx("pre",{className:"p-2",children:`import requests
2025-04-24 17:06:14 -04:00
print(requests.post(
url='${Yf}/api/cache/search',
json={
'input': 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA=='
}
).json())`})})]}),ae.jsxs("details",{open:!0,className:" p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900",children:["Remote CDM configuration (Widevine) | ","(For PyWidevine / Devine / VineTrimmer / Extensions)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsxs("p",{className:"p-2",children:["device_type: ",ae.jsxs("span",{id:"wv_device_type",children:['"',b.device_type,'"']}),ae.jsx("br",{}),"system_id: ",ae.jsx("span",{id:"wv_system_id",children:b.system_id}),ae.jsx("br",{}),"security_level: ",ae.jsx("span",{id:"wv_security_level",children:b.security_level}),ae.jsx("br",{}),"host: ",ae.jsxs("span",{id:"wv_host",children:['"',Yf,'/remotecdm/widevine"']}),ae.jsx("br",{}),"secret: ",ae.jsxs("span",{id:"wv_secret",children:['"',b.secret,'"']}),ae.jsx("br",{}),"device_name: ",ae.jsx("span",{id:"wv_device_name",children:b.device_name})]})})]}),ae.jsxs("details",{open:!0,className:" p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900",children:["Remote CDM configuration (PlayReady) | ","(For PyPlayReady / Extensions / PlayReady Proxy)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsxs("p",{className:"p-2",children:["device_name: ",ae.jsx("span",{id:"pr_device_name",children:N.device_name}),ae.jsx("br",{}),"security_level: ",ae.jsx("span",{id:"pr_security_level",children:N.security_level}),ae.jsx("br",{}),"host: ",ae.jsxs("span",{id:"pr_host",children:['"',Yf,'/remotecdm/playready"']}),ae.jsx("br",{}),"secret: ",ae.jsxs("span",{id:"pr_secret",children:['"',N.secret,'"']}),ae.jsx("br",{})]})})]}),ae.jsxs("details",{open:!0,className:"p-5 mb-5 shadow-lg shadow-black border overflow-y-auto",children:[ae.jsxs("summary",{className:"bg-[rgba(0,0,0,0.2)] p-2 rounded text-white flex shadow-sm shadow-purple-900 transition-all transition-300 ease-in",children:["Webvault configuration | ","(For Devine / VineTrimmer)"]}),ae.jsx("br",{}),ae.jsx("div",{className:"h-9/10 bg-[rgba(0,0,0,0.2)] p-2 rounded text-white shadow-sm shadow-purple-900",children:ae.jsx("pre",{className:"p-2",children:`key_vaults:
2025-04-24 17:06:14 -04:00
- type: API
name: "Online Vault"
uri: "${Yf}/api/cache"
token: "${b.secret}"`})})]})]})})}function J3(){const[b,D]=we.useState(""),[N,x]=we.useState([]),[T,j]=we.useState(0),O=we.useRef(null),h=d=>{const v=d.target.value;D(v),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{v.trim()!==""?u(v):x([])},1e3)},l=()=>{fetch("/api/cache/keycount").then(d=>d.json()).then(d=>{j(d.count)}).catch(d=>{console.error("Error fetching key count:",d)})};we.useEffect(()=>{const d=setInterval(l,1e4);return l(),()=>clearInterval(d)},[]);const u=d=>{fetch("/api/cache/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:d})}).then(v=>v.json()).then(v=>x(v)).catch(v=>console.error("Error:",v))};return ae.jsx(ae.Fragment,{children:ae.jsxs("div",{className:"w-full h-full bg-zinc-900 flex flex-col p-0",children:[ae.jsx(Qf,{children:ae.jsx("title",{children:"Cache"})}),ae.jsxs("div",{className:"flex flex-row w-full",children:[ae.jsx("form",{className:"flex flex-row w-8/10 p-10 h-full rounded-xl self-start",children:ae.jsx("input",{type:"text",id:"search",name:"search",value:b,onChange:h,placeholder:"Search by PSSH/KID",className:"w-full text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-green-700/50 transition-shadow duration-300 ease-in-out p-2"})}),ae.jsxs("p",{className:"text-white w-2/10 p-10 rounded-xl self-start flex flex-col h-full",children:[ae.jsxs("span",{className:"text-white w-1/1 text-center",children:["Cached Keys: ",T," "]}),ae.jsx("a",{href:"/api/cache/download",children:ae.jsx("button",{className:" self-start w-1/1 bg-green-700 rounded-md mt-1 active:transform active:scale-95 cursor-pointer hover:bg-green-600/50 pt-1 pb-1",children:"Download"})})]})]}),ae.jsx("div",{className:"h-full w-full p-10 overflow-y-auto",children:ae.jsx("div",{className:"overflow-x-auto border p-10 rounded-2xl bg-[rgba(0,0,0,0.2)] shadow-md shadow-green-700 min-h-full overflow-y-auto",children:ae.jsxs("table",{className:"min-w-full text-white",children:[ae.jsx("thead",{children:ae.jsxs("tr",{children:[ae.jsx("th",{className:"p-2 border border-black",children:"PSSH"}),ae.jsx("th",{className:"p-2 border border-black",children:"KID"}),ae.jsx("th",{className:"p-2 border border-black",children:"Key"})]})}),ae.jsx("tbody",{children:N.length>0?N.map((d,v)=>ae.jsxs("tr",{children:[ae.jsx("td",{className:"p-2 border border-black",children:d.PSSH}),ae.jsx("td",{className:"p-2 border border-black",children:d.KID}),ae.jsx("td",{className:"p-2 border border-black",children:d.Key})]},v)):ae.jsx("tr",{children:ae.jsx("td",{colSpan:"3",className:"p-2 border border-black text-center",children:"No data found"})})})]})})})]})})}var J0={};/*
2025-04-24 17:06:14 -04:00
@license
Shaka Player
Copyright 2016 Google LLC
SPDX-License-Identifier: Apache-2.0
*/var B2;function Q3(){return B2||(B2=1,function(b){(function(){var D=typeof window<"u"?window:yD,N={};(function(T,j,O){var h;function l(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var u=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};function d(e){e=[typeof globalThis=="object"&&globalThis,e,typeof T=="object"&&T,typeof self=="object"&&self,typeof j=="object"&&j];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}var v=d(this);function A(e,t){if(t)e:{var n=v;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];if(!(i in n))break e;n=n[i]}e=e[e.length-1],r=n[e],t=t(r),t!=r&&t!=null&&u(n,e,{configurable:!0,writable:!0,value:t})}}A("Symbol",function(e){function t(o){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new n(r+(o||"")+"_"+i++,o)}function n(o,a){this.g=o,u(this,"description",{configurable:!0,writable:!0,value:a})}if(e)return e;n.prototype.toString=function(){return this.g};var r="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return t}),A("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=v[t[n]];typeof r=="function"&&typeof r.prototype[e]!="function"&&u(r.prototype,e,{configurable:!0,writable:!0,value:function(){return z(l(this))}})}return e});function z(e){return e={next:e},e[Symbol.iterator]=function(){return this},e}function I(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return{next:l(e)};throw Error(String(e)+" is not an iterable or ArrayLike")}function ee(e){if(!(e instanceof Array)){e=I(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var re=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},ge;if(typeof Object.setPrototypeOf=="function")ge=Object.setPrototypeOf;else{var Ae;e:{var oe={a:!0},De={};try{De.__proto__=oe,Ae=De.a;break e}catch{}Ae=!1}ge=Ae?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Ge=ge;function mt(e,t){if(e.prototype=re(t.prototype),e.prototype.constructor=e,Ge)Ge(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.Fk=t.prototype}function ln(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.A=this.i=null}function xn(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}ln.prototype.s=function(e){this.h=e};function mn(e,t){e.i={Eg:t,Rg:!0},e.g=e.m||e.j}ln.prototype.return=function(e){this.i={return:e},this.g=this.j};function _(e,t,n){return e.g=n,{value:t}}ln.prototype.u=function(e){this.g=e};function le(e){e.g=0}function pe(e,t,n){e.m=t,n!=null&&(e.j=n)}function qe(e,t){e.m=0,e.j=t||0}function be(e,t,n){e.g=t,e.m=n||0}function ke(e,t){return e.m=t||0,t=e.i.Eg,e.i=null,t}function Ut(e){e.A=[e.i],e.m=0,e.j=0}function Ot(e,t){var n=e.A.splice(0)[0];(n=e.i=e.i||n)?n.Rg?e.g=e.m||e.j:n.u!=null&&e.j<n.u?(e.g=n.u,e.i=null):e.g=e.j:e.g=t}function Ue(e){this.g=new ln,this.h=e}function gt(e,t){xn(e.g);var n=e.g.l;return n?Xe(e,"return"in n?n.return:function(r){return{value:r,done:!0}},t,e.g.return):(e.g.return(t),se(e))}function Xe(e,t,n,r){try{var i=t.call(e.g.l,n);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");if(!i.done)return e.g.o=!1,i;var o=i.value}catch(a){return e.g.l=null,mn(e.g,a),se(e)}return e.g.l=null,r.call(e.g,o),se(e)}function se(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(n){e.g.h=void 0,mn(e.g,n)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.Rg)throw t.Eg;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function Ie(e){this.next=function(t){return x
2025-04-24 17:06:14 -04:00
`),Error(`Unexpected close tag
Line: `+(o.length-1)+`
Column: `+(o[o.length-1].length+1)+`
Char: `+e[i]);i+1&&(i+=1);break}else if(e.charCodeAt(i+1)===33){if(e.charCodeAt(i+2)==45){for(;i!==-1&&(e.charCodeAt(i)!==62||e.charCodeAt(i-1)!=45||e.charCodeAt(i-2)!=45||i==-1);)i=e.indexOf(">",i+1);i===-1&&(i=e.length)}else if(e.charCodeAt(i+2)===91&&e.charCodeAt(i+8)===91&&e.substr(i+3,5).toLowerCase()==="cdata"){p=e.indexOf("]]>",i),p==-1?(f.push(e.substr(i+9)),i=e.length):(f.push(e.substring(i+9,p)),i=p+3);continue}i++;continue}e:{g=a,i++;var m=r(),w={};for(p=[];e.charCodeAt(i)!==62&&e[i];){var E=e.charCodeAt(i);if(64<E&&91>E||96<E&&123>E){E=r();for(var C=e.charCodeAt(i);C&&C!==39&&C!==34&&!(64<C&&91>C||96<C&&123>C)&&C!==62;)i++,C=e.charCodeAt(i);var P=i+1;if(i=e.indexOf(e[i],P),P=e.slice(P,i),C===39||C===34){if(i===-1){if(g={tagName:m,attributes:w,children:p,parent:null},t)for(m=0;m<p.length;m++)typeof p[m]!="string"&&(p[m].parent=g);p=g;break e}}else P=null,i--;if(E.startsWith("xmlns:")){C=P;var L=E.split(":")[1];ol.set(C,L),Yl.set(L,C)}m==="tt"&&E==="xml:space"&&P==="preserve"&&(g=!0),w[E]=P}i++}for(e.charCodeAt(i-1)!==47?(i++,p=n(m,g)):i++,g={tagName:m,attributes:w,children:p,parent:null},m=p.length,w=0;w<m;w++)E=p[w],typeof E!="string"?t&&(E.parent=g):w==m-1&&E==`
`&&p.pop();p=g}if(f.push(p),typeof p=="string")break;p.tagName[0]==="?"&&p.children&&(f.push.apply(f,ee(p.children)),p.children=[])}else p=i,i=e.indexOf("<",i)-1,i===-2&&(i=e.length),p=e.slice(p,i+1),a?0<p.length&&f.push(p):(f.length&&p.length==1&&p[0]==`
`||0<p.trim().length)&&f.push(p),i++;return f}function r(){for(var o=i;`\r
>/= `.indexOf(e[i])===-1&&e[i];)i++;return e.slice(o,i)}var i=0;return n("")}function rl(e){return typeof e=="string"}function hd(e){var t=[];if(!e.children)return[];e=I(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n!="string"&&t.push(n);return t}function bt(e,t){var n=[];if(!e.children)return[];e=I(e.children);for(var r=e.next();!r.done;r=e.next())r=r.value,r.tagName===t&&n.push(r);return n}function sn(e){return typeof e=="string"?ur(e):(e=e.children.reduce(function(t,n){return typeof n=="string"?t+n:t},""),e===""?null:ur(e))}function rr(e){return Array.from(e.children).every(function(t){return typeof t=="string"})?((e=sn(e))&&(e=e.trim()),e):null}function xr(e,t,n){if(n=n===void 0?[]:n,e.tagName===t&&n.push(e),e.children){e=I(e.children);for(var r=e.next();!r.done;r=e.next())xr(r.value,t,n)}return n}function pn(e,t){return e=bt(e,t),e.length!=1?null:e[0]}function ki(e,t,n){return e=na(e,t,n),e.length!=1?null:e[0]}function rt(e,t,n,r){r=r===void 0?null:r;var i=null;return e=e.attributes[t],e!=null&&(i=n(e)),i??r}function Zi(e,t,n){return t=pd(t),e.attributes[t+":"+n]||null}function na(e,t,n){var r=pd(t);if(t=[],e.children)for(n=r?r+":"+n:n,e=I(e.children),r=e.next();!r.done;r=e.next())(r=r.value)&&r.tagName===n&&t.push(r);return t}function Ai(e,t,n){t=I(t);for(var r=t.next();!r.done;r=t.next())if(r=Zi(e,r.value,n))return r;return null}function Fo(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function lr(e){return!e||(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e),!e)?null:(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null)}function Wl(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return!t||(e=Number(t[1]),!isFinite(e))?null:(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null)}function sr(e){return e=Number(e),e%1===0?e:null}function xo(e){return e=Number(e),e%1===0&&0<e?e:null}function jn(e){return e=Number(e),e%1===0&&0<=e?e:null}function il(e){return e=Number(e),isNaN(e)?null:e}function ra(e){return e?e.toLowerCase()==="true":!1}function si(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function Ko(e){var t=[];e=ur(e).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),e=I(e);for(var n=e.next();!n.done;n=e.next()){n=n.value;var r=n.match(/^([\w]+)/);if(r){var i=n.match(/(@id='(.*?)')/),o=n.match(/(@t='(\d+)')/),a=n.match(/(@n='(\d+)')/),f=n.match(/\[(\d+)\]/);t.push({name:r[0],id:i?i[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:o?Number(o[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:a?Number(a[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:f?Number(f[1])-1:null,Yb:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].Yb=n.slice(1))}return t}function yc(e,t){var n=Ko(t.attributes.sel||"");if(n.length){var r=n[n.length-1],i=t.attributes.pos||null;n=r.position,n==null&&(r.t!==null&&(n=Xl(e,"t",r.t)),r.n!==null&&(n=Xl(e,"n",r.n))),n===null?n=i==="prepend"?0:e.length:i==="prepend"?--n:i==="after"&&++n,i=t.tagName,(r=r.Yb)&&e[n]?Lh(e[n],i,r,rr(t)||""):(i!=="remove"&&i!=="replace"||e.splice(n,1),i!=="add"&&i!=="replace"||e.splice.apply(e,[n,0].concat(ee(t.children))))}}function Xl(e,t,n){var r=0;e=I(e);for(var i=e.next();!i.done;i=e.next()){if(Number(i.value.attributes[t])===n)return r;r++}return null}function Lh(e,t,n,r){t==="remove"?delete e.attributes[n]:(t==="add"||t==="replace")&&(e.attributes[n]=r)}function gc(e){var t="",n=e.tagName.split(":");0<n.length&&(t=n[0],t=Yl.has(t)?Yl.get(t):""),t=document.createElementNS(t,e.tagName);for(var r in e.attributes)t.setAttribute(r,e.attributes[r]);for(e=I(e.children),r=e.next();!r.done;r=e.next())r=r.value,n=void 0,typeof r=="string"?n=new Text(r):n=gc(r),t.appendChild(n);return t}function ia(e){if(!e)return null;var t={tagName:e.tagName,attributes:Jr(e.attributes),children:[],parent:null};e=I(e.children);for(var n=e.next();!n.done;n=e.next()
`),e=!0,n=I(n),i=n.next();!i.done;i=n.next())i=i.value,e||(e=Nh(r.startTime,r.endTime),t.nestedCues.push(e)),0<i.length&&(e=r.clone(),e.payload=ur(i),t.nestedCues.push(e)),e=!1;else for(t.nestedCues.push(r),t=I(i),e=t.next();!e.done;e=t.next())_h(e.value,r,n)}function oa(e,t){return e&&0<e.length?e:t}Me("shaka.text.Cue",zt),zt.parseCuePayload=mc,zt.equal=vc,zt.prototype.clone=zt.prototype.clone;var wc="auto";zt.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:wc};var Io="center",Tc={LEFT:"left",RIGHT:"right",CENTER:Io,START:"start",END:"end"};zt.textAlign=Tc;var ua="after",Uh={BEFORE:"before",CENTER:"center",AFTER:ua};zt.displayAlign=Uh;var la="ltr";zt.direction={HORIZONTAL_LEFT_TO_RIGHT:la,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var ul="horizontal-tb";zt.writingMode={HORIZONTAL_TOP_TO_BOTTOM:ul,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var ll=0;zt.lineInterpretation={LINE_NUMBER:ll,PERCENTAGE:1};var sl="start",yd={CENTER:"center",START:sl,END:"end"};zt.lineAlign=yd;var jh={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};zt.defaultTextColor=jh;var gd={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};zt.defaultTextBackgroundColor=gd;var Bh=400,$l=700;zt.fontWeight={NORMAL:Bh,BOLD:$l};var vd="normal",Jl="italic",Vh={NORMAL:vd,ITALIC:Jl,OBLIQUE:"oblique"};zt.fontStyle=Vh;var Ho="underline";zt.textDecoration={UNDERLINE:Ho,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var uv=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Eo(){}Eo.prototype.destroy=function(){};function ai(e,t,n){xc[e.toLowerCase().split(";")[0]+"-"+n]={priority:n,ne:t}}function Cu(e,t){for(var n=e.toLowerCase().split(";")[0],r=I([md,Ec,Ic,qo]),i=r.next();!i.done;i=r.next())if(i=xc[n+"-"+i.value]){var o=i.ne(),a=o.isSupported(e,t);if(o.destroy(),a)return i.ne}return null}Me("shaka.transmuxer.TransmuxerEngine",Eo),Eo.findTransmuxer=Cu,Eo.unregisterTransmuxer=function(e,t){delete xc[e.toLowerCase().split(";")[0]+"-"+t]},Eo.registerTransmuxer=ai,Eo.prototype.destroy=Eo.prototype.destroy;var xc={},qo=1,Ic=2,Ec=3,md=4;Eo.PluginPriority={FALLBACK:qo,PREFERRED_SECONDARY:Ic,PREFERRED:Ec,APPLICATION:md};/*
2025-04-24 17:06:14 -04:00
@license
Copyright 2008 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/var Ql=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
@license
Copyright 2006 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/function hn(e){var t;e instanceof hn?(Cc(this,e.Gb),this.Dc=e.Dc,kc(this,e.ub),Ac(this,e.Xc),this.Za=e.Za,ku(this,e.g.clone()),this.oc=e.oc):e&&(t=String(e).match(Ql))?(Cc(this,t[1]||"",!0),this.Dc=zo(t[2]||""),kc(this,t[3]||"",!0),Ac(this,t[4]),this.Za=zo(t[5]||"",!0),ku(this,t[6]||"",!0),this.oc=zo(t[7]||"")):this.g=new al(null)}h=hn.prototype,h.Gb="",h.Dc="",h.ub="",h.Xc=null,h.Za="",h.oc="",h.toString=function(){var e=[],t=this.Gb;if(t&&e.push(Go(t,sa,!0),":"),t=this.ub){e.push("//");var n=this.Dc;n&&e.push(Go(n,sa,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.Xc,t!=null&&e.push(":",String(t))}return(t=this.Za)&&(this.ub&&t.charAt(0)!="/"&&e.push("/"),e.push(Go(t,t.charAt(0)=="/"?Fh:sv,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.oc)&&e.push("#",Go(t,wd)),e.join("")},h.resolve=function(e){var t=this.clone();t.Gb==="data"&&(t=new hn);var n=!!e.Gb;n?Cc(t,e.Gb):n=!!e.Dc,n?t.Dc=e.Dc:n=!!e.ub,n?kc(t,e.ub):n=e.Xc!=null;var r=e.Za;if(n)Ac(t,e.Xc);else if(n=!!e.Za){if(r.charAt(0)!="/")if(this.ub&&!this.Za)r="/"+r;else{var i=t.Za.lastIndexOf("/");i!=-1&&(r=t.Za.substr(0,i+1)+r)}if(r==".."||r==".")r="";else if(r.indexOf("./")!=-1||r.indexOf("/.")!=-1){i=r.lastIndexOf("/",0)==0,r=r.split("/");for(var o=[],a=0;a<r.length;){var f=r[a++];f=="."?i&&a==r.length&&o.push(""):f==".."?((1<o.length||o.length==1&&o[0]!="")&&o.pop(),i&&a==r.length&&o.push("")):(o.push(f),i=!0)}r=o.join("/")}}return n?t.Za=r:n=e.g.toString()!=="",n?ku(t,e.g.clone()):n=!!e.oc,n&&(t.oc=e.oc),t},h.clone=function(){return new hn(this)};function Cc(e,t,n){e.Gb=n?zo(t,!0):t,e.Gb&&(e.Gb=e.Gb.replace(/:$/,""))}function kc(e,t,n){e.ub=n?zo(t,!0):t}function Ac(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.Xc=t}else e.Xc=null}function ku(e,t,n){t instanceof al?e.g=t:(n||(t=Go(t,Sd)),e.g=new al(t))}function zo(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Go(e,t,n){return e!=null?(e=encodeURI(e).replace(t,lv),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function lv(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(e&15).toString(16)}var sa=/[#\/\?@]/g,sv=/[#\?:]/g,Fh=/[#\?]/g,Sd=/[#\?@]/g,wd=/#/g;function al(e){this.g=e||null}function aa(e){if(!e.Ra&&(e.Ra={},e.hd=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];o=decodeURIComponent(o.replace(/\+/g," ")),i=i||"",e.add(o,decodeURIComponent(i.replace(/\+/g," ")))}}h=al.prototype,h.Ra=null,h.hd=null;function Td(e){return aa(e),e.hd}h.add=function(e,t){aa(this),this.g=null;var n=this.Ra.hasOwnProperty(e)?this.Ra[e]:null;return n||(this.Ra[e]=n=[]),n.push(t),this.hd++,this},h.set=function(e,t){return aa(this),this.g=null,this.Ra.hasOwnProperty(e)?this.Ra[e]=[t]:this.add(e,t),this},h.get=function(e){return aa(this),this.Ra[e]||[]},h.toString=function(){if(this.g)return this.g;if(!this.Ra)return"";var e=[],t;for(t in this.Ra)for(var n=encodeURIComponent(t),r=this.Ra[t],i=0;i<r.length;i++){var o=n;r[i]!==""&&(o+="="+encodeURIComponent(r[i])),e.push(o)}return this.g=e.join("&")},h.clone=function(){var e=new al;if(e.g=this.g,this.Ra){var t={},n;for(n in this.Ra)t[n]=this.Ra[n].concat();e.Ra=t,e.hd=this.hd}return e};function ar(){}function Pc(e){return e=ea(Ze(e)),btoa(e)}function Wo(e,t){return t=t??!0,e=Pc(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function ci(e){e=T.atob(e.replace(/-/g,"+").replace(/_/g,"/"));for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}function cl(e){for(var t=e.length/2,n=new Uint8Array(t),r=0;r<t;r++)n[r]=T.parseInt(e.substr(2*r,2),16);return n}function Yn(e){var t=Ze(e);e="",t=I(t);for(var n=t.next();!n.done;n=t.next())n=n.value,n=n.toString(16),n.length==1&&(n="0"+n),e+=n;return e}function rn(){for(var e=It.apply(0,arguments),t=0,n=0;n<e.length;++n)t+=e[n].byteLength;t=new Uint8Array(t);for(var r=n=0;r<e.length;++r){var i=e[r];ArrayBuffer.isView(i)&&i.BYTES_PER_ELEMENT===1?t.set(i,n):t.set(Ze(i),n),n+=i.byteLength}return t}Me("shaka.u
2025-04-24 17:06:14 -04:00
@license
Shaka Player
Copyright 2023 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function Gc(e,t,n){this.g=e,this.i=t,this.h=n}function ps(e,t){return G(function(n){if(n.g==1)return _(n,fv(e.h,t,e.g.drm.preferredKeySystems,e.g.drm.keySystemsMapping),2);if(e.g.streaming.dontChooseCodecs||Oc(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes,e.g.preferredTextFormats),!t.variants.some(Pi))throw new Y(2,4,4032);return n.return(Oa(e,t))})}function Gd(e,t){var n=e.g.restrictions;e=e.i;var r=!1;t=I(t.variants);for(var i=t.next();!i.done;i=t.next()){i=i.value;var o=i.allowedByApplication;i.allowedByApplication=ns(i,n,e),o!=i.allowedByApplication&&(r=!0)}return r}function Oa(e,t){var n=Gd(e,t);if(t){var r=e.h?e.h.h:null;if(r&&e.h.A)for(var i=I(t.variants),o=i.next();!o.done;o=i.next())o=o.value,hs(e,r.keySystem,o.video),hs(e,r.keySystem,o.audio);Wd(e,t)}return n}function hs(e,t,n){if(n){n=I(n.drmInfos);for(var r=n.next();!r.done;r=n.next())if(r=r.value,r.keySystem==t){r=I(r.initData||[]);for(var i=r.next();!i.done;i=r.next())i=i.value,lu(e.h,i.initDataType,i.initData)}}}function Wd(e,t){e=e.h?e.h.Vd():{};var n=Object.keys(e);n=n.length&&n[0]=="00";var r=!1,i=!1,o=new Set,a=new Set;t=I(t.variants);for(var f=t.next();!f.done;f=t.next()){f=f.value;var p=[];f.audio&&p.push(f.audio),f.video&&p.push(f.video),p=I(p);for(var g=p.next();!g.done;g=p.next())if(g=g.value,g.keyIds.size){g=I(g.keyIds);for(var m=g.next();!m.done;m=g.next()){m=m.value;var w=e[n?"00":m];w?Wc.includes(w)&&a.add(w):o.add(m)}}f.allowedByApplication?f.allowedByKeySystem&&(r=!0):i=!0}if(!r)throw e={hasAppRestrictions:i,missingKeys:Array.from(o),restrictedKeyStatuses:Array.from(a)},new Y(2,4,4012,e)}var Wc=["output-restricted","internal-error"];function ys(){}function Xd(e,t){if(t){var n=hi[t.toLowerCase()];if(n)return n}throw new Y(2,4,4e3,e,t)}Me("shaka.media.ManifestParser",ys),ys.unregisterParserByMime=function(e){delete hi[e]},ys.registerParserByMime=function(e,t){hi[e]=t},ys.registerParserByExtension=function(){Rt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},ys.AccessibilityPurpose={yk:"visually impaired",Pj:"hard of hearing"};var hi={};function Jh(e,t){function n(){o=!0}function r(m){f.push(m),it(m)}var i=e=Ze(e),o=!1,a,f=[],p=[];if(new Vt().box("moov",r).box("trak",r).box("mdia",r).box("minf",r).box("stbl",r).S("stsd",function(m){a=m,f.push(m),Po(m)}).S("encv",n).S("enca",n).S("dvav",function(m){p.push({box:m,Ya:1701733238})}).S("dva1",function(m){p.push({box:m,Ya:1701733238})}).S("dvh1",function(m){p.push({box:m,Ya:1701733238})}).S("dvhe",function(m){p.push({box:m,Ya:1701733238})}).S("dvc1",function(m){p.push({box:m,Ya:1701733238})}).S("dvi1",function(m){p.push({box:m,Ya:1701733238})}).S("hev1",function(m){p.push({box:m,Ya:1701733238})}).S("hvc1",function(m){p.push({box:m,Ya:1701733238})}).S("avc1",function(m){p.push({box:m,Ya:1701733238})}).S("avc3",function(m){p.push({box:m,Ya:1701733238})}).S("ac-3",function(m){p.push({box:m,Ya:1701733217})}).S("ec-3",function(m){p.push({box:m,Ya:1701733217})}).S("ac-4",function(m){p.push({box:m,Ya:1701733217})}).S("mp4a",function(m){p.push({box:m,Ya:1701733217})}).parse(e),o)return e;if(p.length==0||!a)throw Yn(e),new Y(2,3,3019,t);p.reverse(),t=I(p);for(var g=t.next();!g.done;g=t.next())g=g.value,i=Yd(i,a,g.box,f,g.Ya);return In()&&Tu()&&!$i()?(t=new Uint8Array(e.byteLength+i.byteLength),t.set(i),t.set(e,i.byteLength),t):i}function Yd(e,t,n,r,i){var o=Qh.value(),a=e.subarray(n.start,n.start+n.size),f=wr(a),p=new Uint8Array(n.size+o.byteLength);for(p.set(a,0),a=wr(p),a.setUint32(4,i),p.set(o,n.size),i=f.getUint32(4),a.setUint32(n.size+16,i),$d(p,0,p.byteLength),i=new Uint8Array(e.byteLength+p.byteLength),n=$i()||In()?n.start:n.start+n.size,o=e.subarray(n),i.set(e.subarray(0,n)),i.set(p,n),i.set(o,n+p.byteLength),e=I(r),r=e.next();!r.done;r=e.next())r=r.value,$d(i,r.start,r.size+p.byteLength);return p=wr(i,t.start),t=Mi(t),e=p.getUint32(t),p.setUint32(t,e+1),i}function $d(e,t,n){e=wr(e,t),t=e.getUint32(0),t!=0&&(t==1?(e.setUint32(8,n>>32),e.setUint32(12,n&4294967295)):e.setUint32(0,n))}var Qh=new Ii(fu
2025-04-24 17:06:14 -04:00
@license
Shaka Player
Copyright 2022 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function $c(){}function Zd(e,t){return t+10<=e.length&&e[t]===73&&e[t+1]===68&&e[t+2]===51&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function ep(e,t){return t+10<=e.length&&e[t]===51&&e[t+1]===68&&e[t+2]===73&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Ra(e,t){var n=(e[t]&127)<<21;return n|=(e[t+1]&127)<<14,n|=(e[t+2]&127)<<7,n|=e[t+3]&127}function ms(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.type==="APIC"){if(2>e.size||e.data[0]!==3)return null;var n=e.data.subarray(1).indexOf(0);if(n===-1)return null;var r=Qt(Ze(e.data,1,n)),i=e.data[2+n],o=e.data.subarray(3+n).indexOf(0);if(o===-1)return null;var a=Qt(Ze(e.data,3+n,o)),f;return r==="-->"?f=Qt(Ze(e.data,4+n+o)):f=zr(e.data.subarray(4+n+o)),t.mimeType=r,t.pictureType=i,t.description=a,t.data=f,t}return e.type==="TXXX"?2>e.size||e.data[0]!==3||(r=e.data.subarray(1).indexOf(0),r===-1)?null:(n=Qt(Ze(e.data,1,r)),e=Qt(Ze(e.data,2+r)).replace(/\0*$/,""),t.description=n,t.data=e,t):e.type==="WXXX"?2>e.size||e.data[0]!==3||(r=e.data.subarray(1).indexOf(0),r===-1)?null:(n=Qt(Ze(e.data,1,r)),e=Qt(Ze(e.data,2+r)).replace(/\0*$/,""),t.description=n,t.data=e,t):e.type==="PRIV"?2>e.size||(n=e.data.indexOf(0),n===-1)?null:(n=Qt(Ze(e.data,0,n)),t.description=n,n=="com.apple.streaming.transportStreamTimestamp"?(n=e.data.subarray(n.length+1),e=n[3]&1,n=(n[4]<<23)+(n[5]<<15)+(n[6]<<7)+n[7],n/=45,e&&(n+=4772185884e-2),t.data=n):(e=zr(e.data.subarray(n.length+1)),t.data=e),t):e.type[0]==="T"?2>e.size||e.data[0]!==3?null:(e=Qt(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):e.type[0]==="W"?(e=Qt(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=zr(e.data),t):null}function cu(e){for(var t=0,n=[];Zd(e,t);){var r=Ra(e,t+6);for(e[t+5]>>6&1&&(t+=10),t+=10,r=t+r;t+10<r;){var i=e.subarray(t),o=Ra(i,4);i={type:String.fromCharCode(i[0],i[1],i[2],i[3]),size:o,data:i.subarray(10,10+o)},(o=ms(i))&&n.push(o),t+=i.size+10}ep(e,t)&&(t+=10)}return n}function Bu(e,t){for(var n=t=t===void 0?0:t,r=0;Zd(e,t);)e[t+5]>>6&1&&(r+=10),r+=10,r+=Ra(e,t+6),ep(e,t+10)&&(r+=10),t+=r;return 0<r?e.subarray(n,n+r):new Uint8Array([])}Me("shaka.util.Id3Utils",$c),$c.getID3Data=Bu,$c.getID3Frames=cu;function ty(e,t){var n=null,r=null,i=null,o=e.R();return t&1&&(i=e.Yc()),t&2&&e.skip(4),t&8&&(n=e.R()),t&16&&(r=e.R()),{trackId:o,jd:n,Sd:r,Ak:i}}function ba(e,t){return t==1?(t=e.R(),e=e.R(),{baseMediaDecodeTime:t*Math.pow(2,32)+e}):{baseMediaDecodeTime:e.R()}}function Ma(e,t){return t==1?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.R(),e.skip(4),e=e.ma(),{timescale:t,language:String.fromCharCode((e>>10)+96)+String.fromCharCode(((e&960)>>5)+96)+String.fromCharCode((e&31)+96)}}function tp(e,t,n){var r=e.R(),i=[],o=null;n&1&&(o=e.R()),n&4&&e.skip(4);for(var a=0;a<r;a++){var f={Wf:null,sampleSize:null,se:null};n&256&&(f.Wf=e.R()),n&512&&(f.sampleSize=e.R()),n&1024&&e.skip(4),n&2048&&(f.se=t==0?e.R():e.fh()),i.push(f)}return{Ek:r,kh:i,Xh:o}}function np(e){e.skip(6),e.skip(2),e.skip(8);var t=e.ma();return e.skip(2),e.skip(2),e.skip(2),e=e.ma()+e.ma()/65536,{channelCount:t,sampleRate:e}}function rp(e){return e=e.R(),{codec:Ur(e)}}function vv(e){var t=null,n=null,r=e.Ab(4),i=String.fromCharCode(r[0]);if(i+=String.fromCharCode(r[1]),i+=String.fromCharCode(r[2]),i+=String.fromCharCode(r[3]),i==="nclx"){switch(e.ma()){case 1:case 5:case 6:case 7:t="srgb";break;case 9:t="rec2020";break;case 11:case 12:t="p3"}switch(r=e.ma(),e.ma(),r){case 1:case 6:case 13:case 14:case 15:n="SDR";break;case 16:n="PQ";break;case 18:n="HLG"}}return{colorGamut:t,Jd:n}}function ir(e,t){return t=t===void 0?!1:t,e=e.toString(16).toUpperCase(),t?e:("0"+e).slice(-2)}function cn(e){return(10>e?"0":"")+e}function Ro(e,t){if(this.j=e,t!==void 0&&t){t=new Uint8Array(e.byteLength);for(var n=0,r=0;r<e.byteLength;r++)2<=r&&e[r]==3&&e[r-1]==0&&e[r-2]==0||(t[n]=e[r],n++);this.j=Ze(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function Jc(e){var t=e.j.byteLength-e.i,n=new Uint8Array(4),r=Math.min(4,e.i);r!==0&&(n.set(e.j.subarray(t,t+r)),e.h=new Mt(n,0).R()
`;if(e.nestedCues.length)return e.nestedCues.map(function(a){return d1(a,e)}).join("");if(!e.payload)return e.payload;var n=[],r=e.fontWeight>=$l,i=e.fontStyle==Jl,o=e.textDecoration.includes(Ho);return r&&n.push(["b"]),i&&n.push(["i"]),o&&n.push(["u"]),i=e.color,i==""&&t&&(i=t.color),r="",(i=p1(i))&&(r+="."+i),i=e.backgroundColor,i==""&&t&&(i=t.backgroundColor),(t=p1(i))&&(r+=".bg_"+t),r&&n.push(["c",r]),n.reduceRight(function(a,f){var p=I(f);return f=p.next().value,p=p.next().value,"<"+f+(p===void 0?"":p)+">"+a+"</"+f+">"},e.payload)}function p1(e){e=e.toLowerCase();var t=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(t?e="#"+(parseInt(t[1],10)|256).toString(16).slice(1)+(parseInt(t[2],10)|256).toString(16).slice(1)+(parseInt(t[3],10)|256).toString(16).slice(1):e.startsWith("#")&&7<e.length&&(e=e.slice(0,7)),e){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function Pv(e,t){var n=[];e=I(h1(e));for(var r=e.next();!r.done;r=e.next())if(r=r.value,r.isContainer)n.push.apply(n,ee(Pv(r.nestedCues,r)));else{var i=r.clone();i.nestedCues=[],i.payload=d1(r,t),n.push(i)}return n}function h1(e){var t=[];e=I(e);for(var n=e.next(),r={};!n.done;r={Xe:void 0},n=e.next())r.Xe=n.value,t.some(function(i){return function(o){return vc(i.Xe,o)}}(r))||t.push(r.Xe);return t}function SI(e){function t(r){for(var i=5381,o=r.length;o;)i=33*i^r.charCodeAt(--o);return(i>>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch{}return e.textAlign=="center"&&n.align!="center"&&(n.align="middle"),e.writingMode=="vertical-lr"?n.vertical="lr":e.writingMode=="vertical-rl"&&(n.vertical="rl"),e.lineInterpretation==1&&(n.snapToLines=!1),e.line!=null&&(n.line=e.line),e.position!=null&&(n.position=e.position),n}function wI(e){if(e.endTime===1/0||e.endTime<e.startTime)return null;var t=new zt(e.startTime,e.endTime,e.text);return t.line=typeof e.line=="number"?e.line:null,e.lineAlign&&(t.lineAlign=e.lineAlign),t.lineInterpretation=e.snapToLines?ll:1,t.position=typeof e.position=="number"?e.position:null,e.positionAlign&&(t.positionAlign=e.positionAlign),t.size=e.size,t.textAlign=e.align,e.vertical==="lr"?t.writingMode="vertical-lr":e.vertical==="rl"&&(t.writingMode="vertical-rl"),e.region&&(t.region.id=e.region.id,t.region.height=e.region.lines,t.region.heightUnits=2,t.region.regionAnchorX=e.region.regionAnchorX,t.region.regionAnchorY=e.region.regionAnchorY,t.region.scroll=e.region.scroll,t.region.viewportAnchorX=e.region.viewportAnchorX,t.region.viewportAnchorY=e.region.viewportAnchorY,t.region.viewportAnchorUnits=Xn,t.region.width=e.region.width,t.region.widthUnits=Xn),mc(t),t}function yr(e,t){for(this.h=e,this.i=t,this.g=null,e=I(Array.from(this.h.textTracks)),t=e.next();!t.done;t=e.next())t=t.value,t.kind!=="metadata"&&t.kind!=="chapters"&&(t.mode="disabled",t.label==this.i&&(this.g=t));this.g&&(this.g.mode="hidden")}h=yr.prototype,h.configure=function(){},h.remove=function(e,t){return this.g?(g1(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0):!1},h.append=function(e){if(this.g){var t=Pv(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=I(t);for(var r=t.next(),i={};!r.done;i={Pc:void 0},r=t.next())i.Pc=r.value,!e.some(function(o){return function(a){return a.startTime==o.Pc.startTime&&a.endTime==o.Pc.endTime&&a.text==o.Pc.payload}}(i))&&i.Pc.payload&&(r=SI(i.Pc))&&n.push(r);for(e=n.slice().sort(function(o,a){return o.startTime!=a.startTime?o.startTime-a.startTime:o.endTime!=a.endTime?o.endTime-a.startTime:"line"in VTTCue.prototype?n.i
2025-04-24 17:06:14 -04:00
`,r=I(r);for(var i=r.next();!i.done;i=r.next())i=i.value,e+=n(i.startTime)+" --> "+n(i.endTime)+function(o){var a=[];switch(o.textAlign){case"left":a.push("align:left");break;case"right":a.push("align:right");break;case Io:a.push("align:middle");break;case"start":a.push("align:start");break;case"end":a.push("align:end")}switch(o.writingMode){case"vertical-lr":a.push("vertical:lr");break;case"vertical-rl":a.push("vertical:rl")}return a.length?" "+a.join(" "):""}(i)+`
`,e+=i.payload+`
`;return e}Me("shaka.text.WebVttGenerator",function(){});function Ov(e,t){this.h=e,this.g=t,this.i=void 0,this.s=!1,this.F=!0,this.l=this.B=!1,this.o=this.m=void 0,this.A=0,this.G=!1,this.C=new At,this.j=null}Ov.prototype.setMediaElement=function(e){this.j=e,RI(this)},Ov.prototype.configure=function(e){this.g=e};function AI(e){e.s=!1,e.F=!0,e.B=!1,e.l=!1,e.m=0,e.o=0,e.A=0,e.G=!1,e.j=null,e.C.La()}function PI(e,t){e.l=t,e.l?e.i==ky?e.i=Ay:e.i==Py&&(e.i=Dy):e.i==Ay?e.i=ky:e.i==Dy&&(e.i=Py)}function DI(e,t){if(e.j){var n=e.j.play();n&&n.then(function(){e.A=t}).catch(function(){e.A=0})}}function OI(e,t,n){try{if(!e.g.enabled)return t;var r=Rv(e);e:{switch(n.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var i=xy;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":i=Ey;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":i=S1;break e}i=void 0}r.ot=i,r.su=!0;var o=Ty(r);return bv(t,o)}catch(a){return xi("CMCD_SRC_ERROR","Could not generate src CMCD data.",a),t}}function RI(e){e.C.la(e.j,"play",function(){e.m||(e.m=Date.now())}),e.C.la(e.j,"playing",function(){e.o||(e.o=Date.now())})}function Rv(e){return e.g.sessionId||(e.g.sessionId=T.crypto.randomUUID()),{v:e.g.version,sf:e.i,sid:e.g.sessionId,cid:e.g.contentId,mtp:e.h.getBandwidthEstimate()/1e3}}function xf(e,t,n){n=n===void 0?{}:n;var r=r===void 0?e.g.useHeaders:r;if(e.g.enabled){Object.assign(n,Rv(e)),n.pr=e.h.mb();var i=n.ot===Iy||n.ot===Ey;if(e.B&&i&&(n.bs=!0,n.su=!0,e.B=!1),n.su==null&&(n.su=e.F),n.v===jI&&(e.h.T()&&(n.ltc=e.h.Wd()),i=!e.G&&e.o&&e.m?e.o-(e.A||e.m):void 0,i!=null&&(n.msd=i,e.G=!0)),e=bI(e,n),r)r=_I(e),Object.keys(r).length&&Object.assign(t.headers,r);else{var o=Ty(e);o&&(t.uris=t.uris.map(function(a){return bv(a,o)}))}}}function bI(e,t){var n=e.g.includeKeys;return n.length?Object.keys(t).reduce(function(r,i){return n.includes(i)&&(r[i]=t[i]),r},{}):t}function MI(e){if(e.type===0)return UI;if(e=e.stream){var t=e.type;if(t=="video")return e.codecs&&e.codecs.includes(",")?Ey:Iy;if(t=="audio")return xy;if(t=="text")return e.mimeType==="application/mp4"?Cy:Mv}}function LI(e,t){if(t=e.h.Eb()[t],!t.length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(r){return r.start<=n&&r.end>=n}))?1e3*(e.end-n):NaN}function m1(e,t){if(t=e.h.Eb()[t],!t.length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(r){return r.start<=n&&r.end>=n}))?1e3*(e.end-n):0}function NI(e,t){var n=e.h.sc();if(!n.length)return NaN;e=n[0],n=I(n);for(var r=n.next();!r.done;r=n.next())r=r.value,r.type==="variant"&&r.bandwidth>e.bandwidth&&(e=r);switch(t){case Iy:return e.videoBandwidth||NaN;case xy:return e.audioBandwidth||NaN;default:return e.bandwidth}}function Ty(e){function t(w){return 100*n(w/100)}function n(w){return Math.round(w)}function r(w){return!Number.isNaN(w)&&w!=null&&w!==""&&w!==!1}var i=[],o={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(w){return encodeURIComponent(w)},rtp:t,tb:n},a=Object.keys(e||{}).sort();a=I(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var p=e[f];if(r(p)&&(f!=="v"||p!==1)&&(f!="pr"||p!==1)){var g=o[f];g&&(p=g(p)),g=typeof p;var m=void 0;m=g==="string"&&f!=="ot"&&f!=="sf"&&f!=="st"?f+"="+JSON.stringify(p):g==="boolean"?f:g==="symbol"?f+"="+p.description:f+"="+p,i.push(m)}}return i.join(",")}function _I(e){var t=Object.keys(e),n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],o={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};t=I(t);for(var a=t.next();!a.done;a=t.next())a=a.value,i[o[a]!=null?o[a]:1][a]=e[a];for(e=0;e<i.length;e++)(o=Ty(i[e]))&&(n["CMCD-"+r[e]]=o);return n}function bv(e,t){return!t||e.includes("offline:")?e:(e=new hn(e),e.g.set("CMCD",t),e.toString())}var S1="m",xy="a",Iy="v",Ey="av",UI="i",Mv="c",Cy="tt",jI=2,ky="d",Ay="ld",Py="h",Dy="lh";Me("shaka.util.CmcdManager.StreamingFormat",{DASH:ky,Tj:Ay,HLS:Py,Uj:Dy,gk:"s",OTHER:"o"});fun
`).trim();var n=t.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(n[0]))throw new Y(2,4,4015);t=0;for(var r=!0,i=I(n),o=i.next();!o.done;o=i.next())if(o=o.value,/^#(?!EXT)/m.test(o)||r)r=!1;else if(o=km(e,o),--e.g,kw.includes(o.name)){t=1;break}else o.name=="EXT-X-STREAM-INF"&&(r=!0);for(i=[],r=!0,o=0;o<n.length;o++){var a=n[o],f=n[o+1];if(/^#(?!EXT)/m.test(a)||r)r=!1;else{if(a=km(e,a),nk.includes(a.name)){if(t!=1)throw new Y(2,4,4017);a=n.splice(o,n.length-o),n=[],r=[],o=[],f=null,a=I(a);for(var p=a.next();!p.done;p=a.next())p=p.value,/^(#EXT)/.test(p)?(p=km(e,p),kw.includes(p.name)?i.push(p):p.name=="EXT-X-MAP"?f=p:p.name=="EXT-X-PART"?o.push(p):p.name=="EXT-X-PRELOAD-HINT"?je(p,"TYPE")=="PART"?o.push(p):je(p,"TYPE")=="MAP"&&(p.name="EXT-X-MAP",f=p):r.push(p)):/^#(?!EXT)/m.test(p)||(p=p.trim(),f&&r.push(f),n.push(new xw(p,r,o)),r=[],o=[]);return o.length&&(f&&r.push(f),n.push(new xw("",r,o))),new ww(t,i,n)}i.push(a),a.name=="EXT-X-STREAM-INF"&&(a.attributes.push(new Em("URI",f)),r=!0)}}return new ww(t,i)}function km(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new Y(2,4,4016,t);t=n[1];var r=n[2];n=[];var i;if(r){r=new nl(r);var o;(o=To(r,/^([^,=]+)(?:,|$)/g))&&(i=o[1]);for(var a=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;o=To(r,a);)n.push(new Em(o[1],o[2]||o[3])),Eu(r)}return new Im(e,t,n,i)}var kw="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),nk="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP EXT-X-TILES".split(" ");function Aw(){}function Pw(e,t){try{var n=lg(e);return nu({uri:e,originalUri:e,data:n.data,headers:{"content-type":n.contentType},originalRequest:t})}catch(r){return Oi(r)}}function lg(e){var t=e.split(":");if(2>t.length||t[0]!="data")throw new Y(2,1,1004,e);if(t=t.slice(1).join(":").split(","),2>t.length)throw new Y(2,1,1004,e);var n=t[0];e=T.decodeURIComponent(t.slice(1).join(",")),t=n.split(";"),n=t[0];var r=!1;1<t.length&&t[t.length-1]=="base64"&&(r=!0,t.pop());var i;return r?i=ci(e):i=ui(e),{data:i,contentType:n}}Me("shaka.net.DataUriPlugin",Aw),Aw.parse=Pw,Bn("data",Pw);function sg(){var e=this;this.g=this.h=null,this.C=1,this.A=new Map,this.H=new Map,this.M=new Map,this.M.set("video",new Map),this.M.set("audio",new Map),this.M.set(at,new Map),this.M.set("image",new Map),this.Cb=new Set,this.i=new Map,this.l=null,this.L="",this.Ia=new tk,this.I=-1,this.fa=1/0,this.da=this.dc=this.Pa=!1,this.B=new st(function(){if(e.$&&!e.g.continueLoadingWhenPaused&&(e.V.bb(e.$,"timeupdate"),e.$.paused)){e.V.la(e.$,"timeupdate",function(){return Xw(e)});return}Xw(e)}),this.Ca=pg,this.m=null,this.Na=0,this.o=1/0,this.Ha=this.za=this.P=0,this.ba=new yl,this.F=new Map,this.G=new Map,this.sa=new Map,this.ha=new Map,this.K=new Map,this.na=new Map,this.pa=new Map,this.Qb=this.ga=!1,this.Lb=new Ju(5),this.j=null,this.O=!0,this.Ba=new Set,this.V=new At,this.s=this.$=null,this.Mb=function(){return!1}}h=sg.prototype,h.configure=function(e,t){var n=this.h&&e.hls.updatePeriod!=this.g.hls.updatePeriod&&0<=e.hls.updatePeriod;this.g=e,t&&(this.Mb=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.T()&&this.B.Hb()},h.start=function(e,t){var n=this,r;return G(function(i){return i.g==1?(n.h=t,n.ga=t.isLowLatencyMode(),_(i,Lm(n,[e]).promise,2)):i.g!=3?(r=i.h,n.L=r.uri,_(i,ok(n,r.data,e),3)):i.return(n.m)})},h.stop=function(){this.B&&(this.B.stop(),this.B=null);var e=[];return this.ba&&(e.push(this.ba.destroy()),this.ba=null),this.g=this.h=null,this.Cb.clear(),this.m=null,this.i.clear(),this.H.clear(),this.G.clear(),this.A.clear(),this.sa.clear(),this.ha.clear(),this.K.clear(),this.na.clear(),this.pa.clear(),this.Ba.clear(),this.j&&this.j.destroy(),this.V&&(this.V.release(),this.V=null),Promise.all(e)},h.update=function(){var e=this,t,n,r,i,o,a,f,p,g,m,w,E;return G(function(C){if(C.g==1){if(!Kr(e))return C.return();for(t=[],n=Array.from(e.i.values()),e.o=1/0,e.m.gapCount=0,r=n.f
`)))&&(n.licenseServerUri=Jy(e)),n},"urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":function(e){var t=Ft(e,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t))return null;var n="cenc";return t=="SAMPLE-AES"&&(n="cbcs"),t=Ft(e,"URI"),t=lg(t.split("?")[0]),t=Ze(t.data),n=Xo("com.huawei.wiseplay",n,[{initDataType:"cenc",initData:t}]),(e=je(e,"KEYID"))&&(n.keyIds=new Set([e.toLowerCase().substr(2)])),n}},pg="VOD",Qw="EVENT",hg="LIVE",kk={Hh:pg,Kj:Qw,Sj:hg};hi["application/x-mpegurl"]=function(){return new sg},hi["application/vnd.apple.mpegurl"]=function(){return new sg};function yg(e){return Jy(e)}var Ak=new Map().set("com.microsoft.playready",yg).set("com.microsoft.playready.recommendation",yg).set("com.microsoft.playready.software",yg).set("com.microsoft.playready.hardware",yg);function Bf(e){if(!nT){nT=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);gg=vt("ftyp",t,r,t,n),t=vt("dref",jk),Um=vt("dinf",t)}this.g=e}function Vf(e){for(var t=[],n=I(e.g),r=n.next();!r.done;r=n.next()){var i=t,o=i.push,a=r.value;r=vt;var f=a.id+1,p=a.stream.width||0,g=a.stream.height||0;a.type=="audio"&&(g=p=0);var m=a.duration*a.timescale,w=Math.floor(m/(Ms+1));switch(m=Math.floor(m%(Ms+1)),f=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(ee(fn(f,4)),[0,0,0,0],ee(fn(w,4)),ee(fn(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],ee(fn(p,2)),[0,0],ee(fn(g,2)),[0,0])),f=vt("tkhd",f),p=vt,w=a.duration*a.timescale,g=Math.floor(w/(Ms+1)),w=Math.floor(w%(Ms+1)),m=a.stream.language,m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96,g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(ee(fn(a.timescale,4)),ee(fn(g,4)),ee(fn(w,4)),ee(fn(m,2)),[0,0])),g=vt("mdhd",g),w=a,m=new Uint8Array([]),w.type){case"video":m=Dk;break;case"audio":m=Ok}w=vt("hdlr",m);e:{switch(a.type){case"video":a=vt("minf",vt("vmhd",Nk),Um,Zw(a));break e;case"audio":a=vt("minf",vt("smhd",_k),Um,Zw(a));break e}a=new Uint8Array([])}a=p("mdia",g,w,a),r=r("trak",f,a),o.call(i,r)}for(t=rn.apply(ar,ee(t)),o=e.g[0],n=vt,r=o.duration*o.timescale,i=Math.floor(r/(Ms+1)),r=Math.floor(r%(Ms+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(ee(fn(o.timescale,4)),ee(fn(i,4)),ee(fn(r,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255])),i=vt("mvhd",i),r=[],e=I(e.g),p=e.next();!p.done;p=e.next())a=r,f=a.push,p=new Uint8Array([0,0,0,0].concat(ee(fn(p.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),p=vt("trex",p),f.call(a,p);if(e=rn.apply(ar,ee(r)),e=vt("mvex",e),r=[],o.encrypted){for(o=I(o.stream.drmInfos),a=o.next();!a.done;a=o.next())if(a=a.value,a.initData)for(a=I(a.initData),f=a.next();!f.done;f=a.next())r.push(f.value.initData);o=rn.apply(ar,ee(r))}else o=new Uint8Array([]);return e=n("moov",i,t,e,o),t=new Uint8Array(gg.byteLength+e.byteLength),t.set(gg),t.set(e,gg.byteLength),t}function Zw(e){var t=vt,n=new Uint8Array([]);switch(e.type){case"video":if(e.codecs.includes("avc1")){n=e.stream.width||0;var r=e.stream.height||0;if(0<e.ya.byteLength)var i=vt("avcC",e.ya);else{i=vt;for(var o=7,a=[],f=[],p=0,g=0,m=0,w=0;w<e.kb.length;w++){var E=tT(e.kb[w]);switch(E[0]&31){case 7:a.push(E),o+=E.length+2;break;case 8:f.push(E),o+=E.length+2}}for(0<a.length&&(p=a[0][1],m=a[0][2],g=a[0][3]),o=new Uint8Array(o),w=0,o[w++]=1,o[w++]=p,o[w++]=m,o[w++]=g,o[w++]=255,o[w++]=224|a.length,p=0;p<a.length;p++)o[w++]=(a[p].length&65280)>>8,o[w++]=a[p].length&255,o.set(a[p],w),w+=a[p].length;for(o[w++]=f.length,a=0;a<f.length;a++)o[w++]=(f[a].length&65280)>>8,o[w++]=f[a].length&255,o.set(f[a],w),w+=f[a].length;i=i("avcC",o)}n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(ee(fn(n,2)),ee(fn(r,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),r="avc1",f=eT(e),a=new Uint8Array([]),e.encrypted&&
`);e={},t=I(t);for(var n=t.next();!n.done;n=t.next())n=n.value.split(": "),e[n[0].toLowerCase()]=n.slice(1).join(": ");return e}Me("shaka.net.HttpXHRPlugin",lT),lT.parse=mg;var Qk=T.XMLHttpRequest;Bn("http",mg,1,!0),Bn("https",mg,1,!0),Bn("blob",mg,1,!0);function aT(e,t,n,r,i){this.g=e,this.i=t,this.groupId=n,this.h=r,this.j=i}function Fm(e){var t=e.Pb();return t?Wo(t):e.N().map(function(n){return"{"+encodeURI(n.split("#xywh=")[0])+"}"}).join("")+":"+e.Ma+":"+e.va}function Zk(e,t){return Pl(e.g.N(),e.g.Ma,e.g.va,t.streaming.retryParameters)}function cT(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function fT(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}cT.prototype.close=function(e,t){if(this.h.has(e)){var n=this.h.get(e);this.h.delete(e),this.j+=n,this.g+=t}};function dT(e){return e.i==0?0:e.j/e.i}function pT(e){var t=this;this.s=e,this.i=new Map,this.h=new Nu(function(){return Km(t).catch(function(){})}),this.j=[],this.o=function(){},this.m=function(){},this.g=new cT,this.l=!1}pT.prototype.destroy=function(){return this.h.destroy()};function eA(e,t,n){e.o=t,e.m=n}function Km(e){e.l=!0;var t=e.j.map(function(n){return n()});return e.j=[],Promise.all(t)}function tA(e,t,n,r,i,o){Ht(e.h);var a=(e.i.get(t)||Promise.resolve()).then(function(){var f,p,g,m,w,E,C;return G(function(P){if(P.g==1)return _(P,iA(e,n),2);if(f=P.h,e.h.g)throw new Y(2,9,7001);if(i)for(m in p=Ze(f),g=new ro(p),g.data)w=Number(m),E=g.data[w],C=g.g[w],e.m(E,C);return e.g.close(r,f.byteLength),e.o(dT(e.g),e.g.g),P.return(o(f))})});e.i.set(t,a)}function nA(e,t,n,r,i,o){Ht(e.h);var a=(e.i.get(t)||Promise.resolve()).then(function(){if(e.h.g)throw new Y(2,9,7001);if(i){var f=Ze(n);f=new ro(f);for(var p in f.data){var g=Number(p);e.m(f.data[g],f.g[g])}}return e.g.close(r,n.byteLength),e.o(dT(e.g),e.g.g),o(n)});e.i.set(t,a)}function rA(e){return G(function(t){return t.g==1?_(t,Promise.all(e.i.values()),2):t.return(e.g.g)})}function iA(e,t){var n,r,i,o;return G(function(a){return a.g==1?(n=_r,r=e.s.request(n,t),i=function(){return r.abort()},e.j.push(i),_(a,r.promise,2)):(o=a.h,Gr(e.j,i),a.return(o.data))})}function Sg(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new Nt,e.onabort=function(r){r.preventDefault(),n.g.reject()},e.onerror=function(r){r.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}Sg.prototype.abort=function(){var e=this;return G(function(t){if(t.g==1){try{e.i.abort()}catch{}return pe(t,2),_(t,e.g,4)}if(t.g!=2)return be(t,0);ke(t),le(t)})};function Hm(e,t){return new Promise(function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var o;return G(function(a){if(a.g==1)return i.result==null?(n(),a.return()):(o=i.result,_(a,t(o.key,o.value,o),2));o.continue(),le(a)})}})}Sg.prototype.store=function(){return this.h},Sg.prototype.promise=function(){return this.g};function qm(e){this.h=e,this.g=[]}qm.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))};function nc(e,t){return wg(e,t,"readwrite")}function wg(e,t,n){n=e.h.transaction([t],n);var r=new Sg(n,t);return e.g.push(r),r.promise().then(function(){Gr(e.g,r)},function(){Gr(e.g,r)}),r}function rc(e,t,n){this.h=new qm(e),this.i=t,this.g=n}h=rc.prototype,h.destroy=function(){return this.h.destroy()},h.hasFixedKeySpace=function(){return!0},h.addSegments=function(){return hT(this.i)},h.removeSegments=function(e,t){return yT(this,this.i,e,t)},h.getSegments=function(e){var t=this,n;return G(function(r){return r.g==1?_(r,gT(t,t.i,e),2):(n=r.h,r.return(n.map(function(i){return t.zg(i)})))})},h.addManifests=function(){return hT(this.g)},h.updateManifest=function(){return Promise.reject(new Y(2,9,9016,"Cannot modify values in "+this.g))};function oA(e,t,n){e=nc(e.h,e.g);var r=e.store();return r.get(t).onsuccess=function(){r.put(n,t)},e.promise()}h.updateManifestExpiration=function(e,t){var n=nc(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(i){(i=i.target.result)&&(i.expiration=t,r.put(i,e))},n.promise()},h.removeManifests=function(e,t){return yT(this,this.g,e,t)},h.getManifests=function(e){var t=this,n
`}),p=xr(o,"style"),o=xr(o,"region"),g=[];for(var C=I(o),P=C.next();!P.done;P=C.next())(P=TP(P.value,p,E))&&g.push(P);if(bt(i,"p").length)throw new Y(2,2,2001,"<p> can only be inside <div> in TTML");for(E=I(bt(i,"div")),C=E.next();!C.done;C=E.next())if(bt(C.value,"span").length)throw new Y(2,2,2001,"<span> can only be inside <p> in TTML");return(t=yx(i,t,a,f,p,o,g,w,m,null,!1,n,r))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e};function yx(e,t,n,r,i,o,a,f,p,g,m,w,E){var C=g;if(rl(e)){if(!m)return null;var P={tagName:"span",children:[sn(e)],attributes:{},parent:null}}else P=e;for(var L=null,M=I(Cx),B=M.next();!B.done&&!(L=Lg(P,"backgroundImage",r,"#",B.value)[0]);B=M.next());M=null,B=Ai(P,Cx,"backgroundImage");var U=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(B&&U.test(B)){if(M=parseInt(B.split(":").pop(),10)-1,M>=E.length)return null;M=E[M]}else w&&B&&!B.startsWith("#")&&(U=new hn(w),B=new hn(B),(B=U.resolve(B).toString())&&(M=B));if((e.tagName=="p"||L||M)&&(m=!0),e=m,B=(P.attributes["xml:space"]||(f?"default":"preserve"))=="default",U=P.children.every(rl),f=[],!U)for(var K=I(P.children),W=K.next();!W.done;W=K.next())(W=yx(W.value,t,n,r,i,o,a,B,p,P,m,w,E))&&f.push(W);if(r=g!=null,w=sn(P),w=P.children.length&&w&&/\S/.test(w),K=P.attributes.begin||P.attributes.end||P.attributes.dur,!(K||w||P.tagName=="br"||f.length!=0||r&&!B))return null;for(E=mx(P,n),w=E.start,E=E.end;C&&C.tagName&&C.tagName!="tt";)E=IP(C,n,w,E),w=E.start,E=E.end,C=C.parent;if(w==null&&(w=0),w+=t.periodStart,E=E==null?1/0:E+t.periodStart,w=Math.max(w,t.segmentStart),E=Math.min(E,t.segmentEnd),!K&&0<f.length)for(w=1/0,E=0,t=I(f),n=t.next();!n.done;n=t.next())n=n.value,w=Math.min(w,n.startTime),E=Math.max(E,n.endTime);if(P.tagName=="br")return i=new zt(w,E,""),i.lineBreak=!0,i;if(t="",U&&(t=ur(sn(P)||""),B&&(t=t.replace(/\s+/g," "))),t=new zt(w,E,t),t.nestedCues=f,m||(t.isContainer=!0),p&&(t.cellResolution=p),p=Lg(P,"region",o,"")[0],P.attributes.region&&p&&p.attributes["xml:id"]){var X=p.attributes["xml:id"];t.region=a.filter(function(q){return q.id==X})[0]}return a=p,g&&r&&!P.attributes.region&&!P.attributes.style&&(a=Lg(g,"region",o,"")[0]),xP(t,P,a,L,M,i,e,f.length==0),t}function TP(e,t,n){var r=new el,i=e.attributes["xml:id"];if(!i)return null;r.id=i,i=null,n&&(i=g0.exec(n)||v0.exec(n)),n=i?Number(i[1]):null,i=i?Number(i[2]):null;var o,a=Mg(e,t,"extent");if(a){var f=(o=g0.exec(a))||v0.exec(a);f!=null&&(r.width=Number(f[1]),r.height=Number(f[2]),o||(n!=null&&(r.width=100*r.width/n),i!=null&&(r.height=100*r.height/i)),r.widthUnits=o||n!=null?Xn:0,r.heightUnits=o||i!=null?Xn:0)}return(e=Mg(e,t,"origin"))&&(f=(o=g0.exec(e))||v0.exec(e),f!=null&&(r.viewportAnchorX=Number(f[1]),r.viewportAnchorY=Number(f[2]),o?a||(r.width=100-r.viewportAnchorX,r.widthUnits=Xn,r.height=100-r.viewportAnchorY,r.heightUnits=Xn):(i!=null&&(r.viewportAnchorY=100*r.viewportAnchorY/i),n!=null&&(r.viewportAnchorX=100*r.viewportAnchorX/n)),r.viewportAnchorUnits=o||n!=null?Xn:0)),r}function d0(e){var t=e.match(/rgba\(([^)]+)\)/);return t&&(t=t[1].split(","),t.length==4)?(t[3]=String(Number(t[3])/255),"rgba("+t.join(",")+")"):e}function xP(e,t,n,r,i,o,a,f){if(a=a||f,Sr(t,n,o,"direction",a)=="rtl"&&(e.direction="rtl"),f=Sr(t,n,o,"writingMode",a),f=="tb"||f=="tblr"?e.writingMode="vertical-lr":f=="tbrl"?e.writingMode="vertical-rl":f=="rltb"||f=="rl"?e.direction="rtl":f&&(e.direction=la),(f=Sr(t,n,o,"textAlign",!0))?(e.positionAlign=PP[f],e.lineAlign=AP[f],e.textAlign=Tc[f.toUpperCase()]):e.textAlign=Io,(f=Sr(t,n,o,"displayAlign",!0))&&(e.displayAlign=Uh[f.toUpperCase()]),(f=Sr(t,n,o,"color",a))&&(e.color=d0(f)),(f=Sr(t,n,o,"backgroundColor",a))&&(e.backgroundColor=d0(f)),(f=Sr(t,n,o,"border",a))&&(e.border=f),f=Sr(t,n,o,"fontFamily",a))switch(f){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"proportionalS
2025-04-24 17:06:14 -04:00
`);var n=e.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new Y(2,2,2e3);if(e=t.vttOffset,this.g=="HLS")if(n[0].includes("X-TIMESTAMP-MAP")){var r=n[0];if(e=r.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),r=r.match(/MPEGTS:(\d+)/m),!e||!r)throw new Y(2,2,2e3);if(e=li(e[1]),e==null)throw new Y(2,2,2e3);r=Number(r[1]);for(var i=t.segmentStart-t.periodStart;95443.7176888889<=i;)i-=95443.7176888889,r+=8589934592;e=t.periodStart+r/9e4-e}else t.periodStart&&t.vttOffset==t.periodStart&&(e=0);for(t=[],r=I(n[0].split(`
`)),i=r.next();!i.done;i=r.next())if(i=i.value,/^Region:/.test(i)){i=new nl(i);var o=new el;$r(i),Eu(i);for(var a=$r(i);a;){var f=o,p=a;(a=/^id=(.*)$/.exec(p))?f.id=a[1]:(a=/^width=(\d{1,2}|100)%$/.exec(p))?f.width=Number(a[1]):(a=/^lines=(\d+)$/.exec(p))?(f.height=Number(a[1]),f.heightUnits=2):(a=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(p))?(f.regionAnchorX=Number(a[1]),f.regionAnchorY=Number(a[2])):(a=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(p))?(f.viewportAnchorX=Number(a[1]),f.viewportAnchorY=Number(a[2])):/^scroll=up$/.exec(p)&&(f.scroll="up"),Eu(i),a=$r(i)}t.push(o)}for(r=new Map,Sc(r),i=[],n=I(n.slice(1)),o=n.next();!o.done;o=n.next()){if(o=o.value.split(`
`),(o.length!=1||o[0])&&!/^NOTE($|[ \t])/.test(o[0])&&o[0]=="STYLE"){for(f=[],a=-1,p=1;p<o.length;p++)o[p].includes("::cue")&&(f.push([]),a=f.length-1),a!=-1&&(f[a].push(o[p]),o[p].includes("}")&&(a=-1));for(f=I(f),a=f.next();!a.done;a=f.next()){var g=a.value;a="global",(p=g[0].match(/\((.*)\)/))&&(a=p.pop()),p=g.slice(1,-1),g[0].includes("}")&&(g=/\{(.*?)\}/.exec(g[0]))&&(p=g[1].split(";")),(g=r.get(a))||(g=new zt(0,0,""));for(var m=!1,w=0;w<p.length;w++){var E=/^\s*([^:]+):\s*(.*)/.exec(p[w]);if(E){var C=E[2].trim().replace(";","");switch(E[1].trim()){case"background-color":case"background":m=!0,g.backgroundColor=C;break;case"color":m=!0,g.color=C;break;case"font-family":m=!0,g.fontFamily=C;break;case"font-size":m=!0,g.fontSize=C;break;case"font-weight":(700<=parseInt(C,10)||C=="bold")&&(m=!0,g.fontWeight=$l);break;case"font-style":switch(C){case"normal":m=!0,g.fontStyle=vd;break;case"italic":m=!0,g.fontStyle=Jl;break;case"oblique":m=!0,g.fontStyle="oblique"}break;case"opacity":m=!0,g.opacity=parseFloat(C);break;case"text-combine-upright":m=!0,g.textCombineUpright=C;break;case"text-shadow":m=!0,g.textShadow=C;break;case"white-space":m=!0,g.wrapLine=C!="noWrap"}}}m&&r.set(a,g)}}if(g=o,m=e,g.length==1&&!g[0]||/^NOTE($|[ \t])/.test(g[0])||g[0]=="STYLE"||g[0]=="REGION")o=null;else if(o=null,g[0].includes("-->")||(o=g[0],g.splice(0,1)),f=new nl(g[0]),a=Ci(f),w=To(f,/[ \t]+--\x3e[ \t]+/g),p=Ci(f),a==null||w==null||p==null)ft("Failed to parse VTT time code. Cue skipped:",o,g),o=null;else{for(a+=m,p+=m,m=g.slice(1).join(`
`).trim(),r.has("global")?(g=r.get("global").clone(),g.startTime=a,g.endTime=p,g.payload=m):g=new zt(a,p,m),Eu(f),a=$r(f);a;)kx(g,a,t),Eu(f),a=$r(f);mc(g,r),o!=null&&(g.id=o),o=g}o&&i.push(o)}return i};function kx(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],t=="middle"?e.textAlign=Io:e.textAlign=Tc[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode=r[1]=="lr"?"vertical-lr":"vertical-rl":(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign=t=="line-left"||t=="start"?"line-left":t=="line-right"||t=="end"?"line-right":t=="center"||t=="middle"?"center":wc)):(r=/^region:(.*)$/.exec(t))?(t=DP(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=yd[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=ll,e.line=Number(n[1]),n[2]&&(e.lineAlign=yd[n[2].toUpperCase()]))}function DP(e,t){return e=e.filter(function(n){return n.id==t}),e.length?e[0]:null}Me("shaka.text.VttTextParser",Hr),Hr.prototype.parseMedia=Hr.prototype.parseMedia,Hr.prototype.setManifestType=Hr.prototype.setManifestType,Hr.prototype.setSequenceMode=Hr.prototype.setSequenceMode,Hr.prototype.parseInit=Hr.prototype.parseInit,gn["text/vtt"]=function(){return new Hr},gn['text/vtt; codecs="vtt"']=function(){return new Hr},gn['text/vtt; codecs="wvtt"']=function(){return new Hr};function Fi(){this.g=null}Fi.prototype.parseInit=function(e){var t=this,n=!1;if(new Vt().box("moov",it).box("trak",it).box("mdia",it).S("mdhd",function(r){r=Ma(r.reader,r.version),t.g=r.timescale}).box("minf",it).box("stbl",it).S("stsd",Po).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new Y(2,2,2008);if(!n)throw new Y(2,2,2008)},Fi.prototype.setSequenceMode=function(){},Fi.prototype.setManifestType=function(){},Fi.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new Y(2,2,2008);var n=0,r=[],i,o=[],a=!1,f=!1,p=!1,g=null;if(new Vt().box("moof",it).box("traf",it).S("tfdt",function(K){a=!0,n=ba(K.reader,K.version).baseMediaDecodeTime}).S("tfhd",function(K){g=ty(K.reader,K.flags).jd}).S("trun",function(K){f=!0,r=tp(K.reader,K.version,K.flags).kh}).box("mdat",_u(function(K){p=!0,i=K})).parse(e,!1),!p&&!a&&!f)throw new Y(2,2,2008);e=n;for(var m=new Mt(i,0),w=I(r),E=w.next();!E.done;E=w.next()){E=E.value;var C=E.Wf||g,P=E.se?n+E.se:e;e=P+(C||0);var L=0;do{var M=m.R();L+=M;var B=m.R(),U=null;Ur(B)=="vttc"?8<M&&(U=m.Ab(M-8)):m.skip(M-8),C&&U&&(M=OP(U,t.periodStart+P/this.g,t.periodStart+e/this.g),o.push(M))}while(E.sampleSize&&L<E.sampleSize)}return o.filter(to)};function OP(e,t,n){var r,i,o;return new Vt().box("payl",_u(function(a){r=Qt(a)})).box("iden",_u(function(a){i=Qt(a)})).box("sttg",_u(function(a){o=Qt(a)})).parse(e),r?RP(r,i,o,t,n):null}function RP(e,t,n,r,i){if(e=new zt(r,i,e),mc(e),t&&(e.id=t),n)for(t=new nl(n),n=$r(t);n;)kx(e,n,[]),Eu(t),n=$r(t);return e}Me("shaka.text.Mp4VttParser",Fi),Fi.prototype.parseMedia=Fi.prototype.parseMedia,Fi.prototype.setManifestType=Fi.prototype.setManifestType,Fi.prototype.setSequenceMode=Fi.prototype.setSequenceMode,Fi.prototype.parseInit=Fi.prototype.parseInit,gn['application/mp4; codecs="wvtt"']=function(){return new Fi};function Ki(){}Ki.prototype.parseInit=function(){},Ki.prototype.setSequenceMode=function(){},Ki.prototype.setManifestType=function(){},Ki.prototype.parseMedia=function(e){var t=Qt(e).replace(/\r+/g,"");if(t=t.trim(),e=[],t=="")return e;t=I(t.split(`
2025-04-24 17:06:14 -04:00
`));for(var n=t.next();!n.done;n=t.next()){n=n.value.split(`
`);var r=new nl(n[0]),i=Ci(r),o=To(r,/,/g);if(r=Ci(r),i==null||o==null||r==null)throw new Y(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new zt(i,r,n.slice(1).join(`
`).trim()))}return e},Me("shaka.text.SbvTextParser",Ki),Ki.prototype.parseMedia=Ki.prototype.parseMedia,Ki.prototype.setManifestType=Ki.prototype.setManifestType,Ki.prototype.setSequenceMode=Ki.prototype.setSequenceMode,Ki.prototype.parseInit=Ki.prototype.parseInit,gn["text/x-subviewer"]=function(){return new Ki};function wi(){this.g=new Hr}wi.prototype.parseInit=function(){},wi.prototype.setSequenceMode=function(){},wi.prototype.setManifestType=function(){},wi.prototype.parseMedia=function(e,t,n){return e=Qt(e),e=Ax(e),e=Ze(ui(e)),this.g.parseMedia(e,t,n,[])};function Ax(e){var t=`WEBVTT
2025-04-24 17:06:14 -04:00
`;if(e=="")return t;e=e.replace(/\r+/g,""),e=e.trim(),e=I(e.split(`
`));for(var n=e.next();!n.done;n=e.next())n=n.value.split(/\n/),n[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join(`
`).replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+`
`;return t}Me("shaka.text.SrtTextParser",wi),wi.srt2webvtt=Ax,wi.prototype.parseMedia=wi.prototype.parseMedia,wi.prototype.setManifestType=wi.prototype.setManifestType,wi.prototype.setSequenceMode=wi.prototype.setSequenceMode,wi.prototype.parseInit=wi.prototype.parseInit,gn["text/srt"]=function(){return new wi};function Hi(){}Hi.prototype.parseInit=function(){},Hi.prototype.setSequenceMode=function(){},Hi.prototype.setManifestType=function(){},Hi.prototype.parseMedia=function(e){var t="",n="",r=null,i=null;for(i=Qt(e).split(/\r?\n\s*\r?\n/),e=I(i),i=e.next();!i.done;i=e.next()){var o=i.value;i=o,(o=MP.exec(o))&&(r=o[1],i=o[2]),r=="V4 Styles"||r=="V4+ Styles"?(t=i,t=n?t+(`
2025-04-24 17:06:14 -04:00
`+i):i):r=="Events"&&(n=n?n+(`
`+i):i)}for(r=[],i=null,t=I(t.split(/\r?\n/)),e=t.next();!e.done;e=t.next())if(e=e.value,!/^\s*;/.test(e)&&(o=Ox.exec(e))){if(e=o[1].trim(),o=o[2].trim(),e=="Format")i=o.split(_g);else if(e=="Style"){e=o.split(_g),o={};for(var a=0;a<i.length&&a<e.length;a++)o[i[a]]=e[a];r.push(o)}}for(i=[],t=null,n=I(n.split(/\r?\n/)),o=n.next(),e={};!o.done;e={wh:void 0},o=n.next())if(o=o.value,!/^\s*;/.test(o)&&(a=Ox.exec(o))){if(o=a[1].trim(),a=a[2].trim(),o=="Format")t=a.split(_g);else if(o=="Dialogue"){a=a.split(_g),o={};for(var f=0;f<t.length&&f<a.length;f++)o[t[f]]=a[f];f=Dx(o.Start);var p=Dx(o.End);a=new zt(f,p,a.slice(t.length-1).join(",").replace(/\\N/g,`
`).replace(/\{[^}]+\}/g,"")),e.wh=o.Style,(e=r.find(function(g){return function(m){return m.Name==g.wh}}(e)))&&bP(a,e),i.push(a)}}return i};function bP(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=Px(n))&&(e.color=n),(n=t.BackColour)&&(n=Px(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=$l),t.Italic&&(e.fontStyle=Jl),t.Underline&&e.textDecoration.push(Ho),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=ua,e.textAlign="start";break;case 2:e.displayAlign=ua,e.textAlign=Io;break;case 3:e.displayAlign=ua,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=Io;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=Io;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function Px(e){return e=parseInt(e.replace("&H",""),16),0<=e?"rgba("+(e&255)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function Dx(e){return e=LP.exec(e),3600*(e[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Me("shaka.text.SsaTextParser",Hi),Hi.prototype.parseMedia=Hi.prototype.parseMedia,Hi.prototype.setManifestType=Hi.prototype.setManifestType,Hi.prototype.setSequenceMode=Hi.prototype.setSequenceMode,Hi.prototype.parseInit=Hi.prototype.parseInit;var MP=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Ox=/^\s*([^:]+):\s*(.*)/,_g=/\s*,\s*/,LP=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;gn["text/x-ssa"]=function(){return new Hi};function Rx(e,t){var n=e[t+1]&1?7:9;return t+n<=e.length&&(e=((e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5)-n,0<e)?{rd:n,ea:e}:null}function bx(e,t){var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=(e[t+2]&60)>>>2;if(r>n.length-1)return null;var i=((e[t+2]&192)>>>6)+1,o=(e[t+2]&1)<<2;return o|=(e[t+3]&192)>>>6,{sampleRate:n[r],channelCount:o,codec:"mp4a.40."+i}}function Mx(e,t){if(t+1<e.length&&e[t]===255&&(e[t+1]&246)===240){var n=e[t+1]&1?7:9;if(t+n>=e.length)return!1;var r=(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5;return r<=n?!1:(t+=r,t===e.length||t+1<e.length&&e[t]===255&&(e[t+1]&246)===240)}return!1}function NP(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2||t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}function qi(e){this.j=e,this.h=0,this.g=new Map,this.i=null}h=qi.prototype,h.destroy=function(){this.g.clear()},h.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/aac"?Un(this.convertCodecs("audio",e)):!1},h.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(Er(t)||"mp4a.40.2")+'"':t},h.getOriginalMimeType=function(){return this.j},h.transmux=function(e,t,n,r){for(var i=Ze(e),o=Bu(i),a=o.length;a<i.length&&!Mx(i,a);a++);if(e=1e3*n.endTime,o=cu(o),o.length&&n&&(o=o.find(function(m){return m.description==="com.apple.streaming.transportStreamTimestamp"}))&&(e=o.data),o=bx(i,a),!o)return Promise.reject(new Y(2,3,3018,n?n.N()[0]:null));t.audioSamplingRate=o.sampleRate,t.channelsCount=o.channelCount;for(var f=[];a<i.
2025-04-24 17:06:14 -04:00
@license
MSS Transmuxer
Copyright 2015 Dash Industry Forum
SPDX-License-Identifier: BSD-3-Clause
*/function zi(e){this.h=e,(this.g=xm.get("ISOBoxer")())&&YP(this)}function YP(e){function t(){this._procFullBox(),this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8)),this._procField("sample_count","uint",32),this._procEntries("entry",this.sample_count,function(n){this._procEntryField(n,"InitializationVector","data",8),this.flags&2&&(this._procEntryField(n,"NumberOfEntries","uint",16),this._procSubEntries(n,"clearAndCryptedData",n.NumberOfEntries,function(r){this._procEntryField(r,"BytesOfClearData","uint",16),this._procEntryField(r,"BytesOfEncryptedData","uint",32)}))})}e.g.addBoxProcessor("saio",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",this.version===1?64:32)}),e.g.addBoxProcessor("saiz",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),this.default_sample_info_size===0&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)}),e.g.addBoxProcessor("senc",t),e.g.addBoxProcessor("uuid",function(){for(var n=!0,r=0;16>r;r++)this.usertype[r]!==$P[r]&&(n=!1);n&&(this._parsing&&(this.type="sepiff"),t.call(this))})}h=zi.prototype,h.destroy=function(){},h.isSupported=function(e,t){var n=e.startsWith("mss/");return!this.g||!n?!1:t?Un(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),Un(t)||Un(e))},h.convertCodecs=function(e,t){return t.replace("mss/","")},h.getOriginalMimeType=function(){return this.h},h.transmux=function(e,t,n){if(!n)return Promise.resolve(Ze(e));if(!t.mssPrivateData)return Promise.reject(new Y(2,3,3020,n?n.N()[0]:null));try{var r,i=this.g.parseBuffer(e),o=i.fetch("tfhd");o.track_ID=t.id+1;var a=i.fetch("tfdt"),f=i.fetch("traf");a===null&&(a=this.g.createFullBox("tfdt",f,o),a.version=1,a.flags=0,a.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var p=i.fetch("trun"),g=i.fetch("tfxd");g&&g._parent.boxes.splice(g._parent.boxes.indexOf(g),1);var m=i.fetch("tfrf");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var w=i.fetch("sepiff");if(w!==null){w.type="senc",w.usertype=void 0;var E=i.fetch("saio");if(E===null){E=this.g.createFullBox("saio",f),E.version=0,E.flags=0,E.entry_count=1,E.offset=[0];var C=this.g.createFullBox("saiz",f);if(C.version=0,C.flags=0,C.sample_count=w.sample_count,C.default_sample_info_size=0,C.sample_info_size=[],w.flags&2)for(r=0;r<w.sample_count;r+=1)C.sample_info_size[r]=10+6*w.entry[r].NumberOfEntries;else C.default_sample_info_size=8}}o.flags&=16777214,o.flags|=131072,p.flags|=1;var P=i.fetch("moof");p.data_offset=P.getLength()+8;var L=i.fetch("saio");L!==null&&(L.offset[0]=jx(P,"traf")+jx(f,"senc")+16);var M=Ze(i.write());return Promise.resolve(M)}catch(B){return B instanceof Y?Promise.reject(B):Promise.reject(new Y(2,3,3022,n?n.N()[0]:null))}};function jx(e,t){for(var n=8,r=0;r<e.boxes.length&&e.boxes[r].type!==t;r++)n+=e.boxes[r].size;return n}Me("shaka.transmuxer.MssTransmuxer",zi),zi.prototype.transmux=zi.prototype.transmux,zi.prototype.getOriginalMimeType=zi.prototype.getOriginalMimeType,zi.prototype.convertCodecs=zi.prototype.convertCodecs,zi.prototype.isSupported=zi.prototype.isSupported,zi.prototype.destroy=zi.prototype.destroy;var $P=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);ai("mss/audio/mp4",function(){return new zi("mss/audio/mp4")},qo),ai("mss/video/mp4",function(){return new zi("mss/video/mp4")},qo);function yo(e){this.m=e,this.g=0,this.i=new Map,this.l=this.h=this.j=null}h=yo.prototype,h.destroy=function(){this.i.clear(),this.h&&this.h.destroy()},h.isSupported=function(e,t){if(e.toLowerCase().split(";")[0]!="video/mp2t")return!1;var n=e;t&&(n=this.convertCodecs(t,e));var r=Er(n).split(",");return n=cr
2025-04-24 17:06:14 -04:00
@license
EME Encryption Scheme Polyfill
Copyright 2019 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function Bx(){}var ch;function Vx(){ch||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(ch=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=ZP,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function ZP(e,t){var n=this,r;return G(function(i){return i.g==1?(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),_(i,ch.call(n,e,t),2)):(r=i.h,Xx(r)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=ch,i.return(r)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=Fx,i.return(Fx.call(n,e,t))))})}function Fx(e,t){var n=this,r,i,o,a,f,p,g,m,w,E,C,P;return G(function(L){if(L.g==1){for(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),r=Wx(e),i=[],o=I(t),a=o.next();!a.done;a=o.next())f=a.value,p=Kx(f.videoCapabilities,r),g=Kx(f.audioCapabilities,r),f.videoCapabilities&&f.videoCapabilities.length&&!p.length||f.audioCapabilities&&f.audioCapabilities.length&&!g.length||(m=Object.assign({},f),m.videoCapabilities=p,m.audioCapabilities=g,i.push(m));if(!i.length)throw w=Error("Unsupported keySystem or supportedConfigurations."),w.name="NotSupportedError",w.code=DOMException.NOT_SUPPORTED_ERR,w;return _(L,ch.call(n,e,i),2)}return E=L.h,P=C=null,i[0]&&(i[0].videoCapabilities&&(C=i[0].videoCapabilities[0].encryptionScheme),i[0].audioCapabilities&&(P=i[0].audioCapabilities[0].encryptionScheme)),L.return(new jg(E,C,P))})}function Kx(e,t){return e&&e.filter(function(n){return m0(n.encryptionScheme,t)})}Me("EmeEncryptionSchemePolyfill",Bx),Bx.install=Vx;function Hx(){}var fh;function qx(){fh||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(fh=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=eD,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function eD(e){var t=this,n,r;return G(function(i){switch(i.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),_(i,fh.call(t,e),2);case 2:if(n=i.h,!e.keySystemConfiguration)return i.return(n);if((r=n.keySystemAccess)&&Xx(r))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=fh,i.return(n);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=zx,r){i.u(3);break}return _(i,Gx(e),4);case 4:return n.keySystemAccess=i.h,i.return(n);case 3:return i.return(zx.call(t,e))}})}function zx(e){var t=this,n,r,i,o,a,f,p;return G(function(g){switch(g.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),r=n=null,!e.keySystemConfiguration||(i=e.keySystemConfiguration,o=i.keySystem,r=i.audio&&i.audio.encryptionScheme,n=i.video&&i.video.encryptionScheme,a=Wx(o),f={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},m0(r,a)&&m0(n,a))?_(g,fh.call(t,e),2):g.return(f);case 2:if(p=g.h,p.keySystemAccess){p.keySystemAccess=new jg(p.keySystemAccess,n,r),g.u(3);break}if(!e.keySystemConfiguration){g.u(3);break}return _(g,Gx(e),5);case 5:p.keySystemAccess=g.h;case 3:return g.return(p)}})}function Gx(e){var t,n;return G(function(r){if(r.g==1){var i=e.keySystemConfiguration,o=[],a=[];return i.audio&&o.push({robustness:i.audio.robustness||"",contentType:e.audio.contentType,encryptionScheme:i.audio.encrypt
2025-04-24 17:06:14 -04:00
`).map(z=>z.trim()),u=T.split(`
`).map(z=>z.trim());if(l.length!==u.length){console.error("The number of KIDs and Keys must be the same.");return}const d=new eR.Player(O.current),v={drm:{clearKeys:{}}};l.forEach((z,I)=>{v.drm.clearKeys[z]=u[I]}),console.log("Configuring player with the following DRM config:",v),d.configure(v);const A=b;d.load(A).then(()=>{console.log("Shaka Player loaded successfully."),O.current.play()}).catch(z=>{console.error("Error loading the stream:",z)})}};return ae.jsxs("div",{className:"min-w-full w-full min-h-full h-full bg-zinc-900 shadow-lg shadow-black flex flex-row overflow-y-auto pt-5 pl-5 pr-5 items-center justify-around",children:[ae.jsx(Qf,{children:ae.jsx("title",{children:"Test Player"})}),ae.jsxs("div",{className:"min-8/10 w-8/10 min-h-8/10 h-8/10 flex flex-row overflow-y-auto items-center justify-around border shadow-lg shadow-red-700 rounded-2xl",children:[ae.jsx("div",{className:"w-7/10 h-7/10 border border-black rounded-2xl p-5 bg-[rgba(0,0,0,0.2)] shadow-lg shadow-black",children:ae.jsx("video",{ref:O,className:"w-full h-full",controls:!0})}),ae.jsx("div",{className:"w-2/10 h-7/10 flex flex-col border border-black rounded-2xl p-5 bg-[rgba(0,0,0,0.2)] shadow-lg shadow-black focus-within:w-3/10 transition-all duration-300 ease-in-out",children:ae.jsxs("form",{className:"h-full flex flex-col gap-2",children:[ae.jsx("input",{type:"text",placeholder:"MPD URL",id:"player_mpd",name:"player_mpd",value:b,onChange:l=>D(l.target.value),className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded focus:shadow-sm focus:shadow-red-700/50 transition-all duration-300 ease-in-out p-2"}),ae.jsx("textarea",{placeholder:"KIDs, separated by new lines",id:"player_kid",name:"player_kid",value:N,onChange:l=>x(l.target.value),className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded h-1/4 focus:h-1/3 overflow-y-auto focus:shadow-sm focus:shadow-red-700/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("textarea",{placeholder:"Keys, separated by new lines",id:"player_key",name:"player_key",value:T,onChange:l=>j(l.target.value),className:"text-white bg-[rgba(0,0,0,0.2)] focus:outline-none rounded h-1/4 focus:h-1/3 focus:shadow-sm focus:shadow-red-700/50 transition-all duration-300 ease-in-out p-2 resize-none"}),ae.jsx("button",{type:"button",onClick:h,className:"mt-auto bg-white text-black rounded p-2 hover:bg-slate-200 transition-colors duration-300 ease-in-out w-full cursor-pointer active:transform active:scale-95 overflow-x-hidden overflow-y-hidden",children:"Submit"})]})})]})]})}function nR(){return ae.jsx(BO,{children:ae.jsxs("div",{className:"flex flex-row",children:[ae.jsx("div",{className:"w-1/8 h-dvh overflow-y-auto",children:ae.jsx(ZO,{})}),ae.jsx("div",{className:"w-7/8 h-dvh overflow-y-auto scroll-smooth",id:"main_content",children:ae.jsxs(yO,{children:[ae.jsx(wh,{path:"/",element:ae.jsx(X3,{})}),ae.jsx(wh,{path:"/api",element:ae.jsx($3,{})}),ae.jsx(wh,{path:"/testplayer",element:ae.jsx(tR,{})}),ae.jsx(wh,{path:"/cache",element:ae.jsx(J3,{})})]})})]})})}function rR(){return ae.jsx(ae.Fragment,{children:ae.jsx(nR,{})})}ED.createRoot(document.getElementById("root")).render(ae.jsx(we.StrictMode,{children:ae.jsx(rR,{})}))});export default iR();