var Lt=Object.defineProperty;var Dt=(p,a,h)=>a in p?Lt(p,a,{enumerable:!0,configurable:!0,writable:!0,value:h}):p[a]=h;var j=(p,a,h)=>Dt(p,typeof a!="symbol"?a+"":a,h);import{n as Rt,f as V,m as ht,a as M,p as sA,c as dA,B as Mt,s as zA}from"./props-b4vEeO_8.js";import{ae as pt,B as YA,a4 as fA,ah as Ot,I as R,F,J as q,k as m,G as jA,a3 as $,C as AA,h as Me,ag as Nt,N as vA,af as Ht,T as pe,n as Oe,D as Ne}from"./runtime-C3rQLW--.js";import{i as W,s as uA,c as Vt}from"./svelte-component-C8Ginrj8.js";import{b as ct}from"./window-DXjFTZv5.js";import{c as Gt,d as Yt}from"./create-runtime-stories-7AWWVphH.js";import{a as ft}from"./index-client-BAw8T8-V.js";import{s as ut}from"./snippet-C5kbqVpq.js";import{s as He,a as Ee}from"./attributes-Cg6aLqN3.js";import{s as K}from"./style-DvJ3IcV1.js";import{b as ee}from"./size-DMdj3-I9.js";import{b as ue}from"./this-CrUBQEQ_.js";import{T as jt}from"./tweened-4Ja_XIbT.js";import{S as gt}from"./ScrollerBase-DJMKplMV.js";import{e as Ie,i as Fe}from"./each-CVpBMMjG.js";import{t as Ve,f as Ge}from"./index-CCfEE_8A.js";import{B as ae}from"./Block-D3Ui8rd-.js";import{M as Wt}from"./Markdown-DUxFwijc.js";import{H as Qt}from"./Headline-C-tkYFZ6.js";import{B as cA}from"./BodyText-CXnxLnBi.js";var qt="2.0.9",Kt=500,Ye="user-agent",NA="",je="?",Z={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},aA="browser",xA="cpu",yA="device",_A="engine",hA="os",HA="result",S="name",y="type",B="vendor",E="version",iA="architecture",$A="major",x="model",oe="console",H="mobile",Q="tablet",J="smarttv",mA="wearable",ie="xr",JA="embedded",Xt="fetcher",LA="inapp",ze="brands",IA="formFactors",Le="fullVersionList",VA="platform",De="platformVersion",ce="bitness",CA="sec-ch-ua",Zt=CA+"-full-version-list",Jt=CA+"-arch",$t=CA+"-"+ce,Ai=CA+"-form-factors",ei=CA+"-"+H,ti=CA+"-"+x,vt=CA+"-"+VA,ii=vt+"-version",_t=[ze,Le,H,x,VA,De,iA,IA,ce],se="Amazon",DA="Apple",We="ASUS",Qe="BlackBerry",PA="Google",qe="Huawei",ge="Lenovo",Ke="Honor",re="LG",ve="Microsoft",_e="Motorola",Xe="Nvidia",Ze="OnePlus",me="OPPO",qA="Samsung",Je="Sharp",KA="Sony",ye="Xiaomi",be="Zebra",$e="Chrome",At="Chromium",BA="Chromecast",le="Edge",XA="Firefox",RA="Opera",we="Facebook",et="Sogou",MA="Mobile ",OA=" Browser",Be="Windows",si=typeof window!==Z.UNDEFINED,nA=si&&window.navigator?window.navigator:void 0,FA=nA&&nA.userAgentData?nA.userAgentData:void 0,ri=function(p,a){var h={},o=a;if(!de(a)){o={};for(var U in a)for(var w in a[U])o[w]=a[U][w].concat(o[w]?o[w]:[])}for(var u in p)h[u]=o[u]&&o[u].length%2===0?o[u].concat(p[u]):p[u];return h},fe=function(p){for(var a={},h=0;h0){for(var h in p)if(TA(a)==TA(p[h]))return!0;return!1}return te(p)?TA(a)==TA(p):!1},de=function(p,a){for(var h in p)return/^(browser|cpu|device|engine|os)$/.test(h)||(a?de(p[h]):!1)},te=function(p){return typeof p===Z.STRING},xe=function(p){if(p){for(var a=[],h=GA(/\\?\"/g,p).split(","),o=0;o-1){var U=he(h[o]).split(";v=");a[o]={brand:U[0],version:U[1]}}else a[o]=he(h[o]);return a}},TA=function(p){return te(p)?p.toLowerCase():p},ke=function(p){return te(p)?GA(/[^\d\.]/g,p).split(".")[0]:void 0},wA=function(p){for(var a in p)if(p.hasOwnProperty(a)){var h=p[a];typeof h==Z.OBJECT&&h.length==2?this[h[0]]=h[1]:this[h]=void 0}return this},GA=function(p,a){return te(a)?a.replace(p,NA):a},ZA=function(p){return GA(/\\?\"/g,p)},he=function(p,a){return p=GA(/^\s\s*/,String(p)),typeof a===Z.UNDEFINED?p:p.substring(0,a)},Ce=function(p,a){if(!(!p||!a))for(var h=0,o,U,w,u,s,T;h0?u.length===2?typeof u[1]==Z.FUNCTION?this[u[0]]=u[1].call(this,T):this[u[0]]=u[1]:u.length>=3&&(typeof u[1]===Z.FUNCTION&&!(u[1].exec&&u[1].test)?u.length>3?this[u[0]]=T?u[1].apply(this,u.slice(2)):void 0:this[u[0]]=T?u[1].call(this,T,u[2]):void 0:u.length==3?this[u[0]]=T?T.replace(u[1],u[2]):void 0:u.length==4?this[u[0]]=T?u[3].call(this,T.replace(u[1],u[2])):void 0:u.length>4&&(this[u[0]]=T?u[3].apply(this,[T.replace(u[1],u[2])].concat(u.slice(4))):void 0)):this[u]=T||void 0;h+=2}},gA=function(p,a){for(var h in a)if(typeof a[h]===Z.OBJECT&&a[h].length>0){for(var o=0;o2&&this.set(x,"iPad").set(y,Q);break;case hA:!this.get(S)&&FA&&FA[VA]&&this.set(S,FA[VA]);break;case HA:var p=this.data,a=function(h){return p[h].getItem().detectFeature().get()};this.set(aA,a(aA)).set(xA,a(xA)).set(yA,a(yA)).set(_A,a(_A)).set(hA,a(hA))}return this};kA.prototype.parseUA=function(){switch(this.itemType!=HA&&Ce.call(this.data,this.ua,this.rgxMap),this.itemType){case aA:this.set($A,ke(this.get(E)));break;case hA:if(this.get(S)=="iOS"&&this.get(E)=="18.6"){var p=/\) Version\/([\d\.]+)/.exec(this.ua);p&&parseInt(p[1].substring(0,2),10)>=26&&this.set(E,p[1])}break}return this};kA.prototype.parseCH=function(){var p=this.uaCH,a=this.rgxMap;switch(this.itemType){case aA:case _A:var h=p[Le]||p[ze],o;if(h)for(var U=0;U=13?"11":"10"),this.set(S,D).set(E,O)}this.get(S)==Be&&p[x]=="Xbox"&&this.set(S,"Xbox").set(E,void 0);break;case HA:var _=this.data,c=function(C){return _[C].getItem().setCH(p).parseCH().get()};this.set(aA,c(aA)).set(xA,c(xA)).set(yA,c(yA)).set(_A,c(_A)).set(hA,c(hA))}return this};function SA(p,a,h){if(typeof p===Z.OBJECT?(de(p,!0)?(typeof a===Z.OBJECT&&(h=a),a=p):(h=p,a=void 0),p=void 0):typeof p===Z.STRING&&!de(a,!0)&&(h=a,a=void 0),h)if(typeof h.append===Z.FUNCTION){var o={};h.forEach(function(z,D){o[String(D).toLowerCase()]=z}),h=o}else{var U={};for(var w in h)h.hasOwnProperty(w)&&(U[String(w).toLowerCase()]=h[w]);h=U}if(!(this instanceof SA))return new SA(p,a,h).getResult();var u=typeof p===Z.STRING?p:h&&h[Ye]?h[Ye]:nA&&nA.userAgent?nA.userAgent:NA,s=new mt(h,!0),T=a?ri(st,a):st,P=function(z){return z==HA?function(){return new kA(z,u,T,s).set("ua",u).set(aA,this.getBrowser()).set(xA,this.getCPU()).set(yA,this.getDevice()).set(_A,this.getEngine()).set(hA,this.getOS()).get()}:function(){return new kA(z,u,T[z],s).parseUA().get()}};return wA.call(this,[["getBrowser",P(aA)],["getCPU",P(xA)],["getDevice",P(yA)],["getEngine",P(_A)],["getOS",P(hA)],["getResult",P(HA)],["getUA",function(){return u}],["setUA",function(z){return te(z)&&(u=he(z,Kt)),this}]]).setUA(u),this}SA.VERSION=qt;SA.BROWSER=fe([S,E,$A,y]);SA.CPU=fe([iA]);SA.DEVICE=fe([x,B,y,oe,H,J,Q,mA,JA]);SA.ENGINE=SA.OS=fe([S,E]);var Se={},rt;function oi(){return rt||(rt=1,function(p){var a=function(){var A=new Date,e=4,t=3,r=2,n=1,l=e,d={setLogLevel:function(f){f==this.debug?l=n:f==this.info?l=r:f==this.warn?l=t:(f==this.error,l=e)},debug:function(f,v){console.debug===void 0&&(console.debug=console.log),n>=l&&console.debug("["+a.getDurationString(new Date-A,1e3)+"]","["+f+"]",v)},log:function(f,v){this.debug(f.msg)},info:function(f,v){r>=l&&console.info("["+a.getDurationString(new Date-A,1e3)+"]","["+f+"]",v)},warn:function(f,v){t>=l&&console.warn("["+a.getDurationString(new Date-A,1e3)+"]","["+f+"]",v)},error:function(f,v){e>=l&&console.error("["+a.getDurationString(new Date-A,1e3)+"]","["+f+"]",v)}};return d}();a.getDurationString=function(A,e){var t;function r(g,b){for(var k=""+g,L=k.split(".");L[0].length0){for(var t="",r=0;r0&&(t+=","),t+="["+a.getDurationString(A.start(r))+","+a.getDurationString(A.end(r))+"]";return t}else return"(empty)"},p.Log=a;var h=function(A){if(A instanceof ArrayBuffer)this.buffer=A,this.dataview=new DataView(A);else throw"Needs an array buffer";this.position=0};h.prototype.getPosition=function(){return this.position},h.prototype.getEndPosition=function(){return this.buffer.byteLength},h.prototype.getLength=function(){return this.buffer.byteLength},h.prototype.seek=function(A){var e=Math.max(0,Math.min(this.buffer.byteLength,A));return this.position=isNaN(e)||!isFinite(e)?0:e,!0},h.prototype.isEos=function(){return this.getPosition()>=this.getEndPosition()},h.prototype.readAnyInt=function(A,e){var t=0;if(this.position+A<=this.buffer.byteLength){switch(A){case 1:e?t=this.dataview.getInt8(this.position):t=this.dataview.getUint8(this.position);break;case 2:e?t=this.dataview.getInt16(this.position):t=this.dataview.getUint16(this.position);break;case 3:if(e)throw"No method for reading signed 24 bits values";t=this.dataview.getUint8(this.position)<<16,t|=this.dataview.getUint8(this.position+1)<<8,t|=this.dataview.getUint8(this.position+2);break;case 4:e?t=this.dataview.getInt32(this.position):t=this.dataview.getUint32(this.position);break;case 8:if(e)throw"No method for reading signed 64 bits values";t=this.dataview.getUint32(this.position)<<32,t|=this.dataview.getUint32(this.position+4);break;default:throw"readInt method not implemented for size: "+A}return this.position+=A,t}else throw"Not enough bytes in buffer"},h.prototype.readUint8=function(){return this.readAnyInt(1,!1)},h.prototype.readUint16=function(){return this.readAnyInt(2,!1)},h.prototype.readUint24=function(){return this.readAnyInt(3,!1)},h.prototype.readUint32=function(){return this.readAnyInt(4,!1)},h.prototype.readUint64=function(){return this.readAnyInt(8,!1)},h.prototype.readString=function(A){if(this.position+A<=this.buffer.byteLength){for(var e="",t=0;tthis._byteLength&&(this._byteLength=e);return}for(t<1&&(t=1);e>t;)t*=2;var r=new ArrayBuffer(t),n=new Uint8Array(this._buffer),l=new Uint8Array(r,0,n.length);l.set(n),this.buffer=r,this._byteLength=e}},o.prototype._trimAlloc=function(){if(this._byteLength!=this._buffer.byteLength){var A=new ArrayBuffer(this._byteLength),e=new Uint8Array(A),t=new Uint8Array(this._buffer,0,e.length);e.set(t),this.buffer=A}},o.BIG_ENDIAN=!1,o.LITTLE_ENDIAN=!0,o.prototype._byteLength=0,Object.defineProperty(o.prototype,"byteLength",{get:function(){return this._byteLength-this._byteOffset}}),Object.defineProperty(o.prototype,"buffer",{get:function(){return this._trimAlloc(),this._buffer},set:function(A){this._buffer=A,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._buffer.byteLength}}),Object.defineProperty(o.prototype,"byteOffset",{get:function(){return this._byteOffset},set:function(A){this._byteOffset=A,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._buffer.byteLength}}),Object.defineProperty(o.prototype,"dataView",{get:function(){return this._dataView},set:function(A){this._byteOffset=A.byteOffset,this._buffer=A.buffer,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._byteOffset+A.byteLength}}),o.prototype.seek=function(A){var e=Math.max(0,Math.min(this.byteLength,A));this.position=isNaN(e)||!isFinite(e)?0:e},o.prototype.isEof=function(){return this.position>=this._byteLength},o.prototype.mapUint8Array=function(A){this._realloc(A*1);var e=new Uint8Array(this._buffer,this.byteOffset+this.position,A);return this.position+=A*1,e},o.prototype.readInt32Array=function(A,e){A=A??this.byteLength-this.position/4;var t=new Int32Array(A);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,A*t.BYTES_PER_ELEMENT),o.arrayToNative(t,e??this.endianness),this.position+=t.byteLength,t},o.prototype.readInt16Array=function(A,e){A=A??this.byteLength-this.position/2;var t=new Int16Array(A);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,A*t.BYTES_PER_ELEMENT),o.arrayToNative(t,e??this.endianness),this.position+=t.byteLength,t},o.prototype.readInt8Array=function(A){A=A??this.byteLength-this.position;var e=new Int8Array(A);return o.memcpy(e.buffer,0,this.buffer,this.byteOffset+this.position,A*e.BYTES_PER_ELEMENT),this.position+=e.byteLength,e},o.prototype.readUint32Array=function(A,e){A=A??this.byteLength-this.position/4;var t=new Uint32Array(A);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,A*t.BYTES_PER_ELEMENT),o.arrayToNative(t,e??this.endianness),this.position+=t.byteLength,t},o.prototype.readUint16Array=function(A,e){A=A??this.byteLength-this.position/2;var t=new Uint16Array(A);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,A*t.BYTES_PER_ELEMENT),o.arrayToNative(t,e??this.endianness),this.position+=t.byteLength,t},o.prototype.readUint8Array=function(A){A=A??this.byteLength-this.position;var e=new Uint8Array(A);return o.memcpy(e.buffer,0,this.buffer,this.byteOffset+this.position,A*e.BYTES_PER_ELEMENT),this.position+=e.byteLength,e},o.prototype.readFloat64Array=function(A,e){A=A??this.byteLength-this.position/8;var t=new Float64Array(A);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,A*t.BYTES_PER_ELEMENT),o.arrayToNative(t,e??this.endianness),this.position+=t.byteLength,t},o.prototype.readFloat32Array=function(A,e){A=A??this.byteLength-this.position/4;var t=new Float32Array(A);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,A*t.BYTES_PER_ELEMENT),o.arrayToNative(t,e??this.endianness),this.position+=t.byteLength,t},o.prototype.readInt32=function(A){var e=this._dataView.getInt32(this.position,A??this.endianness);return this.position+=4,e},o.prototype.readInt16=function(A){var e=this._dataView.getInt16(this.position,A??this.endianness);return this.position+=2,e},o.prototype.readInt8=function(){var A=this._dataView.getInt8(this.position);return this.position+=1,A},o.prototype.readUint32=function(A){var e=this._dataView.getUint32(this.position,A??this.endianness);return this.position+=4,e},o.prototype.readUint16=function(A){var e=this._dataView.getUint16(this.position,A??this.endianness);return this.position+=2,e},o.prototype.readUint8=function(){var A=this._dataView.getUint8(this.position);return this.position+=1,A},o.prototype.readFloat32=function(A){var e=this._dataView.getFloat32(this.position,A??this.endianness);return this.position+=4,e},o.prototype.readFloat64=function(A){var e=this._dataView.getFloat64(this.position,A??this.endianness);return this.position+=8,e},o.endianness=new Int8Array(new Int16Array([1]).buffer)[0]>0,o.memcpy=function(A,e,t,r,n){var l=new Uint8Array(A,e,n),d=new Uint8Array(t,r,n);l.set(d)},o.arrayToNative=function(A,e){return e==this.endianness?A:this.flipArrayEndianness(A)},o.nativeToEndian=function(A,e){return this.endianness==e?A:this.flipArrayEndianness(A)},o.flipArrayEndianness=function(A){for(var e=new Uint8Array(A.buffer,A.byteOffset,A.byteLength),t=0;tn;r--,n++){var l=e[n];e[n]=e[r],e[r]=l}return A},o.prototype.failurePosition=0,String.fromCharCodeUint8=function(A){for(var e=[],t=0;t>16),this.writeUint8((A&65280)>>8),this.writeUint8(A&255)},o.prototype.adjustUint32=function(A,e){var t=this.position;this.seek(A),this.writeUint32(e),this.seek(t)},o.prototype.mapInt32Array=function(A,e){this._realloc(A*4);var t=new Int32Array(this._buffer,this.byteOffset+this.position,A);return o.arrayToNative(t,e??this.endianness),this.position+=A*4,t},o.prototype.mapInt16Array=function(A,e){this._realloc(A*2);var t=new Int16Array(this._buffer,this.byteOffset+this.position,A);return o.arrayToNative(t,e??this.endianness),this.position+=A*2,t},o.prototype.mapInt8Array=function(A){this._realloc(A*1);var e=new Int8Array(this._buffer,this.byteOffset+this.position,A);return this.position+=A*1,e},o.prototype.mapUint32Array=function(A,e){this._realloc(A*4);var t=new Uint32Array(this._buffer,this.byteOffset+this.position,A);return o.arrayToNative(t,e??this.endianness),this.position+=A*4,t},o.prototype.mapUint16Array=function(A,e){this._realloc(A*2);var t=new Uint16Array(this._buffer,this.byteOffset+this.position,A);return o.arrayToNative(t,e??this.endianness),this.position+=A*2,t},o.prototype.mapFloat64Array=function(A,e){this._realloc(A*8);var t=new Float64Array(this._buffer,this.byteOffset+this.position,A);return o.arrayToNative(t,e??this.endianness),this.position+=A*8,t},o.prototype.mapFloat32Array=function(A,e){this._realloc(A*4);var t=new Float32Array(this._buffer,this.byteOffset+this.position,A);return o.arrayToNative(t,e??this.endianness),this.position+=A*4,t};var w=function(A){this.buffers=[],this.bufferIndex=-1,A&&(this.insertBuffer(A),this.bufferIndex=0)};w.prototype=new o(new ArrayBuffer,0,o.BIG_ENDIAN),w.prototype.initialized=function(){var A;return this.bufferIndex>-1?!0:this.buffers.length>0?(A=this.buffers[0],A.fileStart===0?(this.buffer=A,this.bufferIndex=0,a.debug("MultiBufferStream","Stream ready for parsing"),!0):(a.warn("MultiBufferStream","The first buffer should have a fileStart of 0"),this.logBufferLevel(),!1)):(a.warn("MultiBufferStream","No buffer to start parsing from"),this.logBufferLevel(),!1)},ArrayBuffer.concat=function(A,e){a.debug("ArrayBuffer","Trying to create a new buffer of size: "+(A.byteLength+e.byteLength));var t=new Uint8Array(A.byteLength+e.byteLength);return t.set(new Uint8Array(A),0),t.set(new Uint8Array(e),A.byteLength),t.buffer},w.prototype.reduceBuffer=function(A,e,t){var r;return r=new Uint8Array(t),r.set(new Uint8Array(A,e,t)),r.buffer.fileStart=A.fileStart+e,r.buffer.usedBytes=0,r.buffer},w.prototype.insertBuffer=function(A){for(var e=!0,t=0;tr.byteLength){this.buffers.splice(t,1),t--;continue}else a.warn("MultiBufferStream","Buffer (fileStart: "+A.fileStart+" - Length: "+A.byteLength+") already appended, ignoring");else A.fileStart+A.byteLength<=r.fileStart||(A=this.reduceBuffer(A,0,r.fileStart-A.fileStart)),a.debug("MultiBufferStream","Appending new buffer (fileStart: "+A.fileStart+" - Length: "+A.byteLength+")"),this.buffers.splice(t,0,A),t===0&&(this.buffer=A);e=!1;break}else if(A.fileStart0)A=this.reduceBuffer(A,n,l);else{e=!1;break}}}e&&(a.debug("MultiBufferStream","Appending new buffer (fileStart: "+A.fileStart+" - Length: "+A.byteLength+")"),this.buffers.push(A),t===0&&(this.buffer=A))},w.prototype.logBufferLevel=function(A){var e,t,r,n,l=[],d,f="";for(r=0,n=0,e=0;e0&&(f+=d.end-1+"]");var v=A?a.info:a.debug;this.buffers.length===0?v("MultiBufferStream","No more buffer in memory"):v("MultiBufferStream",""+this.buffers.length+" stored buffer(s) ("+r+"/"+n+" bytes), continuous ranges: "+f)},w.prototype.cleanBuffers=function(){var A,e;for(A=0;A"+this.buffer.byteLength+")"),!0}else return!1;else return!1},w.prototype.findPosition=function(A,e,t){var r,n=null,l=-1;for(A===!0?r=0:r=this.bufferIndex;r=e?(a.debug("MultiBufferStream","Found position in existing buffer #"+l),l):-1):-1},w.prototype.findEndContiguousBuf=function(A){var e,t,r,n=A!==void 0?A:this.bufferIndex;if(t=this.buffers[n],this.buffers.length>n+1)for(e=n+1;e>3;return b===31&&g.data.length>=2&&(b=32+((g.data[0]&7)<<3)+((g.data[1]&224)>>5)),b}else return null},d.DecoderConfigDescriptor=function(f){d.Descriptor.call(this,e,f)},d.DecoderConfigDescriptor.prototype=new d.Descriptor,d.DecoderConfigDescriptor.prototype.parse=function(f){this.oti=f.readUint8(),this.streamType=f.readUint8(),this.upStream=(this.streamType>>1&1)!==0,this.streamType=this.streamType>>>2,this.bufferSize=f.readUint24(),this.maxBitrate=f.readUint32(),this.avgBitrate=f.readUint32(),this.size-=13,this.parseRemainingDescriptors(f)},d.DecoderSpecificInfo=function(f){d.Descriptor.call(this,t,f)},d.DecoderSpecificInfo.prototype=new d.Descriptor,d.SLConfigDescriptor=function(f){d.Descriptor.call(this,r,f)},d.SLConfigDescriptor.prototype=new d.Descriptor,this};p.MPEG4DescriptorParser=u;var s={ERR_INVALID_DATA:-1,ERR_NOT_ENOUGH_DATA:0,OK:1,BASIC_BOXES:[{type:"mdat",name:"MediaDataBox"},{type:"idat",name:"ItemDataBox"},{type:"free",name:"FreeSpaceBox"},{type:"skip",name:"FreeSpaceBox"},{type:"meco",name:"AdditionalMetadataContainerBox"},{type:"strk",name:"SubTrackBox"}],FULL_BOXES:[{type:"hmhd",name:"HintMediaHeaderBox"},{type:"nmhd",name:"NullMediaHeaderBox"},{type:"iods",name:"ObjectDescriptorBox"},{type:"xml ",name:"XMLBox"},{type:"bxml",name:"BinaryXMLBox"},{type:"ipro",name:"ItemProtectionBox"},{type:"mere",name:"MetaboxRelationBox"}],CONTAINER_BOXES:[[{type:"moov",name:"CompressedMovieBox"},["trak","pssh"]],[{type:"trak",name:"TrackBox"}],[{type:"edts",name:"EditBox"}],[{type:"mdia",name:"MediaBox"}],[{type:"minf",name:"MediaInformationBox"}],[{type:"dinf",name:"DataInformationBox"}],[{type:"stbl",name:"SampleTableBox"},["sgpd","sbgp"]],[{type:"mvex",name:"MovieExtendsBox"},["trex"]],[{type:"moof",name:"CompressedMovieFragmentBox"},["traf"]],[{type:"traf",name:"TrackFragmentBox"},["trun","sgpd","sbgp"]],[{type:"vttc",name:"VTTCueBox"}],[{type:"tref",name:"TrackReferenceBox"}],[{type:"iref",name:"ItemReferenceBox"}],[{type:"mfra",name:"MovieFragmentRandomAccessBox"},["tfra"]],[{type:"meco",name:"AdditionalMetadataContainerBox"}],[{type:"hnti",name:"trackhintinformation"}],[{type:"hinf",name:"hintstatisticsbox"}],[{type:"strk",name:"SubTrackBox"}],[{type:"strd",name:"SubTrackDefinitionBox"}],[{type:"sinf",name:"ProtectionSchemeInfoBox"}],[{type:"rinf",name:"RestrictedSchemeInfoBox"}],[{type:"schi",name:"SchemeInformationBox"}],[{type:"trgr",name:"TrackGroupBox"}],[{type:"udta",name:"UserDataBox"},["kind"]],[{type:"iprp",name:"ItemPropertiesBox"},["ipma"]],[{type:"ipco",name:"ItemPropertyContainerBox"}],[{type:"grpl",name:"GroupsListBox"}],[{type:"j2kH",name:"J2KHeaderInfoBox"}],[{type:"etyp",name:"ExtendedTypeBox"},["tyco"]]],boxCodes:[],fullBoxCodes:[],containerBoxCodes:[],sampleEntryCodes:{},sampleGroupEntryCodes:[],trackGroupTypes:[],UUIDBoxes:{},UUIDs:[],initialize:function(){s.FullBox.prototype=new s.Box,s.ContainerBox.prototype=new s.Box,s.SampleEntry.prototype=new s.Box,s.TrackGroupTypeBox.prototype=new s.FullBox,s.BASIC_BOXES.forEach(function(A){s.createBoxCtor(A.type,A.name)}),s.FULL_BOXES.forEach(function(A){s.createFullBoxCtor(A.type,A.name)}),s.CONTAINER_BOXES.forEach(function(A){s.createContainerBoxCtor(A[0].type,A[0].name,null,A[1])})},Box:function(A,e,t,r){this.type=A,this.box_name=t,this.size=e,this.uuid=r},FullBox:function(A,e,t,r){s.Box.call(this,A,e,t,r),this.flags=0,this.version=0},ContainerBox:function(A,e,t,r){s.Box.call(this,A,e,t,r),this.boxes=[]},SampleEntry:function(A,e,t,r){s.ContainerBox.call(this,A,e),this.hdr_size=t,this.start=r},SampleGroupEntry:function(A){this.grouping_type=A},TrackGroupTypeBox:function(A,e){s.FullBox.call(this,A,e)},createBoxCtor:function(A,e,t){s.boxCodes.push(A),s[A+"Box"]=function(r){s.Box.call(this,A,r,e)},s[A+"Box"].prototype=new s.Box,t&&(s[A+"Box"].prototype.parse=t)},createFullBoxCtor:function(A,e,t){s[A+"Box"]=function(r){s.FullBox.call(this,A,r,e)},s[A+"Box"].prototype=new s.FullBox,s[A+"Box"].prototype.parse=function(r){this.parseFullHeader(r),t&&t.call(this,r)}},addSubBoxArrays:function(A){if(A){this.subBoxNames=A;for(var e=A.length,t=0;tt?(a.error("BoxParser","Box of type '"+g+"' has a size "+v+" greater than its container size "+t),{code:s.ERR_NOT_ENOUGH_DATA,type:g,size:v,hdr_size:l,start:n}):v!==0&&n+v>A.getEndPosition()?(A.seek(n),a.info("BoxParser","Not enough data in stream to parse the entire '"+g+"' box"),{code:s.ERR_NOT_ENOUGH_DATA,type:g,size:v,hdr_size:l,start:n}):e?{code:s.OK,type:g,size:v,hdr_size:l,start:n}:(s[g+"Box"]?r=new s[g+"Box"](v):g!=="uuid"?(a.warn("BoxParser","Unknown box type: '"+g+"'"),r=new s.Box(g,v),r.has_unparsed_data=!0):s.UUIDBoxes[f]?r=new s.UUIDBoxes[f](v):(a.warn("BoxParser","Unknown uuid type: '"+f+"'"),r=new s.Box(g,v),r.uuid=f,r.has_unparsed_data=!0),r.hdr_size=l,r.start=n,r.write===s.Box.prototype.write&&r.type!=="mdat"&&(a.info("BoxParser","'"+b+"' box writing not yet implemented, keeping unparsed data in memory for later write"),r.parseDataAndRewind(A)),r.parse(A),d=A.getPosition()-(r.start+r.size),d<0?(a.warn("BoxParser","Parsing of box '"+b+"' did not read the entire indicated box data size (missing "+-d+" bytes), seeking forward"),A.seek(r.start+r.size)):d>0&&(a.error("BoxParser","Parsing of box '"+b+"' read "+d+" more bytes than the indicated box data size, seeking backwards"),r.size!==0&&A.seek(r.start+r.size)),{code:s.OK,box:r,size:r.size})},s.Box.prototype.parse=function(A){this.type!="mdat"?this.data=A.readUint8Array(this.size-this.hdr_size):this.size===0?A.seek(A.getEndPosition()):A.seek(this.start+this.size)},s.Box.prototype.parseDataAndRewind=function(A){this.data=A.readUint8Array(this.size-this.hdr_size),A.position-=this.size-this.hdr_size},s.FullBox.prototype.parseDataAndRewind=function(A){this.parseFullHeader(A),this.data=A.readUint8Array(this.size-this.hdr_size),this.hdr_size-=4,A.position-=this.size-this.hdr_size},s.FullBox.prototype.parseFullHeader=function(A){this.version=A.readUint8(),this.flags=A.readUint24(),this.hdr_size+=4},s.FullBox.prototype.parse=function(A){this.parseFullHeader(A),this.data=A.readUint8Array(this.size-this.hdr_size)},s.ContainerBox.prototype.parse=function(A){for(var e,t;A.getPosition()>10&31,e[1]=this.language>>5&31,e[2]=this.language&31,this.languageString=String.fromCharCode(e[0]+96,e[1]+96,e[2]+96)},s.SAMPLE_ENTRY_TYPE_VISUAL="Visual",s.SAMPLE_ENTRY_TYPE_AUDIO="Audio",s.SAMPLE_ENTRY_TYPE_HINT="Hint",s.SAMPLE_ENTRY_TYPE_METADATA="Metadata",s.SAMPLE_ENTRY_TYPE_SUBTITLE="Subtitle",s.SAMPLE_ENTRY_TYPE_SYSTEM="System",s.SAMPLE_ENTRY_TYPE_TEXT="Text",s.SampleEntry.prototype.parseHeader=function(A){A.readUint8Array(6),this.data_reference_index=A.readUint16(),this.hdr_size+=8},s.SampleEntry.prototype.parse=function(A){this.parseHeader(A),this.data=A.readUint8Array(this.size-this.hdr_size)},s.SampleEntry.prototype.parseDataAndRewind=function(A){this.parseHeader(A),this.data=A.readUint8Array(this.size-this.hdr_size),this.hdr_size-=8,A.position-=this.size-this.hdr_size},s.SampleEntry.prototype.parseFooter=function(A){s.ContainerBox.prototype.parse.call(this,A)},s.createMediaSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_HINT),s.createMediaSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_METADATA),s.createMediaSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_SUBTITLE),s.createMediaSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_SYSTEM),s.createMediaSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_TEXT),s.createMediaSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,function(A){var e;this.parseHeader(A),A.readUint16(),A.readUint16(),A.readUint32Array(3),this.width=A.readUint16(),this.height=A.readUint16(),this.horizresolution=A.readUint32(),this.vertresolution=A.readUint32(),A.readUint32(),this.frame_count=A.readUint16(),e=Math.min(31,A.readUint8()),this.compressorname=A.readString(e),e<31&&A.readString(31-e),this.depth=A.readUint16(),A.readUint16(),this.parseFooter(A)}),s.createMediaSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,function(A){this.parseHeader(A),A.readUint32Array(2),this.channel_count=A.readUint16(),this.samplesize=A.readUint16(),A.readUint16(),A.readUint16(),this.samplerate=A.readUint32()/65536,this.parseFooter(A)}),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"avc1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"avc2"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"avc3"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"avc4"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"av01"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"dav1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"hvc1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"hev1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"hvt1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"lhe1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"dvh1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"dvhe"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"vvc1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"vvi1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"vvs1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"vvcN"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"vp08"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"vp09"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"avs3"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"j2ki"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"mjp2"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"mjpg"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"uncv"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"mp4a"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"ac-3"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"ac-4"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"ec-3"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"Opus"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"mha1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"mha2"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"mhm1"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"mhm2"),s.createSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"fLaC"),s.createEncryptedSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_VISUAL,"encv"),s.createEncryptedSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_AUDIO,"enca"),s.createEncryptedSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_SUBTITLE,"encu"),s.createEncryptedSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_SYSTEM,"encs"),s.createEncryptedSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_TEXT,"enct"),s.createEncryptedSampleEntryCtor(s.SAMPLE_ENTRY_TYPE_METADATA,"encm"),s.createBoxCtor("a1lx","AV1LayeredImageIndexingProperty",function(A){var e=A.readUint8()&1,t=((e&1)+1)*16;this.layer_size=[];for(var r=0;r<3;r++)t==16?this.layer_size[r]=A.readUint16():this.layer_size[r]=A.readUint32()}),s.createBoxCtor("a1op","OperatingPointSelectorProperty",function(A){this.op_index=A.readUint8()}),s.createFullBoxCtor("auxC","AuxiliaryTypeProperty",function(A){this.aux_type=A.readCString();var e=this.size-this.hdr_size-(this.aux_type.length+1);this.aux_subtype=A.readUint8Array(e)}),s.createBoxCtor("av1C","AV1CodecConfigurationBox",function(A){var e=A.readUint8();if((e>>7&1)!==1){a.error("av1C marker problem");return}if(this.version=e&127,this.version!==1){a.error("av1C version "+this.version+" not supported");return}if(e=A.readUint8(),this.seq_profile=e>>5&7,this.seq_level_idx_0=e&31,e=A.readUint8(),this.seq_tier_0=e>>7&1,this.high_bitdepth=e>>6&1,this.twelve_bit=e>>5&1,this.monochrome=e>>4&1,this.chroma_subsampling_x=e>>3&1,this.chroma_subsampling_y=e>>2&1,this.chroma_sample_position=e&3,e=A.readUint8(),this.reserved_1=e>>5&7,this.reserved_1!==0){a.error("av1C reserved_1 parsing problem");return}if(this.initial_presentation_delay_present=e>>4&1,this.initial_presentation_delay_present===1)this.initial_presentation_delay_minus_one=e&15;else if(this.reserved_2=e&15,this.reserved_2!==0){a.error("av1C reserved_2 parsing problem");return}var t=this.size-this.hdr_size-4;this.configOBUs=A.readUint8Array(t)});function T(A){var e="";e+="",e+="";for(var t=0;t",e+="",e+=""}return e+="
lengthnalu_data
"+r.length+"",e+=r.nalu.reduce(function(n,l){return n+l.toString(16).padStart(2,"0")},"0x"),e+="
",e}s.createBoxCtor("avcC","AVCConfigurationBox",function(A){var e,t;for(this.configurationVersion=A.readUint8(),this.AVCProfileIndication=A.readUint8(),this.profile_compatibility=A.readUint8(),this.AVCLevelIndication=A.readUint8(),this.lengthSizeMinusOne=A.readUint8()&3,this.nb_SPS_nalus=A.readUint8()&31,t=this.size-this.hdr_size-6,this.SPS=[],this.SPS.toString=function(){return T(this)},e=0;e0&&(this.ext=A.readUint8Array(t))}),s.createBoxCtor("btrt","BitRateBox",function(A){this.bufferSizeDB=A.readUint32(),this.maxBitrate=A.readUint32(),this.avgBitrate=A.readUint32()}),s.createFullBoxCtor("ccst","CodingConstraintsBox",function(A){var e=A.readUint8();this.all_ref_pics_intra=(e&128)==128,this.intra_pred_used=(e&64)==64,this.max_ref_per_pic=(e&63)>>2,A.readUint24()}),s.createBoxCtor("cdef","ComponentDefinitionBox",function(A){var e;for(this.channel_count=A.readUint16(),this.channel_indexes=[],this.channel_types=[],this.channel_associations=[],e=0;e=32768&&this.component_type_urls.push(A.readCString())}}),s.createFullBoxCtor("co64","ChunkLargeOffsetBox",function(A){var e,t;if(e=A.readUint32(),this.chunk_offsets=[],this.version===0)for(t=0;t>7}else this.colour_type==="rICC"?this.ICC_profile=A.readUint8Array(this.size-4):this.colour_type==="prof"&&(this.ICC_profile=A.readUint8Array(this.size-4))}),s.createFullBoxCtor("cprt","CopyrightBox",function(A){this.parseLanguage(A),this.notice=A.readCString()}),s.createFullBoxCtor("cslg","CompositionToDecodeBox",function(A){this.version===0&&(this.compositionToDTSShift=A.readInt32(),this.leastDecodeToDisplayDelta=A.readInt32(),this.greatestDecodeToDisplayDelta=A.readInt32(),this.compositionStartTime=A.readInt32(),this.compositionEndTime=A.readInt32())}),s.createFullBoxCtor("ctts","CompositionOffsetBox",function(A){var e,t;if(e=A.readUint32(),this.sample_counts=[],this.sample_offsets=[],this.version===0)for(t=0;t>6,this.bsid=e>>1&31,this.bsmod=(e&1)<<2|t>>6&3,this.acmod=t>>3&7,this.lfeon=t>>2&1,this.bit_rate_code=t&3|r>>5&7}),s.createBoxCtor("dec3","EC3SpecificBox",function(A){var e=A.readUint16();this.data_rate=e>>3,this.num_ind_sub=e&7,this.ind_subs=[];for(var t=0;t>6,r.bsid=n>>1&31,r.bsmod=(n&1)<<4|l>>4&15,r.acmod=l>>1&7,r.lfeon=l&1,r.num_dep_sub=d>>1&15,r.num_dep_sub>0&&(r.chan_loc=(d&1)<<8|A.readUint8())}}),s.createFullBoxCtor("dfLa","FLACSpecificBox",function(A){var e=127,t=128,r=[],n=["STREAMINFO","PADDING","APPLICATION","SEEKTABLE","VORBIS_COMMENT","CUESHEET","PICTURE","RESERVED"];do{var l=A.readUint8(),d=Math.min(l&e,n.length-1);if(d?A.readUint8Array(A.readUint24()):(A.readUint8Array(13),this.samplerate=A.readUint32()>>12,A.readUint8Array(20)),r.push(n[d]),l&t)break}while(!0);this.numMetadataBlocks=r.length+" ("+r.join(", ")+")"}),s.createBoxCtor("dimm","hintimmediateBytesSent",function(A){this.bytessent=A.readUint64()}),s.createBoxCtor("dmax","hintlongestpacket",function(A){this.time=A.readUint32()}),s.createBoxCtor("dmed","hintmediaBytesSent",function(A){this.bytessent=A.readUint64()}),s.createBoxCtor("dOps","OpusSpecificBox",function(A){if(this.Version=A.readUint8(),this.OutputChannelCount=A.readUint8(),this.PreSkip=A.readUint16(),this.InputSampleRate=A.readUint32(),this.OutputGain=A.readInt16(),this.ChannelMappingFamily=A.readUint8(),this.ChannelMappingFamily!==0){this.StreamCount=A.readUint8(),this.CoupledCount=A.readUint8(),this.ChannelMapping=[];for(var e=0;e=4;)this.compatible_brands[t]=A.readString(4),e-=4,t++}),s.createFullBoxCtor("hdlr","HandlerBox",function(A){this.version===0&&(A.readUint32(),this.handler=A.readString(4),A.readUint32Array(3),this.name=A.readString(this.size-this.hdr_size-20),this.name[this.name.length-1]==="\0"&&(this.name=this.name.slice(0,-1)))}),s.createBoxCtor("hvcC","HEVCConfigurationBox",function(A){var e,t,r,n;this.configurationVersion=A.readUint8(),n=A.readUint8(),this.general_profile_space=n>>6,this.general_tier_flag=(n&32)>>5,this.general_profile_idc=n&31,this.general_profile_compatibility=A.readUint32(),this.general_constraint_indicator=A.readUint8Array(6),this.general_level_idc=A.readUint8(),this.min_spatial_segmentation_idc=A.readUint16()&4095,this.parallelismType=A.readUint8()&3,this.chroma_format_idc=A.readUint8()&3,this.bit_depth_luma_minus8=A.readUint8()&7,this.bit_depth_chroma_minus8=A.readUint8()&7,this.avgFrameRate=A.readUint16(),n=A.readUint8(),this.constantFrameRate=n>>6,this.numTemporalLayers=(n&13)>>3,this.temporalIdNested=(n&4)>>2,this.lengthSizeMinusOne=n&3,this.nalu_arrays=[],this.nalu_arrays.toString=function(){var g="";g+="",g+="";for(var b=0;b",g+="",g+="";for(var L=0;L"),g+=""}}return g+="
completenessnalu_typenalu_data
"+k.completeness+""+k.nalu_type+"",g+=I.data.reduce(function(N,Y){return N+Y.toString(16).padStart(2,"0")},"0x"),g+="
",g};var l=A.readUint8();for(e=0;e>7,d.nalu_type=n&63;var f=A.readUint16();for(t=0;t>4&15,this.length_size=e&15,e=A.readUint8(),this.base_offset_size=e>>4&15,this.version===1||this.version===2?this.index_size=e&15:this.index_size=0,this.items=[];var t=0;if(this.version<2)t=A.readUint16();else if(this.version===2)t=A.readUint32();else throw"version of iloc box not supported";for(var r=0;r>7,this.axis=e&1}),s.createFullBoxCtor("infe","ItemInfoEntry",function(A){if((this.version===0||this.version===1)&&(this.item_ID=A.readUint16(),this.item_protection_index=A.readUint16(),this.item_name=A.readCString(),this.content_type=A.readCString(),this.content_encoding=A.readCString()),this.version===1){this.extension_type=A.readString(4),a.warn("BoxParser","Cannot parse extension type"),A.seek(this.start+this.size);return}this.version>=2&&(this.version===2?this.item_ID=A.readUint16():this.version===3&&(this.item_ID=A.readUint32()),this.item_protection_index=A.readUint16(),this.item_type=A.readString(4),this.item_name=A.readCString(),this.item_type==="mime"?(this.content_type=A.readCString(),this.content_encoding=A.readCString()):this.item_type==="uri "&&(this.item_uri_type=A.readCString()))}),s.createFullBoxCtor("ipma","ItemPropertyAssociationBox",function(A){var e,t;for(entry_count=A.readUint32(),this.associations=[],e=0;e>7===1,this.flags&1?d.property_index=(l&127)<<8|A.readUint8():d.property_index=l&127}}}),s.createFullBoxCtor("iref","ItemReferenceBox",function(A){var e,t;for(this.references=[];A.getPosition()>7,r.assignment_type=n&127,r.assignment_type){case 0:r.grouping_type=A.readString(4);break;case 1:r.grouping_type=A.readString(4),r.grouping_type_parameter=A.readUint32();break;case 2:break;case 3:break;case 4:r.sub_track_id=A.readUint32();break;default:a.warn("BoxParser","Unknown leva assignement type")}}}),s.createBoxCtor("lhvC","LHEVCConfigurationBox",function(A){var e,t,r;this.configurationVersion=A.readUint8(),this.min_spatial_segmentation_idc=A.readUint16()&4095,this.parallelismType=A.readUint8()&3,r=A.readUint8(),this.numTemporalLayers=(r&13)>>3,this.temporalIdNested=(r&4)>>2,this.lengthSizeMinusOne=r&3,this.nalu_arrays=[],this.nalu_arrays.toString=function(){var g="";g+="",g+="";for(var b=0;b",g+="",g+="";for(var L=0;L"),g+=""}}return g+="
completenessnalu_typenalu_data
"+k.completeness+""+k.nalu_type+"",g+=I.data.reduce(function(N,Y){return N+Y.toString(16).padStart(2,"0")},"0x"),g+="
",g};var n=A.readUint8();for(e=0;e>7,l.nalu_type=r&63;var d=A.readUint16();for(t=0;t>8,A.readUint16(),A.readUint32Array(2),this.matrix=A.readUint32Array(9),A.readUint32Array(6),this.next_track_id=A.readUint32()}),s.createBoxCtor("npck","hintPacketsSent",function(A){this.packetssent=A.readUint32()}),s.createBoxCtor("nump","hintPacketsSent",function(A){this.packetssent=A.readUint64()}),s.createFullBoxCtor("padb","PaddingBitsBox",function(A){var e=A.readUint32();this.padbits=[];for(var t=0;t0){var e=A.readUint32();this.kid=[];for(var t=0;t0&&(this.data=A.readUint8Array(r))}),s.createFullBoxCtor("clef","TrackCleanApertureDimensionsBox",function(A){this.width=A.readUint32(),this.height=A.readUint32()}),s.createFullBoxCtor("enof","TrackEncodedPixelsDimensionsBox",function(A){this.width=A.readUint32(),this.height=A.readUint32()}),s.createFullBoxCtor("prof","TrackProductionApertureDimensionsBox",function(A){this.width=A.readUint32(),this.height=A.readUint32()}),s.createContainerBoxCtor("tapt","TrackApertureModeDimensionsBox",null,["clef","prof","enof"]),s.createBoxCtor("rtp ","rtpmoviehintinformation",function(A){this.descriptionformat=A.readString(4),this.sdptext=A.readString(this.size-this.hdr_size-4)}),s.createFullBoxCtor("saio","SampleAuxiliaryInformationOffsetsBox",function(A){this.flags&1&&(this.aux_info_type=A.readString(4),this.aux_info_type_parameter=A.readUint32());var e=A.readUint32();this.offset=[];for(var t=0;t>7,this.avgRateFlag=e>>6&1,this.durationFlag&&(this.duration=A.readUint32()),this.avgRateFlag&&(this.accurateStatisticsFlag=A.readUint8(),this.avgBitRate=A.readUint16(),this.avgFrameRate=A.readUint16()),this.dependency=[];for(var t=A.readUint8(),r=0;r>7,this.num_leading_samples=e&127}),s.createSampleGroupCtor("rash",function(A){if(this.operation_point_count=A.readUint16(),this.description_length!==2+(this.operation_point_count===1?2:this.operation_point_count*6)+9)a.warn("BoxParser","Mismatch in "+this.grouping_type+" sample group length"),this.data=A.readUint8Array(this.description_length-2);else{if(this.operation_point_count===1)this.target_rate_share=A.readUint16();else{this.target_rate_share=[],this.available_bitrate=[];for(var e=0;e>4,this.skip_byte_block=e&15,this.isProtected=A.readUint8(),this.Per_Sample_IV_Size=A.readUint8(),this.KID=s.parseHex16(A),this.constant_IV_size=0,this.constant_IV=0,this.isProtected===1&&this.Per_Sample_IV_Size===0&&(this.constant_IV_size=A.readUint8(),this.constant_IV=A.readUint8Array(this.constant_IV_size))}),s.createSampleGroupCtor("stsa",function(A){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")}),s.createSampleGroupCtor("sync",function(A){var e=A.readUint8();this.NAL_unit_type=e&63}),s.createSampleGroupCtor("tele",function(A){var e=A.readUint8();this.level_independently_decodable=e>>7}),s.createSampleGroupCtor("tsas",function(A){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")}),s.createSampleGroupCtor("tscl",function(A){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")}),s.createSampleGroupCtor("vipr",function(A){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")}),s.createFullBoxCtor("sbgp","SampleToGroupBox",function(A){this.grouping_type=A.readString(4),this.version===1?this.grouping_type_parameter=A.readUint32():this.grouping_type_parameter=0,this.entries=[];for(var e=A.readUint32(),t=0;t>6,this.sample_depends_on[r]=e>>4&3,this.sample_is_depended_on[r]=e>>2&3,this.sample_has_redundancy[r]=e&3}),s.createFullBoxCtor("senc","SampleEncryptionBox"),s.createFullBoxCtor("sgpd","SampleGroupDescriptionBox",function(A){this.grouping_type=A.readString(4),a.debug("BoxParser","Found Sample Groups of type "+this.grouping_type),this.version===1?this.default_length=A.readUint32():this.default_length=0,this.version>=2&&(this.default_group_description_index=A.readUint32()),this.entries=[];for(var e=A.readUint32(),t=0;t>31&1,r.referenced_size=n&2147483647,r.subsegment_duration=A.readUint32(),n=A.readUint32(),r.starts_with_SAP=n>>31&1,r.SAP_type=n>>28&7,r.SAP_delta_time=n&268435455}}),s.SingleItemTypeReferenceBox=function(A,e,t,r){s.Box.call(this,A,e),this.hdr_size=t,this.start=r},s.SingleItemTypeReferenceBox.prototype=new s.Box,s.SingleItemTypeReferenceBox.prototype.parse=function(A){this.from_item_ID=A.readUint16();var e=A.readUint16();this.references=[];for(var t=0;t>4&15,this.sample_sizes[e+1]=r&15}else if(this.field_size===8)for(e=0;e0)for(t=0;t>4&15,this.default_skip_byte_block=e&15}this.default_isProtected=A.readUint8(),this.default_Per_Sample_IV_Size=A.readUint8(),this.default_KID=s.parseHex16(A),this.default_isProtected===1&&this.default_Per_Sample_IV_Size===0&&(this.default_constant_IV_size=A.readUint8(),this.default_constant_IV=A.readUint8Array(this.default_constant_IV_size))}),s.createFullBoxCtor("tfdt","TrackFragmentBaseMediaDecodeTimeBox",function(A){this.version==1?this.baseMediaDecodeTime=A.readUint64():this.baseMediaDecodeTime=A.readUint32()}),s.createFullBoxCtor("tfhd","TrackFragmentHeaderBox",function(A){var e=0;this.track_id=A.readUint32(),this.size-this.hdr_size>e&&this.flags&s.TFHD_FLAG_BASE_DATA_OFFSET?(this.base_data_offset=A.readUint64(),e+=8):this.base_data_offset=0,this.size-this.hdr_size>e&&this.flags&s.TFHD_FLAG_SAMPLE_DESC?(this.default_sample_description_index=A.readUint32(),e+=4):this.default_sample_description_index=0,this.size-this.hdr_size>e&&this.flags&s.TFHD_FLAG_SAMPLE_DUR?(this.default_sample_duration=A.readUint32(),e+=4):this.default_sample_duration=0,this.size-this.hdr_size>e&&this.flags&s.TFHD_FLAG_SAMPLE_SIZE?(this.default_sample_size=A.readUint32(),e+=4):this.default_sample_size=0,this.size-this.hdr_size>e&&this.flags&s.TFHD_FLAG_SAMPLE_FLAGS?(this.default_sample_flags=A.readUint32(),e+=4):this.default_sample_flags=0}),s.createFullBoxCtor("tfra","TrackFragmentRandomAccessBox",function(A){this.track_ID=A.readUint32(),A.readUint24();var e=A.readUint8();this.length_size_of_traf_num=e>>4&3,this.length_size_of_trun_num=e>>2&3,this.length_size_of_sample_num=e&3,this.entries=[];for(var t=A.readUint32(),r=0;r>8,A.readUint16(),this.matrix=A.readInt32Array(9),this.width=A.readUint32(),this.height=A.readUint32()}),s.createBoxCtor("tmax","hintmaxrelativetime",function(A){this.time=A.readUint32()}),s.createBoxCtor("tmin","hintminrelativetime",function(A){this.time=A.readUint32()}),s.createBoxCtor("totl","hintBytesSent",function(A){this.bytessent=A.readUint32()}),s.createBoxCtor("tpay","hintBytesSent",function(A){this.bytessent=A.readUint32()}),s.createBoxCtor("tpyl","hintBytesSent",function(A){this.bytessent=A.readUint64()}),s.TrackGroupTypeBox.prototype.parse=function(A){this.parseFullHeader(A),this.track_group_id=A.readUint32()},s.createTrackGroupCtor("msrc"),s.TrackReferenceTypeBox=function(A,e,t,r){s.Box.call(this,A,e),this.hdr_size=t,this.start=r},s.TrackReferenceTypeBox.prototype=new s.Box,s.TrackReferenceTypeBox.prototype.parse=function(A){this.track_ids=A.readUint32Array((this.size-this.hdr_size)/4)},s.trefBox.prototype.parse=function(A){for(var e,t;A.getPosition()e&&this.flags&s.TRUN_FLAGS_DATA_OFFSET?(this.data_offset=A.readInt32(),e+=4):this.data_offset=0,this.size-this.hdr_size>e&&this.flags&s.TRUN_FLAGS_FIRST_FLAG?(this.first_sample_flags=A.readUint32(),e+=4):this.first_sample_flags=0,this.sample_duration=[],this.sample_size=[],this.sample_flags=[],this.sample_composition_time_offset=[],this.size-this.hdr_size>e)for(var t=0;t>7&1,this.block_pad_lsb=t>>6&1,this.block_little_endian=t>>5&1,this.block_reversed=t>>4&1,this.pad_unknown=t>>3&1,this.pixel_size=A.readUint32(),this.row_align_size=A.readUint32(),this.tile_align_size=A.readUint32(),this.num_tile_cols_minus_one=A.readUint32(),this.num_tile_rows_minus_one=A.readUint32()}}}),s.createFullBoxCtor("url ","DataEntryUrlBox",function(A){this.flags!==1&&(this.location=A.readCString())}),s.createFullBoxCtor("urn ","DataEntryUrnBox",function(A){this.name=A.readCString(),this.size-this.hdr_size-this.name.length-1>0&&(this.location=A.readCString())}),s.createUUIDBox("a5d40b30e81411ddba2f0800200c9a66","LiveServerManifestBox",!0,!1,function(A){this.LiveServerManifest=A.readString(this.size-this.hdr_size).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}),s.createUUIDBox("d08a4f1810f34a82b6c832d8aba183d3","PiffProtectionSystemSpecificHeaderBox",!0,!1,function(A){this.system_id=s.parseHex16(A);var e=A.readUint32();e>0&&(this.data=A.readUint8Array(e))}),s.createUUIDBox("a2394f525a9b4f14a2446c427c648df4","PiffSampleEncryptionBox",!0,!1),s.createUUIDBox("8974dbce7be74c5184f97148f9882554","PiffTrackEncryptionBox",!0,!1,function(A){this.default_AlgorithmID=A.readUint24(),this.default_IV_size=A.readUint8(),this.default_KID=s.parseHex16(A)}),s.createUUIDBox("d4807ef2ca3946958e5426cb9e46a79f","TfrfBox",!0,!1,function(A){this.fragment_count=A.readUint8(),this.entries=[];for(var e=0;e>4,this.chromaSubsampling=e>>1&7,this.videoFullRangeFlag=e&1,this.colourPrimaries=A.readUint8(),this.transferCharacteristics=A.readUint8(),this.matrixCoefficients=A.readUint8(),this.codecIntializationDataSize=A.readUint16(),this.codecIntializationData=A.readUint8Array(this.codecIntializationDataSize)):(this.profile=A.readUint8(),this.level=A.readUint8(),e=A.readUint8(),this.bitDepth=e>>4&15,this.colorSpace=e&15,e=A.readUint8(),this.chromaSubsampling=e>>4&15,this.transferFunction=e>>1&7,this.videoFullRangeFlag=e&1,this.codecIntializationDataSize=A.readUint16(),this.codecIntializationData=A.readUint8Array(this.codecIntializationDataSize))}),s.createBoxCtor("vttC","WebVTTConfigurationBox",function(A){this.text=A.readString(this.size-this.hdr_size)}),s.createFullBoxCtor("vvcC","VvcConfigurationBox",function(A){var e,t,r={held_bits:void 0,num_held_bits:0,stream_read_1_bytes:function(I){this.held_bits=I.readUint8(),this.num_held_bits=8},stream_read_2_bytes:function(I){this.held_bits=I.readUint16(),this.num_held_bits=16},extract_bits:function(I){var N=this.held_bits>>this.num_held_bits-I&(1<1){for(r.stream_read_1_bytes(A),this.ptl_sublayer_present_mask=0,t=this.num_sublayers-2;t>=0;--t){var d=r.extract_bits(1);this.ptl_sublayer_present_mask|=d<1;++t)r.extract_bits(1);for(this.sublayer_level_idc=[],t=this.num_sublayers-2;t>=0;--t)this.ptl_sublayer_present_mask&1<"u"||e===null?e=2:e;t.length>=1;e+=s.decimalToHex(r,0),e+=".",this.hvcC.general_tier_flag===0?e+="L":e+="H",e+=this.hvcC.general_level_idc;var n=!1,l="";for(A=5;A>=0;A--)(this.hvcC.general_constraint_indicator[A]||n)&&(l="."+s.decimalToHex(this.hvcC.general_constraint_indicator[A],0)+l,n=!0);e+=l}return e},s.vvc1SampleEntry.prototype.getCodec=s.vvi1SampleEntry.prototype.getCodec=function(){var A,e=s.SampleEntry.prototype.getCodec.call(this);if(this.vvcC){e+="."+this.vvcC.general_profile_idc,this.vvcC.general_tier_flag?e+=".H":e+=".L",e+=this.vvcC.general_level_idc;var t="";if(this.vvcC.general_constraint_info){var r=[],n=0;n|=this.vvcC.ptl_frame_only_constraint<<7,n|=this.vvcC.ptl_multilayer_enabled<<6;var l;for(A=0;A>2&63,r.push(n),n&&(l=A),n=this.vvcC.general_constraint_info[A]>>2&3;if(l===void 0)t=".CA";else{t=".C";var d="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",f=0,v=0;for(A=0;A<=l;++A)for(f=f<<8|r[A],v+=8;v>=5;){var g=f>>v-5&31;t+=d[g],v-=5,f&=(1<U&&(this.size+=8),this.type==="uuid"&&(this.size+=16),a.debug("BoxWriter","Writing box "+this.type+" of size: "+this.size+" at position "+A.getPosition()+(e||"")),this.size>U?A.writeUint32(1):(this.sizePosition=A.getPosition(),A.writeUint32(this.size)),A.writeString(this.type,null,4),this.type==="uuid"&&A.writeUint8Array(this.uuid),this.size>U&&A.writeUint64(this.size)},s.FullBox.prototype.writeHeader=function(A){this.size+=4,s.Box.prototype.writeHeader.call(this,A," v="+this.version+" f="+this.flags),A.writeUint8(this.version),A.writeUint24(this.flags)},s.Box.prototype.write=function(A){this.type==="mdat"?this.data&&(this.size=this.data.length,this.writeHeader(A),A.writeUint8Array(this.data)):(this.size=this.data?this.data.length:0,this.writeHeader(A),this.data&&A.writeUint8Array(this.data))},s.ContainerBox.prototype.write=function(A){this.size=0,this.writeHeader(A);for(var e=0;e=2&&A.writeUint32(this.default_sample_description_index),A.writeUint32(this.entries.length),e=0;e0)for(e=0;e+1e?1:0,this.flags=0,this.size=4,this.version===1&&(this.size+=4),this.writeHeader(A),this.version===1?A.writeUint64(this.baseMediaDecodeTime):A.writeUint32(this.baseMediaDecodeTime)},s.tfhdBox.prototype.write=function(A){this.version=0,this.size=4,this.flags&s.TFHD_FLAG_BASE_DATA_OFFSET&&(this.size+=8),this.flags&s.TFHD_FLAG_SAMPLE_DESC&&(this.size+=4),this.flags&s.TFHD_FLAG_SAMPLE_DUR&&(this.size+=4),this.flags&s.TFHD_FLAG_SAMPLE_SIZE&&(this.size+=4),this.flags&s.TFHD_FLAG_SAMPLE_FLAGS&&(this.size+=4),this.writeHeader(A),A.writeUint32(this.track_id),this.flags&s.TFHD_FLAG_BASE_DATA_OFFSET&&A.writeUint64(this.base_data_offset),this.flags&s.TFHD_FLAG_SAMPLE_DESC&&A.writeUint32(this.default_sample_description_index),this.flags&s.TFHD_FLAG_SAMPLE_DUR&&A.writeUint32(this.default_sample_duration),this.flags&s.TFHD_FLAG_SAMPLE_SIZE&&A.writeUint32(this.default_sample_size),this.flags&s.TFHD_FLAG_SAMPLE_FLAGS&&A.writeUint32(this.default_sample_flags)},s.tkhdBox.prototype.write=function(A){this.version=0,this.size=4*18+2*4,this.writeHeader(A),A.writeUint32(this.creation_time),A.writeUint32(this.modification_time),A.writeUint32(this.track_id),A.writeUint32(0),A.writeUint32(this.duration),A.writeUint32(0),A.writeUint32(0),A.writeInt16(this.layer),A.writeInt16(this.alternate_group),A.writeInt16(this.volume<<8),A.writeUint16(0),A.writeInt32Array(this.matrix),A.writeUint32(this.width),A.writeUint32(this.height)},s.trexBox.prototype.write=function(A){this.version=0,this.flags=0,this.size=4*5,this.writeHeader(A),A.writeUint32(this.track_id),A.writeUint32(this.default_sample_description_index),A.writeUint32(this.default_sample_duration),A.writeUint32(this.default_sample_size),A.writeUint32(this.default_sample_flags)},s.trunBox.prototype.write=function(A){this.version=0,this.size=4,this.flags&s.TRUN_FLAGS_DATA_OFFSET&&(this.size+=4),this.flags&s.TRUN_FLAGS_FIRST_FLAG&&(this.size+=4),this.flags&s.TRUN_FLAGS_DURATION&&(this.size+=4*this.sample_duration.length),this.flags&s.TRUN_FLAGS_SIZE&&(this.size+=4*this.sample_size.length),this.flags&s.TRUN_FLAGS_FLAGS&&(this.size+=4*this.sample_flags.length),this.flags&s.TRUN_FLAGS_CTS_OFFSET&&(this.size+=4*this.sample_composition_time_offset.length),this.writeHeader(A),A.writeUint32(this.sample_count),this.flags&s.TRUN_FLAGS_DATA_OFFSET&&(this.data_offset_position=A.getPosition(),A.writeInt32(this.data_offset)),this.flags&s.TRUN_FLAGS_FIRST_FLAG&&A.writeUint32(this.first_sample_flags);for(var e=0;e-1)){if(A[t]instanceof s.Box||e[t]instanceof s.Box)continue;if(typeof A[t]>"u"||typeof e[t]>"u")continue;if(typeof A[t]=="function"||typeof e[t]=="function")continue;if(A.subBoxNames&&A.subBoxNames.indexOf(t.slice(0,4))>-1||e.subBoxNames&&e.subBoxNames.indexOf(t.slice(0,4))>-1)continue;if(t==="data"||t==="start"||t==="size"||t==="creation_time"||t==="modification_time")continue;if(s.DIFF_PRIMITIVE_ARRAY_PROP_NAMES.indexOf(t)>-1)continue;if(A[t]!==e[t])return!1}return!0},s.boxEqual=function(A,e){if(!s.boxEqualFields(A,e))return!1;for(var t=0;t=b?g:new Array(b-g.length+1).join(k)+g}function n(g){var b=Math.floor(g/3600),k=Math.floor((g-b*3600)/60),L=Math.floor(g-b*3600-k*60),I=Math.floor((g-b*3600-k*60-L)*1e3);return""+r(b,2)+":"+r(k,2)+":"+r(L,2)+"."+r(I,3)}for(var l=this.parseSample(t),d="",f=0;f "+n(e)+`\r `,d+=v.payl.text}return d};var O=function(){};O.prototype.parseSample=function(A){var e={},t;e.resources=[];var r=new h(A.data.buffer);if(!A.subsamples||A.subsamples.length===0)e.documentString=r.readString(A.data.length);else if(e.documentString=r.readString(A.subsamples[0].size),A.subsamples.length>1)for(t=1;t-1&&this.fragmentedTracks.splice(e,1)},c.prototype.setExtractionOptions=function(A,e,t){var r=this.getTrackById(A);if(r){var n={};this.extractedTracks.push(n),n.id=A,n.user=e,n.trak=r,r.nextSample=0,n.nb_samples=1e3,n.samples=[],t&&t.nbSamples&&(n.nb_samples=t.nbSamples)}},c.prototype.unsetExtractionOptions=function(A){for(var e=-1,t=0;t-1&&this.extractedTracks.splice(e,1)},c.prototype.parse=function(){var A,e,t=!1;if(!(this.restoreParsePosition&&!this.restoreParsePosition()))for(;;)if(this.hasIncompleteMdat&&this.hasIncompleteMdat()){if(this.processIncompleteMdat())continue;return}else if(this.saveParsePosition&&this.saveParsePosition(),A=s.parseOneBox(this.stream,t),A.code===s.ERR_NOT_ENOUGH_DATA)if(this.processIncompleteBox){if(this.processIncompleteBox(A))continue;return}else return;else{var r;switch(e=A.box,r=e.type!=="uuid"?e.type:e.uuid,this.boxes.push(e),r){case"mdat":this.mdats.push(e);break;case"moof":this.moofs.push(e);break;case"moov":this.moovStartFound=!0,this.mdats.length===0&&(this.isProgressive=!0);default:this[r]!==void 0&&a.warn("ISOFile","Duplicate Box of type: "+r+", overriding previous occurrence"),this[r]=e;break}this.updateUsedBytes&&this.updateUsedBytes(e,A)}},c.prototype.checkBuffer=function(A){if(A==null)throw"Buffer must be defined and non empty";if(A.fileStart===void 0)throw"Buffer must have a fileStart property";return A.byteLength===0?(a.warn("ISOFile","Ignoring empty buffer (fileStart: "+A.fileStart+")"),this.stream.logBufferLevel(),!1):(a.info("ISOFile","Processing buffer (fileStart: "+A.fileStart+")"),A.usedBytes=0,this.stream.insertBuffer(A),this.stream.logBufferLevel(),this.stream.initialized()?!0:(a.warn("ISOFile","Not ready to start parsing"),!1))},c.prototype.appendBuffer=function(A,e){var t;if(this.checkBuffer(A))return this.parse(),this.moovStartFound&&!this.moovStartSent&&(this.moovStartSent=!0,this.onMoovStart&&this.onMoovStart()),this.moov?(this.sampleListBuilt||(this.buildSampleLists(),this.sampleListBuilt=!0),this.updateSampleLists(),this.onReady&&!this.readySent&&(this.readySent=!0,this.onReady(this.getInfo())),this.processSamples(e),this.nextSeekPosition?(t=this.nextSeekPosition,this.nextSeekPosition=void 0):t=this.nextParsePosition,this.stream.getEndFilePositionAfter&&(t=this.stream.getEndFilePositionAfter(t))):this.nextParsePosition?t=this.nextParsePosition:t=0,this.sidx&&this.onSidx&&!this.sidxSent&&(this.onSidx(this.sidx),this.sidxSent=!0),this.meta&&(this.flattenItemInfo&&!this.itemListBuilt&&(this.flattenItemInfo(),this.itemListBuilt=!0),this.processItems&&this.processItems(this.onItem)),this.stream.cleanBuffers&&(a.info("ISOFile","Done processing buffer (fileStart: "+A.fileStart+") - next buffer to fetch should have a fileStart position of "+t),this.stream.logBufferLevel(),this.stream.cleanBuffers(),this.stream.logBufferLevel(!0),a.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize())),t},c.prototype.getInfo=function(){var A,e,t={},r,n,l,d,f=new Date("1904-01-01T00:00:00Z").getTime();if(this.moov)for(t.hasMoov=!0,t.duration=this.moov.mvhd.duration,t.timescale=this.moov.mvhd.timescale,t.isFragmented=this.moov.mvex!=null,t.isFragmented&&this.moov.mvex.mehd&&(t.fragment_duration=this.moov.mvex.mehd.fragment_duration),t.isProgressive=this.isProgressive,t.hasIOD=this.moov.iods!=null,t.brands=[],t.brands.push(this.ftyp.major_brand),t.brands=t.brands.concat(this.ftyp.compatible_brands),t.created=new Date(f+this.moov.mvhd.creation_time*1e3),t.modified=new Date(f+this.moov.mvhd.modification_time*1e3),t.tracks=[],t.audioTracks=[],t.videoTracks=[],t.subtitleTracks=[],t.metadataTracks=[],t.hintTracks=[],t.otherTracks=[],A=0;A0?t.mime+='video/mp4; codecs="':t.audioTracks&&t.audioTracks.length>0?t.mime+='audio/mp4; codecs="':t.mime+='application/mp4; codecs="',A=0;A=t.samples.length)&&(a.info("ISOFile","Sending fragmented data on track #"+r.id+" for samples ["+Math.max(0,t.nextSample-r.nb_samples)+","+(t.nextSample-1)+"]"),a.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize()),this.onSegment&&this.onSegment(r.id,r.user,r.segmentStream.buffer,t.nextSample,A||t.nextSample>=t.samples.length),r.segmentStream=null,r!==this.fragmentedTracks[e]))break}}if(this.onSamples!==null)for(e=0;e=t.samples.length)&&(a.debug("ISOFile","Sending samples on track #"+l.id+" for sample "+t.nextSample),this.onSamples&&this.onSamples(l.id,l.user,l.samples),l.samples=[],l!==this.extractedTracks[e]))break}}}},c.prototype.getBox=function(A){var e=this.getBoxes(A,!0);return e.length?e[0]:null},c.prototype.getBoxes=function(A,e){var t=[];return c._sweep.call(this,A,t,e),t},c._sweep=function(A,e,t){this.type&&this.type==A&&e.push(this);for(var r in this.boxes){if(e.length&&t)return;c._sweep.call(this.boxes[r],A,e,t)}},c.prototype.getTrackSamplesInfo=function(A){var e=this.getTrackById(A);if(e)return e.samples},c.prototype.getTrackSample=function(A,e){var t=this.getTrackById(A),r=this.getSample(t,e);return r},c.prototype.releaseUsedSamples=function(A,e){var t=0,r=this.getTrackById(A);r.lastValidSample||(r.lastValidSample=0);for(var n=r.lastValidSample;nA*n.timescale){f=r-1;break}e&&n.is_sync&&(d=r)}for(e&&(f=d),A=t.samples[f].cts,t.nextSample=f;t.samples[f].alreadyRead===t.samples[f].size&&t.samples[f+1];)f++;return l=t.samples[f].offset+t.samples[f].alreadyRead,a.info("ISOFile","Seeking to "+(e?"RAP":"")+" sample #"+t.nextSample+" on track "+t.tkhd.track_id+", time "+a.getDurationString(A,v)+" and offset: "+l),{offset:l,time:A/v}},c.prototype.getTrackDuration=function(A){var e;return A.samples?(e=A.samples[A.samples.length-1],(e.cts+e.duration)/e.timescale):1/0},c.prototype.seek=function(A,e){var t=this.moov,r,n,l,d={offset:1/0,time:1/0};if(this.moov){for(l=0;lthis.getTrackDuration(r))&&(n=this.seekTrack(A,e,r),n.offset-1){d=f;break}switch(d){case"Visual":if(n.add("vmhd").set("graphicsmode",0).set("opcolor",[0,0,0]),l.set("width",e.width).set("height",e.height).set("horizresolution",72<<16).set("vertresolution",72<<16).set("frame_count",1).set("compressorname",e.type+" Compressor").set("depth",24),e.avcDecoderConfigRecord){var b=new s.avcCBox;b.parse(new h(e.avcDecoderConfigRecord)),l.addBox(b)}else if(e.hevcDecoderConfigRecord){var k=new s.hvcCBox;k.parse(new h(e.hevcDecoderConfigRecord)),l.addBox(k)}break;case"Audio":n.add("smhd").set("balance",e.balance||0),l.set("channel_count",e.channel_count||2).set("samplesize",e.samplesize||16).set("samplerate",e.samplerate||65536);break;case"Hint":n.add("hmhd");break;case"Subtitle":switch(n.add("sthd"),e.type){case"stpp":l.set("namespace",e.namespace||"nonamespace").set("schema_location",e.schema_location||"").set("auxiliary_mime_types",e.auxiliary_mime_types||"");break}break;case"Metadata":n.add("nmhd");break;case"System":n.add("nmhd");break;default:n.add("nmhd");break}e.description&&l.addBox(e.description),e.description_boxes&&e.description_boxes.forEach(function(I){l.addBox(I)}),n.add("dinf").add("dref").addEntry(new s["url Box"]().set("flags",1));var L=n.add("stbl");return L.add("stsd").addEntry(l),L.add("stts").set("sample_counts",[]).set("sample_deltas",[]),L.add("stsc").set("first_chunk",[]).set("samples_per_chunk",[]).set("sample_description_index",[]),L.add("stco").set("chunk_offsets",[]),L.add("stsz").set("sample_sizes",[]),this.moov.mvex.add("trex").set("track_id",e.id).set("default_sample_description_index",e.default_sample_description_index||1).set("default_sample_duration",e.default_sample_duration||0).set("default_sample_size",e.default_sample_size||0).set("default_sample_flags",e.default_sample_flags||0),this.buildTrakSampleLists(t),e.id}},s.Box.prototype.computeSize=function(A){var e=A||new o;e.endianness=o.BIG_ENDIAN,this.write(e)},c.prototype.addSample=function(A,e,t){var r=t||{},n={},l=this.getTrackById(A);if(l!==null){n.number=l.samples.length,n.track_id=l.tkhd.track_id,n.timescale=l.mdia.mdhd.timescale,n.description_index=r.sample_description_index?r.sample_description_index-1:0,n.description=l.mdia.minf.stbl.stsd.entries[n.description_index],n.data=e,n.size=e.byteLength,n.alreadyRead=n.size,n.duration=r.duration||1,n.cts=r.cts||0,n.dts=r.dts||0,n.is_sync=r.is_sync||!1,n.is_leading=r.is_leading||0,n.depends_on=r.depends_on||0,n.is_depended_on=r.is_depended_on||0,n.has_redundancy=r.has_redundancy||0,n.degradation_priority=r.degradation_priority||0,n.offset=0,n.subsamples=r.subsamples,l.samples.push(n),l.samples_size+=n.size,l.samples_duration+=n.duration,l.first_dts===void 0&&(l.first_dts=r.dts),this.processSamples();var d=this.createSingleSampleMoof(n);return this.addBox(d),d.computeSize(),d.trafs[0].truns[0].data_offset=d.size+8,this.add("mdat").data=new Uint8Array(e),n}},c.prototype.createSingleSampleMoof=function(A){var e=0;A.is_sync?e=1<<25:e=65536;var t=new s.moofBox;t.add("mfhd").set("sequence_number",this.nextMoofNumber),this.nextMoofNumber++;var r=t.add("traf"),n=this.getTrackById(A.track_id);return r.add("tfhd").set("track_id",A.track_id).set("flags",s.TFHD_FLAG_DEFAULT_BASE_IS_MOOF),r.add("tfdt").set("baseMediaDecodeTime",A.dts-(n.first_dts||0)),r.add("trun").set("flags",s.TRUN_FLAGS_DATA_OFFSET|s.TRUN_FLAGS_DURATION|s.TRUN_FLAGS_SIZE|s.TRUN_FLAGS_FLAGS|s.TRUN_FLAGS_CTS_OFFSET).set("data_offset",0).set("first_sample_flags",0).set("sample_count",1).set("sample_duration",[A.duration]).set("sample_size",[A.size]).set("sample_flags",[e]).set("sample_composition_time_offset",[A.cts-A.dts]),t},c.prototype.lastMoofIndex=0,c.prototype.samplesDataSize=0,c.prototype.resetTables=function(){var A,e,t,r,n,l,d,f;for(this.initial_duration=this.moov.mvhd.duration,this.moov.mvhd.duration=0,A=0;A=2&&(v=n[d].grouping_type+"/0",f=new g(n[d].grouping_type,0),f.is_fragment=!0,e.sample_groups_info[v]||(e.sample_groups_info[v]=f))}else for(d=0;d=2&&(v=r[d].grouping_type+"/0",f=new g(r[d].grouping_type,0),A.sample_groups_info[v]||(A.sample_groups_info[v]=f))},c.setSampleGroupProperties=function(A,e,t,r){var n,l;e.sample_groups=[];for(n in r)if(e.sample_groups[n]={},e.sample_groups[n].grouping_type=r[n].grouping_type,e.sample_groups[n].grouping_type_parameter=r[n].grouping_type_parameter,t>=r[n].last_sample_in_run&&(r[n].last_sample_in_run<0&&(r[n].last_sample_in_run=0),r[n].entry_index++,r[n].entry_index<=r[n].sbgp.entries.length-1&&(r[n].last_sample_in_run+=r[n].sbgp.entries[r[n].entry_index].sample_count)),r[n].entry_index<=r[n].sbgp.entries.length-1?e.sample_groups[n].group_description_index=r[n].sbgp.entries[r[n].entry_index].group_description_index:e.sample_groups[n].group_description_index=-1,e.sample_groups[n].group_description_index!==0){var d;r[n].fragment_description?d=r[n].fragment_description:d=r[n].description,e.sample_groups[n].group_description_index>0?(e.sample_groups[n].group_description_index>65535?l=(e.sample_groups[n].group_description_index>>16)-1:l=e.sample_groups[n].group_description_index-1,d&&l>=0&&(e.sample_groups[n].description=d.entries[l])):d&&d.version>=2&&d.default_group_description_index>0&&(e.sample_groups[n].description=d.entries[d.default_group_description_index-1])}},c.process_sdtp=function(A,e,t){e&&(A?(e.is_leading=A.is_leading[t],e.depends_on=A.sample_depends_on[t],e.is_depended_on=A.sample_is_depended_on[t],e.has_redundancy=A.sample_has_redundancy[t]):(e.is_leading=0,e.depends_on=0,e.is_depended_on=0,e.has_redundancy=0))},c.prototype.buildSampleLists=function(){var A,e;for(A=0;A"u")){for(e=0;etA&&(X++,tA<0&&(tA=0),tA+=l.sample_counts[X]),e>0?(A.samples[e-1].duration=l.sample_deltas[X],A.samples_duration+=A.samples[e-1].duration,G.dts=A.samples[e-1].dts+A.samples[e-1].duration):G.dts=0,d?(e>=eA&&(pA++,eA<0&&(eA=0),eA+=d.sample_counts[pA]),G.cts=A.samples[e].dts+d.sample_offsets[pA]):G.cts=G.dts,f?(e==f.sample_numbers[WA]-1?(G.is_sync=!0,WA++):(G.is_sync=!1,G.degradation_priority=0),g&&g.entries[EA].sample_delta+QA==e+1&&(G.subsamples=g.entries[EA].subsamples,QA+=g.entries[EA].sample_delta,EA++)):G.is_sync=!0,c.process_sdtp(A.mdia.minf.stbl.sdtp,G,G.number),L?G.degradation_priority=L.priority[e]:G.degradation_priority=0,g&&g.entries[EA].sample_delta+QA==e&&(G.subsamples=g.entries[EA].subsamples,QA+=g.entries[EA].sample_delta),(b.length>0||k.length>0)&&c.setSampleGroupProperties(A,G,e,A.sample_groups_info)}e>0&&(A.samples[e-1].duration=Math.max(A.mdia.mdhd.duration-A.samples[e-1].dts,0),A.samples_duration+=A.samples[e-1].duration)}},c.prototype.updateSampleLists=function(){var A,e,t,r,n,l,d,f,v,g,b,k,L,I,N;if(this.moov!==void 0){for(;this.lastMoofIndex0&&c.initSampleGroups(k,b,b.sbgps,k.mdia.minf.stbl.sgpds,b.sgpds),e=0;e0?I.dts=k.samples[k.samples.length-2].dts+k.samples[k.samples.length-2].duration:(b.tfdt?I.dts=b.tfdt.baseMediaDecodeTime:I.dts=0,k.first_traf_merged=!0),I.cts=I.dts,Y.flags&s.TRUN_FLAGS_CTS_OFFSET&&(I.cts=I.dts+Y.sample_composition_time_offset[t]),N=d,Y.flags&s.TRUN_FLAGS_FLAGS?N=Y.sample_flags[t]:t===0&&Y.flags&s.TRUN_FLAGS_FIRST_FLAG&&(N=Y.first_sample_flags),I.is_sync=!(N>>16&1),I.is_leading=N>>26&3,I.depends_on=N>>24&3,I.is_depended_on=N>>22&3,I.has_redundancy=N>>20&3,I.degradation_priority=N&65535;var rA=!!(b.tfhd.flags&s.TFHD_FLAG_BASE_DATA_OFFSET),oA=!!(b.tfhd.flags&s.TFHD_FLAG_DEFAULT_BASE_IS_MOOF),tA=!!(Y.flags&s.TRUN_FLAGS_DATA_OFFSET),X=0;rA?X=b.tfhd.base_data_offset:oA||e===0?X=g.start:X=f,e===0&&t===0?tA?I.offset=X+Y.data_offset:I.offset=X:I.offset=f,f=I.offset+I.size,(b.sbgps.length>0||b.sgpds.length>0||k.mdia.minf.stbl.sbgps.length>0||k.mdia.minf.stbl.sgpds.length>0)&&c.setSampleGroupProperties(k,I,I.number_in_traf,b.sample_groups_info)}}if(b.subs){k.has_fragment_subsamples=!0;var eA=b.first_sample_index;for(e=0;e-1){t=this.stream.buffers[n];var l=t.byteLength-(r.offset+r.alreadyRead-t.fileStart);if(r.size-r.alreadyRead<=l)return a.debug("ISOFile","Getting sample #"+e+" data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-t.fileStart)+" read size: "+(r.size-r.alreadyRead)+" full size: "+r.size+")"),o.memcpy(r.data.buffer,r.alreadyRead,t,r.offset+r.alreadyRead-t.fileStart,r.size-r.alreadyRead),t.usedBytes+=r.size-r.alreadyRead,this.stream.logBufferLevel(),r.alreadyRead=r.size,r;if(l===0)return null;a.debug("ISOFile","Getting sample #"+e+" partial data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-t.fileStart)+" read size: "+l+" full size: "+r.size+")"),o.memcpy(r.data.buffer,r.alreadyRead,t,r.offset+r.alreadyRead-t.fileStart,l),r.alreadyRead+=l,t.usedBytes+=l,this.stream.logBufferLevel()}else return null}},c.prototype.releaseSample=function(A,e){var t=A.samples[e];return t.data?(this.samplesDataSize-=t.size,t.data=null,t.alreadyRead=0,t.size):0},c.prototype.getAllocatedSampleDataSize=function(){return this.samplesDataSize},c.prototype.getCodecs=function(){var A,e="";for(A=0;A0&&(e+=","),e+=t.mdia.minf.stbl.stsd.entries[0].getCodec()}return e},c.prototype.getTrexById=function(A){var e;if(!this.moov||!this.moov.mvex)return null;for(e=0;e0&&(n.protection=l.ipro.protections[l.iinf.item_infos[t].protection_index-1]),l.iinf.item_infos[t].item_type?n.type=l.iinf.item_infos[t].item_type:n.type="mime",n.content_type=l.iinf.item_infos[t].content_type,n.content_encoding=l.iinf.item_infos[t].content_encoding,n.item_uri_type=l.iinf.item_infos[t].item_uri_type;if(l.grpl)for(t=0;t0&&k.property_index-1-1){e=this.stream.buffers[l];var d=e.byteLength-(n.offset+n.alreadyRead-e.fileStart);if(n.length-n.alreadyRead<=d)a.debug("ISOFile","Getting item #"+A+" extent #"+r+" data (alreadyRead: "+n.alreadyRead+" offset: "+(n.offset+n.alreadyRead-e.fileStart)+" read size: "+(n.length-n.alreadyRead)+" full extent size: "+n.length+" full item size: "+t.size+")"),o.memcpy(t.data.buffer,t.alreadyRead,e,n.offset+n.alreadyRead-e.fileStart,n.length-n.alreadyRead),e.usedBytes+=n.length-n.alreadyRead,this.stream.logBufferLevel(),t.alreadyRead+=n.length-n.alreadyRead,n.alreadyRead=n.length;else return a.debug("ISOFile","Getting item #"+A+" extent #"+r+" partial data (alreadyRead: "+n.alreadyRead+" offset: "+(n.offset+n.alreadyRead-e.fileStart)+" read size: "+d+" full extent size: "+n.length+" full item size: "+t.size+")"),o.memcpy(t.data.buffer,t.alreadyRead,e,n.offset+n.alreadyRead-e.fileStart,d),n.alreadyRead+=d,t.alreadyRead+=d,e.usedBytes+=d,this.stream.logBufferLevel(),null}else return null}}return t.alreadyRead===t.size?t:null},c.prototype.releaseItem=function(A){var e=this.items[A];if(e.data){this.itemsDataSize-=e.size,e.data=null,e.alreadyRead=0;for(var t=0;t0?this.moov.traks[A].samples[0].duration:0),e.push(r)}return e},s.Box.prototype.printHeader=function(A){this.size+=8,this.size>U&&(this.size+=8),this.type==="uuid"&&(this.size+=16),A.log(A.indent+"size:"+this.size),A.log(A.indent+"type:"+this.type)},s.FullBox.prototype.printHeader=function(A){this.size+=4,s.Box.prototype.printHeader.call(this,A),A.log(A.indent+"version:"+this.version),A.log(A.indent+"flags:"+this.flags)},s.Box.prototype.print=function(A){this.printHeader(A)},s.ContainerBox.prototype.print=function(A){this.printHeader(A);for(var e=0;e>8)),A.log(A.indent+"matrix: "+this.matrix.join(", ")),A.log(A.indent+"next_track_id: "+this.next_track_id)},s.tkhdBox.prototype.print=function(A){s.FullBox.prototype.printHeader.call(this,A),A.log(A.indent+"creation_time: "+this.creation_time),A.log(A.indent+"modification_time: "+this.modification_time),A.log(A.indent+"track_id: "+this.track_id),A.log(A.indent+"duration: "+this.duration),A.log(A.indent+"volume: "+(this.volume>>8)),A.log(A.indent+"matrix: "+this.matrix.join(", ")),A.log(A.indent+"layer: "+this.layer),A.log(A.indent+"alternate_group: "+this.alternate_group),A.log(A.indent+"width: "+this.width),A.log(A.indent+"height: "+this.height)};var C={};C.createFile=function(A,e){var t=A!==void 0?A:!0,r=new c(e);return r.discardMdatData=!t,r},p.createFile=C.createFile}(Se)),Se}var li=oi();class di{constructor(a){j(this,"data");j(this,"idx");j(this,"size");this.data=new Uint8Array(a),this.idx=0,this.size=a}getData(){if(this.idx!==this.size)throw new Error("Mismatch between size reserved and sized used");return this.data.slice(0,this.idx)}writeUint8(a){this.data.set([a],this.idx),this.idx+=1}writeUint16(a){const h=new Uint16Array(1);h[0]=a;const o=new Uint8Array(h.buffer);this.data.set([o[1],o[0]],this.idx),this.idx+=2}writeUint8Array(a){this.data.set(a,this.idx),this.idx+=a.length}}const hi=p=>{let a,h=7;for(a=0;anew Promise((w,u)=>{U&&console.info("Decoding video from",p);try{const s=li.createFile();let T="N/A";const P=new h({output:z=>{createImageBitmap(z,{resizeQuality:"high"}).then(D=>{a(D),z.close(),P.decodeQueueSize<=0&&setTimeout(()=>{P.state!=="closed"&&(P.close(),w(T))},500)})},error:z=>{console.error(z),u(z)}});s.onReady=z=>{if(z&&z.videoTracks&&z.videoTracks[0]){[{codec:T}]=z.videoTracks,U&&console.info("Video with codec:",T);const D=s.moov,O=D==null?void 0:D.traks[0].mdia.minf.stbl.stsd.entries[0].avcC;if(!O){u(new Error("Could not find avcC box for extradata."));return}const _=hi(O);P.configure({codec:T,description:_}),s.setExtractionOptions(z.videoTracks[0].id),s.start()}else u(new Error("URL provided is not a valid mp4 video file."))},s.onSamples=(z,D,O)=>{for(let _=0;_{if(!z.body)throw new Error("Response body is null");const D=z.body.getReader();let O=0;function _(c){if(c.done)return s.flush(),Promise.resolve();const C=c.value.buffer;return C.fileStart=O,O+=C.byteLength,s.appendBuffer(C),D.read().then(_)}return D.read().then(_)})}catch(s){u(s)}}),ci=(p,a,h=!1)=>typeof VideoDecoder=="function"&&typeof EncodedVideoChunk=="function"?(h&&console.info("WebCodecs is natively supported, using native version..."),pi(p,a,{VideoDecoder,EncodedVideoChunk,debug:h})):(h&&console.info("WebCodecs is not available in this browser."),Promise.resolve("N/A"));function fi(p,a=0){let h;return(...o)=>{clearTimeout(h),h=setTimeout(()=>{p(...o)},a)}}const nt=(p,a=1)=>{const h=window.pageYOffset;return Math.abs(h-p){},onChange:O=C=>{},debug:_=!1,autoplay:c=!1}){j(this,"container");j(this,"scrollerVideoContainer");j(this,"src");j(this,"transitionSpeed");j(this,"frameThreshold");j(this,"useWebCodecs");j(this,"objectFit");j(this,"sticky");j(this,"trackScroll");j(this,"onReady");j(this,"onChange");j(this,"debug");j(this,"autoplay");j(this,"video");j(this,"videoPercentage");j(this,"isSafari");j(this,"currentTime");j(this,"targetTime");j(this,"canvas");j(this,"context");j(this,"frames");j(this,"frameRate");j(this,"targetScrollPosition",null);j(this,"currentFrame");j(this,"usingWebCodecs");j(this,"totalTime");j(this,"transitioningRaf");j(this,"componentState");j(this,"updateScrollPercentage");j(this,"resize");if(this.src=a,this.scrollerVideoContainer=h,this.objectFit=o,this.sticky=U,this.trackScroll=u,this.transitionSpeed=T,this.frameThreshold=P,this.useWebCodecs=z,this.onReady=D,this.onChange=O,this.debug=_,this.autoplay=c,this.videoPercentage=0,this.isSafari=!1,this.currentTime=0,this.targetTime=0,this.canvas=null,this.context=null,this.container=null,this.frames=null,this.frameRate=0,this.currentTime=0,this.targetTime=0,this.canvas=null,this.context=null,this.frames=[],this.frameRate=0,this.currentFrame=0,this.videoPercentage=0,this.usingWebCodecs=!1,this.totalTime=0,this.transitioningRaf=null,this.componentState=gi(),this.componentState.willAutoPlay=c,h&&h instanceof HTMLElement)this.container=h;else if(typeof h=="string"){if(this.container=document.getElementById(h)||null,!this.container)throw new Error("scrollerVideoContainer must be a valid DOM object")}else throw new Error("scrollerVideoContainer must be a valid DOM object");this.video=document.createElement("video"),this.video.src=a,this.video.preload="auto",this.video.tabIndex=0,this.video.preload="auto",this.video.playsInline=!0,this.video.muted=!0,this.video.pause(),this.video.load(),this.video.addEventListener("canplaythrough",()=>{this.onReady(),this.autoplay&&!this.useWebCodecs&&this.autoplayScroll()},{once:!0}),this.videoPercentage=0,this.container.appendChild(this.video),U&&(this.container.style.display="block",this.container.style.position="sticky",this.container.style.top="0"),w&&(this.container.style.width="100%",this.container.style.height="100lvh",this.container.style.overflow="hidden"),o&&this.setCoverStyle(this.video);const C=new SA().getEngine();this.isSafari=C.name==="WebKit",_&&this.isSafari&&console.info("Safari browser detected");const A=fi(()=>{window.requestAnimationFrame(()=>{this.setScrollPercent(this.videoPercentage)})},100);this.updateScrollPercentage=(e=!1)=>{let t;if(this.container&&this.container.parentNode&&this.container.parentNode.getBoundingClientRect)t=this.container.parentNode.getBoundingClientRect();else{this.debug&&console.error("ScrollerVideo: container or parentNode is null or invalid.");return}let r=-t.top/(t.height-window.innerHeight);this.componentState.autoplayProgress>0&&(r=ui(r,0,1,this.componentState.autoplayProgress,1)),this.debug&&console.info("ScrollerVideo scrolled to",r),this.componentState.isAutoPlaying&&this.frames&&(this.debug&&console.warn("Stopping autoplay due to manual scroll"),this.usingWebCodecs?this.componentState.autoplayProgress=parseFloat((this.currentFrame/this.frames.length).toFixed(4)):this.componentState.autoplayProgress=parseFloat((this.currentTime/this.totalTime).toFixed(4)),this.componentState.isAutoPlaying=!1),this.videoPercentage=r,this.targetScrollPosition==null?(this.setTargetTimePercent(r,{jump:e}),this.onChange(r)):nt(this.targetScrollPosition)?this.targetScrollPosition=null:s&&this.targetScrollPosition!=null&&A(),this.updateDebugInfo()},this.trackScroll?(window.addEventListener("scroll",()=>{this.updateScrollPercentage&&this.updateScrollPercentage(!1)}),this.video.addEventListener("loadedmetadata",()=>{this.updateScrollPercentage&&this.updateScrollPercentage(!0),this.video&&(this.totalTime=this.video.duration),this.setCoverStyle(this.canvas||this.video)},{once:!0})):this.video.addEventListener("loadedmetadata",()=>{this.setTargetTimePercent(0,{jump:!0}),this.video&&(this.totalTime=this.video.duration),this.setCoverStyle(this.canvas||this.video)},{once:!0}),this.resize=()=>{this.debug&&console.info("ScrollerVideo resizing..."),this.objectFit&&this.setCoverStyle(this.canvas||this.video),this.paintCanvasFrame(Math.floor(this.currentTime*this.frameRate))},window.addEventListener("resize",this.resize),this.video.addEventListener("progress",this.resize),this.decodeVideo(),this.updateDebugInfo()}setVideoPercentage(a,h={jump:!1,transitionSpeed:8}){this.videoPercentage!==a&&(this.transitioningRaf&&window.cancelAnimationFrame(this.transitioningRaf),this.videoPercentage=a,this.onChange(a),this.trackScroll&&!h.autoplay&&this.setScrollPercent(a),this.setTargetTimePercent(a,h))}setCoverStyle(a){var h;if(!a){this.debug&&console.warn("No element to set cover style on");return}if(this.objectFit){a.style.position="absolute",a.style.top="50%",a.style.left="50%",a.style.transform="translate(-50%, -50%)";const{width:o,height:U}=((h=this.container)==null?void 0:h.getBoundingClientRect())||{width:0,height:0};let w=0,u=0;a instanceof HTMLVideoElement?(w=a.videoWidth,u=a.videoHeight):a instanceof HTMLCanvasElement&&(w=a.width,u=a.height),this.debug&&console.info("Container dimensions:",[o,U]),this.debug&&console.info("Element dimensions:",[w,u]),this.objectFit=="cover"?o/U>w/u?(a.style.width="100%",a.style.height="auto"):(a.style.height="100%",a.style.width="auto"):this.objectFit=="contain"&&(o/U>w/u?(a.style.height="100%",a.style.width="auto"):(a.style.width="100%",a.style.height="auto"))}}async decodeVideo(){var a,h,o;if(!this.useWebCodecs){this.debug&&console.warn("Cannot perform video decode: `useWebCodes` disabled");return}if(!this.src){this.debug&&console.warn("Cannot perform video decode: no `src` found");return}try{await ci(this.src,U=>{var w;(w=this.frames)==null||w.push(U)},this.debug).then(U=>{this.usingWebCodecs=!0,typeof U=="string"&&(this.componentState.framesData.codec=U)})}catch(U){this.debug&&console.error("Error encountered while decoding video",U),this.frames=[],(a=this.video)==null||a.load()}if(((h=this.frames)==null?void 0:h.length)===0){this.debug&&console.error("No frames were received from webCodecs"),this.onReady();return}this.frameRate=this.frames&&this.video?this.frames.length/this.video.duration:0,this.debug&&console.info("Received",(o=this.frames)==null?void 0:o.length,"frames. Video frame rate:",this.frameRate),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.video&&(this.video.style.display="none"),this.container&&this.container.appendChild(this.canvas),this.objectFit&&this.setCoverStyle(this.canvas),this.paintCanvasFrame(Math.floor(this.currentTime*this.frameRate)),this.onReady(),this.autoplay&&this.autoplayScroll()}paintCanvasFrame(a){var w;if(!this.frames){this.debug&&console.warn("No frames available to paint");return}const h=this.frames[a];if(this.currentFrame=a,!this.canvas||!h)return;this.debug&&console.info("Painting frame",a),this.canvas.width=h.width,this.canvas.height=h.height;const{width:o,height:U}=((w=this.container)==null?void 0:w.getBoundingClientRect())||{width:0,height:0};if(this.objectFit=="cover"?o/U>h.width/h.height?(this.canvas.style.width="100%",this.canvas.style.height="auto"):(this.canvas.style.height="100%",this.canvas.style.width="auto"):this.objectFit=="contain"&&(o/U>h.width/h.height?(this.canvas.style.height="100%",this.canvas.style.width="auto"):(this.canvas.style.width="100%",this.canvas.style.height="auto")),!this.context){this.debug&&console.warn("No canvas context available to paint");return}this.context.drawImage(h,0,0,h.width,h.height),this.updateDebugInfo()}transitionToTargetTime({jump:a,transitionSpeed:h=this.transitionSpeed,easing:o=null}){if(!this.video){console.warn("No video found");return}this.debug&&console.info("Transitioning targetTime:",this.targetTime,"currentTime:",this.currentTime);const U=this.targetTime-this.currentTime,w=Math.abs(U),u=w*1e3,s=U>0,T=({startCurrentTime:P,startTimestamp:z,timestamp:D})=>{var e;if(!this.video){console.warn("No video found during transition tick");return}const O=(D-z)/u,_=s?this.currentTime>=this.targetTime:this.currentTime<=this.targetTime;if(this.componentState.isAutoPlaying&&(this.componentState.autoplayProgress=parseFloat((this.currentTime/this.totalTime).toFixed(4))),isNaN(this.targetTime)||Math.abs(this.targetTime-this.currentTime)this.video.duration&&(this.targetTime=this.video.duration),this.targetTime<0&&(this.targetTime=0);const c=this.targetTime-this.currentTime,C=o&&Number.isFinite(O)?o(O):0,A=s?P+C*Math.abs(w)*h:P-C*Math.abs(w)*h;if(this.canvas)a?this.currentTime=this.targetTime:C?this.currentTime=A:this.currentTime+=c/(256/h),this.paintCanvasFrame(Math.floor(this.currentTime*this.frameRate));else if(a||this.isSafari||!s)this.video.pause(),C?this.currentTime=A:this.currentTime+=c/(64/h),a&&(this.currentTime=this.targetTime),this.video.currentTime=this.currentTime;else{const t=Math.max(Math.min(c*4,h,16),1);this.debug&&console.info("ScrollerVideo playbackRate:",t),isNaN(t)||(this.video.playbackRate=t,this.video.play()),this.currentTime=this.video.currentTime}typeof requestAnimationFrame=="function"&&(this.transitioningRaf=requestAnimationFrame(t=>T({startCurrentTime:P,startTimestamp:z,timestamp:t})))};typeof requestAnimationFrame=="function"&&(this.transitioningRaf=requestAnimationFrame(P=>{T({startCurrentTime:this.currentTime,startTimestamp:P,timestamp:P})}))}setTargetTimePercent(a,h={jump:!1,transitionSpeed:8}){var U,w,u,s;const o=(U=this.frames)!=null&&U.length&&this.frameRate?this.frames.length/this.frameRate:((w=this.video)==null?void 0:w.duration)||0;this.targetTime=Math.max(Math.min(a,1),0)*o,!(!h.jump&&Math.abs(this.currentTime-this.targetTime)this.updateScrollPercentage),this.resize&&window.removeEventListener("resize",this.resize),this.container&&(this.container.innerHTML="")}autoplayScroll(){this.setVideoPercentage(1,{jump:!1,transitionSpeed:this.totalTime*.1,easing:a=>a,autoplay:!0}),this.componentState.isAutoPlaying=!0}updateDebugInfo(){var a;this.componentState.generalData.src=this.src,this.componentState.generalData.videoPercentage=Pe(parseFloat(this.videoPercentage.toFixed(4)),0,1),this.componentState.generalData.frameRate=parseFloat(this.frameRate.toFixed(2)),this.componentState.generalData.currentTime=parseFloat(this.currentTime.toFixed(4)),this.componentState.generalData.totalTime=parseFloat(this.totalTime.toFixed(4)),this.componentState.usingWebCodecs=this.usingWebCodecs,this.componentState.framesData.currentFrame=this.currentFrame,this.componentState.framesData.totalFrames=((a=this.frames)==null?void 0:a.length)||0}}function _i(p,a){$(a,!0),p.preventDefault()}function mi(p,a,h){m(a)&&($(a,!1),setTimeout(()=>{$(h,!1)},5),p.stopImmediatePropagation()),p.preventDefault()}function yi(p,a,h){m(a)&&p.preventDefault(),$(h,!1)}var bi=V('

Codec:

Current frame:

',1),wi=V('

Autoplaying:

Autoplay progress:

',1),xi=V('
CONSOLE

Source:

Progress:

Framerate:

Current time:

Will Autoplay?:

');function yt(p,a){YA(a,!0);let h=fA(!1),o=fA(!1),U=fA(pt({x:8,y:8}));function w(L){m(h)&&($(U,{x:m(U).x+L.movementX,y:m(U).y+L.movementY},!0),$(o,!0)),L.preventDefault()}var u=xi();ht("mousemove",Ot,w);var s=R(u),T=R(s);T.__mousedown=[_i,h],T.__mouseup=[mi,h,o],T.__click=[yi,o,h];var P=F(T,2),z=F(R(P),2),D=R(z),O=F(z,4),_=R(O),c=R(_),C=F(_,2),A=R(C),e=F(O,4),t=R(e),r=F(e,4),n=R(r),l=F(r,2);{var d=L=>{var I=bi(),N=F(AA(I),2),Y=R(N),rA=R(Y),oA=F(N,4),tA=R(oA);q(()=>{uA(rA,a.componentState.framesData.codec),uA(tA,`${a.componentState.framesData.currentFrame??""}/${a.componentState.framesData.totalFrames??""}`)}),M(L,I)};W(l,L=>{a.componentState.usingWebCodecs&&L(d)})}var f=F(l,4),v=R(f),g=R(v),b=F(f,2);{var k=L=>{var I=wi(),N=F(AA(I),2),Y=R(N),rA=R(Y),oA=F(N,4),tA=R(oA),X=R(tA),eA=F(tA,2),pA=R(eA);q(()=>{uA(rA,a.componentState.isAutoPlaying),uA(X,a.componentState.autoplayProgress),K(pA,`width: ${a.componentState.autoplayProgress*100}%; height: 100%;`)}),M(L,I)};W(b,L=>{a.componentState.willAutoPlay&&L(k)})}q(()=>{K(u,`position: absolute; top: ${m(U).y??""}px; left: ${m(U).x??""}px; z-index: 5; user-select: none;`),uA(D,a.componentState.generalData.src),uA(c,a.componentState.generalData.videoPercentage),K(A,`width: ${a.componentState.generalData.videoPercentage*100}%; height: 100%;`),uA(t,a.componentState.generalData.frameRate),uA(n,`${a.componentState.generalData.currentTime??""}/${a.componentState.generalData.totalTime??""}`),uA(g,a.componentState.willAutoPlay)}),M(p,u),jA()}Rt(["mousedown","mouseup","click"]);yt.__docgen={data:[{name:"componentState",visibility:"public",keywords:[{name:"required",description:""}],kind:"let",type:{kind:"type",type:"any",text:"any"},static:!1,readonly:!1}],name:"Debug.svelte"};var Si=V('
'),Ui=V(" ",1),Ei=V('
'),Bi=V('
');function lA(p,a){YA(a,!0);const h=g=>{var b=dA(),k=AA(b);{var L=I=>{var N=Ui(),Y=AA(N);{var rA=X=>{var eA=Si(),pA=R(eA);yt(pA,{get componentState(){return u().componentState}}),M(X,eA)};W(Y,X=>{z()&&X(rA)})}var oA=F(Y,2);{var tA=X=>{var eA=dA(),pA=AA(eA);ut(pA,()=>a.children),M(X,eA)};W(oA,X=>{a.children&&X(tA)})}M(I,N)};W(k,I=>{u()&&I(L)})}M(g,b)},o={threshold:.5,delay:200};let U=sA(a,"class",3,""),w=sA(a,"id",3,""),u=sA(a,"scrollerVideo",15),s=sA(a,"onReady",11,()=>{}),T=sA(a,"onChange",11,()=>{}),P=sA(a,"height",3,"200lvh"),z=sA(a,"showDebugInfo",3,!1),D=sA(a,"embedded",3,!1),O=Mt(a,["$$slots","$$events","$$legacy","class","id","src","scrollerVideo","videoPercentage","onReady","onChange","height","showDebugInfo","embedded","embeddedProps","children"]),_=fA(void 0),c="",C={...o,...a.embeddedProps},A=fA(void 0),e=fA(void 0),t=vA(()=>{let g=1;return m(A)&&m(e)&&(g=m(A).scrollHeight-m(e)),g});const r=new jt(0,{duration:1e3,delay:C.delay,easing:g=>+g});Me(()=>{m(A)&&(m(A).scrollTop=r.current)}),Me(()=>{if(m(_)){if(JSON.stringify(O)!==c){if(u()&&u().destroy&&u().destroy(),u(new vi({src:a.src,scrollerVideoContainer:m(_),onReady:s(),onChange:T(),...O,trackScroll:D()?!1:a.trackScroll,autoplay:D()?!1:a.autoplay})),D()){const g=()=>{s()(),window==null||window.addEventListener("scroll",()=>{var b;if(m(A)&&m(A).getBoundingClientRect().topwindow.innerHeight*C.threshold&&r.current>0&&r.set(0,{duration:0})})};u(u().onReady=g,!0)}Nt("scrollerVideoState",u().componentState),c=JSON.stringify(O)}u()&&a.videoPercentage&&a.videoPercentage>=0&&a.videoPercentage<=1&&u().setVideoPercentage(a.videoPercentage,{jump:!1,transitionSpeed:a.transitionSpeed||8})}}),ft(()=>{u()&&u().destroy&&u().destroy()});let n=vA(()=>{var g;return u()?`calc(${P()} * ${1-((g=u())==null?void 0:g.componentState.autoplayProgress)})`:P()});var l=dA(),d=AA(l);{var f=g=>{var b=Ei(),k=R(b),L=R(k),I=R(L);h(I),ue(L,N=>$(_,N),()=>m(_)),ue(b,N=>$(A,N),()=>m(A)),q(()=>{He(k,"id",w()),Ee(k,1,`scroller-video-container embedded ${U()??""}`,"svelte-1u01kce")}),ht("scroll",b,()=>{if(u()&&m(A)){let N=m(A).scrollTop/m(t);u().setVideoPercentage(N,{jump:N==0,easing:Y=>Y})}}),ee(b,"clientHeight",N=>$(e,N)),M(g,b)},v=g=>{var b=Bi(),k=R(b),L=R(k);h(L),ue(k,I=>$(_,I),()=>m(_)),q(()=>{He(b,"id",w()),Ee(b,1,`scroller-video-container ${U()??""}`,"svelte-1u01kce"),K(b,`height: ${m(n)??""}`)}),M(g,b)};W(d,g=>{D()?g(f):g(v,!1)})}M(p,l),jA()}lA.__docgen={data:[{name:"class",visibility:"public",description:"CSS class for scroller container",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"id",visibility:"public",description:"ID of the scroller container",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'""'},{name:"scrollerVideo",visibility:"public",description:"Bindable instance of ScrollerVideo",keywords:[],kind:"let",type:{kind:"type",type:"object",text:"ScrollerVideo"},static:!1,readonly:!1,defaultValue:"..."},{name:"src",visibility:"public",description:"Video source URL",keywords:[{name:"required",description:""}],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"videoPercentage",visibility:"public",description:"Bindable percentage value to control video playback. **Ranges from 0 to 1**",keywords:[],kind:"let",type:{kind:"type",type:"number",text:"number"},static:!1,readonly:!1},{name:"transitionSpeed",visibility:"public",description:"Sets the maximum playbackRate for this video",keywords:[],kind:"let",type:{kind:"type",type:"number",text:"number"},static:!1,readonly:!1},{name:"frameThreshold",visibility:"public",description:"When to stop the video animation, in seconds",keywords:[],kind:"let",type:{kind:"type",type:"number",text:"number"},static:!1,readonly:!1},{name:"objectFit",visibility:"public",description:"How the video should be resized to fit its container",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"sticky",visibility:"public",description:"Whether the video should have position: sticky",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1},{name:"full",visibility:"public",description:"Whether the video should take up the entire viewport",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1},{name:"trackScroll",visibility:"public",description:"Whether this object should automatically respond to scroll. Set this to **false** while manually controlling `videoPercentage` prop.",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1},{name:"lockScroll",visibility:"public",description:"Whether it ignores human scroll while it runs setVideoPercentage with enabled trackScroll",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1},{name:"useWebCodecs",visibility:"public",description:"Whether the library should use the webcodecs method. For more info, visit https://scrollyvideo.js.org/",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1},{name:"onReady",visibility:"public",description:"The callback when it's ready to scroll",keywords:[],kind:"let",type:{kind:"function",text:"() => void"},static:!1,readonly:!1,defaultValue:"..."},{name:"onChange",visibility:"public",description:"The callback for video percentage change",keywords:[],kind:"let",type:{kind:"function",text:"() => void"},static:!1,readonly:!1,defaultValue:"..."},{name:"debug",visibility:"public",description:"Whether to log debug information. Internal library logs.",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1},{name:"showDebugInfo",visibility:"public",description:"Shows debug information on page",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1,defaultValue:"false"},{name:"height",visibility:"public",description:"Height of the video container. Set it to 100lvh when using inside `ScrollerBase`",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'"200lvh"'},{name:"autoplay",visibility:"public",description:"Whether the video should autoplay",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1},{name:"embedded",visibility:"public",description:"Variable to control component rendering on embed page",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1,defaultValue:"false"},{name:"embeddedProps",visibility:"public",description:"Additional properties for embedded videos",keywords:[],kind:"let",type:{kind:"type",type:"object",text:"{ threshold?: number | undefined; duration?: number | undefined; delay?: number | undefined; }"},static:!1,readonly:!1},{name:"children",visibility:"public",description:"Children render function",keywords:[],kind:"let",type:{kind:"function",text:"Snippet<[]>"},static:!1,readonly:!1}],name:"ScrollerVideo.svelte"};const Re=""+new URL("goldengate-BC8kEOSV.mp4",import.meta.url).href;var Ti=V('

Step 1

Step 2

Step 3

',1);function bt(p){let a=fA(0);gt(p,{query:"div.step-foreground-container",visible:!0,get progress(){return m(a)},set progress(U){$(a,U,!0)},backgroundSnippet:U=>{{let w=vA(()=>Math.min(1,Math.max(m(a),0)));lA(U,{get src(){return Re},height:"100lvh",trackScroll:!1,get videoPercentage(){return m(w)},transitionSpeed:20,showDebugInfo:!0})}},foregroundSnippet:U=>{var w=Ti();M(U,w)},$$slots:{backgroundSnippet:!0,foregroundSnippet:!0}})}bt.__docgen={version:3,name:"WithScrollerBase.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};var ki=V("
"),Ci=V('
'),Pi=V('
'),Ii=V('
');function Ae(p,a){YA(a,!0);let h=sA(a,"id",3,""),o=sA(a,"class",3,""),U=sA(a,"startTime",3,0),w=sA(a,"endTime",3,1),u=sA(a,"backgroundColour",3,"#000"),s=sA(a,"width",3,"normal"),T=sA(a,"position",3,"center center"),P=Ht("scrollerVideoState");{let z=vA(()=>`scroller-video-foreground ${o()}`);ae(p,{get class(){return m(z)},get id(){return h()},children:(D,O)=>{var _=dA(),c=AA(_);{var C=A=>{var e=Ii(),t=R(e);{var r=l=>{ae(l,{get class(){return`scroller-video-foreground-text ${T().split(" ")[1]??""}`},get width(){return s()},children:(d,f)=>{var v=ki(),g=R(v);Wt(g,{get source(){return a.text}}),q(b=>{K(v,`background-color: ${u()??""};`),Ee(v,1,`foreground-text ${b??""}`,"svelte-1mm8qho")},[()=>T().split(" ")[0]]),M(d,v)},$$slots:{default:!0}})},n=l=>{var d=dA(),f=AA(d);{var v=b=>{var k=Ci(),L=R(k);ut(L,()=>a.children),M(b,k)},g=b=>{var k=dA(),L=AA(k);{var I=N=>{var Y=Pi(),rA=R(Y);ae(rA,{width:"fluid",children:(oA,tA)=>{var X=dA(),eA=AA(X);Vt(eA,()=>a.Foreground,(pA,WA)=>{WA(pA,{})}),M(oA,X)},$$slots:{default:!0}}),M(N,Y)};W(L,N=>{a.Foreground&&N(I)},!0)}M(b,k)};W(f,b=>{a.children?b(v):b(g,!1)},!0)}M(l,d)};W(t,l=>{a.text?l(r):l(n,!1)})}Ve(1,e,()=>Ge,()=>({delay:100,duration:200})),Ve(2,e,()=>Ge,()=>({delay:0,duration:100})),M(A,e)};W(c,A=>{P.generalData.currentTime>=U()&&P.generalData.currentTime<=w()&&A(C)})}M(D,_)},$$slots:{default:!0}})}jA()}Ae.__docgen={data:[{name:"id",visibility:"public",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'""'},{name:"class",visibility:"public",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"startTime",visibility:"public",keywords:[],kind:"let",type:{kind:"type",type:"number",text:"number"},static:!1,readonly:!1,defaultValue:"0"},{name:"endTime",visibility:"public",keywords:[],kind:"let",type:{kind:"type",type:"number",text:"number"},static:!1,readonly:!1,defaultValue:"1"},{name:"children",visibility:"public",keywords:[],kind:"let",type:{kind:"function",text:"Snippet<[]>"},static:!1,readonly:!1},{name:"backgroundColour",visibility:"public",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'"#000"'},{name:"width",visibility:"public",keywords:[],kind:"let",type:{kind:"union",type:[{kind:"const",type:"string",value:"narrower",text:'"narrower"'},{kind:"const",type:"string",value:"narrow",text:'"narrow"'},{kind:"const",type:"string",value:"normal",text:'"normal"'},{kind:"const",type:"string",value:"wide",text:'"wide"'},{kind:"const",type:"string",value:"wider",text:'"wider"'},{kind:"const",type:"string",value:"widest",text:'"widest"'},{kind:"const",type:"string",value:"fluid",text:'"fluid"'}],text:'"narrower" | "narrow" | "normal" | "wide" | "wider" | "widest" | "fluid"'},static:!1,readonly:!1,defaultValue:'"normal"'},{name:"position",visibility:"public",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'"center center"'},{name:"text",visibility:"public",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"Foreground",visibility:"public",keywords:[],kind:"let",type:{kind:"function",text:"Component<{}, {}, string>"},static:!1,readonly:!1}],name:"ScrollerVideoForeground.svelte"};const wt=""+new URL("waves_sm-B7mppXQh.mp4",import.meta.url).href,xt=""+new URL("waves_md-5l9I9Yj0.mp4",import.meta.url).href,St=""+new URL("waves_lg-8KxF9jEW.mp4",import.meta.url).href,Fi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApQAAATYCAYAAAChhVcRAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADhpJREFUeNrs3UFxwlAUhlGmBoqESEBCJEQCEiIBB0hAQiREAhKQgISUNwT6YJom92XV6Tkz3bRd3dU3JP272QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXJgvAgwA5sFX24igziYAAAAASUVORK5CYII=",at=""+new URL("annotation1-md-ZgX6URMF.png",import.meta.url).href,Li=""+new URL("annotation1-xl-CUHrsFtD.png",import.meta.url).href;var Di=V(`

Solid southwest swell

Tahitian local Vahine Fierro drops into a double overhead wave during a recentcompetition. Timing and position are critical to make the take-off and maximize scoring

 

Shallow water hides

a sharp reef

`),Ri=V('

Wave forms from hitting reef, and

tube will track the line of the shelf

Solid southwest swell

Tahitian local Vahine Fierro drops into

a double overhead wave during a recent

competition. Timing and position are critical

to make the take-off and maximize scoring

 

Shallow water hides

a sharp reef

'),Mi=V('

Wave forms from hitting reef, and

tube will track the line of the shelf

Solid southwest swell

Tahitian local Vahine Fierro drops into

a double overhead wave during a recent

competition. Timing and position are critical

to make the take-off and maximize scoring

 

Shallow water hides

a sharp reef

'),Oi=V('

Wave forms from hitting reef, and

tube will track the line of the shelf

Solid southwest swell

Tahitian local Vahine Fierro drops into

a double overhead wave during a recent

competition. Timing and position are critical

to make the take-off and maximize scoring

 

Shallow water hides

a sharp reef

'),Ni=V(`

Wave forms from hitting reef, and

tube will track the line of the shelf

Solid southwest swell

Tahitian local Vahine Fierro drops into

a double overhead wave during a recent

competition. Timing and position are critical

to make the take-off and maximize scoring

 

Shallow water hides

a sharp reef

`),Hi=V('
');function Ut(p){let a=pe(null);var h=Hi(),o=R(h);{var U=_=>{var c=Di(),C=F(R(c),2);q(()=>K(C,`background-image: url(${Fi});`)),M(_,c)};W(o,_=>{m(a)&&m(a)>=0&&m(a)<510&&_(U)})}var w=F(o,2);{var u=_=>{var c=Ri(),C=F(R(c),2);q(()=>K(C,`background-image: url(${zi});`)),M(_,c)};W(w,_=>{m(a)&&m(a)>=510&&m(a)<660&&_(u)})}var s=F(w,2);{var T=_=>{var c=Mi(),C=F(R(c),2);q(()=>K(C,`background-image: url(${at});`)),M(_,c)};W(s,_=>{m(a)&&m(a)>=660&&m(a)<930&&_(T)})}var P=F(s,2);{var z=_=>{var c=Oi(),C=F(R(c),2);q(()=>K(C,`background-image: url(${at});`)),M(_,c)};W(P,_=>{m(a)&&m(a)>=930&&m(a)<1200&&_(z)})}var D=F(P,2);{var O=_=>{var c=Ni(),C=F(R(c),2);q(()=>K(C,`background-image: url(${Li});`)),M(_,c)};W(D,_=>{m(a)&&m(a)>=1200&&_(O)})}ee(h,"clientWidth",_=>$(a,_)),M(p,h)}Ut.__docgen={version:3,name:"annotation1.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const Vi=""+new URL("annotation2-xs-AmjH-66U.png",import.meta.url).href,Gi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/wAAAI+CAYAAAAB9gHwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACPdJREFUeNrswTEBAAAAwqD1T20LL6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgK8JMADAawABKGYKjgAAAABJRU5ErkJggg==",ot=""+new URL("annotation2-md-DoEOko8v.png",import.meta.url).href,Yi=""+new URL("annotation2-xl-TNtxwNHv.png",import.meta.url).href;var ji=V(`

The wave at Teahupo'o is

known to be very heavy

with a thick lip that can

easily knock a surfer off the

wave and onto the reef below

Surfer speed is up

to 35 km per hour

(20 mph)

One cubic meter

of water weighs

1,000 kg. (2,200 lb)

A surfer will adjust speed to stay in the tube by dragging a hand to slow, or pumping the board to speed up

`),Wi=V('
'),Qi=V(`

The wave at Teahupo'o is

known to be very heavy

with a thick lip that can

easily knock a surfer off the

wave and onto the reef below

Surfer speed is up to

35 km per hour (20 mph)

A surfer will adjust speed to stay in

the tube by dragging a hand to slow,

or pumping the board to speed up

One cubic meter of water

weighs 1,000 kg. (2,200 lb)

`),qi=V(`

The wave at Teahupo'o is

known to be very heavy

with a thick lip that can

easily knock a surfer off the

wave and onto the reef below

The wave at Teahupo'o is

known to be very heavy

with a thick lip that can

easily knock a surfer off the

wave and onto the reef below

Surfer speed is up to

35 km per hour (20 mph)

Surfer speed is up to

35 km per hour (20 mph)

A surfer will adjust speed to stay in

the tube by dragging a hand to slow,

or pumping the board to speed up

A surfer will adjust speed to stay in

the tube by dragging a hand to slow,

or pumping the board to speed up

One cubic meter of water

weighs 1,000 kg. (2,200 lb)

One cubic meter of water

weighs 1,000 kg. (2,200 lb)

`),Ki=V(`

The wave at Teahupo'o is

known to be very heavy

with a thick lip that can

easily knock a surfer off the

wave and onto the reef below

Surfer speed is up to

35 km per hour (20 mph)

A surfer will adjust speed to stay in

the tube by dragging a hand to slow,

or pumping the board to speed up

One cubic meter of water

weighs 1,000 kg. (2,200 lb)

`),Xi=V('
');function Et(p){let a=pe(null);var h=Xi(),o=R(h);{var U=_=>{var c=ji(),C=F(R(c),2);q(()=>K(C,`background-image: url(${Vi});`)),M(_,c)};W(o,_=>{m(a)&&m(a)>=0&&m(a)<510&&_(U)})}var w=F(o,2);{var u=_=>{var c=Wi(),C=F(R(c),2);q(()=>K(C,`background-image: url(${Gi});`)),M(_,c)};W(w,_=>{m(a)&&m(a)>=510&&m(a)<660&&_(u)})}var s=F(w,2);{var T=_=>{var c=Qi(),C=F(R(c),2);q(()=>K(C,`background-image: url(${ot});`)),M(_,c)};W(s,_=>{m(a)&&m(a)>=660&&m(a)<930&&_(T)})}var P=F(s,2);{var z=_=>{var c=qi(),C=F(R(c),2);q(()=>K(C,`background-image: url(${ot});`)),M(_,c)};W(P,_=>{m(a)&&m(a)>=930&&m(a)<1200&&_(z)})}var D=F(P,2);{var O=_=>{var c=Ki(),C=F(R(c),2);q(()=>K(C,`background-image: url(${Yi});`)),M(_,c)};W(D,_=>{m(a)&&m(a)>=1200&&_(O)})}ee(h,"clientWidth",_=>$(a,_)),M(p,h)}Et.__docgen={version:3,name:"annotation2.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const Zi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApQAAATYCAYAAAChhVcRAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADH9JREFUeNrswTEBAAAAwqD1T20Gf6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHyZAAMA910AAZt4cXAAAAAASUVORK5CYII=",$i=""+new URL("annotation3-xl-BhB6_sbQ.png",import.meta.url).href;var As=V(`

Fierro is envelopedin the barrel for over two seconds, which is a long time in such an unstable environment

In comptitions, more points are scored for being deep inside a barrel which raises the chance the wave will close out on top of them.

`),es=V(`

Fierro is envelopedin the barrel for over two seconds, which is a long time in such an unstable environment

Surfers often say time distorts inside the barrel, slowing down and that the crashing wave noise falls silent, asthey expereince a sense of awe

In comptitions, more points are scored for being deep inside a barrel which raises the chance the wave will close out on top of them.

`),ts=V(`

Fierro is envelopedin the barrel for over two seconds, which is a long time in such an unstable environment

Surfers often say time distorts inside the barrel, slowing down and that the crashing wave noise falls silent, as they expereince a sense of awe

In comptitions, more points are scored for being deep inside a barrel which raises the chance the wave will close out on top of them.

`),is=V(`

Fierro is envelopedin the barrel for over two seconds, which is a long time in such an unstable environment

Surfers often say time distorts inside the barrel, slowing down and that the crashing wave noise falls silent, as they expereince a sense of awe

In comptitions, more points are scored for being deep inside a barrel which raises the chance the wave will close out on top of them.

`),ss=V(`

Fierro is envelopedin the barrel for over two seconds, which is a long time in such an unstable environment

 

Fierro is enveloped

 

in the barrel for over

 

2 seconds, which is a

 

long time in such an

 

unstable environment

 

Surfers often say time distorts inside

 

the barrel, slowing down and that the

 

crashing wave noise falls silent, as

 

they expereince a sense of awe

 

In comptitions, more points are

 

scored for being deep inside a

 

barrel which raises the chance

 

the wave will close out on top of them.

Surfers often say time distorts inside the barrel, slowing down and that the crashing wave noise falls silent, as they expereince a sense of awe

In comptitions, more points are scored for being deep inside a barrel which raises the chance the wave will close out on top of them.

`),rs=V('
');function Bt(p){let a=pe(null);var h=rs(),o=R(h);{var U=_=>{var c=As(),C=F(R(c),2);q(()=>K(C,`background-image: url(${Zi});`)),M(_,c)};W(o,_=>{m(a)&&m(a)>=0&&m(a)<510&&_(U)})}var w=F(o,2);{var u=_=>{var c=es(),C=F(R(c),2);q(()=>K(C,`background-image: url(${Ji});`)),M(_,c)};W(w,_=>{m(a)&&m(a)>=510&&m(a)<660&&_(u)})}var s=F(w,2);{var T=_=>{var c=ts(),C=F(R(c),2);q(()=>K(C,`background-image: url(${lt});`)),M(_,c)};W(s,_=>{m(a)&&m(a)>=660&&m(a)<930&&_(T)})}var P=F(s,2);{var z=_=>{var c=is(),C=F(R(c),2);q(()=>K(C,`background-image: url(${lt});`)),M(_,c)};W(P,_=>{m(a)&&m(a)>=930&&m(a)<1200&&_(z)})}var D=F(P,2);{var O=_=>{var c=ss(),C=F(R(c),2);q(()=>K(C,`background-image: url(${$i});`)),M(_,c)};W(D,_=>{m(a)&&m(a)>=1200&&_(O)})}ee(h,"clientWidth",_=>$(a,_)),M(p,h)}Bt.__docgen={version:3,name:"annotation3.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgHD+EmAAAymabZXKBs8AAAAASUVORK5CYII=",dt=""+new URL("annotation4-md-BrNAb9Rg.png",import.meta.url).href,os=""+new URL("annotation4-xl-B0riQESf.png",import.meta.url).href;var ls=V(`

The wave path is a short one, only about 100 yards long

Fierro exits the barrel with a score of 9.33 out of 10, as she was deep in the tube, had good speed and went over the foam ball on her exit

`),ds=V(`

The wave path is a short one, only about 100 yards long

Fierro exits the barrel with a score of 9.33 out of 10, as she was deep in the tube, had good speed and went over the foam ball on her exit

The wave heaves so quickly that as it forms, it pulls water off the reef, creating a ride that is often below sea level - seen as the surfer exits up and over the wave to higher water

`),hs=V(`

The wave path is a short one, only about 100 yards long

Fierro exits the barrel with a score of 9.33 out of 10, as she was deep in the tube, had good speed and went over the foam ball on her exit

The wave heaves so quickly that as it forms, it pulls water off the reef, creating a ride that is often below sea level - seen as the surfer exits up and over the wave to higher water

`),ps=V(`

The wave path is a short one,

only about 100 yards long

Fierro exits the barrel with a score of 9.33 out of 10, as she was deep in the tube, had good speed and went over the foam ball on her exit

The wave heaves so quickly that as it forms, it pulls water off the reef, creating a ride that is often below sea level - seen as the surfer exits up and over the wave to higher water

`),cs=V('

The wave path is a short one,

only about 100 yards long

Fierro exits the barrel with a score of

9.33 out of 10, as she was deep in the

tube, had good speed and went over

the foam ball on her exit

The wave heaves so quickly that as it forms,

it pulls water off the reef, creating a rid e that

is often below sea level - seen as the surfer

exits up and over the wave to higher water

'),fs=V('
');function Tt(p){let a=pe(null);var h=fs(),o=R(h);{var U=_=>{var c=ls(),C=F(R(c),2);q(()=>K(C,`background-image: url(${ns});`)),M(_,c)};W(o,_=>{m(a)&&m(a)>=0&&m(a)<510&&_(U)})}var w=F(o,2);{var u=_=>{var c=ds(),C=F(R(c),2);q(()=>K(C,`background-image: url(${as});`)),M(_,c)};W(w,_=>{m(a)&&m(a)>=510&&m(a)<660&&_(u)})}var s=F(w,2);{var T=_=>{var c=hs(),C=F(R(c),2);q(()=>K(C,`background-image: url(${dt});`)),M(_,c)};W(s,_=>{m(a)&&m(a)>=660&&m(a)<930&&_(T)})}var P=F(s,2);{var z=_=>{var c=ps(),C=F(R(c),2);q(()=>K(C,`background-image: url(${dt});`)),M(_,c)};W(P,_=>{m(a)&&m(a)>=930&&m(a)<1200&&_(z)})}var D=F(P,2);{var O=_=>{var c=cs(),C=F(R(c),2);q(()=>K(C,`background-image: url(${os});`)),M(_,c)};W(D,_=>{m(a)&&m(a)>=1200&&_(O)})}ee(h,"clientWidth",_=>$(a,_)),M(p,h)}Tt.__docgen={version:3,name:"annotation4.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};var us=V(" ",1);function kt(p,a){YA(a,!0);const h=(D,O=Oe,_=Oe)=>{lA(D,{get id(){return w.id},get height(){return O()},get src(){return _()},useWebCodecs:!0,showDebugInfo:!0,children:(c,C)=>{var A=us(),e=AA(A);{let r=vA(()=>parseFloat(U.startTime)),n=vA(()=>parseFloat(U.endTime));Ae(e,{get startTime(){return m(r)},get endTime(){return m(n)},children:(l,d)=>{{let f=vA(()=>new Date(U.publishTime).toISOString());Qt(l,{class:"custom-headline",get hed(){return U.hed},get authors(){return U.authors},get publishTime(){return m(f)}})}},$$slots:{default:!0}})}var t=F(e,2);Ie(t,17,()=>w.foregrounds,Fe,(r,n)=>{{let l=vA(()=>parseFloat(m(n).startTime)),d=vA(()=>parseFloat(m(n).endTime));Ae(r,{get startTime(){return m(l)},get endTime(){return m(d)},get width(){return m(n).width},get Foreground(){return o[m(n).foreground]}})}}),M(c,A)},$$slots:{default:!0}})},o={Foreground1:Ut,Foreground2:Et,Foreground3:Bt,Foreground4:Tt},U={hed:"Wind and waves",authors:["Jane Doe"],publishTime:"2020-01-01T00:00:00Z",startTime:"0",endTime:"0.3",blocks:[{type:"scroller-video",id:"surf-scroller",height:"800lvh",foregrounds:[{startTime:"0.3",endTime:"2.2",width:"fluid",foreground:"Foreground1"},{startTime:"2.2",endTime:"3.2",width:"fluid",foreground:"Foreground2"},{startTime:"3.2",endTime:"4.5",width:"fluid",foreground:"Foreground3"},{startTime:"6.5",endTime:"8",width:"fluid",foreground:"Foreground4"}]}]},w=U.blocks[0];let u=fA(1);var s=dA(),T=AA(s);{var P=D=>{h(D,()=>w.height,()=>wt)},z=D=>{var O=dA(),_=AA(O);{var c=A=>{h(A,()=>w.height,()=>xt)},C=A=>{h(A,()=>w.height,()=>St)};W(_,A=>{m(u)<1200?A(c):A(C,!1)},!0)}M(D,O)};W(T,D=>{m(u)<600?D(P):D(z,!1)})}ct("innerWidth",D=>$(u,D,!0)),M(p,s),jA()}kt.__docgen={version:3,name:"WithAi2svelteForegrounds.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const gs=""+new URL("drone-QGa52VJ6.mp4",import.meta.url).href;function Ct(p){const h={blocks:[{type:"scroller-video",id:"alps-scroller",src:"videos/alps.mp4",height:"800lvh",foregrounds:[{startTime:"0",endTime:"5",width:"normal",position:"bottom center",backgroundColour:"rgba(0, 0, 0, 0.8)",text:`#### The Alps The Alps stretch across eight countries: France, Switzerland, Italy, Monaco, Liechtenstein, Austria, Germany, and Slovenia, covering about 1,200 kilometers (750 miles).`},{startTime:"7",endTime:"12",width:"normal",position:"bottom center",backgroundColour:"rgba(0, 0, 0, 0.8)",text:"Mont Blanc, standing at 4,809 meters (15,777 feet), is the highest peak in the Alps and Western Europe, though there's ongoing debate between France and Italy about exactly where the summit lies."},{startTime:"14",endTime:"20",width:"normal",position:"bottom center",backgroundColour:"rgba(0, 0, 0, 0.8)",text:`#### History The Alps were formed around **65 million years** ago when the African and Eurasian tectonic plates collided, pushing the land upward. Over 14 million people live in the Alpine region, with tourism supporting approximately 120 million visitors annually.`}]}]}.blocks[0];lA(p,{get id(){return h.id},get height(){return h.height},get src(){return gs},useWebCodecs:!0,showDebugInfo:!0,children:(o,U)=>{var w=dA(),u=AA(w);Ie(u,1,()=>h.foregrounds,Fe,(s,T)=>{{let P=Ne(()=>parseFloat(m(T).startTime)),z=Ne(()=>parseFloat(m(T).endTime));Ae(s,{get startTime(){return m(P)},get endTime(){return m(z)},get width(){return m(T).width},get position(){return m(T).position},get backgroundColour(){return m(T).backgroundColour},get text(){return m(T).text}})}}),M(o,w)},$$slots:{default:!0}})}Ct.__docgen={version:3,name:"WithTextForegrounds.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};var vs=V(" ",1);function Pt(p){const a={blocks:[{type:"scroller-video",id:"goldengate-scroller",src:"../videos/goldengate.mp4",height:"200lvh",foregrounds:[{startTime:"0",endTime:"2",width:"normal",position:"bottom center",backgroundColour:"rgba(0, 0, 0, 0.8)",text:`#### Golden Gate Bridge The Golden Gate Bridge took over 4 years to build (1933-1937) and was the longest suspension bridge in the world at the time of its completion, spanning 4,200 feet between its towers.`},{startTime:"4",endTime:"7",width:"normal",position:"bottom center",backgroundColour:"rgba(0, 0, 0, 0.8)",text:"The bridge's iconic International Orange color was chosen partly for visibility in San Francisco's frequent fog. The paint job requires constant maintenance, with a dedicated crew painting the bridge year-round to protect it from rust and corrosion."},{startTime:"8",endTime:"11",width:"normal",position:"bottom center",backgroundColour:"rgba(0, 0, 0, 0.8)",text:`#### Engineering Marvel The Golden Gate Bridge sways up to **27 feet** sideways in strong winds and can handle winds up to 100 mph. On foggy days, the bridge can collect enough moisture to drip like rain, and it has been struck by ships only once in its history.`}]}]},h="**In embedded mode, `ScrollerVideo` behaves like a normal video player, autoplaying the video when the user scrolls onto it.**",o="Reprehenderit hamburger pork bresaola, dolore chuck sirloin landjaeger ham hock tempor meatball alcatra nostrud pork belly. Culpa pork belly doner ea jowl, elit deserunt leberkas cow shoulder ham hock dolore.",U=a.blocks[0];let w=!0;var u=vs(),s=AA(u);cA(s,{text:h});var T=F(s,2);cA(T,{text:o});var P=F(T,2);cA(P,{text:o});var z=F(P,2);cA(z,{text:o});var D=F(z,2);cA(D,{text:o});var O=F(D,2);cA(O,{text:o});var _=F(O,2);lA(_,{get src(){return Re},class:"embedded-demo",showDebugInfo:!0,embedded:w,embeddedProps:{threshold:.5,duration:12e3,delay:200},children:(n,l)=>{var d=dA(),f=AA(d);Ie(f,17,()=>U.foregrounds,Fe,(v,g)=>{{let b=vA(()=>parseFloat(m(g).startTime)),k=vA(()=>parseFloat(m(g).endTime));Ae(v,{get startTime(){return m(b)},get endTime(){return m(k)},get width(){return m(g).width},get position(){return m(g).position},get backgroundColour(){return m(g).backgroundColour},get text(){return m(g).text}})}}),M(n,d)},$$slots:{default:!0}});var c=F(_,2);cA(c,{text:o});var C=F(c,2);cA(C,{text:o});var A=F(C,2);cA(A,{text:o});var e=F(A,2);cA(e,{text:o});var t=F(e,2);cA(t,{text:o});var r=F(t,2);cA(r,{text:o}),M(p,u)}Pt.__docgen={version:3,name:"Embedded.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const _s=""+new URL("tennis-BnXXVZxy.mp4",import.meta.url).href;var ms=V('

',1);function It(p,a){YA(a,!0);let h=fA(void 0),o=fA(0),U=fA(0);function w(){var u,s;m(U)===0?(u=m(h))==null||u.setVideoPercentage(0,{jump:!1}):(s=m(h))==null||s.setVideoPercentage(1,{jump:!1}),$(o,requestAnimationFrame(w),!0)}ft(()=>{cancelAnimationFrame(m(o))}),gt(p,{query:"div.step-foreground-container",get index(){return m(U)},set index(T){$(U,T,!0)},backgroundSnippet:T=>{lA(T,{get src(){return _s},height:"100lvh",trackScroll:!1,showDebugInfo:!0,onReady:w,get scrollerVideo(){return m(h)},set scrollerVideo(P){$(h,P,!0)}})},foregroundSnippet:T=>{var P=ms(),z=AA(P),D=R(z),O=R(D),_=F(z,2),c=R(_),C=R(c);q(()=>{uA(O,`Index ${m(U)??""}`),uA(C,`Index ${m(U)??""}`)}),M(T,P)},$$slots:{backgroundSnippet:!0,foregroundSnippet:!0}}),jA()}It.__docgen={version:3,name:"AdvancedUsecases.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const Ft={title:"Components/Graphics/ScrollerVideo",component:lA,argTypes:{autoplay:{control:"boolean",table:{defaultValue:{summary:"false"}}},class:{control:"text",table:{defaultValue:{summary:""}}},debug:{control:"boolean",table:{defaultValue:{summary:"false"}}},frameThreshold:{control:"number",table:{defaultValue:{summary:"0.1"}}},full:{control:"boolean",table:{defaultValue:{summary:"true"}}},lockScroll:{control:"boolean",table:{defaultValue:{summary:"true"}}},objectFit:{control:"select",options:["contain","cover"],table:{defaultValue:{summary:"cover"}}},onChange:{table:{type:{summary:"function"},defaultValue:{summary:"() => {}"},category:"Bindable states"}},onReady:{table:{type:{summary:"function"},defaultValue:{summary:"() => {}"},category:"Bindable states"}},scrollerVideo:{table:{category:"Bindable states"}},showDebugInfo:{control:"boolean",table:{defaultValue:{summary:"false"}}},src:{control:"text",table:{defaultValue:{summary:"https://scrollyvideo.js.org/goldengate.mp4"}}},sticky:{control:"boolean",table:{defaultValue:{summary:"true"}}},trackScroll:{control:"boolean",table:{defaultValue:{summary:"true"}}},transitionSpeed:{control:"number",table:{defaultValue:{summary:"8"}}},useWebCodecs:{control:"boolean",table:{defaultValue:{summary:"true"}}},videoPercentage:{control:"number",table:{category:"Bindable states"}}}},{Story:bA}=Yt();let Ue=fA(0);var ys=V(" ",1);function zt(p,a){YA(a,!0);const h={Video_SM:wt,Video_MD:xt,Video_LG:St,Goldengate:Re},o={showDebugInfo:!0};var U=ys(),w=AA(U);bA(w,{name:"Demo",children:(c,C)=>{lA(c,zA(()=>o,{get src(){return h.Goldengate}}))},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:""}}});var u=F(w,2);bA(u,{name:"Object Fit",children:(c,C)=>{ae(c,{width:"normal",children:(A,e)=>{lA(A,zA(()=>o,{get src(){return h.Goldengate},objectFit:"contain"}))},$$slots:{default:!0}})},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:` `}}});var s=F(u,2);bA(s,{name:"Responsive videos",exportName:"ResponsiveVideos",children:(c,C)=>{var A=dA(),e=AA(A);{var t=n=>{lA(n,zA(()=>o,{get src(){return h.Video_SM}}))},r=n=>{var l=dA(),d=AA(l);{var f=g=>{lA(g,zA(()=>o,{get src(){return h.Video_MD}}))},v=g=>{lA(g,zA(()=>o,{get src(){return h.Video_LG}}))};W(d,g=>{m(Ue)<1200?g(f):g(v,!1)},!0)}M(n,l)};W(e,n=>{m(Ue)<600?n(t):n(r,!1)})}M(c,A)},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:`{#if width < 600} {:else if width < 1200} {:else} {/if}`}}});var T=F(s,2);bA(T,{name:"Embed version",exportName:"Embed",children:(c,C)=>{Pt(c)},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:""}}});var P=F(T,2);bA(P,{name:"Autoplay",children:(c,C)=>{lA(c,zA(()=>o,{get src(){return h.Goldengate},autoplay:!0}))},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:""}}});var z=F(P,2);bA(z,{name:"Time-based foregrounds with ArchieML",exportName:"ArchieMLForegrounds",get args(){return o},children:(c,C)=>{Ct(c)},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:""}}});var D=F(z,2);bA(D,{name:"Time-based component foregrounds with ArchieML",exportName:"ComponentArchieMLForegrounds",get args(){return o},children:(c,C)=>{kt(c,{})},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:""}}});var O=F(D,2);bA(O,{name:"Using with ScrollerBase",exportName:"ScrollerBase",get args(){return o},children:(c,C)=>{bt(c)},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:""}}});var _=F(O,2);bA(_,{name:"Advanced usecases",exportName:"Advanced",get args(){return o},children:(c,C)=>{It(c,{})},$$slots:{default:!0},parameters:{__svelteCsf:{rawCode:""}}}),ct("innerWidth",c=>$(Ue,c,!0)),M(p,U),jA()}zt.__docgen={version:3,name:"ScrollerVideo.stories.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const UA=Gt(zt,Ft),bs=["Demo","ObjectFit","ResponsiveVideos","Embed","Autoplay","ArchieMLForegrounds","ComponentArchieMLForegrounds","ScrollerBase","Advanced"],ws=UA.Demo,xs=UA.ObjectFit,Ss=UA.ResponsiveVideos,Us=UA.Embed,Es=UA.Autoplay,Bs=UA.ArchieMLForegrounds,Ts=UA.ComponentArchieMLForegrounds,ks=UA.ScrollerBase,Cs=UA.Advanced,Zs=Object.freeze(Object.defineProperty({__proto__:null,Advanced:Cs,ArchieMLForegrounds:Bs,Autoplay:Es,ComponentArchieMLForegrounds:Ts,Demo:ws,Embed:Us,ObjectFit:xs,ResponsiveVideos:Ss,ScrollerBase:ks,__namedExportsOrder:bs,default:Ft},Symbol.toStringTag,{value:"Module"}));export{Zs as S};