@kymoscope/sdk 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{importer.worker-jzXF4fDD.js → importer.worker-CiiLni0T.js} +1 -1
- package/dist/importer-CLYlv_9G.js +12 -0
- package/dist/importers-GN37e7wh.js +1036 -0
- package/dist/kymoscope-embed.js +117 -117
- package/dist/kymoscope-sdk.js +82 -82
- package/dist/types/embed/license.d.ts +10 -4
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/cycles/cut.d.ts +1 -1
- package/dist/types/lib/importers/xlsx/zip.d.ts +4 -1
- package/dist/types/lib/live/publisher.d.ts +1 -1
- package/dist/types/lib/live/recorder.d.ts +6 -3
- package/dist/types/lib/measurePack.d.ts +2 -0
- package/package.json +1 -1
- package/dist/importer-DhJq-CnQ.js +0 -12
- package/dist/importers-C8Byhb42.js +0 -1036
|
@@ -1,1036 +0,0 @@
|
|
|
1
|
-
/*! @kymoscope/sdk (c) 2026 Kymoscope. Proprietary software: use requires a license. See LICENSE.md. */
|
|
2
|
-
import{$t as e,An as t,Bn as n,Bt as r,C as i,Cn as a,Dn as o,En as s,Fn as c,Gn as l,Gt as u,Hn as d,Ht as f,In as p,It as m,Jt as h,Kt as g,Ln as _,Lt as v,Mn as y,Nn as b,On as x,Pn as S,Pt as C,Qt as w,Rn as T,Tn as E,Un as D,Ut as O,Vn as k,Vt as A,Wn as j,Wt as M,Xt as N,Yt as ee,Zt as te,_n as ne,bn as re,cn as ie,d as ae,dn as oe,en as se,f as ce,fn as le,gn as ue,hn as de,in as fe,jn as pe,kn as me,ln as he,mn as ge,n as _e,nn as ve,on as ye,pn as be,qt as xe,rn as Se,sn as Ce,tn as we,un as Te,ur as Ee,vn as De,wn as Oe,xn as ke,yn as Ae,zn as je,zt as Me}from"./importer-DhJq-CnQ.js";function Ne(e,t){return e.selection.find(e=>e.group===t)?.channels??[]}var Pe=4096,Fe={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh,cosh:Math.cosh,tanh:Math.tanh,exp:Math.exp,ln:Math.log,log:Math.log,log10:Math.log10,sqrt:Math.sqrt,abs:Math.abs,pow:Math.pow,min:Math.min,max:Math.max};function Ie(e){if(e.length>Pe)return null;let t=e.match(/\d+\.?\d*(?:[eE][+-]?\d+)?|\.\d+(?:[eE][+-]?\d+)?|[A-Za-z_]\w*|\*\*|[-+*/^(),]|\S/g)??[],n=0,r=()=>t[n],i=()=>{throw Error(`formula`)},a=e=>{t[n++]!==e&&i()},o=()=>{let e=s();for(;r()===`+`||r()===`-`;){let r=t[n++],i=e,a=s();e=r===`+`?e=>i(e)+a(e):e=>i(e)-a(e)}return e},s=()=>{let e=c();for(;r()===`*`||r()===`/`;){let r=t[n++],i=e,a=c();e=r===`*`?e=>i(e)*a(e):e=>i(e)/a(e)}return e},c=()=>{if(r()===`-`){n++;let e=c();return t=>-e(t)}return r()===`+`?(n++,c()):l()},l=()=>{let e=u();if(r()===`^`||r()===`**`){n++;let t=c();return n=>e(n)**t(n)}return e},u=()=>{let e=t[n++];if(e===void 0&&i(),e===`(`){let e=o();return a(`)`),e}if(/^[\d.]/.test(e)){let t=Number(e);return Number.isFinite(t)||i(),()=>t}if(e===`X`||e===`x`||e===`X1`)return e=>e;if(Object.hasOwn(Fe,e)){let t=Fe[e];a(`(`);let i=[o()];for(;r()===`,`;)n++,i.push(o());return a(`)`),i.length===1?e=>t(i[0](e)):e=>t(...i.map(t=>t(e)))}return i()};try{let e=o();return n===t.length?e:null}catch{return null}}var Le={k:`id`};function Re(e,t){let{keys:n,vals:r}=e,i=n.length;if(i===0)return t;if(t<=n[0])return r[0];if(t>=n[i-1])return r[i-1];let a=0,o=i-1;for(;o-a>1;){let e=a+o>>1;n[e]<=t?a=e:o=e}return e.interp?r[a]+(r[o]-r[a])*(t-n[a])/(n[o]-n[a]):t-n[a]<=n[o]-t?r[a]:r[o]}function ze(e,t){let n=t.length;switch(e.k){case`lin`:{let{a:r,b:i}=e;if(r===1&&i===0)return;for(let e=0;e<n;e++)t[e]=r*t[e]+i;return}case`rat`:{let[r,i,a,o,s,c]=e.p;for(let e=0;e<n;e++){let n=t[e];t[e]=(r*n*n+i*n+a)/(o*n*n+s*n+c)}return}case`poly`:{let[r,i,a,o,s,c]=e.p;for(let e=0;e<n;e++){let n=t[e]-s-c;t[e]=(i-o*n)/(a*n-r)}return}case`alg`:{let r=e.f;for(let e=0;e<n;e++)t[e]=r(t[e]);return}case`tab`:for(let r=0;r<n;r++)t[r]=Re(e,t[r]);return;case`rtv`:for(let r=0;r<n;r++){let n=t[r],i=e.def;for(let t=0;t<e.lo.length;t++)if(n>=e.lo[t]&&n<=e.hi[t]){i=e.vals[t];break}t[r]=i}return;default:return}}function Be(e,t){let n=Float64Array.of(t);return ze(e,n),n[0]}var Ve=(e,t)=>e===null||typeof e==`string`?e:String(Be(e,t));function He(e,t){let n=Array(t.length),r=e.ranges.every(e=>e.lo===e.hi)?new Map(e.ranges.map(e=>[e.lo,e.to])):null;for(let i=0;i<t.length;i++){let a=t[i];if(a!==a){n[i]=null;continue}let o=e.def;if(r){let e=r.get(a);e!==void 0&&(o=e)}else for(let t of e.ranges)if(a>=t.lo&&(e.int||t.lo===t.hi?a<=t.hi:a<t.hi)){o=t.to;break}n[i]=Ve(o,a)}return n}function Ue(e,t){let n=(e,t)=>({type:e,bigEndian:t,encoding:`latin1`});switch(e){case 0:return n(`uint`,!t);case 1:return n(`int`,!t);case 2:case 3:return n(`float`,!t);case 7:return n(`string`,!1);case 8:return n(`bytes`,!1);case 9:return n(`uint`,!0);case 10:return n(`int`,!0);case 11:case 12:return n(`float`,!0);case 13:return n(`uint`,!1);case 14:return n(`int`,!1);case 15:case 16:return n(`float`,!1);default:return null}}async function We(e,t,r){let i=l(t).getUint16(24,!0)===0,a=()=>Error(`This MDF file is damaged (a block is cut short or lies outside the file).`),o=async(t,n=4)=>{let r=await e.read(t,4);if(r.length<4)throw a();let o=l(r).getUint16(2,i),s=await e.read(t,o);if(o<n||s.length<o)throw a();return{id:je(s.subarray(0,2)),v:l(s),b:s,size:o}},s=(e,t)=>e.getUint32(t,i),c=(e,t)=>e.getUint16(t,i),u=(e,t)=>e.getFloat64(t,i),d=async e=>e?n((await o(e)).b.subarray(4),!0):``,f=[],p=new Set,m=e=>{if(p.has(e))throw Error(`This MDF file is damaged (its blocks link in a loop).`);p.add(e)},h=async(e,t)=>{if(!e)return{conv:Le,unit:``};let{v:r,b:i}=await o(e,46),l=n(i.subarray(22,42),!0),f=c(r,42),p=c(r,44);if(46+(f===0?16:f===1||f===2?16*p:f===6||f===9?48:f===11?40*p:f===12?20*p:0)>i.length)throw a();let m=e=>u(r,46+8*e);switch(f){case 0:return{conv:{k:`lin`,a:m(1),b:m(0)},unit:l};case 1:case 2:{let e=new Float64Array(p),t=new Float64Array(p);for(let n=0;n<p;n++)e[n]=m(2*n),t[n]=m(2*n+1);return{conv:{k:`tab`,keys:e,vals:t,interp:f===1},unit:l}}case 6:return{conv:{k:`poly`,p:[0,1,2,3,4,5].map(m)},unit:l};case 9:return{conv:{k:`rat`,p:[0,1,2,3,4,5].map(m)},unit:l};case 10:{let e=n(i.subarray(46,302),!0),t=Ie(e);return{conv:t?{k:`alg`,f:t}:{k:`unsupported`,what:`the formula "${e}"`},unit:l}}case 11:return{conv:{k:`text`,ranges:Array.from({length:p},(e,t)=>{let a=46+40*t,o=u(r,a);return{lo:o,hi:o,to:n(i.subarray(a+8,a+40),!0)}}),def:null,int:t},unit:l};case 12:{let e=await Promise.all(Array.from({length:p},async(e,t)=>{let n=46+20*t;return{lo:u(r,n),hi:u(r,n+8),to:await d(s(r,n+16))}}));return{conv:{k:`text`,ranges:e.slice(1),def:e[0]?.to??null,int:t},unit:l}}case 65535:return{conv:Le,unit:l};default:return{conv:{k:`unsupported`,what:`MDF3 conversion type ${f}`},unit:l}}},g=await o(64,8),_=null;if(g.size>=172&&(s(g.v,164)||s(g.v,168))){let e=s(g.v,168)*4294967296+s(g.v,164);_=new Date(e/1e6).toISOString()}else{let e=je(g.b.subarray(18,28)),t=je(g.b.subarray(28,36));/^\d\d:\d\d:\d{4}$/.test(e)&&(_=`${e.slice(6)}-${e.slice(3,5)}-${e.slice(0,2)}T${t}`)}let v=[],y=0;for(let e=s(g.v,4),t=0;e;t++){m(e);let r=await o(e,24),a=c(r.v,22),l=[];for(let e=s(r.v,8);e;){m(e);let r=await o(e,26),u=[],p=null;for(let e=s(r.v,8);e;){m(e);let t=await o(e,192),r=n(t.b.subarray(26,58),!0),a=(t.size>=222?await d(s(t.v,218)):``)||r,l=Ue(c(t.v,190),i),g=c(t.v,186)+(t.size>=228?8*c(t.v,226):0);if(!l)f.push(`${a}: MDF3 data type ${c(t.v,190)} is not supported; skipped.`);else{let{conv:e,unit:n}=await h(s(t.v,8),l.type!==`float`),r={name:a,unit:n,kind:c(t.v,24)===1?`master`:`value`,...l,conv:e,sd:null,sdRecordId:null,byteOffset:g>>3,bitOffset:g&7,bitCount:c(t.v,188),invalBit:null,allInvalid:!1};r.kind===`master`&&!p?p=r:r.kind===`value`&&u.push(r)}e=s(t.v,4)}y++,l.push({name:await d(s(r.v,12))||`Group ${y}`,dg:t,recordId:c(r.v,16),recordIdSize:+(a>0),idTrailer:+(a===2),dataBytes:c(r.v,20),invalBytes:0,cycles:s(r.v,22),vlsdCg:!1,sorted:!0,master:p,channels:u,stream:[],busType:0,busEvent:!1}),e=s(r.v,4)}let u=l.reduce((e,t)=>e+t.cycles*(t.recordIdSize+t.dataBytes+t.idTrailer),0),p=[{offset:s(r.v,16),length:u,zip:null}];for(let e of l)e.stream=p,e.sorted=l.length===1,v.push(e);e=s(r.v,4)}return{version:`MDF ${r}`,startTime:_,groups:v,notes:f,meta:{}}}var Ge=`This MF4 is damaged (its blocks link in a loop).`;function Ke(e,t){if(e.seen.has(t))throw Error(Ge);e.seen.add(t)}async function qe(e,t){let n=await e.read(t,24);if(n.length<24)throw Error(`This MF4 is damaged (bad block at byte ${t}).`);let r=l(n),i=je(n.subarray(0,4)),a=D(r,8),o=D(r,16);if(!i.startsWith(`##`)||a<24+8*o||a>1<<26)throw Error(`This MF4 is damaged (bad block at byte ${t}).`);let s=await e.read(t,a);if(s.length<a)throw Error(`This MF4 is damaged (the block at byte ${t} runs past the end of the file).`);let c=l(s),u=[];for(let e=0;e<o;e++)u.push(D(c,24+8*e));let d=s.subarray(24+8*o);return{id:i,links:u,data:l(d),bytes:d}}var Je={lt:`<`,gt:`>`,amp:`&`,quot:`"`,apos:`'`};function Ye(e){let t=e.indexOf(`<TX>`),n=t<0?-1:e.indexOf(`</TX>`,t+4);return(n>=0?e.slice(t+4,n):e.replace(/<[^<>]*>/g,``)).replace(/&(lt|gt|amp|quot|apos);/g,(e,t)=>Je[t]).trim()}function Xe(e,t){if(!t)return Promise.resolve(``);let r=e.texts.get(t);return r||(r=qe(e.io,t).then(e=>{let t=n(e.bytes);return e.id===`##MD`?Ye(t):t}),e.texts.set(t,r)),r}async function Ze(e,t,n=0){if(!t)return[];let i=e.io,a=await i.read(t,24),o=je(a.subarray(0,4)),s=a.length<24?0:D(l(a),8);switch(o){case`##DT`:case`##SD`:case`##RD`:return[{offset:t+24,length:s-24,zip:null}];case`##DZ`:{let e=l(await i.read(t+24,24));if(e.byteLength<24)throw Error(`This MF4 is damaged (bad block at byte ${t}).`);let n=e.getUint8(2);if(n===2||n===3)throw Error(`This MF4 uses zstd compression, which isn't supported yet.`);if(n===4||n===5)throw Error(`This MF4 uses LZ4 compression, which isn't supported yet.`);if(n>5)throw Error(`This MF4 is damaged (unknown compression type ${n}).`);let a=e.getUint32(4,!0),o=D(e,8),s=D(e,16);if(o>r(s)||n===1&&a===0)throw Error(`This MF4 is damaged (bad compressed block at byte ${t}).`);if(n===1&&o>268435456)throw Error(`This MF4 has a compressed block over 256 MB, which Kymoscope cannot read.`);return[{offset:t+48,length:s,zip:{type:n,param:a,orgLength:o}}]}case`##DL`:{if(n>1)throw Error(`This MF4 is damaged (unexpected ${o} block in its data).`);let r=[];for(let n=t;n;){Ke(e,n);let t=await qe(i,n);for(let n of t.links.slice(1))r.push(...await Ze(e,n,2));n=t.links[0]}return r}case`##HL`:if(n>0)throw Error(`This MF4 is damaged (unexpected ${o} block in its data).`);return Ke(e,t),Ze(e,(await qe(i,t)).links[0],1);case`##DV`:case`##DI`:throw Error(`This MF4 uses column-oriented storage (MDF 4.2 DV/DI blocks), which Kymoscope cannot read yet.`);default:throw Error(`This MF4 is damaged (unexpected ${o} block in its data).`)}}async function Qe(e,t,n){return t?je(await e.io.read(t,4))===`##CC`?$e(e,t,n+1):Xe(e,t):null}async function $e(e,t,n=0){if(!t||n>4||e.busy.has(t))return Le;let r=e.convs.get(t);if(r)return r;e.busy.add(t);try{let r=await et(e,t,n);return e.convs.set(t,r),r}finally{e.busy.delete(t)}}async function et(e,t,n){let r=await qe(e.io,t),i=r.data,a=i.getUint8(0),o=i.getUint16(4,!0),s=i.getUint16(6,!0),c=new Float64Array(s);for(let e=0;e<s;e++)c[e]=i.getFloat64(24+8*e,!0);let l=r.links.slice(4,4+o),u=()=>Promise.all(l.map(t=>Qe(e,t,n)));switch(a){case 0:return Le;case 1:return{k:`lin`,b:c[0],a:c[1]};case 2:return{k:`rat`,p:[...c]};case 3:{let t=await Xe(e,l[0]),n=Ie(t);return n?{k:`alg`,f:n}:{k:`unsupported`,what:`the formula "${t}"`}}case 4:case 5:{let e=s>>1,t=new Float64Array(e),n=new Float64Array(e);for(let r=0;r<e;r++)t[r]=c[2*r],n[r]=c[2*r+1];return{k:`tab`,keys:t,vals:n,interp:a===4}}case 6:{let e=Math.max(0,Math.floor((s-1)/3)),t=new Float64Array(e),n=new Float64Array(e),r=new Float64Array(e);for(let i=0;i<e;i++)t[i]=c[3*i],n[i]=c[3*i+1],r[i]=c[3*i+2];return{k:`rtv`,lo:t,hi:n,vals:r,def:c[s-1]}}case 7:{let e=await u();return{k:`text`,ranges:[...c].map((t,n)=>({lo:t,hi:t,to:e[n]??null})),def:e[s]??null,int:!0}}case 8:{let e=await u(),t=s>>1;return{k:`text`,ranges:Array.from({length:t},(t,n)=>({lo:c[2*n],hi:c[2*n+1],to:e[n]??null})),def:e[t]??null,int:!0}}default:return{k:`unsupported`,what:`conversion type ${a}`}}}var tt={0:{type:`uint`,bigEndian:!1,encoding:`latin1`},1:{type:`uint`,bigEndian:!0,encoding:`latin1`},2:{type:`int`,bigEndian:!1,encoding:`latin1`},3:{type:`int`,bigEndian:!0,encoding:`latin1`},4:{type:`float`,bigEndian:!1,encoding:`latin1`},5:{type:`float`,bigEndian:!0,encoding:`latin1`},6:{type:`string`,bigEndian:!1,encoding:`latin1`},7:{type:`string`,bigEndian:!1,encoding:`utf-8`},8:{type:`string`,bigEndian:!1,encoding:`utf-16le`},9:{type:`string`,bigEndian:!0,encoding:`utf-16be`},10:{type:`bytes`,bigEndian:!1,encoding:`latin1`}};async function nt(e,t){let{io:n,notes:r}=e,i=t.data,a=i.getUint8(0),o=i.getUint8(1),s=i.getUint8(2),c=await Xe(e,t.links[2]),l=tt[s];if(!l)return r.push(`${c}: data type ${s} is not supported; the channel was skipped.`),null;let u;if(a===2||a===3)if(o===1)u=a===2?`master`:`vmaster`;else{if(r.push(`The master channel ${c} is not time (sync type ${o}): samples are numbered instead.`),a===3)return null;u=`value`}else if(a===1)u=`vlsd`;else if(a===0||a===4)u=`value`;else return r.push(`${c}: channel type ${a} is not supported; skipped.`),null;let d=await $e(e,t.links[4]),f=d.k===`text`?{...d,int:l.type!==`float`}:d,p=await Xe(e,t.links[6]);!p&&t.links[4]&&(p=await Xe(e,(await qe(n,t.links[4])).links[1]));let m=null,h=null;u===`vlsd`&&t.links[5]&&(je(await n.read(t.links[5],4))===`##CG`?h=D((await qe(n,t.links[5])).data,0):m=await Ze(e,t.links[5]));let g=i.getUint32(12,!0);return{name:c,unit:p,kind:u,...l,conv:f,sd:m,sdRecordId:h,byteOffset:i.getUint32(4,!0),bitOffset:i.getUint8(3),bitCount:i.getUint32(8,!0),invalBit:g&2?i.getUint32(16,!0):null,allInvalid:(g&1)!=0}}async function rt(e,t,n,r=0){let{io:i,notes:a}=e;for(let o=t;o;){Ke(e,o);let t=await qe(i,o),s=t.links[1];s&&r<4&&(je(await i.read(s,4))===`##CN`?await rt(e,s,n,r+1):a.push(`${await Xe(e,t.links[2])}: array channels (CA) are not supported yet; skipped.`));let c=await nt(e,t);c&&n.push(c),o=t.links[0]}}async function it(e,t,n,r){let i=t.data,a=i.getUint16(16,!0),o=0;t.links[3]&&(o=(await qe(e.io,t.links[3])).data.getUint8(1));let s={name:await Xe(e,t.links[2]),dg:n,recordId:D(i,0),recordIdSize:r,idTrailer:0,dataBytes:i.getUint32(24,!0),invalBytes:i.getUint32(28,!0),cycles:D(i,8),vlsdCg:(a&1)!=0,sorted:!0,master:null,channels:[],stream:[],busType:o,busEvent:(a&2)!=0};if(s.vlsdCg)return s;let c=[];await rt(e,t.links[1],c);for(let e of c)e.kind===`master`||e.kind===`vmaster`?s.master||=e:s.channels.push(e);return s}async function at(e,t){let n=await qe(e,64);if(n.id!==`##HD`)throw Error(`This MF4 is damaged (no header block).`);let r=D(n.data,0),i=(n.data.getUint8(12)&1)!=0,a=new Date(r/1e6).toISOString(),o=r>0?i?a.slice(0,-1):a:null,s={io:e,notes:[],seen:new Set,texts:new Map,convs:new Map,busy:new Set},c=[],l=0;for(let t=n.links[0],r=0;t;r++){Ke(s,t);let n=await qe(e,t),i=n.data.getUint8(0),a=[];for(let t=n.links[1];t;){Ke(s,t);let n=await qe(e,t),o=await it(s,n,r,i);o.vlsdCg||(l++,o.name||=`Group ${l}`),a.push(o),t=n.links[0]}let o=await Ze(s,n.links[2]),u=a.length===1;for(let e of a)e.stream=o,e.sorted=u,c.push(e);t=n.links[0]}return{version:`MF4 ${t}`,startTime:o,groups:c,notes:s.notes,meta:{}}}function ot(e){let t=e&32768?-1:1,n=e>>10&31,r=e&1023;return n===0?t*2**-14*(r/1024):n===31?r?NaN:t*(1/0):t*2**(n-15)*(1+r/1024)}function st(e,t,n,r,i,a,o=0){let s=l(t),c=!e.bigEndian,u=i+e.byteOffset,d=e.bitCount;if(e.bitOffset===0)if(e.type===`float`){if(d===64){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getFloat64(u,c);return}if(d===32){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getFloat32(u,c);return}if(d===16){for(let e=0;e<n;e++,u+=r)a[o+e]=ot(s.getUint16(u,c));return}}else if(e.type===`int`){if(d===8){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getInt8(u);return}if(d===16){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getInt16(u,c);return}if(d===32){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getInt32(u,c);return}if(d===64){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getInt32(u+(c?4:0),c)*4294967296+s.getUint32(u+(c?0:4),c);return}}else{if(d===8){for(let e=0;e<n;e++,u+=r)a[o+e]=t[u];return}if(d===16){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getUint16(u,c);return}if(d===32){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getUint32(u,c);return}if(d===64){for(let e=0;e<n;e++,u+=r)a[o+e]=s.getUint32(u+(c?4:0),c)*4294967296+s.getUint32(u+(c?0:4),c);return}}let f=e.bitOffset+d+7>>3,p=2**e.bitOffset,m=2**d,h=m/2,g=e.type===`int`;for(let e=0;e<n;e++,u+=r){let n=0;if(c)for(let e=f-1;e>=0;e--)n=n*256+t[u+e];else for(let e=0;e<f;e++)n=n*256+t[u+e];n=Math.floor(n/p)%m,a[o+e]=g&&n>=h?n-m:n}}var ct=new Map,lt=e=>{let t=ct.get(e);return t||ct.set(e,t=new TextDecoder(e)),t};function ut(e){let t=e.indexOf(`\0`);return t<0?e:e.slice(0,t)}function dt(e,t,n,r,i){let a=lt(e.encoding),o=e.bitCount>>3,s=Array(n);for(let c=0,l=i+e.byteOffset;c<n;c++,l+=r)s[c]=ut(a.decode(t.subarray(l,l+o)));return s}function ft(e,t,n,r,i,a){let o=a instanceof Float64Array?NaN:null;if(e.allInvalid){for(let e=0;e<n;e++)a[e]=o;return}if(e.invalBit===null)return;let s=1<<(e.invalBit&7);for(let c=0,l=i+(e.invalBit>>3);c<n;c++,l+=r)t[l]&s&&(a[c]=o)}var pt=e=>e.recordIdSize+e.dataBytes+e.invalBytes+e.idTrailer,mt=64<<20,ht=(e,t)=>e.reduce((e,n)=>e+(n.zip?n.zip.orgLength:Math.max(0,Math.min(n.length,t-n.offset))),0),gt=e=>e.byteOffset+Math.ceil((e.bitOffset+e.bitCount)/8);function _t(e,t){return e.kind===`vmaster`?!0:(e.kind===`vlsd`||e.type===`uint`||e.type===`int`||e.type===`float`?!(e.bitCount>=1&&e.bitCount<=64):!(e.bitCount>=8))?!1:gt(e)<=t.dataBytes}function vt(e,t){let n=e.notes;for(let r of e.groups){if(![0,1,2,4,8].includes(r.recordIdSize))throw Error(`This MDF file is damaged (bad record id size).`);if(r.vlsdCg)continue;let e=pt(r);if(e>mt||e===0){r.cycles>0&&n.push(`${r.name||`A group`}: its records are ${e===0?`empty`:`too large`} (damaged); skipped.`),r.cycles=0;continue}r.cycles=Math.min(r.cycles,Math.floor(ht(r.stream,t)/e));let i=r.channels.filter(e=>!_t(e,r));for(let e of i)n.push(`${e.name}: its bits lie outside its record (damaged); skipped.`);i.length&&(r.channels=r.channels.filter(e=>!i.includes(e))),r.master&&!_t(r.master,r)&&(n.push(`${r.master.name}: the time channel lies outside its record (damaged): samples are numbered instead.`),r.master=null);for(let e of r.master?[...r.channels,r.master]:r.channels)e.invalBit!==null&&e.invalBit>=8*r.invalBytes&&(e.invalBit=null)}}function yt(e,t){let n=0;for(let r of e.master?[...t,e.master]:t){if(r.invalBit!==null)return 1/0;r.kind!==`vmaster`&&(n=Math.max(n,r.byteOffset+(r.bitOffset+r.bitCount+7>>3)))}return e.recordIdSize+n}var bt=65536,xt=`This file's compressed data is damaged.`;async function*St(e){for(let t=0;t<e.length;t+=bt)yield e.subarray(t,t+bt)}async function*Ct(e){if(typeof DecompressionStream!=`function`){let t=[],n=new ce(e=>{t.push(e)});for await(let r of e)for(n.push(r,!1);t.length;)yield t.shift();for(n.push(new Uint8Array,!0);t.length;)yield t.shift();return}let t=new DecompressionStream(`deflate`),n=t.writable.getWriter();(async()=>{for await(let t of e)await n.write(t);await n.close()})().catch(e=>n.abort(e).catch(()=>{}));let r=t.readable.getReader();try{for(;;){let{done:e,value:t}=await r.read().catch(e=>{throw e instanceof TypeError?Error(xt):e});if(e)return;yield t}}finally{r.cancel().catch(()=>{})}}async function wt(e,t=-1,n=1/0){let r=[],i=Math.min(t,n),a=t>=0?new Uint8Array(i):null,o=0;for await(let s of Ct(St(e))){if(a){if(o+s.length>t&&n>t)throw Error(`Compressed data is longer than its header says.`);a.set(o+s.length>i?s.subarray(0,i-o):s,o)}else r.push(s);if(o+=s.length,o>=n)break}if(a)return o>=i?a:a.subarray(0,o);let s=r.length===1?r[0]:new Uint8Array(o);return r.length>1&&r.reduce((e,t)=>(s.set(t,e),e+t.length),0),o>n?s.subarray(0,n):s}var Tt=new Uint8Array(Uint32Array.of(1).buffer)[0]===1;function Et(e,t,n,r=t){let i=Math.floor(n/t),a=new Uint8Array(r<t?i*r:n),o=r%4==0&&Tt?new Uint32Array(a.buffer,0,i*r>>2):null,s=r>>2;for(let t=0;t<i;t+=512){let n=Math.min(i,t+512);if(o)for(let a=0;a<r;a+=4){let r=a*i,c=r+i,l=c+i,u=l+i;for(let i=t,d=t*s+(a>>2);i<n;i++,d+=s)o[d]=e[r+i]|e[c+i]<<8|e[l+i]<<16|e[u+i]<<24}else for(let o=0;o<r;o++){let s=o*i;for(let i=t,c=t*r+o;i<n;i++,c+=r)a[c]=e[s+i]}}let c=i*t;return r===t&&a.set(e.subarray(c,n),c),a}function Dt(e,t,n){if(!(n<t)||e.length===0)return t;let r=Math.min(t,n+3&-4);return r===t?t:e.every(e=>e.zip?.type===1&&e.zip.param===t&&e.zip.orgLength%t===0)?r:t}async function Ot(e,t,n=1/0,r=1/0){let i=await e.slice(t.offset,t.length),{type:a,param:o,orgLength:s}=t.zip;if(a===0)return wt(i,s,r);let c=Math.min(n,o);return Et(await wt(i,s,c<o?s/o*c:1/0),o,s,c)}async function*kt(e,t,n,r=1/0){let i=e=>!!e?.zip&&!(e.zip.type===0&&(e.length>16777216||e.zip.orgLength>268435456)),a=null;for(let o=0;o<t.length;o++){let s=t[o];if(n?.throwIfAborted(),!s.zip)for await(let t of e.windows(s.offset,s.length))yield t.bytes;else if(i(s)){let n=a??Ot(e,s,r);a=i(t[o+1])?Ot(e,t[o+1],r):null,a?.catch(()=>{}),yield await n}else{let t=s.zip.orgLength;for await(let n of Ct((async function*(){for await(let t of e.windows(s.offset,s.length))yield t.bytes})()))if(yield n.length>t?n.subarray(0,t):n,(t-=n.length)<=0)break}}}async function*At(e,t,n,r){if(r<=0||t<=0)return;let i=Math.min(n,r),a=null,o=0,s=0;for await(let n of e){let e=0;for(;e<n.length&&s<r;){if(o===0){let a=Math.min(i,r-s,Math.floor((n.length-e)/t));if(a>0){yield{buf:n.subarray(e,e+a*t),n:a},s+=a,e+=a*t;continue}}a??=new Uint8Array(t*i);let c=Math.min(a.length,(r-s)*t),l=Math.min(n.length-e,c-o);if(a.set(n.subarray(e,e+l),o),o+=l,e+=l,o===c){let e=o/t;yield{buf:a,n:e},s+=e,o=0}}if(s>=r)return}a&&o>=t&&(yield{buf:a,n:Math.floor(o/t)})}async function jt(e,t,n,r){let i=n*r,a=0;for(let n of t){let t=n.zip?n.zip.orgLength:n.length;if(i<a)return null;if(i+r<=a+t)return n.zip?null:e.read(n.offset+i-a,r);a+=t}return null}var Mt=(e,t)=>(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0,Nt=class{#e;#t;#n;#r;#i=new Uint8Array;#a=0;#o;#s=0;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n,this.#r=kt(e,t,n),this.#o=t.reduce((e,t)=>e+(t.zip?t.zip.orgLength:t.length),0)}peek(e){let t=e-this.#a;if(t<0||t+4>this.#i.length)return null;let n=Mt(this.#i,t);return t+4+n>this.#i.length?null:this.#i.subarray(t+4,t+4+n)}async get(e){for(;;){let t=this.peek(e);if(t)return t;let n=e-this.#a;if(e+4>this.#o||n>=0&&n+4<=this.#i.length&&e+4+Mt(this.#i,n)>this.#o)throw Error(`This MF4 is damaged (string data ends early).`);e<this.#a&&(this.#r=kt(this.#e,this.#t,this.#n),this.#i=new Uint8Array,this.#a=0);let r=await this.#r.next();if(r.done)throw Error(`This MF4 is damaged (string data ends early).`);if((this.#s+=r.value.length)>4*this.#o+16777216)throw Error(`This MF4 is damaged (its string offsets jump back and forth).`);let i=Math.max(0,Math.min(e-this.#a,this.#i.length)),a=this.#i.subarray(i),o=new Uint8Array(a.length+r.value.length);o.set(a),o.set(r.value,a.length),this.#a+=i,this.#i=o}}},Pt=e=>Math.max(1,Math.min(65536,Math.floor((8<<20)/Math.max(1,e)))),Ft=64<<20,It=class{#e;#t;#n=new Map;#r=new Map;constructor(e,t){this.#e=e,this.#t=t}want(e){this.#r.has(e)||this.#r.set(e,new Map)}wanted(e){return this.#r.has(e)}put(e,t,n){this.#r.get(e).set(t,n)}async bytes(e,t){let n=Array(t.length);if(e.sdRecordId!==null){let r=this.#r.get(e.sdRecordId);for(let e=0;e<t.length;e++)n[e]=r?.get(t[e])??null,r?.delete(t[e]);return n}if(!e.sd)return n.fill(null);let r=this.#n.get(e);r||this.#n.set(e,r=new Nt(this.#e,e.sd,this.#t));for(let e=0;e<t.length;e++)n[e]=r.peek(t[e])??await r.get(t[e]);return n}async strings(e,t){let n=lt(e.encoding);return(await this.bytes(e,t)).map(e=>e?ut(n.decode(e)):null)}};function Lt(e,t,n,r,i=pt(e),a=new Float64Array(n)){let o=e.master;if(!o)return null;if(o.kind===`vmaster`)for(let e=0;e<n;e++)a[e]=r+e;else st(o,t,n,i,e.recordIdSize,a);return ze(o.conv,a),a}function Rt(e,t,n){return n===1?e[t]:n===2?e[t]|e[t+1]<<8:n===4?(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0:((e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0)+4294967296*((e[t+4]|e[t+5]<<8|e[t+6]<<16|e[t+7]<<24)>>>0)}function zt(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}async function*Bt(e,t,n,r,i,a=1/0){let o=t.groups[n[0]];if(o.sorted){let t=Dt(o.stream,pt(o),a),r=0;for await(let{buf:a,n:s}of At(kt(e,o.stream,i,t),t,Pt(t),o.cycles))yield{g:n[0],buf:a,n:s,start:r,size:t},r+=s;return}let s=t.groups.map((e,t)=>({g:e,k:t})).filter(({g:e})=>e.dg===o.dg),c=o.recordIdSize,l=new Map;for(let e of n){let n=t.groups[e],r=pt(n);l.set(n.recordId,{k:e,size:r,buf:new Uint8Array(r*Math.min(Pt(r),Math.max(1,n.cycles))),fill:0,start:0})}let u=new Map(s.map(({g:e})=>[e.recordId,e.vlsdCg?-1:pt(e)])),d=new Map,f=new Uint8Array;for await(let t of kt(e,o.stream,i)){let e=f.length?zt(f,t):t,n=0;for(;!(n+c>e.length);){let t=Rt(e,n,c),i=u.get(t);if(i===void 0)throw Error(`This MF4 is damaged (unknown record id ${t}).`);if(i<0){if(n+c+4>e.length)break;let i=(e[n+c]|e[n+c+1]<<8|e[n+c+2]<<16|e[n+c+3]<<24)>>>0;if(i>Ft)throw Error(`This MF4 is damaged (a string record of ${i} bytes).`);let a=n+c+4+i;if(a>e.length)break;let o=d.get(t)??0;r.wanted(t)&&r.put(t,o,e.slice(n+c+4,a)),d.set(t,o+4+i),n=a;continue}if(n+i>e.length)break;let a=l.get(t);if(a&&(a.buf.set(e.subarray(n,n+i),a.fill),a.fill+=i,a.fill===a.buf.length)){let e=a.fill/a.size;yield{g:a.k,buf:a.buf,n:e,start:a.start,size:a.size},a.start+=e,a.fill=0}n+=i}f=e.slice(n)}for(let e of l.values())e.fill&&(yield{g:e.k,buf:e.buf,n:e.fill/e.size,start:e.start,size:e.size})}var Vt=(e,t)=>t?e+2147483648:e,Ht=/^BO_\s+(\d+)\s+(\w+)\s*:\s*(\d+)/,Ut=/^SG_\s+(\w+)\s*(?:(M|m\d+M?)\s*)?:\s*(\d+)\|(\d+)@([01])([+-])\s*\(([^,)]*),([^)]*)\)\s*\[[^\]]*\]\s*"([^"]*)"/,Wt=/^VAL_\s+(\d+)\s+(\w+)\s+(.*);/,Gt=/^SIG_VALTYPE_\s+(\d+)\s+(\w+)\s*:\s*([12])\s*;/,Kt=/^-?\d+(?:\.\d+)?$/;function qt(e){let t=e.split(`"`),n=new Map;for(let e=0;e+1<t.length;e+=2){let r=t[e].trim();Kt.test(r)&&n.set(Number(r),t[e+1])}return n}var Jt=(e,t)=>e<=511&&t>=1&&t<=64;function Yt(e){let t=new Map,n=new Map,r=new Map,i=(e,t)=>{let i=n.get(Number(e));return i?r.get(i)?.get(t):void 0},a=null;for(let o of e.split(/\r?\n/)){let e=o.trim(),s;if(s=Ht.exec(e)){let e=Number(s[1]),r=e>=2147483648,i=r?e-2147483648:e;a={id:i,extended:r,name:s[2],size:Number(s[3]),signals:[]},t.set(Vt(i,r),a),n.set(e,a)}else if((s=Ut.exec(e))&&a){let e=s[2],t=Number(s[3]),n=Number(s[4]);if(!Jt(t,n)||!s[7].trim()||!s[8].trim())continue;let i={name:s[1],start:t,length:n,littleEndian:s[5]===`1`,signed:s[6]===`-`,factor:Number(s[7]),offset:Number(s[8]),unit:s[9],mux:e?e===`M`?`switch`:parseInt(e.slice(1),10):null,float:0,values:null};a.signals.push(i);let o=r.get(a);o||r.set(a,o=new Map),o.has(i.name)||o.set(i.name,i)}else if(s=Wt.exec(e)){let e=i(s[1],s[2]);e&&(e.values=qt(s[3]))}else if(s=Gt.exec(e)){let e=i(s[1],s[2]);e&&(e.float=s[3]===`1`?32:64)}else (e.startsWith(`BO_`)||e===``)&&e===``&&(a=null)}return t}function Xt(e){if(e.float){let t=e.float/8,n=e.start>>3,r=e.littleEndian,i=new DataView(new ArrayBuffer(8));return(e,a)=>{for(let r=0;r<t;r++)i.setUint8(r,e[a+n+r]??0);return t===4?i.getFloat32(0,r):i.getFloat64(0,r)}}let t=e.length,n=2**t,r=n/2,i=e.signed;if(e.littleEndian){let a=e.start>>3,o=e.start&7;if(o+t<=32){let e=t===32?-1:(1<<t)-1;return(t,s)=>{let c=s+a,l=((t[c]|t[c+1]<<8|t[c+2]<<16|t[c+3]<<24)>>>o&e)>>>0;return i&&l>=r?l-n:l}}let s=o+t+7>>3,c=2**(t-(32-o)),l=2**(32-o);return(e,t)=>{let u=t+a,d=(e[u]|e[u+1]<<8|e[u+2]<<16|e[u+3]<<24)>>>o,f=0;for(let t=s-1;t>=4;t--)f=f*256+(e[u+t]??0);let p=d+f%c*l;return i&&p>=r?p-n:p}}let a=e.start>>3,o=e.start&7;if(7-o+t<=32){let e=32-(7-o)-t,s=t===32?-1:(1<<t)-1;return(t,o)=>{let c=o+a,l=((t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3])>>>e&s)>>>0;return i&&l>=r?l-n:l}}let s=(1<<o+1)-1,c=t-(o+1)>>3,l=t-(o+1)&7,u=2**l;return(e,t)=>{let o=(e[t+a]??0)&s,d=t+a+1;for(let t=0;t<c;t++)o=o*256+(e[d++]??0);return l>0&&(o=o*u+((e[d]??0)>>8-l)),i&&o>=r?o-n:o}}function Zt(e){let t=e.length,n=2**t,r=n/2,i=e.signed,a=t===32?-1:(1<<t)-1;if(!e.float&&e.littleEndian&&(e.start&7)+t<=32){let t=e.start>>3,o=e.start&7;return(e,s,c,l,u,d,f)=>{for(let p=0;p<l;p++){let l=s[c[p]]+t,m=((e[l]|e[l+1]<<8|e[l+2]<<16|e[l+3]<<24)>>>o&a)>>>0;u[p]=(i&&m>=r?m-n:m)*d+f}}}if(!e.float&&!e.littleEndian&&7-(e.start&7)+t<=32){let o=e.start>>3,s=32-(7-(e.start&7))-t;return(e,t,c,l,u,d,f)=>{for(let p=0;p<l;p++){let l=t[c[p]]+o,m=((e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3])>>>s&a)>>>0;u[p]=(i&&m>=r?m-n:m)*d+f}}}let o=Xt(e);return(e,t,n,r,i,a,s)=>{for(let c=0;c<r;c++)i[c]=o(e,t[n[c]])*a+s}}function Qt(e){if(!e.busEvent||e.busType!==2)return null;let t=t=>e.channels.find(e=>e.name.endsWith(t))??null,n=t(`DataFrame.ID`),r=t(`DataFrame.DataBytes`);return!n||!r?null:{id:n,ide:t(`DataFrame.IDE`),data:r}}var $t=()=>({n:0,time:new Float64Array,key:new Float64Array,id:new Float64Array,ide:new Float64Array,bytes:null,buf:new Uint8Array,dataAt:new Int32Array});async function en(e,t,n,r,i,a,o,s){s.key.length<r&&Object.assign(s,{time:new Float64Array(r),key:new Float64Array(r),id:new Float64Array(r),ide:new Float64Array(r),dataAt:new Int32Array(r)});let c=e.recordIdSize,{id:l,ide:u,key:d,dataAt:f}=s;st(t.id,n,r,a,c,l),t.ide&&st(t.ide,n,r,a,c,u);for(let e=0;e<r;e++){let n=l[e],r=n&536870911;d[e]=Vt(r,t.ide?u[e]!==0:n>=2147483648||r>2047)}if(s.bytes=null,t.data.kind===`vlsd`){let e=new Float64Array(r);st({...t.data,type:`uint`},n,r,a,c,e),s.bytes=await o.bytes(t.data,e)}else for(let e=0,n=c+t.data.byteOffset;e<r;e++,n+=a)f[e]=n;if(!Lt(e,n,r,i,a,s.time.subarray(0,r)))for(let e=0;e<r;e++)s.time[e]=i+e;return s.n=r,s.buf=n,s}var tn=new Uint8Array;function nn(e){return e.float?(e.start>>3)+e.float/8:e.littleEndian?(e.start>>3)+((e.start&7)+e.length+7>>3):(e.start>>3)+1+(Math.max(0,e.length-((e.start&7)+1))+7>>3)}function rn(e,t,n){let r=0;for(let e of n.values())for(let t of e.signals)r=Math.max(r,nn(t));let i=t.data.kind===`vlsd`?t.data:{...t.data,bitCount:Math.min(t.data.bitCount,r*8)};return yt(e,t.ide?[t.id,t.ide,i]:[t.id,i])}function an(e,t){let n=t.map(t=>e.signals[e.channels[t].s]);return{route:e,col:n.map(Zt),read:n.map(Xt),factor:n.map(e=>e.factor),offset:n.map(e=>e.offset),table:t.map((t,r)=>e.channels[t].text?n[r].values:null),idx:new Int32Array,cnt:0,n:0,t0:NaN,t1:NaN}}function on(e,t,n,r,i,a=1,o=0){let s=new Float64Array(i);if(n.bytes)for(let e=0;e<i;e++)s[e]=t(n.bytes[r[e]]??tn,0)*a+o;else e(n.buf,n.dataAt,r,i,s,a,o);return s}function sn(e,t){let{idx:n,cnt:r}=e,i=new Float64Array(r);for(let e=0;e<r;e++)i[e]=t.time[n[e]];return e.n===0&&(e.t0=i[0]),e.t1=i[r-1],e.n+=r,e.cnt=0,{time:i,cols:e.col.map((i,a)=>{let o=e.table[a];return o?Array.from(on(i,e.read[a],t,n,r),e=>o.get(e)??null):on(i,e.read[a],t,n,r,e.factor[a],e.offset[a])})}}var cn=e=>({key:e,skip:!0,frames:0,all:null,sw:null,byMux:new Map,idx:new Int32Array,cnt:0});function ln(e,t){let n=e.signals.find(e=>e.mux===`switch`);return{key:Vt(e.id,e.extended),skip:!1,frames:0,all:t,sw:n?{col:Zt(n),read:Xt(n)}:null,byMux:new Map,idx:new Int32Array,cnt:0}}var un=class{#e=Array(2048);#t=new Map;#n;constructor(e){this.#n=e}get(e){let t=e<2048?this.#e[e]:this.#t.get(e);return t||(t=this.#n(e),e<2048?this.#e[e]=t:this.#t.set(e,t)),t}};function dn(e,t,n){let r=[];for(let n=0;n<e.n;n++){let i=t.get(e.key[n]);if(i.skip){i.frames++;continue}i.cnt===0&&(r.push(i),i.idx.length<e.n&&(i.idx=new Int32Array(e.n))),i.idx[i.cnt++]=n}let i=[];for(let t of r){if(t.all&&(t.all.idx=t.idx,t.all.cnt=t.cnt,i.push(t.all)),t.sw){let r=on(t.sw.col,t.sw.read,e,t.idx,t.cnt);for(let e=0;e<t.cnt;e++){let a=t.byMux.get(r[e]);a===void 0&&((a=n(t,r[e]))||t.byMux.size<4096)&&t.byMux.set(r[e],a),a&&(a.cnt===0&&(i.push(a),a.idx.length<t.cnt&&(a.idx=new Int32Array(t.cnt))),a.idx[a.cnt++]=t.idx[e])}}t.cnt=0}return i}var fn=48e6;async function pn(e,t,n,r){let i=new Map;if(t.groups.forEach((e,t)=>{let n=Qt(e);n&&e.cycles>0&&i.set(t,n)}),i.size===0)return null;if(n.length===0)return{dbc:new Map,layouts:i,routes:[],notes:[],cache:new Map};let a=Yt(j(new Uint8Array(await n[0].arrayBuffer()))),o=[],s=new Map,c=new Map,l=0,u=new It(e,r);for(let[n,d]of i){let i=t.groups[n],f=(e,t)=>{let n=e.signals.filter(e=>t===null?typeof e.mux!=`number`:e.mux===t),r=[];return n.forEach((e,t)=>{r.push({s:t,text:!1}),e.values&&r.push({s:t,text:!0})}),an({key:Vt(e.id,e.extended),mux:t,signals:n,channels:r},r.map((e,t)=>t))},p=new un(e=>{let t=a.get(e);if(!t){let t=cn(e);return s.set(e,t),t}let r=ln(t,f(t,null));return o.push({model:n,m:r}),r});d.data.sdRecordId!==null&&u.want(d.data.sdRecordId);let m=$t();for await(let o of Bt(e,t,[n],u,r,rn(i,d,a))){let e=await en(i,d,o.buf,o.n,o.start,o.size,u,m),t=(e,t)=>{let n=a.get(e.key);return n.signals.some(e=>e.mux===t)?f(n,t):null};for(let n of dn(e,p,t)){let t=sn(n,e);if(l<0)continue;if((l+=t.time.length*(1+t.cols.length))>fn){l=-1,c.clear();continue}let r=c.get(n);r||c.set(n,r=[]),r.push(t)}}}let d=[],f=new Map;for(let{model:e,m:t}of o)for(let n of[t.all,...t.byMux.values()]){if(!n)continue;let{route:t,n:r,t0:i,t1:o}=n;if(t.signals.length===0)continue;let s=a.get(t.key);l>=0&&f.set(t,c.get(n)??[]),d.push({model:e,route:t,group:{name:t.mux===null?s.name:`${s.name} [m=${t.mux}]`,channels:t.channels.map(e=>({name:e.text?`${t.signals[e.s].name} (text)`:t.signals[e.s].name,unit:e.text?``:t.signals[e.s].unit,text:e.text})),samples:r,time:{kind:`timestamps`},rateHz:r>1&&o>i?Math.round((r-1)/(o-i)*1e6)/1e6:null}})}let p=[];if(s.size){let e=[...s.values()].reduce((e,t)=>e+t.frames,0),t=[...s.keys()].map(e=>`0x${(e%2147483648).toString(16).toUpperCase()}`).join(`, `);p.push(`${e} frame${e===1?``:`s`} with ${s.size} id${s.size===1?``:`s`} not in the DBC ${e===1?`was`:`were`} skipped (${t}).`)}return{dbc:a,layouts:i,routes:d,notes:p,cache:f}}async function*mn(e,t,n,r,i,a){let o=[];for(let e of i){let t=r.cache.get(e.route);if(!t){o.push(e);continue}r.cache.delete(e.route);let n=0;for(let r of t)yield{group:e.group,start:n,length:r.time.length,time:r.time,columns:e.sel.map(e=>r.cols[e])},n+=r.time.length}if(!o.length)return;let s=r.layouts.get(n),c=t.groups[n],l=new Map,u=new Map;for(let e of o){let t=an(e.route,e.sel);l.set(t,e.group);let n=u.get(e.route.key);n||u.set(e.route.key,n={all:null,byMux:new Map}),e.route.mux===null?n.all=t:n.byMux.set(e.route.mux,t)}let d=new un(e=>{let t=u.get(e);if(!t)return cn(e);let n=ln(r.dbc.get(e),t.all);return t.byMux.size||(n.sw=null),n}),f=new It(e,a);s.data.sdRecordId!==null&&f.want(s.data.sdRecordId);let p=$t();for await(let i of Bt(e,t,[n],f,a,rn(c,s,r.dbc))){let e=await en(c,s,i.buf,i.n,i.start,i.size,f,p);for(let t of dn(e,d,(e,t)=>u.get(e.key).byMux.get(t)??null)){let n=t.n,r=sn(t,e);yield{group:l.get(t),start:n,length:r.time.length,time:r.time,columns:r.cols}}}}var hn=e=>Math.round(e*1e6)/1e6,gn=e=>e.kind===`value`?e.type!==`bytes`:e.kind===`vlsd`&&e.type===`string`,_n=e=>({name:e.name,unit:e.unit,text:e.type===`string`||e.kind===`vlsd`||e.conv.k===`text`});async function vn(e,t){let n=t.master;if(!n||t.cycles<2)return null;if(n.kind===`vmaster`)return n.conv.k===`lin`&&n.conv.a>0?hn(1/n.conv.a):null;if(!t.sorted)return null;let r=pt(t),i=t.cycles,a,o;if(t.stream[0]?.zip){let n=Dt(t.stream.slice(0,1),r,yt(t,[])),s=await Ot(e,t.stream[0],n,4096*r);if(i=Math.min(t.cycles,Math.floor(s.length/n)),i<2)return null;a=s.subarray(0,n),o=s.subarray((i-1)*n,i*n)}else a=await jt(e,t.stream,0,r),o=await jt(e,t.stream,t.cycles-1,r);if(!a||!o)return null;let s=new Float64Array(2);return st(n,a,1,r,t.recordIdSize,s,0),st(n,o,1,r,t.recordIdSize,s,1),ze(n.conv,s),s[1]>s[0]?hn((i-1)/(s[1]-s[0])):null}async function yn(e,t,n,r,i,a,o){let s;if(e.kind===`vlsd`){let a=new Float64Array(n);st({...e,type:`uint`},t,n,r,i,a),s=await o.strings(e,a)}else if(e.type===`string`)s=dt(e,t,n,r,i);else{let a=new Float64Array(n);st(e,t,n,r,i,a),e.conv.k===`text`?s=He(e.conv,a):(ze(e.conv,a),s=a)}return ft(e,t,n,r,a,s),s}async function bn(e,t,n,r,i,a,o,s){let c=e.recordIdSize,l=[];for(let i of t)l.push(await yn(e.channels[i],n,r,a,c,c+e.dataBytes,s));return{group:o,time:Lt(e,n,r,i,a),start:i,length:r,columns:l}}async function*xn(e,t){let n=e.plan.state,r=t.filter(e=>n.groups[e].route),i=t.filter(e=>!n.groups[e].route);if(r.length){let t=r.map(t=>({group:t,route:n.groups[t].route,sel:Ne(e,t)}));yield*mn(e.io,n.model,n.groups[r[0]].model,n.bus,t,e.signal)}if(!i.length)return;let a=new It(e.io,e.signal),o=new Map;for(let t of i){let r=n.groups[t],i=Ne(e,t).map(e=>r.channels[e]);for(let e of i){let t=n.model.groups[r.model].channels[e].sdRecordId;t!==null&&a.want(t)}o.set(r.model,{pg:t,cols:i})}let[s,{cols:c}]=o.entries().next().value,l=n.model.groups[s],u=o.size===1?yt(l,c.map(e=>l.channels[e])):1/0;for await(let t of Bt(e.io,n.model,[...o.keys()],a,e.signal,u)){let{pg:e,cols:r}=o.get(t.g);yield await bn(n.model.groups[t.g],r,t.buf,t.n,t.start,t.size,e,a)}}function Sn(e){let t=e.plan.state,n=new Map;for(let r of e.selection){let e=t.model.groups[t.groups[r.group].model].dg;n.set(e,[...n.get(e)??[],r.group])}return[...n].sort((e,t)=>e[0]-t[0]).map(([,e])=>e)}var Cn={...T,async plan(e,t){let n=await t.read(0,64);if(d(n,`UnFinMF`))throw Error(`This MF4 was not finalized by its logger (it starts with UnFinMF). Finalize it with the logger software or asammdf, then open it again.`);let r=je(n.subarray(8,16)).replace(/\0/g,``).trim(),i=Number(r.replace(`.`,``).slice(0,3))>=400?await at(t,r):await We(t,n,r);vt(i,t.size);let a=await pn(t,i,e.companions.filter(e=>e.name.toLowerCase().endsWith(`.dbc`))),o=new Set(a?.layouts.keys()??[]),s=[],c=[],l=[...i.notes],u=0;for(let e=0;e<i.groups.length;e++){let n=i.groups[e];if(n.vlsdCg||n.cycles===0||o.has(e))continue;let r=[];if(n.channels.forEach((e,t)=>{gn(e)?r.push(t):u++}),r.length!==0){for(let e of r){let t=n.channels[e].conv;t.k===`unsupported`&&l.push(`${n.channels[e].name}: ${t.what} is not supported; raw values are shown.`)}c.push({model:e,channels:r}),s.push({name:n.name,channels:r.map(e=>_n(n.channels[e])),samples:n.cycles,time:n.master?{kind:`timestamps`}:{kind:`index`},rateHz:await vn(t,n)})}}if(u&&l.push(`${u} byte-array channel${u===1?` was`:`s were`} skipped.`),a){if(a.routes.length===0&&a.dbc.size===0){if(s.length===0)throw Error(`This MF4 has raw CAN frames. Drop its .dbc file together with it to decode signals.`);l.push(`This MF4 also has raw CAN frames. Drop its .dbc file together with it to decode signals.`)}for(let e of a.routes)c.push({model:e.model,route:e.route}),s.push(e.group);l.push(...a.notes)}if(s.length===0)throw Error(`This MDF file has no channels with samples.`);let f={model:i,groups:c,bus:a};return{format:i.version,startTime:i.startTime,groups:s,meta:i.meta,events:[],notes:l,interleaved:!!a?.routes.length||i.groups.some(e=>!e.sorted&&!e.vlsdCg),state:f}},async*stream(e){for(let t of Sn(e))yield*xn(e,t)},streamGroup(e,t){return xn(e,[t])}};function wn(e){let t=[];for(let n of j(e).split(`\0`)){if(!n)continue;let e=n.split(``),r=parseFloat(e[0].split(``)[0]);Number.isFinite(r)&&t.push({onset:r,texts:e.slice(1).filter(e=>e.length>0)})}return t}function Tn(e,t){let n=/^(\d\d)\.(\d\d)\.(\d\d)$/.exec(e),r=/^(\d\d)\.(\d\d)\.(\d\d)$/.exec(t);if(!n||!r)return null;let i=Number(n[3]);return`${i>=85?1900+i:2e3+i}-${n[2]}-${n[1]}T${r[1]}:${r[2]}:${r[3]}`}var En=e=>`${+e.toFixed(6)} Hz`;function Dn(e,t,n,r,i,a,o,s){let{bit:c,off:l}=e;if(a===2)for(let e=0;e<i;e++)o[s+e]=c*(l+t.getInt16(r+2*e,!0));else for(let e=0,t=r;e<i;e++,t+=3)o[s+e]=c*(l+((n[t]|n[t+1]<<8|n[t+2]<<16)<<8>>8))}var On={..._,async plan(e,t){let n=await t.read(0,256),r=(e,t)=>je(n.subarray(e,e+t)).trim(),i=n[0]===255,a=parseInt(r(252,4),10),o=parseInt(r(184,8),10),s=r(192,44),c=/^(EDF|BDF)\+/.test(s),l=/^(EDF|BDF)\+D/.test(s),u=parseFloat(r(244,8));if(!(a>0)||o!==256*(a+1)||!(u>0))throw Error(`This EDF/BDF header is damaged.`);let d=await t.read(256,a*256),f=(e,t,n)=>je(d.subarray(e*a+t*n,e*a+t*(n+1))).trim(),p=i?3:2,m=[],h=0;for(let e=0;e<a;e++){let t=parseFloat(f(104,8,e)),n=parseFloat(f(112,8,e)),r=parseFloat(f(120,8,e)),i=parseFloat(f(128,8,e)),a=Number(f(216,8,e));if(!(Number.isInteger(a)&&a>=0))throw Error(`This EDF/BDF header is damaged (samples per record).`);let o=(n-t)/(i-r);m.push({label:f(0,16,e),unit:f(96,8,e),spr:a,offset:h,bit:o,off:n/o-i}),h+=a*p}let g=h;if(!(g>0&&o+g<=t.size))throw Error(`This EDF/BDF file is damaged (its data records do not fit in it).`);let _=Math.floor((t.size-o)/g),v=parseInt(r(236,8),10),y=[];v>=0?v>_&&(y.push(`The file is shorter than its header says: ${_} of ${v} data records were read.`),v=_):v=_;let b=c?m.flatMap((e,t)=>/^(EDF|BDF) Annotations$/.test(e.label)?[t]:[]):[],x=new Map;m.forEach((e,t)=>{!b.includes(t)&&e.spr>0&&x.set(e.spr,[...x.get(e.spr)??[],t])});let S=[...x.values()],C=S.map(e=>{let t=m[e[0]].spr/u;return{name:En(t),channels:e.map(e=>({name:m[e].label,unit:m[e].unit})),samples:v*m[e[0]].spr,rateHz:t,time:l?{kind:`timestamps`}:{kind:`rate`,rate:t,start:0}}}),w={headerBytes:o,records:v,duration:u,recordBytes:g,bps:p,signals:m,groups:S,annotations:b,discontinuous:l};return{format:`${i?`BDF`:`EDF`}${c?l?`+D`:`+`:``}`,startTime:Tn(r(168,8),r(176,8)),groups:C,meta:{patient:r(8,80),recording:r(88,80)},events:[],notes:l?[`Discontinuous recording: each gap shows as a break in the traces.`,...y]:y,state:w}},async*stream(e){let t=e.plan.state,n=Math.max(1,Math.floor(me/t.recordBytes)),r=e.selection.map(e=>({g:e.group,chans:e.channels.map(n=>t.signals[t.groups[e.group][n]]),spr:t.signals[t.groups[e.group][0]].spr})),i=r.map(()=>0),a=0,o=NaN;for await(let s of e.io.windows(t.headerBytes,t.records*t.recordBytes,n*t.recordBytes)){e.signal?.throwIfAborted();let n=Math.floor(s.bytes.length/t.recordBytes);if(n===0)break;let c=l(s.bytes),u=new Float64Array(n),d=[];for(let e=0;e<n;e++)u[e]=(a+e)*t.duration,t.annotations.forEach((n,r)=>{let i=t.signals[n],a=e*t.recordBytes+i.offset,o=wn(s.bytes.subarray(a,a+i.spr*t.bps));r===0&&o.length&&(u[e]=o[0].onset);for(let e of o)for(let t of e.texts)d.push({time:e.onset,text:t})});let f=new Uint8Array(n),p=0;if(t.discontinuous)for(let e=0;e<n;e++){let n=e?u[e-1]+t.duration:o;n===n&&u[e]>n+1e-9&&(f[e]=1,p++)}for(let e=0;e<r.length;e++){let a=r[e],l=a.spr/t.duration,m=n*a.spr+p,h=t.discontinuous?new Float64Array(m):null,g=a.chans.map(()=>new Float64Array(m)),_=0;for(let e=0;e<n;e++){if(f[e]){h[_]=e?u[e-1]+t.duration:o;for(let e of g)e[_]=NaN;_++}if(h)for(let t=0;t<a.spr;t++)h[_+t]=u[e]+t/l;let n=e*t.recordBytes;a.chans.forEach((e,r)=>Dn(e,c,s.bytes,n+e.offset,a.spr,t.bps,g[r],_)),_+=a.spr}let v={group:a.g,time:h,start:i[e],length:m,columns:g};e===0&&d.length&&(v.events=d),i[e]+=m,yield v}o=u[n-1]+t.duration,a+=n}}},kn={float32:4,double64:8,int8:1,int16:2,int32:4,int64:8};function An(e,t,n=0){let r=e.indexOf(`<${t}>`,n);if(r<0)return``;let i=e.indexOf(`</${t}>`,r);return i<0?``:e.slice(r+t.length+2,i).trim()}function jn(e,t){let n=[];for(let r=e.indexOf(`<${t}>`);r>=0;){let i=e.indexOf(`</${t}>`,r);if(i<0)break;n.push(e.slice(r,i+t.length+3)),r=e.indexOf(`<${t}>`,i)}return n}var Mn=1e5,Nn=e=>e.fmt===`string`||kn[e.fmt]!==void 0;function Pn(e,t,n){let r=e[n];if((r===1||r===4||r===8)&&n+1+r<=e.length)return r===1?[e[n+1],2]:r===4?[t.getUint32(n+1,!0),5]:[D(t,n+1),9];throw Error(`This XDF file is damaged (bad length field).`)}function Fn(e,t,n,r){if(n>=e.length)return-1;if(e[n++]===8&&(n+=8),r.fmt!==`string`)return n+kn[r.fmt]*r.nch<=e.length?n+kn[r.fmt]*r.nch:-1;for(let i=0;i<r.nch;i++){if(n>=e.length)return-1;let[r,i]=Pn(e,t,n);n+=i+r}return n<=e.length?n:-1}async function*In(e,t){let n=new Uint8Array;for await(let r of e.windows(4,e.size-4)){t?.throwIfAborted();let i=r.bytes,a=r.offset-n.length;if(n.length){let e=new Uint8Array(n.length+i.length);e.set(n),e.set(i,n.length),i=e}let o=l(i),s=0;for(;!(s+1>i.length);){let t=i[s];if(s+1+t>i.length)break;let[n,r]=Pn(i,o,s),c=s+r+n;if(a+c>e.size)return;if(c>i.length)break;yield{tag:i[s+r]|i[s+r+1]<<8,body:i.subarray(s+r+2,c)},s=c}n=i.slice(s)}}function Ln(e,t,n){let r=t-e.i0,i=n-e.t0;e.n++,e.si+=r,e.st+=i,e.sii+=r*r,e.sit+=r*i}function Rn(e){let t=e.n*e.sii-e.si*e.si;e.b=t>0?(e.n*e.sit-e.si*e.st)/t:0,e.a=(e.st-e.b*e.si)/Math.max(1,e.n)}function zn(e){if(e.length===0)return[0,0];if(e.length===1)return[e[0][1],0];let t={i0:e[0][0],t0:0,n:0,si:0,st:0,sii:0,sit:0,a:0,b:0};for(let[n,r]of e)Ln(t,n,r);return Rn(t),[t.a-t.b*t.i0,t.b]}function Bn(e,t,n){let r=t.t0+t.a+t.b*(n-t.i0);return r+e.c0+e.c1*r}var Vn={...p,async plan(e,t){let n=new Map,r=``;for await(let e of In(t)){let t=l(e.body);if(e.tag===1)r=j(e.body);else if(e.tag===2){let r=t.getUint32(0,!0),i=j(e.body.subarray(4)),a=parseInt(An(i,`channel_count`),10)||1;if(!(a>=1&&a<=Mn))throw Error(`This XDF file is damaged (a stream with ${a} channels).`);let o=jn(i,`channel`);n.set(r,{id:r,name:An(i,`name`)||`Stream ${r}`,nch:a,srate:parseFloat(An(i,`nominal_srate`))||0,fmt:An(i,`channel_format`)||`float32`,labels:Array.from({length:a},(e,t)=>An(o[t]??``,`label`)||`Ch${t+1}`),units:Array.from({length:a},(e,t)=>An(o[t]??``,`unit`)),count:0,segs:[],clock:[],c0:0,c1:0,lastTs:NaN})}else if(e.tag===3){let r=n.get(t.getUint32(0,!0));if(!r||!Nn(r))continue;let[i,a]=Pn(e.body,t,4),o=4+a,s=kn[r.fmt],c=r.srate>0?Math.max(1,500/r.srate):1/0;for(let n=0;n<i&&!(Fn(e.body,t,o,r)<0);n++){let n;if(e.body[o++]===8?(n=t.getFloat64(o,!0),o+=8):n=r.lastTs+(r.srate>0?1/r.srate:0),r.fmt===`string`)for(let n=0;n<r.nch;n++){let[n,r]=Pn(e.body,t,o);o+=r+n}else o+=s*r.nch;if(r.srate>0){let e=r.segs[r.segs.length-1];(!e||n-r.lastTs>c)&&r.segs.push(e={i0:r.count,t0:n,n:0,si:0,st:0,sii:0,sit:0,a:0,b:0}),Ln(e,r.count,n)}else r.count===0&&r.segs.push({i0:0,t0:n,n:1,si:0,st:0,sii:0,sit:0,a:0,b:0});r.lastTs=n,r.count++}}else if(e.tag===4){let e=n.get(t.getUint32(0,!0));e&&e.clock.push([t.getFloat64(4,!0),t.getFloat64(12,!0)])}}let i=[],a=[...n.values()].sort((e,t)=>e.id-t.id).filter(e=>(Nn(e)||i.push(`${e.name}: channel format ${e.fmt} is not supported; skipped.`),Nn(e))),o=1/0;for(let e of a){[e.c0,e.c1]=zn(e.clock);for(let t of e.segs)Rn(t);if(e.count===0)continue;let t=e.srate>0?Bn(e,e.segs[0],0):e.segs[0].t0+e.c0+e.c1*e.segs[0].t0;o=Math.min(o,t)}let s=C(a.map(e=>e.name),[]),c=a.map((e,t)=>({name:s[t],channels:e.labels.map((t,n)=>({name:t,unit:e.units[n],...e.fmt===`string`?{text:!0,sparse:!0}:{}})),samples:e.count,time:{kind:`timestamps`},rateHz:e.srate>0?e.srate:null,irregular:e.srate===0})),u=An(r,`version`);return{format:`XDF ${u||`1.0`}`,startTime:null,groups:c,meta:{header:u},events:[],notes:i,state:{streams:a,origin:Number.isFinite(o)?o:0}}},async*stream(e){let t=e.plan.state,n=8192,r=new Map,i=e=>e.sel.map(()=>e.s.fmt===`string`?Array(n):new Float64Array(n));for(let a of e.selection){let o=t.streams[a.group],s={g:a.group,s:o,sel:Ne(e,a.group),time:new Float64Array(n),cols:[],n:0,start:0,seg:0,i:0,raw:NaN};s.cols=i(s),r.set(o.id,s)}let a=e=>{let t={group:e.g,time:e.time.slice(0,e.n),start:e.start,length:e.n,columns:e.cols.map(t=>t.slice(0,e.n))};return e.start+=e.n,e.n=0,e.time=new Float64Array(n),e.cols=i(e),t};for await(let i of In(e.io,e.signal)){if(i.tag!==3)continue;let e=l(i.body),o=r.get(e.getUint32(0,!0));if(!o)continue;let s=o.s,[c,u]=Pn(i.body,e,4),d=4+u,f=kn[s.fmt],p=[];for(let r=0;r<c&&!(Fn(i.body,e,d,s)<0);r++){let r;i.body[d++]===8?(r=e.getFloat64(d,!0),d+=8):r=o.raw+(s.srate>0?1/s.srate:0),o.raw=r;let c;if(s.srate>0){for(;o.seg+1<s.segs.length&&s.segs[o.seg+1].i0<=o.i;)o.seg++;c=Bn(s,s.segs[o.seg],o.i)}else c=r+s.c0+s.c1*r;if(o.time[o.n]=c-t.origin,s.fmt===`string`){let n=[];for(let t=0;t<s.nch;t++){let[t,r]=Pn(i.body,e,d);n.push(j(i.body.subarray(d+r,d+r+t))),d+=r+t}o.sel.forEach((e,t)=>{o.cols[t][o.n]=n[e]}),p.push({time:c-t.origin,text:n.join(` `)})}else o.sel.forEach((t,n)=>{let r=d+t*f,i=o.cols[n];switch(s.fmt){case`float32`:i[o.n]=e.getFloat32(r,!0);break;case`double64`:i[o.n]=e.getFloat64(r,!0);break;case`int8`:i[o.n]=e.getInt8(r);break;case`int16`:i[o.n]=e.getInt16(r,!0);break;case`int32`:i[o.n]=e.getInt32(r,!0);break;default:i[o.n]=e.getInt32(r+4,!0)*4294967296+e.getUint32(r,!0)}}),d+=f*s.nch;o.i++,++o.n===n&&(yield a(o))}p.length&&(yield{group:o.g,time:new Float64Array,start:o.start,length:0,columns:o.sel.map(()=>new Float64Array),events:p})}for(let e of r.values())e.n&&(yield a(e))}},Hn=2,Un=8,Wn=4,Gn=32,Kn=64,qn=4713,Jn=4714,Yn=32,Xn=68,Zn={1:1,2:2,3:4,4:8,5:1,6:2,7:4,8:8,9:4,10:8,25:4,26:8,33:1,68:16},Qn={0:5,1:1,2:6,3:2,4:7,5:3,6:8,7:4,8:9,9:10,4294967295:Xn},$n=65536,er=65536,tr=(e,t,n)=>n?k(e,t+8,n)+D(e,t,n)/2**64:k(e,t,n)+D(e,t+8,n)/2**64,nr=()=>Error(`This TDMS file is damaged (its metadata is cut short).`);function rr(e,t,n,r,i){if(n+(r===Yn?4:Zn[r]??0)>t.length)throw nr();switch(r){case Yn:{let r=e.getUint32(n,i);if(n+4+r>t.length)throw nr();return[j(t.subarray(n+4,n+4+r)),4+r]}case 1:return[e.getInt8(n),1];case 2:return[e.getInt16(n,i),2];case 3:return[e.getInt32(n,i),4];case 4:return[k(e,n,i),8];case 5:return[e.getUint8(n),1];case 6:return[e.getUint16(n,i),2];case 7:return[e.getUint32(n,i),4];case 8:return[D(e,n,i),8];case 9:case 25:return[e.getFloat32(n,i),4];case 10:case 26:return[e.getFloat64(n,i),8];case 33:return[e.getUint8(n)!==0,1];case Xn:return[tr(e,n,i),16];default:throw Error(`This TDMS file has a property of type ${r}, which Kymoscope cannot read.`)}}function ir(e){let t=/^\/'((?:[^']|'')*)'(?:\/'((?:[^']|'')*)')?$/.exec(e);return t?[t[1].replace(/''/g,`'`),(t[2]??``).replace(/''/g,`'`)]:null}var ar=4294967295;function or(e){if(e.has(`NI_Number_Of_Scales`))return Number(e.get(`NI_Number_Of_Scales`));let t=0;for(let n of e.keys()){let e=/^NI_Scale\[(\d+)\]_Scale_Type$/.exec(n);e&&(t=Math.max(t,Number(e[1])+1))}return t}function sr(e,t,n){let r=e.find(e=>or(e)>0);if(!r||r.get(`NI_Scaling_Status`)===`scaled`)return null;let i=(e,a)=>{if(e===ar||e<0||a>8)return e=>e;let o=r.get(`NI_Scale[${e}]_Scale_Type`);if(o===void 0)return e=>e;if(o===`Linear`){let t=Number(r.get(`NI_Scale[${e}]_Linear_Slope`)),n=Number(r.get(`NI_Scale[${e}]_Linear_Y_Intercept`)??0),o=i(Number(r.get(`NI_Scale[${e}]_Linear_Input_Source`)??ar),a+1);return o&&(e=>t*o(e)+n)}if(o===`Polynomial`){let o=Number(r.get(`NI_Scale[${e}]_Polynomial_Coefficients_Size`)??4);if(!(Number.isInteger(o)&&o>=0&&o<=64))return t.push(`${n}: an NI polynomial scale with ${o} coefficients is not supported; raw values are shown.`),null;let s=Array.from({length:o},(t,n)=>Number(r.get(`NI_Scale[${e}]_Polynomial_Coefficients[${n}]`))),c=i(Number(r.get(`NI_Scale[${e}]_Polynomial_Input_Source`)??ar),a+1);return c&&(e=>{let t=c(e),n=0;for(let e=o-1;e>=0;e--)n=n*t+s[e];return n})}return t.push(`${n}: NI scale type ${String(o)} is not supported; raw values are shown.`),null};return i(or(r)-1,0)}var cr={1:Int8Array,2:Int16Array,3:Int32Array,5:Uint8Array,6:Uint16Array,7:Uint32Array,9:Float32Array,10:Float64Array,25:Float32Array,26:Float64Array,33:Uint8Array};function lr(e,t,n,r,i,a,o,s){let c=cr[e];if(c&&a&&r===Zn[e]&&(t.byteOffset+n)%r===0){o.set(new c(t.buffer,t.byteOffset+n,i),s);return}switch(e){case 1:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getInt8(n);return;case 2:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getInt16(n,a);return;case 3:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getInt32(n,a);return;case 4:for(let e=0;e<i;e++,n+=r)o[s+e]=k(t,n,a);return;case 5:case 33:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getUint8(n);return;case 6:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getUint16(n,a);return;case 7:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getUint32(n,a);return;case 8:for(let e=0;e<i;e++,n+=r)o[s+e]=D(t,n,a);return;case 9:case 25:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getFloat32(n,a);return;case 10:case 26:for(let e=0;e<i;e++,n+=r)o[s+e]=t.getFloat64(n,a);return;case Xn:for(let e=0;e<i;e++,n+=r)o[s+e]=tr(t,n,a);return;default:o.fill(NaN,s,s+i)}}async function ur(e,t,n){let r=new Map,i=[],a=[],o=new Map,s=new Map,c=t??e,u=0,d=0;for(;u+28<=e.size&&d+28<=c.size;){let f=t?d:u,p=await c.read(f,28),m=l(p);if(!(p[0]===84&&p[1]===68&&p[2]===83&&(p[3]===109||p[3]===104)))throw Error(`This TDMS file is damaged (no segment lead-in where one should be).`);let h=m.getUint32(4,!0),g=!(h&Kn),_=D(m,12,g),v=D(m,20,g),y=_>=2**53?e.size:Math.min(e.size,u+28+_);if(v>y-u-28)throw Error(`This TDMS file is damaged (segment metadata longer than its segment).`);if(h&Hn){let e=await c.read(f+28,v),t=l(e);h&Wn&&(a=[],o=new Map);let i=0,u=t=>{if(i+t>e.length)throw nr()};u(4);let d=t.getUint32(i,g);i+=4;for(let c=0;c<d;c++){u(4);let c=t.getUint32(i,g);u(4+c);let l=j(e.subarray(i+4,i+4+c));i+=4+c;let d=ir(l),f=r.get(l);f||r.set(l,f={path:l,group:d?.[0]??``,name:d?.[1]??``,type:0,props:new Map,pieces:[],total:0}),u(4);let p=t.getUint32(i,g);i+=4;let m=null;if(p===4294967295)m=null;else if(p===0)m=s.get(f)??null;else if(p===qn||p===Jn){u(32);let e=D(t,i+8,g),r=t.getUint32(i+16,g),a=p===qn?20:17,o=i+20,s=Qn[t.getUint32(o,g)]??0,c=t.getUint32(o+8,g);i=o+r*a,u(4);let l=t.getUint32(i,g);i+=4,u(4*l);let d=0;for(let e=0;e<l;e++)d+=t.getUint32(i+4*e,g);i+=4*l,p===Jn?n.push(`${f.name}: DAQmx digital line data is not supported; skipped.`):(r>1&&n.push(`${f.name}: only the first of its ${r} DAQmx scalers is read.`),m={type:s,count:e,bytes:0,daqmx:{byteOffset:c,stride:d}})}else{if(p<20)throw nr();u(p-4);let e=t.getUint32(i,g);e===Yn&&u(24);let n=D(t,i+8,g),r=e===Yn?D(t,i+16,g):n*(Zn[e]??0);i+=p-4,m={type:e,count:n,bytes:r,daqmx:null}}m&&(f.type=m.type,s.set(f,m)),u(4);let h=t.getUint32(i,g);i+=4;for(let n=0;n<h;n++){u(4);let n=t.getUint32(i,g);u(8+n);let r=j(e.subarray(i+4,i+4+n));i+=4+n;let a=t.getUint32(i,g);i+=4;let[o,s]=rr(t,e,i,a,g);f.props.set(r,o),i+=s}let _=o.get(f);_===void 0?o.set(f,a.push({obj:f,idx:m})-1):a[_].idx=m}}if(h&Un){let e=u+28+v,t=a.filter(e=>e.idx&&e.idx.count>0),n=t.filter(e=>e.idx.daqmx),r=(h&Gn)!==0,o=0,s=0;n.length?(s=n[0].idx.daqmx.stride,o=n[0].idx.count*s):r?(s=t.reduce((e,t)=>e+(Zn[t.idx.type]??0),0),o=(t[0]?.idx.count??0)*s):o=t.reduce((e,t)=>e+t.idx.bytes,0);let c=o>0?Math.floor((y-e)/o):0,l=i.push({rawStart:e,chunkSize:o,chunks:c,le:g})-1,d=0;for(let e of t){let t=e.idx,n=Zn[t.type]??0,i=t.daqmx?{seg:l,count:t.count,offset:t.daqmx.byteOffset,bytes:0,stride:s,type:t.type}:{seg:l,count:t.count,offset:d,bytes:t.bytes,stride:r?s:n,type:t.type};t.daqmx||(d+=r?n:t.bytes),i.type===Yn?i.count=Math.min(i.count,Math.floor(i.bytes/4)):n>0&&(i.count=Math.min(i.count,i.stride>0?Math.max(0,Math.floor((o-i.offset-n)/i.stride)+1):0)),e.obj.pieces.push(i),c&&(e.obj.total+=i.count*c)}}if(u=y,d+=28+v,y>=e.size)break}return{objs:[...r.values()],segments:i}}var dr={...c,async plan(e,t){let n=e.companions.find(e=>e.name.toLowerCase().endsWith(`.tdms_index`)),r=[],{objs:i,segments:a}=await ur(t,n?new x(n):null,r),o=i.find(e=>e.path===`/`)?.props,s=i.filter(e=>e.name&&e.total>0&&(e.type===Yn||Zn[e.type])),c=new Set(s);for(let e of i)e.name&&e.total>0&&!c.has(e)&&r.push(`${e.name}: TDMS data type ${e.type} is not supported; skipped.`);let u=s.map(e=>e.props.get(`wf_start_time`)).filter(e=>typeof e==`number`),d=u.reduce((e,t)=>Math.min(e,t),u.length?1/0:0),f=new Map;for(let e of s){let t=`${e.total}|${e.props.get(`wf_increment`)??``}`,n=f.get(e.group)??new Map,r=n.get(t);r?r.push(e):n.set(t,[e]),f.set(e.group,n)}let p=[],m=[];for(let[e,t]of f)for(let n of t.values()){let r=n[0].props.get(`wf_increment`),i=typeof r==`number`&&r>0?1/r:null,a=i?null:n.find(e=>e.type===Xn)??n.find(e=>e.type!==Yn&&/^(time|timestamp|t)$/i.test(e.name))??null,o=n.filter(e=>e!==a),s=n[0].props.get(`wf_start_time`),c=i?Number(n[0].props.get(`wf_start_offset`)??0)+(typeof s==`number`?s-d:0):0;p.push({name:t.size===1?e:`${e} (${i?+i.toFixed(6):n[0].total} ${i?`Hz`:`samples`})`,channels:o.map(e=>({name:e.name,unit:String(e.props.get(`unit_string`)??``),text:e.type===Yn})),samples:n[0].total,time:i?{kind:`rate`,rate:i,start:c}:a?{kind:`timestamps`}:{kind:`index`},rateHz:i}),m.push({channels:o,time:a,origin:0})}if(p.length===0)throw Error(`This TDMS file has no channels with data.`);let h=[];for(let e of m){if(!e.time)continue;let n=e.time.pieces[0],r=a[n.seg],i=await t.read(r.rawStart+n.offset,Zn[n.type]??8),o=new Float64Array(1);lr(n.type,l(i),0,0,1,r.le,o,0),h.push(o[0])}let g=h.reduce((e,t)=>Math.min(e,t),h.length?1/0:0);for(let e of m)e.origin=g;let _=new Date(Date.UTC(1904,0,1)+d*1e3),v=d&&Number.isFinite(_.getTime())?_.toISOString():null,y={objs:i,segments:a,groups:m},b={};for(let[e,t]of o??[])typeof t==`string`&&(b[e]=t);return{format:`TDMS`,startTime:v,groups:p,meta:b,events:[],notes:r,state:y}},async*stream(e){for(let t of e.selection)yield*pr(e,t.group)},streamGroup:(e,t)=>pr(e,t)};function fr(e,t,n,r,i,a){let o=0;for(;o<i&&r.pi<t.pieces.length;){let s=t.pieces[r.pi],c=e.segments[s.seg];if(r.chunk>=c.chunks){r.pi++,r.chunk=0,r.row=0;continue}let l=Math.min(i-o,s.count-r.row),u=c.rawStart+r.chunk*c.chunkSize+s.offset;if(s.type===Yn)a.push({ch:n,at:u,end:u+s.bytes,rows:l,first:r.row,out:o,piece:s,le:c.le,range:0});else{let e=u+r.row*s.stride;a.push({ch:n,at:e,end:e+(l-1)*s.stride+Zn[s.type],rows:l,first:r.row,out:o,piece:s,le:c.le,range:0})}o+=l,r.row+=l,r.row>=s.count&&(r.chunk++,r.row=0)}}async function*pr(e,t){let n=e.plan.state,r=n.groups[t],i=Ne(e,t).map(e=>r.channels[e]),a=r.time?[r.time,...i]:i;if(!a.length)return;let o=new Map(n.objs.map(e=>[e.path,e.props])),s=e=>o.get(e)??new Map,c=s(`/`),u=a.map(e=>sr([e.props,s(`/'${e.group.replace(/'/g,`''`)}'`),c],[],e.name)),d=a.map(()=>({pi:0,chunk:0,row:0})),f=a.reduce((e,t)=>Math.min(e,t.total),1/0);for(let i=0;i<f;){e.signal?.throwIfAborted();let o=Math.min($n,f-i),s=[];a.forEach((e,t)=>fr(n,e,t,d[t],o,s));let c=s.slice().sort((e,t)=>e.at-t.at),p=[];for(let e of c){let t=p[p.length-1];t&&e.at<=t.end+er&&Math.max(t.end,e.end)-t.at<=16777216?t.end=Math.max(t.end,e.end):p.push({at:e.at,end:e.end}),e.range=p.length-1}let m=[];for(let t of p)m.push(await e.io.slice(t.at,t.end-t.at));let h=m.map(l),g=a.map(e=>e.type===Yn?Array(o).fill(null):new Float64Array(o).fill(NaN));for(let e of s){let t=e.at-p[e.range].at,n=e.piece;if(n.type===Yn){let r=m[e.range],i=h[e.range],a=t+4*n.count,o=g[e.ch];for(let n=0;n<e.rows;n++){let s=e.first+n,c=s===0?0:i.getUint32(t+4*(s-1),e.le),l=i.getUint32(t+4*s,e.le);o[e.out+n]=j(r.subarray(a+c,a+l))}}else lr(n.type,h[e.range],t,n.stride,e.rows,e.le,g[e.ch],e.out)}for(let e=0;e<a.length;e++){let t=u[e],n=g[e];if(t&&n instanceof Float64Array)for(let e=0;e<o;e++)n[e]=t(n[e])}let _=null;if(r.time){_=g.shift();for(let e=0;e<o;e++)_[e]-=r.origin}yield{group:t,time:_,start:i,length:o,columns:g},i+=o}}var mr=e=>!!e&&typeof e.keys==`function`,hr=1e5;function gr(){let e=new Set,t=0,n=!1;return{enter(t){let r=null;try{r=t.create_reference?Array.prototype.join.call(t.create_reference().ref_data,`,`):null}catch{r=null}return r===null?!0:e.has(r)?(n=!0,!1):(e.add(r),!0)},count:()=>++t<=hr,note:()=>t>1e5?`This file has more than ${hr.toLocaleString(`en-US`)} objects (or links that repeat its groups); only the first were read.`:n?`Some groups of this file link back to a group already read; each was read once.`:null}}function _r(e,t,n,r){return t.reduce((e,t)=>e*t,1)*Math.max(1,e.metadata.size||1)>(r?n*1032+1024:n)}var vr=e=>!!e&&typeof e.slice==`function`,yr=null,br=null,xr=new WeakMap;function Sr(){!yr||br||(br=yr(),br.catch(()=>{br=null}))}function Cr(e){if(!yr)return Promise.reject(Error(`HDF5 and MAT 7.3 files are read in the import worker, and this environment has no workers.`));Sr();let t=xr.get(e);return t||(t=br.then(t=>t(e)).then(e=>({root:e.root,close:()=>{}})),xr.set(e,t),t.catch(()=>xr.delete(e))),t}var wr=new WeakMap;function Tr(e,t,n){let r=wr.get(e);r||wr.set(e,r=new Map);let i=r.get(t);return i||r.set(t,i=n??e.get(t)),i}function Er(e){return e instanceof Float64Array?e:e instanceof BigInt64Array||e instanceof BigUint64Array?Float64Array.from(e,e=>Number(e)):ArrayBuffer.isView(e)?new Float64Array(e):Float64Array.from(e)}var Dr={s:1,sec:1,second:1,seconds:1,ms:.001,msec:.001,us:1e-6,µs:1e-6,ns:1e-9};function Or(e,...t){for(let n of t){let t=e[n]?.value;if(typeof t==`string`)return t;if(Array.isArray(t)&&typeof t[0]==`string`)return t[0]}return``}function kr(e,...t){for(let n of t){let t=e[n]?.value,r=typeof t==`number`?t:ArrayBuffer.isView(t)?Number(t[0]):NaN;if(Number.isFinite(r))return r}return null}var Ar=0,jr=1,Mr=3,Nr=6,Pr=new Set([1,2,3,4,5,6]),Fr=/^(time|t|timestamps?|.*[_ ]time|time[_ ].*)$/i,Ir=[`sampling_rate`,`sample_rate`,`samplerate`,`sampleRate`,`fs`,`Fs`,`rate`];function Lr(e,t,n,r,i,a,o=0){i.set(n,t.attrs);for(let s of t.keys()){if(!a.count())return;let c=n===`/`?`/${s}`:`${n}/${s}`,l=t.get(s);if(mr(l))o<16&&a.enter(l)&&Lr(e,l,c,r,i,a,o+1);else if(vr(l)){let t=Tr(e,c,l);r.push({path:c,parent:n,name:s,ds:t,attrs:t.attrs})}}}var Rr=e=>e===`/`?`root`:e.slice(1),zr=e=>Math.max(4096,Math.min(1<<20,Math.floor((8<<20)/(8*Math.max(1,e)))));async function Br(e,t){let n=Tr(e,t.path);if(t.col===null)return Er(n.slice([[0,1]]))[0]*t.factor;let r=n.slice([[0,1]]);return Number(r[0][t.col])*t.factor}var Vr={...b,async plan(e){let t=await Cr(e.main);try{let n=[],r=new Map,i=gr();i.enter(t.root),Lr(t.root,t.root,`/`,n,r,i);let a=[],o=i.note();o&&a.push(o);let s=new Map,c=[],l=0;for(let t of n){let n=t.ds.metadata.shape??[],r=t.ds.metadata.type,i=t.ds.metadata.chunks?t.ds.filters??[]:[],o=i.find(e=>!Pr.has(e.id)),u=!o;if(u&&i.length>0&&n.length>0&&n.every(e=>e>0))try{t.ds.slice(n.map(()=>[0,1]))}catch{u=!1}if(!u){a.push(`${t.path}: compressed with a filter Kymoscope cannot read${o?` (${o.name||o.id})`:``}; skipped.`);continue}if(_r(t.ds,n,e.main.size,i.length>0)){a.push(`${t.path}: larger than the file can hold (never written, or damaged); skipped.`);continue}if(n.length===1&&n[0]>1&&(r===Ar||r===jr||r===Mr)){let e=`${t.parent}|${n[0]}`,r=s.get(e)??{parent:t.parent,n:n[0],leaves:[]};r.leaves.push(t),s.set(e,r)}else if(n.length===2&&n[0]>1&&n[1]<=4096&&(r===Ar||r===jr)){let e=kr(t.attrs,...Ir);c.push({name:Rr(t.path),kind:`matrix`,rows:n[0],rate:e,time:null,origin:0,cols:Array.from({length:n[1]},(e,n)=>({path:t.path,col:n,text:!1,factor:1}))})}else if(n.length===1&&r===Nr){let e=(t.ds.metadata.compound_type?.members??[]).flatMap((e,n)=>e.type===Ar||e.type===jr?[{path:t.path,col:n,text:!1,factor:1,name:e.name}]:[]),r=e.find(e=>Fr.test(e.name));c.push({name:Rr(t.path),kind:`compound`,rows:n[0],rate:null,origin:0,time:r??null,cols:e.filter(e=>e!==r)})}else l++}for(let e of s.values()){let t=[...s.values()].filter(t=>t.parent===e.parent).length>1,n=e.leaves.find(e=>Or(e.attrs,`CLASS`)===`DIMENSION_SCALE`)??e.leaves.find(e=>Fr.test(e.name)&&e.ds.metadata.type!==Mr),i=n?Dr[Or(n.attrs,`units`,`unit`,`Units`)]??1:1,a=n?null:kr(r.get(e.parent)??{},...Ir);c.push({name:t?`${Rr(e.parent)} (${e.n} rows)`:Rr(e.parent),kind:`vectors`,rows:e.n,rate:a,origin:0,time:n?{path:n.path,col:null,text:!1,factor:i}:null,cols:e.leaves.filter(e=>e!==n).map(e=>({path:e.path,col:null,text:e.ds.metadata.type===Mr,factor:1}))})}l&&a.push(`${l} dataset${l===1?``:`s`} with other shapes or types (images, references, 3-D) skipped.`),c.sort((e,t)=>e.name.localeCompare(t.name));let u=c.map((e,t)=>e.time||e.rate?t:-1).filter(e=>e>=0),d=1/0;for(let e of c)e.time&&(d=Math.min(d,await Br(t.root,e.time)));for(let e of c)e.origin=Number.isFinite(d)?d:0;let f=new Map(n.map(e=>[e.path,e]));for(let e of c)e.chunk=[...e.cols,...e.time?[e.time]:[]].reduce((e,t)=>Math.max(e,f.get(t.path).ds.metadata.chunks?.[0]??0),0);let p=e=>Or(f.get(e.path).attrs,`units`,`unit`,`Units`,`UNITS`),m=(e,t)=>e.kind===`matrix`?`${e.name.split(`/`).pop()}[${t.col+1}]`:e.kind===`compound`?f.get(t.path).ds.metadata.compound_type.members[t.col].name:t.path.split(`/`).pop(),h=c.map(e=>({name:e.name,channels:e.cols.map(t=>({name:m(e,t),unit:e.kind===`vectors`?p(t):``,text:t.text})),samples:e.rows,time:e.time?{kind:`timestamps`}:e.rate?{kind:`rate`,rate:e.rate,start:0}:{kind:`index`},rateHz:e.rate}));if(h.length===0)throw Error(`This HDF5 file has no datasets Kymoscope can plot.`);let g=h.length>20||h.length>1&&u.length<h.length,_=g?u.length?u:[c.reduce((e,t,n)=>t.rows*t.cols.length>c[e].rows*c[e].cols.length?n:e,0)]:void 0;return g&&a.push(`Only the groups with a time base are read unless you choose others in the channel picker.`),{format:`HDF5`,startTime:null,groups:h,meta:{},events:[],notes:a,pick:g,defaultGroups:_,state:{groups:c}}}finally{t.close()}},async*stream(e){for(let t of e.selection)yield*Hr(e,t.group)},streamGroup:(e,t)=>Hr(e,t)};async function*Hr(e,t){let n=e.plan.state.groups[t],r=Ne(e,t).map(e=>n.cols[e]),i=await Cr(e.files.main);try{let a=n.chunk??0,o=a>0?Math.max(1,Math.min(Math.floor((1<<20)/a),Math.ceil(zr(r.length+1)/a)))*a:zr(r.length+1);for(let a=0;a<n.rows;a+=o){e.signal?.throwIfAborted();let s=Math.min(n.rows,a+o),c=s-a,l=null,u=e=>{let t=Tr(i.root,e.path);if(n.kind===`vectors`){let n=t.slice([[a,s]]);if(e.text)return Array.from(n,e=>e==null?null:String(e));let r=Er(n);if(e.factor!==1)for(let t=0;t<c;t++)r[t]*=e.factor;return r}let r=new Float64Array(c);if(n.kind===`matrix`){let n=(t.shape??[0,1])[1],i=l??=t.slice([[a,s],[0,n]]);for(let t=0;t<c;t++)r[t]=Number(i[t*n+e.col])}else{let n=l??=t.slice([[a,s]]);for(let t=0;t<c;t++)r[t]=Number(n[t][e.col])*e.factor}return r},d=null;if(n.time){d=u(n.time);for(let e=0;e<c;e++)d[e]-=n.origin}yield{group:t,time:d,start:a,length:c,columns:r.map(u)}}}finally{i.close()}}var Ur=/^(time|t|tout|timestamps?)$/i,Wr=/^(fs|sample_?rate|sampling_?rate|rate|samplerate)$/i,Gr=e=>e.slice(e.lastIndexOf(`.`)+1),Kr=e=>e.includes(`.`)?e.slice(0,e.lastIndexOf(`.`)):``;function qr(e,t){let n=/^(.*)\.values(\[\d+\])?$/.exec(e.name),r=n&&(t.get(`${n[1]}.label`)||t.get(`${n[1]}.blockName`));return r?{...e,name:`${r}${n[2]??``}`}:e}function Jr(e,t,n){let r=new Map;for(let t of e){if(!(t.length>1))continue;let e=r.get(t.length);e?e.push(t):r.set(t.length,[t])}let i=[...n].filter(([e])=>Wr.test(Gr(e))),a=i.length===1?i[0][1]:null,o=[];for(let[e,n]of r){let r=n.find(e=>Ur.test(Gr(e.name))||/(_time|\.Time)$/.test(e.name))??null;o.push({name:r?Kr(r.name)||r.name:`${e} samples`,channels:n.filter(e=>e!==r).map(e=>qr(e,t)),time:r,rate:r?null:a,origin:0})}return o}function Yr(e){return e.map(e=>({name:e.name,channels:e.channels.map(e=>({name:e.name,unit:``})),samples:e.channels[0]?.length??e.time?.length??0,time:e.time?{kind:`timestamps`}:e.rate?{kind:`rate`,rate:e.rate,start:0}:{kind:`index`},rateHz:e.rate}))}async function Xr(e){let t=1/0;for(let n of e)n.time&&(t=Math.min(t,(await n.time.read(0,1))[0]));for(let n of e)n.origin=Number.isFinite(t)?t:0}var Zr=class{#e;size;constructor(e){this.#e=e,this.size=e.size}read(e,t){return t>=65536?this.#e.slice(e,t):this.#e.read(e,t)}release(){}},Qr=class{#e;#t;#n;#r=null;keep=!0;size;constructor(e,t,n,r){this.#e=e,this.#t=t,this.#n=n,this.#r=r,this.size=r.length}async read(e,t){return this.#r??=await wt(await this.#e.slice(this.#t,this.#n),this.size,this.size),this.#r.subarray(e,e+t)}release(){this.keep||(this.#r=null)}},$r={1:1,2:1,3:2,4:2,5:4,6:4,7:4,9:8,12:8,13:8};function ei(e,t,n,r,i=1){let a=l(t),o=r.length,s=$r[e]*i;if(e===9&&i===1&&n){r.set(t.byteOffset%8==0?new Float64Array(t.buffer,t.byteOffset,o):new Float64Array(t.slice(0,o*8).buffer));return}switch(e){case 1:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getInt8(t);return;case 2:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getUint8(t);return;case 3:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getInt16(t,n);return;case 4:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getUint16(t,n);return;case 5:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getInt32(t,n);return;case 6:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getUint32(t,n);return;case 7:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getFloat32(t,n);return;case 9:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getFloat64(t,n);return;case 12:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getInt32(t+(n?4:0),n)*4294967296+a.getUint32(t+(n?0:4),n);return;case 13:for(let e=0,t=0;e<o;e++,t+=s)r[e]=a.getUint32(t+(n?4:0),n)*4294967296+a.getUint32(t+(n?0:4),n);return;default:r.fill(NaN)}}async function ti(e,t,n){let r=l(await e.read(t,8)),i=r.getUint32(0,n);if(i>>>16)return{type:i&65535,bytes:i>>>16,data:t+4,next:t+8};let a=r.getUint32(4,n);return{type:i,bytes:a,data:t+8,next:i===15?t+8+a:t+8+a+(8-a%8)%8}}function ni(e,t,n,r,i){let[a,o]=t,s=$r[r.type];if(!s)return[];let c=(e,t)=>async(a,o)=>{let c=new Float64Array(o-a);return t===1?ei(r.type,await n.read(r.data+(e+a)*s,(o-a)*s),i,c):ei(r.type,await n.read(r.data+(e+a*t)*s,((o-a-1)*t+1)*s),i,c,t),c};return a===1||o===1?[{name:e,length:a*o,read:c(0,1)}]:a>=o?Array.from({length:o},(t,n)=>({name:`${e}[${n+1}]`,length:a,read:c(n*a,1)})):Array.from({length:a},(t,n)=>({name:`${e}[${n+1}]`,length:o,read:c(n,a)}))}async function ri(e,t,r,i,a,o,s){let c=t,u=await ti(e,c,r),d=l(await e.read(u.data,8)).getUint32(0,r),f=d&255;c=u.next;let p=await ti(e,c,r);if(p.bytes>128){o.notes.push(`A MAT variable with more than 32 dimensions was skipped (damaged).`);return}let m=l(await e.read(p.data,p.bytes)),h=Array.from({length:p.bytes/4},(e,t)=>m.getInt32(4*t,r));c=p.next;let g=await ti(e,c,r),_=je(await e.read(g.data,g.bytes));c=g.next;let v=a??_,y=i?`${i}.${v}`:v,b=h.reduce((e,t)=>e*t,1);if(f>=6&&f<=15){if(b===0)return;let t=await ti(e,c,r);if(d&2048&&o.notes.push(`${y}: the imaginary part was skipped.`),h.length>2){o.notes.push(`${y}: arrays with more than two dimensions are skipped.`);return}if(!$r[t.type])return;if(!(b>0)||b*$r[t.type]>t.bytes||t.data+t.bytes>e.size){o.notes.push(`${y}: its data is shorter than its dimensions (damaged); skipped.`);return}if(b===1){let n=new Float64Array(1);ei(t.type,await e.read(t.data,$r[t.type]??8),r,n),o.scalars.set(y,n[0]);return}o.channels.push(...ni(y,h,e,t,r));return}if(f===4){let t=await ti(e,c,r);if(t.bytes>ii)return;let n=await e.read(t.data,t.bytes),i=t.type===3||t.type===4||t.type===17?new TextDecoder(r?`utf-16le`:`utf-16be`).decode(n.subarray(0,n.length&-2)):j(n);h[0]<=1&&o.strings.set(y,i);return}if(f===2){let t=await ti(e,c,r),i=l(await e.read(t.data,4)).getInt32(0,r);c=t.next;let a=await ti(e,c,r);if(!(i>0))return;let u=await e.read(a.data,a.bytes),d=Array.from({length:Math.floor(u.length/i)},(e,t)=>n(u.subarray(t*i,(t+1)*i)));if(c=a.next,d.length===0||b*d.length*8>e.size-c){b>0&&d.length>0&&o.notes.push(`${y}: its fields are longer than the file (damaged); skipped.`);return}for(let t=0;t<b;t++){let n=b>1?`${y}(${t+1})`:y;for(let t of d){let i=await ti(e,c,r);i.type===14&&i.bytes>0&&s<16&&await ri(e,i.data,r,n,t,o,s+1),c=i.next}}return}f===1?o.notes.push(`${y}: cell arrays are skipped.`):f===5?o.notes.push(`${y}: sparse arrays are skipped.`):o.notes.includes(ai)||o.notes.push(ai)}var ii=1<<17,ai=`MATLAB objects (timeseries, SimulationOutput) were skipped: save them as 'Structure with time' or as structs.`,oi=512<<20;async function si(e){let t=je((await e.read(0,128)).subarray(126,128))===`IM`,n={channels:[],strings:new Map,scalars:new Map,notes:[],sources:[]},i=new Zr(e),a=0;for(let o=128;o+8<=e.size;){let s=await ti(i,o,t);if(s.type===15){if(s.bytes>1<<30)throw Error(`A compressed variable in this MAT file is over 1 GB; save it with -v7.3 to open it here.`);let i=await e.slice(s.data,s.bytes),o=await wt(i,-1,8),c=o.length<8?0:8+l(o).getUint32(4,t);if(c>r(s.bytes))throw Error(`A compressed variable in this MAT file is damaged.`);if(c>1<<30)throw Error(`A compressed variable in this MAT file is over 1 GB; save it with -v7.3 to open it here.`);let u=await wt(i,c,c),d=new Qr(e,s.data,s.bytes,u);n.sources.push(d),a+=u.length;let f=await ti(d,0,t);if(f.type===14&&await ri(d,f.data,t,``,null,n,0),a>oi)for(let e of n.sources)e.keep=!1,e.release()}else s.type===14&&await ri(i,s.data,t,``,null,n,0);o=s.next}return n}var ci=65536,li=new Set([`double`,`single`,`int8`,`uint8`,`int16`,`uint16`,`int32`,`uint32`,`int64`,`uint64`,`logical`]);function ui(e,t){let n={channels:[],strings:new Map,scalars:new Map,notes:[]},r=gr();r.enter(e);let i=t=>Tr(e,t),a=(e,t,n)=>{let r=null;return(a,o)=>((r?.s!==a||r.e!==o)&&(r={s:a,e:o,v:Er(t?i(e).slice([[0,n],[a,o]]):i(e).slice([[a,o],[0,n]]))}),r.v)},o=(e,s,c,l)=>{for(let u of e.keys()){if(!r.count())return;if(u.startsWith(`#`))continue;let d=e.get(u);if(!d)continue;let f=`${s}/${u}`,p=c?`${c}.${u}`:u,m=d.attrs,h=Or(m,`MATLAB_class`);if(m.MATLAB_empty)continue;if(mr(d)){h===`struct`&&l<16&&r.enter(d)&&o(d,f,p,l+1);continue}if(!vr(d))continue;let g=d.shape??[];if(h===`char`){if(g.reduce((e,t)=>e*t,1)>ci)continue;let e=Er(d.slice(g.map(e=>[0,e])));n.strings.set(p,new TextDecoder(`utf-16le`).decode(Uint16Array.from(e)))}else if(li.has(h)&&g.length===2&&_r(d,g,t,!!d.metadata.chunks))n.notes.push(`${p}: larger than the file can hold (never written, or damaged); skipped.`);else if(li.has(h)&&g.length===2){let[e,t]=g;if(e*t===1){n.scalars.set(p,Er(i(f).slice([[0,1],[0,1]]))[0]);continue}if(e===1||t===1){let r=e*t;n.channels.push({name:p,length:r,read:async(t,n)=>Er(e===1?i(f).slice([[0,1],[t,n]]):i(f).slice([[t,n],[0,1]]))})}else if(t>=e){let r=a(f,!0,e);for(let i=0;i<e;i++)n.channels.push({name:`${p}[${i+1}]`,length:t,read:async(e,t)=>r(e,t).slice(i*(t-e),(i+1)*(t-e))})}else{let r=a(f,!1,t);for(let i=0;i<t;i++)n.channels.push({name:`${p}[${i+1}]`,length:e,read:async(e,n)=>{let a=r(e,n),o=new Float64Array(n-e);for(let e=0;e<o.length;e++)o[e]=a[e*t+i];return o}})}}else h===`cell`?n.notes.push(`${p}: cell arrays are skipped.`):h&&n.notes.push(`${p}: MATLAB class ${h} is skipped.`)}};o(e,``,``,0);let s=r.note();return s&&n.notes.push(s),n}var di=e=>Math.max(4096,Math.min(1<<18,Math.floor((16<<20)/(8*Math.max(1,e))))),fi={...S,async plan(e,t){let n=d(await t.read(0,20),`MATLAB 7.3`),r,i=[];if(n)r=ui((await Cr(e.main)).root,e.main.size);else{let e=await si(t);i=e.sources,r=e}let a=Jr(r.channels,r.strings,r.scalars).filter(e=>e.channels.length>0);await Xr(a);let o=Yr(a);if(o.length===0)throw Error(`This MAT file has no numeric vectors or matrices to plot.`);let s=o.flatMap((e,t)=>e.time.kind===`index`?[]:[t]),c=o.length>1&&s.length<o.length,l=Object.fromEntries(r.strings);for(let[e,t]of r.scalars)l[e]=String(t);return{format:n?`MAT 7.3`:`MAT 5`,startTime:null,groups:o,meta:l,events:[],notes:r.notes,pick:c,defaultGroups:c&&s.length?s:void 0,state:{groups:a,sources:i}}},async*stream(e){for(let t of e.selection)yield*pi(e,t.group)},streamGroup:(e,t)=>pi(e,t)};async function*pi(e,t){let n=e.plan.state,r=n.groups[t],i=Ne(e,t).map(e=>r.channels[e]),a=r.channels[0].length,o=di(i.length+1);try{for(let n=0;n<a;n+=o){e.signal?.throwIfAborted();let s=Math.min(a,n+o),c=null;if(r.time){c=await r.time.read(n,s);for(let e=0;e<c.length;e++)c[e]-=r.origin}let l=[];for(let e of i)l.push(await e.read(n,s));yield{group:t,time:c,start:n,length:s-n,columns:l}}}finally{for(let e of n.sources)e.release()}}function mi(e,t){let n=/^\s*(\d{1,2})\/(\d{1,2})\/(\d{2,4})\s*,\s*(\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))?/.exec(e??``);if(!n)return[null,0,!1];let[r,i]=t===1991?[n[2],n[1]]:[n[1],n[2]],a=n[3].length===2?2e3+Number(n[3]):Number(n[3]),o=Number(`${n[6]}.${n[7]??`0`}`);return[`${a}-${i.padStart(2,`0`)}-${r.padStart(2,`0`)}T${n[4].padStart(2,`0`)}:${n[5]}:${o.toFixed(3).padStart(6,`0`)}`,Date.UTC(a,Number(i)-1,Number(r),Number(n[4]),Number(n[5]))/1e3+o,(n[7]??``).length>6]}function hi(e){let t=e.split(/\r?\n/).map(e=>e.trim()),[n,,r]=t[0].split(`,`),i=Number(r)||1991,a=/(\d+)A\s*,\s*(\d+)D/i.exec(t[1]??``);if(!a)throw Error(`This COMTRADE .cfg is damaged (second line).`);let o=Number(a[1]),s=Number(a[2]);if(o+s>t.length)throw Error(`This COMTRADE .cfg is damaged (more channels than lines).`);let c=2,l=[];for(let e=0;e<o;e++,c++){let e=(t[c]??``).split(`,`);l.push({name:(e[1]??``).trim(),unit:(e[4]??``).trim(),a:Number(e[5]),b:Number(e[6]??0)||0})}let u=[];for(let e=0;e<s;e++,c++)u.push(((t[c]??``).split(`,`)[1]??``).trim());c++;let d=Number(t[c++]);if(!(Number.isInteger(d)&&d>=0&&d<=t.length-c))throw Error(`This COMTRADE .cfg is damaged (sample rates).`);let f=[];for(let e=0;e<Math.max(1,d);e++,c++){let[e,n]=(t[c]??``).split(`,`).map(Number);f.push([d===0?0:e,n])}let[p,m,h]=mi(t[c++],i),[g,_,v]=mi(t[c++],i),y=(t[c++]||`ASCII`).toUpperCase(),b=Number(t[c++])||1;return{station:n.trim(),rev:i,analog:l,digital:u,rates:f,start:p,trigger:g,startSec:m,triggerSec:_,ft:y,timemult:b,timebase:h||v?1e-9:1e-6}}var gi={BINARY:2,BINARY32:4,FLOAT32:4},_i=16<<20;async function vi(e){let t=je(await e.read(0,Math.min(e.size,1<<20))),n=t.search(/---\s*file type:\s*CFG\s*---\r?\n/i),r=/---\s*file type:\s*DAT\s+(ASCII|BINARY32|BINARY|FLOAT32)(?:\s*:\s*(\d+))?\s*---\r?\n/i.exec(t);if(n<0||!r)throw Error(`This COMTRADE .cff is damaged (no CFG or DAT section in its first megabyte).`);let i=t.indexOf(`
|
|
3
|
-
`,n)+1,a=t.slice(i).search(/---\s*file type:\s*(INF|HDR|DAT)/i),o=t.slice(i,a<0?void 0:i+a),s=r.index+r[0].length;return{cfg:o,offset:s,length:r[2]?Number(r[2]):e.size-s}}function yi(e,t,n,r){let i=0,a=0,o=t,s=0;for(let[t,c]of e){for(;o<c&&s<n;)r[s++]=a+(o-i)/t,o++;if(a+=(c-i)/t,i=c,s>=n)return}let c=e[e.length-1];for(;s<n;s++,o++)r[s]=a+(o-i)/c[0]}var bi=e=>e.companions.find(e=>e.name.toLowerCase().endsWith(`.dat`)),xi={...y,async plan(e,t){let n=e.main.name.toLowerCase().endsWith(`.cff`),r,i;if(n){let e=await vi(t);r=e.cfg,i={data:`self`,offset:e.offset,length:e.length}}else{let n=bi(e);if(!n)throw Error(`This COMTRADE .cfg needs its .dat file: drop both together.`);if(t.size>_i)throw Error(`This .cfg is too large to be a COMTRADE configuration file.`);r=je(await t.read(0,t.size)),i={data:`companion`,offset:0,length:n.size}}let a=hi(r);if(a.ft!==`ASCII`&&!gi[a.ft])throw Error(`This COMTRADE file has data file type ${a.ft}, which Kymoscope cannot read.`);let o=Math.ceil(a.digital.length/16),s=a.ft===`ASCII`?0:8+a.analog.length*gi[a.ft]+2*o,c=s?Math.floor(i.length/s):i.length,l=Math.min(a.rates[a.rates.length-1][1]||(s?c:-1),c),u=a.rates.length===1&&a.rates[0][0]>0?a.rates[0][0]:null,d=[`Analog values are shown as recorded (primary or secondary, per the CFG).`];return{format:`COMTRADE ${a.rev} (${a.ft})`,startTime:a.start,meta:{station:a.station,trigger:a.trigger??``},groups:[{name:a.station||`COMTRADE`,channels:[...a.analog.map(e=>({name:e.name,unit:e.unit})),...a.digital.map(e=>({name:e,unit:``}))],samples:l,time:{kind:`timestamps`},rateHz:u}],events:a.start&&a.trigger?[{time:Math.round((a.triggerSec-a.startSec)*1e6)/1e6,text:`Trigger`}]:[],notes:d,state:{...i,cfg:a,samples:l,recordSize:s}}},stream:e=>Si(e)};async function*Si(e){let t=e.plan.state,{cfg:n}=t,r=t.data===`self`?e.io:new x(bi(e.files)),i=Ne(e,0),a=n.analog.length,o=n.rates[0][0]>0,s=n.timemult*n.timebase,c=65536,u=0,d=(e,t,r)=>{let i=new Float64Array(e);if(o)yi(n.rates,u,e,i);else for(let n=0;n<e;n++)i[n]=t[n]*s;let a={group:0,time:i,start:u,length:e,columns:r};return u+=e,a};if(n.ft===`ASCII`){let o=n.rev>=1999?`99999`:``,s=i.map(e=>e<a?n.analog[e]:null),l=new Float64Array(c),u=i.map(()=>new Float64Array(c)),f=0,p=(e,t,n)=>{let r=e.slice(t,n).split(`,`);if(!(r.length<2)){l[f]=Number(r[1]);for(let e=0;e<i.length;e++){let t=(r[2+i[e]]??``).trim(),n=s[e];u[e][f]=t===``||n&&t===o?NaN:n?n.a*Number(t)+n.b:Number(t)}f++}},m=``,h=new TextDecoder(`latin1`);for await(let n of r.windows(t.offset,t.length)){e.signal?.throwIfAborted();let t=m+h.decode(n.bytes),r=0;for(let e=t.indexOf(`
|
|
4
|
-
`,r);e>=0;e=t.indexOf(`
|
|
5
|
-
`,r))p(t,r,e),r=e+1,f===c&&(yield d(f,l,u),l=new Float64Array(c),u=i.map(()=>new Float64Array(c)),f=0);m=t.slice(r)}m.trim()&&p(m,0,m.length),f&&(yield d(f,l.slice(0,f),u.map(e=>e.slice(0,f))));return}let f=t.recordSize,p=gi[n.ft],m=Math.max(1,Math.floor(Math.min(me,c*f)/f)),h=t.samples;for await(let s of r.windows(t.offset,Math.min(t.length,t.samples*f),m*f)){e.signal?.throwIfAborted();let t=Math.min(h,Math.floor(s.bytes.length/f));if(t<=0)break;let r=l(s.bytes),c=new Float64Array(t);if(!o)for(let e=0;e<t;e++)c[e]=r.getUint32(e*f+4,!0);yield d(t,c,i.map(e=>{let i=new Float64Array(t);if(e<a){let{a,b:o}=n.analog[e],s=8+e*p;if(n.ft===`BINARY`)for(let e=0,n=s;e<t;e++,n+=f){let t=r.getInt16(n,!0);i[e]=t===-32768?NaN:a*t+o}else if(n.ft===`BINARY32`)for(let e=0,n=s;e<t;e++,n+=f){let t=r.getInt32(n,!0);i[e]=t===-2147483648?NaN:a*t+o}else for(let e=0,n=s;e<t;e++,n+=f)i[e]=a*r.getFloat32(n,!0)+o}else{let n=e-a,o=8+a*p+2*(n>>4),s=1<<(n&15);for(let e=0,n=o;e<t;e++,n+=f)i[e]=r.getUint16(n,!0)&s?1:0}return i})),h-=t}}var Ci=(e,t)=>(e[t]|e[t+1]<<8|e[t+2]<<16)+e[t+3]*16777216;function wi(e,t){let{b:n,dv:r,o:i}=e;if(e.flags&128){let e=0,t=0;for(let a=24;a<34;a+=2)e+=r.getUint16(i+a,!0),t+=n[i+a]+n[i+a+1];let a=r.getUint16(i+34,!0);if((e&65535)!==a&&(t&65535)!==a)return!1}let a=[0,1,2,4][e.flags&3];if(!a)return!0;let o=i+e.hdr,s=i+t-a;if((s-o)%a)return!1;let c=0;if(a===1){for(let e=o;e<s;e++)c+=n[e];return(c&255)===n[s]}if(a===2){for(let e=o;e<s;e+=2)c+=r.getUint16(e,!0);return(c&65535)===r.getUint16(s,!0)}for(let e=o;e<s;e+=4)c=(c+r.getUint32(e,!0))%4294967296;return c===r.getUint32(s,!0)}async function*Ti(e,t,n,r){let i=e.size,a={},o=(e,t,n)=>pe(e,t)&&n+Ci(e,t+4)<=i,s=0,c=!1;for(;s<i;){r?.throwIfAborted();let l=await e.slice(s,Math.min(me,i-s)),u=new DataView(l.buffer,l.byteOffset,l.byteLength),d=0,f=-1;for(;f<0;){if(s+d+24>i){s+d<i&&!c&&(n.cut=!0),f=i;break}if(d+24>l.length){f=s+d;break}let r=s+d;if(pe(l,d)&&r+Ci(l,d+4)>i){n.cut=!0,f=i;break}if(!o(l,d,r)){c||=(n.damaged++,!0);let e=d+1;for(;e+24<=l.length&&!(l[e]===37&&l[e+1]===235&&o(l,e,s+e));)e++;d=e;continue}c=!1;let p=Ci(l,d+4);if(d+p>l.length){if(p<=16777216){f=r;break}let i=await e.slice(r,p);Ei(a,i,new DataView(i.buffer,i.byteOffset,i.byteLength),0,r,p,t,n),f=r+p;break}Ei(a,l,u,d,r,p,t,n),d+=Math.max(p,24)}s=f,yield}}function Ei(e,t,n,r,i,a,o,s){if(e.b=t,e.dv=n,e.o=r,e.at=i,e.ch=n.getUint16(r+2,!0),e.flags=t[r+14],e.type=t[r+15],e.rtc=n.getUint32(r+16,!0)+n.getUint16(r+20,!0)*4294967296,e.hdr=e.flags&128?36:24,e.dlen=Ci(t,r+8),!wi(e,a)){s.damaged++;return}o(e)}function Di(e,t,n){let r=e.getUint32(t,!0),i=e.getUint32(t+4,!0);return n===1?i+r/1e9:n===2?(i*4294967296+r)/1e9:(i>>>0)*.01+(r>>>16)*1e-6}function Oi(e,t){let{dv:n}=e;if(!(e.flags&64)||!(e.flags&128))return n.getUint32(t,!0)+n.getUint16(t+4,!0)*4294967296;let r=e.flags>>2&3;return e.rtc+(Di(n,t,r)-Di(n,e.o+24,r))*1e7}function ki(e,t){let{dv:n}=e,r=e.o+e.hdr;if(e.dlen<10)return null;let i=n.getUint32(r,!0);if((i>>4&15)==15||(i&15)==15)return null;let a=i>>9&1;if(a&&e.dlen<12)return null;let o=e=>n.getUint16(r+4+2*e,!0),s=(e,t,n=15)=>e>>t&n,c=[s(o(0),0),s(o(0),4),s(o(0),8),s(o(0),12,7),s(o(1),0),s(o(1),4,7),s(o(1),8),s(o(1),12,3),s(o(2),0),s(o(2),4)];if(c.some(e=>e>9))return null;let l=c[0]*10+c[1]*100,u=c[2]+c[3]*10,d=c[4]+c[5]*10,f=c[6]+c[7]*10;if(u>60||d>59||f>23)return null;if(!a){let e=s(o(2),8,3),n=c[8]+c[9]*10+e*100;return e>3||n<1||n>366?null:(n===1&&t.day>=365&&t.year++,t.day=n,{ms:Date.UTC(t.year,0,n,f,d,u,l),hasYear:!1})}let p=s(o(2),8)+s(o(2),12,1)*10,m=[s(o(3),0),s(o(3),4),s(o(3),8),s(o(3),12,3)];if(m.some(e=>e>9)||s(o(2),8)>9||p<1||p>12)return null;let h=c[8]+c[9]*10;return h<1||h>31?null:{ms:Date.UTC(m[0]+m[1]*10+m[2]*100+m[3]*1e3,p-1,h,f,d,u,l),hasYear:!0}}var Ai=1<<20,ji=16384,Mi=1024,Ni=65536,Pi=4e6;function Fi(e){let t=new Map;for(let n of e.split(`;`)){let e=n.indexOf(`:`);if(e<0)continue;let r=n.slice(0,e).replace(/\s+/g,``).toUpperCase();r&&t.set(r,n.slice(e+1).trim())}return t}var P=e=>e!==void 0&&/^\s*[+-]?\d+\s*$/.test(e)?Number(e):null,Ii=e=>{if(e===void 0||e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null};function Li(e,t){let n=[];for(let r of e.keys()){let e=t.exec(r);e&&n.push(e)}return n}var Ri=new WeakMap;function zi(e,t){let n=Ri.get(e);if(!n){Ri.set(e,n=new Map);for(let t of e.keys()){let e=/^(.*\D)(\d+)$/.exec(t);if(!e)continue;let r=n.get(e[1]);r?r.push([t,e[2]]):n.set(e[1],[[t,e[2]]])}}return n.get(t)??[]}function Bi(e){for(let t of[`G\\OD`,`G\\UD`,`G\\RD`]){let n=/(\d{4})\s*$/.exec(e.get(t)??``);if(n)return Number(n[1])}return null}var Vi=e=>t=>{let n=0;for(let r=0;r<e.length;r++)n+=e[r]*t**r;return n};function Hi(e,t,n){let r=n+1,i=Array.from({length:r},()=>Array(r+1).fill(0));for(let n=0;n<e.length;n++)for(let a=0;a<r;a++){for(let t=0;t<r;t++)i[a][t]+=e[n]**(a+t);i[a][r]+=t[n]*e[n]**a}for(let e=0;e<r;e++){let t=e;for(let n=e+1;n<r;n++)Math.abs(i[n][e])>Math.abs(i[t][e])&&(t=n);if(i[t][e]===0)return null;[i[e],i[t]]=[i[t],i[e]];for(let t=0;t<r;t++){if(t===e)continue;let n=i[t][e]/i[e][e];for(let a=e;a<=r;a++)i[t][a]-=n*i[e][a]}}return i.map((e,t)=>e[r]/e[t])}function Ui(e){return e.sort((e,t)=>e[0]-t[0]),t=>{let n=0;for(;n<e.length-2&&t>e[n+1][0];)n++;let[r,i]=e[n],[a,o]=e[n+1];return i+(t-r)*(o-i)/(a-r)}}function Wi(e,t){let n=n=>e.get(`C-${t}\\${n}`),r={unit:n(`MN3`)??``,bfm:n(`BFM`)?.toUpperCase()??null,fpf:n(`FPF`)?.toUpperCase()??null,apply:null,unsupported:null},i=(n(`DCT`)??`NON`).toUpperCase();if(i===`PRS`){let e=Math.min(32,P(n(`PS\\N`))??0),t=[];for(let r=1;r<=e;r++){let e=Ii(n(`PS3-${r}`)),i=Ii(n(`PS4-${r}`));e!==null&&i!==null&&t.push([e,i])}if(t.length<2||new Set(t.map(e=>e[0])).size!==t.length)r.unsupported=`pair sets that do not define a conversion`;else if((n(`PS1`)??`N`).toUpperCase()===`Y`){let e=Math.min(P(n(`PS2`))??t.length-1,t.length-1,5),i=Hi(t.map(e=>e[0]),t.map(e=>e[1]),Math.max(1,e));i?r.apply=Vi(i):r.unsupported=`pair sets that do not define a conversion`}else r.apply=Ui(t)}else if(i===`COE`||i===`NPC`){let e=i===`COE`?`CO`:`NPC`,t=P(n(`${e}\\N`)),a=t!==null&&t>=0&&t<=100?[Ii(n(e)),...Array.from({length:t},(t,r)=>Ii(n(`${e}-${r+1}`)))]:[];if(!a.length||a.some(e=>e===null))r.unsupported=`coefficients missing`;else if(i===`COE`)r.apply=Vi(a);else{let e=Vi(a);r.apply=t=>e(1/t)}}else i!==`NON`&&(r.unsupported=`conversion type ${i}`);return r}function Gi(e){let t=new Map;for(let n of Li(e,/^C-(\d+)\\DCN$/)){let r=e.get(n[0]);t.has(r)||t.set(r,Wi(e,n[1]))}return t}function Ki(e,t,n,r){let i=2**(t-1);switch(n){case null:case`UNS`:return e;case`TWO`:case`INT`:return e>=i?e-2*i:e;case`OFF`:return e-i;case`ONE`:return e>=i?-(2*i-1-e):e;case`SIG`:return e>=i?-(e-i):e;case`SIM`:return e>=i?e-i:-e;case`FPT`:return t!==32||r!==null&&r!==`IEEE_32`?NaN:(qi.setUint32(0,e),qi.getFloat32(0));case`BCD`:{let n=0;for(let r=Math.ceil(t/4)-1;r>=0;r--){let t=Math.floor(e/2**(4*r))%16;if(t>9)return NaN;n=n*10+t}return n}default:return e}}var qi=new DataView(new ArrayBuffer(4)),Ji=(e,t)=>e===null||[`UNS`,`TWO`,`INT`,`OFF`,`ONE`,`SIG`,`SIM`,`BCD`].includes(e)||e===`FPT`&&(t===null||t===`IEEE_32`),Yi={1:`ONE`,2:`TWO`,3:`SIG`,4:`SIM`,B:`OFF`,U:`UNS`,F:`FPT`};function Xi(e){let t=new Map;for(let n of Li(e,/^R-(\d+)\\TK1-(\d+)$/)){let r=P(e.get(n[0]));if(r===null||r<0||r>65535||t.has(r))continue;let[i,a]=[n[1],n[2]],o=t=>e.get(`R-${i}\\${t}-${a}`),s=Ii(o(`ASR`)),c={id:r,name:o(`DSI`)??``,type:(o(`CDT`)??``).toUpperCase(),dln:o(`CDLN`)??``,rate:s&&s>=1e-6&&s<=1e10?s:null,analog:new Map,discrete:[]};for(let t of zi(e,`R-${i}\\AMN-${a}-`)){let n=t[1],r=P(e.get(`R-${i}\\AMCN-${a}-${n}`))??Number(n);c.analog.set(r,{name:e.get(t[0]),bfm:Yi[(e.get(`R-${i}\\AF-${a}-${n}`)??``).toUpperCase()]??null})}for(let t of zi(e,`R-${i}\\DMN-${a}-`).sort((e,t)=>Number(e[1])-Number(t[1]))){let n=(e.get(`R-${i}\\DMSK-${a}-${t[1]}`)??``).toUpperCase();(n===`FW`||/^[01]{1,32}$/.test(n))&&c.discrete.push({name:e.get(t[0]),mask:n===`FW`?null:n})}t.set(r,c)}return t}function Zi(e,t){let n=new Map;for(let r of Li(e,/^P-(\d+)\\DLN$/)){let i=r[1],a=e.get(r[0]),o=t=>e.get(`P-${i}\\${t}`),s=P(o(`MF1`)),c=P(o(`MF\\N`))??1,l=P(o(`F1`)),u=P(o(`MF4`));if(s===null||s<2||s>ji||c<1||c>Mi||l===null||l<1||l>64||u===null||u<1||u>64){t(`PCM format ${a} (its frame is not described or out of range)`);continue}let d=[u,...Array(s-1).fill(l)];for(let t of zi(e,`P-${i}\\MFW1-`)){let n=P(e.get(t[0])),r=P(o(`MFW2-${t[1]}`));n!==null&&n>=1&&n<s&&r!==null&&r>=1&&r<=64&&(d[n]=r)}let f=d.reduce((e,t)=>e+t,0),p=P(o(`MF2`)),m=(o(`MF5`)??``).replace(/\s/g,``).toUpperCase(),h=Ii(o(`D2`)),g=(o(`F2`)??`M`).toUpperCase()===`L`,_=null;if((P(o(`ISF\\N`))??0)>=1){let e=P(o(`IDC1-1`)),t=P(o(`IDC3-1`))??1,n=P(o(`IDC4-1`));if(e!==null&&e>=1&&e<s&&n!==null&&n>=1&&t>=1&&t+n-1<=d[e]&&n<=32){let r=P(o(`IDC6-1`))??0,i=(o(`IDC10-1`)??`INC`).toUpperCase()===`DEC`,a=(o(`IDC5-1`)??`D`).toUpperCase();_={word:e,len:n,shift:d[e]-(t+n-1),lsbFirst:a===`L`||a===`D`&&g,init:r,end:P(o(`IDC8-1`))??(i?r-(c-1):r+c-1),initFrame:P(o(`IDC7-1`))??1,dec:i}}}n.set(a,{dln:a,mfn:c,widths:d,frameBits:Math.max(f,Math.min(p??0,f+Ni)),sync:m.length===u&&/^[01X]+$/.test(m)?m:``,bitRate:h&&h>=1e-6&&h<=1e10?h:null,lsbFirst:g,idc:_,params:[]})}for(let r of Li(e,/^D-(\d+)\\DLN$/)){let i=n.get(e.get(r[0]));if(!i)continue;let a=r[1],o=t=>e.get(`D-${a}\\${t}`),s=i.lsbFirst;(P(o(`ML\\N`))??1)>1&&t(`measurement lists after the first of ${i.dln}`);let c=0,l=zi(e,`D-${a}\\MN-1-`).sort((e,t)=>Number(e[1])-Number(t[1]));for(let n of l){let r=n[1],a=e.get(n[0]),l=(o(`LT-1-${r}`)??`WDFR`).toUpperCase();if(l!==`WDFR`){t(`${a} (${l===`TD`?`tagged data`:l===`REL`?`a relative location`:`location type ${l}`})`);continue}let u=(o(`MN3-1-${r}`)??`D`).toUpperCase(),d=u===`L`||u===`D`&&s,f=Math.min(P(o(`MML\\N-1-${r}`))??1,9999),p=null,m=[],h=``;for(let e=1;e<=f&&!h;e++){let t=P(o(`MNF\\N-1-${r}-${e}`))??1;if(t<1||t>8){h=`fragments out of range`;break}let n=[];for(let a=1;a<=t;a++){let t=t=>o(`${t}-1-${r}-${e}-${a}`),s=P(t(`WP`)),l=P(t(`WI`))??0,u=P(t(`FP`))??1,f=P(t(`FI`))??0;if(s===null||s<1||s>=i.widths.length||u<1||u>i.mfn||l<0||f<0){h=`a location outside its frame`;break}let p=(f?Math.floor((i.mfn-u)/f)+1:1)*(l?Math.floor((i.widths.length-1-s)/l)+1:1);if(c+p>Pi){h=`too many locations`;break}let m=[];for(let e=u;e<=i.mfn;e+=f||i.mfn)for(let t=s;t<i.widths.length;t+=l||i.widths.length)m.push([e,t]);let g=(t(`WFM`)??`FW`).toUpperCase(),_=g===`FW`||g===``?null:/^[01]+$/.test(g)&&g.length<=i.widths[s]?g.padEnd(i.widths[s],`0`):void 0;if(_===void 0){h=`a bit mask that does not fit its word`;break}let v=(t(`WFT`)??`D`).toUpperCase();n.push({pos:m,mask:_,lsbFirst:v===`D`?d:v===`L`,at:P(t(`WFP`))??a})}if(h)break;n.sort((e,t)=>e.at-t.at);let a=n.map(e=>({mask:e.mask,lsbFirst:e.lsbFirst}));if(p&&JSON.stringify(p)!==JSON.stringify(a)){h=`locations that differ in their fragments`;break}p=a;let s=n[0].pos.length;if(n.some(e=>e.pos.length!==s)){h=`fragments in different numbers of places`;break}for(let e=0;e<s;e++){let t=n[0].pos[e][0];if(n.some(n=>n.pos[e][0]!==t)){h=`fragments in different minor frames`;break}m.push({frame:t,words:n.map(t=>t.pos[e][1])})}(c+=s+i.mfn)>Pi&&(h=`too many locations`)}if(!h&&p&&p.reduce((e,t,n)=>e+(p[n].mask?[...p[n].mask].filter(e=>e===`1`).length:i.widths[m[0]?.words[n]??0]),0)>64&&(h=`more than 64 bits`),h||!p||!m.length){t(`${a} (${h||`no location`})`);continue}let g=new Set,_=m.filter(e=>{let t=`${e.frame}:${e.words.join(`,`)}`;return g.has(t)?!1:(g.add(t),!0)});_.sort((e,t)=>e.frame-t.frame||Math.min(...e.words)-Math.min(...t.words)),i.params.push({name:a,frags:p,occ:_})}}return n}function Qi(e,t){let n=[],r=0;for(let t of e.widths)n.push(r),r+=t;let i=Math.max(r,e.frameBits),a=-i&8*t-1;return{offsets:n,frameBytes:(i+a)/8,tail:a?i-i%(8*t):1/0,fill:a}}function $i(e,t){let n=e.widths[0],r=n<=16?16:n<=32?32:t===4?Math.ceil(n/32)*32:Math.ceil(n/16)*16,i=[r-n],a=r;for(let t=1;t<e.widths.length;t++){let n=Math.ceil(e.widths[t]/16)*16;i.push(a+n-e.widths[t]),a+=n}return t===4&&a%32&&(a+=16),{offsets:i,frameBytes:a/8,tail:1/0,fill:0}}function ea(e,t,n,r,i){let a=0,o=r,s=i;for(;s>0;){let r=e[t+(o>>3^n)],i=o&7,c=Math.min(8-i,s);a=a*(1<<c)+(r>>8-i-c&(1<<c)-1),s-=c,o+=c}return a}function ta(e,t,n,r){let i=0,a=0,o=n;for(;a<r;){let n=o&7,s=Math.min(8-n,r-a);i+=(e[t+(o>>3)]>>n&(1<<s)-1)*2**a,a+=s,o+=s}return i}function na(e,t){let n=0;for(let r=0;r<t;r++)n=n*2+e%2,e=Math.floor(e/2);return n}function ra(e,t,n){let r=e.offsets[t],i=Math.min(Math.max(e.tail-r,0),n),a=(t,n)=>ea(e.b,e.base,e.xor,e.bit0+t,n);return i===n?a(r,n):i===0?a(r+e.fill,n):a(r,i)*2**(n-i)+a(e.tail+e.fill,n-i)}function ia(e,t,n){let r=t.frags.map(e=>e.mask?[...e.mask].flatMap((e,t)=>e===`1`?[t]:[]):null),i=t.frags.map(e=>e.lsbFirst),a=n?.bfm??null,o=n?.fpf??null,s=n?.apply??null;return(t,n)=>{let c=0,l=0;for(let a=0;a<n.length;a++){let o=n[a],s=e.widths[o],u=ra(t,o,s);i[a]&&(u=na(u,s));let d=r[a];if(d)for(let e of d)c=c*2+Math.floor(u/2**(s-1-e))%2,l++;else c=c*2**s+u,l+=s}let u=Ki(c,l,a,o);return s?s(u):u}}function aa(e,t){let n=e.idc,r=e.widths[n.word],i=Math.floor(ra(t,n.word,r)/2**n.shift)%2**n.len;return n.lsbFirst&&(i=na(i,n.len)),i<Math.min(n.init,n.end)||i>Math.max(n.init,n.end)?0:((((n.dec?n.init-i:i-n.init)%e.mfn+e.mfn)%e.mfn+n.initFrame-1)%e.mfn+e.mfn)%e.mfn+1}var oa=class{#e=new Uint8Array;#t=0;#n=0;#r=!1;#i=[];#a;#o;#s;constructor(e){this.#a=e,this.#o=e.frameBits,this.#s=Qi(e,2).offsets}#c(e){let t=this.#a.sync,n=this.#e;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);if(i===88)continue;let a=e+r;if((n[a>>3]>>7-(a&7)&1)!=i-48)return!1}return!0}push(e,t,n,r,i,a){n-=n%(r+1);let o=this.#n>>3,s=(this.#t>>3)-o,c=new Uint8Array(s+n);c.set(this.#e.subarray(o,o+s));for(let i=0;i<n;i++)c[s+i]=e[t+(i^r)];this.#e=c,this.#n-=o*8,this.#t=c.length*8;for(let e of this.#i)e.bit-=o*8;for(;this.#i.length>1&&this.#i[1].bit<=this.#n;)this.#i.shift();this.#i.push({bit:s*8,sec:i});let l=this.#a.sync.length,u={b:c,base:0,xor:0,bit0:0,offsets:this.#s,tail:1/0,fill:0};for(;;){if(!this.#r){let e=this.#n;for(;e+l<=this.#t&&!this.#c(e);)e++;if(this.#n=e,e+l>this.#t)return;this.#r=!0}if(this.#n+this.#o>this.#t)return;if(!this.#c(this.#n)){this.#r=!1,this.#n++;continue}let e=this.#i.length-1;for(;e>0&&this.#i[e].bit>this.#n;)e--;let t=this.#i[e];u.bit0=this.#n,a(u,t.sec+(this.#a.bitRate?(this.#n-t.bit)/this.#a.bitRate:0)),this.#n+=this.#o}}},sa=65536,ca=4096,la=17,ua=33,da=41,fa=9,pa=1;function ma(e){let t=[[[0],`Computer-generated`,`computer-generated`],[[1],`TMATS`,`TMATS`],[[2],`Recording events`,`recording event`],[[3],`Recording index`,`recording index`],[[4],`Streaming configuration`,`streaming configuration`],[[9],`PCM`,`PCM`],[[17],`Time`,`time`],[[18],`Network time`,`network time`],[[25,26],`MIL-STD-1553`,`MIL-STD-1553`],[[33],`Analog`,`analog`],[[41],`Discrete`,`discrete`],[[48],`Message`,`message`],[[56],`ARINC-429`,`ARINC-429`],[[64,65,66,67,68],`Video`,`video`],[[72,73,74],`Image`,`image`],[[80],`UART`,`UART`],[[88,89],`IEEE 1394`,`IEEE 1394`],[[96],`Parallel`,`parallel`],[[104,105],`Ethernet`,`Ethernet`],[[112,113,114],`TSPI/CTS`,`TSPI/CTS`],[[120],`CAN bus`,`CAN bus`],[[121,122],`Fibre Channel`,`Fibre Channel`]].find(([t])=>t.includes(e)),n=`data type 0x${e.toString(16).padStart(2,`0`)}`;return t?[t[1],t[2]]:[n[0].toUpperCase()+n.slice(1),n]}var ha=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,ga=(e,t)=>{let n=e.ref??e.first;return n?(n.ms-e.baseMs)/1e3+_a(t-n.rtc)/1e7:_a(t-(e.baseRtc??0))/1e7},_a=e=>e-Math.round(e/2**48)*2**48;function va(e,t){let{dv:n}=e,r=e.o+e.hdr;if(e.dlen<4)return null;let i=n.getUint32(r,!0),a=i>>>28&1,o=i>>>16&255||256,s=a?1:o;if(e.dlen<4*s)return null;let c=[];for(let e=0;e<o;e++){let t=a?i:n.getUint32(r+4*e,!0),o=t&3;if(o===2)return null;c.push({sub:a?e+1:t>>>8&255||256,factor:t>>>24&15,len:t>>>2&63||64,mode:o})}let l=c.map(e=>`${e.sub}/${e.factor}/${e.len}/${e.mode}`).join(`,`);if(t)return l===t.sig?t:`other`;let u=2**Math.max(...c.map(e=>e.factor)),d=e=>e.mode?Math.ceil(e.len/16)*16:e.len;if(c.reduce((e,t)=>e+d(t)*(u/2**t.factor),0)>(e.dlen-4*s)*8)return null;let f=[],p=0;for(let e=0;e<u;e++){let t=[];c.forEach((n,r)=>{(e+1)%2**n.factor||(t.push([r,p+(n.mode===1?d(n)-n.len:0)]),p+=d(n))}),f.push(t)}return{sig:l,subs:c,ncsdw:s,nsim:u,sims:f,schedBits:p}}function ya(e,t,n,r){let i=n.model.convs,a=Qi(t,2).offsets,o=new Map,s=t.params.map(e=>{let n=Array.from({length:t.mfn+1},()=>[]);for(let t of e.occ)n[t.frame].push(t.words);return n}),c=s.map(e=>e.some(e=>e.length>1));t.params.forEach((e,t)=>{let n=s[t].map(e=>e.map(e=>c[t]?Math.min(...e.map(e=>a[e])):-1).join(`,`)).join(`|`)+(c[t]?`+`:``),r=o.get(n);r?r.push(t):o.set(n,[t])});let l=t.bitRate?t.bitRate/t.frameBits:null,u=0;return{f:t,groups:[...o].map(([o,d])=>{let f=d[0],p=s[f].reduce((e,t)=>e+t.length,0),m=p===t.mfn?``:p%t.mfn===0?` (×${p/t.mfn})`:t.mfn%p===0?` (÷${t.mfn/p})`:` (${p}/${t.mfn})`;return{gid:n.out.id(`p:${e}:${o}`,()=>({name:r+m,rate:l?l*p/t.mfn:null,order:u++,channels:d.map(e=>({name:t.params[e].name,unit:i.get(t.params[e].name)?.unit??``}))})),params:d,rows:s[f].map((e,n)=>e.map((e,r)=>({dt:c[f]&&t.bitRate?Math.min(...e.map(e=>a[e]))/t.bitRate:0,words:d.map(e=>s[e][n][r])})))}}),layouts:new Map,framer:null,counter:0,readers:t.params.map(e=>ia(t,e,i.get(e.name)))}}function ba(e,t,n,r,i){let a=e.f.idc?aa(e.f,t):r;if(!a){i.problems.frames++;return}let o=i.out;for(let r of e.groups)for(let i of r.rows[a])if(o.row(r.gid,n+i.dt))for(let n=0;n<r.params.length;n++)o.put(r.gid,n,e.readers[r.params[n]](t,i.words[n]))}function xa(e,t,n){let{dv:r}=e,i=e.o+e.hdr,a=()=>{n.problems.pcmMismatch++};if(e.dlen<4)return a();let o=r.getUint32(i,!0),s=o>>>18&1,c=o>>>19&1,l=o>>>20&1,u=o>>>21&1?4:2,d=u-1,f=ga(n.clock,e.rtc),p=t.f;if(s+c+l!==1)return a();if(l){if(!p.sync)return a();t.framer??=new oa(p),t.framer.push(e.b,i+4,e.dlen-4,d,f,(e,r)=>ba(t,e,r,t.counter++%p.mfn+1,n));return}let m=c*2+ +(u===4),h=t.layouts.get(m);h||t.layouts.set(m,h=c?Qi(p,u):$i(p,u));let g=o>>>30&1?u===4?12:10:0,_=g+h.frameBytes,v=(e.dlen-4)/_;if(!Number.isInteger(v))return a();o>>>29&1&&(t.counter=0);let y={b:e.b,base:0,xor:d,bit0:0,offsets:h.offsets,tail:h.tail,fill:h.fill};for(let r=0;r<v;r++){let a=i+4+r*_;y.base=a+g,ba(t,y,g?ga(n.clock,Oi(e,a)):f+(p.bitRate?r*p.frameBits/p.bitRate:0),t.counter++%p.mfn+1,n)}}function Sa(e,t,n,r,i,a){let o=va(e,n.layout);if(o===`other`){r.problems.analogLayout++;return}if(!o){r.problems.damaged++;return}if(!n.layout){n.layout=o;let e=new Map;o.subs.forEach((t,n)=>{let r=e.get(t.factor);r?r.push(n):e.set(t.factor,[n])});let s=[...e.keys()].sort((e,t)=>e-t),c=o.subs.map(e=>a?.analog.get(e.sub));n.convs=c.map(e=>e?r.model?.convs.get(e.name):void 0),n.bfm=c.map((e,t)=>n.convs[t]?.bfm??e?.bfm??null);for(let a of s){let s=e.get(a),l=r.out.id(`a:${t}:${a}`,()=>({name:a?`${i} (÷${2**a})`:i,order:a,rate:(n.rate??r.rates.get(t)??NaN)/2**a,channels:s.map(e=>({name:c[e]?.name||`Subchannel ${o.subs[e].sub}`,unit:n.convs[e]?.unit??``}))}));n.groups.set(a,{gid:l,subs:s})}}let s=Math.floor((e.dlen-4*o.ncsdw)*8/o.schedBits);n.packets++,n.first=Math.min(n.first,e.rtc),e.rtc>=n.last&&(n.last=e.rtc,n.lastSims=s*o.nsim),n.sims+=s*o.nsim;let c=n.rate??r.rates.get(t)??1/0,l=ga(r.clock,e.rtc),u=e.o+e.hdr+4*o.ncsdw,d=r.out,f=new Int32Array(o.subs.length);for(let e of n.groups.values())e.subs.forEach((e,t)=>{f[e]=t});for(let t=0;t<s;t++)for(let r=0;r<o.nsim;r++){let i=l+(t*o.nsim+r)/c;for(let[a,s]of n.groups)if(!((r+1)%2**a||!d.row(s.gid,i)))for(let[i,c]of o.sims[r]){if(o.subs[i].factor!==a)continue;let r=o.subs[i],l=Ki(ta(e.b,u,t*o.schedBits+c,r.len),r.len,n.bfm[i],n.convs[i]?.fpf??null),p=n.convs[i]?.apply;d.put(s.gid,f[i],p?p(l):l)}}}function Ca(e,t,n){let{dv:r}=e,i=e.o+e.hdr;if(e.dlen<4){n.problems.damaged++;return}let a=r.getUint32(i,!0),o=a>>>3&31||32,s=a>>>1&1,c=Math.floor((e.dlen-4)/12);for(let a=0;a<c;a++){let c=i+4+12*a;if(!n.out.row(t.gid,ga(n.clock,Oi(e,c))))continue;let l=r.getUint32(c+8,!0);s&&o<32&&(l>>>=32-o),t.masks.forEach((e,r)=>{let i=0;for(let t of e)i=i*2+(l>>>t&1);n.out.put(t.gid,r,i)})}}var wa=e=>[...e].flatMap((t,n)=>t===`1`?[e.length-1-n]:[]);async function*Ta(e,t,n,r,i){let a=new Map,o=t.model,s=(e,t)=>o?.rch.get(e)?.name||`${t} ${e}`,c={year:o?.year??1970,day:0},l=0,u=e=>{if(r){let t=r.get(e.ch);t||r.set(e.ch,t=new Map),t.set(e.type,(t.get(e.type)??0)+1)}++l%ca===0&&t.out.row(-2,0);let n=t.clock;if(n.baseRtc??=e.rtc,e.type===la){let t=ki(e,c);t&&(n.ref={rtc:e.rtc,ms:t.ms},n.first||(n.first=n.ref,n.baseMs=t.ms,n.firstHasYear=t.hasYear));return}if(e.type!==ua&&e.type!==da&&e.type!==fa)return;let i=`${e.type}:${e.ch}`,u=a.get(i);if(!u){u={id:e.ch};let n=o?.rch.get(e.ch);if(e.type===ua)u.analog={layout:null,groups:new Map,convs:[],bfm:[],rate:n?.rate??null,first:1/0,last:-1/0,sims:0,lastSims:0,packets:0};else if(e.type===da){let r=n?.discrete??[],i=(e.dlen>=4?e.dv.getUint32(e.o+e.hdr,!0)>>>3:0)&31||32,a=Array.from({length:i},(e,t)=>i-1-t),c=r.length?r.map(e=>({name:e.name,bits:e.mask?wa(e.mask):a})):Array.from({length:i},(t,n)=>({name:`Discrete ${e.ch} bit ${n}`,bits:[n]})),l=s(e.ch,`Discrete`),d=t.out.id(`d:${e.ch}`,()=>({name:l,rate:null,order:0,channels:c.map(e=>({name:e.name,unit:o?.convs.get(e.name)?.unit??``}))}));u.discrete={gid:d,masks:c.map(e=>e.bits)}}else{let r=n?o?.pcm.get(n.dln):void 0;r&&r.params.length&&(u.pcm=ya(e.ch,r,t,s(e.ch,`PCM`)))}a.set(i,u)}u.analog?Sa(e,e.ch,u.analog,t,s(e.ch,`Analog`),o?.rch.get(e.ch)):u.discrete?Ca(e,u.discrete,t):u.pcm?xa(e,u.pcm,t):t.problems.noFormat.set(e.ch,(t.problems.noFormat.get(e.ch)??0)+1)};for(let t=Ti(e,u,n,i);!(await t.next()).done;)yield;if(t.plan)for(let e of a.values()){let n=e.analog;n&&n.rate===null&&n.packets>1&&n.last>n.first&&t.rates.set(e.id,(n.sims-n.lastSims)/((n.last-n.first)/1e7))}}async function Ea(e,t){let n=[],r=0,i=0,a=!1,o=!1,s=new TextDecoder(`latin1`),c=Ti(e,e=>{if(a)return;if(e.type!==pa){a=!0;return}if(e.dlen<4)return;let c=e.dv.getUint32(e.o+e.hdr,!0);if(i||=c&255,c>>>9&1){o=!0,a=!0;return}let l=Math.min(e.dlen-4,Ai-r);n.push(s.decode(e.b.subarray(e.o+e.hdr+4,e.o+e.hdr+4+l))),r+=l,r>=1048576&&(a=!0,t.push(`The setup record is longer than 1 MB; only its first 1 MB was read.`))},{damaged:0,cut:!1});for(;!a&&!(await c.next()).done;);return await c.return(void 0),o&&t.push(`The setup record is in TMATS XML, which Kymoscope does not read: channels are named by their ids, and PCM is not decoded.`),n.length?{text:n.join(``),version:i}:null}var Da={7:`106-07`,8:`106-09`,9:`106-11`,10:`106-13`,11:`106-15`,12:`106-17`},Oa={...t,async plan(e,t){try{return await ka(t)}catch(e){throw Me(e)}},async*stream(e){let t=e.plan.state,n=new Map(t.keys.map((e,t)=>[e,t])),r=new Map,i=e=>{e.cap=Math.max(1,Math.min(sa,e.total-e.start)),e.time=new Float64Array(e.cap),e.cols=e.cols.map(()=>new Float64Array(e.cap))};for(let t of e.selection){let n=Ne(e,t.group),a=new Int32Array(e.plan.groups[t.group].channels.length).fill(-1);n.forEach((e,t)=>{a[e]=t});let o={cols:n.map(()=>new Float64Array),slot:a,time:new Float64Array,n:0,cap:0,start:0,total:e.plan.groups[t.group].samples};i(o),r.set(t.group,o)}let a=[],o=(e,t)=>{let n=t.n===t.cap;if(a.push({group:e,time:n?t.time:t.time.slice(0,t.n),start:t.start,length:t.n,columns:t.cols.map(e=>n?e:e.slice(0,t.n))}),t.start+=t.n,n)i(t);else for(let e of t.cols)e.fill(0,0,t.n);t.n=0},s,c=-1,l={model:t.model,out:{id:e=>n.get(e)??-1,row(e,n){if(e===-2){for(let[e,t]of r)t.n&&o(e,t);return!1}return s=r.get(e),!s||s.start+s.n>=s.total?!1:(s.n===s.cap&&o(e,s),c=s.n++,s.time[c]=n-t.t0,!0)},put(e,t,n){let r=s.slot[t];r>=0&&(s.cols[r][c]=n)}},plan:!1,rates:t.rates,clock:{...t.clock,ref:null},problems:{analogLayout:0,damaged:0,pcmMismatch:0,frames:0,noFormat:new Map}};try{for(let t=Ta(e.io,l,{damaged:0,cut:!1},null,e.signal);!(await t.next()).done;)yield*a,a.length=0}catch(e){throw Me(e)}for(let[e,t]of r)t.n&&o(e,t);yield*a},streamGroup(e,t){return this.stream({...e,selection:e.selection.filter(e=>e.group===t)})}};async function ka(e){let t=[],n={},r=await Ea(e,t),i=null,a=[];if(r){let e=Fi(r.text);i={attrs:e,rch:Xi(e),convs:Gi(e),pcm:Zi(e,e=>a.push(e)),year:Bi(e)??1970};for(let[t,r]of[[`program`,`G\\PN`],[`test item`,`G\\TA`],[`test number`,`G\\TN`],[`setup record date`,`G\\OD`]]){let i=e.get(r);i&&(n[t]=i)}}let o=new Map,s=[],c=[],l=1/0,u=1/0,d={id(e,t){let n=o.get(e);return n||(n={def:null,id:c.length},o.set(e,n),c.push({key:e,def:t}),s.push(0)),n.id},row(e,t){return e<0?!1:(s[e]++,f.first?l=Math.min(l,t):u=Math.min(u,t),!1)},put(){}},f={ref:null,first:null,baseMs:0,baseRtc:null,firstHasYear:!1},p={analogLayout:0,damaged:0,pcmMismatch:0,frames:0,noFormat:new Map},m=new Map,h={damaged:0,cut:!1},g={model:i,out:d,problems:p,rates:new Map,plan:!0,clock:f};for(let t=Ta(e,g,h,m);!(await t.next()).done;);if(m.size===0)throw Error(`This is not an IRIG 106 Chapter 10 file: no packets were found.`);let _=c.map((e,t)=>({...e,i:t})).filter(e=>s[e.i]>0),v=e=>Number(e.split(`:`)[1]),y=_.map(e=>({...e,d:e.def()}));y.sort((e,t)=>v(e.key)-v(t.key)||e.d.order-t.d.order||e.i-t.i);let b=C(y.map(e=>e.d.name),[]),x=y.map((e,t)=>{let n=e.d.rate,r=C(e.d.channels.map(e=>e.name));return{name:b[t],channels:e.d.channels.map((e,t)=>({name:r[t],unit:e.unit})),samples:s[e.i],time:{kind:`timestamps`},rateHz:n&&Number.isFinite(n)?n:null,irregular:!0}}),S=f.first?u+_a((f.baseRtc??0)-f.first.rtc)/1e7:u,w=Math.min(l,S),T=Number.isFinite(w)?w:0,E=[],D=new Set([pa,la,ua,da,fa,3]);for(let[e,t]of[...m].sort((e,t)=>e[0]-t[0])){n[`Channel ${e}`]=[...t].map(([e,t])=>`${ma(e)[0]} (${ha(t,`packet`)})`).join(`, `);for(let[n,r]of t)D.has(n)||E.push(`${ha(r,`${ma(n)[1]} packet`)} (channel ${e})`)}if(E.length&&t.push(`Skipped: ${E.join(`, `)}; they need an ICD or aren't time series.`),p.noFormat.size){let e=[...p.noFormat.values()].reduce((e,t)=>e+t,0);t.push(`Not decoded: ${ha(e,`PCM packet`)} (${p.noFormat.size===1?`channel`:`channels`} ${[...p.noFormat.keys()].join(`, `)}); the setup record has no PCM format with measurements for ${p.noFormat.size===1?`it`:`them`}.`)}let O=h.damaged+p.damaged;O&&t.push(`${ha(O,`damaged packet`)} ${O===1?`was`:`were`} skipped.`),p.pcmMismatch&&t.push(`${ha(p.pcmMismatch,`PCM packet`)} that ${p.pcmMismatch===1?`does`:`do`} not match the setup record's PCM format ${p.pcmMismatch===1?`was`:`were`} skipped.`),p.analogLayout&&t.push(`${ha(p.analogLayout,`analog packet`)} whose subchannels differ from their channel's first packet ${p.analogLayout===1?`was`:`were`} skipped.`),h.cut&&t.push(`The file ends in the middle of a packet.`),p.frames&&t.push(`${ha(p.frames,`PCM minor frame`)} with a subframe ID count outside the major frame ${p.frames===1?`was`:`were`} skipped.`),a.length&&t.push(`Not decoded from the setup record: ${a.slice(0,20).join(`, `)}${a.length>20?`, and ${a.length-20} more`:``}.`);let k=i?[...i.convs].filter(([,e])=>e.unsupported||!Ji(e.bfm,e.fpf)).map(([e,t])=>`${e} (${t.unsupported??`binary format ${t.bfm}${t.fpf?` ${t.fpf}`:``}`})`):[];k.length&&t.push(`Read without their conversion or format: ${k.slice(0,20).join(`, `)}${k.length>20?`, and ${k.length-20} more`:``}.`);let A=[...g.rates.keys()].filter(e=>!i?.rch.get(e)?.rate);A.length&&t.push(`The setup record has no sample rate for analog channel ${A.join(`, `)}: estimated from the packet times.`),r||t.push(`This file has no setup record (TMATS): channels are named by their ids, and PCM is not decoded.`);let j=null,M=i?Bi(i.attrs):null;if(f.first){let e=f.baseMs+T*1e3;(f.firstHasYear||M!==null)&&Math.abs(e)<=864e13&&(j=new Date(e).toISOString()),!f.firstHasYear&&M!==null?t.push(`The time packets give the day of the year; the year (${M}) is the setup record's date.`):f.firstHasYear||t.push(`Its time packets give the day of the year but no year: the start time is not known; times are from the first sample.`)}else t.push(`This file has no time packets: times are from the first sample (recorder clock), and the start time is not known.`);if(!x.length)throw Error(`This Chapter 10 file has no analog, discrete or PCM data Kymoscope can read. ${t.filter(e=>!e.includes(`time packets`)).join(` `)}`.trim());let N={model:i,clock:f,t0:T,keys:y.map(e=>e.key),rates:g.rates};return{format:`IRIG 106 Chapter 10${r&&Da[r.version]?` (${Da[r.version]})`:``}`,startTime:j,groups:x,meta:n,events:[],notes:t,interleaved:!0,state:N}}function Aa(e){return e==null}function ja(e){return typeof e==`object`&&!!e}function Ma(e){return Array.isArray(e)?e:Aa(e)?[]:[e]}function Na(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Pa(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function Fa(e){return e===0&&1/e==-1/0}var F={isNothing:Aa,isObject:ja,toArray:Ma,repeat:Pa,isNegativeZero:Fa,extend:Na};function Ia(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
6
|
-
|
|
7
|
-
`+e.mark.snippet),r+` `+n):r}function La(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Ia(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}La.prototype=Object.create(Error.prototype),La.prototype.constructor=La,La.prototype.toString=function(e){return this.name+`: `+Ia(this,e)};var Ra=La;function za(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function Ba(e,t){return F.repeat(` `,t-e.length)+e}function Va(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=za(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=F.repeat(` `,t.indent)+Ba((e.line-c+1).toString(),u)+` | `+l.str+`
|
|
8
|
-
`+s;for(l=za(e.buffer,r[o],i[o],e.position,d),s+=F.repeat(` `,t.indent)+Ba((e.line+1).toString(),u)+` | `+l.str+`
|
|
9
|
-
`,s+=F.repeat(`-`,t.indent+u+3+l.pos)+`^
|
|
10
|
-
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=za(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=F.repeat(` `,t.indent)+Ba((e.line+c+1).toString(),u)+` | `+l.str+`
|
|
11
|
-
`;return s.replace(/\n$/,``)}var Ha=Va,Ua=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],Wa=[`scalar`,`sequence`,`mapping`];function Ga(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function Ka(e,t){if(t||={},Object.keys(t).forEach(function(t){if(Ua.indexOf(t)===-1)throw new Ra(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Ga(t.styleAliases||null),Wa.indexOf(this.kind)===-1)throw new Ra(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var qa=Ka;function Ja(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function Ya(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function Xa(e){return this.extend(e)}Xa.prototype.extend=function(e){var t=[],n=[];if(e instanceof qa)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Ra(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof qa))throw new Ra(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new Ra(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new Ra(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof qa))throw new Ra(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(Xa.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Ja(r,`implicit`),r.compiledExplicit=Ja(r,`explicit`),r.compiledTypeMap=Ya(r.compiledImplicit,r.compiledExplicit),r};var Za=new Xa({explicit:[new qa(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),new qa(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),new qa(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})]});function Qa(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function $a(){return null}function eo(e){return e===null}var to=new qa(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:Qa,construct:$a,predicate:eo,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function no(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function ro(e){return e===`true`||e===`True`||e===`TRUE`}function io(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var ao=new qa(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:no,construct:ro,predicate:io,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function oo(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function so(e){return 48<=e&&e<=55}function co(e){return 48<=e&&e<=57}function lo(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!oo(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!so(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!co(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function uo(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function fo(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!F.isNegativeZero(e)}var po=new qa(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:lo,construct:uo,predicate:fo,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),mo=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ho(e){return!(e===null||!mo.test(e)||e[e.length-1]===`_`)}function go(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var _o=/^[-+]?[0-9]+e/;function vo(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(F.isNegativeZero(e))return`-0.0`;return n=e.toString(10),_o.test(n)?n.replace(`e`,`.e`):n}function yo(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||F.isNegativeZero(e))}var bo=new qa(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:ho,construct:go,predicate:yo,represent:vo,defaultStyle:`lowercase`}),xo=Za.extend({implicit:[to,ao,po,bo]}),So=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Co=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function wo(e){return e===null?!1:So.exec(e)!==null||Co.exec(e)!==null}function To(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=So.exec(e),t===null&&(t=Co.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function Eo(e){return e.toISOString()}var Do=new qa(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:wo,construct:To,instanceOf:Date,represent:Eo});function Oo(e){return e===`<<`||e===null}var ko=new qa(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:Oo}),Ao=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
12
|
-
\r`;function jo(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=Ao;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function Mo(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=Ao,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function No(e){var t=``,n=0,r,i,a=e.length,o=Ao;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Po(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var Fo=new qa(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:jo,construct:Mo,predicate:Po,represent:No}),Io=Object.prototype.hasOwnProperty,Lo=Object.prototype.toString;function Ro(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,Lo.call(i)!==`[object Object]`)return!1;for(a in i)if(Io.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function zo(e){return e===null?[]:e}var Bo=new qa(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:Ro,construct:zo}),Vo=Object.prototype.toString;function Ho(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],Vo.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function Uo(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var Wo=new qa(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:Ho,construct:Uo}),Go=Object.prototype.hasOwnProperty;function Ko(e){if(e===null)return!0;var t,n=e;for(t in n)if(Go.call(n,t)&&n[t]!==null)return!1;return!0}function qo(e){return e===null?{}:e}var Jo=new qa(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:Ko,construct:qo}),Yo=xo.extend({implicit:[Do,ko],explicit:[Fo,Bo,Wo,Jo]}),Xo=Object.prototype.hasOwnProperty,Zo=1,Qo=2,$o=3,es=4,ts=1,ns=2,rs=3,is=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,as=/[\x85\u2028\u2029]/,os=/[,\[\]\{\}]/,ss=/^(?:!|!!|![a-z\-]+!)$/i,cs=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ls(e){return Object.prototype.toString.call(e)}function us(e){return e===10||e===13}function ds(e){return e===9||e===32}function fs(e){return e===9||e===32||e===10||e===13}function ps(e){return e===44||e===91||e===93||e===123||e===125}function ms(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function hs(e){return e===120?2:e===117?4:e===85?8:0}function gs(e){return 48<=e&&e<=57?e-48:-1}function _s(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
|
|
13
|
-
`:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`
`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function vs(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function ys(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var bs=Array(256),xs=Array(256),Ss=0;Ss<256;Ss++)bs[Ss]=+!!_s(Ss),xs[Ss]=_s(Ss);function Cs(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Yo,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ws(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Ha(n),new Ra(t,n)}function I(e,t){throw ws(e,t)}function Ts(e,t){e.onWarning&&e.onWarning.call(null,ws(e,t))}var Es={YAML:function(e,t,n){var r,i,a;e.version!==null&&I(e,`duplication of %YAML directive`),n.length!==1&&I(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&I(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&I(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Ts(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&I(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],ss.test(r)||I(e,`ill-formed tag handle (first argument) of the TAG directive`),Xo.call(e.tagMap,r)&&I(e,`there is a previously declared suffix for "`+r+`" tag handle`),cs.test(i)||I(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{I(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function Ds(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||I(e,`expected valid JSON character`);else is.test(s)&&I(e,`the stream contains non-printable characters`);e.result+=s}}function Os(e,t,n,r){var i,a,o,s;for(F.isObject(n)||I(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],Xo.call(t,a)||(ys(t,a,n[a]),r[a]=!0)}function ks(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&I(e,`nested arrays are not supported inside keys`),typeof i==`object`&&ls(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&ls(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)Os(e,t,a[l],n);else Os(e,t,a,n);else !e.json&&!Xo.call(n,i)&&Xo.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,I(e,`duplicated mapping key`)),ys(t,i,a),delete n[i];return t}function As(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):I(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function L(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ds(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(us(i))for(As(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Ts(e,`deficient indentation`),r}function js(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||fs(n)))}function Ms(e,t){t===1?e.result+=` `:t>1&&(e.result+=F.repeat(`
|
|
14
|
-
`,t-1))}function Ns(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(fs(p)||ps(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),fs(i)||n&&ps(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),fs(i)||n&&ps(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),fs(r))break}else if(e.position===e.lineStart&&js(e)||n&&ps(p))break;else if(us(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,L(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(Ds(e,a,o,!1),Ms(e,e.line-c),a=o=e.position,!1),ds(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ds(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function Ps(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ds(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else us(n)?(Ds(e,r,i,!0),Ms(e,L(e,!1,t)),r=i=e.position):e.position===e.lineStart&&js(e)?I(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);I(e,`unexpected end of the stream within a single quoted scalar`)}function Fs(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return Ds(e,n,e.position,!0),e.position++,!0;else if(s===92){if(Ds(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),us(s))L(e,!1,t);else if(s<256&&bs[s])e.result+=xs[s],e.position++;else if((o=hs(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=ms(s))>=0?a=(a<<4)+o:I(e,`expected hexadecimal character`);e.result+=vs(a),e.position++}else I(e,`unknown escape sequence`);n=r=e.position}else us(s)?(Ds(e,n,r,!0),Ms(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&js(e)?I(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);I(e,`unexpected end of the stream within a double quoted scalar`)}function Is(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(L(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&I(e,`expected the node content, but found ','`):I(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),fs(l)&&(d=f=!0,e.position++,L(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,Us(e,t,Zo,!1,!0),g=e.tag,h=e.result,L(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),L(e,!0,t),Us(e,t,Zo,!1,!0),_=e.result),p?ks(e,s,m,g,h,_,r,i,a):d?s.push(ks(e,null,m,g,h,_,r,i,a)):s.push(h),L(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}I(e,`unexpected end of the stream within a flow collection`)}function Ls(e,t){var n,r,i=ts,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)ts===i?i=d===43?rs:ns:I(e,`repeat of a chomping mode identifier`);else if((u=gs(d))>=0)u===0?I(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?I(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(ds(d)){do d=e.input.charCodeAt(++e.position);while(ds(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!us(d)&&d!==0)}for(;d!==0;){for(As(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),us(d)){c++;continue}if(e.lineIndent<s){i===rs?e.result+=F.repeat(`
|
|
15
|
-
`,a?1+c:c):i===ts&&a&&(e.result+=`
|
|
16
|
-
`);break}for(r?ds(d)?(l=!0,e.result+=F.repeat(`
|
|
17
|
-
`,a?1+c:c)):l?(l=!1,e.result+=F.repeat(`
|
|
18
|
-
`,c+1)):c===0?a&&(e.result+=` `):e.result+=F.repeat(`
|
|
19
|
-
`,c):e.result+=F.repeat(`
|
|
20
|
-
`,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!us(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Ds(e,n,e.position,!1)}return!0}function Rs(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!fs(o))));){if(s=!0,e.position++,L(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,Us(e,t,$o,!1,!0),a.push(e.result),L(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)I(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function zs(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&fs(r))v===63?(g&&(ks(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):I(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!Us(e,n,Qo,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);ds(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),fs(v)||I(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(ks(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)I(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)I(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),Us(e,t,es,!0,i)&&(g?m=e.result:h=e.result),g||(ks(e,d,f,p,m,h,o,s,c),p=m=h=null),L(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)I(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&ks(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function Bs(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&I(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):I(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!fs(o);)o===33&&(r?I(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),ss.test(i)||I(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),os.test(a)&&I(e,`tag suffix cannot contain flow indicator characters`)}a&&!cs.test(a)&&I(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{I(e,`tag name is malformed: `+a)}return n?e.tag=a:Xo.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:I(e,`undeclared tag handle "`+i+`"`),!0}function Vs(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&I(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!fs(n)&&!ps(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&I(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function Hs(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!fs(r)&&!ps(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&I(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),Xo.call(e.anchorMap,n)||I(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],L(e,!0,-1),!0}function Us(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=es===n||$o===n,r&&L(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Bs(e)||Vs(e);)L(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||es===n)&&(h=Zo===n||Qo===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(Rs(e,g)||zs(e,g,h))||Is(e,h)?u=!0:(o&&Ls(e,h)||Ps(e,h)||Fs(e,h)?u=!0:Hs(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&I(e,`alias node should not have any properties`)):Ns(e,h,Zo===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&Rs(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&I(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(Xo.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||I(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&I(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):I(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function Ws(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(L(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!fs(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&I(e,`directive name must not be less than one character in length`);o!==0;){for(;ds(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!us(o));break}if(us(o))break;for(n=e.position;o!==0&&!fs(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&As(e),Xo.call(Es,r)?Es[r](e,r,i):Ts(e,`unknown document directive "`+r+`"`)}if(L(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,L(e,!0,-1)):a&&I(e,`directives end mark is expected`),Us(e,e.lineIndent-1,es,!1,!0),L(e,!0,-1),e.checkLineBreaks&&as.test(e.input.slice(t,e.position))&&Ts(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&js(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,L(e,!0,-1));return}if(e.position<e.length-1)I(e,`end of the stream or a document separator is expected`);else return}function Gs(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
21
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Cs(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,I(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ws(n);return n.documents}function Ks(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=Gs(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function qs(e,t){var n=Gs(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Ra(`expected a single document in the stream, but found more`)}}var Js={loadAll:Ks,load:qs},Ys=Object.prototype.toString,Xs=Object.prototype.hasOwnProperty,Zs=65279,Qs=9,$s=10,ec=13,tc=32,nc=33,rc=34,ic=35,ac=37,oc=38,sc=39,cc=42,lc=44,uc=45,dc=58,fc=61,pc=62,mc=63,hc=64,gc=91,_c=93,vc=96,yc=123,bc=124,xc=125,Sc={};Sc[0]=`\\0`,Sc[7]=`\\a`,Sc[8]=`\\b`,Sc[9]=`\\t`,Sc[10]=`\\n`,Sc[11]=`\\v`,Sc[12]=`\\f`,Sc[13]=`\\r`,Sc[27]=`\\e`,Sc[34]=`\\"`,Sc[92]=`\\\\`,Sc[133]=`\\N`,Sc[160]=`\\_`,Sc[8232]=`\\L`,Sc[8233]=`\\P`;var Cc=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],wc=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Tc(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&Xs.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function Ec(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new Ra(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+F.repeat(`0`,r-t.length)+t}var Dc=1,Oc=2;function kc(e){this.schema=e.schema||Yo,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=F.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Tc(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?Oc:Dc,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function Ac(e,t){for(var n=F.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
|
|
22
|
-
`,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
|
|
23
|
-
`&&(a+=n),a+=o;return a}function jc(e,t){return`
|
|
24
|
-
`+F.repeat(` `,e.indent*t)}function Mc(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Nc(e){return e===tc||e===Qs}function Pc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Zs||65536<=e&&e<=1114111}function Fc(e){return Pc(e)&&e!==Zs&&e!==ec&&e!==$s}function Ic(e,t,n){var r=Fc(e),i=r&&!Nc(e);return(n?r:r&&e!==lc&&e!==gc&&e!==_c&&e!==yc&&e!==xc)&&e!==ic&&!(t===dc&&!i)||Fc(t)&&!Nc(t)&&e===ic||t===dc&&i}function Lc(e){return Pc(e)&&e!==Zs&&!Nc(e)&&e!==uc&&e!==mc&&e!==dc&&e!==lc&&e!==gc&&e!==_c&&e!==yc&&e!==xc&&e!==ic&&e!==oc&&e!==cc&&e!==nc&&e!==bc&&e!==fc&&e!==pc&&e!==sc&&e!==rc&&e!==ac&&e!==hc&&e!==vc}function Rc(e){return!Nc(e)&&e!==dc}function zc(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Bc(e){return/^\n* /.test(e)}var Vc=1,Hc=2,Uc=3,Wc=4,Gc=5;function Kc(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=Lc(zc(e,0))&&Rc(zc(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=zc(e,c),!Pc(l))return Gc;h&&=Ic(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=zc(e,c),l===$s)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!Pc(l))return Gc;h&&=Ic(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?Vc:a===Oc?Gc:Hc:n>9&&Bc(e)?Gc:o?a===Oc?Gc:Hc:f?Wc:Uc}function qc(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===Oc?`""`:`''`;if(!e.noCompatMode&&(Cc.indexOf(t)!==-1||wc.test(t)))return e.quotingType===Oc?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return Mc(e,t)}switch(Kc(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case Vc:return t;case Hc:return`'`+t.replace(/'/g,`''`)+`'`;case Uc:return`|`+Jc(t,e.indent)+Yc(Ac(t,a));case Wc:return`>`+Jc(t,e.indent)+Yc(Ac(Xc(t,o),a));case Gc:return`"`+Qc(t)+`"`;default:throw new Ra(`impossible error: invalid scalar style`)}}()}function Jc(e,t){var n=Bc(e)?String(t):``,r=e[e.length-1]===`
|
|
25
|
-
`;return n+(r&&(e[e.length-2]===`
|
|
26
|
-
`||e===`
|
|
27
|
-
`)?`+`:r?``:`-`)+`
|
|
28
|
-
`}function Yc(e){return e[e.length-1]===`
|
|
29
|
-
`?e.slice(0,-1):e}function Xc(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
|
|
30
|
-
`);return r=r===-1?e.length:r,n.lastIndex=r,Zc(e.slice(0,r),t)}(),i=e[0]===`
|
|
31
|
-
`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
|
|
32
|
-
`:``)+Zc(c,t),i=a}return r}function Zc(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
33
|
-
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
34
|
-
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
35
|
-
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Qc(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=zc(e,i),r=Sc[n],!r&&Pc(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Ec(n);return t}function $c(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(il(e,t,s,!1,!1)||s===void 0&&il(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function el(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(il(e,t+1,c,!0,!0,!1,!0)||c===void 0&&il(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=jc(e,t)),e.dump&&$s===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function tl(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),il(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),il(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function nl(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new Ra(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=jc(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),il(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&$s===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=jc(e,t)),il(e,t+1,u,!0,d)&&(e.dump&&$s===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function rl(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,Ys.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(Xs.call(s.represent,c))r=s.represent[c](t,c);else throw new Ra(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function il(e,t,n,r,i,a,o){e.tag=null,e.dump=n,rl(e,n,!1)||rl(e,n,!0);var s=Ys.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(nl(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(tl(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?el(e,t-1,e.dump,i):el(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):($c(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&qc(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new Ra(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function al(e,t){var n=[],r=[],i,a;for(ol(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function ol(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)ol(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)ol(e[r[i]],t,n)}function sl(e,t){t||={};var n=new kc(t);n.noRefs||al(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),il(n,0,r,!0,!0)?n.dump+`
|
|
36
|
-
`:``}var cl={dump:sl},ll=Js.load;Js.loadAll,cl.dump;var R=class extends Error{},ul=1e6,dl=()=>new R(`it names more than ${ul.toLocaleString(`en-US`)} parameter occurrences`),fl={u8:[1,`u`],i8:[1,`i`],u16:[2,`u`],i16:[2,`i`],u32:[4,`u`],i32:[4,`i`],u64:[8,`u`],i64:[8,`i`],f16:[2,`f`],f32:[4,`f`],f64:[8,`f`],bool:[1,`b`]},pl={little:!0,"<":!0,big:!1,">":!1},ml=[`name`,`type`,`offset`,`count`,`endian`,`scale`,`add`,`unit`,`bit`,`sample_rate_hz`],hl=e=>e==null||e===``;function gl(e,t,n){let r=String(e).trim();if(/^[+-]?(0x[0-9a-f]+|0o[0-7]+|0b[01]+|[1-9]\d*|0)$/i.test(r.replace(/_/g,``))){let e=r.startsWith(`-`),t=Number(r.replace(/^[+-]/,``).replace(/_/g,``));if(Number.isSafeInteger(t))return e?-t:t}throw new R(`${n}: '${t}' must be a number`)}function _l(e,t,n){let r=typeof e==`number`?e:Number(String(e).trim());if(hl(e)||Number.isNaN(r)&&!/^[+-]?nan$/i.test(String(e).trim()))throw new R(`${n}: '${t}' must be a number`);return r}function vl(e){let t=e>>10&31,n=e&1023,r=e&32768?-1:1;return t===31?n?NaN:r*(1/0):t?r*2**(t-15)*(1+n/1024):r*2**-14*(n/1024)}function yl(e,t){switch(e){case`u8`:case`bool`:return(e,t)=>e.getUint8(t);case`i8`:return(e,t)=>e.getInt8(t);case`u16`:return(e,n)=>e.getUint16(n,t);case`i16`:return(e,n)=>e.getInt16(n,t);case`u32`:return(e,n)=>e.getUint32(n,t);case`i32`:return(e,n)=>e.getInt32(n,t);case`u64`:return(e,n)=>e.getUint32(n+(t?4:0),t)*4294967296+e.getUint32(n+(t?0:4),t);case`i64`:return(e,n)=>e.getInt32(n+(t?4:0),t)*4294967296+e.getUint32(n+(t?0:4),t);case`f16`:return(e,n)=>vl(e.getUint16(n,t));case`f32`:return(e,n)=>e.getFloat32(n,t);default:return(e,n)=>e.getFloat64(n,t)}}function bl(e,t,n,r,i){let a=String(e.name??``).trim();if(!a)throw new R(`${i}: every field needs a 'name'`);i=`${i}, field '${a}'`;let o=String(e.type??``);if(!(o in fl))throw new R(`${i}: 'type' must be one of ${Object.keys(fl).join(`, `)}`);let[s,c]=fl[o],l=pl[String(hl(e.endian)?n:e.endian)];if(l===void 0)throw new R(`${i}: 'endian' must be little or big`);let u=hl(e.count)?1:gl(e.count,`count`,i);if(u<1||u>4096)throw new R(`${i}: 'count' must be 1-4096`);let d=hl(e.offset)?t:gl(e.offset,`offset`,i);if(d<0||d>1<<24)throw new R(`${i}: 'offset' must be 0 or more`);let f=hl(e.bit)?null:gl(e.bit,`bit`,i);if(f!==null&&(c!==`u`&&c!==`i`||u!==1||f<0||f>=8*s))throw new R(`${i}: 'bit' needs one integer (u8..i64) and a bit number inside it`);let p=hl(e.scale)?1:_l(e.scale,`scale`,i),m=hl(e.add)?0:_l(e.add,`add`,i),h=hl(e.sample_rate_hz)?null:_l(e.sample_rate_hz,`sample_rate_hz`,i);if(h!==null&&(!(h>0)||o===`bool`||f!==null))throw new R(`${i}: 'sample_rate_hz' must be above 0, on a number field (not bool or bit)`);let g=String(e.unit??``),_=yl(o,l),v=o===`bool`||f!==null,y=(e,t)=>{let n=_(e,t);return f===null?v?n=+!!n:(h!==null||p!==1||m!==0)&&(n=n*p+m):n=Math.floor(n/2**f)%2?1:0,Number.isFinite(n)?n:NaN},b=(e,t,n)=>y(t,n>>>3),x=u===1||h!==null?[r+a]:Array.from({length:u},(e,t)=>`${r}${a}[${t}]`),S=e=>(d+e*s)*8,C=h===null?x.map((e,t)=>({name:e,unit:g,at:[S(t)],bits:s*8,read:b})):[{name:x[0],unit:g,at:Array.from({length:u},(e,t)=>S(t)),bits:s*8,dt:1/h,read:b}];return{name:a,off:d,size:s,count:u,int:(c===`u`||c===`i`)&&f===null,raw:_,tags:x,field:C}}function xl(e,t,n,r,i={n:0}){if(!Array.isArray(e.fields)||!e.fields.length)throw new R(`${r}: needs a non-empty 'fields' list`);t=String(e.endian||t);let a=String(e.prefix??``),o=[],s=new Set,c=n;for(let n of e.fields){if(!n||typeof n!=`object`||Array.isArray(n))throw new R(`${r}: each field must be a mapping with name and type`);let e=bl(n,c,t,a,r);if((i.n+=e.count)>1e6)throw dl();c=e.off+e.size*e.count;for(let t of e.tags){if(s.has(t))throw new R(`${r}: field name '${t}' is repeated`);s.add(t)}o.push(e)}let l=new Map(o.map(e=>[e.name,e])),u=new Set;if(e.seq){let t=l.get(String(e.seq));if(!t||t.count!==1)throw new R(`${r}: 'seq' must name a field holding one integer`);u.add(t.name)}if(e.timestamp){let t=e.timestamp,n=typeof t==`object`?l.get(String(t.field)):void 0;if(!n||n.count!==1)throw new R(`${r}: 'timestamp.field' must name a field holding one number`);u.add(n.name)}return{name:null,kind:`P`,rate:null,end:null,fields:o.filter(e=>!u.has(e.name)).flatMap(e=>e.field),minBytes:Math.max(...o.map(e=>e.off+e.size*e.count))}}function Sl(e,t){let n=String(e.endian||`little`);if(!(n in pl))throw new R(`${t}: 'endian' must be little or big`);let r={source:`layout`,keys:new Map,any:null,notes:[]};if(!e.packet_id){if(`packets`in e)throw new R(`${t}: 'packets' needs a 'packet_id' to tell them apart`);return r.any=xl(e,n,0,t),r}if(typeof e.packet_id!=`object`)throw new R(`${t}: 'packet_id' must be one integer field`);let i=bl({name:`packet_id`,...e.packet_id},0,n,``,`${t} packet_id`);if(i.count!==1||!i.int)throw new R(`${t}: 'packet_id' must be one integer field`);r.pid={off:i.off,size:i.size,read:i.raw};let a=e.packets;if(!a||typeof a!=`object`||Array.isArray(a)||!Object.keys(a).length)throw new R(`${t}: 'packet_id' needs a 'packets' mapping of id to packet`);let o={n:0};for(let[e,s]of Object.entries(a)){let a=gl(e,`packets`,t);r.keys.set(a,xl(s??{},n,i.off+i.size,`${t} packet ${e}`,o))}return r}function Cl(e,t){let n=e.replace(/^\uFEFF/,``).split(/\r?\n/),r=u(n[0]??``,`,`).map(e=>e.trim());if(!r.includes(`name`)||!r.includes(`type`))throw new R(`${t}: a layout CSV needs the columns packet, name, type, offset…`);let i={},a=new Map;for(let e of n.slice(1)){if(!e.trim())continue;let t=u(e,`,`),n={};if(r.forEach((e,r)=>{e&&(n[e]=(t[r]??``).trim())}),!n.name)continue;let o={};for(let e of ml)n[e]&&(o[e]=n[e]);let s=n.role??``,c=n.packet||null;if(s===`id`){i.packet_id=Object.fromEntries(Object.entries(o).filter(([e])=>e!==`name`));continue}let l=a.get(c);l||a.set(c,l={fields:[]}),s===`time`||s===`time_relative`?(l.timestamp={field:o.name,unit:o.unit??`s`,mode:s===`time`?`epoch`:`relative`},delete o.unit):s===`seq`&&(l.seq=o.name),l.fields.push(o)}return a.size===1&&a.has(null)&&!(`packet_id`in i)?a.get(null):(i.packets=Object.fromEntries([...a].map(([e,t])=>[String(e),t])),i)}function wl(e,t){let n=`the layout ${t}`,r;if(/\.csv$/i.test(t))r=Cl(e,n);else try{r=ll(e)}catch(e){throw new R(`${n}: not YAML (${e.message.split(`
|
|
37
|
-
`)[0]})`)}if(!r||typeof r!=`object`||Array.isArray(r))throw new R(`${n} must be a mapping`);return Sl(r,n)}var Tl=/<(?:[\w.-]+:)?t(?:\s[^>]*)?>([\s\S]*?)<\/(?:[\w.-]+:)?t>/g,El={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`},Dl=e=>e.includes(`&`)?e.replace(/&(#x[0-9a-fA-F]+|#\d+|amp|lt|gt|quot|apos);/g,(e,t)=>t[0]===`#`?String.fromCodePoint(t[1]===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):El[t]):e;function Ol(e,t){let n=` ${t}="`,r=(` `+e).indexOf(n);if(r<0)return;let i=r-1+n.length;return Dl(e.slice(i,e.indexOf(`"`,i)))}function kl(e,t){let n=new Map;for(let e of t.matchAll(/<(?:[\w.-]+:)?Relationship\b([^>]*)>/g)){let t=Ol(e[1],`Id`),r=Ol(e[1],`Target`);t&&r&&n.set(t,r.startsWith(`/`)?r.slice(1):`xl/${r.replace(/^\.\//,``)}`)}let r=[...e.matchAll(/<(?:[\w.-]+:)?sheet\b([^>]*)>/g)].flatMap(e=>{let t=Ol(e[1],`name`),r=n.get(Ol(e[1],`r:id`)??``);return t&&r?[{name:t,path:r}]:[]}),i=Ol(/<(?:[\w.-]+:)?workbookPr\b([^>]*)>/.exec(e)?.[1]??``,`date1904`);return{sheets:r,date1904:i===`1`||i===`true`}}var Al=new Set([14,15,16,17,18,19,20,21,22,45,46,47]);function jl(e,t){if(t===void 0)return Al.has(e);let n=t.replace(/"[^"]*"/g,``).replace(/\\./g,``).replace(/\[(?![hms]+\])[^\]]*\]/gi,``);return/[dmyhs]/i.test(n)&&!/general/i.test(n)}function Ml(e){let t=new Map;for(let n of e.matchAll(/<(?:[\w.-]+:)?numFmt\b([^>]*)>/g)){let e=Ol(n[1],`formatCode`);e!==void 0&&t.set(Number(Ol(n[1],`numFmtId`)),e)}return[...(/<(?:[\w.-]+:)?cellXfs\b[^>]*>([\s\S]*?)<\/(?:[\w.-]+:)?cellXfs>/.exec(e)?.[1]??``).matchAll(/<(?:[\w.-]+:)?xf\b([^>]*)>/g)].map(e=>{let n=Number(Ol(e[1],`numFmtId`)??0);return jl(n,t.get(n))})}function Nl(e,t=v){let n=[];for(let r of e.matchAll(/<(?:[\w.-]+:)?si>([\s\S]*?)<\/(?:[\w.-]+:)?si>|<(?:[\w.-]+:)?si\/>/g)){let e=(r[1]??``).replace(/<(?:[\w.-]+:)?rPh\b[\s\S]*?<\/(?:[\w.-]+:)?rPh>/g,``),i=``;for(let t of e.matchAll(Tl))i+=t[1];if(n.length>=t)throw Error(`This workbook is too large to open (over ${t.toLocaleString(`en-US`)} shared strings).`);n.push(Dl(i))}return n}var Pl=Array.from({length:23},(e,t)=>10**t),Fl=-1;function Il(e,t){let n=e.length,r=t,i=e.charCodeAt(r)===45;i&&r++;let a=0,o=0,s=0,c=-1,l=!0;for(;r<n;r++){let t=e.charCodeAt(r);if(t===60)break;if(t===46&&c<0){c=0;continue}let n=t-48;if(n<0||n>9){l=!1;break}a=a*10+n,o++,a&&s++,c>=0&&c++}if(l&&r<n&&o>0&&s<=15&&c<=22){Fl=r;let e=c>0?a/Pl[c]:a;return i?-e:e}return Fl=e.indexOf(`<`,r),Fl<0?NaN:Number(e.slice(t,Fl))}var Ll=e=>e===32||e===9||e===10||e===13,Rl=(e,t,n,r)=>e.charCodeAt(t)===60&&e.charCodeAt(t+1)===47&&e.charCodeAt(t+2+r.length)===n&&e.charCodeAt(t+3+r.length)===62&&(!r||e.startsWith(r,t+2)),zl=0,Bl=1,Vl=2,Hl=3,Ul=4,Wl=5;async function Gl(e,t,n,r){let i=-1,a=-1,o=0,s=``,c=(e,c)=>{let l=e.length,u=t=>c?``:e.slice(t),d=0;for(;;){let c=e.indexOf(`<`,d);if(c<0)return``;let f=c+1,p=-1,m=e.charCodeAt(f);for(;f<l&&!Ll(m)&&m!==62&&m!==47;)m===58&&(p=f),m=e.charCodeAt(++f);if(f>=l)return u(c);let h=p<0?c+1:p+1,g=f-h,_=g===1&&e.charCodeAt(h)===99;if(!_&&!(g===3&&e.startsWith(`row`,h))){let t=e.indexOf(`>`,f);if(t<0)return u(c);d=t+1;continue}(h-c-1!==s.length||!e.startsWith(s,c+1))&&(s=e.slice(c+1,h));let v=-1,y=zl,b=0,x=f;for(;;){for(;x<l&&Ll(e.charCodeAt(x));)x++;if(x>=l)return u(c);if(m=e.charCodeAt(x),m===62||m===47)break;let t=x;for(;x<l&&(m=e.charCodeAt(x))!==61&&!Ll(m)&&m!==62;)x++;let n=x-t;for(;x<l&&Ll(e.charCodeAt(x));)x++;if(x>=l)return u(c);if(e.charCodeAt(x)!==61)continue;for(x++;x<l&&Ll(e.charCodeAt(x));)x++;let r=e.charCodeAt(x);if(r!==34&&r!==39)continue;let i=x+1,a=e.indexOf(r===34?`"`:`'`,i);if(a<0)return u(c);if(x=a+1,n!==1)continue;let o=e.charCodeAt(t);if(o===114){let t=0,n=i;if(_){for(;n<a;n++){let r=e.charCodeAt(n);if(r<65||r>90)break;t=t*26+r-64}v=t-1}else{for(;n<a;n++){let r=e.charCodeAt(n)-48;if(r<0||r>9)break;t=t*10+r}v=n>i?t-1:-1}}else if(o===116){let t=a-i,n=e.charCodeAt(i);y=t===1?n===115?Bl:n===98?Hl:n===101?Ul:n===110?zl:-1:t===3&&n===115&&e.startsWith(`str`,i)?Vl:t===9&&e.startsWith(`inlineStr`,i)?Wl:-1}else if(o===115){let t=0;for(let n=i;n<a;n++){let r=e.charCodeAt(n)-48;if(r<0||r>9)break;t=t*10+r}b=t}}let S=m===47,C=e.indexOf(`>`,x);if(C<0)return u(c);if(!_){i=v>=0?v:i+1,a=-1,d=C+1;continue}let w=v>=0?v:a+1;if(S){a=w,d=C+1;continue}let T=s.length;if(y===zl&&e.charCodeAt(C+1)===60&&e.charCodeAt(C+2+T)===118&&e.charCodeAt(C+3+T)===62&&(!T||e.startsWith(s,C+2))){let t=Il(e,C+4+T),o=Fl;if(o>C+4+T&&Rl(e,o,118,s)&&Rl(e,o+4+T,99,s)){a=w,Number.isNaN(t)||r(i,a,t,n[b]??!1),d=o+8+2*T;continue}}let E=-1,D=-1,O=!1,k=-1;for(let t=C+1;;){let n=e.indexOf(`<`,t);if(n<0)return u(c);let r=e.charCodeAt(n+1)===47,i=r?n+2:n+1;if(t=n+1,s&&!e.startsWith(s,i))continue;let o=e.charCodeAt(i+T),l=e.charCodeAt(i+T+1);if(r){if(o===99&&l===62){k=n,d=i+T+2,a=w;break}}else if(o===118&&l===62){if(E=i+T+2,D=e.indexOf(`<`,E),D<0)return u(c);t=D}else o===102&&(l===62||l===47||Ll(l))&&(O=!0)}if(y===Wl){let t=``;for(let n of e.slice(C+1,k).matchAll(Tl))t+=n[1];t&&r(i,a,Dl(t),!1);continue}if(D<=E){O&&o++;continue}if(y===zl){let t=Il(e,E);Number.isNaN(t)||r(i,a,t,n[b]??!1)}else y===Bl?r(i,a,t[Il(e,E)]??``,!1):y===Vl?r(i,a,Dl(e.slice(E,D)),!1):y===Hl&&r(i,a,+(D-E===1&&e.charCodeAt(E)===49),!1)}},l=``;for await(let t of e)l=c(l?l+t:t,!1);return c(l,!0),o}var Kl=256;function ql(e){let t={name:``,attrs:``,kids:[],text:``},n=[t],r=0,i=(t,n)=>{let r=e.indexOf(t,n);return r<0?e.length:r+t.length};for(;r<e.length;){let t=e.indexOf(`<`,r),a=n[n.length-1];if(t<0){a.text+=Dl(e.slice(r));break}if(t>r&&(a.text+=Dl(e.slice(r,t))),e.startsWith(`<!--`,t)){r=i(`-->`,t+4);continue}if(e.startsWith(`<![CDATA[`,t)){let n=e.indexOf(`]]>`,t);a.text+=e.slice(t+9,n<0?e.length:n),r=n<0?e.length:n+3;continue}if(e[t+1]===`?`||e[t+1]===`!`){r=i(`>`,t);continue}let o=``,s=t+1;for(;s<e.length;s++){let t=e[s];if(o)t===o&&(o=``);else if(t===`"`||t===`'`)o=t;else if(t===`>`)break}let c=e.slice(t+1,s);if(r=s+1,c[0]===`/`){n.length>1&&n.pop();continue}let l=c.endsWith(`/`),u=/^[^\s/>]+/.exec(c),d={name:(u?.[0]??``).replace(/^.*:/,``),attrs:c.slice(u?.[0].length??0,l?-1:void 0),kids:[],text:``};if(a.kids.push(d),!l){if(n.length>Kl)throw new R(`the XidML file nests deeper than 256 elements`);n.push(d)}}return t}var z=(e,t)=>e?.kids.find(e=>e.name===t),Jl=(e,t)=>e?.kids.filter(e=>e.name===t)??[],B=(e,t)=>z(e,t)?.text.trim(),V=(e,t)=>{let n=RegExp(`(?:^|\\s)${t}\\s*=\\s*("([^"]*)"|'([^']*)')`).exec(e.attrs);return n?Dl(n[2]??n[3]):void 0};function Yl(e,t){let n=[],r=[e];for(;r.length;){let e=r.pop();e.name===t&&n.push(e);for(let t=e.kids.length-1;t>=0;t--)r.push(e.kids[t])}return n}var H=e=>{if(e===void 0||e===``)return null;let t=Number(e);return Number.isFinite(t)?t:null};function Xl(e,t,n){let r=0;for(;n>0;){let i=Math.floor(t/8),a=t%8,o=Math.min(8-a,n);r=r*2**o+(e[i]>>8-a-o&(1<<o)-1),t+=o,n-=o}return r}var Zl=new DataView(new ArrayBuffer(8)),Ql=(e,t)=>(Math.floor(e/2**32)&Math.floor(t/2**32))*2**32+((e&t)>>>0);function $l(e,t,n,r=null,i=!1){if(n&&t%8)return`little-endian with a size that is not whole bytes`;if((r!==null||i)&&(n||t>53))return`a mask or complement on a little-endian or wide parameter`;let a=2**t-1,o=n?(e,n)=>{let r=0;for(let i=t/8-1;i>=0;i--)r=r*256+Xl(e,n+8*i,8);return r}:r!==null||i?(e,n)=>{let o=Xl(e,n,t);return r!==null&&(o=Ql(o,r)),i?a-o:o}:(e,n)=>Xl(e,n,t),s=2**(t-1);switch(e){case`BitVector`:return t<=53?o:`more than 53 bits`;case`OffsetBinary`:return t<=53?(e,t)=>o(e,t)-s:`more than 53 bits`;case`TwosComplement`:return t<=53?(e,t)=>{let n=o(e,t);return n>=s?n-2*s:n}:`more than 53 bits`;case`SignedMagnitude`:return t<=53?(e,t)=>{let n=o(e,t);return n>=s?-(n-s):n}:`more than 53 bits`;case`BinaryCodedDecimal`:return t%4||t>52?`BCD that is not whole digits`:(e,n)=>{let r=o(e,n),i=0;for(let e=t/4-1;e>=0;e--){let t=Math.floor(r/16**e)%16;if(t>9)return NaN;i=i*10+t}return i};case`IEEE-754-Float-Single`:return t===32?(e,t)=>(Zl.setUint32(0,o(e,t)),Zl.getFloat32(0)):`a single float that is not 32 bits`;case`IEEE-754-Float-Double`:return t===64?r!==null||i?`a mask or complement on a double`:n?(e,t)=>{for(let n=0;n<8;n++)Zl.setUint8(7-n,Xl(e,t+8*n,8));return Zl.getFloat64(0)}:(e,t)=>(Zl.setUint32(0,Xl(e,t,32)),Zl.setUint32(4,Xl(e,t+32,32)),Zl.getFloat64(0)):`a double that is not 64 bits`;default:return`data format ${e}`}}var eu={"P Type":`P`,"D Type":`D`,"N Type":`N`,"M Type":`M`,"Q Type":`Q`},tu=65506*8;function nu(e){let t=z(ql(e),`xidml`);if(!t)throw new R(`it has no <xidml> element`);let n=[],r=[],i=!1,a=0,o=new Map;for(let e of Yl(z(t,`Parameters`)??t,`Parameter`)){let t=V(e,`Name`);t&&!o.has(t)&&o.set(t,e)}let s=new Map;for(let e of Yl(t,`ParameterUnit`)){let t=V(e,`Name`);t&&s.set(t,{scale:H(B(e,`Scale`))??1,offset:H(B(e,`Offset`))??0})}let c=new Map;for(let e of Yl(t,`AlgorithmSet`))for(let t of e.kids){let e=V(t,`Name`);if(e)if(t.name===`Polynomial`){let n=Jl(t,`Term`).map(e=>[H(B(e,`Coefficient`))??0,H(B(e,`Exponent`))??0]);c.set(e,e=>n.reduce((t,[n,r])=>t+n*e**r,0))}else c.set(e,t.name)}let l=(e,t,l)=>{(z(e,`FillValue`)||(B(e,`Parity`)??`None`)!==`None`)&&(i=!0);let u=B(e,`ParameterReference`),d=u===void 0?z(e,`Parameter`):o.get(u),f=u??(d?V(d,`Name`):void 0);if(!f)return null;if(!d)return r.push(`${f} (${t}: no parameter definition)`),null;let p=H(B(e,`NumberOfDataBits`))??H(B(d,`SizeInBits`))??16;if(!Number.isInteger(p)||p<1||p>64)return r.push(`${f} (${p} bits)`),null;let m=B(d,`Endianness`);if(m===`Mixed-Endian`||m===`Bit-Endian`)return r.push(`${f} (${m})`),null;if(B(e,`MostSignificantBit`)===`Last`)return r.push(`${f} (least significant bit first)`),null;let h=B(e,`Justification`)===`Right`?Math.ceil(p/16)*16-p:0,g=B(e,`Mask`)?.replace(/^0x/i,``),_=null;if(g!==void 0){let e=g.length*4;if(!/^[0-9a-f]+$/i.test(g)||e<h+p)return r.push(`${f} (mask ${g})`),null;_=Number(BigInt(`0x${g}`)>>BigInt(e-h-p)&(1n<<BigInt(p))-1n)}let v=B(e,`Complement`)===`Yes`,y=$l(B(d,`DataFormat`)??`OffsetBinary`,p,m===`Little-Endian`,_,v);if(typeof y==`string`)return r.push(`${f} (${y})`),null;let b=B(d,`ParameterUnitReference`),x=b?s.get(b):void 0,S=B(d,`BaseUnit`),C=x?b:S&&S!==`Unitless`&&S!==`BitVector`?S:``,w=B(d,`AlgorithmReference`),T=w?c.get(w):void 0;w&&typeof T!=`function`&&n.push(`${f}: its algorithm ${w} (${T??`not defined`}) is not applied.`);let E=typeof T==`function`?T:null,D=x||E?(e,t,n)=>{let r=y(e,n);return E&&(r=E(r)),x?r*x.scale+x.offset:r}:(e,t,n)=>y(e,n),O=[],k;for(let t of Jl(e,`Location`)){let e=H(B(t,`Offset_Words`)),n=e===null?H(B(t,`Offset_Bits`)):e*16+h;if(n===null||!Number.isInteger(n)||n<0||n>tu)return r.push(`${f} (a location outside any IENA packet)`),null;let i=H(B(t,`Occurrences`))??1;if(!Number.isInteger(i)||i<1||i*p>tu)return r.push(`${f} (${i} occurrences)`),null;if((a+=i)>1e6)throw dl();if(i===1)O.push(n);else if(l){let t=e===null?p:Math.ceil(p/16)*16;for(let e=0;e<i;e++)O.push(n+e*t)}else O.push(n),k=i}return O.length?k&&O.length>1?(r.push(`${f} (several locations and occurrences)`),null):{name:f,unit:C,at:O,spread:k,bits:p,read:D}:(r.push(`${f} (${t}: no location)`),null)},u=new Map;for(let e of[...Yl(t,`IENA`),...Yl(t,`IENA-Ethernet-UDP-Basic`)]){let t=V(e,`Name`)??null,r=z(e,`Properties`),i=parseInt(B(r,`Key`)??``,16);if(!(i>=0&&i<=65535)){n.push(`The XidML package ${t??`(no name)`} has no IENA key; it is not used.`);continue}if(u.has(i)){n.push(`The XidML names key 0x${ru(i)} twice; the first package is used.`);continue}let a=eu[B(r,`PayloadType`)??`P Type`]??`P`,o=parseInt(B(r,`EndWord`)??``,16),s=/^(true|1)$/i.test(B(e,`PlaceParametersContiguously`)??``),c=Jl(z(e,`Content`),`Mapping`);a!==`P`&&c.length&&n.push(`${t}: a ${a} type packet names its parameters by id; its mappings are not used.`);let d=a===`P`?c.map(e=>l(e,t??ru(i),s)).filter(e=>e!==null):[],f=H(B(e,`PackageRate`));u.set(i,{name:t,kind:a,fields:d,minBytes:0,rate:f&&f>0?f:null,end:o>=0&&o<=65535&&o!==57005?o:null})}if(!u.size)throw new R(`it has no IENA packages`);return i&&n.push(`XidML Parity and FillValue are not checked.`),r.length&&n.push(`Not decoded from the XidML: ${r.slice(0,20).join(`, `)}${r.length>20?`, and ${r.length-20} more`:``}.`),{source:`XidML`,keys:u,any:null,notes:n}}var ru=e=>e.toString(16).toUpperCase().padStart(4,`0`),iu=65536,au=4096,ou=64,su=2e3,cu=1e5,lu=64<<20,uu=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,du=e=>e===1?`was`:`were`;function fu(e,t,n,r,i,a){a.length=0;let o=n+r-2,s=n+14,c=e[n+10]&7;if(i===`N`||i===`D`){let e=i===`D`?4:2,n=e+2*c;if((o-s)%n)return null;for(;s<o;s+=n)a.push([t.getUint16(s),i===`D`?t.getUint16(s+2):0,s+e,c]);return a}let l=i===`M`?6:4;for(;s<o;){if(o-s<l)return null;let e=t.getUint16(s+l-2),n=s+l+e+(e&1);if(n>o)return null;a.push([t.getUint16(s),i===`M`?t.getUint16(s+2):0,s+l,e+1>>1]),s=n}return a}var pu=class{dated=!1;#e=null;#t=1970;#n=new Map;#r(e){let t=this.#n.get(e);return t===void 0&&(t=Date.UTC(e,0,1)*1e3,this.#n.set(e,t)),t}abs(e,t){if(this.#e===null){let n=new Date(e).getUTCFullYear();return this.#t=Number.isFinite(n)?n:1970,this.dated=this.#t>=2e3,this.#e=this.#r(this.#t)+t}let n=0,r=this.#t;for(let e of[this.#t,this.#t+1,this.#t-1]){let i=this.#r(e)+t;(e===this.#t||Math.abs(i-this.#e)<Math.abs(n-this.#e))&&(n=i,r=e)}return this.#t=r,this.#e=n}},mu=(e,t)=>e?.keys.get(t)??e?.any??null;function hu(e,t){let{b:n,o:r,n:i}=e,a=t.ports.get(e.dport);a||t.ports.set(e.dport,a=[0,0]);let o=t.dict?.pid,s=i>=2?n[r]<<8|n[r+1]:-1,c=s>=0&&!o?mu(t.dict,s):null;if(!Oe(n,r,i,c?.end??57005))return a[1]++,null;a[0]++;let l=new DataView(n.buffer,n.byteOffset,n.byteLength);if(o){if(o.off+o.size>i)return t.damaged++,null;s=o.read(l,r+o.off),c=t.dict.keys.get(s)??null}let u=l.getUint16(r+4)*4294967296+l.getUint32(r+6);return{key:s,kd:c,abs:t.clock.abs(e.time,u),dv:l}}var gu=e=>e?.kind??`P`,_u=e=>!!e&&e.kind===`P`&&e.fields.length>0,vu=e=>e.spread??e.at.length,yu=e=>vu(e)>1||e.dt!==void 0,bu=(e,t)=>(e?.source===`XidML`?t-2:t)*8;function xu(e,t,n,r){r.length=0;let i=2*Math.floor(n/e.bits);if(e.spread){let a=Math.floor((t-16>>1)/e.spread)*16;for(let t=0;t<(a>0?e.spread:1)&&r.length<i;t++){let i=e.at[0]+t*a;i+e.bits<=n&&r.push(i,t)}}else for(let t=0;t<e.at.length&&r.length<i;t++)e.at[t]+e.bits<=n&&r.push(e.at[t],t);return r}async function Su(e,t){let n=e=>/\.(xidml|xml)$/i.test(e.name),r=e=>/\.(ya?ml|csv)$/i.test(e.name),i=[...e.filter(n),...e.filter(r)];if(!i.length)return null;let a=i[0];for(let e of i.slice(1))t.push(`${e.name} was not used: ${a.name} is the dictionary.`);let o=n(a)?`XidML file`:`layout`;try{if(a.size>lu)throw new R(`it is larger than 64 MB`);let e=j(new Uint8Array(await a.arrayBuffer())),r=n(a)?nu(e):wl(e,a.name);return t.push(...r.notes),r}catch(e){let n=e instanceof R?e.message:`it may be damaged`;return t.push(`${a.name} isn't a usable ${o} (${n}); IENA keys are read as raw 16-bit words.`),null}}async function Cu(e,t){let n=[],r={},i=await Su(e.companions,n),a=E(await t.read(0,64));if(!a)throw Error(`This is not a pcap or pcapng capture.`);let c={dict:i,clock:new pu,stats:o(),ports:new Map,damaged:0},l=new Map,u=[],d=[],f=1/0,p=0,m=e=>{let t=hu(e,c);if(!t)return;let{key:n,kd:r,abs:a,dv:o}=t,s=gu(r),m=l.get(n),h=_u(r),g=!h&&s!==`P`?fu(e.b,o,e.o,e.n,s,u):null;if(!h&&s!==`P`&&!g){c.damaged++;return}if(!m)l.set(n,m={packets:0,short:0,words:0,rows:[],ids:new Map,first:a,last:a,steps:0,seq:o.getUint16(e.o+12)});else{let t=o.getUint16(e.o+12),n=t-m.seq&65535;n&&n<32768&&(m.steps+=n,m.seq=t,m.last=Math.max(m.last,a),m.first=Math.min(m.first,a))}if(m.packets++,f=Math.min(f,a),h&&e.n<r.minBytes){m.short++;return}if(h){r.fields.forEach((t,n)=>{yu(t)&&(m.rows[n]=(m.rows[n]??0)+xu(t,e.n,bu(i,e.n),d).length/2)});return}if(s===`P`){m.words=Math.max(m.words,e.n-16>>1);return}let _=new Map;for(let[e,,,t]of g){let n=m.ids.get(e);n||m.ids.set(e,n={words:0,max:0,total:0}),t>ou&&p++,n.words=Math.max(n.words,Math.min(t,ou)),n.total++,_.set(e,(_.get(e)??0)+1)}for(let[e,t]of _){let n=m.ids.get(e);n.max=Math.max(n.max,t)}};for(let e=s(t,m,c.stats);!(await e.next()).done;);let h=[],g=new Map,_=0,v=0,y=e=>h.length>=su||_+e.channels.length>cu?(v++,-1):(_+=e.channels.length,h.push(e),h.length-1),b=[...l].sort((e,t)=>e[0]-t[0]),x=[],S=0;for(let[e,t]of b){let n=mu(i,e);i&&!n&&x.push(e);let a=gu(n),o=n?.name||`IENA 0x${ru(e)}`,s=n?.rate?1e6/n.rate:t.steps?(t.last-t.first)/t.steps:0,c=s>0?1e6/s:null,l={dict:n,kind:a,fields:[],main:-1,rawWords:0,ids:new Map,period:s};g.set(e,l),r[`Key 0x${ru(e)}`]=`${n?.name?`${n.name}: `:``}${n?i.source===`layout`?`layout`:`${a} type`:`raw words`}, ${uu(t.packets,`packet`)}`;let u=(e,t,n,r)=>({name:e,channels:t,samples:n,time:{kind:`timestamps`},rateHz:r,irregular:!0});if(_u(n)){S+=t.short;let e=t.packets-t.short;if(!e)continue;let r=n.fields.filter(e=>!yu(e)),i=C(r.map(e=>e.name));r.length&&(l.main=y(u(o,r.map((e,t)=>({name:i[t],unit:e.unit})),e,c))),r.forEach((e,t)=>l.fields.push({f:e,g:l.main,c:t,occ:1})),n.fields.forEach((e,n)=>{if(!yu(e)||!t.rows[n])return;let r=vu(e),i=e.dt?1/e.dt:c&&c*r;l.fields.push({f:e,g:y(u(`${o} ${e.name}`,[{name:e.name,unit:e.unit}],t.rows[n],i)),c:0,occ:r})})}else if(a===`P`)l.rawWords=t.words,t.words&&(l.main=y(u(o,Array.from({length:t.words},(e,t)=>({name:`${o} w${t}`,unit:``})),t.packets,c)));else{let e=[...t.ids].sort((e,t)=>e[0]-t[0]),n=(e,t)=>Array.from({length:t},(n,r)=>({name:`${o} 0x${ru(e)}${t>1?` w${r}`:``}`,unit:``})),r=e=>a===`D`||a===`M`||e.max>1,i=e.filter(([,e])=>!r(e)).flatMap(([e,t])=>n(e,t.words));i.length&&(l.main=y(u(o,i,t.packets,c)));let s=0;for(let[t,i]of e){if(!r(i)){l.ids.set(t,{g:l.main,c:s,words:i.words,own:!1}),s+=i.words;continue}let e=i.words?y(u(`${o} 0x${ru(t)}`,n(t,i.words),i.total,null)):-1;l.ids.set(t,{g:e,c:0,words:i.words,own:!0})}}}if(!l.size)throw Error(`This capture has no IENA packets${c.stats.damagedAt===null?``:` Kymoscope could read (it is damaged)`}: no UDP datagram holds an IENA header, its size and end field.`);if(!i&&!n.length&&n.push(`No XidML or layout file came with the capture: every IENA key is read as raw 16-bit words.`),x.length){let e=x.slice(0,10).map(e=>`0x${ru(e)}`).join(`, `);n.push(`Not in the ${i.source}: ${x.length===1?`key`:`keys`} ${e}${x.length>10?`, and ${x.length-10} more`:``}; read as raw 16-bit words.`)}let w=c.damaged,T=0;for(let[e,t]of c.ports.values())e?w+=t:T+=t;let D=c.stats;w&&n.push(`${uu(w,`damaged IENA packet`)} ${du(w)} skipped.`);let O=[T?`${uu(T,`UDP datagram`)} that ${T===1?`isn't`:`aren't`} IENA`:``,D.other?`${uu(D.other,`frame`)} that ${D.other===1?`isn't`:`aren't`} UDP`:``].filter(Boolean);O.length&&n.push(`Skipped: ${O.join(`, `)}.`),D.incomplete&&n.push(`${uu(D.incomplete,`fragmented datagram`)} ${du(D.incomplete)} incomplete and skipped.`),D.truncated&&n.push(`${uu(D.truncated,`packet`)} captured shorter than sent (snap length) ${du(D.truncated)} skipped.`),S&&n.push(`${uu(S,`IENA packet`)} shorter than the layout ${du(S)} skipped (as the collector does).`),p&&n.push(`${uu(p,`message dataset`)} longer than ${ou} words ${p===1?`is`:`are`} read to its first ${ou} words.`),v&&n.push(`${uu(v,`group`)} past ${su.toLocaleString(`en-US`)} groups or ${cu.toLocaleString(`en-US`)} channels ${du(v)} not read.`),D.cut&&n.push(`The capture ends in the middle of a packet.`),D.damagedAt!==null&&n.push(`The capture is damaged at byte ${D.damagedAt}; the rest of it was not read.`),C(h.map(e=>e.name),[]).forEach((e,t)=>{h[t].name=e});let k={keys:g,dict:i,t0:f};return{format:`IENA (${a})`,startTime:Number.isFinite(f)&&c.clock.dated?new Date(f/1e3).toISOString():null,groups:h,meta:r,events:[],notes:n,interleaved:!0,state:k}}var wu={...a,async plan(e,t){try{return await Cu(e,t)}catch(e){throw Me(e)}},async*stream(e){let t=e.plan.state,n=new Map,r=e=>{e.cap=Math.max(1,Math.min(iu,e.total-e.start)),e.time=new Float64Array(e.cap),e.cols=e.cols.map(()=>new Float64Array(e.cap).fill(NaN))};for(let t of e.selection){let i=Ne(e,t.group),a=new Int32Array(e.plan.groups[t.group].channels.length).fill(-1);i.forEach((e,t)=>{a[e]=t});let o={cols:i.map(()=>new Float64Array),slot:a,time:new Float64Array,n:0,cap:0,start:0,total:e.plan.groups[t.group].samples};r(o),n.set(t.group,o)}let i=[],a=(e,t)=>{let n=t.n===t.cap;if(i.push({group:e,time:n?t.time:t.time.slice(0,t.n),start:t.start,length:t.n,columns:t.cols.map(e=>n?e:e.slice(0,t.n))}),t.start+=t.n,n)r(t);else for(let e of t.cols)e.fill(NaN,0,t.n);t.n=0},c,l=-1,u=(e,t)=>(c=n.get(e),!c||c.start+c.n>=c.total?!1:(c.n===c.cap&&a(e,c),l=c.n++,c.time[l]=t,!0)),d=(e,t)=>{let n=c.slot[e];n>=0&&(c.cols[n][l]=t)},f={dict:t.dict,clock:new pu,stats:o(),ports:new Map,damaged:0},p=[],m=[],h=0,g=e=>{if(++h%au===0)for(let[e,t]of n)t.n&&a(e,t);let r=hu(e,f);if(!r)return;let i=t.keys.get(r.key);if(!i)return;let{b:o,o:s,n:g}=e,{dv:_}=r,v=(r.abs-t.t0)/1e6,y=bu(t.dict,g),b=s*8,x=e=>e+2<=s+g-2?_.getUint16(e):NaN;if(i.fields.length||_u(i.dict)){if(g<i.dict.minBytes)return;let e=i.main>=0&&u(i.main,v);for(let{f:t,g:n,c:r,occ:a}of i.fields){if(n===i.main){e&&d(r,t.at[0]+t.bits<=y?t.read(o,_,b+t.at[0]):NaN);continue}if(!(n<0)){xu(t,g,y,m);for(let e=0;e<m.length;e+=2){let r=m[e+1];if(!u(n,t.dt?v+r*t.dt:v+r*i.period/a/1e6))break;d(0,t.read(o,_,b+m[e]))}}}return}if(i.kind===`P`){if(i.main>=0&&u(i.main,v))for(let e=0;e<i.rawWords;e++)d(e,x(s+14+2*e));return}let S=fu(o,_,s,g,i.kind,p);if(!S)return;let C=i.main>=0&&u(i.main,v),w=c,T=l,E=new Map;for(let[e]of S)i.ids.get(e)?.own&&i.kind!==`D`&&i.kind!==`M`&&E.set(e,(E.get(e)??0)+1);let D=new Map;for(let[e,t,n,r]of S){let a=i.ids.get(e);if(!a||a.g<0)continue;let o=Math.min(r,a.words);if(!a.own){if(!C)continue;c=w,l=T;for(let e=0;e<o;e++)d(a.c+e,x(n+2*e));continue}let s=v+t/1e6;if(E.has(e)){let t=D.get(e)??0;D.set(e,t+1),s=v+t*i.period/E.get(e)/1e6}if(u(a.g,s))for(let e=0;e<o;e++)d(e,x(n+2*e))}};try{for(let t=s(e.io,g,f.stats,e.signal);!(await t.next()).done;)yield*i,i.length=0}catch(e){throw Me(e)}for(let[e,t]of n)t.n&&a(e,t);yield*i},streamGroup(e,t){return this.stream({...e,selection:e.selection.filter(e=>e.group===t)})}},Tu=class extends Error{},Eu=1e5,Du=1e4,Ou=2e6,ku=64,Au=[[63072e3,10],[78796800,11],[94694400,12],[126230400,13],[157766400,14],[189302400,15],[220924800,16],[252460800,17],[283996800,18],[315532800,19],[362793600,20],[394329600,21],[425865600,22],[489024e3,23],[567993600,24],[631152e3,25],[662688e3,26],[709948800,27],[741484800,28],[773020800,29],[820454400,30],[867715200,31],[915148800,32],[1136073600,33],[1230768e3,34],[1341100800,35],[1435708800,36],[1483228800,37]];function ju(e){let t=0;for(let[n,r]of Au)e>=n+r&&(t=r);return e-t}function Mu(e){switch(e){case`TAI`:return e=>ju(-378691200+e);case`GPS`:return e=>ju(315964819+e);case`J2000`:return e=>ju(946727967.816+e);case`UNIX`:case`POSIX`:return e=>e}let t=Date.parse(/[zZ]|[+-]\d\d:\d\d$/.test(e)?e:/T/.test(e)?`${e}Z`:`${e}T00:00:00Z`);return Number.isFinite(t)?e=>t/1e3+e:null}var Nu={seconds:1,picoSeconds:1e-12,days:86400},Pu=new DataView(new ArrayBuffer(8));function Fu(e,t){return t?(t,n)=>{let r=0;for(let i=e/8-1;i>=0;i--)r=r*256+Xl(t,n+8*i,8);return r}:(t,n)=>Xl(t,n,e)}function Iu(e){let t=z(e,`ContextCalibratorList`)?`ContextCalibratorList`:``,n=z(e,`DefaultCalibrator`);if(!n)return{cal:null,why:t};let r=n.kids[0];if(!r)return{cal:null,why:t};if(r.name===`PolynomialCalibrator`){let e=Jl(r,`Term`).map(e=>[H(V(e,`coefficient`))??0,H(V(e,`exponent`))??0]);return{cal:t=>e.reduce((e,[n,r])=>e+n*t**r,0),why:t}}if(r.name===`SplineCalibrator`){let e=H(V(r,`order`))??1,n=/^(true|1)$/.test(V(r,`extrapolate`)??``),i=Jl(r,`SplinePoint`).map(e=>[H(V(e,`raw`)),H(V(e,`calibrated`))]).filter(e=>e[0]!==null&&e[1]!==null).sort((e,t)=>e[0]-t[0]);if(i.length<2||e>1)return{cal:null,why:`SplineCalibrator${e>1?` of order ${e}`:``}`};let a=i.length-1;return{cal:t=>{if(!(t>=i[0][0]&&t<=i[a][0])&&!n)return NaN;let r=0;for(;r<a-1&&t>i[r+1][0];)r++;if(e===0)return t>=i[r+1][0]?i[r+1][1]:i[r][1];let[o,s]=i[r],[c,l]=i[r+1];return c===o?s:s+(l-s)*(t-o)/(c-o)},why:t}}return{cal:null,why:r.name}}function Lu(e){let t=z(e,`SizeInBits`),n=H(B(z(t,`Fixed`),`FixedValue`)??B(t,`FixedValue`));return n!==null&&Number.isInteger(n)&&n>=0&&n<=65542*8?n:-1}function Ru(e){let t=(e,t=-1)=>({bits:t,read:null,why:e,cal:null,calWhy:``});if(!e)return t(`no encoding`);if((V(e,`bitOrder`)??`mostSignificantBitFirst`)!==`mostSignificantBitFirst`)return t(`least significant bit first`);let n=V(e,`byteOrder`),r=z(e,`ByteOrderList`),i=n===`leastSignificantByteFirst`||r!==void 0&&V(r.kids[0]??e,`byteSignificance`)===`0`;if(n&&n!==`leastSignificantByteFirst`&&n!==`mostSignificantByteFirst`)return t(`byte order ${n}`);if(e.name===`StringDataEncoding`)return t(`a string`,Lu(e));if(e.name===`BinaryDataEncoding`)return t(`binary data`,Lu(e));let a=H(V(e,`sizeInBits`))??(e.name===`FloatDataEncoding`?32:8);if(!Number.isInteger(a)||a<1||a>64)return t(`${a} bits`);if(i&&a%8)return t(`little-endian with a size that is not whole bytes`,a);let{cal:o,why:s}=Iu(e),c=Fu(a,i),l=null,u=``;if(e.name===`IntegerDataEncoding`){let t=2**(a-1);switch(V(e,`encoding`)??`unsigned`){case`unsigned`:l=c;break;case`twosComplement`:case`twosCompliment`:l=(e,n)=>{let r=c(e,n);return r>=t?r-2*t:r};break;case`signMagnitude`:l=(e,n)=>{let r=c(e,n);return r>=t?-(r-t):r};break;case`onesComplement`:l=(e,n)=>{let r=c(e,n);return r>=t?-(2*t-1-r):r};break;default:u=`${V(e,`encoding`)} integers`}}else if(e.name===`FloatDataEncoding`){let t=V(e,`encoding`)??`IEEE754_1985`;t!==`IEEE754_1985`&&t!==`IEEE754`?u=`${t} floats`:a===32?l=(e,t)=>(Pu.setUint32(0,c(e,t)),Pu.getFloat32(0)):a===64?l=i?(e,t)=>{for(let n=0;n<8;n++)Pu.setUint8(7-n,Xl(e,t+8*n,8));return Pu.getFloat64(0)}:(e,t)=>(Pu.setUint32(0,Xl(e,t,32)),Pu.setUint32(4,Xl(e,t+32,32)),Pu.getFloat64(0)):u=`${a}-bit floats`}else return t(e.name);return{bits:a,read:l,why:u,cal:o,calWhy:s}}var zu=new Set([`IntegerDataEncoding`,`FloatDataEncoding`,`StringDataEncoding`,`BinaryDataEncoding`]),Bu=e=>e?.kids.find(e=>zu.has(e.name)),Vu=e=>B(z(e,`UnitSet`),`Unit`)??``;function Hu(e){let t={unit:Vu(e),kind:`number`,labels:[],time:null};switch(e.name){case`IntegerParameterType`:case`FloatParameterType`:{let n=Ru(Bu(e));return{...t,...n}}case`BooleanParameterType`:{let n=Ru(Bu(e));return{...t,...n,cal:null,kind:`bool`,labels:[[V(e,`zeroStringValue`)??`False`,0],[V(e,`oneStringValue`)??`True`,1]]}}case`EnumeratedParameterType`:{let n=Ru(Bu(e)),r=Jl(z(e,`EnumerationList`),`Enumeration`).flatMap(e=>{let t=H(V(e,`value`)),n=V(e,`label`);return t!==null&&n!==void 0?[[n,t]]:[]});return{...t,...n,cal:null,kind:`enum`,labels:r}}case`AbsoluteTimeParameterType`:case`RelativeTimeParameterType`:{let n=z(e,`Encoding`),r=Ru(Bu(n)),i=Nu[(n&&V(n,`units`))??`seconds`],a=(H(n&&V(n,`scale`))??1)*(i??1),o=(H(n&&V(n,`offset`))??0)*(i??1),s=e=>e*a+o;if(!i)return{...t,...r,read:null,why:`time in ${V(n,`units`)}`};if(e.name===`RelativeTimeParameterType`)return{...t,...r,unit:`s`,cal:s};let c=z(e,`ReferenceTime`),l=B(c,`Epoch`),u=l?Mu(l):z(c,`OffsetFrom`)?null:Mu(`TAI`);return u?{...t,...r,unit:`s`,cal:s,kind:`time`,time:u}:{...t,...r,read:null,why:l?`epoch ${l}`:`a time offset from another parameter`}}case`StringParameterType`:return{...t,...Ru(Bu(e)),read:null,why:`a string`};case`BinaryParameterType`:return{...t,...Ru(Bu(e)),read:null,why:`binary data`};case`AggregateParameterType`:return{...t,...Ru(void 0),why:`an aggregate`};case`ArrayParameterType`:return{...t,...Ru(void 0),why:`an array`};default:return{...t,...Ru(void 0),why:e.name}}}function Uu(e,t,n,r){let i=e=>{let t=[];for(let n of e.split(`/`))n===`..`?t.pop():n&&n!==`.`&&t.push(n);return`/${t.join(`/`)}`};if(n.startsWith(`/`))return e.get(i(n));for(let a=r;;a=a.slice(0,a.lastIndexOf(`/`))){let r=e.get(i(`${a}/${n}`));if(r!==void 0||!a)return r??t.get(n.slice(n.lastIndexOf(`/`)+1))}}var Wu={ArrayParameterRefEntry:`an array entry`,IndirectParameterRefEntry:`an indirect parameter entry`,StreamSegmentEntry:`a stream segment entry`,ParameterSegmentRefEntry:`a parameter segment entry`,ContainerSegmentRefEntry:`a container segment entry`},Gu=class{params=[];containers=[];roots=[];chans=[];timeParam=[];notes=[];short=!1;#e=new Float64Array;#t=new Float64Array;#n=new Int32Array;#r=0;#i=0;constructor(e){let t=z(ql(e),`SpaceSystem`);if(!t)throw new Tu(`it has no <SpaceSystem> element`);let n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,s=new Map,c=[],l=[],u=[[t,``]];for(;u.length;){let[e,t]=u.pop(),d=`${t}/${V(e,`name`)??``}`,f=z(e,`TelemetryMetaData`);for(let e of z(f,`ParameterTypeSet`)?.kids??[]){let t=V(e,`name`);t&&(n.set(`${d}/${t}`,[e,d]),r.has(t)||r.set(t,[e,d]))}for(let e of Jl(z(f,`ParameterSet`),`Parameter`)){let t=V(e,`name`);if(t){if(l.length>=Eu)throw new Tu(`it defines more than ${Eu.toLocaleString(`en-US`)} parameters`);i.set(`${d}/${t}`,l.length),a.has(t)||a.set(t,l.length),l.push([e,d])}}for(let e of Jl(z(f,`ContainerSet`),`SequenceContainer`)){let t=V(e,`name`);if(t){if(c.length>=Du)throw new Tu(`it defines more than ${Du.toLocaleString(`en-US`)} containers`);o.set(`${d}/${t}`,c.length),s.has(t)||s.set(t,c.length),c.push([e,d])}}let p=Jl(e,`SpaceSystem`);for(let e=p.length-1;e>=0;e--)u.push([p[e],d])}if(!c.length)throw new Tu(`it has no SequenceContainers`);let d=new Map,f=new Map,p=new Map;for(let[e,t]of l){let i=V(e,`name`),a=V(e,`parameterTypeRef`),o=a?Uu(n,r,a,t):void 0,s=o&&p.get(o[0]);o&&!s&&p.set(o[0],s=Hu(o[0]));let c=s??{...Hu({name:`no type`,attrs:``,kids:[],text:``}),why:`no type`};this.params.push({name:i,unit:c.unit,bits:c.bits,read:c.why?null:c.read,cal:c.cal,kind:c.kind,labels:c.labels,time:c.time})}let m=e=>{let[t,i]=l[e],a=V(t,`parameterTypeRef`),o=a?Uu(n,r,a,i):void 0,s=o&&p.get(o[0]);return s?[s.why,s.calWhy]:[`no type`,``]},h=(e,t,n,r,o,s)=>{let c=Uu(i,a,e,o),l=!/^(false|0)$/.test(n??`true`);if(c===void 0||![`==`,`!=`,`<`,`<=`,`>`,`>=`].includes(t))return d.set(s,`a comparison it cannot read`),null;let u=this.params[c],f;return l&&(u.kind===`enum`||u.kind===`bool`)?(f=u.labels.find(([e])=>e===r)?.[1],f===void 0&&u.kind===`bool`&&(f=/^(true|1)$/i.test(r)?1:/^(false|0)$/i.test(r)?0:void 0)):f=H(r)??void 0,f===void 0?(d.set(s,`a comparison with ${r}`),null):{p:c,cal:l,op:t,v:f}},g=(e,t,n)=>{if(e.name===`Condition`){let r=Jl(e,`ParameterInstanceRef`),i=B(e,`Value`);return r.length!==1||i===void 0?(d.set(n,`a condition against another parameter`),null):h(V(r[0],`parameterRef`)??``,(B(e,`ComparisonOperator`)??`==`).trim(),V(r[0],`useCalibratedValue`),i.trim(),t,n)}if(e.name!==`ANDedConditions`&&e.name!==`ORedConditions`)return d.set(n,`a ${e.name}`),null;let r=[];for(let i of e.kids){let e=g(i,t,n);if(!e)return null;r.push(e)}return{and:e.name===`ANDedConditions`,of:r}},_=(e,t,n)=>{if(!e)return null;let r=e.kids[0];if(r?.name===`BooleanExpression`&&r.kids[0])return g(r.kids[0],t,n)??`unsupported`;let i=r?.name===`Comparison`?[r]:r?.name===`ComparisonList`?Jl(r,`Comparison`):null;if(!i)return d.set(n,`a ${r?.name??`condition`}`),`unsupported`;let a=[];for(let e of i){let r=h(V(e,`parameterRef`)??``,V(e,`comparisonOperator`)??`==`,V(e,`useCalibratedValue`),V(e,`value`)??``,t,n);if(!r)return`unsupported`;a.push(r)}return a.length===1?a[0]:{and:!0,of:a}};c.forEach(([e,t])=>{let n=V(e,`name`),r=z(e,`BaseContainer`),c=-1,l=!1,u=null;if(r){let e=Uu(o,s,V(r,`containerRef`)??``,t);e===void 0?(d.set(`container ${n}`,`its base container is not defined`),l=!0):c=e;let i=_(z(r,`RestrictionCriteria`),t,`container ${n}`);i===`unsupported`?l=!0:u=i}let p=[];for(let r of z(e,`EntryList`)?.kids??[]){let e=(e,t)=>{d.set(e,t),p.push({p:-1,c:-1,abs:-1,rel:0,cond:null,stop:!0})};if(Wu[r.name]){e(`${n} entry`,Wu[r.name]);continue}if(r.name!==`ParameterRefEntry`&&r.name!==`ContainerRefEntry`)continue;let c=V(r,r.name===`ParameterRefEntry`?`parameterRef`:`containerRef`)??``;if(z(r,`RepeatEntry`)){e(c,`a RepeatEntry`);continue}let l=z(r,`LocationInContainerInBits`),u=-1,h=0;if(l){let t=H(B(l,`FixedValue`)),n=V(l,`referenceLocation`)??`previousEntry`;if(t===null||!Number.isInteger(t)||Math.abs(t)>65542*8){e(c,`a location that is not a fixed value`);continue}if(n===`containerStart`)u=t;else if(n===`previousEntry`)h=t;else{e(c,`a location from the ${n===`containerEnd`?`container end`:`next entry`}`);continue}}let g=_(z(r,`IncludeCondition`),t,c);if(g===`unsupported`){p.push({p:-1,c:-1,abs:-1,rel:0,cond:null,stop:!0});continue}if(r.name===`ContainerRefEntry`){let n=Uu(o,s,c,t);if(n===void 0){e(c,`not defined`);continue}p.push({p:-1,c:n,abs:u,rel:h,cond:g,stop:!1});continue}let v=Uu(i,a,c,t);if(v===void 0){e(c,`not defined`);continue}let y=this.params[v],[b,x]=m(v);b&&d.set(y.name,b),x&&f.set(y.name,x),p.push({p:v,c:-1,abs:u,rel:h,cond:g,stop:y.bits<0})}this.containers.push({name:n,abstract:/^(true|1)$/.test(V(e,`abstract`)??``),base:c,never:l,restrict:u,entries:p,kids:[]})}),this.containers.forEach((e,t)=>{let n=0;for(let r=e.base;r>=0;r=this.containers[r].base){if(r===t)throw new Tu(`its containers inherit from each other in a loop`);if(++n>ku)throw new Tu(`its containers inherit through more than ${ku} base containers`)}e.base>=0&&this.containers[e.base].kids.push(t)});let v=new Uint8Array(this.containers.length),y=(e,t)=>{if(v[e]!==2){if(v[e]===1)throw new Tu(`its containers refer to each other in a loop`);if(t>ku)throw new Tu(`its containers nest more than ${ku} deep`);v[e]=1;for(let n of this.containers[e].entries)n.c>=0&&y(n.c,t+1);v[e]=2}};this.containers.forEach((e,t)=>y(t,0)),this.roots=this.containers.flatMap((e,t)=>e.base<0&&e.kids.length?[t]:[]),this.roots.length||(this.roots=this.containers.flatMap((e,t)=>e.base<0&&!e.abstract?[t]:[]));let b=0,x=[],S=new Set,C=(e,t,n,r)=>{for(let i of this.containers[e].entries){if(++b>Ou)throw new Tu(`its containers nest more than ${Ou.toLocaleString(`en-US`)} entries`);if(i.stop){i.cond||(r=!1);continue}i.abs>=0&&(r=n),i.c>=0?r=C(i.c,t,r,r):i.p>=0&&this.params[i.p].read&&(r?t.add(i.p):S.add(i.p))}return r};if(this.containers.forEach((e,t)=>{if(this.chans.push([]),this.timeParam.push(-1),e.abstract)return;let n=[];for(let e=t;e>=0;e=this.containers[e].base)n.unshift(e);let r=new Set;S=new Set;let i=!0;for(let e of n)i=C(e,r,!0,i);let a=[...r],o=a.find(e=>this.params[e].kind===`time`)??-1;this.timeParam[t]=o,this.chans[t]=a.filter(e=>e!==o);let s=[...S].filter(e=>!r.has(e)).map(e=>this.params[e].name);s.length&&x.push(`${s.join(`, `)} in ${e.name}`)}),d.size){let e=[...d].map(([e,t])=>`${e} (${t})`);this.notes.push(`Not decoded from the XTCE: ${e.slice(0,20).join(`, `)}${e.length>20?`, and ${e.length-20} more`:``}.`)}if(x.length&&this.notes.push(`Not read (they follow an entry of no fixed size): ${x.slice(0,20).join(`; `)}${x.length>20?`; and ${x.length-20} more containers`:``}.`),f.size){let e=[...f].map(([e,t])=>`${e} (${t})`);this.notes.push(`Calibrators not applied: ${e.slice(0,20).join(`, `)}${e.length>20?`, and ${e.length-20} more`:``}.`)}let w=this.params.length;this.#e=new Float64Array(w),this.#t=new Float64Array(w),this.#n=new Int32Array(w)}#a(e){if(!e)return!0;if(`of`in e){for(let t of e.of)if(this.#a(t)!==e.and)return!e.and;return e.and}if(this.#n[e.p]!==this.#r)return!1;let t=e.cal?this.#t[e.p]:this.#e[e.p];return e.op===`==`?t===e.v:e.op===`!=`?t!==e.v:e.op===`<`?t<e.v:e.op===`<=`?t<=e.v:e.op===`>`?t>e.v:t>=e.v}#o(e,t,n,r,i,a){for(let o of this.containers[e].entries){if(--this.#i<0)return NaN;if(o.cond&&!this.#a(o.cond))continue;if(o.stop){n=NaN;continue}if(n=o.abs>=0?t+o.abs:n+o.rel,o.c>=0){n=this.#o(o.c,n,n,r,i,a);continue}let e=this.params[o.p];if(!(n>=0&&n+e.bits<=a)){n>=0&&(this.short=!0),n+=e.bits;continue}if(e.read){let t=e.read(r,i+n);this.#e[o.p]=t,this.#t[o.p]=e.cal?e.cal(t):e.kind===`bool`?+!!t:t,this.#n[o.p]=this.#r}n+=e.bits}return n}#s(e,t,n,r){this.#r=this.#r+1|0,this.short=!1;let i=0;for(let a of e)i=this.#o(a,0,i,t,n,r)}#c(e,t,n,r,i){let a=this.containers[e[e.length-1]];for(let o of a.kids){let a=this.containers[o];if(a.never||!this.#a(a.restrict))continue;e.push(o);let s=this.#c(e,this.#o(o,0,t,n,r,i),n,r,i);if(s>=0)return s;e.pop(),this.#s(e,n,r,i)}return a.abstract?-1:e[e.length-1]}decode(e,t,n){for(let r of this.roots){this.#r=this.#r+1|0,this.short=!1,this.#i=8*n+256;let i=this.#c([r],this.#o(r,0,0,e,t*8,n*8),e,t*8,n*8);if(i>=0)return i}return-1}value(e){return this.#n[e]===this.#r?this.#t[e]:NaN}time(e){let t=this.timeParam[e];return t<0?NaN:this.params[t].time(this.value(t))}},Ku=65536,qu=4096,Ju=2e3,Yu=1e5,Xu=50<<20,Zu=256,Qu=4e6,$u=(e,t,n=`${t}s`)=>`${e.toLocaleString(`en-US`)} ${e===1?t:n}`,ed=e=>e===1?`was`:`were`,td=e=>`0x${e.toString(16).toUpperCase().padStart(3,`0`)}`,nd=(e,t=10)=>`${e.slice(0,t).join(`, `)}${e.length>t?`, and ${e.length-t} more`:``}`;async function*rd(e,t,n,r,i,a){let o=new De(n,r),s=new Uint8Array,c={on:!1},l=t&&new oe(t,o,i),u=t?new Uint8Array(t.frame):null,d=!0;for await(let n of e.windows(0,e.size)){a?.throwIfAborted();let f=n.offset+n.bytes.length>=e.size,p=n.bytes;s.length&&(p=new Uint8Array(s.length+n.bytes.length),p.set(s),p.set(n.bytes,s.length));let m=0;if(!t)m=ke(p,o,r,f,c);else{d&&(m=t.start,i.outOfSync+=m);let e=4+t.frame;for(;f?m+e<=p.length:m+Math.max(e,t.cadu)<=p.length;){if(!be(p,m)){if(ge(p,m)){i.badSync++,m+=t.cadu;continue}let e=ne(p,m+1),n=e>=0?e:f?p.length:Math.max(m,p.length-3);if(i.outOfSync+=n-m,m=n,e<0)break;continue}let n=p.subarray(m+4,m+e);if(t.randomized){u.set(n);for(let e=0;e<n.length;e++)u[e]^=le[e%255];n=u}l.frame(n),m+=t.cadu}f&&m<p.length&&(p.length-m>4&&(r.cut=!0),m=p.length)}d=!1,s=p.slice(m),yield}}async function id(e,t){let n=e.filter(e=>/\.(xml|xtce)$/i.test(e.name));if(!n.length)return null;let r=n[0];for(let e of n.slice(1))t.push(`${e.name} was not used: ${r.name} is the XTCE file.`);try{if(r.size>Xu)throw new Tu(`it is larger than 50 MB`);let e=new Gu(j(new Uint8Array(await r.arrayBuffer())));return t.push(...e.notes),e}catch(e){let n=e instanceof Tu?e.message:e instanceof R?`it nests deeper than 256 elements`:`it may be damaged`;return t.push(`${r.name} isn't a usable XTCE file (${n}); every APID is read as raw bytes of its data field.`),null}}var ad=(e,t,n,r)=>{let i=e?e.decode(t,n,r):-1;return i>=0&&e.chans[i].length?i:-1};async function od(e,t){let n=[],r={},i=de(await t.read(0,196624));if(i&&i.version!==0)throw Error(`These are CCSDS ${i.version===1?`AOS (732.0-B)`:i.version===12?`USLP (732.1-B)`:`version ${i.version}`} transfer frames, which Kymoscope does not read; TM frames (132.0-B) and Space Packets are read.`);let a=await id(e.companions,n),o=re(),s=ue(),c=new Map,l=new Map,u=1/0,d=0,f=0,p=0,m=(e,t,n)=>{d++;let r=ad(a,e,t,n);if(r>=0){if(a.short&&f++,a.timeParam[r]>=0){let e=a.time(r);if(!Number.isFinite(e)){p++;return}u=Math.min(u,e)}c.set(r,(c.get(r)??0)+1);return}let i=Ae(e,t),o=l.get(i);o?(o.n++,o.width=Math.max(o.width,n-6)):l.set(i,{n:1,width:n-6})};for(let e=rd(t,i,m,o,s);!(await e.next()).done;);if(!d)throw Error(i?`This file has CCSDS TM frames but no Space Packets Kymoscope could read in them.`:`This file has no CCSDS Space Packets Kymoscope could read.`);let h=[],g=0,_=0,v=e=>h.length>=Ju||g+e.channels.length>Yu?(_++,-1):(g+=e.channels.length,h.push(e),h.length-1),y=new Int32Array(a?.containers.length??0).fill(-1);if(a)for(let e of[...c.keys()].sort((e,t)=>e-t)){let t=a.containers[e],i=a.chans[e].map(e=>a.params[e]),o=C(i.map(e=>e.name)),s=a.timeParam[e]>=0;s||n.push(`${t.name} has no AbsoluteTime parameter in the XTCE: its packets are numbered.`),y[e]=v({name:t.name,channels:i.map((e,t)=>({name:o[t],unit:e.unit})),samples:c.get(e),time:s?{kind:`timestamps`}:{kind:`index`},rateHz:null,irregular:s||void 0});for(let e of i)e.labels.length&&(e.kind===`enum`||e.kind===`bool`)&&(r[`${e.name} values`]=e.labels.map(([e,t])=>`${t} = ${e}`).join(`, `))}let b=new Map,x=[...l].sort((e,t)=>e[0]-t[0]),S=[];for(let[e,t]of x){let n=`APID ${td(e)}`,r=Math.min(t.width,Zu);t.width>Zu&&S.push(n),b.set(e,{g:v({name:n,channels:Array.from({length:r},(e,t)=>({name:`${n} b${t}`,unit:``})),samples:t.n,time:{kind:`index`},rateHz:null}),width:r})}let w=x.map(([e])=>td(e));!a&&!n.length?n.push(`No XTCE file came with the telemetry: every APID is read as raw bytes of its data field, numbered (no time).`):a&&w.length&&n.push(`Not in the XTCE: ${w.length===1?`APID`:`APIDs`} ${nd(w)}; read as raw bytes of the data field, numbered (no time).`);for(let e of S)n.push(`${e}: only the first ${Zu} bytes of its data field are read.`);f&&n.push(`${$u(f,`packet`)} shorter than ${f===1?`its`:`their`} XTCE container: the values past ${f===1?`its`:`their`} end are empty.`),p&&n.push(`${$u(p,`packet`)} with no usable time ${ed(p)} skipped.`),s.badFecf&&n.push(`${$u(s.badFecf,`frame`)} failed ${s.badFecf===1?`its`:`their`} FECF check and ${ed(s.badFecf)} skipped.`);let T=[...s.gaps].sort((e,t)=>e[0]-t[0]);if(T.length){let e=T.reduce((e,[,[t]])=>e+t,0);n.push(`${$u(e,`frame-count gap`)} (${T.map(([e,[,t]])=>`VC ${e}, ${$u(t,`frame`)} missing`).join(`; `)}).`)}s.damaged&&n.push(`${$u(s.damaged,`frame`)} of another spacecraft or version, or with a damaged data field, ${ed(s.damaged)} skipped.`),s.notPackets&&n.push(`${$u(s.notPackets,`frame`)} carrying VCA data rather than packets ${ed(s.notPackets)} skipped.`),s.idleFrames&&n.push(`${$u(s.idleFrames,`idle frame`)} ${ed(s.idleFrames)} skipped.`),o.idle&&n.push(`${$u(o.idle,`idle packet`)} ${ed(o.idle)} skipped.`),s.partial&&n.push(`${$u(s.partial,`partial packet`)} ${ed(s.partial)} dropped (frame-count gaps, frames skipped).`),o.segments&&n.push(`${$u(o.segments,`packet segment`)} out of order ${ed(o.segments)} dropped.`),o.skipped&&n.push(`${$u(o.skipped,`byte`)} that hold${o.skipped===1?`s`:``} no packet ${ed(o.skipped)} skipped.`),s.outOfSync&&n.push(`${$u(s.outOfSync,`byte`)} out of sync (no ASM where a frame should start) ${ed(s.outOfSync)} skipped.`),s.badSync&&n.push(`${$u(s.badSync,`frame`)} with a damaged sync marker (ASM) ${ed(s.badSync)} skipped.`),i&&i.frame<i.cadu-4&&n.push(`Reed-Solomon check bytes present (not corrected): the ${i.cadu}-byte CADUs are read as frames of ${i.frame} bytes.`),_&&n.push(`${$u(_,`group`)} past ${Ju.toLocaleString(`en-US`)} groups or ${Yu.toLocaleString(`en-US`)} channels ${ed(_)} not read.`),o.cut&&n.push(`The file ends in the middle of a ${i?`frame`:`packet`}.`),i&&(r.Spacecraft=`0x${i.scid.toString(16).toUpperCase()}`,r.Frames=`${s.frames} (${[...s.vcs].sort((e,t)=>e-t).map(e=>`VC ${e}`).join(`, `)})`,r.FECF=i.fecf?`checked`:`none`),r.Packets=String(d),C(h.map(e=>e.name),[]).forEach((e,t)=>{h[t].name=e});let E={shape:i,dict:a,t0:u,leafGroup:y,raw:b};return{format:i?`CCSDS TM frames (${i.frame} bytes${i.randomized?`, randomized`:``})`:`CCSDS Space Packets`,startTime:Number.isFinite(u)?new Date(u*1e3).toISOString():null,groups:h,meta:r,events:[],notes:n,interleaved:!0,state:E}}var sd={...Te,async plan(e,t){try{return await od(e,t)}catch(e){throw Me(e)}},async*stream(e){let t=e.plan.state,n=new Map,r=e=>{e.cap=Math.max(1,Math.min(Ku,e.total-e.start,Math.floor(Qu/Math.max(1,e.cols.length)))),e.time&&=new Float64Array(e.cap),e.cols=e.cols.map(()=>new Float64Array(e.cap).fill(NaN))};for(let t of e.selection){let i=e.plan.groups[t.group],a=Ne(e,t.group),o={cols:a.map(()=>new Float64Array),sel:a,time:i.time.kind===`timestamps`?new Float64Array:null,n:0,cap:0,start:0,total:i.samples};r(o),n.set(t.group,o)}let i=[],a=(e,t)=>{let n=t.n===t.cap;if(i.push({group:e,time:t.time&&(n?t.time:t.time.slice(0,t.n)),start:t.start,length:t.n,columns:t.cols.map(e=>n?e:e.slice(0,t.n))}),t.start+=t.n,n)r(t);else for(let e of t.cols)e.fill(NaN,0,t.n);t.n=0},o,s=-1,c=(e,t)=>(o=n.get(e),!o||o.start+o.n>=o.total?!1:(o.n===o.cap&&a(e,o),s=o.n++,o.time&&(o.time[s]=t),!0)),l=t.dict,u=0,d=(e,r,i)=>{if(++u%qu===0)for(let[e,t]of n)t.n&&a(e,t);let d=ad(l,e,r,i);if(d>=0){let e=0;if(l.timeParam[d]>=0){if(e=l.time(d),!Number.isFinite(e))return;e-=t.t0}let n=t.leafGroup[d];if(n<0||!c(n,e))return;let r=l.chans[d],{sel:i,cols:a}=o;for(let e=0;e<i.length;e++)a[e][s]=l.value(r[i[e]]);return}let f=t.raw.get(Ae(e,r));if(!f||f.g<0||!c(f.g,0))return;let{sel:p,cols:m}=o;for(let t=0;t<p.length;t++)p[t]<i-6&&(m[t][s]=e[r+6+p[t]])};try{for(let n=rd(e.io,t.shape,d,re(),ue(),e.signal);!(await n.next()).done;)yield*i,i.length=0}catch(e){throw Me(e)}for(let[e,t]of n)t.n&&a(e,t);yield*i},streamGroup(e,t){return this.stream({...e,selection:e.selection.filter(e=>e.group===t)})}},cd=`This MiniSEED file's compressed data is damaged.`;function ld(e,t,n,r=!1){let i=new Int32Array(n);if(n===0)return i;let a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=Math.floor(e.length/64);if(o===0)throw Error(cd);let s=a.getInt32(4,r),c=a.getInt32(8,r),l=0,u=e=>{l<n&&(i[l++]=e)};for(let e=0;e<o&&l<n;e++){let i=e*64,o=a.getUint32(i,r);for(let s=e===0?3:1;s<16&&l<n;s++){let e=o>>>30-2*s&3;if(e===0)continue;let n=a.getInt32(i+4*s,r);if(e===1){for(let e=0;e<4;e++)u(a.getInt8(i+4*s+e));continue}if(t===1){e===2?(u(a.getInt16(i+4*s,r)),u(a.getInt16(i+4*s+2,r))):u(n);continue}let c=n>>>30;if(e===2)if(c===1)u(n<<2>>2);else if(c===2)u(n<<2>>17),u(n<<17>>17);else if(c===3)for(let e=0;e<3;e++)u(n<<2+10*e>>22);else throw Error(cd);else if(c===0)for(let e=0;e<5;e++)u(n<<2+6*e>>26);else if(c===1)for(let e=0;e<6;e++)u(n<<2+5*e>>27);else if(c===2)for(let e=0;e<7;e++)u(n<<4+4*e>>28);else throw Error(cd)}}if(l<n)throw Error(cd);i[0]=s;for(let e=1;e<n;e++)i[e]=i[e-1]+i[e];if(i[n-1]!==c)throw Error(cd);return i}var ud={1:2,3:4,4:4,5:8},dd=10,fd=11,pd={1:1/2,3:1/4,4:1/4,5:1/8,10:1,11:7/4},md=1e4,hd=65536,gd=(e,t,n,r,i)=>Date.UTC(e,0,1,n,r,i)+(t-1)*864e5;function _d(e,t){return e===0||t===0?0:e>0?t>0?e*t:-e/t:t>0?-t/e:1/(e*t)}function vd(e){let t=/^FDSN:([^_]*)_([^_]*)_([^_]*)_(.*)$/.exec(e);return t?`${t[1]}.${t[2]}.${t[3]}.${t[4].replace(/_/g,``)}`:e}function yd(e,t){let n=l(e),r=e[33],i=n.getUint16(34,!0),a=n.getUint32(36,!0),o=40+r+i+a,s=n.getFloat64(16,!0);s<0&&(s=-1/s);let c=gd(n.getUint16(8,!0),n.getUint16(10,!0),e[12],e[13],e[14])*1e3+n.getUint32(4,!0)/1e3;return{rec:{data:t+40+r+i,dataLen:a,enc:e[15],n:n.getUint32(24,!0),le:!0,steimLe:!1,t:c,rate:s,source:vd(je(e.subarray(40,40+r)))},length:o}}async function bd(e,t,n){let r=!he(t,20,!1),i=l(t),a=(e,n)=>je(t.subarray(e,n)).trim(),o=`${a(18,20)}.${a(8,13)}.${a(13,15)}.${a(15,18)}`,s=_d(i.getInt16(32,r),i.getInt16(34,r)),c=gd(i.getUint16(20,r),i.getUint16(22,r),t[24],t[25],t[26])*1e3+i.getUint16(28,r)*100;t[36]&2||(c+=i.getInt32(40,r)*100);let u=-1,d=r,f=0;for(let e=i.getUint16(46,r),n=0;e>=48&&e+8<=t.length&&n<64;n++){let n=i.getUint16(e,r);n===1e3?(u=t[e+4],d=t[e+5]===0,f=t[e+6]>=7&&t[e+6]<=20?2**t[e+6]:0):n===1001?c+=i.getInt8(e+5):n===100&&(s=i.getFloat32(e+4,r));let a=i.getUint16(e+2,r);if(a<=e)break;e=a}if(!f){for(let t of[4096,512,256,1024,2048,8192,128,16384,32768,65536])if(n+t===e.size||n+t<e.size&&Ce(await e.read(n+t,64))){f=t;break}return f?{rec:null,length:f,skipped:`without blockette 1000 (no encoding)`}:{rec:null,length:0}}let p=i.getUint16(44,r);return p<48||p>f?{rec:null,length:f,skipped:`with a damaged header`}:{rec:{data:n+p,dataLen:f-p,enc:u,n:i.getUint16(30,r),le:d,steimLe:d,t:c,rate:s,source:o},length:f}}async function*xd(e,t){let n=e.selection.find(e=>e.group===t);if(!n||n.channels.length===0)return;let r=e.plan.state,i=e.plan.groups[t].samples,a=0,o=new Float64Array(Math.min(hd,i)),s=0,c=()=>{let e={group:t,time:null,start:a,length:s,columns:n.channels.map((e,t)=>t?o.slice():o)};return a+=s,s=0,o=new Float64Array(Math.min(hd,i-a)),e};for(let n of r.groups[t]){e.signal?.throwIfAborted();for(let e=0;e<n.pad;){let t=Math.min(n.pad-e,o.length-s);o.fill(NaN,s,s+t),s+=t,e+=t,s===o.length&&(yield c())}let t=r.recs[n.rec],i=t.damaged?new Float64Array(t.n).fill(NaN):Sd(t,await e.io.read(t.data,t.dataLen));for(let e=n.skip;e<i.length;){let t=Math.min(i.length-e,o.length-s);o.set(i.subarray(e,e+t),s),s+=t,e+=t,s===o.length&&(yield c())}}}function Sd(e,t){if(e.enc===dd||e.enc===fd)return ld(t,e.enc===dd?1:2,e.n,e.steimLe);let n=l(t),r=new Float64Array(e.n),i=ud[e.enc];for(let t=0,a=0;t<e.n;t++,a+=i)r[t]=e.enc===1?n.getInt16(a,e.le):e.enc===3?n.getInt32(a,e.le):e.enc===4?n.getFloat32(a,e.le):n.getFloat64(a,e.le);return r}var Cd={...ye,async plan(e,t){let n=[],r=[],i=new Map,a=e=>i.set(e,(i.get(e)??0)+1),o=new Set,s=0;for(let e=0;e<t.size;){let i=await t.read(e,4096),c=ie(i);if(!c&&!Ce(i)){r.push(`The last ${t.size-e} bytes of the file are not MiniSEED records and were not read.`);break}let l=c?yd(i,e):await bd(t,i,e);if(!l.length||e+l.length>t.size){r.push(`The file ends inside a record (damaged or cut short): the data from byte ${e} on was not read.`);break}o.add(c?3:2),e+=l.length;let u=l.rec;if(!u){a(l.skipped);continue}if(u.n!==0){if(!(u.enc in pd)){a(`in encoding ${u.enc}, which Kymoscope cannot read`);continue}if(u.n>u.dataLen*pd[u.enc]){a(`declaring more samples than they hold (damaged)`);continue}if(!(Number.isFinite(u.rate)&&u.rate>0)){a(`without a sample rate`);continue}if(u.enc===dd||u.enc===fd){let n=u.data-(e-l.length);try{Sd(u,n+u.dataLen<=i.length?i.subarray(n,n+u.dataLen):await t.read(u.data,u.dataLen))}catch{u.damaged=!0,s++}}n.push(u)}}s&&r.push(`${s} damaged record${s===1?` was`:`s were`} left empty.`);for(let[e,t]of i)r.push(`${t} record${t===1?``:`s`} ${e} ${t===1?`was`:`were`} skipped.`);if(n.length===0)throw Error(`This MiniSEED file has no data records Kymoscope can read.`);let c=new Map;n.forEach((e,t)=>{let n=c.get(e.source);n?n.push(t):c.set(e.source,[t])});let l=n.reduce((e,t)=>Math.min(e,t.t),1/0),u=[],d=[];for(let[e,t]of c){t.sort((e,t)=>n[e].t-n[t].t);let i=!1,a=0,o=null,s=()=>{if(!o)return;let t=a++?`${e} (${a})`:e;u.push({name:t,channels:[{name:t,unit:`counts`}],samples:o.samples,time:{kind:`rate`,rate:o.rate,start:(o.start-l)/1e6},rateHz:o.rate}),d.push(o.pieces)};for(let e of t){let t=n[e];if(o&&Math.abs(t.rate-o.rate)<=1e-6*o.rate){let n=(t.t-o.start)/1e6*o.rate-o.samples;if(n>.5&&(Math.round(n)>=md||o.padded+Math.round(n)>o.samples-o.padded+t.n))s(),o=null;else{let r=n>.5?Math.round(n):0,a=n<-.5?Math.round(-n):0;if(a&&(i=!0),a>=t.n)continue;o.pieces.push({rec:e,skip:a,pad:r}),o.samples+=r+t.n-a,o.padded+=r;continue}}else s();o={rate:t.rate,start:t.t,samples:t.n,padded:0,pieces:[{rec:e,skip:0,pad:0}]}}s(),i&&r.push(`${e}: records overlap; the samples read first were kept and the overlapping ones dropped.`)}let f={recs:n,groups:d};return{format:`MiniSEED ${[...o].sort().join(` + `)}`,startTime:new Date(Math.floor(l/1e3)).toISOString(),groups:u,meta:{records:String(n.length)},events:[],notes:r,state:f}},streamGroup:(e,t)=>xd(e,t),async*stream(e){for(let t of e.selection)yield*xd(e,t.group)}},wd={int8_t:[1,0],uint8_t:[1,1],int16_t:[2,2],uint16_t:[2,3],int32_t:[4,4],uint32_t:[4,5],int64_t:[8,6],uint64_t:[8,7],float:[4,8],double:[8,9],bool:[1,10],char:[1,11]},Td=11,Ed=8,Dd=65535,Od=65536,kd=65536,Ad=1e5,jd=[`EMERGENCY`,`ALERT`,`CRITICAL`,`ERROR`,`WARNING`,`NOTICE`,`INFO`,`DEBUG`];function Md(e){let t=e.indexOf(`:`);if(t<0)throw Error(`bad format`);let n=[];for(let r of e.slice(t+1).split(`;`)){if(!r)continue;let[e,t]=r.split(` `),i=e.indexOf(`[`),a=i<0?0:Number(e.slice(i+1,e.indexOf(`]`)));if(!t||!(Number.isInteger(a)&&a>=0&&a<=Dd))throw Error(`bad field`);n.push({type:i<0?e:e.slice(0,i),n:a,name:t})}return[e.slice(0,t),n]}function Nd(e,t){let n=new Map,r=(t,i)=>{if(wd[t])return wd[t][0];let a=n.get(t);if(a!==void 0)return a;let o=e.get(t);if(!o)throw Error(`its format uses ${t}, which the file does not define`);if(i>Ed)throw Error(`its format nests too deep`);let s=0;for(let e of o)if((s+=r(e.type,i+1)*Math.max(1,e.n))>Dd)throw Error(`its format is larger than a message`);return n.set(t,s),s};r(t,0);let i=[],a=-1,o=0,s=(t,n,c,l)=>{if(l>Ed)throw Error(`its format nests too deep`);for(let u of e.get(t)){let e=r(u.type,l+1),t=Math.max(1,u.n);if(u.name.startsWith(`_padding`)){c+=e*t;continue}let d=wd[u.type];if(l===0&&u.name===`timestamp`&&u.type===`uint64_t`&&u.n===0)a=c;else if(d?.[1]===Td)i.push({name:n+u.name,code:Td,off:c,n:t});else if(d)for(let r=0;r<t;r++)i.push({name:n+u.name+(u.n?`[${r}]`:``),code:d[1],off:c+r*e,n:1});else if(e>0)for(let r=0;r<t;r++)s(u.type,`${n}${u.name}${u.n?`[${r}]`:``}.`,c+r*e,l+1);c+=e*t,l===0&&(o=c)}};if(s(t,``,0,0),a<0)throw Error(`its format has no uint64_t timestamp`);return{leaves:i,tsOff:a,minSize:o}}async function*Pd(e,t,n,r,i){let a=new Uint8Array;for await(let r of e.windows(16,t-16)){i?.throwIfAborted();let e=r.bytes;if(a.length){let t=new Uint8Array(a.length+e.length);t.set(a),t.set(e,a.length),e=t}let t=l(e),o=0;for(;!(o+3>e.length);){let r=e[o]|e[o+1]<<8;if(o+3+r>e.length)break;n(e[o+2],e,t,o+3,r),o+=3+r}a=e.slice(o),yield}r.cut=a.length>0}function Fd(e,t,n){switch(n){case 0:return e.getInt8(t);case 1:return e.getUint8(t);case 2:return e.getInt16(t,!0);case 3:return e.getUint16(t,!0);case 4:return e.getInt32(t,!0);case 5:return e.getUint32(t,!0);case 6:return k(e,t);case 7:return D(e,t);case 8:return e.getFloat32(t,!0);case 9:return e.getFloat64(t,!0);default:return+!!e.getUint8(t)}}function Id(e){for(let t=1;t<10;t++){let n=Number(e.toPrecision(t));if(Math.fround(n)===e)return String(n)}return String(e)}function Ld(e,t,r,i,a){if(e.startsWith(`char[`))return n(t.subarray(i,a));let o=wd[e];if(!o||o[1]===Td||i+o[0]>a)return null;let s=Fd(r,i,o[1]);return o[1]===8?Id(s):String(s)}function Rd(e,t,n){let r=e[t];if(t+1+r>n)return null;let[i,a]=j(e.subarray(t+1,t+1+r)).split(` `);return a?[i,a,t+1+r]:null}var zd=(e,t)=>`[${jd[e>=48?e-48:e]??`UNKNOWN`}] ${t}`,Bd={...fe,async plan(e,t){let r=await t.read(0,59);if(r.length<16||!d(r,`ULog5`))throw Error(`This is not a ULog file.`);let i=l(r),a=[],o=t.size;if(r.length>=59&&r[18]===66){let e=r.subarray(27,35);if(e[0]&-2||e.subarray(1).some(e=>e))throw Error(`This ULog file uses features this reader does not know.`);let t=D(i,35);e[0]&1&&t>16&&t<o&&(o=t,a.push(`This file has data appended after logging ended; only the data before it was read.`))}let s=new Map,c=new Map,u=new Set,f=[],p=new Map,m=[],h=0,g=0,_=0,v=0,y={},b=[],x=1/0,S=0,w=0,T=0,E=(e,t,r,i,o)=>{let l=i+o;switch(e){case 70:try{let[e,n]=Md(j(t.subarray(i,l)));s.set(e,n),p.clear()}catch{a.push(`A message format in the file could not be read; skipped.`)}break;case 73:case 80:{let n=Rd(t,i,l);if(!n)break;let a=`${e===73?`info`:`param`}.${n[1]}`,o=Ld(n[0],t,r,n[2],l);o!==null&&(e===73||!(a in y))&&(y[a]=o);break}case 77:{if(o<2)break;let e=Rd(t,i+1,l);if(!e||!e[0].startsWith(`char[`))break;let r=`info.${e[1]}`,a=n(t.subarray(e[2],l));y[r]=r in y?y[r]+(t[i]?``:`
|
|
38
|
-
`)+a:a;break}case 65:{if(o<3)break;let e=t[i],n=r.getUint16(i+1,!0),d=j(t.subarray(i+3,l)),m=h++;c.delete(n),u.delete(n);let v=p.get(d);if(!v){try{v=Nd(s,d)}catch(e){v=e}p.set(d,v)}if(v instanceof Error){a.push(`${d}: ${v.message}; skipped.`);break}if(g+v.leaves.length>Ad){_++,u.add(n);break}g+=v.leaves.length;let y={ord:m,name:e>0?`${d}_${e}`:d,count:0,...v};c.set(n,y),f.push(y);break}case 82:o>=2&&(c.delete(r.getUint16(i,!0)),u.delete(r.getUint16(i,!0)));break;case 68:{let e=o>=2?c.get(r.getUint16(i,!0)):void 0;if(!e&&o>=2&&u.has(r.getUint16(i,!0)))break;if(!e||o-2<e.minSize){S++;break}e.count++;let t=D(r,i+2+e.tsOff);x=Math.min(x,t),v=Math.max(v,t);break}case 76:o>=9&&b.push({ts:D(r,i+1),text:zd(t[i],j(t.subarray(i+9,l)))});break;case 67:o>=11&&b.push({ts:D(r,i+3),text:zd(t[i],j(t.subarray(i+11,l)))});break;case 79:if(o>=2){w++,T+=r.getUint16(i,!0),m.push(v);for(let e of c.values())e.count&&e.count++}break}},O={cut:!1};for(let e=Pd(t,o,E,O);!(await e.next()).done;);O.cut&&a.push(`The file ends in the middle of a message.`),S&&a.push(`${S} data message${S===1?``:`s`} did not match a subscription; skipped.`),_&&a.push(`${_} subscription${_===1?` was`:`s were`} skipped: the file has more than ${Ad.toLocaleString(`en-US`)} channels.`),w&&a.push(`${w} dropout${w===1?``:`s`} while logging (${T} ms in total).`),Number.isFinite(x)||(x=D(i,8));let k=f.filter(e=>e.count>0),A=C(k.map(e=>e.name),[]),M=k.map((e,t)=>({name:A[t],channels:e.leaves.map(e=>({name:e.name,unit:``,...e.code===Td?{text:!0}:{}})),samples:e.count,time:{kind:`timestamps`},rateHz:null,irregular:!0})),N=b.map(e=>({time:(e.ts-x)/1e6,text:e.text}));return{format:`ULog v${r[7]}`,startTime:null,groups:M,meta:y,events:N,notes:a,interleaved:!0,state:{subs:k,t0:x,end:o,drops:m}}},async*stream(e){let t=e.plan.state,r=new Map,i=e=>{e.cap=Math.max(1,Math.min(Od,e.sub.count-e.start)),e.time=new Float64Array(e.cap),e.cols=e.leaves.map(t=>t.code===Td?Array(e.cap):new Float64Array(e.cap))};for(let n of e.selection){let a=t.subs[n.group],o={g:n.group,sub:a,leaves:Ne(e,n.group).map(e=>a.leaves[e]),time:new Float64Array,cols:[],n:0,cap:0,start:0};i(o),r.set(a.ord,o)}let a=new Map,o=0,s=0,c=0,l=[],u=e=>{let t=e.n===e.cap;l.push({group:e.g,time:t?e.time:e.time.slice(0,e.n),start:e.start,length:e.n,columns:e.cols.map(n=>t?n:n.slice(0,e.n))}),e.start+=e.n,e.n=0,i(e)},d=(e,i,l,d,f)=>{if(++c%kd===0)for(let e of r.values())e.n&&u(e);if(e===65){f>=3&&a.set(l.getUint16(d+1,!0),o++);return}if(e===82){f>=2&&a.delete(l.getUint16(d,!0));return}if(e===79){if(f<2)return;let e=(t.drops[s++]-t.t0)/1e6;for(let t of a.values()){let n=r.get(t);if(!(!n||n.start+n.n===0)){n.time[n.n]=e;for(let e=0;e<n.leaves.length;e++)n.leaves[e].code===Td?n.cols[e][n.n]=null:n.cols[e][n.n]=NaN;++n.n===n.cap&&u(n)}}return}if(e!==68||f<2)return;let p=a.get(l.getUint16(d,!0)),m=p===void 0?void 0:r.get(p);if(!m||f-2<m.sub.minSize)return;let h=d+2;m.time[m.n]=(D(l,h+m.sub.tsOff)-t.t0)/1e6;for(let e=0;e<m.leaves.length;e++){let t=m.leaves[e];t.code===Td?m.cols[e][m.n]=n(i.subarray(h+t.off,h+t.off+t.n)):m.cols[e][m.n]=Fd(l,h+t.off,t.code)}++m.n===m.cap&&u(m)};for(let n=Pd(e.io,t.end,d,{cut:!1},e.signal);!(await n.next()).done;)yield*l,l.length=0;for(let e of r.values())e.n&&u(e);yield*l},streamGroup(e,t){return this.stream({...e,selection:e.selection.filter(e=>e.group===t)})}};function Vd({polynomial:e,numTables:t}){let n=new Uint32Array(256*t);for(let t=0;t<256;t++){let r=t;r=(r&1)*e^r>>>1,r=(r&1)*e^r>>>1,r=(r&1)*e^r>>>1,r=(r&1)*e^r>>>1,r=(r&1)*e^r>>>1,r=(r&1)*e^r>>>1,r=(r&1)*e^r>>>1,r=(r&1)*e^r>>>1,n[t]=r}for(let e=256;e<n.length;e++){let t=n[e-256];n[e]=n[t&255]^t>>>8}return n}var Hd=Vd({polynomial:3988292384,numTables:8});function Ud(){return-1}function Wd(e,t){let n=t.byteLength,r=new DataView(t.buffer,t.byteOffset,n),i=e,a=0,o=-r.byteOffset&3;for(;a<o&&a<n;a++)i=Hd[(i^r.getUint8(a))&255]^i>>>8;if(a===n)return i;a=o;let s=n-a;for(;s>=8;a+=8,s-=8){i^=r.getUint32(a,!0);let e=r.getUint32(a+4,!0);i=Hd[0+(e>>>24&255)]^Hd[1*256+(e>>>16&255)]^Hd[2*256+(e>>>8&255)]^Hd[3*256+(e>>>0&255)]^Hd[4*256+(i>>>24&255)]^Hd[5*256+(i>>>16&255)]^Hd[6*256+(i>>>8&255)]^Hd[7*256+(i>>>0&255)]}for(let e=a;e<n;e++)i=Hd[(i^r.getUint8(e))&255]^i>>>8;return i}function Gd(e){return(e^-1)>>>0}function Kd(e){return Gd(Wd(Ud(),e))}var U=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},W=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},qd=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Jd=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Yd=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};(function(){function e(t){t===void 0&&(t=e.minComparator);var n=this;this.compare=t,this.heapArray=[],this._limit=0,this.offer=this.add,this.element=this.peek,this.poll=this.pop,this._invertedCompare=function(e,t){return n.compare(e,t).then(function(e){return-1*e})}}return e.getChildrenIndexOf=function(e){return[e*2+1,e*2+2]},e.getParentIndexOf=function(e){if(e<=0)return-1;var t=e%2?1:2;return Math.floor((e-t)/2)},e.getSiblingIndexOf=function(e){return e<=0?-1:e+(e%2?1:-1)},e.minComparator=function(e,t){return U(this,void 0,void 0,function(){return W(this,function(n){return e>t?[2,1]:e<t?[2,-1]:[2,0]})})},e.maxComparator=function(e,t){return U(this,void 0,void 0,function(){return W(this,function(n){return t>e?[2,1]:t<e?[2,-1]:[2,0]})})},e.minComparatorNumber=function(e,t){return U(this,void 0,void 0,function(){return W(this,function(n){return[2,e-t]})})},e.maxComparatorNumber=function(e,t){return U(this,void 0,void 0,function(){return W(this,function(n){return[2,t-e]})})},e.defaultIsEqual=function(e,t){return U(this,void 0,void 0,function(){return W(this,function(n){return[2,e===t]})})},e.print=function(t){function n(t){var n=e.getParentIndexOf(t);return Math.floor(Math.log2(n+1))}function r(e,t){for(var n=``;t>0;--t)n+=e;return n}for(var i=0,a=[],o=n(t.length-1)+2,s=0;i<t.length;){var c=n(i)+1;i===0&&(c=0);var l=String(t.get(i));l.length>s&&(s=l.length),a[c]=a[c]||[],a[c].push(l),i+=1}return a.map(function(e,t){var n=2**(o-t)-1;return r(` `,Math.floor(n/2)*s)+e.map(function(e){var t=(s-e.length)/2;return r(` `,Math.ceil(t))+e+r(` `,Math.floor(t))}).join(r(` `,n*s))}).join(`
|
|
39
|
-
`)},e.heapify=function(t,n){return U(this,void 0,void 0,function(){var r;return W(this,function(i){switch(i.label){case 0:return r=new e(n),r.heapArray=t,[4,r.init()];case 1:return i.sent(),[2,r]}})})},e.heappop=function(t,n){var r=new e(n);return r.heapArray=t,r.pop()},e.heappush=function(t,n,r){return U(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=new e(r),i.heapArray=t,[4,i.push(n)];case 1:return a.sent(),[2]}})})},e.heappushpop=function(t,n,r){var i=new e(r);return i.heapArray=t,i.pushpop(n)},e.heapreplace=function(t,n,r){var i=new e(r);return i.heapArray=t,i.replace(n)},e.heaptop=function(t,n,r){n===void 0&&(n=1);var i=new e(r);return i.heapArray=t,i.top(n)},e.heapbottom=function(t,n,r){n===void 0&&(n=1);var i=new e(r);return i.heapArray=t,i.bottom(n)},e.nlargest=function(t,n,r){return U(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=new e(r),i.heapArray=Jd([],qd(n),!1),[4,i.init()];case 1:return a.sent(),[2,i.top(t)]}})})},e.nsmallest=function(t,n,r){return U(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=new e(r),i.heapArray=Jd([],qd(n),!1),[4,i.init()];case 1:return a.sent(),[2,i.bottom(t)]}})})},e.prototype.add=function(e){return U(this,void 0,void 0,function(){return W(this,function(t){switch(t.label){case 0:return[4,this._sortNodeUp(this.heapArray.push(e)-1)];case 1:return t.sent(),this._applyLimit(),[2,!0]}})})},e.prototype.addAll=function(e){return U(this,void 0,void 0,function(){var t,n,r;return W(this,function(i){switch(i.label){case 0:t=this.length,(r=this.heapArray).push.apply(r,Jd([],qd(e),!1)),n=this.length,i.label=1;case 1:return t<n?[4,this._sortNodeUp(t)]:[3,4];case 2:i.sent(),i.label=3;case 3:return++t,[3,1];case 4:return this._applyLimit(),[2,!0]}})})},e.prototype.bottom=function(){return U(this,arguments,void 0,function(e){return e===void 0&&(e=1),W(this,function(t){return this.heapArray.length===0||e<=0?[2,[]]:this.heapArray.length===1?[2,[this.heapArray[0]]]:e>=this.heapArray.length?[2,Jd([],qd(this.heapArray),!1)]:[2,this._bottomN_push(~~e)]})})},e.prototype.check=function(){return U(this,void 0,void 0,function(){var e,t,n,r,i,a,o,s,c;return W(this,function(l){switch(l.label){case 0:e=0,l.label=1;case 1:if(!(e<this.heapArray.length))return[3,10];t=this.heapArray[e],n=this.getChildrenOf(e),l.label=2;case 2:l.trys.push([2,7,8,9]),r=(s=void 0,Yd(n)),i=r.next(),l.label=3;case 3:return i.done?[3,6]:(a=i.value,[4,this.compare(t,a)]);case 4:if(l.sent()>0)return[2,t];l.label=5;case 5:return i=r.next(),[3,3];case 6:return[3,9];case 7:return o=l.sent(),s={error:o},[3,9];case 8:try{i&&!i.done&&(c=r.return)&&c.call(r)}finally{if(s)throw s.error}return[7];case 9:return++e,[3,1];case 10:return[2]}})})},e.prototype.clear=function(){this.heapArray=[]},e.prototype.clone=function(){var t=new e(this.comparator());return t.heapArray=this.toArray(),t._limit=this._limit,t},e.prototype.comparator=function(){return this.compare},e.prototype.contains=function(t){return U(this,arguments,void 0,function(t,n){var r,i,a,o,s,c;return n===void 0&&(n=e.defaultIsEqual),W(this,function(e){switch(e.label){case 0:e.trys.push([0,5,6,7]),r=Yd(this.heapArray),i=r.next(),e.label=1;case 1:return i.done?[3,4]:(a=i.value,[4,n(a,t)]);case 2:if(e.sent())return[2,!0];e.label=3;case 3:return i=r.next(),[3,1];case 4:return[3,7];case 5:return o=e.sent(),s={error:o},[3,7];case 6:try{i&&!i.done&&(c=r.return)&&c.call(r)}finally{if(s)throw s.error}return[7];case 7:return[2,!1]}})})},e.prototype.init=function(t){return U(this,void 0,void 0,function(){var n;return W(this,function(r){switch(r.label){case 0:t&&(this.heapArray=Jd([],qd(t),!1)),n=e.getParentIndexOf(this.length-1),r.label=1;case 1:return n>=0?[4,this._sortNodeDown(n)]:[3,4];case 2:r.sent(),r.label=3;case 3:return--n,[3,1];case 4:return this._applyLimit(),[2]}})})},e.prototype.isEmpty=function(){return this.length===0},e.prototype.leafs=function(){if(this.heapArray.length===0)return[];var t=e.getParentIndexOf(this.heapArray.length-1);return this.heapArray.slice(t+1)},Object.defineProperty(e.prototype,`length`,{get:function(){return this.heapArray.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`limit`,{get:function(){return this._limit},set:function(e){this._limit=~~e,this._applyLimit()},enumerable:!1,configurable:!0}),e.prototype.peek=function(){return this.heapArray[0]},e.prototype.pop=function(){return U(this,void 0,void 0,function(){var e;return W(this,function(t){return e=this.heapArray.pop(),this.length>0&&e!==void 0?[2,this.replace(e)]:[2,e]})})},e.prototype.push=function(){var e=[...arguments];return U(this,void 0,void 0,function(){return W(this,function(t){return e.length<1?[2,!1]:e.length===1?[2,this.add(e[0])]:[2,this.addAll(e)]})})},e.prototype.pushpop=function(e){return U(this,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return[4,this.compare(this.heapArray[0],e)];case 1:return n.sent()<0?(t=qd([this.heapArray[0],e],2),e=t[0],this.heapArray[0]=t[1],[4,this._sortNodeDown(0)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2,e]}})})},e.prototype.remove=function(t){return U(this,arguments,void 0,function(t,n){var r,i,a,o=this;return n===void 0&&(n=e.defaultIsEqual),W(this,function(s){switch(s.label){case 0:return this.heapArray.length?t===void 0?[4,this.pop()]:[3,2]:[2,!1];case 1:return s.sent(),[2,!0];case 2:r=[0],s.label=3;case 3:return r.length?(i=r.shift(),[4,n(this.heapArray[i],t)]):[3,13];case 4:return s.sent()?i===0?[4,this.pop()]:[3,6]:[3,11];case 5:return s.sent(),[3,10];case 6:return i===this.heapArray.length-1?(this.heapArray.pop(),[3,10]):[3,7];case 7:return this.heapArray.splice(i,1,this.heapArray.pop()),[4,this._sortNodeUp(i)];case 8:return s.sent(),[4,this._sortNodeDown(i)];case 9:s.sent(),s.label=10;case 10:return[2,!0];case 11:a=e.getChildrenIndexOf(i).filter(function(e){return e<o.heapArray.length}),r.push.apply(r,Jd([],qd(a),!1)),s.label=12;case 12:return[3,3];case 13:return[2,!1]}})})},e.prototype.replace=function(e){return U(this,void 0,void 0,function(){var t;return W(this,function(n){switch(n.label){case 0:return t=this.heapArray[0],this.heapArray[0]=e,[4,this._sortNodeDown(0)];case 1:return n.sent(),[2,t]}})})},e.prototype.size=function(){return this.length},e.prototype.top=function(){return U(this,arguments,void 0,function(e){return e===void 0&&(e=1),W(this,function(t){return this.heapArray.length===0||e<=0?[2,[]]:this.heapArray.length===1||e===1?[2,[this.heapArray[0]]]:e>=this.heapArray.length?[2,Jd([],qd(this.heapArray),!1)]:[2,this._topN_push(~~e)]})})},e.prototype.toArray=function(){return Jd([],qd(this.heapArray),!1)},e.prototype.toString=function(){return this.heapArray.toString()},e.prototype.get=function(e){return this.heapArray[e]},e.prototype.getChildrenOf=function(t){var n=this;return e.getChildrenIndexOf(t).map(function(e){return n.heapArray[e]}).filter(function(e){return e!==void 0})},e.prototype.getParentOf=function(t){var n=e.getParentIndexOf(t);return this.heapArray[n]},e.prototype[Symbol.iterator]=function(){return W(this,function(e){switch(e.label){case 0:return this.length?[4,this.pop()]:[3,2];case 1:return e.sent(),[3,0];case 2:return[2]}})},e.prototype.iterator=function(){return this},e.prototype._applyLimit=function(){if(this._limit&&this._limit<this.heapArray.length)for(var e=this.heapArray.length-this._limit;e;)this.heapArray.pop(),--e},e.prototype._bottomN_push=function(t){return U(this,void 0,void 0,function(){var n,r,i,a,o,s,o;return W(this,function(c){switch(c.label){case 0:return n=new e(this.compare),n.limit=t,n.heapArray=this.heapArray.slice(-t),[4,n.init()];case 1:for(c.sent(),r=this.heapArray.length-1-t,i=e.getParentIndexOf(r),a=[],o=r;o>i;--o)a.push(o);s=this.heapArray,c.label=2;case 2:return a.length?(o=a.shift(),[4,this.compare(s[o],n.peek())]):[3,6];case 3:return c.sent()>0?[4,n.replace(s[o])]:[3,5];case 4:c.sent(),o%2&&a.push(e.getParentIndexOf(o)),c.label=5;case 5:return[3,2];case 6:return[2,n.toArray()]}})})},e.prototype._moveNode=function(e,t){var n=this.heapArray[e];this.heapArray[e]=this.heapArray[t],this.heapArray[t]=n},e.prototype._sortNodeDown=function(e){return U(this,void 0,void 0,function(){var t,n,r,i,a,o,s;return W(this,function(c){switch(c.label){case 0:t=this.heapArray.length,n=e,r=this.heapArray[e],i=2*e+1,c.label=1;case 1:return i<t?(a=i+1,s=a>=t,s?[3,3]:[4,this.compare(this.heapArray[i],this.heapArray[a])]):[3,5];case 2:s=c.sent()<0,c.label=3;case 3:return o=s?i:a,[4,this.compare(this.heapArray[o],r)];case 4:if(c.sent()<0)this.heapArray[e]=this.heapArray[o],e=o,i=2*e+1;else return[3,5];return[3,1];case 5:return e!==n&&(this.heapArray[e]=r),[2]}})})},e.prototype._sortNodeUp=function(t){return U(this,void 0,void 0,function(){var n,r,i;return W(this,function(a){switch(a.label){case 0:n=this.heapArray[t],r=t,a.label=1;case 1:return t>0?(i=e.getParentIndexOf(t),[4,this.compare(n,this.heapArray[i])]):[3,3];case 2:if(a.sent()<0)this.heapArray[t]=this.heapArray[i],t=i;else return[3,3];return[3,1];case 3:return t!==r&&(this.heapArray[t]=n),[2]}})})},e.prototype._topN_push=function(t){return U(this,void 0,void 0,function(){var n,r,i,a;return W(this,function(o){switch(o.label){case 0:n=new e(this._invertedCompare),n.limit=t,r=[0],i=this.heapArray,o.label=1;case 1:return r.length?(a=r.shift(),a<i.length?n.length<t?[4,n.push(i[a])]:[3,3]:[3,6]):[3,7];case 2:return o.sent(),r.push.apply(r,Jd([],qd(e.getChildrenIndexOf(a)),!1)),[3,6];case 3:return[4,this.compare(i[a],n.peek())];case 4:return o.sent()<0?[4,n.replace(i[a])]:[3,6];case 5:o.sent(),r.push.apply(r,Jd([],qd(e.getChildrenIndexOf(a)),!1)),o.label=6;case 6:return[3,1];case 7:return[2,n.toArray()]}})})},e.prototype._topN_fill=function(t){return U(this,void 0,void 0,function(){var n,r,i,a,o,o;return W(this,function(s){switch(s.label){case 0:return n=this.heapArray,r=new e(this._invertedCompare),r.limit=t,r.heapArray=n.slice(0,t),[4,r.init()];case 1:for(s.sent(),i=e.getParentIndexOf(t-1)+1,a=[],o=i;o<t;++o)a.push.apply(a,Jd([],qd(e.getChildrenIndexOf(o).filter(function(e){return e<n.length})),!1));(t-1)%2&&a.push(t),s.label=2;case 2:return a.length?(o=a.shift(),o<n.length?[4,this.compare(n[o],r.peek())]:[3,5]):[3,6];case 3:return s.sent()<0?[4,r.replace(n[o])]:[3,5];case 4:s.sent(),a.push.apply(a,Jd([],qd(e.getChildrenIndexOf(o)),!1)),s.label=5;case 5:return[3,2];case 6:return[2,r.toArray()]}})})},e.prototype._topN_heap=function(e){return U(this,void 0,void 0,function(){var t,n,r,i,a;return W(this,function(o){switch(o.label){case 0:t=this.clone(),n=[],r=0,o.label=1;case 1:return r<e?(a=(i=n).push,[4,t.pop()]):[3,4];case 2:a.apply(i,[o.sent()]),o.label=3;case 3:return++r,[3,1];case 4:return[2,n]}})})},e.prototype._topIdxOf=function(e){return U(this,void 0,void 0,function(){var t,n,r,i;return W(this,function(a){switch(a.label){case 0:if(!e.length)return[2,-1];t=0,n=e[t],r=1,a.label=1;case 1:return r<e.length?[4,this.compare(e[r],n)]:[3,4];case 2:i=a.sent(),i<0&&(t=r,n=e[r]),a.label=3;case 3:return++r,[3,1];case 4:return[2,t]}})})},e.prototype._topOf=function(){var t=[...arguments];return U(this,void 0,void 0,function(){var n;return W(this,function(r){switch(r.label){case 0:return n=new e(this.compare),[4,n.init(t)];case 1:return r.sent(),[2,n.peek()]}})})},e})();var Xd=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Zd=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Qd=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},$d=function(){function e(t){t===void 0&&(t=e.minComparator);var n=this;this.compare=t,this.heapArray=[],this._limit=0,this.offer=this.add,this.element=this.peek,this.poll=this.pop,this.removeAll=this.clear,this._invertedCompare=function(e,t){return-1*n.compare(e,t)}}return e.getChildrenIndexOf=function(e){return[e*2+1,e*2+2]},e.getParentIndexOf=function(e){return e<=0?-1:e-1>>1},e.getSiblingIndexOf=function(e){return e<=0?-1:e+(e%2?1:-1)},e.minComparator=function(e,t){return e>t?1:e<t?-1:0},e.maxComparator=function(e,t){return t>e?1:t<e?-1:0},e.minComparatorNumber=function(e,t){return e-t},e.maxComparatorNumber=function(e,t){return t-e},e.defaultIsEqual=function(e,t){return e===t},e.print=function(t){function n(t){var n=e.getParentIndexOf(t);return Math.floor(Math.log2(n+1))}function r(e,t){for(var n=``;t>0;--t)n+=e;return n}for(var i=0,a=[],o=n(t.length-1)+2,s=0;i<t.length;){var c=n(i)+1;i===0&&(c=0);var l=String(t.get(i));l.length>s&&(s=l.length),a[c]=a[c]||[],a[c].push(l),i+=1}return a.map(function(e,t){var n=2**(o-t)-1;return r(` `,Math.floor(n/2)*s)+e.map(function(e){var t=(s-e.length)/2;return r(` `,Math.ceil(t))+e+r(` `,Math.floor(t))}).join(r(` `,n*s))}).join(`
|
|
40
|
-
`)},e.heapify=function(t,n){var r=new e(n);return r.heapArray=t,r.init(),r},e.heappop=function(t,n){var r=new e(n);return r.heapArray=t,r.pop()},e.heappush=function(t,n,r){var i=new e(r);i.heapArray=t,i.push(n)},e.heappushpop=function(t,n,r){var i=new e(r);return i.heapArray=t,i.pushpop(n)},e.heapreplace=function(t,n,r){var i=new e(r);return i.heapArray=t,i.replace(n)},e.heaptop=function(t,n,r){n===void 0&&(n=1);var i=new e(r);return i.heapArray=t,i.top(n)},e.heapbottom=function(t,n,r){n===void 0&&(n=1);var i=new e(r);return i.heapArray=t,i.bottom(n)},e.nlargest=function(t,n,r){var i=new e(r);return i.heapArray=Qd([],Zd(n),!1),i.init(),i.top(t)},e.nsmallest=function(t,n,r){var i=new e(r);return i.heapArray=Qd([],Zd(n),!1),i.init(),i.bottom(t)},e.prototype.add=function(e){return this._sortNodeUp(this.heapArray.push(e)-1),this._applyLimit(),!0},e.prototype.addAll=function(e){var t,n=this.length;(t=this.heapArray).push.apply(t,Qd([],Zd(e),!1));for(var r=this.length;n<r;++n)this._sortNodeUp(n);return this._applyLimit(),!0},e.prototype.bottom=function(e){return e===void 0&&(e=1),this.heapArray.length===0||e<=0?[]:this.heapArray.length===1?[this.heapArray[0]]:e>=this.heapArray.length?Qd([],Zd(this.heapArray),!1):this._bottomN_push(~~e)},e.prototype.check=function(){var e=this;return this.heapArray.find(function(t,n){return!!e.getChildrenOf(n).find(function(n){return e.compare(t,n)>0})})},e.prototype.clear=function(){this.heapArray=[]},e.prototype.clone=function(){var t=new e(this.comparator());return t.heapArray=this.toArray(),t._limit=this._limit,t},e.prototype.comparator=function(){return this.compare},e.prototype.contains=function(t,n){return n===void 0&&(n=e.defaultIsEqual),this.indexOf(t,n)!==-1},e.prototype.init=function(t){t&&(this.heapArray=Qd([],Zd(t),!1));for(var n=e.getParentIndexOf(this.length-1);n>=0;--n)this._sortNodeDown(n);this._applyLimit()},e.prototype.isEmpty=function(){return this.length===0},e.prototype.indexOf=function(t,n){if(n===void 0&&(n=e.defaultIsEqual),this.heapArray.length===0)return-1;for(var r=[],i=0;i<this.heapArray.length;){var a=this.heapArray[i];if(n(a,t))return i;this.compare(a,t)<=0&&r.push.apply(r,Qd([],Zd(e.getChildrenIndexOf(i)),!1)),i=r.shift()||this.heapArray.length}return-1},e.prototype.indexOfEvery=function(t,n){if(n===void 0&&(n=e.defaultIsEqual),this.heapArray.length===0)return[];for(var r=[],i=[],a=0;a<this.heapArray.length;){var o=this.heapArray[a];n(o,t)?(i.push(a),r.push.apply(r,Qd([],Zd(e.getChildrenIndexOf(a)),!1))):this.compare(o,t)<=0&&r.push.apply(r,Qd([],Zd(e.getChildrenIndexOf(a)),!1)),a=r.shift()||this.heapArray.length}return i},e.prototype.leafs=function(){if(this.heapArray.length===0)return[];var t=e.getParentIndexOf(this.heapArray.length-1);return this.heapArray.slice(t+1)},Object.defineProperty(e.prototype,`length`,{get:function(){return this.heapArray.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`limit`,{get:function(){return this._limit},set:function(e){e<0||isNaN(e)?this._limit=0:this._limit=~~e,this._applyLimit()},enumerable:!1,configurable:!0}),e.prototype.setLimit=function(e){return this.limit=e,e<0||isNaN(e)?NaN:this._limit},e.prototype.peek=function(){return this.heapArray[0]},e.prototype.pop=function(){var e=this.heapArray.pop();return this.length>0&&e!==void 0?this.replace(e):e},e.prototype.push=function(){var e=[...arguments];return e.length<1?!1:e.length===1?this.add(e[0]):this.addAll(e)},e.prototype.pushpop=function(e){var t;return this.compare(this.heapArray[0],e)<0&&(t=Zd([this.heapArray[0],e],2),e=t[0],this.heapArray[0]=t[1],this._sortNodeDown(0)),e},e.prototype.remove=function(t,n){var r=this;if(n===void 0&&(n=e.defaultIsEqual),!this.heapArray.length)return!1;if(t===void 0)return this.pop(),!0;for(var i=[0];i.length;){var a=i.shift();if(n(this.heapArray[a],t))return a===0?this.pop():a===this.heapArray.length-1?this.heapArray.pop():(this.heapArray.splice(a,1,this.heapArray.pop()),this._sortNodeUp(a),this._sortNodeDown(a)),!0;if(this.compare(this.heapArray[a],t)<=0){var o=e.getChildrenIndexOf(a).filter(function(e){return e<r.heapArray.length});i.push.apply(i,Qd([],Zd(o),!1))}}return!1},e.prototype.replace=function(e){var t=this.heapArray[0];return this.heapArray[0]=e,this._sortNodeDown(0),t},e.prototype.size=function(){return this.length},e.prototype.top=function(e){return e===void 0&&(e=1),this.heapArray.length===0||e<=0?[]:this.heapArray.length===1||e===1?[this.heapArray[0]]:e>=this.heapArray.length?Qd([],Zd(this.heapArray),!1):this._topN_push(~~e)},e.prototype.toArray=function(){return Qd([],Zd(this.heapArray),!1)},e.prototype.toString=function(){return this.heapArray.toString()},e.prototype.get=function(e){return this.heapArray[e]},e.prototype.getChildrenOf=function(t){var n=this;return e.getChildrenIndexOf(t).map(function(e){return n.heapArray[e]}).filter(function(e){return e!==void 0})},e.prototype.getParentOf=function(t){var n=e.getParentIndexOf(t);return this.heapArray[n]},e.prototype[Symbol.iterator]=function(){return Xd(this,function(e){switch(e.label){case 0:return this.length?[4,this.pop()]:[3,2];case 1:return e.sent(),[3,0];case 2:return[2]}})},e.prototype.iterator=function(){return this.toArray()},e.prototype._applyLimit=function(){if(this._limit>0&&this._limit<this.heapArray.length)for(var e=this.heapArray.length-this._limit;e;)this.heapArray.pop(),--e},e.prototype._bottomN_push=function(t){var n=new e(this.compare);n.limit=t,n.heapArray=this.heapArray.slice(-t),n.init();for(var r=this.heapArray.length-1-t,i=e.getParentIndexOf(r),a=[],o=r;o>i;--o)a.push(o);for(var s=this.heapArray;a.length;){var o=a.shift();this.compare(s[o],n.peek())>0&&(n.replace(s[o]),o%2&&a.push(e.getParentIndexOf(o)))}return n.toArray()},e.prototype._moveNode=function(e,t){var n=this.heapArray[e];this.heapArray[e]=this.heapArray[t],this.heapArray[t]=n},e.prototype._sortNodeDown=function(e){for(var t=this.heapArray.length,n=e,r=this.heapArray[e],i=2*e+1;i<t;){var a=i+1,o=a>=t||this.compare(this.heapArray[i],this.heapArray[a])<0?i:a;if(this.compare(this.heapArray[o],r)<0)this.heapArray[e]=this.heapArray[o],e=o,i=2*e+1;else break}e!==n&&(this.heapArray[e]=r)},e.prototype._sortNodeUp=function(t){for(var n=this.heapArray[t],r=t;t>0;){var i=e.getParentIndexOf(t);if(this.compare(n,this.heapArray[i])<0)this.heapArray[t]=this.heapArray[i],t=i;else break}t!==r&&(this.heapArray[t]=n)},e.prototype._topN_push=function(t){var n=new e(this._invertedCompare);n.limit=t;for(var r=[0],i=this.heapArray;r.length;){var a=r.shift();a<i.length&&(n.length<t?(n.push(i[a]),r.push.apply(r,Qd([],Zd(e.getChildrenIndexOf(a)),!1))):this.compare(i[a],n.peek())<0&&(n.replace(i[a]),r.push.apply(r,Qd([],Zd(e.getChildrenIndexOf(a)),!1))))}return n.toArray()},e.prototype._topN_fill=function(t){var n=this.heapArray,r=new e(this._invertedCompare);r.limit=t,r.heapArray=n.slice(0,t),r.init();for(var i=e.getParentIndexOf(t-1)+1,a=[],o=i;o<t;++o)a.push.apply(a,Qd([],Zd(e.getChildrenIndexOf(o).filter(function(e){return e<n.length})),!1));for((t-1)%2&&a.push(t);a.length;){var o=a.shift();o<n.length&&this.compare(n[o],r.peek())<0&&(r.replace(n[o]),a.push.apply(a,Qd([],Zd(e.getChildrenIndexOf(o)),!1)))}return r.toArray()},e.prototype._topN_heap=function(e){for(var t=this.clone(),n=[],r=0;r<e;++r)n.push(t.pop());return n},e.prototype._topIdxOf=function(e){if(!e.length)return-1;for(var t=0,n=e[t],r=1;r<e.length;++r)this.compare(e[r],n)<0&&(t=r,n=e[r]);return t},e.prototype._topOf=function(){var t=[...arguments],n=new e(this.compare);return n.init(t),n.peek()},e}(),ef=class{#e;#t=new Map;#n;#r=0;#i;constructor(e,t){this.#e=e,this.#n=t}async size(){return this.#i??=await this.#e.size(),this.#i}async read(e,t,n){let r=Number(t),i=this.#t.get(e);if(i!=null&&i.byteLength>=r)return i.byteLength===r?i:i.subarray(0,r);let a=await this.#e.read(e,t,n);if(this.#r+a.byteLength<=this.#n){let t=new Uint8Array(a);return this.#t.set(e,t),this.#r+=t.byteLength,t}return a}},tf=typeof DataView.prototype.getBigUint64==`function`?DataView.prototype.getBigUint64:function(e,t){let n=t===!0?this.getUint32(e,t):this.getUint32(e+4,t),r=t===!0?this.getUint32(e+4,t):this.getUint32(e,t);return BigInt(r)<<32n|BigInt(n)},nf=new TextDecoder,rf=class{#e;#t;offset;constructor(e,t=0){this.#e=e,this.#t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),this.offset=t}reset(e,t=0){this.#e=e,this.#t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),this.offset=t}bytesRemaining(){return this.#t.length-this.offset}uint8(){let e=this.#e.getUint8(this.offset);return this.offset+=1,e}uint16(){let e=this.#e.getUint16(this.offset,!0);return this.offset+=2,e}uint32(){let e=this.#e.getUint32(this.offset,!0);return this.offset+=4,e}uint64(){let e=tf.call(this.#e,this.offset,!0);return this.offset+=8,e}string(){let e=this.uint32();if(e===0)return``;if(e>this.bytesRemaining())throw Error(`String length ${e} exceeds bounds of buffer`);return nf.decode(this.u8ArrayBorrow(e))}keyValuePairs(e,t){let n=this.uint32();if(this.offset+n>this.#e.byteLength)throw Error(`Key-value pairs length ${n} exceeds bounds of buffer`);let r=[],i=this.offset+n;try{for(;this.offset<i;)r.push([e(this),t(this)])}catch(e){throw Error(`Error reading key-value pairs: ${e.message}`)}if(this.offset!==i)throw Error(`Key-value pairs length (${this.offset-i+n}) greater than expected (${n})`);return r}map(e,t){let n=this.uint32();if(this.offset+n>this.#e.byteLength)throw Error(`Map length ${n} exceeds bounds of buffer`);let r=new Map,i=this.offset+n;try{for(;this.offset<i;){let n=e(this),i=t(this),a=r.get(n);if(a!=null)throw Error(`Duplicate key ${String(n)} (${String(a)} vs ${String(i)})`);r.set(n,i)}}catch(e){throw Error(`Error reading map: ${e.message}`)}if(this.offset!==i)throw Error(`Map length (${this.offset-i+n}) greater than expected (${n})`);return r}u8ArrayBorrow(e){if(!(e>=0&&e<=this.bytesRemaining()))throw Error(`Byte array length ${e} exceeds bounds of buffer`);let t=this.#t.subarray(this.offset,this.offset+e);return this.offset+=e,t}u8ArrayCopy(e){if(!(e>=0&&e<=this.bytesRemaining()))throw Error(`Byte array length ${e} exceeds bounds of buffer`);let t=this.#t.slice(this.offset,this.offset+e);return this.offset+=e,t}},af=Object.freeze([137,77,67,65,80,48,13,10]),of;(function(e){e[e.MIN=1]=`MIN`,e[e.HEADER=1]=`HEADER`,e[e.FOOTER=2]=`FOOTER`,e[e.SCHEMA=3]=`SCHEMA`,e[e.CHANNEL=4]=`CHANNEL`,e[e.MESSAGE=5]=`MESSAGE`,e[e.CHUNK=6]=`CHUNK`,e[e.MESSAGE_INDEX=7]=`MESSAGE_INDEX`,e[e.CHUNK_INDEX=8]=`CHUNK_INDEX`,e[e.ATTACHMENT=9]=`ATTACHMENT`,e[e.ATTACHMENT_INDEX=10]=`ATTACHMENT_INDEX`,e[e.STATISTICS=11]=`STATISTICS`,e[e.METADATA=12]=`METADATA`,e[e.METADATA_INDEX=13]=`METADATA_INDEX`,e[e.SUMMARY_OFFSET=14]=`SUMMARY_OFFSET`,e[e.DATA_END=15]=`DATA_END`,e[e.MAX=15]=`MAX`})(of||={});function sf(e){if(e.bytesRemaining()<af.length)return;let t=e.u8ArrayBorrow(af.length);if(!af.every((e,n)=>e===t[n]))throw Error(`Expected MCAP magic '${af.map(e=>e.toString(16).padStart(2,`0`)).join(` `)}', found '${Array.from(t,(e,n)=>t[n].toString(16).padStart(2,`0`)).join(` `)}'`);return{specVersion:`0`}}function cf(e,t=!1){if(e.bytesRemaining()<9)return;let n=e.offset,r=e.uint8(),i=e.uint64();if(i>2**53-1)throw Error(`Record content length ${i} is too large`);let a=Number(i);if(e.bytesRemaining()<a){e.offset=n;return}let o;switch(r){case of.HEADER:o=uf(e,a);break;case of.FOOTER:o=df(e,a);break;case of.SCHEMA:o=ff(e,a);break;case of.CHANNEL:o=pf(e,a);break;case of.MESSAGE:o=mf(e,a);break;case of.CHUNK:o=hf(e,a);break;case of.MESSAGE_INDEX:o=gf(e,a);break;case of.CHUNK_INDEX:o=_f(e,a);break;case of.ATTACHMENT:o=vf(e,a,t);break;case of.ATTACHMENT_INDEX:o=yf(e,a);break;case of.STATISTICS:o=bf(e,a);break;case of.METADATA:o=xf(e,a);break;case of.METADATA_INDEX:o=Sf(e,a);break;case of.SUMMARY_OFFSET:o=Cf(e,a);break;case of.DATA_END:o=wf(e,a);break;default:o=lf(e,a,r);break}return e.offset=n+9+a,o}function lf(e,t,n){return{type:`Unknown`,opcode:n,data:e.u8ArrayBorrow(t)}}function uf(e,t){let n=e.offset,r=e.string(),i=e.string();return e.offset=n+t,{type:`Header`,profile:r,library:i}}function df(e,t){let n=e.offset,r=e.uint64(),i=e.uint64(),a=e.uint32();return e.offset=n+t,{type:`Footer`,summaryStart:r,summaryOffsetStart:i,summaryCrc:a}}function ff(e,t){let n=e.offset,r=e.uint16(),i=e.string(),a=e.string(),o=e.uint32();if(t-(e.offset-n)<o)throw Error(`Schema data length ${o} exceeds bounds of record`);let s=e.u8ArrayCopy(o);return e.offset=n+t,{type:`Schema`,id:r,encoding:a,name:i,data:s}}function pf(e,t){let n=e.offset,r=e.uint16(),i=e.uint16(),a=e.string(),o=e.string(),s=e.map(e=>e.string(),e=>e.string());return e.offset=n+t,{type:`Channel`,id:r,schemaId:i,topic:a,messageEncoding:o,metadata:s}}function mf(e,t){if(t<22)throw Error(`Message record length ${t} is less than 22 bytes`);return{type:`Message`,channelId:e.uint16(),sequence:e.uint32(),logTime:e.uint64(),publishTime:e.uint64(),data:e.u8ArrayCopy(t-22)}}function hf(e,t){let n=e.offset,r=e.uint64(),i=e.uint64(),a=e.uint64(),o=e.uint32(),s=e.string(),c=Number(e.uint64());if(c+(e.offset-n)>t)throw Error(`Chunk records length exceeds remaining record size`);let l=e.u8ArrayCopy(c);return e.offset=n+t,{type:`Chunk`,messageStartTime:r,messageEndTime:i,compression:s,uncompressedSize:a,uncompressedCrc:o,records:l}}function gf(e,t){let n=e.offset,r=e.uint16(),i=e.keyValuePairs(e=>e.uint64(),e=>e.uint64());return e.offset=n+t,{type:`MessageIndex`,channelId:r,records:i}}function _f(e,t){let n=e.offset,r=e.uint64(),i=e.uint64(),a=e.uint64(),o=e.uint64(),s=e.map(e=>e.uint16(),e=>e.uint64()),c=e.uint64(),l=e.string(),u=e.uint64(),d=e.uint64();return e.offset=n+t,{type:`ChunkIndex`,messageStartTime:r,messageEndTime:i,chunkStartOffset:a,chunkLength:o,messageIndexOffsets:s,messageIndexLength:c,compression:l,compressedSize:u,uncompressedSize:d}}function vf(e,t,n){let r=e.offset,i=e.uint64(),a=e.uint64(),o=e.string(),s=e.string(),c=e.uint64();if(BigInt(e.offset)+c>2**53-1)throw Error(`Attachment too large: ${c}`);if(e.offset+Number(c)+4>r+t)throw Error(`Attachment data length ${c} exceeds bounds of record`);let l=e.u8ArrayCopy(Number(c)),u=e.offset-r,d=e.uint32();if(n&&d!==0){e.offset=r;let t=Kd(e.u8ArrayBorrow(u));if(e.offset=r+u+4,t!==d)throw Error(`Attachment CRC32 mismatch: expected ${d}, actual ${t}`)}return e.offset=r+t,{type:`Attachment`,logTime:i,createTime:a,name:o,mediaType:s,data:l}}function yf(e,t){let n=e.offset,r=e.uint64(),i=e.uint64(),a=e.uint64(),o=e.uint64(),s=e.uint64(),c=e.string(),l=e.string();return e.offset=n+t,{type:`AttachmentIndex`,offset:r,length:i,logTime:a,createTime:o,dataSize:s,name:c,mediaType:l}}function bf(e,t){let n=e.offset,r=e.uint64(),i=e.uint16(),a=e.uint32(),o=e.uint32(),s=e.uint32(),c=e.uint32(),l=e.uint64(),u=e.uint64(),d=e.map(e=>e.uint16(),e=>e.uint64());return e.offset=n+t,{type:`Statistics`,messageCount:r,schemaCount:i,channelCount:a,attachmentCount:o,metadataCount:s,chunkCount:c,messageStartTime:l,messageEndTime:u,channelMessageCounts:d}}function xf(e,t){let n=e.offset,r=e.string(),i=e.map(e=>e.string(),e=>e.string());return e.offset=n+t,{type:`Metadata`,metadata:i,name:r}}function Sf(e,t){let n=e.offset,r=e.uint64(),i=e.uint64(),a=e.string();return e.offset=n+t,{type:`MetadataIndex`,offset:r,length:i,name:a}}function Cf(e,t){let n=e.offset,r=e.uint8(),i=e.uint64(),a=e.uint64();return e.offset=n+t,{type:`SummaryOffset`,groupOpcode:r,groupStart:i,groupLength:a}}function wf(e,t){let n=e.offset,r=e.uint32();return e.offset=n+t,{type:`DataEnd`,dataSectionCrc:r}}function Tf(e,t,n){let r=0,i=e.length;if(i===0)return 0;let a=n(t);for(;r<i;){let t=r+i>>>1;n(e[t][0])<a?r=t+1:i=t}return i}function Ef(e,t,n){let r=0,i=e.length;if(i===0)return 0;let a=n(t);for(;r<i;){let t=r+i>>>1;n(e[t][0])<=a?r=t+1:i=t}return i}var Df=class{chunkIndex;#e;#t;#n;#r;#i;#a;#o=0;constructor(e){if(this.chunkIndex=e.chunkIndex,this.#e=e.relevantChannels,this.#t=e.startingAt,this.#n=e.endingAt,this.#r=e.reverse,this.#i=e.readFullMessageIndexRange??!1,this.chunkIndex.messageIndexLength===0n&&(this.chunkIndex.messageStartTime!==0n||this.chunkIndex.messageEndTime!==0n))throw Error(`Encountered a chunk index without message indexes and non-zero start and end times`)}compare(e){if(this.#r!==e.#r)throw Error(`Cannot compare a reversed ChunkCursor to a non-reversed ChunkCursor`);let t=Number(this.#s()-e.#s());return t===0&&(t=Number(this.chunkIndex.chunkStartOffset-e.chunkIndex.chunkStartOffset)),this.#r?-t:t}hasMoreMessages(){if(this.#a==null)throw Error(`loadMessageIndexes() must be called before hasMore()`);return this.#o<this.#a.length}popMessage(){if(this.#a==null)throw Error(`loadMessageIndexes() must be called before popMessage()`);if(this.#o>=this.#a.length)throw Error(`Unexpected popMessage() call when no more messages are available, in chunk at offset ${this.chunkIndex.chunkStartOffset}`);return this.#a[this.#o++]}hasMessageIndexes(){return this.#a!=null}async loadMessageIndexes(e,t){let n=this.#r,r,i,a=this.#i;for(let[e,t]of this.chunkIndex.messageIndexOffsets)(r==null||t<r)&&(r=t),(a||!this.#e||this.#e.has(e))&&(i==null||t<i)&&(i=t);if(r==null||i==null){this.#a=[];return}let o=r+this.chunkIndex.messageIndexLength,s=await e.read(i,o-i,t),c=new rf(new DataView(s.buffer,s.byteOffset,s.byteLength)),l=[],u;for(;u=cf(c,!0);)u.type===`MessageIndex`&&(u.records.length===0||this.#e&&!this.#e.has(u.channelId)||l.push(u.records));if(c.bytesRemaining()!==0)throw Error(`${c.bytesRemaining()} bytes remaining in message index section`);if(this.#a=l.flat().sort(([e,t],[n,r])=>{let i=Number(e-n);return i===0&&(i=Number(t-r)),i}),n&&this.#a.reverse(),this.#a.length===0)return;let[d]=this.#a[0];if(d<this.chunkIndex.messageStartTime)throw Error(`Chunk at offset ${this.chunkIndex.chunkStartOffset} contains a message with logTime (${d}) earlier than chunk messageStartTime (${this.chunkIndex.messageStartTime})`);let[f]=this.#a[this.#a.length-1];if(f>this.chunkIndex.messageEndTime)throw Error(`Chunk at offset ${this.chunkIndex.chunkStartOffset} contains a message with logTime (${f}) later than chunk messageEndTime (${this.chunkIndex.messageEndTime})`);let p=n?this.#n:this.#t,m=n?this.#t:this.#n,h=n?e=>-e:e=>e,g,_;p!=null&&(g=Tf(this.#a,p,h)),m!=null&&(_=Ef(this.#a,m,h)),(g!=null||_!=null)&&(this.#a=this.#a.slice(g,_))}#s(){return this.#a!=null&&this.#a.length>0&&this.#o<this.#a.length?this.#a[this.#o][0]:this.#r?this.chunkIndex.messageEndTime:this.chunkIndex.messageStartTime}},Of=class e{chunkIndexes;attachmentIndexes;metadataIndexes=[];channelsById;schemasById;statistics;summaryOffsetsByOpcode;header;footer;dataEndOffset;dataSectionCrc;#e;#t;#n;#r;#i;#a;#o;constructor(e){this.#e=e.readable,this.chunkIndexes=e.chunkIndexes,this.attachmentIndexes=e.attachmentIndexes,this.metadataIndexes=e.metadataIndexes,this.statistics=e.statistics,this.#n=e.decompressHandlers,this.channelsById=e.channelsById,this.schemasById=e.schemasById,this.summaryOffsetsByOpcode=e.summaryOffsetsByOpcode,this.header=e.header,this.footer=e.footer,this.dataEndOffset=e.dataEndOffset,this.dataSectionCrc=e.dataSectionCrc;let t=e.messageIndexCacheSizeBytes??0;this.#t=t>0?new ef(this.#e,t):this.#e;for(let t of e.chunkIndexes)(this.#r==null||t.messageStartTime<this.#r)&&(this.#r=t.messageStartTime),(this.#i==null||t.messageEndTime>this.#i)&&(this.#i=t.messageEndTime);for(let t of e.attachmentIndexes)(this.#a==null||t.logTime<this.#a)&&(this.#a=t.logTime),(this.#o==null||t.logTime>this.#o)&&(this.#o=t.logTime)}#s(e){return Error(`${e} [library=${this.header.library}]`)}static async Initialize({readable:t,decompressHandlers:n,messageIndexCacheSizeBytes:r,readOptions:i}){let a=await t.size(),o,s;{let e=await t.read(0n,BigInt(af.length+1+8),i),n=new DataView(e.buffer,e.byteOffset,e.byteLength);sf(new rf(n));let r=9n+n.getBigUint64(af.length+1,!0),a=await t.read(BigInt(af.length),r,i);s=BigInt(af.length)+r;let c=new rf(new DataView(a.buffer,a.byteOffset,a.byteLength)),l=cf(c,!0);if(l?.type!==`Header`)throw Error(`Unable to read header at beginning of file; found ${l?.type??`nothing`}`);if(c.bytesRemaining()!==0)throw Error(`${c.bytesRemaining()} bytes remaining after parsing header`);o=l}function c(e){return Error(`${e} [library=${o.library}]`)}let l,u;{let e=BigInt(af.length+1+8+4+4),n=BigInt(29+af.length);if(a<e+n)throw c(`File size (${a}) is too small to be valid MCAP`);l=a-n;let r=await t.read(l,n,i);u=new DataView(r.buffer,r.byteOffset,r.byteLength)}try{sf(new rf(u,u.byteLength-af.length))}catch(e){throw c(e.message)}let d;{let e=new rf(u),t=cf(e,!0);if(t?.type!==`Footer`)throw c(`Unable to read footer from end of file (offset ${l}); found ${t?.type??`nothing`}`);if(e.bytesRemaining()!==af.length)throw c(`${e.bytesRemaining()-af.length} bytes remaining after parsing footer`);d=t}if(d.summaryStart===0n)throw c(`File is not indexed`);let f=new Uint8Array(25);f.set(new Uint8Array(u.buffer,u.byteOffset,f.byteLength));let p=13n,m=d.summaryStart-p;if(m<s)throw c(`Expected DataEnd position (summary start ${d.summaryStart} - ${p} = ${m}) to be after Header end offset (${s})`);let h=await t.read(m,l-m,i);if(d.summaryCrc!==0){let e=Ud();if(e=Wd(e,h.subarray(Number(p))),e=Wd(e,f),e=Gd(e),e!==d.summaryCrc)throw c(`Incorrect summary CRC ${e} (expected ${d.summaryCrc})`)}let g=new rf(new DataView(h.buffer,h.byteOffset,h.byteLength)),_=new Map,v=new Map,y=[],b=[],x=[],S=new Map,C,w,T=!0,E;for(;E=cf(g,!0);){if(T&&E.type!==`DataEnd`)throw c(`Expected DataEnd record to precede summary section, but found ${E.type}`);switch(T=!1,E.type){case`Schema`:v.set(E.id,E);break;case`Channel`:_.set(E.id,E);break;case`ChunkIndex`:y.push(E);break;case`AttachmentIndex`:b.push(E);break;case`MetadataIndex`:x.push(E);break;case`Statistics`:if(C)throw c(`Duplicate Statistics record`);C=E;break;case`SummaryOffset`:S.set(E.groupOpcode,E);break;case`DataEnd`:w=E.dataSectionCrc===0?void 0:E.dataSectionCrc;break;case`Header`:case`Footer`:case`Message`:case`Chunk`:case`MessageIndex`:case`Attachment`:case`Metadata`:throw c(`${E.type} record not allowed in index section`);case`Unknown`:break}}if(g.bytesRemaining()!==0)throw c(`${g.bytesRemaining()} bytes remaining in index section`);return new e({readable:t,chunkIndexes:y,attachmentIndexes:b,metadataIndexes:x,statistics:C,decompressHandlers:n,channelsById:_,schemasById:v,summaryOffsetsByOpcode:S,header:o,footer:d,dataEndOffset:m,dataSectionCrc:w,messageIndexCacheSizeBytes:r})}async*readMessages(e={}){let{topics:t,reverse:n=!1,validateCrcs:r,readOptions:i}=e,{startingAt:a,endingAt:o}=kf(e,this.#r,this.#i);if(a==null||o==null)return;let s;if(t){s=new Set;for(let e of this.channelsById.values())t.includes(e.topic)&&s.add(e.id)}let c=new $d((e,t)=>e.compare(t)),l=!0,u,d=this.#t!==this.#e;for(let e of this.chunkIndexes)e.messageStartTime<=o&&e.messageEndTime>=a&&(c.push(new Df({chunkIndex:e,relevantChannels:s,startingAt:a,endingAt:o,reverse:n,readFullMessageIndexRange:d})),l&&u!=null&&(l=e.messageStartTime>=u),u=e.messageEndTime);let f=new Map,p=new rf(new DataView(new ArrayBuffer(0)));for(let e;e=c.peek();){if(!e.hasMessageIndexes()){await e.loadMessageIndexes(this.#t,i),e.hasMoreMessages()?c.replace(e):c.pop();continue}let t=f.get(e.chunkIndex.chunkStartOffset);t||(t=await this.#c(e.chunkIndex,{validateCrcs:r??!0,readOptions:i}),f.set(e.chunkIndex.chunkStartOffset,t));let[n,a]=e.popMessage();if(a>=BigInt(t.byteLength))throw this.#s(`Message offset beyond chunk bounds (log time ${n}, offset ${a}, chunk data length ${t.byteLength}) in chunk at offset ${e.chunkIndex.chunkStartOffset}`);p.reset(t,Number(a));let o=cf(p,r??!0);if(!o)throw this.#s(`Unable to parse record at offset ${a} in chunk at offset ${e.chunkIndex.chunkStartOffset}`);if(o.type!==`Message`)throw this.#s(`Unexpected record type ${o.type} in message index (time ${n}, offset ${a} in chunk at offset ${e.chunkIndex.chunkStartOffset})`);if(o.logTime!==n)throw this.#s(`Message log time ${o.logTime} did not match message index entry (${n} at offset ${a} in chunk at offset ${e.chunkIndex.chunkStartOffset})`);yield o,e.hasMoreMessages()?l||c.replace(e):(c.pop(),f.delete(e.chunkIndex.chunkStartOffset))}}async*readMetadata(e={}){let{name:t,readOptions:n}=e;for(let e of this.metadataIndexes){if(t!=null&&e.name!==t)continue;let r=await this.#e.read(e.offset,e.length,n),i=cf(new rf(new DataView(r.buffer,r.byteOffset,r.byteLength)),!1);if(i?.type!==`Metadata`)throw this.#s(`Metadata data at offset ${e.offset} does not point to metadata record (found ${String(i?.type)})`);yield i}}async*readAttachments(e={}){let{name:t,mediaType:n,validateCrcs:r,readOptions:i}=e,{startingAt:a,endingAt:o}=kf(e,this.#a,this.#o);if(!(a==null||o==null))for(let e of this.attachmentIndexes){if(t!=null&&e.name!==t||n!=null&&e.mediaType!==n||e.logTime>o||e.logTime<a)continue;let s=await this.#e.read(e.offset,e.length,i),c=cf(new rf(new DataView(s.buffer,s.byteOffset,s.byteLength)),r??!0);if(c?.type!==`Attachment`)throw this.#s(`Attachment data at offset ${e.offset} does not point to attachment record (found ${String(c?.type)})`);yield c}}async#c(e,t){let n=await this.#e.read(e.chunkStartOffset,e.chunkLength,t?.readOptions),r=cf(new rf(new DataView(n.buffer,n.byteOffset,n.byteLength)),t?.validateCrcs??!0);if(r?.type!==`Chunk`)throw this.#s(`Chunk start offset ${e.chunkStartOffset} does not point to chunk record (found ${String(r?.type)})`);let i=r,a=i.records;if(i.compression!==``&&a.byteLength>0){let e=this.#n?.[i.compression];if(!e)throw this.#s(`Unsupported compression ${i.compression}`);a=e(a,i.uncompressedSize)}if(i.uncompressedCrc!==0&&t?.validateCrcs!==!1){let e=Kd(a);if(e!==i.uncompressedCrc)throw this.#s(`Incorrect chunk CRC ${e} (expected ${i.uncompressedCrc})`)}return new DataView(a.buffer,a.byteOffset,a.byteLength)}};function kf(e,t,n){if([e.startTime,e.startingAt,e.startingAfter].filter(e=>e!=null).length>1)throw Error(`Provide at most one of startTime, startingAt, startingAfter`);if([e.endTime,e.endingAt,e.endingBefore].filter(e=>e!=null).length>1)throw Error(`Provide at most one of endTime, endingAt, endingBefore`);let r=e.startingAt??e.startTime;e.startingAfter!=null&&(r=e.startingAfter+1n);let i=e.endingAt??e.endTime;if(e.endingBefore!=null&&(i=e.endingBefore-1n),r!=null&&i!=null&&r>i+1n)throw Error(`end time cannot come before start time`);return{startingAt:r??t,endingAt:i??n}}var Af=class{#e=new ArrayBuffer(af.length*2);#t=new DataView(this.#e,0,0);#n=new rf(this.#t);#r;#i;#a;#o;#s;#c=!1;#l=this.#f();#u=new Map;constructor({includeChunks:e=!1,emitChunks:t=!1,decompressHandlers:n={},validateCrcs:r=!0,noMagicPrefix:i=!1}={}){this.#i=e,this.#a=t,this.#r=n,this.#o=r,this.#s=i}done(){return this.#c}bytesRemaining(){return this.#n.bytesRemaining()}append(e){if(this.#c)throw Error(`Already done reading`);this.#d(e)}#d(e){let t=this.#n.offset,n=this.#t.byteLength-t,r=n+e.byteLength;if(r<=this.#e.byteLength)if(this.#t.byteOffset+this.#t.byteLength+e.byteLength<=this.#e.byteLength)new Uint8Array(this.#e,this.#t.byteOffset).set(e,this.#t.byteLength),this.#t=new DataView(this.#e,this.#t.byteOffset,this.#t.byteLength+e.byteLength),this.#n.reset(this.#t,this.#n.offset);else{let r=new Uint8Array(this.#e,this.#t.byteOffset+t,n),i=new Uint8Array(this.#e);i.set(r,0),i.set(e,r.byteLength),this.#t=new DataView(this.#e,0,r.byteLength+e.byteLength),this.#n.reset(this.#t)}else{this.#e=new ArrayBuffer(r*2);let i=new Uint8Array(this.#e),a=new Uint8Array(this.#t.buffer,this.#t.byteOffset+t,n);i.set(a,0),i.set(e,a.byteLength),this.#t=new DataView(this.#e,0,a.byteLength+e.byteLength),this.#n.reset(this.#t)}}nextRecord(){if(this.#c)return;let e=this.#l.next();if(e.value?.type===`Channel`){let t=this.#u.get(e.value.id);if(this.#u.set(e.value.id,e.value),t&&!jf(t,e.value))throw Error(`Channel record for id ${e.value.id} (topic: ${e.value.topic}) differs from previous channel record of the same id.`)}else if(!this.#a&&e.value?.type===`Message`){let t=e.value.channelId;if(!this.#u.get(t))throw Error(`Encountered message on channel ${t} without prior channel record`)}return e.done===!0&&(this.#c=!0),e.value}*#f(){if(!this.#s){let e;for(;e=sf(this.#n),!e;)yield}let e;function t(t){return Error(`${t} ${e?`[library=${e.library}]`:`[no header]`}`)}for(;;){let n;for(;n=cf(this.#n,this.#o),!n;)yield;switch(n.type){case`Header`:if(e)throw Error(`Duplicate Header record: library=${e.library} profile=${e.profile} vs. library=${n.library} profile=${n.profile}`);e=n,yield n;break;case`Unknown`:case`Schema`:case`Channel`:case`Message`:case`MessageIndex`:case`ChunkIndex`:case`Attachment`:case`AttachmentIndex`:case`Statistics`:case`Metadata`:case`MetadataIndex`:case`SummaryOffset`:case`DataEnd`:yield n;break;case`Chunk`:{if(this.#a){yield n;break}this.#i&&(yield n);let e=n.records;if(n.compression!==``&&e.byteLength>0){let r=this.#r[n.compression];if(!r)throw t(`Unsupported compression ${n.compression}`);e=r(e,n.uncompressedSize)}if(this.#o&&n.uncompressedCrc!==0){let r=Kd(e);if(r!==n.uncompressedCrc)throw t(`Incorrect chunk CRC ${r} (expected ${n.uncompressedCrc})`)}let r=new rf(new DataView(e.buffer,e.byteOffset,e.byteLength)),i;for(;i=cf(r,this.#o);)switch(i.type){case`Header`:case`Footer`:case`Chunk`:case`MessageIndex`:case`ChunkIndex`:case`Attachment`:case`AttachmentIndex`:case`Statistics`:case`Metadata`:case`MetadataIndex`:case`SummaryOffset`:case`DataEnd`:throw t(`${i.type} record not allowed inside a chunk`);case`Unknown`:case`Schema`:case`Channel`:case`Message`:yield i;break}if(r.bytesRemaining()!==0)throw t(`${r.bytesRemaining()} bytes remaining in chunk`);break}case`Footer`:try{let e;for(;e=sf(this.#n),!e;)yield}catch(e){throw t(e.message)}if(this.#n.bytesRemaining()!==0)throw t(`${this.#n.bytesRemaining()} bytes remaining after MCAP footer and trailing magic`);return n}}}};function jf(e,t){if(!(e.id===t.id&&e.messageEncoding===t.messageEncoding&&e.schemaId===t.schemaId&&e.topic===t.topic&&e.metadata.size===t.metadata.size))return!1;for(let[n,r]of e.metadata.entries())if(r!==t.metadata.get(n))return!1;return!0}var Mf=ArrayBuffer,G=Uint8Array,Nf=Uint16Array,Pf=Int16Array,Ff=Int32Array,If=function(e,t,n){if(G.prototype.slice)return G.prototype.slice.call(e,t,n);(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new G(n-t);return r.set(e.subarray(t,n)),r},Lf=function(e,t,n,r){if(G.prototype.fill)return G.prototype.fill.call(e,t,n,r);for((n==null||n<0)&&(n=0),(r==null||r>e.length)&&(r=e.length);n<r;++n)e[n]=t;return e},Rf=function(e,t,n,r){if(G.prototype.copyWithin)return G.prototype.copyWithin.call(e,t,n,r);for((n==null||n<0)&&(n=0),(r==null||r>e.length)&&(r=e.length);n<r;)e[t++]=e[n++]},zf=[`invalid zstd data`,`window size too large (>2046MB)`,`invalid block type`,`FSE accuracy too high`,`match distance too far back`,`unexpected EOF`],K=function(e,t,n){var r=Error(t||zf[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,K),!n)throw r;return r},Bf=function(e,t,n){for(var r=0,i=0;r<n;++r)i|=e[t++]<<(r<<3);return i},Vf=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Hf=function(e,t){var n=e[0]|e[1]<<8|e[2]<<16;if(n==3126568&&e[3]==253){var r=e[4],i=r>>5&1,a=r>>2&1,o=r&3,s=r>>6;r&8&&K(0);var c=6-i,l=o==3?4:o,u=Bf(e,c,l);c+=l;var d=s?1<<s:i,f=Bf(e,c,d)+(s==1&&256),p=f;if(!i){var m=1<<10+(e[5]>>3);p=m+(m>>3)*(e[5]&7)}p>2145386496&&K(1);var h=new G((t==1?f||p:t?0:p)+12);return h[0]=1,h[4]=4,h[8]=8,{b:c+d,y:0,l:0,d:u,w:t&&t!=1?t:h.subarray(12),e:p,o:new Ff(h.buffer,0,3),u:f,c:a,m:Math.min(131072,p)}}else if((n>>4|e[3]<<20)==25481893)return Vf(e,4)+8;K(0)},Uf=function(e){for(var t=0;1<<t<=e;++t);return t-1},Wf=function(e,t,n){var r=(t<<3)+4,i=(e[t]&15)+5;i>n&&K(3);for(var a=1<<i,o=a,s=-1,c=-1,l=-1,u=a,d=new Mf(512+(a<<2)),f=new Pf(d,0,256),p=new Nf(d,0,256),m=new Nf(d,512,a),h=512+(a<<1),g=new G(d,h,a),_=new G(d,h+a);s<255&&o>0;){var v=Uf(o+1),y=r>>3,b=(1<<v+1)-1,x=(e[y]|e[y+1]<<8|e[y+2]<<16)>>(r&7)&b,S=(1<<v)-1,C=b-o-1,w=x&S;if(w<C?(r+=v,x=w):(r+=v+1,x>S&&(x-=C)),f[++s]=--x,x==-1?(o+=x,g[--u]=s):o-=x,!x)do{var T=r>>3;c=(e[T]|e[T+1]<<8)>>(r&7)&3,r+=2,s+=c}while(c==3)}(s>255||o)&&K(0);for(var E=0,D=(a>>1)+(a>>3)+3,O=a-1,k=0;k<=s;++k){var A=f[k];if(A<1){p[k]=-A;continue}for(l=0;l<A;++l){g[E]=k;do E=E+D&O;while(E>=u)}}for(E&&K(0),l=0;l<a;++l){var j=p[g[l]]++;m[l]=(j<<(_[l]=i-Uf(j)))-a}return[r+7>>3,{b:i,s:g,n:_,t:m}]},Gf=function(e,t){var n=0,r=-1,i=new G(292),a=e[t],o=i.subarray(0,256),s=i.subarray(256,268),c=new Nf(i.buffer,268);if(a<128){var l=Wf(e,t+1,6),u=l[0],d=l[1];t+=a;var f=u<<3,p=e[t];p||K(0);for(var m=0,h=0,g=d.b,_=g,v=(++t<<3)-8+Uf(p);v-=g,!(v<f);){var y=v>>3;if(m+=(e[y]|e[y+1]<<8)>>(v&7)&(1<<g)-1,o[++r]=d.s[m],v-=_,v<f)break;y=v>>3,h+=(e[y]|e[y+1]<<8)>>(v&7)&(1<<_)-1,o[++r]=d.s[h],g=d.n[m],m=d.t[m],_=d.n[h],h=d.t[h]}++r>255&&K(0)}else{for(r=a-127;n<r;n+=2){var b=e[++t];o[n]=b>>4,o[n+1]=b&15}++t}var x=0;for(n=0;n<r;++n){var S=o[n];S>11&&K(0),x+=S&&1<<S-1}var C=Uf(x)+1,w=1<<C,T=w-x;for(T&T-1&&K(0),o[r++]=Uf(T)+1,n=0;n<r;++n){var S=o[n];++s[o[n]=S&&C+1-S]}var E=new G(w<<1),D=E.subarray(0,w),O=E.subarray(w);for(c[C]=0,n=C;n>0;--n){var k=c[n];Lf(O,n,k,c[n-1]=k+s[n]*(1<<C-n))}for(c[0]!=w&&K(0),n=0;n<r;++n){var A=o[n];if(A){var j=c[A];Lf(D,n,j,c[A]=j+(1<<C-A))}}return[t,{n:O,b:C,s:D}]},Kf=Wf(new G([81,16,99,140,49,198,24,99,12,33,196,24,99,102,102,134,70,146,4]),0,6)[1],qf=Wf(new G([33,20,196,24,99,140,33,132,16,66,8,33,132,16,66,8,33,68,68,68,68,68,68,68,68,36,9]),0,6)[1],Jf=Wf(new G([32,132,16,66,102,70,68,68,68,68,36,73,2]),0,5)[1],Yf=function(e,t){for(var n=e.length,r=new Ff(n),i=0;i<n;++i)r[i]=t,t+=1<<e[i];return r},Xf=new G(new Ff([0,0,0,0,16843009,50528770,134678020,202050057,269422093]).buffer,0,36),Zf=Yf(Xf,0),Qf=new G(new Ff([0,0,0,0,0,0,0,0,16843009,50528770,117769220,185207048,252579084,16]).buffer,0,53),$f=Yf(Qf,3),ep=function(e,t,n){var r=e.length,i=t.length,a=e[r-1],o=(1<<n.b)-1,s=-n.b;a||K(0);for(var c=0,l=n.b,u=(r<<3)-8+Uf(a)-l,d=-1;u>s&&d<i;){var f=u>>3,p=(e[f]|e[f+1]<<8|e[f+2]<<16)>>(u&7);c=(c<<l|p)&o,t[++d]=n.s[c],u-=l=n.n[c]}(u!=s||d+1!=i)&&K(0)},tp=function(e,t,n){var r=6,i=t.length+3>>2,a=i<<1,o=i+a;ep(e.subarray(r,r+=e[0]|e[1]<<8),t.subarray(0,i),n),ep(e.subarray(r,r+=e[2]|e[3]<<8),t.subarray(i,a),n),ep(e.subarray(r,r+=e[4]|e[5]<<8),t.subarray(a,o),n),ep(e.subarray(r),t.subarray(o),n)},np=function(e,t,n){var r,i=t.b,a=e[i],o=a>>1&3;t.l=a&1;var s=a>>3|e[i+1]<<5|e[i+2]<<13,c=(i+=3)+s;if(o==1)return i>=e.length?void 0:(t.b=i+1,n?(Lf(n,e[i],t.y,t.y+=s),n):Lf(new G(s),e[i]));if(!(c>e.length)){if(o==0)return t.b=c,n?(n.set(e.subarray(i,c),t.y),t.y+=s,n):If(e,i,c);if(o==2){var l=e[i],u=l&3,d=l>>2&3,f=l>>4,p=0,m=0;u<2?d&1?f|=e[++i]<<4|(d&2&&e[++i]<<12):f=l>>3:(m=d,d<2?(f|=(e[++i]&63)<<4,p=e[i]>>6|e[++i]<<2):d==2?(f|=e[++i]<<4|(e[++i]&3)<<12,p=e[i]>>2|e[++i]<<6):(f|=e[++i]<<4|(e[++i]&63)<<12,p=e[i]>>6|e[++i]<<2|e[++i]<<10)),++i;var h=n?n.subarray(t.y,t.y+t.m):new G(t.m),g=h.length-f;if(u==0)h.set(e.subarray(i,i+=f),g);else if(u==1)Lf(h,e[i++],g);else{var _=t.h;if(u==2){var v=Gf(e,i);p+=i-(i=v[0]),t.h=_=v[1]}else _||K(0);(m?tp:ep)(e.subarray(i,i+=p),h.subarray(g),_)}var y=e[i++];if(y){y==255?y=(e[i++]|e[i++]<<8)+32512:y>127&&(y=y-128<<8|e[i++]);var b=e[i++];b&3&&K(0);for(var x=[qf,Jf,Kf],S=2;S>-1;--S){var C=b>>(S<<1)+2&3;if(C==1){var w=new G([0,0,e[i++]]);x[S]={s:w.subarray(2,3),n:w.subarray(0,1),t:new Nf(w.buffer,0,1),b:0}}else C==2?(r=Wf(e,i,9-(S&1)),i=r[0],x[S]=r[1]):C==3&&(t.t||K(0),x[S]=t.t[S])}var T=t.t=x,E=T[0],D=T[1],O=T[2],k=e[c-1];k||K(0);var A=(c<<3)-8+Uf(k)-O.b,j=A>>3,M=0,N=(e[j]|e[j+1]<<8)>>(A&7)&(1<<O.b)-1;j=(A-=D.b)>>3;var ee=(e[j]|e[j+1]<<8)>>(A&7)&(1<<D.b)-1;j=(A-=E.b)>>3;var te=(e[j]|e[j+1]<<8)>>(A&7)&(1<<E.b)-1;for(++y;--y;){var ne=O.s[N],re=O.n[N],ie=E.s[te],ae=E.n[te],oe=D.s[ee],se=D.n[ee];j=(A-=oe)>>3;var ce=1<<oe,le=ce+((e[j]|e[j+1]<<8|e[j+2]<<16|e[j+3]<<24)>>>(A&7)&ce-1);j=(A-=Qf[ie])>>3;var ue=$f[ie]+((e[j]|e[j+1]<<8|e[j+2]<<16)>>(A&7)&(1<<Qf[ie])-1);j=(A-=Xf[ne])>>3;var de=Zf[ne]+((e[j]|e[j+1]<<8|e[j+2]<<16)>>(A&7)&(1<<Xf[ne])-1);if(j=(A-=re)>>3,N=O.t[N]+((e[j]|e[j+1]<<8)>>(A&7)&(1<<re)-1),j=(A-=ae)>>3,te=E.t[te]+((e[j]|e[j+1]<<8)>>(A&7)&(1<<ae)-1),j=(A-=se)>>3,ee=D.t[ee]+((e[j]|e[j+1]<<8)>>(A&7)&(1<<se)-1),le>3)t.o[2]=t.o[1],t.o[1]=t.o[0],t.o[0]=le-=3;else{var fe=le-(de!=0);fe?(le=fe==3?t.o[0]-1:t.o[fe],fe>1&&(t.o[2]=t.o[1]),t.o[1]=t.o[0],t.o[0]=le):le=t.o[0]}for(var S=0;S<de;++S)h[M+S]=h[g+S];M+=de,g+=de;var pe=M-le;if(pe<0){var me=-pe,he=t.e+pe;me>ue&&(me=ue);for(var S=0;S<me;++S)h[M+S]=t.w[he+S];M+=me,ue-=me,pe=0}for(var S=0;S<ue;++S)h[M+S]=h[pe+S];M+=ue}if(M!=g)for(;g<h.length;)h[M++]=h[g++];else M=h.length;n?t.y+=M:h=If(h,0,M)}else if(n){if(t.y+=f,g)for(var S=0;S<f;++S)h[S]=h[g+S]}else g&&(h=If(h,g));return t.b=c,h}K(2)}},rp=function(e,t){if(e.length==1)return e[0];for(var n=new G(t),r=0,i=0;r<e.length;++r){var a=e[r];n.set(a,i),i+=a.length}return n};function ip(e,t){for(var n=[],r=+!t,i=0,a=0;e.length;){var o=Hf(e,r||t);if(typeof o==`object`){for(r?(t=null,o.w.length==o.u&&(n.push(t=o.w),a+=o.u)):(n.push(t),o.e=0);!o.l;){var s=np(e,o,t);s||K(5),t?o.e=o.y:(n.push(s),a+=s.length,Rf(o.w,0,s.length),o.w.set(s,o.w.length-s.length))}i=o.b+o.c*4}else i=o;e=e.subarray(i)}return rp(n,a)}var ap=Ee(((e,t)=>{(()=>{var e={91:((e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.buildRos2Type=w;let n=String.raw`(?<type>[a-zA-Z0-9_/]+)`,r=String.raw`(?:<=(?<stringBound>\d+))`,i=String.raw`(?:(?<unboundedArray>\[\])|\[(?<arrayLength>\d+)\]|\[<=(?<arrayBound>\d+)\])`,a=String.raw`(?<name>[a-zA-Z0-9_]+)`,o=String.raw`'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"`,s=String.raw`(?:${o}|(?:\\.|[^\s'"#\\])(?:\\.|[^#\\])*)`,c=String.raw`(?:${o}|(?:\\.|[^\s'"\],#\\])(?:\\.|[^\],#\\])*)`,l=String.raw`\s*=\s*(?<constantValue>${s}?)`,u=String.raw`\[(?:${c},)*${c}?\]`,d=String.raw`(?<defaultValue>${u}|${s})`,f=String.raw`(?:#.*)`,p=new RegExp(String.raw`^${n}${r}?${i}?\s+${a}(?:${l}|\s+${d})?\s*${f}?$`),m=String.raw`\\(?<char>['"abfnrtv\\])|\\(?<oct>[0-7]{1,3})|\\x(?<hex2>[a-fA-F0-9]{2})|\\u(?<hex4>[a-fA-F0-9]{4})|\\U(?<hex8>[a-fA-F0-9]{8})`,h=[`bool`,`byte`,`char`,`float32`,`float64`,`int8`,`uint8`,`int16`,`uint16`,`int32`,`uint32`,`int64`,`uint64`,`string`,`wstring`,`time`,`duration`,`builtin_interfaces/Time`,`builtin_interfaces/Duration`,`builtin_interfaces/msg/Time`,`builtin_interfaces/msg/Duration`];function g(e,t,n){let r=BigInt(e);if(r<t||r>n)throw Error(`Number ${e} out of range [${t}, ${n}]`);return r}function _(e,t,n){let r=parseInt(e);if(Number.isNaN(r))throw Error(`Invalid numeric literal: ${e}`);if(r<t||r>n)throw Error(`Number ${e} out of range [${t}, ${n}]`);return r}let v=new RegExp(c,`y`),y=/\s*(,)\s*|\s*$/y;function b(e,t){if(!t.startsWith(`[`)||!t.endsWith(`]`))throw Error(`Array must start with [ and end with ]`);let n=t.substring(1,t.length-1);if(e===`string`||e===`wstring`){let e=[],t=0;for(;t<n.length;){if(n[t]===`,`)throw Error(`Expected array element before comma`);v.lastIndex=t;let r=v.exec(n);if(r&&(e.push(x(r[0])),t=v.lastIndex),y.lastIndex=t,r=y.exec(n),!r)throw Error(`Expected comma or end of array`);if(!r[1])break;t=y.lastIndex}return e}return n.split(`,`).map(t=>S(e,t.trim()))}function x(e){let t=``,n=e;for(let r of[`'`,`"`])if(e.startsWith(r)){if(!e.endsWith(r))throw Error(`Expected terminating ${r} in string literal: ${e}`);t=r,n=e.substring(r.length,e.length-r.length);break}if(!new RegExp(String.raw`^(?:[^\\${t}]|${m})*$`).test(n)==null)throw Error(`Invalid string literal: ${n}`);return n.replace(new RegExp(m,`g`),(...e)=>{let{char:t,oct:n,hex2:r,hex4:i,hex8:a}=e[e.length-1],o=r??i??a;if(t!=null)return{"'":`'`,'"':`"`,a:`\x07`,b:`\b`,f:`\f`,n:`
|
|
41
|
-
`,r:`\r`,t:` `,v:`\v`,"\\":`\\`}[t];if(n!=null)return String.fromCodePoint(parseInt(n,8));if(o!=null)return String.fromCodePoint(parseInt(o,16));throw Error(`Expected exactly one matched group`)})}function S(e,t){switch(e){case`bool`:if([`true`,`True`,`1`].includes(t))return!0;if([`false`,`False`,`0`].includes(t))return!1;break;case`float32`:case`float64`:{let e=parseFloat(t);if(!Number.isNaN(e))return e;break}case`int8`:return _(t,-128,127);case`uint8`:return _(t,0,255);case`int16`:return _(t,-32768,32767);case`uint16`:return _(t,0,65535);case`int32`:return _(t,-2147483648,2147483647);case`uint32`:return _(t,0,4294967295);case`int64`:return g(t,-9223372036854775808n,9223372036854775807n);case`uint64`:return g(t,0n,18446744073709551615n);case`string`:case`wstring`:return x(t)}throw Error(`Invalid literal of type ${e}: ${t}`)}function C(e){switch(e){case`char`:return`uint8`;case`byte`:return`uint8`;case`builtin_interfaces/Time`:case`builtin_interfaces/msg/Time`:return`time`;case`builtin_interfaces/Duration`:case`builtin_interfaces/msg/Duration`:return`duration`}return e}function w(e){let t=[],n;for(let{line:r}of e){let e;if(!r.startsWith(`#`))if(e=/^MSG: ([^ ]+)\s*(?:#.+)?$/.exec(r)){n=e[1];continue}else if(e=p.exec(r)){let{type:n,stringBound:r,unboundedArray:i,arrayLength:a,arrayBound:o,name:s,constantValue:c,defaultValue:l}=e.groups,u=C(n);if(r!=null&&u!==`string`&&u!==`wstring`)throw Error(`Invalid string bound for type ${u}`);if(c!=null){if(!/^[A-Z](?:_?[A-Z0-9]+)*$/.test(s))throw Error(`Invalid constant name: ${s}`)}else if(!/^[a-z](?:_?[a-z0-9]+)*$/.test(s))throw Error(`Invalid field name: ${s}`);let d=!h.includes(u),f=i!=null||a!=null||o!=null;t.push({name:s,type:u,isComplex:c==null?d:d||void 0,isConstant:c!=null||void 0,isArray:c==null?f:f||void 0,arrayLength:a==null?void 0:parseInt(a),arrayUpperBound:o==null?void 0:parseInt(o),upperBound:r==null?void 0:parseInt(r),defaultValue:l==null?void 0:f?b(u,l.trim()):S(u,l.trim()),value:c==null?void 0:S(u,c.trim()),valueText:c?.trim()})}else throw Error(`Could not parse line: '${r}'`)}return{name:n,definitions:t}}}),155:(function(e,t,n){var r=this&&this.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=this&&this.__exportStar||function(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,`__esModule`,{value:!0}),i(n(498),t),i(n(900),t)}),425:((e,t,n)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.md5=a;let r=n(479),i=new Set([`int8`,`uint8`,`int16`,`uint16`,`int32`,`uint32`,`int64`,`uint64`,`float32`,`float64`,`string`,`bool`,`char`,`byte`,`time`,`duration`]);function a(e){if(e.length===0)throw Error(`Cannot produce md5sum for empty msgDefs`);let t=new Map;for(let n of e)n.name!=null&&t.set(n.name,n);let n=e[0];return o(n,t)}function o(e,t){let n=``,i=e.definitions.filter(({isConstant:e})=>e),a=e.definitions.filter(({isConstant:e})=>e==null||!e);for(let e of i)n+=`${e.type} ${e.name}=${e.valueText??String(e.value)}\n`;for(let e of a)if(s(e.type)){let t=e.arrayLength==null?``:String(e.arrayLength),r=e.isArray===!0?`[${t}]`:``;n+=`${e.type}${r} ${e.name}\n`}else{let r=t.get(e.type);if(r==null)throw Error(`Missing definition for submessage type "${e.type}"`);let i=o(r,t);n+=`${i} ${e.name}\n`}return n=n.trimEnd(),r.Md5.init(n)}function s(e){return i.has(e)}}),479:((e,t,n)=>{n.r(t),n.d(t,{Md5:()=>r});var r=function(){function e(){}return e.AddUnsigned=function(e,t){var n,r,i=e&2147483648,a=t&2147483648,o;return n=e&1073741824,r=t&1073741824,o=(e&1073741823)+(t&1073741823),n&r?o^2147483648^i^a:n|r?o&1073741824?o^3221225472^i^a:o^1073741824^i^a:o^i^a},e.FF=function(e,t,n,r,i,a,o){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.F(t,n,r),i),o)),this.AddUnsigned(this.RotateLeft(e,a),t)},e.GG=function(e,t,n,r,i,a,o){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.G(t,n,r),i),o)),this.AddUnsigned(this.RotateLeft(e,a),t)},e.HH=function(e,t,n,r,i,a,o){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.H(t,n,r),i),o)),this.AddUnsigned(this.RotateLeft(e,a),t)},e.II=function(e,t,n,r,i,a,o){return e=this.AddUnsigned(e,this.AddUnsigned(this.AddUnsigned(this.I(t,n,r),i),o)),this.AddUnsigned(this.RotateLeft(e,a),t)},e.ConvertToWordArray=function(e){for(var t,n=e.length,r=n+8,i=((r-r%64)/64+1)*16,a=Array(i-1),o=0,s=0;s<n;)t=(s-s%4)/4,o=s%4*8,a[t]=a[t]|e.charCodeAt(s)<<o,s++;return t=(s-s%4)/4,o=s%4*8,a[t]=a[t]|128<<o,a[i-2]=n<<3,a[i-1]=n>>>29,a},e.WordToHex=function(e){var t=``,n=``,r,i;for(i=0;i<=3;i++)r=e>>>i*8&255,n=`0`+r.toString(16),t+=n.substr(n.length-2,2);return t},e.Utf8Encode=function(e){var t=``,n;e=e.replace(/\r\n/g,`
|
|
42
|
-
`);for(var r=0;r<e.length;r++)n=e.charCodeAt(r),n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(n&63|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(n&63|128));return t},e.init=function(e){var t;for(typeof e!=`string`&&(e=JSON.stringify(e)),this._string=this.Utf8Encode(e),this.x=this.ConvertToWordArray(this._string),this.a=1732584193,this.b=4023233417,this.c=2562383102,this.d=271733878,this.k=0;this.k<this.x.length;this.k+=16)this.AA=this.a,this.BB=this.b,this.CC=this.c,this.DD=this.d,this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k],this.S11,3614090360),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+1],this.S12,3905402710),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S13,606105819),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+3],this.S14,3250441966),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S11,4118548399),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+5],this.S12,1200080426),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S13,2821735955),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+7],this.S14,4249261313),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S11,1770035416),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+9],this.S12,2336552879),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S13,4294925233),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+11],this.S14,2304563134),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S11,1804603682),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+13],this.S12,4254626195),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S13,2792965006),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+15],this.S14,1236535329),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S21,4129170786),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+6],this.S22,3225465664),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S23,643717713),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k],this.S24,3921069994),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S21,3593408605),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+10],this.S22,38016083),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S23,3634488961),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+4],this.S24,3889429448),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S21,568446438),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+14],this.S22,3275163606),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S23,4107603335),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+8],this.S24,1163531501),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S21,2850285829),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+2],this.S22,4243563512),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S23,1735328473),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+12],this.S24,2368359562),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S31,4294588738),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+8],this.S32,2272392833),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S33,1839030562),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+14],this.S34,4259657740),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S31,2763975236),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+4],this.S32,1272893353),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S33,4139469664),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+10],this.S34,3200236656),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S31,681279174),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k],this.S32,3936430074),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S33,3572445317),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+6],this.S34,76029189),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S31,3654602809),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+12],this.S32,3873151461),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S33,530742520),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+2],this.S34,3299628645),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k],this.S41,4096336452),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+7],this.S42,1126891415),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S43,2878612391),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+5],this.S44,4237533241),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S41,1700485571),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+3],this.S42,2399980690),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S43,4293915773),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+1],this.S44,2240044497),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S41,1873313359),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+15],this.S42,4264355552),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S43,2734768916),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+13],this.S44,1309151649),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S41,4149444226),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+11],this.S42,3174756917),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S43,718787259),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+9],this.S44,3951481745),this.a=this.AddUnsigned(this.a,this.AA),this.b=this.AddUnsigned(this.b,this.BB),this.c=this.AddUnsigned(this.c,this.CC),this.d=this.AddUnsigned(this.d,this.DD);return t=this.WordToHex(this.a)+this.WordToHex(this.b)+this.WordToHex(this.c)+this.WordToHex(this.d),t.toLowerCase()},e.x=[],e.S11=7,e.S12=12,e.S13=17,e.S14=22,e.S21=5,e.S22=9,e.S23=14,e.S24=20,e.S31=4,e.S32=11,e.S33=16,e.S34=23,e.S41=6,e.S42=10,e.S43=15,e.S44=21,e.RotateLeft=function(e,t){return e<<t|e>>>32-t},e.F=function(e,t,n){return e&t|~e&n},e.G=function(e,t,n){return e&n|t&~n},e.H=function(e,t,n){return e^t^n},e.I=function(e,t,n){return t^(e|~n)},e}()}),498:((e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0})}),662:(function(e){(function(t,n){e.exports?e.exports=n():t.nearley=n()})(this,function(){function e(t,n,r){return this.id=++e.highestId,this.name=t,this.symbols=n,this.postprocess=r,this}e.highestId=0,e.prototype.toString=function(e){var t=e===void 0?this.symbols.map(s).join(` `):this.symbols.slice(0,e).map(s).join(` `)+` ● `+this.symbols.slice(e).map(s).join(` `);return this.name+` → `+t};function t(e,t,n,r){this.rule=e,this.dot=t,this.reference=n,this.data=[],this.wantedBy=r,this.isComplete=this.dot===e.symbols.length}t.prototype.toString=function(){return`{`+this.rule.toString(this.dot)+`}, from: `+(this.reference||0)},t.prototype.nextState=function(e){var n=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return n.left=this,n.right=e,n.isComplete&&(n.data=n.build(),n.right=void 0),n},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,a.fail))};function n(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}n.prototype.process=function(e){for(var t=this.states,n=this.wants,r=this.completed,i=0;i<t.length;i++){var o=t[i];if(o.isComplete){if(o.finish(),o.data!==a.fail){for(var s=o.wantedBy,c=s.length;c--;){var l=s[c];this.complete(l,o)}if(o.reference===this.index){var u=o.rule.name;(this.completed[u]=this.completed[u]||[]).push(o)}}}else{var u=o.rule.symbols[o.dot];if(typeof u!=`string`){this.scannable.push(o);continue}if(n[u]){if(n[u].push(o),r.hasOwnProperty(u))for(var d=r[u],c=0;c<d.length;c++){var f=d[c];this.complete(o,f)}}else n[u]=[o],this.predict(u)}}},n.prototype.predict=function(e){for(var n=this.grammar.byName[e]||[],r=0;r<n.length;r++){var i=n[r],a=this.wants[e],o=new t(i,0,this.index,a);this.states.push(o)}},n.prototype.complete=function(e,t){var n=e.nextState(t);this.states.push(n)};function r(e,t){this.rules=e,this.start=t||this.rules[0].name;var n=this.byName={};this.rules.forEach(function(e){n.hasOwnProperty(e.name)||(n[e.name]=[]),n[e.name].push(e)})}r.fromCompiled=function(t,n){var i=t.Lexer;t.ParserStart&&(n=t.ParserStart,t=t.ParserRules);var t=t.map(function(t){return new e(t.name,t.symbols,t.postprocess)}),a=new r(t,n);return a.lexer=i,a};function i(){this.reset(``)}i.prototype.reset=function(e,t){this.buffer=e,this.index=0,this.line=t?t.line:1,this.lastLineBreak=t?-t.col:0},i.prototype.next=function(){if(this.index<this.buffer.length){var e=this.buffer[this.index++];return e===`
|
|
43
|
-
`&&(this.line+=1,this.lastLineBreak=this.index),{value:e}}},i.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},i.prototype.formatError=function(e,t){var n=this.buffer;if(typeof n==`string`){var r=n.split(`
|
|
44
|
-
`).slice(Math.max(0,this.line-5),this.line),i=n.indexOf(`
|
|
45
|
-
`,this.index);i===-1&&(i=n.length);var a=this.index-this.lastLineBreak,o=String(this.line).length;return t+=` at line `+this.line+` col `+a+`:
|
|
46
|
-
|
|
47
|
-
`,t+=r.map(function(e,t){return s(this.line-r.length+t+1,o)+` `+e},this).join(`
|
|
48
|
-
`),t+=`
|
|
49
|
-
`+s(``,o+a)+`^
|
|
50
|
-
`,t}else return t+` at index `+(this.index-1);function s(e,t){var n=String(e);return Array(t-n.length+1).join(` `)+n}};function a(e,t,a){if(e instanceof r)var o=e,a=t;else var o=r.fromCompiled(e,t);for(var s in this.grammar=o,this.options={keepHistory:!1,lexer:o.lexer||new i},a||{})this.options[s]=a[s];this.lexer=this.options.lexer,this.lexerState=void 0;var c=new n(o,0);this.table=[c],c.wants[o.start]=[],c.predict(o.start),c.process(),this.current=0}a.fail={},a.prototype.feed=function(e){var t=this.lexer;t.reset(e,this.lexerState);for(var r;;){try{if(r=t.next(),!r)break}catch(e){var a=new n(this.grammar,this.current+1);this.table.push(a);var o=Error(this.reportLexerError(e));throw o.offset=this.current,o.token=e.token,o}var s=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var c=this.current+1,a=new n(this.grammar,c);this.table.push(a);for(var l=r.text===void 0?r.value:r.text,u=t.constructor===i?r.value:r,d=s.scannable,f=d.length;f--;){var p=d[f],m=p.rule.symbols[p.dot];if(m.test?m.test(u):m.type?m.type===r.type:m.literal===l){var h=p.nextState({data:u,token:r,isToken:!0,reference:c-1});a.states.push(h)}}if(a.process(),a.states.length===0){var o=Error(this.reportError(r));throw o.offset=this.current,o.token=r,o}this.options.keepHistory&&(s.lexerState=t.save()),this.current++}return s&&(this.lexerState=t.save()),this.results=this.finish(),this},a.prototype.reportLexerError=function(e){var t,n,r=e.token;return r?(t=`input `+JSON.stringify(r.text[0])+` (lexer error)`,n=this.lexer.formatError(r,`Syntax error`)):(t=`input (lexer error)`,n=e.message),this.reportErrorCommon(n,t)},a.prototype.reportError=function(e){var t=(e.type?e.type+` token: `:``)+JSON.stringify(e.value===void 0?e:e.value),n=this.lexer.formatError(e,`Syntax error`);return this.reportErrorCommon(n,t)},a.prototype.reportErrorCommon=function(e,t){var n=[];n.push(e);var r=this.table.length-2,i=this.table[r],a=i.states.filter(function(e){var t=e.rule.symbols[e.dot];return t&&typeof t!=`string`});return a.length===0?(n.push(`Unexpected `+t+`. I did not expect any more input. Here is the state of my parse table:
|
|
51
|
-
`),this.displayStateStack(i.states,n)):(n.push(`Unexpected `+t+`. Instead, I was expecting to see one of the following:
|
|
52
|
-
`),a.map(function(e){return this.buildFirstStateStack(e,[])||[e]},this).forEach(function(e){var t=e[0],r=t.rule.symbols[t.dot],i=this.getSymbolDisplay(r);n.push(`A `+i+` based on:`),this.displayStateStack(e,n)},this)),n.push(``),n.join(`
|
|
53
|
-
`)},a.prototype.displayStateStack=function(e,t){for(var n,r=0,i=0;i<e.length;i++){var a=e[i],o=a.rule.toString(a.dot);o===n?r++:(r>0&&t.push(` ^ `+r+` more lines identical to this`),r=0,t.push(` `+o)),n=o}},a.prototype.getSymbolDisplay=function(e){return o(e)},a.prototype.buildFirstStateStack=function(e,t){if(t.indexOf(e)!==-1)return null;if(e.wantedBy.length===0)return[e];var n=e.wantedBy[0],r=[e].concat(t),i=this.buildFirstStateStack(n,r);return i===null?null:[e].concat(i)},a.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},a.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},a.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},a.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(n){n.rule.name===t&&n.dot===n.rule.symbols.length&&n.reference===0&&n.data!==a.fail&&e.push(n)}),e.map(function(e){return e.data})};function o(e){var t=typeof e;if(t===`string`)return e;if(t===`object`){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return`character matching `+e;if(e.type)return e.type+` token`;if(e.test)return`token matching `+String(e.test);throw Error(`Unknown symbol type: `+e)}}function s(e){var t=typeof e;if(t===`string`)return e;if(t===`object`){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return`%`+e.type;if(e.test)return`<`+String(e.test)+`>`;throw Error(`Unknown symbol type: `+e)}}return{Parser:a,Grammar:r,Rule:e}})}),666:((e,t,n)=>{(function(){function t(e){return e[0]}let r=n(694).compile({space:{match:/\s+/,lineBreaks:!0},number:/-?(?:[0-9]|[1-9][0-9]+)(?:\.[0-9]+)?(?:[eE][-+]?[0-9]+)?\b/,comment:/#[^\n]*/,"[":`[`,"]":`]`,assignment:/=[^\n]*/,fieldOrType:/[a-zA-Z_][a-zA-Z0-9_]*(?:\/[a-zA-Z][a-zA-Z0-9_]*)?/});function i(e){return e.reduce((e,t)=>({...e,...t}),{})}var a={Lexer:r,ParserRules:[{name:`main$ebnf$1`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$1`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`boolType`,`arrayType`,`__`,`field`,`_`,`main$ebnf$1`,`simple`],postprocess:function(e){return i(e)}},{name:`main$ebnf$2`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$2`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`bigintType`,`arrayType`,`__`,`field`,`_`,`main$ebnf$2`,`simple`],postprocess:function(e){return i(e)}},{name:`main$ebnf$3`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$3`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`numericType`,`arrayType`,`__`,`field`,`_`,`main$ebnf$3`,`simple`],postprocess:function(e){return i(e)}},{name:`main$ebnf$4`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$4`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`stringType`,`arrayType`,`__`,`field`,`_`,`main$ebnf$4`,`simple`],postprocess:function(e){return i(e)}},{name:`main$ebnf$5`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$5`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`timeType`,`arrayType`,`__`,`field`,`_`,`main$ebnf$5`,`simple`],postprocess:function(e){return i(e)}},{name:`main$ebnf$6`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$6`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`customType`,`arrayType`,`__`,`field`,`_`,`main$ebnf$6`,`complex`],postprocess:function(e){return i(e)}},{name:`main$ebnf$7`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$7`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`boolType`,`__`,`constantField`,`_`,`boolConstantValue`,`_`,`main$ebnf$7`],postprocess:function(e){return i(e)}},{name:`main$ebnf$8`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$8`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`bigintType`,`__`,`constantField`,`_`,`bigintConstantValue`,`_`,`main$ebnf$8`],postprocess:function(e){return i(e)}},{name:`main$ebnf$9`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$9`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`numericType`,`__`,`constantField`,`_`,`numericConstantValue`,`_`,`main$ebnf$9`],postprocess:function(e){return i(e)}},{name:`main$ebnf$10`,symbols:[`comment`],postprocess:t},{name:`main$ebnf$10`,symbols:[],postprocess:function(e){return null}},{name:`main`,symbols:[`_`,`stringType`,`__`,`constantField`,`_`,`stringConstantValue`,`_`,`main$ebnf$10`],postprocess:function(e){return i(e)}},{name:`main`,symbols:[`comment`],postprocess:function(e){return null}},{name:`main`,symbols:[`blankLine`],postprocess:function(e){return null}},{name:`boolType`,symbols:[{literal:`bool`}],postprocess:function(e){return{type:e[0].value}}},{name:`bigintType$subexpression$1`,symbols:[{literal:`int64`}]},{name:`bigintType$subexpression$1`,symbols:[{literal:`uint64`}]},{name:`bigintType`,symbols:[`bigintType$subexpression$1`],postprocess:function(e){return{type:e[0][0].value}}},{name:`numericType$subexpression$1`,symbols:[{literal:`byte`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`char`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`float32`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`float64`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`int8`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`uint8`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`int16`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`uint16`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`int32`}]},{name:`numericType$subexpression$1`,symbols:[{literal:`uint32`}]},{name:`numericType`,symbols:[`numericType$subexpression$1`],postprocess:function(e){return{type:e[0][0].value}}},{name:`stringType`,symbols:[{literal:`string`}],postprocess:function(e){return{type:e[0].value}}},{name:`timeType$subexpression$1`,symbols:[{literal:`time`}]},{name:`timeType$subexpression$1`,symbols:[{literal:`duration`}]},{name:`timeType`,symbols:[`timeType$subexpression$1`],postprocess:function(e){return{type:e[0][0].value}}},{name:`customType`,symbols:[r.has(`fieldOrType`)?{type:`fieldOrType`}:fieldOrType],postprocess:function(e,t,n){let r=[`bool`,`byte`,`char`,`float32`,`float64`,`int8`,`uint8`,`int16`,`uint16`,`int32`,`uint32`,`int64`,`uint64`,`string`,`time`,`duration`],i=e[0].value;return r.includes(i)?n:{type:i}}},{name:`arrayType`,symbols:[{literal:`[`},`_`,{literal:`]`}],postprocess:function(e){return{isArray:!0}}},{name:`arrayType`,symbols:[{literal:`[`},`_`,`number`,`_`,{literal:`]`}],postprocess:function(e){return{isArray:!0,arrayLength:e[2]}}},{name:`arrayType`,symbols:[`_`],postprocess:function(e){return{isArray:!1}}},{name:`field`,symbols:[r.has(`fieldOrType`)?{type:`fieldOrType`}:fieldOrType],postprocess:function(e,t,n){let r=e[0].value;return r.match(/^[a-zA-Z][a-zA-Z0-9_]*$/)==null?n:{name:r}}},{name:`constantField`,symbols:[r.has(`fieldOrType`)?{type:`fieldOrType`}:fieldOrType],postprocess:function(e,t,n){let r=e[0].value;return r.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)==null?n:{name:r,isConstant:!0}}},{name:`boolConstantValue`,symbols:[`assignment`],postprocess:function(e,t,n){let r=e[0].split(`#`)[0].trim();return r===`True`||r===`1`?{value:!0,valueText:r}:r===`False`||r===`0`?{value:!1,valueText:r}:n}},{name:`numericConstantValue`,symbols:[`assignment`],postprocess:function(e,t,n){let r=e[0].split(`#`)[0].trim(),i=parseFloat(r);return isNaN(i)?n:{value:i,valueText:r}}},{name:`bigintConstantValue`,symbols:[`assignment`],postprocess:function(e,t,n){let r=e[0].split(`#`)[0].trim();try{return{value:BigInt(r),valueText:r}}catch{return n}}},{name:`stringConstantValue`,symbols:[`assignment`],postprocess:function(e){return{value:e[0],valueText:e[0]}}},{name:`bool$subexpression$1`,symbols:[{literal:`True`}]},{name:`bool$subexpression$1`,symbols:[{literal:`1`}]},{name:`bool`,symbols:[`bool$subexpression$1`],postprocess:function(e){return!0}},{name:`bool$subexpression$2`,symbols:[{literal:`False`}]},{name:`bool$subexpression$2`,symbols:[{literal:`0`}]},{name:`bool`,symbols:[`bool$subexpression$2`],postprocess:function(e){return!1}},{name:`number`,symbols:[r.has(`number`)?{type:`number`}:number],postprocess:function(e){return parseFloat(e[0].value)}},{name:`assignment`,symbols:[r.has(`assignment`)?{type:`assignment`}:assignment],postprocess:function(e){return e[0].value.substr(1).trim()}},{name:`comment`,symbols:[r.has(`comment`)?{type:`comment`}:comment],postprocess:function(e){return null}},{name:`blankLine`,symbols:[`_`],postprocess:function(e){return null}},{name:`_$subexpression$1`,symbols:[]},{name:`_$subexpression$1`,symbols:[r.has(`space`)?{type:`space`}:space]},{name:`_`,symbols:[`_$subexpression$1`],postprocess:function(e){return null}},{name:`__`,symbols:[r.has(`space`)?{type:`space`}:space],postprocess:function(e){return null}},{name:`simple`,symbols:[],postprocess:function(){return{isComplex:!1}}},{name:`complex`,symbols:[],postprocess:function(){return{isComplex:!0}}}],ParserStart:`main`};e.exports===void 0?window.grammar=a:e.exports=a})()}),694:(function(e,t){var n,r,i;(function(a,o){r=[],n=o,i=typeof n==`function`?n.apply(t,r):n,i!==void 0&&(e.exports=i)})(this,function(){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=typeof RegExp().sticky==`boolean`;function r(e){return e&&t.call(e)===`[object RegExp]`}function i(e){return e&&typeof e==`object`&&!r(e)&&!Array.isArray(e)}function a(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function o(e){return RegExp(`|`+e).exec(``).length-1}function s(e){return`(`+e+`)`}function c(e){return e.length?`(?:`+e.map(function(e){return`(?:`+e+`)`}).join(`|`)+`)`:`(?!)`}function l(e){if(typeof e==`string`)return`(?:`+a(e)+`)`;if(r(e)){if(e.ignoreCase)throw Error(`RegExp /i flag not allowed`);if(e.global)throw Error(`RegExp /g flag is implied`);if(e.sticky)throw Error(`RegExp /y flag is implied`);if(e.multiline)throw Error(`RegExp /m flag is implied`);return e.source}else throw Error(`Not a pattern: `+e)}function u(e,t){return e.length>t?e:Array(t-e.length+1).join(` `)+e}function d(e,t){for(var n=e.length,r=0;;){var i=e.lastIndexOf(`
|
|
54
|
-
`,n-1);if(i===-1||(r++,n=i,r===t)||n===0)break}var a=r<t?0:n+1;return e.substring(a).split(`
|
|
55
|
-
`)}function f(e){for(var t=Object.getOwnPropertyNames(e),n=[],r=0;r<t.length;r++){var a=t[r],o=e[a],s=[].concat(o);if(a===`include`){for(var c=0;c<s.length;c++)n.push({include:s[c]});continue}var l=[];s.forEach(function(e){i(e)?(l.length&&n.push(m(a,l)),n.push(m(a,e)),l=[]):l.push(e)}),l.length&&n.push(m(a,l))}return n}function p(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.include){for(var i=[].concat(r.include),a=0;a<i.length;a++)t.push({include:i[a]});continue}if(!r.type)throw Error(`Rule has no type: `+JSON.stringify(r));t.push(m(r.type,r))}return t}function m(t,n){if(i(n)||(n={match:n}),n.include)throw Error(`Matching rules cannot also include states`);var a={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var o in n)e.call(n,o)&&(a[o]=n[o]);if(typeof a.type==`string`&&t!==a.type)throw Error(`Type transform cannot be a string (type '`+a.type+`' for token '`+t+`')`);var s=a.match;return a.match=Array.isArray(s)?s:s?[s]:[],a.match.sort(function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length}),a}function h(e){return Array.isArray(e)?p(e):f(e)}var g=m(`error`,{lineBreaks:!0,shouldThrow:!0});function _(e,t){for(var i=null,a=Object.create(null),u=!0,d=null,f=[],p=[],m=0;m<e.length;m++)e[m].fallback&&(u=!1);for(var m=0;m<e.length;m++){var h=e[m];if(h.include)throw Error(`Inheritance is not allowed in stateless lexers`);if(h.error||h.fallback){if(i)throw!h.fallback==!i.fallback?Error(`Multiple `+(h.fallback?`fallback`:`error`)+` rules not allowed (for token '`+h.defaultType+`')`):Error(`fallback and error are mutually exclusive (for token '`+h.defaultType+`')`);i=h}var _=h.match.slice();if(u)for(;_.length&&typeof _[0]==`string`&&_[0].length===1;){var v=_.shift();a[v.charCodeAt(0)]=h}if(h.pop||h.push||h.next){if(!t)throw Error(`State-switching options are not allowed in stateless lexers (for token '`+h.defaultType+`')`);if(h.fallback)throw Error(`State-switching options are not allowed on fallback tokens (for token '`+h.defaultType+`')`)}if(_.length!==0){u=!1,f.push(h);for(var y=0;y<_.length;y++){var b=_[y];if(r(b)){if(d===null)d=b.unicode;else if(d!==b.unicode&&h.fallback===!1)throw Error(`If one rule is /u then all must be`)}}var x=c(_.map(l)),S=new RegExp(x);if(S.test(``))throw Error(`RegExp matches empty string: `+S);if(o(x)>0)throw Error(`RegExp has capture groups: `+S+`
|
|
56
|
-
Use (?: … ) instead`);if(!h.lineBreaks&&S.test(`
|
|
57
|
-
`))throw Error(`Rule should declare lineBreaks: `+S);p.push(s(x))}}var C=i&&i.fallback,w=n&&!C?`ym`:`gm`,T=n||C?``:`|`;return d===!0&&(w+=`u`),{regexp:new RegExp(c(p)+T,w),groups:f,fast:a,error:i||g}}function v(e){return new S({start:_(h(e))},`start`)}function y(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw Error(`Missing state '`+r+`' (in token '`+e.defaultType+`' of state '`+t+`')`);if(e&&e.pop&&+e.pop!=1)throw Error(`pop must be 1 (in token '`+e.defaultType+`' of state '`+t+`')`)}function b(e,t){var n=e.$all?h(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||=r[0];for(var i=Object.create(null),a=0;a<r.length;a++){var o=r[a];i[o]=h(e[o]).concat(n)}for(var a=0;a<r.length;a++)for(var o=r[a],s=i[o],c=Object.create(null),l=0;l<s.length;l++){var u=s[l];if(u.include){var d=[l,1];if(u.include!==o&&!c[u.include]){c[u.include]=!0;var f=i[u.include];if(!f)throw Error(`Cannot include nonexistent state '`+u.include+`' (in state '`+o+`')`);for(var p=0;p<f.length;p++){var m=f[p];s.indexOf(m)===-1&&d.push(m)}}s.splice.apply(s,d),l--}}for(var g=Object.create(null),a=0;a<r.length;a++){var o=r[a];g[o]=_(i[o],!0)}for(var a=0;a<r.length;a++){for(var v=r[a],b=g[v],x=b.groups,l=0;l<x.length;l++)y(x[l],v,g);for(var C=Object.getOwnPropertyNames(b.fast),l=0;l<C.length;l++)y(b.fast[C[l]],v,g)}return new S(g,t)}function x(e){for(var t=typeof Map<`u`,n=t?new Map:Object.create(null),r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var a=r[i],o=e[a];(Array.isArray(o)?o:[o]).forEach(function(e){if(typeof e!=`string`)throw Error(`keyword must be string (in keyword '`+a+`')`);t?n.set(e,a):n[e]=a})}return function(e){return t?n.get(e):n[e]}}var S=function(e,t){this.startState=t,this.states=e,this.buffer=``,this.stack=[],this.reset()};S.prototype.reset=function(e,t){return this.buffer=e||``,this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:``,this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},S.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},S.prototype.setState=function(e){if(!(!e||this.state===e)){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},S.prototype.popState=function(){this.setState(this.stack.pop())},S.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var C=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return n[0].length===0?null:n};S.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n<t;n++)if(e[n+1]!==void 0)return this.groups[n];throw Error(`Cannot find token type for matched text`)};function w(){return this.value}if(S.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText=``,t}var n=this.buffer;if(e!==n.length){var r=this.fast[n.charCodeAt(e)];if(r)return this._token(r,n.charAt(e),e);var i=this.re;i.lastIndex=e;var a=C(i,n),o=this.error;if(a==null)return this._token(o,n.slice(e,n.length),e);var r=this._getGroup(a),s=a[0];return o.fallback&&a.index!==e?(this.queuedGroup=r,this.queuedText=s,this._token(o,n.slice(e,a.index),e)):this._token(r,s,e)}},S.prototype._token=function(e,t,n){var r=0;if(e.lineBreaks){var i=/\n/g,a=1;if(t===`
|
|
58
|
-
`)r=1;else for(;i.exec(t);)r++,a=i.lastIndex}var o={type:typeof e.type==`function`&&e.type(t)||e.defaultType,value:typeof e.value==`function`?e.value(t):t,text:t,toString:w,offset:n,lineBreaks:r,line:this.line,col:this.col},s=t.length;if(this.index+=s,this.line+=r,r===0?this.col+=s:this.col=s-a+1,e.shouldThrow)throw Error(this.formatError(o,`invalid syntax`));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),o},typeof Symbol<`u`&&Symbol.iterator){var T=function(e){this.lexer=e};T.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},T.prototype[Symbol.iterator]=function(){return this},S.prototype[Symbol.iterator]=function(){return new T(this)}}return S.prototype.formatError=function(e,t){if(e==null)var n=this.buffer.slice(this.index),e={text:n,offset:this.index,lineBreaks:n.indexOf(`
|
|
59
|
-
`)===-1?0:1,line:this.line,col:this.col};var r=2,i=Math.max(e.line-r,1),a=e.line+r,o=String(a).length,s=d(this.buffer,this.line-e.line+r+1).slice(0,5),c=[];c.push(t+` at line `+e.line+` col `+e.col+`:`),c.push(``);for(var l=0;l<s.length;l++){var f=s[l],p=i+l;c.push(u(String(p),o)+` `+f),p===e.line&&c.push(u(``,o+e.col+1)+`^`)}return c.join(`
|
|
60
|
-
`)},S.prototype.clone=function(){return new S(this.states,this.state)},S.prototype.has=function(e){return!0},{compile:v,states:b,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:x}})}),812:((e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.stringify=n;function n(e){let t=``;for(let n=0;n<e.length;n++){let i=e[n],a=i.definitions.filter(({isConstant:e})=>e),o=i.definitions.filter(({isConstant:e})=>e==null||!e);n>0&&(t+=`
|
|
61
|
-
================================================================================
|
|
62
|
-
`,t+=`MSG: ${i.name??``}\n`);for(let e of a)t+=`${e.type} ${e.name} = ${e.valueText??String(e.value)}\n`;if(o.length>0){t.length>0&&(t+=`
|
|
63
|
-
`);for(let e of o){let n=e.upperBound==null?``:`<=${e.upperBound}`,i=e.arrayLength==null?e.arrayUpperBound==null?``:`<=${e.arrayUpperBound}`:String(e.arrayLength),a=e.isArray===!0?`[${i}]`:``,o=e.defaultValue==null?``:` ${r(e.defaultValue)}`;t+=`${e.type}${n}${a} ${e.name}${o}\n`}}}return t.trimEnd()}function r(e){return Array.isArray(e)?`[${e.map(e=>typeof e==`bigint`?e.toString():JSON.stringify(e)).join(`, `)}]`:typeof e==`bigint`?e.toString():JSON.stringify(e)}}),881:(function(e,t,n){var r=this&&this.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=this&&this.__exportStar||function(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,`__esModule`,{value:!0}),i(n(425),t),i(n(954),t),i(n(812),t)}),900:((e,t)=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.isMsgDefFieldEqual=r,t.isMsgDefEqual=i;function n(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}function r(e,t){return e.type===t.type&&e.name===t.name&&(e.isComplex??!1)===(t.isComplex??!1)&&e.enumType===t.enumType&&(e.isArray??!1)===(t.isArray??!1)&&e.arrayLength===t.arrayLength&&(e.isConstant??!1)===(t.isConstant??!1)&&e.value===t.value&&e.valueText===t.valueText&&e.upperBound===t.upperBound&&e.arrayUpperBound===t.arrayUpperBound&&(e.deprecated??!1)===(t.deprecated??!1)&&n(e.defaultValue,t.defaultValue)}function i(e,t){return(e.name==null||t.name==null||e.name===t.name)&&e.definitions.length===t.definitions.length&&e.definitions.every((e,n)=>r(e,t.definitions[n]))}}),954:(function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.parse=l,t.fixupTypes=u,t.normalizeType=m;let i=n(155),a=n(662),o=n(91),s=r(n(666)),c=a.Grammar.fromCompiled(s.default);function l(e,t={}){let n=e.split(`
|
|
64
|
-
`).map(e=>e.trim()).filter(e=>e),r=[],a=[];n.forEach(e=>{e.startsWith(`#`)||(e.startsWith(`==`)?(a.push(t.ros2===!0?(0,o.buildRos2Type)(r):d(r,c)),r=[]):r.push({line:e}))}),a.push(t.ros2===!0?(0,o.buildRos2Type)(r):d(r,c));let s=[],l=a.filter(e=>s.find(t=>(0,i.isMsgDefEqual)(e,t))?!1:s.push(e));return t.skipTypeFixup!==!0&&u(l),l}function u(e){e.forEach(({definitions:t,name:n})=>{t.forEach(t=>{if(t.isComplex===!0){let r=n?.split(`/`).slice(0,-1).join(`/`),i=p(e,t.type,r).name;if(i==null)throw Error(`Missing type definition for ${t.type}`);t.type=i}})})}function d(e,t){let n=[],r;return e.forEach(({line:e})=>{if(e.startsWith(`MSG:`)){let[t,n]=f(e);r=n?.trim();return}let i=new a.Parser(t);i.feed(e);let o=i.finish();if(o.length===0)throw Error(`Could not parse line: '${e}'`);if(o.length>1)throw Error(`Ambiguous line: '${e}'`);let s=o[0];s!=null&&(s.type=m(s.type),n.push(s))}),{name:r,definitions:n}}function f(e){return e.replace(/#.*/gi,``).split(` `).filter(e=>e)}function p(e,t,n){let r=e.filter(e=>{let r=e.name??``;return t.length===0?r.length===0:t.includes(`/`)?r===t:t===`Header`?r===`std_msgs/Header`:n?r===`${n}/${t}`:r.endsWith(`/${t}`)});if(r[0]==null)throw Error(`Expected 1 top level type definition for '${t}' but found ${r.length}`);if(r.length>1)throw Error(`Cannot unambiguously determine fully-qualified type name for '${t}'`);return r[0]}function m(e){return e===`char`?`uint8`:e===`byte`?`int8`:e}})},n={};function r(t){var i=n[t];if(i!==void 0)return i.exports;var a=n[t]={exports:{}};return e[t].call(a.exports,a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},t.exports=r(881)})()})),op=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EncapsulationKind=void 0;var t;(function(e){e[e.CDR_BE=0]=`CDR_BE`,e[e.CDR_LE=1]=`CDR_LE`,e[e.PL_CDR_BE=2]=`PL_CDR_BE`,e[e.PL_CDR_LE=3]=`PL_CDR_LE`,e[e.CDR2_BE=16]=`CDR2_BE`,e[e.CDR2_LE=17]=`CDR2_LE`,e[e.PL_CDR2_BE=18]=`PL_CDR2_BE`,e[e.PL_CDR2_LE=19]=`PL_CDR2_LE`,e[e.DELIMITED_CDR2_BE=20]=`DELIMITED_CDR2_BE`,e[e.DELIMITED_CDR2_LE=21]=`DELIMITED_CDR2_LE`,e[e.RTPS_CDR2_BE=6]=`RTPS_CDR2_BE`,e[e.RTPS_CDR2_LE=7]=`RTPS_CDR2_LE`,e[e.RTPS_DELIMITED_CDR2_BE=8]=`RTPS_DELIMITED_CDR2_BE`,e[e.RTPS_DELIMITED_CDR2_LE=9]=`RTPS_DELIMITED_CDR2_LE`,e[e.RTPS_PL_CDR2_BE=10]=`RTPS_PL_CDR2_BE`,e[e.RTPS_PL_CDR2_LE=11]=`RTPS_PL_CDR2_LE`})(t||(e.EncapsulationKind=t={}))})),sp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getEncapsulationKindInfo=void 0;var t=op();e.getEncapsulationKindInfo=e=>{let n=e>t.EncapsulationKind.PL_CDR_LE,r=e===t.EncapsulationKind.CDR_LE||e===t.EncapsulationKind.PL_CDR_LE||e===t.EncapsulationKind.CDR2_LE||e===t.EncapsulationKind.PL_CDR2_LE||e===t.EncapsulationKind.DELIMITED_CDR2_LE||e===t.EncapsulationKind.RTPS_CDR2_LE||e===t.EncapsulationKind.RTPS_PL_CDR2_LE||e===t.EncapsulationKind.RTPS_DELIMITED_CDR2_LE,i=e===t.EncapsulationKind.DELIMITED_CDR2_BE||e===t.EncapsulationKind.DELIMITED_CDR2_LE||e===t.EncapsulationKind.RTPS_DELIMITED_CDR2_BE||e===t.EncapsulationKind.RTPS_DELIMITED_CDR2_LE,a=e===t.EncapsulationKind.PL_CDR2_BE||e===t.EncapsulationKind.PL_CDR2_LE||e===t.EncapsulationKind.RTPS_PL_CDR2_BE||e===t.EncapsulationKind.RTPS_PL_CDR2_LE,o=e===t.EncapsulationKind.PL_CDR_BE||e===t.EncapsulationKind.PL_CDR_LE;return{isCDR2:n,littleEndian:r,usesDelimiterHeader:i||a,usesMemberHeader:a||o}}})),cp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isBigEndian=r;var t=new Uint8Array(4),n=new Uint32Array(t.buffer);n[0]=1;function r(){return t[3]===1}})),lp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lengthCodeToObjectSizes=void 0,e.getLengthCodeForObjectSize=t;function t(e){let t;switch(e){case 1:t=0;break;case 2:t=1;break;case 4:t=2;break;case 8:t=3;break}if(t==null){if(e>4294967295)throw Error(`Object size ${e} for EMHEADER too large without specifying length code. Max size is 4294967295`);t=4}return t}e.lengthCodeToObjectSizes={0:1,1:2,2:4,3:8}})),up=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SENTINEL_PID=e.EXTENDED_PID=void 0,e.EXTENDED_PID=16129,e.SENTINEL_PID=16130})),dp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CdrReader=void 0;var t=sp(),n=cp(),r=lp(),i=up(),a=new TextDecoder(`utf8`);e.CdrReader=class e{get kind(){return this.view.getUint8(1)}get decodedBytes(){return this.offset}get byteLength(){return this.view.byteLength}constructor(e){if(this.origin=0,e.byteLength<4)throw Error(`Invalid CDR data size ${e.byteLength}, must contain at least a 4-byte header`);this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);let r=this.kind,{isCDR2:i,littleEndian:a,usesDelimiterHeader:o,usesMemberHeader:s}=(0,t.getEncapsulationKindInfo)(r);this.usesDelimiterHeader=o,this.usesMemberHeader=s,this.littleEndian=a,this.hostLittleEndian=!(0,n.isBigEndian)(),this.isCDR2=i,this.eightByteAlignment=i?4:8,this.origin=4,this.offset=4}int8(){let e=this.view.getInt8(this.offset);return this.offset+=1,e}uint8(){let e=this.view.getUint8(this.offset);return this.offset+=1,e}int16(){this.align(2);let e=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}uint16(){this.align(2);let e=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}int32(){this.align(4);let e=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}uint32(){this.align(4);let e=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}int64(){this.align(this.eightByteAlignment);let e=this.view.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}uint64(){this.align(this.eightByteAlignment);let e=this.view.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}uint16BE(){this.align(2);let e=this.view.getUint16(this.offset,!1);return this.offset+=2,e}uint32BE(){this.align(4);let e=this.view.getUint32(this.offset,!1);return this.offset+=4,e}uint64BE(){this.align(this.eightByteAlignment);let e=this.view.getBigUint64(this.offset,!1);return this.offset+=8,e}float32(){this.align(4);let e=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}float64(){this.align(this.eightByteAlignment);let e=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}string(e){let t=e??this.uint32();if(t<=1)return this.offset+=t,``;let n=new Uint8Array(this.view.buffer,this.view.byteOffset+this.offset,t-1),r=a.decode(n);return this.offset+=t,r}dHeader(){return this.uint32()}emHeader(){return this.isCDR2?this.memberHeaderV2():this.memberHeaderV1()}memberHeaderV1(){this.align(4);let e=this.uint16(),t=(e&16384)>>14==1,n=(e&32768)>>15==1,r=(e&16383)===i.EXTENDED_PID;if((e&16383)===i.SENTINEL_PID)return this.uint16(),{id:i.SENTINEL_PID,objectSize:0,mustUnderstand:!1,readSentinelHeader:!0};if((e&16383)>i.SENTINEL_PID||n)throw Error(`Unsupported parameter ID header ${e.toString(16)}`);r&&this.uint16();let a=r?this.uint32():e&16383,o=r?this.uint32():this.uint16();return this.resetOrigin(),{id:a,objectSize:o,mustUnderstand:t}}resetOrigin(){this.origin=this.offset}isPresentFlag(){if(!this.isCDR2)throw Error(`isPresentFlag is only supported for CDR2`);return!!this.uint8()}sentinelHeader(){return this.isCDR2?!1:(this.align(4),(this.uint16()&16383)===i.SENTINEL_PID?(this.uint16(),!0):!1)}memberHeaderV2(){let e=this.uint32(),t=Math.abs((e&2147483648)>>31)===1,n=(e&1879048192)>>28;return{mustUnderstand:t,id:e&268435455,objectSize:this.emHeaderObjectSize(n),lengthCode:n}}emHeaderObjectSize(e){switch(e){case 0:case 1:case 2:case 3:return r.lengthCodeToObjectSizes[e];case 4:case 5:return this.uint32();case 6:return 4*this.uint32();case 7:return 8*this.uint32();default:throw Error(`Invalid length code ${e} in EMHEADER at offset ${this.offset-4}`)}}sequenceLength(){return this.uint32()}int8Array(e=this.sequenceLength()){let t=new Int8Array(this.view.buffer,this.view.byteOffset+this.offset,e);return this.offset+=e,t}uint8Array(e=this.sequenceLength()){let t=new Uint8Array(this.view.buffer,this.view.byteOffset+this.offset,e);return this.offset+=e,t}int16Array(e=this.sequenceLength()){return this.typedArray(Int16Array,`getInt16`,e)}uint16Array(e=this.sequenceLength()){return this.typedArray(Uint16Array,`getUint16`,e)}int32Array(e=this.sequenceLength()){return this.typedArray(Int32Array,`getInt32`,e)}uint32Array(e=this.sequenceLength()){return this.typedArray(Uint32Array,`getUint32`,e)}int64Array(e=this.sequenceLength()){return this.typedArray(BigInt64Array,`getBigInt64`,e,this.eightByteAlignment)}uint64Array(e=this.sequenceLength()){return this.typedArray(BigUint64Array,`getBigUint64`,e,this.eightByteAlignment)}float32Array(e=this.sequenceLength()){return this.typedArray(Float32Array,`getFloat32`,e)}float64Array(e=this.sequenceLength()){return this.typedArray(Float64Array,`getFloat64`,e,this.eightByteAlignment)}stringArray(e=this.sequenceLength()){let t=[];for(let n=0;n<e;n++)t.push(this.string());return t}seek(e){let t=this.offset+e;if(t<4||t>this.view.byteLength)throw Error(`seek(${e}) failed, ${t} is outside the data range`);this.offset=t}seekTo(e){if(e<4||e>this.view.byteLength)throw Error(`seekTo(${e}) failed, value is outside the data range`);this.offset=e}clone(){let t=new e(this.view);return t.offset=this.offset,t.origin=this.origin,t}limit(e){let t=this.offset+e;if(t<=this.view.byteLength)this.view=new DataView(this.view.buffer,this.view.byteOffset,t);else throw RangeError(`length ${e} exceeds byte length of view`)}isAtEnd(){return this.offset>=this.view.byteLength}align(e){let t=(this.offset-this.origin)%e;t>0&&(this.offset+=e-t)}typedArray(e,t,n,r=e.BYTES_PER_ELEMENT){if(n===0)return new e;this.align(r);let i=this.view.byteOffset+this.offset;if(this.littleEndian!==this.hostLittleEndian)return this.typedArraySlow(e,t,n);if(i%e.BYTES_PER_ELEMENT===0){let t=new e(this.view.buffer,i,n);return this.offset+=e.BYTES_PER_ELEMENT*n,t}else return this.typedArrayUnaligned(e,t,n)}typedArrayUnaligned(e,t,n){if(n<10)return this.typedArraySlow(e,t,n);let r=e.BYTES_PER_ELEMENT*n,i=new Uint8Array(r);return i.set(new Uint8Array(this.view.buffer,this.view.byteOffset+this.offset,r)),this.offset+=r,new e(i.buffer,i.byteOffset,n)}typedArraySlow(e,t,n){let r=new e(n),i=this.offset;for(let a=0;a<n;a++)r[a]=this.view[t](i,this.littleEndian),i+=e.BYTES_PER_ELEMENT;return this.offset=i,r}}})),fp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CdrSizeCalculator=void 0,e.CdrSizeCalculator=class{constructor(){this.offset=4}get size(){return this.offset}int8(){return this.incrementAndReturn(1)}uint8(){return this.incrementAndReturn(1)}int16(){return this.incrementAndReturn(2)}uint16(){return this.incrementAndReturn(2)}int32(){return this.incrementAndReturn(4)}uint32(){return this.incrementAndReturn(4)}int64(){return this.incrementAndReturn(8)}uint64(){return this.incrementAndReturn(8)}float32(){return this.incrementAndReturn(4)}float64(){return this.incrementAndReturn(8)}string(e){return this.uint32(),this.offset+=e+1,this.offset}sequenceLength(){return this.uint32()}incrementAndReturn(e){let t=(this.offset-4)%e;return t>0&&(this.offset+=e-t),this.offset+=e,this.offset}}})),pp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CdrWriter=void 0;var t=op(),n=sp(),r=cp(),i=lp(),a=up(),o=new TextEncoder;function s(e){let t=0,n=e.length;for(let r=0;r<n;r++){let n=e.charCodeAt(r);if(n<=127)t+=1;else if(n<=2047)t+=2;else if(55296<=n&&n<=56319){let n=e.charCodeAt(r+1);56320<=n&&n<=57343?(t+=4,r++):t+=3}else t+=3}return t}var c=class e{get data(){return new Uint8Array(this.buffer,0,this.offset)}get size(){return this.offset}get kind(){return this.view.getUint8(1)}constructor(i={}){i.buffer==null?i.size==null?this.buffer=new ArrayBuffer(e.DEFAULT_CAPACITY):this.buffer=new ArrayBuffer(i.size):this.buffer=i.buffer;let a=i.kind??t.EncapsulationKind.CDR_LE,{isCDR2:o,littleEndian:s}=(0,n.getEncapsulationKindInfo)(a);this.isCDR2=o,this.littleEndian=s,this.hostLittleEndian=!(0,r.isBigEndian)(),this.eightByteAlignment=o?4:8,this.array=new Uint8Array(this.buffer),this.view=new DataView(this.buffer),this.resizeIfNeeded(4),this.view.setUint8(0,0),this.view.setUint8(1,a),this.view.setUint16(2,0,!1),this.offset=4,this.origin=4}int8(e){return this.resizeIfNeeded(1),this.view.setInt8(this.offset,e),this.offset+=1,this}uint8(e){return this.resizeIfNeeded(1),this.view.setUint8(this.offset,e),this.offset+=1,this}int16(e){return this.align(2),this.view.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this}uint16(e){return this.align(2),this.view.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this}int32(e){return this.align(4),this.view.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this}uint32(e){return this.align(4),this.view.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this}int64(e){return this.align(this.eightByteAlignment,8),this.view.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this}uint64(e){return this.align(this.eightByteAlignment,8),this.view.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this}uint16BE(e){return this.align(2),this.view.setUint16(this.offset,e,!1),this.offset+=2,this}uint32BE(e){return this.align(4),this.view.setUint32(this.offset,e,!1),this.offset+=4,this}uint64BE(e){return this.align(this.eightByteAlignment,8),this.view.setBigUint64(this.offset,e,!1),this.offset+=8,this}float32(e){return this.align(4),this.view.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this}float64(e){return this.align(this.eightByteAlignment,8),this.view.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this}string(e,t=!0){let n=s(e);return t&&this.uint32(n+1),this.resizeIfNeeded(n+1),o.encodeInto(e,new Uint8Array(this.buffer,this.offset,n)),this.view.setUint8(this.offset+n,0),this.offset+=n+1,this}dHeader(e){let t=e;return this.uint32(t),this}emHeader(e,t,n,r){return this.isCDR2?this.memberHeaderV2(e,t,n,r):this.memberHeaderV1(e,t,n)}memberHeaderV1(e,t,n){this.align(4);let r=e?16384:0;if(t>16128||n>65535){let e=r|a.EXTENDED_PID;this.uint16(e),this.uint16(8),this.uint32(t),this.uint32(n)}else{let e=r|t;this.uint16(e);let i=n&65535;this.uint16(i)}return this.resetOrigin(),this}resetOrigin(){this.origin=this.offset}presentFlag(e){if(!this.isCDR2)throw Error(`presentFlag is only supported for CDR2`);return this.uint8(+!!e),this}sentinelHeader(){return this.isCDR2||(this.align(4),this.uint16(a.SENTINEL_PID),this.uint16(0)),this}memberHeaderV2(e,t,n,r){if(t>268435455)throw Error(`Member ID ${t} is too large. Max value is 268435455`);let a=e?1<<31:0,o=r??(0,i.getLengthCodeForObjectSize)(n),s=a|o<<28|t;switch(this.uint32(s),o){case 0:case 1:case 2:case 3:{let e=i.lengthCodeToObjectSizes[o];if(n!==e)throw Error(`Cannot write a length code ${o} header with an object size not equal to ${e}`);break}case 4:case 5:this.uint32(n);break;case 6:if(n%4!=0)throw Error(`Cannot write a length code 6 header with an object size that is not a multiple of 4`);this.uint32(n>>2);break;case 7:if(n%8!=0)throw Error(`Cannot write a length code 7 header with an object size that is not a multiple of 8`);this.uint32(n>>3);break;default:throw Error(`Unexpected length code ${o}`)}return this}sequenceLength(e){return this.uint32(e)}int8Array(e,t){return t===!0&&this.sequenceLength(e.length),this.resizeIfNeeded(e.length),this.array.set(e,this.offset),this.offset+=e.length,this}uint8Array(e,t){return t===!0&&this.sequenceLength(e.length),this.resizeIfNeeded(e.length),this.array.set(e,this.offset),this.offset+=e.length,this}int16Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof Int16Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.int16(e);return this}uint16Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof Uint16Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.uint16(e);return this}int32Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof Int32Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.int32(e);return this}uint32Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof Uint32Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.uint32(e);return this}int64Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof BigInt64Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.int64(BigInt(e));return this}uint64Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof BigUint64Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.uint64(BigInt(e));return this}float32Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof Float32Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.float32(e);return this}float64Array(t,n){if(n===!0&&this.sequenceLength(t.length),t instanceof Float64Array&&this.littleEndian===this.hostLittleEndian&&t.length>=e.BUFFER_COPY_THRESHOLD)this.align(t.BYTES_PER_ELEMENT,t.byteLength),this.array.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),this.offset),this.offset+=t.byteLength;else for(let e of t)this.float64(e);return this}align(e,t=e){let n=(this.offset-this.origin)%e,r=n>0?e-n:0;this.resizeIfNeeded(r+t),this.array.fill(0,this.offset,this.offset+r),this.offset+=r}resizeIfNeeded(e){let t=this.offset+e;if(this.buffer.byteLength<t){let e=this.buffer.byteLength*2,n=e>t?e:t;this.resize(n)}}resize(e){if(this.buffer.byteLength>=e)return;let t=new ArrayBuffer(e),n=new Uint8Array(t);n.set(this.array),this.buffer=t,this.array=n,this.view=new DataView(t)}};e.CdrWriter=c,c.DEFAULT_CAPACITY=16,c.BUFFER_COPY_THRESHOLD=10})),mp=Ee((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(dp(),e),n(fp(),e),n(pp(),e),n(op(),e)})),hp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.messageDefinitionHasDataFields=t;function t(e){return e.some(e=>e.isConstant!==!0)}})),gp=Ee((e=>{var t=e&&e.__classPrivateFieldGet||function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},n=e&&e.__classPrivateFieldSet||function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},r,i,a,o,s,c,l;Object.defineProperty(e,`__esModule`,{value:!0}),e.MessageReader=void 0;var u=mp(),d=hp();e.MessageReader=class{lastReadHadTrailingBytes(){return t(this,s,`f`)}lastReadByteLength(){return t(this,o,`f`)}constructor(e,t={}){r.add(this),i.set(this,void 0),a.set(this,void 0),o.set(this,0),s.set(this,!1),c.set(this,void 0);let{timeType:l=`sec,nanosec`}=t,u=e.find(e=>!f(e));if(u==null)throw Error(`MessageReader initialized with no root MessageDefinition`);n(this,i,u.definitions,`f`),n(this,a,new Map(e.map(e=>[e.name??``,e.definitions])),`f`),n(this,c,l===`sec,nsec`,`f`)}readMessage(e){let a=new u.CdrReader(e),c=t(this,r,`m`,l).call(this,t(this,i,`f`),a);return n(this,o,a.decodedBytes,`f`),n(this,s,t(this,o,`f`)<e.byteLength&&!p(e,t(this,o,`f`)),`f`),c}},i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap,r=new WeakSet,l=function e(n,i){let o={};if(!(0,d.messageDefinitionHasDataFields)(n))return i.uint8(),o;for(let s of n)if(s.isConstant!==!0)if(s.isComplex===!0){let n=t(this,a,`f`).get(s.type);if(n==null)throw Error(`Unrecognized complex type ${s.type}`);if(s.isArray===!0){let a=s.arrayLength??i.sequenceLength(),c=[];for(let o=0;o<a;o++)c.push(t(this,r,`m`,e).call(this,n,i));o[s.name]=c}else o[s.name]=t(this,r,`m`,e).call(this,n,i)}else if(s.isArray===!0){let e=(t(this,c,`f`)?_:g).get(s.type);if(e==null)throw Error(`Unrecognized primitive array type ${s.type}[]`);let n=s.arrayLength??i.sequenceLength();o[s.name]=e(i,n)}else{let e=(t(this,c,`f`)?h:m).get(s.type);if(e==null)throw Error(`Unrecognized primitive type ${s.type}`);o[s.name]=e(i)}return o};function f(e){return e.definitions.length>0&&e.definitions.every(e=>e.isConstant)}function p(e,t){let n=e.byteLength-t;if(n<=0)return!1;let r=(4-t%4)%4,i=(8-t%8)%8;return n!==r&&n!==i?!1:new Uint8Array(e.buffer,e.byteOffset+t,n).every(e=>e===0)}var m=new Map([[`bool`,e=>!!e.int8()],[`int8`,e=>e.int8()],[`uint8`,e=>e.uint8()],[`int16`,e=>e.int16()],[`uint16`,e=>e.uint16()],[`int32`,e=>e.int32()],[`uint32`,e=>e.uint32()],[`int64`,e=>e.int64()],[`uint64`,e=>e.uint64()],[`float32`,e=>e.float32()],[`float64`,e=>e.float64()],[`string`,e=>e.string()],[`wstring`,S],[`time`,e=>({sec:e.int32(),nanosec:e.uint32()})],[`duration`,e=>({sec:e.int32(),nanosec:e.uint32()})]]),h=new Map([...m,[`time`,e=>({sec:e.int32(),nsec:e.uint32()})],[`duration`,e=>({sec:e.int32(),nsec:e.uint32()})]]),g=new Map([[`bool`,v],[`int8`,(e,t)=>e.int8Array(t)],[`uint8`,(e,t)=>e.uint8Array(t)],[`int16`,(e,t)=>e.int16Array(t)],[`uint16`,(e,t)=>e.uint16Array(t)],[`int32`,(e,t)=>e.int32Array(t)],[`uint32`,(e,t)=>e.uint32Array(t)],[`int64`,(e,t)=>e.int64Array(t)],[`uint64`,(e,t)=>e.uint64Array(t)],[`float32`,(e,t)=>e.float32Array(t)],[`float64`,(e,t)=>e.float64Array(t)],[`string`,y],[`wstring`,S],[`time`,x],[`duration`,x]]),_=new Map([...g,[`time`,b],[`duration`,b]]);function v(e,t){let n=Array(t);for(let r=0;r<t;r++)n[r]=!!e.int8();return n}function y(e,t){let n=Array(t);for(let r=0;r<t;r++)n[r]=e.string();return n}function b(e,t){let n=Array(t);for(let r=0;r<t;r++)n[r]={sec:e.int32(),nsec:e.uint32()};return n}function x(e,t){let n=Array(t);for(let r=0;r<t;r++)n[r]={sec:e.int32(),nanosec:e.uint32()};return n}function S(){throw Error(`wstring is implementation-defined and therefore not supported`)}})),_p=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stringLengthUtf8=t;function t(e){let t=0,n=e.length;for(let r=0;r<n;r++){let n=e.charCodeAt(r);if(n<=127)t+=1;else if(n<=2047)t+=2;else if(55296<=n&&n<=56319){let n=e.charCodeAt(r+1);56320<=n&&n<=57343?(t+=4,r++):t+=3}else t+=3}return t}})),vp=Ee((e=>{var t=e&&e.__classPrivateFieldSet||function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},n=e&&e.__classPrivateFieldGet||function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},r,i,a,o,s,c,l,u,d;Object.defineProperty(e,`__esModule`,{value:!0}),e.MessageWriter=void 0;var f=mp(),p=hp(),m=_p(),h=new Map([[`bool`,1],[`int8`,1],[`uint8`,1],[`int16`,2],[`uint16`,2],[`int32`,4],[`uint32`,4],[`int64`,8],[`uint64`,8],[`float32`,4],[`float64`,8],[`time`,8],[`duration`,8]]),g=new Map([[`bool`,x],[`int8`,S],[`uint8`,C],[`int16`,w],[`uint16`,T],[`int32`,E],[`uint32`,D],[`int64`,O],[`uint64`,k],[`float32`,A],[`float64`,j],[`string`,M],[`time`,N],[`duration`,N],[`wstring`,v]]),_=new Map([[`bool`,ee],[`int8`,te],[`uint8`,ne],[`int16`,re],[`uint16`,ie],[`int32`,ae],[`uint32`,oe],[`int64`,se],[`uint64`,ce],[`float32`,le],[`float64`,ue],[`string`,de],[`time`,fe],[`duration`,fe],[`wstring`,v]]);function v(){throw Error(`wstring is implementation-defined and therefore not supported`)}e.MessageWriter=class{constructor(e){r.add(this),i.set(this,void 0),a.set(this,void 0);let n=e.find(e=>!y(e));if(n==null)throw Error(`MessageReader initialized with no root MessageDefinition`);t(this,i,n.definitions,`f`),t(this,a,new Map(e.map(e=>[e.name??``,e.definitions])),`f`)}calculateByteSize(e){return n(this,r,`m`,o).call(this,n(this,i,`f`),e,4)}writeMessage(e,t){let a=new f.CdrWriter({buffer:t,size:t?void 0:this.calculateByteSize(e)});return n(this,r,`m`,s).call(this,n(this,i,`f`),e,a),a.data}},i=new WeakMap,a=new WeakMap,r=new WeakSet,o=function e(t,i,a){let o=i,s=a;if(!(0,p.messageDefinitionHasDataFields)(t))return a+n(this,r,`m`,l).call(this,`uint8`);for(let i of t){if(i.isConstant===!0)continue;let t=o?.[i.name];if(i.isArray===!0){let a=i.arrayLength??b(t),o=Array.isArray(t)||ArrayBuffer.isView(t)?t:[];if(i.arrayLength??(s+=pe(s,4),s+=4),i.isComplex===!0){let t=n(this,r,`m`,c).call(this,i.type);for(let i=0;i<a;i++){let a=o[i]??{};s=n(this,r,`m`,e).call(this,t,a,s)}}else if(i.type===`string`)for(let e=0;e<a;e++){let t=o[e]??``;s+=pe(s,4),s+=4+(0,m.stringLengthUtf8)(t)+1}else{let e=n(this,r,`m`,l).call(this,i.type),t=i.type===`time`||i.type===`duration`?4:e;s+=pe(s,t),s+=e*a}}else if(i.isComplex===!0){let a=n(this,r,`m`,c).call(this,i.type),o=t??{};s=n(this,r,`m`,e).call(this,a,o,s)}else if(i.type===`string`){let e=typeof t==`string`?t:``;s+=pe(s,4),s+=4+(0,m.stringLengthUtf8)(e)+1}else{let e=n(this,r,`m`,l).call(this,i.type),t=i.type===`time`||i.type===`duration`?4:e;s+=pe(s,t),s+=e}}return s},s=function e(t,i,a){let o=i;if(!(0,p.messageDefinitionHasDataFields)(t)){C(0,0,a);return}for(let i of t){if(i.isConstant===!0)continue;let t=o?.[i.name];if(i.isArray===!0){let o=i.arrayLength??b(t),s=Array.isArray(t)||ArrayBuffer.isView(t)?t:[];if(i.arrayLength??a.sequenceLength(o),i.arrayLength!=null&&t!=null){let e=b(t);if(e!==i.arrayLength)throw Error(`Expected ${i.arrayLength} items for fixed-length array field ${i.name} but received ${e}`)}if(i.isComplex===!0){let t=n(this,r,`m`,c).call(this,i.type);for(let i=0;i<o;i++){let o=s[i]??{};n(this,r,`m`,e).call(this,t,o,a)}}else n(this,r,`m`,d).call(this,i.type)(t,i.defaultValue,a,i.arrayLength)}else if(i.isComplex===!0){let o=n(this,r,`m`,c).call(this,i.type),s=t??{};n(this,r,`m`,e).call(this,o,s,a)}else n(this,r,`m`,u).call(this,i.type)(t,i.defaultValue,a)}},c=function(e){let t=n(this,a,`f`).get(e);if(t==null)throw Error(`Unrecognized complex type ${e}`);return t},l=function(e){let t=h.get(e);if(t==null)throw e===`wstring`&&v(),Error(`Unrecognized primitive type ${e}`);return t},u=function(e){let t=g.get(e);if(t==null)throw Error(`Unrecognized primitive type ${e}`);return t},d=function(e){let t=_.get(e);if(t==null)throw Error(`Unrecognized primitive type ${e}[]`);return t};function y(e){return e.definitions.length>0&&e.definitions.every(e=>e.isConstant)}function b(e){let t=e?.length;return typeof t==`number`?t:0}function x(e,t,n){let r=typeof e==`boolean`?e:t??!1;n.int8(+!!r)}function S(e,t,n){n.int8(typeof e==`number`?e:t??0)}function C(e,t,n){n.uint8(typeof e==`number`?e:t??0)}function w(e,t,n){n.int16(typeof e==`number`?e:t??0)}function T(e,t,n){n.uint16(typeof e==`number`?e:t??0)}function E(e,t,n){n.int32(typeof e==`number`?e:t??0)}function D(e,t,n){n.uint32(typeof e==`number`?e:t??0)}function O(e,t,n){typeof e==`bigint`?n.int64(e):typeof e==`number`?n.int64(BigInt(e)):n.int64(t??0n)}function k(e,t,n){typeof e==`bigint`?n.uint64(e):typeof e==`number`?n.uint64(BigInt(e)):n.uint64(t??0n)}function A(e,t,n){n.float32(typeof e==`number`?e:t??0)}function j(e,t,n){n.float64(typeof e==`number`?e:t??0)}function M(e,t,n){n.string(typeof e==`string`?e:t??``)}function N(e,t,n){if(e==null){n.int32(0),n.uint32(0);return}let r=e;n.int32(r.sec??0),n.uint32(r.nsec??r.nanosec??0)}function ee(e,t,n,r){if(Array.isArray(e)){let t=new Int8Array(e);n.int8Array(t)}else n.int8Array(t??new Int8Array(r??0).fill(0))}function te(e,t,n,r){if(e instanceof Int8Array)n.int8Array(e);else if(Array.isArray(e)){let t=new Int8Array(e);n.int8Array(t)}else n.int8Array(t??new Int8Array(r??0).fill(0))}function ne(e,t,n,r){if(e instanceof Uint8Array)n.uint8Array(e);else if(e instanceof Uint8ClampedArray)n.uint8Array(new Uint8Array(e));else if(Array.isArray(e)){let t=new Uint8Array(e);n.uint8Array(t)}else n.uint8Array(t??new Uint8Array(r??0).fill(0))}function re(e,t,n,r){if(e instanceof Int16Array)n.int16Array(e);else if(Array.isArray(e)){let t=new Int16Array(e);n.int16Array(t)}else n.int16Array(t??new Int16Array(r??0).fill(0))}function ie(e,t,n,r){if(e instanceof Uint16Array)n.uint16Array(e);else if(Array.isArray(e)){let t=new Uint16Array(e);n.uint16Array(t)}else n.uint16Array(t??new Uint16Array(r??0).fill(0))}function ae(e,t,n,r){if(e instanceof Int32Array)n.int32Array(e);else if(Array.isArray(e)){let t=new Int32Array(e);n.int32Array(t)}else n.int32Array(t??new Int32Array(r??0).fill(0))}function oe(e,t,n,r){if(e instanceof Uint32Array)n.uint32Array(e);else if(Array.isArray(e)){let t=new Uint32Array(e);n.uint32Array(t)}else n.uint32Array(t??new Uint32Array(r??0).fill(0))}function se(e,t,n,r){if(e instanceof BigInt64Array)n.int64Array(e);else if(Array.isArray(e)){let t=new BigInt64Array(e);n.int64Array(t)}else n.int64Array(t??new BigInt64Array(r??0).fill(0n))}function ce(e,t,n,r){if(e instanceof BigUint64Array)n.uint64Array(e);else if(Array.isArray(e)){let t=new BigUint64Array(e);n.uint64Array(t)}else n.uint64Array(t??new BigUint64Array(r??0).fill(0n))}function le(e,t,n,r){if(e instanceof Float32Array)n.float32Array(e);else if(Array.isArray(e)){let t=new Float32Array(e);n.float32Array(t)}else n.float32Array(t??new Float32Array(r??0).fill(0))}function ue(e,t,n,r){if(e instanceof Float64Array)n.float64Array(e);else if(Array.isArray(e)){let t=new Float64Array(e);n.float64Array(t)}else n.float64Array(t??new Float64Array(r??0).fill(0))}function de(e,t,n,r){if(Array.isArray(e))for(let t of e)n.string(typeof t==`string`?t:``);else{let e=t??Array(r??0).fill(``);for(let t of e)n.string(t)}}function fe(e,t,n,r){if(Array.isArray(e))for(let t of e)N(t,void 0,n);else{let e=Array(r).fill(void 0);for(let t of e)N(t,void 0,n)}}function pe(e,t){let n=(e-4)%t;return n>0?t-n:0}})),yp=Ee((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(gp(),e),n(vp(),e)})),bp=ap(),xp=yp(),Sp=`damaged protobuf data`,Cp=64,wp=4294967296,Tp={double:1,float:2,group:10,message:11,bytes:12,enum:14,string:9,bool:8},Ep=e=>e===1||e===6||e===16?1:e===2||e===7||e===15?5:e===9||e===11||e===12?2:e===10?3:0;function Dp(e,t,n,r){let i=0,a=0;for(let r=0;;r++){if(t>=n||r===10)throw Error(Sp);let o=e[t++],s=o&127;if(r<4?i|=s<<7*r:r===4?(i|=s<<28,a|=s>>4):a|=s<<7*r-32,!(o&128))break}return r.lo=i,r.hi=a,t}function Op(e,t,n,r,i=!1){let a={lo:0,hi:0,p:0,s:0,e:0};for(;t<n;){t=Dp(e,t,n,a);let o=a.lo>>>3,s=a.lo&7;if(s===0)t=Dp(e,t,n,a);else if(s===1||s===5){if(a.p=t,(t+=s===1?8:4)>n)throw Error(Sp)}else if(s===2){if(t=Dp(e,t,n,a),a.s=t,a.e=t+(a.lo>>>0),a.hi||a.e>n)throw Error(Sp);t=a.e}else if(s===3){t=Op(e,t,n,()=>{},!0);continue}else if(s===4&&i)return t;else throw Error(Sp);r(o,s,a)}if(i)throw Error(Sp);return t}var kp=(e,t)=>j(e.subarray(t.s,t.e));function Ap(e){let t=new Map,n=new Map,r=(t,r,i)=>{let a=``,o=new Map;Op(e,t,r,(t,n,r)=>{if(t===1)a=kp(e,r);else if(t===2){let t=``,n=0;Op(e,r.s,r.e,(r,i,a)=>{r===1?t=kp(e,a):r===2&&(n=a.lo|0)}),o.has(n)||o.set(n,t)}}),n.set(i?`${i}.${a}`:a,o)},i=(n,a,o,s)=>{if(s>Cp)throw Error(Sp);let c=``;Op(e,n,a,(t,n,r)=>{t===1&&(c=kp(e,r))});let l=o?`${o}.${c}`:c,u=[];Op(e,n,a,(t,n,a)=>{if(t===2){let t={name:``,number:0,type:0,repeated:!1,oneof:!1,typeName:``,scope:l};Op(e,a.s,a.e,(n,r,i)=>{n===1?t.name=kp(e,i):n===3?t.number=i.lo|0:n===4?t.repeated=i.lo===3:n===5?t.type=i.lo:n===6?t.typeName=kp(e,i):n===9&&(t.oneof=!0)}),u.push(t)}else t===3?i(a.s,a.e,l,s+1):t===4&&r(a.s,a.e,l)}),t.set(l,{list:u,fields:new Map(u.map(e=>[e.number,e]))})};Op(e,0,e.length,(t,n,a)=>{if(t!==1)return;let o=``;Op(e,a.s,a.e,(t,n,r)=>{t===2&&(o=kp(e,r))}),Op(e,a.s,a.e,(e,t,n)=>{e===4?i(n.s,n.e,o,0):e===5&&r(n.s,n.e,o)})});for(let e of t.values())for(let r of e.list)if(r.typeName){if(r.typeName.startsWith(`.`)){r.typeName=r.typeName.slice(1);continue}for(let e=r.scope;;e=e.slice(0,Math.max(0,e.lastIndexOf(`.`)))){let i=e?`${e}.${r.typeName}`:r.typeName;if(t.has(i)||n.has(i)){r.typeName=i;break}if(!e)break}}return{messages:t,enums:n}}function jp(e,t){let n=Ap(e),r=n.messages.get(t);if(!r)throw Error(`no type ${t}`);return e=>Pp(n,r,e,l(e),0,e.length,0)}var Mp=(e,t,n)=>e.enums.get(t.typeName)?.get(n)??n;function Np(e,t){switch(t.type){case Tp.string:return``;case Tp.bytes:return new Uint8Array;case Tp.bool:return!1;case Tp.enum:{let n=e.enums.get(t.typeName);return n?n.get(0)??n.values().next().value??0:0}default:return 0}}function Pp(e,t,n,r,i,a,o){if(o>Cp)throw Error(Sp);let s={};for(let n of t.list)n.repeated?s[n.name]=[]:!n.oneof&&n.type!==Tp.message&&n.type!==Tp.group&&(s[n.name]=Np(e,n));let c=(t,i)=>{let{lo:a,hi:s,p:c}=i;switch(t.type){case 1:return r.getFloat64(c,!0);case 2:return r.getFloat32(c,!0);case 3:return(s|0)*wp+(a>>>0);case 4:return(s>>>0)*wp+(a>>>0);case 5:return a|0;case 6:return r.getUint32(c+4,!0)*wp+r.getUint32(c,!0);case 7:return r.getUint32(c,!0);case 8:return a!==0||s!==0;case 9:return kp(n,i);case 11:{let a=e.messages.get(t.typeName);return a?Pp(e,a,n,r,i.s,i.e,o+1):void 0}case 12:return n.subarray(i.s,i.e);case 13:return a>>>0;case 14:return Mp(e,t,a|0);case 15:return r.getInt32(c,!0);case 16:return r.getInt32(c+4,!0)*wp+r.getUint32(c,!0);case 17:return a>>>1^-(a&1);case 18:{let e=-(a&1);return(s>>>1^e|0)*wp+(((a>>>1|s<<31)^e)>>>0)}default:return}};return Op(n,i,a,(e,r,i)=>{let a=t.fields.get(e);if(!a)return;let o=Ep(a.type);if(a.repeated&&r===2&&o!==2){let e=s[a.name],t={lo:0,hi:0,p:0,s:0,e:0};for(let r=i.s;r<i.e;){if(o===0)r=Dp(n,r,i.e,t);else if(t.p=r,(r+=o===1?8:4)>i.e)throw Error(Sp);e.push(c(a,t))}return}if(r!==o)throw Error(Sp);let l=c(a,i);a.repeated?s[a.name].push(l):s[a.name]=l}),s}var Fp=/(^|[/.])(Image|CompressedImage|RawImage|CompressedVideo|PointCloud|PointCloud2)$/;function Ip(e){if(Fp.test(e.schemaName))return`no numbers (images and point clouds are skipped).`;if(e.messageEncoding===`cdr`&&e.schemaEncoding===`ros2msg`){let t=new xp.MessageReader((0,bp.parse)(j(e.schemaData),{ros2:!0}));return e=>t.readMessage(e)}return e.messageEncoding===`protobuf`&&e.schemaEncoding===`protobuf`?jp(e.schemaData,e.schemaName):e.messageEncoding===`json`&&(e.schemaEncoding===`jsonschema`||e.schemaEncoding===``)?e=>JSON.parse(j(e)):`message encoding ${e.messageEncoding}${e.schemaEncoding?` (schema ${e.schemaEncoding})`:``} is not supported; skipped.`}var Lp=16;function Rp(e,t,n,r){switch(typeof e){case`number`:n.set(t,e);return;case`bigint`:n.set(t,Number(e));return;case`boolean`:n.set(t,+!!e);return;case`string`:n.set(t,e);return;case`object`:break;default:return}if(e!==null){if(Array.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView)){let i=e;if(i.length>Lp){r.add(`${t} (over ${Lp} values)`);return}for(let e=0;e<i.length;e++){let n=i[e];if(n!==null&&typeof n!=`number`&&typeof n!=`bigint`&&typeof n!=`boolean`){r.add(`${t} (arrays of messages or text)`);return}}for(let e=0;e<i.length;e++)n.set(`${t}[${e}]`,i[e]===null?NaN:Number(i[e]));return}for(let[i,a]of Object.entries(e))Rp(a,t?`${t}.${i}`:i,n,r)}}var zp=e=>Array.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView);function Bp(e,t,n,r=``,i=[]){if(typeof e!=`object`||!e){t.has(r)&&n.set(r,i);return}if(zp(e)){for(let a=0;a<Math.min(e.length,Lp);a++)t.has(`${r}[${a}]`)&&n.set(`${r}[${a}]`,[...i,a]);return}for(let a of Object.keys(e))Bp(e[a],t,n,r?`${r}.${a}`:a,[...i,a])}function Vp(e,t){let n=e;for(let e of t){if(typeof n!=`object`||!n)return;if(typeof e==`number`){if(!zp(n)||n.length>Lp)return;for(let e=0;e<n.length;e++){let t=n[e];if(t!==null&&typeof t!=`number`&&typeof t!=`bigint`&&typeof t!=`boolean`)return}let t=n[e];return t===null?NaN:t===void 0?void 0:Number(t)}if(zp(n))return;n=n[e]}switch(typeof n){case`number`:case`string`:return n;case`bigint`:return Number(n);case`boolean`:return+!!n;default:return}}var Hp=`damaged LZ4 data`;function Up(e,t){let n=new Uint8Array(t),r=0,i=0,a=()=>{if(r+4>e.length)throw Error(Hp);let t=(e[r]|e[r+1]<<8|e[r+2]<<16|e[r+3]<<24)>>>0;return r+=4,t};for(;r<e.length;){let o=a();if((o&4294967280)==407710288){r+=a();continue}if(o!==407708164||r+3>e.length)throw Error(Hp);let s=e[r];if(s>>6!=1)throw Error(Hp);for(r+=3+(s&8?8:0)+(s&1?4:0);;){let o=a();if(o===0)break;let c=o&2147483647;if(r+c>e.length)throw Error(Hp);if(o&2147483648){if(i+c>t)throw Error(Hp);n.set(e.subarray(r,r+c),i),i+=c}else i=Wp(e,r,r+c,n,i);r+=c+(s&16?4:0)}s&4&&(r+=4)}if(r>e.length||i!==t)throw Error(Hp);return n}function Wp(e,t,n,r,i){let a=r=>{if(r!==15)return r;for(let i=255;i===255;r+=i){if(t>=n)throw Error(Hp);i=e[t++]}return r};for(;t<n;){let o=e[t++],s=a(o>>4);if(t+s>n||i+s>r.length)throw Error(Hp);if(r.set(e.subarray(t,t+s),i),t+=s,i+=s,t===n)return i;if(t+2>n)throw Error(Hp);let c=e[t]|e[t+1]<<8;t+=2;let l=a(o&15)+4;if(c===0||c>i||i+l>r.length)throw Error(Hp);if(c>=l)r.copyWithin(i,i-c,i-c+l);else for(let e=0;e<l;e++)r[i+e]=r[i+e-c];i+=l}throw Error(Hp)}var Gp=`This MCAP file is damaged (its records could not be read).`,Kp=e=>e instanceof Error&&e.name===`AbortError`?e:Error(Gp),qp=e=>{if(e>BigInt(1073741824))throw Error(Gp);return Number(e)},Jp={zstd:(e,t)=>ip(e,new Uint8Array(qp(t))),lz4:(e,t)=>Up(e,qp(t))};async function Yp(e){let t;try{t=await Of.Initialize({readable:{size:async()=>BigInt(e.size),read:async(t,n)=>e.slice(Number(t),Number(n))},decompressHandlers:Jp})}catch{return null}return(t.chunkIndexes.length>0||t.statistics?.messageCount===0n)&&t.chunkIndexes.every(e=>e.messageIndexOffsets.size>0)?t:null}async function*Xp(e,t){let n=new Af({decompressHandlers:Jp});try{for await(let r of e.windows(0,e.size)){t?.throwIfAborted(),n.append(r.bytes);for(let e;e=n.nextRecord();)yield e}}catch(e){throw Kp(e)}}async function*Zp(e){try{for await(let t of e)yield t}catch(e){throw Kp(e)}}var Qp=(e,t)=>({messageEncoding:e.messageEncoding,schemaName:t?.name??``,schemaEncoding:t?.encoding??``,schemaData:t?.data??new Uint8Array}),$p=100,em=class{seen=new Map;skipped=new Set;n=0;count=0;first=null;last=null;unsorted=!1;decoder=null;id;topic;info;constructor(e,t,n){this.id=e,this.topic=t,this.info=n}add(e){if(this.count++,(this.first===null||e.logTime<this.first)&&(this.first=e.logTime),this.last!==null&&e.logTime<this.last?this.unsorted=!0:this.last=e.logTime,this.n>=$p)return;if(this.n++,this.decoder===null)try{this.decoder=Ip(this.info)}catch{this.decoder=`its schema could not be read; skipped.`}if(typeof this.decoder==`string`)return;let t=new Map;try{Rp(this.decoder(e.data),``,t,this.skipped)}catch{return}for(let[e,n]of t)this.seen.has(e)||this.seen.set(e,typeof n==`string`)}},tm=946684800n*1000000000n,nm=8192,rm=65536;async function*im(e,t){let n=e.plan.state,r=e=>{e.cap=e.t.samples<0?nm:Math.max(1,Math.min(nm,e.t.samples-e.start)),e.time=new Float64Array(e.cap),e.cols=e.sel.map(t=>e.t.text[t]?Array(e.cap).fill(null):new Float64Array(e.cap))},i=new Map;for(let t of e.selection){let a=n.topics[t.group],o=Ne(e,t.group),s={g:t.group,t:a,sel:o,text:o.map(e=>a.text[e]),decode:Ip(a.info),at:o.map(()=>void 0),want:new Set(o.map(e=>a.paths[e])),time:new Float64Array,cols:[],n:0,cap:0,start:0};r(s),i.set(a.id,s)}let a=e=>{let t=e.n===e.cap,n={group:e.g,time:t?e.time:e.time.slice(0,e.n),start:e.start,length:e.n,columns:e.cols.map(n=>t?n:n.slice(0,e.n))};return e.start+=e.n,e.n=0,r(e),n},o=0;for await(let r of t){if(++o&1023||e.signal?.throwIfAborted(),o%rm===0)for(let e of i.values())e.n&&(yield a(e));let t=i.get(r.channelId);if(!t)continue;let s;try{s=t.decode(r.data)}catch{s=void 0}if(t.want.size&&s!==void 0){let e=new Map;Bp(s,t.want,e),t.sel.forEach((n,r)=>{t.at[r]??=e.get(t.t.paths[n])});for(let n of e.keys())t.want.delete(n)}t.time[t.n]=Number(r.logTime-n.t0)/1e9;for(let e=0;e<t.sel.length;e++){let n=t.at[e],r=n&&s!==void 0?Vp(s,n):void 0;t.text[e]?t.cols[e][t.n]=r===void 0?null:String(r):t.cols[e][t.n]=typeof r==`number`?r:NaN}++t.n===t.cap&&(yield a(t))}for(let e of i.values())e.n&&(yield a(e))}async function*am(e,t,n){let r=[];for await(let i of Xp(e,n))i.type===`Message`&&(t.has(i.channelId)?r.push({...i,data:i.data.slice()}):yield i);yield*r.sort((e,t)=>e.logTime<t.logTime?-1:+(e.logTime>t.logTime))}var om={...Se,async plan(e,t){let n=await Yp(t),r=[],i,a=new Map;if(n){i=n.header;for(let[e,t]of n.statistics?.channelMessageCounts??[])a.set(e,Number(t));for(let e of[...n.channelsById.values()].sort((e,t)=>e.id-t.id)){let t=new em(e.id,e.topic,Qp(e,n.schemasById.get(e.schemaId)));r.push(t);for await(let r of Zp(n.readMessages({topics:[e.topic]})))if(r.channelId===e.id&&(t.add(r),t.n>=$p))break}}else{let e=new Map,n=new Map;for await(let a of Xp(t))if(a.type===`Header`)i=a;else if(a.type===`Schema`)e.set(a.id,a);else if(a.type===`Channel`&&!n.has(a.id)){let t=new em(a.id,a.topic,Qp(a,e.get(a.schemaId)));n.set(a.id,t),r.push(t)}else a.type===`Message`&&n.get(a.channelId)?.add(a);for(let e of r)a.set(e.id,e.count);r.sort((e,t)=>e.id-t.id)}let o=[],s=[],c=null;for(let e of r){e.first!==null&&(c===null||e.first<c)&&(c=e.first);let t=[...e.skipped],n=typeof e.decoder==`string`?e.decoder:e.n===0?`no messages; skipped.`:e.seen.size===0?`no numbers${t.length?` (skipped ${t.slice(0,5).join(`, `)})`:``}.`:null;if(n){o.push(`${e.topic}: ${n}`);continue}t.length&&o.push(`${e.topic}: skipped ${t.slice(0,5).join(`, `)}${t.length>5?`, …`:``}.`),s.push({id:e.id,topic:e.topic,info:e.info,paths:[...e.seen.keys()],text:[...e.seen.values()],samples:a.get(e.id)??-1,unsorted:e.unsorted})}let l=C(s.map(e=>e.topic),[]),u=s.map((e,t)=>{let n=C(e.paths);return{name:l[t],channels:n.map((t,n)=>({name:t,unit:``,...e.text[n]?{text:!0}:{}})),samples:e.samples,time:{kind:`timestamps`},rateHz:null,irregular:!0}}),d=i?.profile??``;return{format:d?`MCAP (${d})`:`MCAP`,startTime:c!==null&&c>=tm?new Date(Number(c/1000000n)).toISOString():null,groups:u,meta:i?{profile:d,library:i.library}:{},events:[],notes:o,interleaved:!n,state:{indexed:!!n,topics:s,t0:c??0n}}},async*stream(e){let t=e.plan.state,n=t.indexed?await Yp(e.io):null;if(t.indexed&&!n)throw Error(Gp);let r=[...new Set(e.selection.map(e=>t.topics[e.group].topic))],i=new Set(e.selection.map(e=>t.topics[e.group]).filter(e=>e.unsorted).map(e=>e.id));yield*im(e,n?Zp(n.readMessages({topics:r})):am(e.io,i,e.signal))},async*streamGroup(e,t){let n=await Yp(e.io);if(!n)throw Error(Gp);yield*im(e,Zp(n.readMessages({topics:[e.plan.state.topics[t].topic]})))}},sm={container:`89738606-f1c3-11cf-9d89-0080c72e70a3`,dataSource:`89738619-f1c3-11cf-9d89-0080c72e70a3`,monitorSettings:`b48d858c-f5f5-11cf-9d89-0080c72e70a3`,observation:`8973861a-f1c3-11cf-9d89-0080c72e70a3`},q={title:`8973860d-f1c3-11cf-9d89-0080c72e70a3`,compressionStyle:`8973861b-f1c3-11cf-9d89-0080c72e70a3`,compressionAlgorithm:`8973861c-f1c3-11cf-9d89-0080c72e70a3`,dataSourceName:`b48d8587-f5f5-11cf-9d89-0080c72e70a3`,channelDefinitions:`b48d858d-f5f5-11cf-9d89-0080c72e70a3`,oneChannelDefinition:`b48d858e-f5f5-11cf-9d89-0080c72e70a3`,channelDefinitionIndex:`b48d858f-f5f5-11cf-9d89-0080c72e70a3`,channelName:`b48d8590-f5f5-11cf-9d89-0080c72e70a3`,phaseId:`b48d8591-f5f5-11cf-9d89-0080c72e70a3`,quantityTypeId:`b48d8592-f5f5-11cf-9d89-0080c72e70a3`,quantityMeasuredId:`c690e872-f755-11cf-9d89-0080c72e70a3`,seriesDefinitions:`b48d8598-f5f5-11cf-9d89-0080c72e70a3`,oneSeriesDefinition:`b48d859a-f5f5-11cf-9d89-0080c72e70a3`,valueTypeId:`b48d859c-f5f5-11cf-9d89-0080c72e70a3`,quantityUnitsId:`b48d859b-f5f5-11cf-9d89-0080c72e70a3`,quantityCharacteristicId:`3d786f9e-f76e-11cf-9d89-0080c72e70a3`,storageMethodId:`b48d85a1-f5f5-11cf-9d89-0080c72e70a3`,valueTypeName:`b48d859d-f5f5-11cf-9d89-0080c72e70a3`,useTransducer:`62f28181-f9c4-11cf-9d89-0080c72e70a3`,channelSettingsArray:`62f28182-f9c4-11cf-9d89-0080c72e70a3`,oneChannelSetting:`3d786f9a-f76e-11cf-9d89-0080c72e70a3`,xdSystemSideRatio:`62f2818a-f9c4-11cf-9d89-0080c72e70a3`,xdMonitorSideRatio:`62f2818b-f9c4-11cf-9d89-0080c72e70a3`,observationName:`3d786f8a-f76e-11cf-9d89-0080c72e70a3`,timeStart:`3d786f8c-f76e-11cf-9d89-0080c72e70a3`,timeTriggered:`3d786f8e-f76e-11cf-9d89-0080c72e70a3`,channelInstances:`3d786f91-f76e-11cf-9d89-0080c72e70a3`,oneChannelInstance:`3d786f92-f76e-11cf-9d89-0080c72e70a3`,seriesInstances:`3d786f93-f76e-11cf-9d89-0080c72e70a3`,oneSeriesInstance:`3d786f94-f76e-11cf-9d89-0080c72e70a3`,seriesScale:`3d786f96-f76e-11cf-9d89-0080c72e70a3`,seriesOffset:`3d786f97-f76e-11cf-9d89-0080c72e70a3`,seriesValues:`3d786f99-f76e-11cf-9d89-0080c72e70a3`,seriesShareChannelIndex:`8973861f-f1c3-11cf-9d89-0080c72e70a3`,seriesShareSeriesIndex:`89738620-f1c3-11cf-9d89-0080c72e70a3`},cm={"67f6af87-f753-11cf-9d89-0080c72e70a3":[`histogram`,`histograms`],"67f6af88-f753-11cf-9d89-0080c72e70a3":[`3D histogram`,`3D histograms`],"67f6af89-f753-11cf-9d89-0080c72e70a3":[`CPF curve`,`CPF curves`],"67f6af8b-f753-11cf-9d89-0080c72e70a3":[`magnitude-duration table`,`magnitude-duration tables`],"67f6af8d-f753-11cf-9d89-0080c72e70a3":[`magnitude-duration table`,`magnitude-duration tables`],"67f6af8e-f753-11cf-9d89-0080c72e70a3":[`magnitude-duration table`,`magnitude-duration tables`]},lm=`c690e862-f755-11cf-9d89-0080c72e70a3`,um={"67f6af97-f753-11cf-9d89-0080c72e70a3":``,"67f6af98-f753-11cf-9d89-0080c72e70a3":`Min`,"67f6af99-f753-11cf-9d89-0080c72e70a3":`Max`,"67f6af9a-f753-11cf-9d89-0080c72e70a3":`Avg`,"67f6af9b-f753-11cf-9d89-0080c72e70a3":`Inst`,"3d786f9d-f76e-11cf-9d89-0080c72e70a3":`Angle`,"dc762340-3c56-11d2-ae44-0060083a2628":`Angle Min`,"dc762341-3c56-11d2-ae44-0060083a2628":`Angle Max`,"dc762342-3c56-11d2-ae44-0060083a2628":`Angle Avg`,"67f6af9c-f753-11cf-9d89-0080c72e70a3":`P1`,"67f6af9d-f753-11cf-9d89-0080c72e70a3":`P5`,"67f6af9e-f753-11cf-9d89-0080c72e70a3":`P10`,"67f6af9f-f753-11cf-9d89-0080c72e70a3":`P90`,"c690e860-f755-11cf-9d89-0080c72e70a3":`P95`,"c690e861-f755-11cf-9d89-0080c72e70a3":`P99`,"c690e868-f755-11cf-9d89-0080c72e70a3":`Freq`,"c690e870-f755-11cf-9d89-0080c72e70a3":`Count`,"b82b5c82-55c7-11d5-a4b3-444553540000":`Status`},dm={"a6b31adf-b451-11d1-ae17-0060083a2628":``,"a6b31add-b451-11d1-ae17-0060083a2628":``,"a6b31ae9-b451-11d1-ae17-0060083a2628":`Spectra`,"a6b31ae2-b451-11d1-ae17-0060083a2628":`Peak`,"a6b31ae5-b451-11d1-ae17-0060083a2628":`RMS`,"a6b31adc-b451-11d1-ae17-0060083a2628":`HRMS`,"07ef68af-9ff5-11d2-b30b-006008b37183":`Frequency`,"a6b31aec-b451-11d1-ae17-0060083a2628":`THD`,"a6b31ad4-b451-11d1-ae17-0060083a2628":`EvenTHD`,"a6b31ae0-b451-11d1-ae17-0060083a2628":`OddTHD`,"a6b31ad2-b451-11d1-ae17-0060083a2628":`Crest factor`,"a6b31adb-b451-11d1-ae17-0060083a2628":`FormFactor`,"a6b31ad0-b451-11d1-ae17-0060083a2628":`ArithSum`,"a6b31ae7-b451-11d1-ae17-0060083a2628":`S0S1`,"a6b31ae8-b451-11d1-ae17-0060083a2628":`S2S1`,"a6b31aea-b451-11d1-ae17-0060083a2628":`Pos seq`,"d71a4b91-3c92-11d4-9f2c-002078e0b723":`Neg seq`,"d71a4b92-3c92-11d4-9f2c-002078e0b723":`Zero seq`,"a6b31ad1-b451-11d1-ae17-0060083a2628":`Unbalance`,"f3d216e0-2aa5-11d5-a4b3-444553540000":`TotalTHDRMS`,"f3d216e1-2aa5-11d5-a4b3-444553540000":`OddTHDRMS`,"f3d216e2-2aa5-11d5-a4b3-444553540000":`EvenTHDRMS`,"f3d216e3-2aa5-11d5-a4b3-444553540000":`TID`,"f3d216e4-2aa5-11d5-a4b3-444553540000":`TIDRMS`,"f3d216e5-2aa5-11d5-a4b3-444553540000":`IHRMS`,"53be6ba8-0789-455b-9a95-da128683dda7":`SpectraHGroup`,"5e51e006-9c95-4c5e-878f-7ca87c0d2a0e":`SpectraIGroup`,"a6b31aeb-b451-11d1-ae17-0060083a2628":`TIF`,"a6b31ad6-b451-11d1-ae17-0060083a2628":`FlkrMagAvg`,"a6b31ad8-b451-11d1-ae17-0060083a2628":`FlkrMaxDVV`,"a6b31ad5-b451-11d1-ae17-0060083a2628":`FlkrFreqMax`,"a6b31ad7-b451-11d1-ae17-0060083a2628":`FlkrMagMax`,"a6b31ada-b451-11d1-ae17-0060083a2628":`FlkrWgtAvg`,"a6b31ad9-b451-11d1-ae17-0060083a2628":`FlkrSpectrum`,"515bf320-71ca-11d4-a4b3-444553540000":`Pst`,"515bf321-71ca-11d4-a4b3-444553540000":`Plt`,"f3d216e6-2aa5-11d5-a4b3-444553540000":`TIFRMS`,"2257ec05-06ea-4709-b43a-0c00534d554a":`FlkrPLTSlide`,"4d693eec-5d1d-4531-993a-793b5356c63d":`FlkrPiLPF`,"126de61c-6691-4d16-8fdf-46482bca4694":`FlkrPiMax`,"e065b621-ffdb-4598-9330-4d09353988b6":`FlkrPiRoot`,"7d11f283-1ce7-4e58-8af0-79048793b8a7":`FlkrPiRootLPF`,"a6b31ade-b451-11d1-ae17-0060083a2628":`IT`,"07ef68a0-9ff5-11d2-b30b-006008b37183":`RMSDemand`,"8786ca10-9113-11d3-b930-0050da2b1f4d":`ANSITDF`,"8786ca11-9113-11d3-b930-0050da2b1f4d":`K-factor`,"f3d216e7-2aa5-11d5-a4b3-444553540000":`TDD`,"72e82a44-336c-11d5-a4b3-444553540000":`RMSPeakDemand`,"a6b31ae1-b451-11d1-ae17-0060083a2628":`P`,"a6b31ae4-b451-11d1-ae17-0060083a2628":`Q`,"a6b31ae6-b451-11d1-ae17-0060083a2628":`S`,"a6b31ae3-b451-11d1-ae17-0060083a2628":`PF`,"a6b31ad3-b451-11d1-ae17-0060083a2628":`DF`,"07ef68a1-9ff5-11d2-b30b-006008b37183":`PDemand`,"07ef68a2-9ff5-11d2-b30b-006008b37183":`QDemand`,"07ef68a3-9ff5-11d2-b30b-006008b37183":`SDemand`,"07ef68a4-9ff5-11d2-b30b-006008b37183":`DFDemand`,"07ef68a5-9ff5-11d2-b30b-006008b37183":`PFDemand`,"672d0305-7810-11d4-a4b3-444553540000":`PPredDemand`,"672d0306-7810-11d4-a4b3-444553540000":`QPredDemand`,"672d0307-7810-11d4-a4b3-444553540000":`SPredDemand`,"672d030a-7810-11d4-a4b3-444553540000":`PCoQDemand`,"672d030b-7810-11d4-a4b3-444553540000":`PCoSDemand`,"672d030d-7810-11d4-a4b3-444553540000":`QCoPDemand`,"672d030e-7810-11d4-a4b3-444553540000":`QCoSDemand`,"07ef68ad-9ff5-11d2-b30b-006008b37183":`DFCoSDemand`,"07ef68ae-9ff5-11d2-b30b-006008b37183":`PFCoSDemand`,"672d0308-7810-11d4-a4b3-444553540000":`PFCoPDemand`,"672d0309-7810-11d4-a4b3-444553540000":`PFCoQDemand`,"672d030f-7810-11d4-a4b3-444553540000":`AngleFund`,"672d0310-7810-11d4-a4b3-444553540000":`QFund`,"672d0311-7810-11d4-a4b3-444553540000":`PFVector`,"672d0312-7810-11d4-a4b3-444553540000":`DFVector`,"672d0314-7810-11d4-a4b3-444553540000":`SVector`,"672d0315-7810-11d4-a4b3-444553540000":`SVectorFund`,"672d0316-7810-11d4-a4b3-444553540000":`SFund`,"672d0317-7810-11d4-a4b3-444553540000":`SCoPDemand`,"672d0318-7810-11d4-a4b3-444553540000":`SCoQDemand`,"1c39fb00-a6aa-11d4-a4b3-444553540000":`PFArith`,"1c39fb01-a6aa-11d4-a4b3-444553540000":`DFArith`,"1c39fb02-a6aa-11d4-a4b3-444553540000":`SArith`,"1c39fb03-a6aa-11d4-a4b3-444553540000":`SArithFund`,"72e82a43-336c-11d5-a4b3-444553540000":`SPeakDemand`,"72e82a42-336c-11d5-a4b3-444553540000":`QPeakDemand`,"72e82a41-336c-11d5-a4b3-444553540000":`PPeakDemand`,"b82b5c80-55c7-11d5-a4b3-444553540000":`PHarmonic`,"b82b5c81-55c7-11d5-a4b3-444553540000":`PHarmonicUnsigned`,"1cdda475-1ebb-42d8-8087-d01b0b5cfa97":`PFund`,"07ef68a6-9ff5-11d2-b30b-006008b37183":`PIntg`,"07ef68a7-9ff5-11d2-b30b-006008b37183":`PIntgPos`,"672d0300-7810-11d4-a4b3-444553540000":`PIntgPosFund`,"07ef68a8-9ff5-11d2-b30b-006008b37183":`PIntgNeg`,"672d0301-7810-11d4-a4b3-444553540000":`PIntgNegFund`,"07ef68a9-9ff5-11d2-b30b-006008b37183":`QIntg`,"07ef68aa-9ff5-11d2-b30b-006008b37183":`QIntgPos`,"672d0303-7810-11d4-a4b3-444553540000":`QIntgPosFund`,"672d0304-7810-11d4-a4b3-444553540000":`QIntgNegFund`,"07ef68ab-9ff5-11d2-b30b-006008b37183":`QIntgNeg`,"07ef68ac-9ff5-11d2-b30b-006008b37183":`SIntg`,"672d0313-7810-11d4-a4b3-444553540000":`SIntgFund`,"f098a9a0-3ee4-11d5-a4b3-444553540000":`PIVLIntg`,"f098a9a1-3ee4-11d5-a4b3-444553540000":`PIVLIntgPos`,"f098a9a2-3ee4-11d5-a4b3-444553540000":`PIVLIntgPosFund`,"f098a9a3-3ee4-11d5-a4b3-444553540000":`PIVLIntgNeg`,"f098a9a4-3ee4-11d5-a4b3-444553540000":`PIVLIntgNegFund`,"f098a9a5-3ee4-11d5-a4b3-444553540000":`QIVLIntg`,"f098a9a6-3ee4-11d5-a4b3-444553540000":`QIVLIntgPos`,"f098a9a7-3ee4-11d5-a4b3-444553540000":`QIVLIntgPosFund`,"f098a9a8-3ee4-11d5-a4b3-444553540000":`QIVLIntgNegFund`,"f098a9a9-3ee4-11d5-a4b3-444553540000":`QIVLIntgNeg`,"f098a9aa-3ee4-11d5-a4b3-444553540000":`SIVLIntg`,"f098a9ab-3ee4-11d5-a4b3-444553540000":`SIVLIntgFund`,"d347ba65-e34c-11d4-82d9-00e09872a094":`DAxisField`,"d347ba64-e34c-11d4-82d9-00e09872a094":`QAxis`,"d347ba62-e34c-11d4-82d9-00e09872a094":`Rotational`,"d347ba63-e34c-11d4-82d9-00e09872a094":`DAxis`,"d347ba61-e34c-11d4-82d9-00e09872a094":`Linear`,"5202bd07-245c-11d5-a4b3-444553540000":`TransferFunc`,"b82b5c83-55c7-11d5-a4b3-444553540000":`Status`},fm=`This PQDIF file is damaged.`,pm=()=>{throw Error(fm)},mm=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function hm(e,t){let n=n=>mm[e[t+n]];return`${n(3)}${n(2)}${n(1)}${n(0)}-${n(5)}${n(4)}-${n(7)}${n(6)}-${n(8)}${n(9)}-${n(10)}${n(11)}${n(12)}${n(13)}${n(14)}${n(15)}`}var gm={1:1,2:2,3:4,10:1,11:2,20:1,21:2,22:4,30:1,31:2,32:4,40:4,41:8,42:8,43:16,50:12,60:16},_m=e=>gm[e]??0,vm=64*1024;async function ym(e,t){if(t<4)return[];let n=Math.floor(t/28)+1,r=async t=>{let n=await e(t,4);return new DataView(n.buffer,n.byteOffset,4).getInt32(0,!0)},i=async(a,o)=>{(o>32||a+4>t)&&pm();let s=await r(a);(s<0||a+4+s*28>t||(n-=s)<0)&&pm();let c=await e(a+4,s*28),l=new DataView(c.buffer,c.byteOffset,c.byteLength),u=[];for(let n=0,d=0;n<s;n++,d+=28){let n=c[d+16],s=c[d+17],f={tag:hm(c,d),type:n,phys:s,at:a+4+d+20,size:1,kids:[],bytes:null},p=gm[s]??0,m=n===2&&c[d+18];if(!m){let e=l.getInt32(d+20,!0);(e<0||e>=t)&&pm(),f.at=e}if(n===1)f.kids=await i(f.at,o+1);else if(n===3){if(!p||f.at+4>t)continue;f.size=await r(f.at),f.at+=4,(f.size<0||f.at+f.size*p>t)&&pm(),f.size*p<=vm&&(f.bytes=(await e(f.at,f.size*p)).slice())}else if(n===2){if(!p||f.at+p>t)continue;f.bytes=m?c.slice(d+20,d+20+p):(await e(f.at,p)).slice()}else continue;u.push(f)}return u};return i(0,0)}async function bm(e,t){return t.bytes??=await e(t.at,t.size*_m(t.phys)),t.bytes}function xm(e,t,n){switch(t){case 1:case 10:case 30:return e.getUint8(n);case 2:case 11:case 31:return e.getUint16(n,!0);case 3:case 32:return e.getUint32(n,!0);case 20:return e.getInt8(n);case 21:return e.getInt16(n,!0);case 22:return e.getInt32(n,!0);case 40:return e.getFloat32(n,!0);case 41:return e.getFloat64(n,!0);default:return NaN}}var Sm=e=>{if(!e.bytes)throw Error(fm);return new DataView(e.bytes.buffer,e.bytes.byteOffset,e.bytes.byteLength)},Cm=(e,t=0)=>xm(Sm(e),e.phys,t*(gm[e.phys]??0)),wm=(e,t=0)=>{let n=Sm(e);return[n.getUint32(t*12,!0),n.getFloat64(t*12+4,!0)]},Tm=([e,t])=>(e-25569)*86400+t;function Em(e){if(!e||e.type!==3||!e.bytes)return``;let t=e.phys===11?new TextDecoder(`utf-16le`).decode(e.bytes):new TextDecoder(`latin1`).decode(e.bytes),n=t.indexOf(`\0`);return(n<0?t:t.slice(0,n)).trim()}var Dm=e=>e&&e.phys===60&&e.bytes?hm(e.bytes,0):``,J=(e,t)=>e?.find(e=>e.tag===t),Om=(e,t)=>e?.filter(e=>e.tag===t)??[];async function km(e){let t=[];for(let n=0;;){n+64>e.size&&pm();let r=await e.read(n,64);hm(r,0)!==`4a111440-e49f-11cf-9900-505144494600`&&pm();let i=new DataView(r.buffer,r.byteOffset,r.byteLength),a=i.getInt32(36,!0),o=i.getInt32(40,!0);if((a<0||n+64+a>e.size)&&pm(),t.push({type:hm(r,16),body:n+64,size:a}),o===0||o===e.size)return t;(o<n+64+a||o>e.size)&&pm(),n=o}}async function Am(e,t,n){let i=await e.slice(t.body,t.size);return!n||i.length===0?i:wt(i,-1,Math.min(m,r(i.length)))}async function jm(e,t,n){if(n){let n=await Am(e,t,!0);return{size:n.length,read:async(e,t)=>n.subarray(e,e+t)}}return{size:t.size,read:(n,r)=>e.read(t.body+n,r)}}var Mm=65536,Nm=1,Pm=2,Fm=4,Im=new Set([10,11,42,43,50,60]),Lm=[``,`V`,`I`,`Power`,`Energy`,`Temperature`,`Pressure`,`Charge`,`Electric field`,`Magnetic field`,`Velocity`,`Bearing`,`Force`,`Torque`,`Position`,`Flux linkage`,`Flux density`,`Status`],Rm=[``,`A-N`,`B-N`,`C-N`,`N-G`,`A-B`,`B-C`,`C-A`,`Residual`,`Net`,`Pos seq`,`Neg seq`,`Zero seq`,`Total`,`L-N avg`,`L-L avg`,`Worst`,`Plus`,`Minus`],zm=`..s.cycles...V.A.VA.W.var.ohm.S.V/A.J.Hz.°C.°.dB.%.pu.samples.varh.Wh.VAh.m/s.mph.bar.Pa.N.N·m.rpm.rad/s.m.Wb-turns.T.Wb.V/V.A/A.A/V`.split(`.`),Bm=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Vm=e=>e&&e.type===2?Cm(e):0,Hm=(e,t)=>(e[0]-t[0])*86400+(e[1]-t[1]);function Um(e){let t=Om(J(e,q.channelDefinitions)?.kids,q.oneChannelDefinition).map(e=>({name:Em(J(e.kids,q.channelName)),phase:Vm(J(e.kids,q.phaseId)),measured:Vm(J(e.kids,q.quantityMeasuredId)),quantityType:Dm(J(e.kids,q.quantityTypeId)),series:Om(J(e.kids,q.seriesDefinitions)?.kids,q.oneSeriesDefinition).map(e=>({valueType:Dm(J(e.kids,q.valueTypeId)),units:Vm(J(e.kids,q.quantityUnitsId)),characteristic:Dm(J(e.kids,q.quantityCharacteristicId)),storage:Vm(J(e.kids,q.storageMethodId))||Nm,name:Em(J(e.kids,q.valueTypeName))}))}));return{name:Em(J(e,q.dataSourceName)),defs:t}}function Wm(e){let t=new Map;for(let n of Om(J(e,q.channelSettingsArray)?.kids,q.oneChannelSetting)){let e=Vm(J(n.kids,q.channelDefinitionIndex));if(t.has(e))continue;let r=J(n.kids,q.xdSystemSideRatio),i=J(n.kids,q.xdMonitorSideRatio);t.set(e,r&&i?Vm(r)/Vm(i):null)}return{useTransducer:Vm(J(e,q.useTransducer))!==0,ratio:t}}var Gm=e=>Om(J(e,q.channelInstances)?.kids,q.oneChannelInstance),Km=e=>Om(J(e?.kids,q.seriesInstances)?.kids,q.oneSeriesInstance);function qm(e,t,n,r=0){let i=Km(e[t])[n]?.kids;if(!i)return{};let a=J(i,q.seriesShareChannelIndex),o=J(i,q.seriesShareSeriesIndex),s=a&&o&&r<8?qm(e,Vm(a),Vm(o),r+1):{},c=J(i,q.seriesValues);return{values:s.values??(c?.type===3?c:void 0),scale:J(i,q.seriesScale)??s.scale,offset:J(i,q.seriesOffset)??s.offset}}var Jm=(e,t)=>t&Pm?[e.scale?Cm(e.scale):1,e.offset?Cm(e.offset):0]:[1,0];function Ym(e,t){let n=e.values,[r,i]=Jm(e,t);return{at:n.at,phys:n.phys,size:n.size,storage:t,scale:r,offset:i}}var Xm=e=>(e.storage&Fm)!==0&&e.phys!==50;function Zm(e){let t=Cm(e,0);if(!(Number.isInteger(t)&&t>=0&&1+2*t<=e.size))throw Error(fm);for(let n=0;n<t;n++){let t=Cm(e,1+2*n);if(!(Number.isInteger(t)&&t>=0))throw Error(fm)}return t}function Qm(e,t,n){if(!Xm({phys:e.phys,storage:t}))return e.size;let r=0;for(let t=0,n=Zm(e);t<n;t++)r+=Cm(e,1+2*t);if(r>n||r>128e6)throw Error(fm);return r}async function $m(e,t,n){let r=t.values,i=2166136261,a=r.size*_m(r.phys);for(let t=0;t<a;t+=1<<20){let n=r.bytes?r.bytes.subarray(t,t+(1<<20)):await e(r.at+t,Math.min(1<<20,a-t));for(let e=0;e<n.length;e++)i=Math.imul(i^n[e],16777619)}return`${n}|${r.phys}|${r.size}|${Jm(t,n).join(`,`)}|${i>>>0}`}function eh(e,t,n){let r=Lm[e.measured]??``,i=e.measured===2&&e.phase>=1&&e.phase<=3?`ABC`[e.phase-1]:e.phase>=19&&e.phase<=34?`General ${e.phase-18}`:Rm[e.phase]??``,a=dm[t.characteristic],o=um[t.valueType]??(t.name||`Series ${n+1}`);return a===void 0&&e.name?[e.name,o].filter(Boolean).join(` `):[...r||i?[r,i]:[e.name],a,o].filter(Boolean).join(` `)}async function th(e,t,n,r,i){let a=_m(e.phys),o=t=>{if(e.phys===50)return t;for(let n=0;n<t.length;n++)t[n]=(e.offset+t[n]*e.scale)*i+r;return t};if(Xm(e)){let n={tag:``,type:3,phys:e.phys,at:0,size:e.size,kids:[],bytes:await t(e.at,e.size*a)},r=Zm(n),i=0,s=0,c=0;return async(e,t)=>{let a=new Float64Array(t-e).fill(NaN);for(let e=0;e<a.length&&i<r;){let t=Cm(n,1+2*i),r=Cm(n,2+2*i),o=Math.min(t-s,a.length-e);for(let t=0;t<o;t++)a[e++]=c+(s+t)*r;s+=o,s>=t&&(c+=t*r,i++,s=0)}return o(a)}}return async(r,i)=>{let s=new Float64Array(i-r).fill(NaN),c=Math.min(i,e.size)-r;if(c>0){let i=Bm(await t(e.at+r*a,c*a));if(e.phys===50)for(let e=0;e<c;e++)s[e]=Hm([i.getUint32(e*12,!0),i.getFloat64(e*12+4,!0)],n);else for(let t=0;t<c;t++)s[t]=xm(i,e.phys,t*a)}return o(s)}}async function*nh(e,t){let n=Ne(e,t),r=e.plan.groups[t];if(n.length===0||r.samples<=0)return;let i=e.plan.state,a=i.groups[t],o=i.compressed?await Am(e.io,a.rec,!0):null,s=async(t,n)=>o?o.subarray(t,t+n):e.io.slice(a.rec.body+t,n),c=r.time.kind===`timestamps`?await th(a.time,s,i.t0,a.start,1):null,l=await Promise.all(n.map(e=>th(a.channels[e],s,i.t0,0,a.channels[e].ratio))),u=r.samples;for(let n=0;n<u;n+=Mm){e.signal?.throwIfAborted();let r=Math.min(u,n+Mm),i=c?await c(n,r):null,a=[];for(let e of l)a.push(await e(n,r));yield{group:t,time:i,start:n,length:r-n,columns:a}}}var rh=class{#e=new Map;add(e,t,n=1){if(n<=0)return;let r=this.#e.get(e);r?r.n+=n:this.#e.set(e,{many:t,n})}note(){return this.#e.size?`Skipped: ${[...this.#e].map(([e,{many:t,n}])=>`${n} ${n===1?e:t}`).join(`, `)}.`:null}},ih={...ve,async plan(e,t){let n=await km(t);if(n[0].type!==sm.container)throw Error(fm);let r=async(e,n)=>{let{read:r,size:i}=await jm(t,e,n);return{read:r,els:await ym(r,i)}},{els:i}=await r(n[0],!1),a=Vm(J(i,q.compressionStyle)),o=Vm(J(i,q.compressionAlgorithm));if(a===1)throw Error(`This PQDIF file compresses the whole file, a style IEEE 1159.3 deprecated, which Kymoscope cannot read.`);if(a===2&&o!==0&&o!==1)throw Error(`This PQDIF file is compressed with algorithm ${o} (not zlib), which Kymoscope cannot read.`);let s=a===2&&o===1,c={},l=Em(J(i,q.title));l&&(c.title=l);let u=new rh,d=[],f=null,p=0,m=[],h=[];for(let e of n.slice(1))if(e.type===sm.dataSource){let t=Um((await r(e,s)).els);d=t.defs,c.dataSource??=t.name}else if(e.type===sm.monitorSettings)f=Wm((await r(e,s)).els);else if(e.type===sm.observation){let{read:t,els:n}=await r(e,s),i=J(n,q.timeStart);if(i?.phys!==50||i.type!==2)throw Error(fm);let a=wm(i),o=J(n,q.timeTriggered);o?.phys===50&&o.type===2&&h.push(wm(o));let c=p++,l=Em(J(n,q.observationName))||`Observation ${c+1}`,g=new Map,_=Gm(n),v=0;for(let e of _)for(let t of Km(e)){let e=J(t.kids,q.seriesValues);e?.type===3&&(v=Math.max(v,e.size))}for(let[n,r]of _.entries()){let i=Vm(J(r.kids,q.channelDefinitionIndex)),o=d[i];if(!o){u.add(`channel without a definition`,`channels without a definition`);continue}let s=cm[o.quantityType];if(s){u.add(...s);continue}let p=o.series.findIndex(e=>e.valueType===lm),m=p<0?{}:qm(_,n,p);if(!m.values){u.add(`series without a time series`,`series without a time series`,o.series.length-(p<0?0:1));continue}let h=o.series[p].storage,y=await $m(t,m,h),b=g.get(y);if(!b){let n=Ym(m,h);Xm(n)&&await bm(t,m.values);let r=Qm(m.values,h,v),i=Xm(n)&&n.size>=3&&Cm(m.values,0)===1?Cm(m.values,2)*n.scale:0;b={obs:c,rec:e,name:l,start:a,time:n,samples:r,rate:i>0?1/i:null,rateStart:n.offset,channels:[]},g.set(y,b)}let x=f?.useTransducer?f.ratio.get(i)??1:1,S=Km(r);o.series.forEach((e,t)=>{if(t===p)return;let r=t<S.length?qm(_,n,t):{};if(!r.values){u.add(`series defined without values`,`series defined without values`);return}let i=r.values.phys;if(i===10||i===11){u.add(`text series`,`text series`);return}if(Im.has(i)){u.add(`series with values that are not numbers`,`series with values that are not numbers`);return}b.channels.push({...Ym(r,e.storage),ratio:x,name:eh(o,e,t),channel:o.name,unit:zm[e.units]??``})})}for(let e of g.values())e.channels.length&&m.push(e)}if(m.length===0)throw Error(`This PQDIF file has no time series Kymoscope can read.`);let g=m.reduce((e,t)=>Tm(t.start)<Tm(e)?t.start:e,m[0].start),_=new Map,v=C(m.map(e=>{let t=_.get(e.obs)??0;return _.set(e.obs,t+1),t?`${e.name} (${t+1})`:e.name}),[]),y=m.map((e,t)=>{let n=Hm(e.start,g),r=new Map;for(let t of e.channels)r.set(t.name.toLowerCase(),(r.get(t.name.toLowerCase())??0)+1);let i=C(e.channels.map(e=>r.get(e.name.toLowerCase())>1&&e.channel?`${e.name} (${e.channel})`:e.name));return{name:v[t],channels:e.channels.map((e,t)=>({name:i[t],unit:e.unit})),samples:e.samples,time:e.rate?{kind:`rate`,rate:e.rate,start:n+e.rateStart}:{kind:`timestamps`},rateHz:e.rate,irregular:!0}}),b=h.map(e=>({time:Math.round(Hm(e,g)*1e6)/1e6,text:`Trigger`})).sort((e,t)=>e.time-t.time),x=[],S=u.note();S&&x.push(S),c.observations=String(p);let w={compressed:s,t0:g,groups:m.map(e=>({rec:e.rec,start:Hm(e.start,g),time:e.time,channels:e.channels.map(({at:e,phys:t,size:n,storage:r,scale:i,offset:a,ratio:o})=>({at:e,phys:t,size:n,storage:r,scale:i,offset:a,ratio:o}))}))},T=Tm(g)*1e3;return{format:s?`PQDIF (zlib)`:`PQDIF`,startTime:Math.abs(T)<=864e13?new Date(T).toISOString():null,groups:y,meta:c,events:b,notes:x,state:w}},streamGroup:(e,t)=>nh(e,t),async*stream(e){for(let t of e.selection)yield*nh(e,t.group)}},ah=[`BOOLEAN`,`INT32`,`INT64`,`INT96`,`FLOAT`,`DOUBLE`,`BYTE_ARRAY`,`FIXED_LEN_BYTE_ARRAY`],oh=[`PLAIN`,`GROUP_VAR_INT`,`PLAIN_DICTIONARY`,`RLE`,`BIT_PACKED`,`DELTA_BINARY_PACKED`,`DELTA_LENGTH_BYTE_ARRAY`,`DELTA_BYTE_ARRAY`,`RLE_DICTIONARY`,`BYTE_STREAM_SPLIT`,`ALP`],sh=[`REQUIRED`,`OPTIONAL`,`REPEATED`],ch=[`UTF8`,`MAP`,`MAP_KEY_VALUE`,`LIST`,`ENUM`,`DECIMAL`,`DATE`,`TIME_MILLIS`,`TIME_MICROS`,`TIMESTAMP_MILLIS`,`TIMESTAMP_MICROS`,`UINT_8`,`UINT_16`,`UINT_32`,`UINT_64`,`INT_8`,`INT_16`,`INT_32`,`INT_64`,`JSON`,`BSON`,`INTERVAL`],lh=[`UNCOMPRESSED`,`SNAPPY`,`GZIP`,`LZO`,`BROTLI`,`LZ4`,`ZSTD`,`LZ4_RAW`],uh=[`DATA_PAGE`,`INDEX_PAGE`,`DICTIONARY_PAGE`,`DATA_PAGE_V2`],dh=[`UNORDERED`,`ASCENDING`,`DESCENDING`],fh=[`SPHERICAL`,`VINCENTY`,`THOMAS`,`ANDOYER`,`KARNEY`];function ph(e){let t=mh(e);if(t.type===1)return{type:`Point`,coordinates:hh(e,t)};if(t.type===2)return{type:`LineString`,coordinates:gh(e,t)};if(t.type===3)return{type:`Polygon`,coordinates:_h(e,t)};if(t.type===4){let n=[];for(let r=0;r<t.count;r++)n.push(hh(e,mh(e)));return{type:`MultiPoint`,coordinates:n}}else if(t.type===5){let n=[];for(let r=0;r<t.count;r++)n.push(gh(e,mh(e)));return{type:`MultiLineString`,coordinates:n}}else if(t.type===6){let n=[];for(let r=0;r<t.count;r++)n.push(_h(e,mh(e)));return{type:`MultiPolygon`,coordinates:n}}else if(t.type===7){let n=[];for(let r=0;r<t.count;r++)n.push(ph(e));return{type:`GeometryCollection`,geometries:n}}else throw Error(`Unsupported geometry type: ${t.type}`)}function mh(e){let{view:t}=e,n=t.getUint8(e.offset++)===1,r=t.getUint32(e.offset,n);e.offset+=4;let i=r%1e3,a=Math.floor(r/1e3),o=0;i>1&&i<=7&&(o=t.getUint32(e.offset,n),e.offset+=4);let s=2;return a&&s++,a===3&&s++,{littleEndian:n,type:i,dim:s,count:o}}function hh(e,t){let n=[];for(let r=0;r<t.dim;r++){let r=e.view.getFloat64(e.offset,t.littleEndian);e.offset+=8,n.push(r)}return n}function gh(e,t){let n=[];for(let r=0;r<t.count;r++)n.push(hh(e,t));return n}function _h(e,t){let{view:n}=e,r=[];for(let i=0;i<t.count;i++){let i=n.getUint32(e.offset,t.littleEndian);e.offset+=4,r.push(gh(e,{...t,count:i}))}return r}var vh=new TextDecoder(`utf-8`,{ignoreBOM:!0}),yh=new TextDecoder,bh={timestampFromMilliseconds(e){return new Date(Number(e))},timestampFromMicroseconds(e){return new Date(Number(e/1000n))},timestampFromNanoseconds(e){return new Date(Number(e/1000000n))},dateFromDays(e){return new Date(e*864e5)},stringFromBytes(e){return e&&vh.decode(e)},jsonFromBytes(e){return e&&JSON.parse(yh.decode(e))},geometryFromBytes(e){return e&&ph({view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0})},geographyFromBytes(e){return e&&ph({view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0})},uuidFromBytes(e){if(!e)return;let t=Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``);return t.slice(0,8)+`-`+t.slice(8,12)+`-`+t.slice(12,16)+`-`+t.slice(16,20)+`-`+t.slice(20,32)}};function xh(e,t,n,r){if(t&&n.endsWith(`_DICTIONARY`)){let n=e;e instanceof Uint8Array&&!(t instanceof Uint8Array)&&(n=new t.constructor(e.length));for(let r=0;r<e.length;r++)n[r]=t[e[r]];return n}else return Sh(e,r)}function Sh(e,t){let{element:n,parsers:r,utf8:i=!0,schemaPath:a}=t,{type:o,converted_type:s,logical_type:c}=n,l=n.repetition_type!==`REQUIRED`;if(o===`BYTE_ARRAY`&&n.name===`inline`&&a?.at(-2)?.element.logical_type?.type===`FILE`||a?.some(e=>e.element.logical_type?.type===`VARIANT`)&&o===`BYTE_ARRAY`&&s!==`UTF8`&&c?.type!==`STRING`)return e;if(s===`DECIMAL`){let t=n.scale||0,r=10**t,i=Array(e.length);for(let n=0;n<i.length;n++)e[n]instanceof Uint8Array?i[n]=t>308?Ch(e[n])*10**-t:Ch(e[n])/r:i[n]=Number(e[n])/r;return i}if(!s&&o===`INT96`)return Array.from(e).map(e=>r.timestampFromNanoseconds(wh(e)));if(s===`DATE`)return Array.from(e).map(e=>r.dateFromDays(e));if(s===`TIMESTAMP_MILLIS`)return Array.from(e).map(e=>r.timestampFromMilliseconds(e));if(s===`TIMESTAMP_MICROS`)return Array.from(e).map(e=>r.timestampFromMicroseconds(e));if(s===`JSON`)return e.map(e=>r.jsonFromBytes(e));if(s===`BSON`)throw Error(`parquet bson not supported`);if(s===`INTERVAL`)throw Error(`parquet interval not supported`);if(c?.type===`GEOMETRY`)return e.map(e=>r.geometryFromBytes(e));if(c?.type===`GEOGRAPHY`)return e.map(e=>r.geographyFromBytes(e));if(c?.type===`UUID`)return e.map(e=>r.uuidFromBytes(e));if(s===`UTF8`||c?.type===`STRING`||i&&o===`BYTE_ARRAY`)return e.map(e=>r.stringFromBytes(e));if(s===`UINT_64`||c?.type===`INTEGER`&&c.bitWidth===64&&!c.isSigned){if(e instanceof BigInt64Array)return new BigUint64Array(e.buffer,e.byteOffset,e.length);let t=l?Array(e.length):new BigUint64Array(e.length);for(let n=0;n<t.length;n++)t[n]=e[n];return t}if(s===`UINT_32`||c?.type===`INTEGER`&&c.bitWidth===32&&!c.isSigned){if(e instanceof Int32Array)return new Uint32Array(e.buffer,e.byteOffset,e.length);let t=l?Array(e.length):new Uint32Array(e.length);for(let n=0;n<t.length;n++)t[n]=e[n]<0?4294967296+e[n]:e[n];return t}if(c?.type===`FLOAT16`)return Array.from(e).map(Th);if(c?.type===`TIMESTAMP`){let{unit:t}=c,n=r.timestampFromMilliseconds;t===`MICROS`&&(n=r.timestampFromMicroseconds),t===`NANOS`&&(n=r.timestampFromNanoseconds);let i=Array(e.length);for(let t=0;t<i.length;t++)i[t]=n(e[t]);return i}return e}function Ch(e){if(!e.length)return 0;let t=0n;for(let n of e)t=t*256n+BigInt(n);let n=e.length*8;return t>=2n**BigInt(n-1)&&(t-=2n**BigInt(n)),Number(t)}function wh(e){let t=(e>>64n)-2440588n,n=e&18446744073709551615n;return t*86400000000000n+n}function Th(e){if(!e)return;let t=e[1]<<8|e[0],n=t>>15?-1:1,r=t>>10&31,i=t&1023;return r===0?n*2**-14*(i/1024):r===31?i?NaN:n*(1/0):n*2**(r-15)*(1+i/1024)}function Eh(e,t,n){let r=e[t],i=[],a=1;if(r.num_children)for(;i.length<r.num_children;){let r=e[t+a],o=Eh(e,t+a,[...n,r.name]);a+=o.count,i.push(o)}return{count:a,element:r,children:i,path:n}}function Dh(e,t){return Oh(Eh(e,0,[]),t)}function Oh(e,t){let n=[e];for(let r of t){let i=e.children.find(e=>e.element.name===r);if(!i)throw Error(`parquet schema element not found: ${t}`);n.push(i),e=i}return n}function kh(e){let t=[];function n(e){if(e.children.length)for(let t of e.children)n(t);else t.push(e.path.join(`.`))}return n(e),t}function Ah(e){let t=0;for(let{element:n}of e)n.repetition_type===`REPEATED`&&t++;return t}function jh(e){let t=0;for(let{element:n}of e.slice(1))n.repetition_type!==`REQUIRED`&&t++;return t}function Mh(e){if(!e||e.element.converted_type!==`LIST`||e.children.length>1)return!1;let t=e.children[0];return!(t.children.length>1||t.element.repetition_type!==`REPEATED`)}function Nh(e){if(!e||e.element.converted_type!==`MAP`||e.children.length>1)return!1;let t=e.children[0];return!(t.children.length!==2||t.element.repetition_type!==`REPEATED`||t.children.find(e=>e.element.name===`key`)?.element.repetition_type===`REPEATED`||t.children.find(e=>e.element.name===`value`)?.element.repetition_type===`REPEATED`)}function Ph(e){if(e.length!==2)return!1;let[,t]=e;return!(t.element.repetition_type===`REPEATED`||t.children.length)}var Fh=0,Ih=1,Lh=2,Rh=3,zh=4,Bh=5,Vh=6,Hh=7,Uh=8,Wh=9,Gh=12;function Kh(e){let t={},n=0;for(;;){if(e.offset>=e.view.byteLength)throw Error(`thrift struct ended without STOP`);let r=e.view.getUint8(e.offset++),i=r&15;if(i===Fh)break;let a=r>>4;n=a?n+a:Xh(e),t[`field_${n}`]=qh(e,i)}return t}function qh(e,t){switch(t){case Ih:return!0;case Lh:return!1;case Rh:return e.view.getInt8(e.offset++);case zh:case Bh:return Xh(e);case Vh:return Zh(e);case Hh:{let t=e.view.getFloat64(e.offset,!0);return e.offset+=8,t}case Uh:{let t=Jh(e);if(e.offset+t>e.view.byteLength)throw Error(`thrift binary length ${t} exceeds remaining ${e.view.byteLength-e.offset} bytes`);let n=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t,n}case Wh:{let t=e.view.getUint8(e.offset++),n=t&15,r=t>>4;r===15&&(r=Jh(e));let i=n===Ih||n===Lh,a=Array(r);for(let t=0;t<r;t++)a[t]=i?qh(e,Rh)===1:qh(e,n);return a}case Gh:return Kh(e);default:throw Error(`thrift unhandled type: ${t}`)}}function Jh(e){let t=0,n=0;for(;;){let r=e.view.getUint8(e.offset++);if(t|=(r&127)<<n,!(r&128))return t;n+=7}}function Yh(e){let t=0n,n=0n;for(;;){let r=e.view.getUint8(e.offset++);if(t|=BigInt(r&127)<<n,!(r&128))return t;n+=7n}}function Xh(e){let t=Jh(e);return t>>>1^-(t&1)}function Zh(e){let t=Yh(e);return t>>1n^-(t&1n)}function Qh(e,t){let n=new Map,r=t?.find(({key:e})=>e===`geo`)?.value,i=(r&&JSON.parse(r)?.columns)??{};for(let[e,t]of Object.entries(i)){if(t.encoding!==`WKB`)continue;let r=t.edges===`spherical`?`GEOGRAPHY`:`GEOMETRY`,i=t.crs?.id??t.crs?.ids?.[0],a=i?`${i.authority}:${i.code.toString()}`:void 0;n.set(e,{type:r,crs:a})}for(let t=1;t<e.length;t++){let{logical_type:r,name:i,num_children:a,type:o}=e[t];if(a){t+=a;continue}o===`BYTE_ARRAY`&&!r&&(e[t].logical_type=n.get(i))}}var $h=1<<19,eg=new TextDecoder(`utf-8`,{ignoreBOM:!0});function tg(e){return e&&eg.decode(e)}async function ng(e,{parsers:t,initialFetchSize:n=$h,geoparquet:r=!0}={}){if(!e||!(e.byteLength>=0))throw Error(`parquet expected AsyncBuffer`);let i=Math.max(0,e.byteLength-n),a=await e.slice(i,e.byteLength),o=new DataView(a);if(o.getUint32(a.byteLength-4,!0)!==827474256)throw Error(`parquet file invalid (footer != PAR1)`);let s=o.getUint32(a.byteLength-8,!0);if(s>e.byteLength-8)throw Error(`parquet metadata length ${s} exceeds available buffer ${e.byteLength-8}`);if(s+8>n){let n=e.byteLength-s-8,o=await e.slice(n,i),c=new ArrayBuffer(s+8),l=new Uint8Array(c);return l.set(new Uint8Array(o)),l.set(new Uint8Array(a),i-n),rg(c,{parsers:t,geoparquet:r})}else return rg(a,{parsers:t,geoparquet:r})}function rg(e,{parsers:t,geoparquet:n=!0}={}){let r;if(e instanceof ArrayBuffer)r=new DataView(e);else if(e instanceof Uint8Array)r=new DataView(e.buffer,e.byteOffset,e.byteLength);else throw Error(`parquet expected ArrayBuffer or Uint8Array`);let i={...bh,...t};if(r.byteLength<8)throw Error(`parquet file is too short`);if(r.getUint32(r.byteLength-4,!0)!==827474256)throw Error(`parquet file invalid (footer != PAR1)`);let a=r.byteLength-8,o=r.getUint32(a,!0);if(o>r.byteLength-8)throw Error(`parquet metadata length ${o} exceeds available buffer ${r.byteLength-8}`);let s=a-o,c=Kh({view:r,offset:s}),l=c.field_1,u=c.field_2.map(e=>({type:ah[e.field_1],type_length:e.field_2,repetition_type:sh[e.field_3],name:tg(e.field_4),num_children:e.field_5,converted_type:ch[e.field_6],scale:e.field_7,precision:e.field_8,field_id:e.field_9,logical_type:ag(e.field_10)})),d=u.filter(e=>e.type),f=c.field_3,p=c.field_4.map(e=>({columns:e.field_1.map((e,t)=>({file_path:tg(e.field_1),file_offset:e.field_2,meta_data:e.field_3&&{type:ah[e.field_3.field_1],encodings:e.field_3.field_2?.map(e=>oh[e]),path_in_schema:e.field_3.field_3.map(tg),codec:lh[e.field_3.field_4],num_values:e.field_3.field_5,total_uncompressed_size:e.field_3.field_6,total_compressed_size:e.field_3.field_7,key_value_metadata:e.field_3.field_8?.map(e=>({key:tg(e.field_1),value:tg(e.field_2)})),data_page_offset:e.field_3.field_9,index_page_offset:e.field_3.field_10,dictionary_page_offset:e.field_3.field_11,statistics:sg(e.field_3.field_12,d[t],i),encoding_stats:e.field_3.field_13?.map(e=>({page_type:uh[e.field_1],encoding:oh[e.field_2],count:e.field_3})),bloom_filter_offset:e.field_3.field_14,bloom_filter_length:e.field_3.field_15,size_statistics:e.field_3.field_16&&{unencoded_byte_array_data_bytes:e.field_3.field_16.field_1,repetition_level_histogram:e.field_3.field_16.field_2,definition_level_histogram:e.field_3.field_16.field_3},geospatial_statistics:e.field_3.field_17&&{bbox:e.field_3.field_17.field_1&&{xmin:e.field_3.field_17.field_1.field_1,xmax:e.field_3.field_17.field_1.field_2,ymin:e.field_3.field_17.field_1.field_3,ymax:e.field_3.field_17.field_1.field_4,zmin:e.field_3.field_17.field_1.field_5,zmax:e.field_3.field_17.field_1.field_6,mmin:e.field_3.field_17.field_1.field_7,mmax:e.field_3.field_17.field_1.field_8},geospatial_types:e.field_3.field_17.field_2}},offset_index_offset:e.field_4,offset_index_length:e.field_5,column_index_offset:e.field_6,column_index_length:e.field_7,crypto_metadata:e.field_8,encrypted_column_metadata:e.field_9})),total_byte_size:e.field_2,num_rows:e.field_3,sorting_columns:e.field_4?.map(e=>({column_idx:e.field_1,descending:e.field_2,nulls_first:e.field_3})),file_offset:e.field_5,total_compressed_size:e.field_6,ordinal:e.field_7})),m=c.field_5?.map(e=>({key:tg(e.field_1),value:tg(e.field_2)})),h=tg(c.field_6);return n&&Qh(u,m),{version:l,schema:u,num_rows:f,row_groups:p,key_value_metadata:m,created_by:h,metadata_length:o}}function ig({schema:e}){return Dh(e,[])[0]}function ag(e){return e?.field_1?{type:`STRING`}:e?.field_2?{type:`MAP`}:e?.field_3?{type:`LIST`}:e?.field_4?{type:`ENUM`}:e?.field_5?{type:`DECIMAL`,scale:e.field_5.field_1,precision:e.field_5.field_2}:e?.field_6?{type:`DATE`}:e?.field_7?{type:`TIME`,isAdjustedToUTC:e.field_7.field_1,unit:og(e.field_7.field_2)}:e?.field_8?{type:`TIMESTAMP`,isAdjustedToUTC:e.field_8.field_1,unit:og(e.field_8.field_2)}:e?.field_10?{type:`INTEGER`,bitWidth:e.field_10.field_1,isSigned:e.field_10.field_2}:e?.field_11?{type:`NULL`}:e?.field_12?{type:`JSON`}:e?.field_13?{type:`BSON`}:e?.field_14?{type:`UUID`}:e?.field_15?{type:`FLOAT16`}:e?.field_16?{type:`VARIANT`,specification_version:e.field_16.field_1}:e?.field_17?{type:`GEOMETRY`,crs:tg(e.field_17.field_1)}:e?.field_18?{type:`GEOGRAPHY`,crs:tg(e.field_18.field_1),algorithm:fh[e.field_18.field_2]}:e?.field_19?{type:`FILE`}:e}function og(e){if(e.field_1)return`MILLIS`;if(e.field_2)return`MICROS`;if(e.field_3)return`NANOS`;throw Error(`parquet time unit required`)}function sg(e,t,n){return e&&{max:cg(e.field_1,t,n),min:cg(e.field_2,t,n),null_count:e.field_3,distinct_count:e.field_4,max_value:cg(e.field_5,t,n),min_value:cg(e.field_6,t,n),is_max_value_exact:e.field_7,is_min_value_exact:e.field_8}}function cg(e,t,n){let{type:r,converted_type:i,logical_type:a}=t;if(e===void 0)return e;if(r===`BOOLEAN`)return e[0]===1;if(r===`BYTE_ARRAY`)return n.stringFromBytes(e);let o=new DataView(e.buffer,e.byteOffset,e.byteLength);if(r===`FLOAT`&&o.byteLength===4)return o.getFloat32(0,!0);if(r===`DOUBLE`&&o.byteLength===8)return o.getFloat64(0,!0);if(r===`INT32`&&i===`DECIMAL`&&o.byteLength===4)return o.getInt32(0,!0)/10**(t.scale||0);if(r===`INT64`&&i===`DECIMAL`&&o.byteLength===8)return Number(o.getBigInt64(0,!0))/10**(t.scale||0);if(r===`INT32`&&i===`DATE`)return n.dateFromDays(o.getInt32(0,!0));if(r===`INT64`&&i===`TIMESTAMP_MILLIS`)return n.timestampFromMilliseconds(o.getBigInt64(0,!0));if(r===`INT64`&&i===`TIMESTAMP_MICROS`)return n.timestampFromMicroseconds(o.getBigInt64(0,!0));if(r===`INT64`&&a?.type===`TIMESTAMP`&&a?.unit===`NANOS`)return n.timestampFromNanoseconds(o.getBigInt64(0,!0));if(r===`INT64`&&a?.type===`TIMESTAMP`&&a?.unit===`MICROS`)return n.timestampFromMicroseconds(o.getBigInt64(0,!0));if(r===`INT64`&&a?.type===`TIMESTAMP`)return n.timestampFromMilliseconds(o.getBigInt64(0,!0));let s=i?.startsWith(`UINT_`)||a?.type===`INTEGER`&&!a.isSigned;if(r===`INT32`&&s&&o.byteLength===4)return o.getUint32(0,!0);if(r===`INT64`&&s&&o.byteLength===8)return o.getBigUint64(0,!0);if(r===`INT32`&&o.byteLength===4)return o.getInt32(0,!0);if(r===`INT64`&&o.byteLength===8)return o.getBigInt64(0,!0);if(i===`DECIMAL`){let n=t.scale||0;return n>308?Ch(e)*10**-n:Ch(e)/10**n}return a?.type===`FLOAT16`?Th(e):a?.type===`UUID`?n.uuidFromBytes(e):e}function lg(e,t,n=void 0){let r={...bh,...n},i=Kh(e);return{null_pages:i.field_1,min_values:i.field_2.map(e=>cg(e,t,r)),max_values:i.field_3.map(e=>cg(e,t,r)),boundary_order:dh[i.field_4],null_counts:i.field_5,repetition_level_histograms:i.field_6,definition_level_histograms:i.field_7}}function ug(e){let t=Kh(e);return{page_locations:t.field_1.map(e=>({offset:e.field_1,compressed_page_size:e.field_2,first_row_index:e.field_3})),unencoded_byte_array_data_bytes:t.field_2}}var dg=18446744073709551615n,fg=11400714785074694791n,pg=14029467366897019727n,mg=1609587929392839161n,hg=9650029242287828579n,gg=2870177450012600261n;function _g(e,t){return(e<<t|e>>64n-t)&dg}function vg(e,t){return e=e+t*pg&dg,e=_g(e,31n),e*fg&dg}function yg(e,t){return e^=vg(0n,t),e*fg+hg&dg}function bg(e,t=0n){let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=e.byteLength,i=0,a;if(r>=32){let e=t+fg+pg&dg,o=t+pg&dg,s=t,c=t-fg&dg;for(;i+32<=r;)e=vg(e,n.getBigUint64(i,!0)),i+=8,o=vg(o,n.getBigUint64(i,!0)),i+=8,s=vg(s,n.getBigUint64(i,!0)),i+=8,c=vg(c,n.getBigUint64(i,!0)),i+=8;a=_g(e,1n)+_g(o,7n)+_g(s,12n)+_g(c,18n)&dg,a=yg(a,e),a=yg(a,o),a=yg(a,s),a=yg(a,c)}else a=t+gg&dg;for(a=a+BigInt(r)&dg;i+8<=r;)a^=vg(0n,n.getBigUint64(i,!0)),a=_g(a,27n)*fg+hg&dg,i+=8;for(i+4<=r&&(a^=BigInt(n.getUint32(i,!0))*fg&dg,a=_g(a,23n)*pg+mg&dg,i+=4);i<r;)a^=BigInt(n.getUint8(i))*gg&dg,a=_g(a,11n)*fg&dg,i+=1;return a^=a>>33n,a=a*pg&dg,a^=a>>29n,a=a*mg&dg,a^=a>>32n,a}var xg=new TextEncoder,Sg=new Uint32Array([1203114875,1150766481,2284105051,2729912477,1884591559,770785867,2667333959,1550580529]);function Cg(e,t){return Number((e>>32n)*BigInt(t)>>32n)}function wg(e){let t=new Uint32Array(8),n=Number(e&4294967295n)|0;for(let e=0;e<8;e++)t[e]=1<<(Math.imul(n,Sg[e])>>>27);return t}function Tg(e,t){let n=Cg(t,e.length>>3)<<3,r=wg(t);for(let t=0;t<8;t++)if((e[n+t]&r[t])===0)return!1;return!0}function Eg(e){let t=Kh(e),n=t.field_1;if(typeof n!=`number`||n<=0||n%32!=0||!t.field_2?.field_1||!t.field_3?.field_1||!t.field_4?.field_1)return;let{view:r,offset:i}=e;if(i+n>r.byteLength)throw Error(`parquet bloom filter truncated: need ${n} bytes, have ${r.byteLength-i}`);let a=new Uint32Array(n>>2);for(let e=0;e<a.length;e++)a[e]=r.getUint32(i+e*4,!0);return e.offset=i+n,{numBytes:n,blocks:a}}function Dg(e,t){if(e==null)return;let{type:n,converted_type:r,logical_type:i}=t;if(n===`BOOLEAN`)return typeof e==`boolean`?bg(new Uint8Array([+!!e])):void 0;if(n===`FLOAT`){if(typeof e!=`number`)return;let t=new ArrayBuffer(4);return new DataView(t).setFloat32(0,e,!0),bg(new Uint8Array(t))}if(n===`DOUBLE`){if(typeof e!=`number`)return;let t=new ArrayBuffer(8);return new DataView(t).setFloat64(0,e,!0),bg(new Uint8Array(t))}if(n===`INT32`){if(r===`DATE`||r===`DECIMAL`||r===`TIME_MILLIS`||i?.type===`DATE`||i?.type===`TIME`||i?.type===`DECIMAL`||typeof e!=`number`||!Number.isInteger(e))return;let t=new ArrayBuffer(4);return new DataView(t).setInt32(0,e|0,!0),bg(new Uint8Array(t))}if(n===`INT64`){if(r===`TIMESTAMP_MILLIS`||r===`TIMESTAMP_MICROS`||r===`TIME_MICROS`||r===`DECIMAL`||i?.type===`TIMESTAMP`||i?.type===`TIME`||i?.type===`DECIMAL`)return;let t;if(typeof e==`bigint`)t=e;else if(typeof e==`number`&&Number.isSafeInteger(e))t=BigInt(e);else return;let n=new ArrayBuffer(8);return new DataView(n).setBigUint64(0,BigInt.asUintN(64,t),!0),bg(new Uint8Array(n))}if(n===`BYTE_ARRAY`)return r===`JSON`||r===`BSON`||r===`DECIMAL`||i?.type===`JSON`||i?.type===`BSON`||i?.type===`VARIANT`||i?.type===`GEOMETRY`||i?.type===`GEOGRAPHY`?void 0:typeof e==`string`?bg(xg.encode(e)):e instanceof Uint8Array?bg(e):void 0;if(n===`FIXED_LEN_BYTE_ARRAY`)return r===`DECIMAL`||r===`INTERVAL`||i?.type===`DECIMAL`||i?.type===`UUID`||i?.type===`FLOAT16`||i?.type===`GEOMETRY`||i?.type===`GEOGRAPHY`?void 0:e instanceof Uint8Array?bg(e):void 0}function Og(e){let t=new Set;return kg(e,t),t}function kg(e,t){if(e){if(`$and`in e&&Array.isArray(e.$and)){for(let n of e.$and)kg(n,t);return}if(`$or`in e&&Array.isArray(e.$or)){for(let n of e.$or)kg(n,t);return}if(!(`$nor`in e))for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(typeof r==`object`&&r&&!Array.isArray(r)?(`$eq`in r||`$in`in r)&&t.add(n):t.add(n))}}function Ag(e,t){let n=1e4;for(let r=0;r<t.length;r+=n)e.push(...t.slice(r,r+n))}function jg(e,t,n=!0){if(n?e===t:e==t)return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;if(e instanceof Uint8Array&&t instanceof Uint8Array){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!jg(e[r],t[r],n))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i of r)if(!jg(e[i],t[i],n))return!1;return!0}function Mg(e){if(!e)return[];if(e.length===1)return e[0];let t=[];for(let n of e)Ag(t,n);return t}var Ng=new TextEncoder;function Pg(e){if(!e)return[];let t=[];return`$and`in e&&Array.isArray(e.$and)?t.push(...e.$and.flatMap(Pg)):`$or`in e&&Array.isArray(e.$or)?t.push(...e.$or.flatMap(Pg)):`$nor`in e&&Array.isArray(e.$nor)?t.push(...e.$nor.flatMap(Pg)):t.push(...Object.keys(e)),[...new Set(t)]}function Fg(e){return[...new Set(Pg(e).map(e=>e.split(`.`)[0]))]}function Ig(e,t,n=!0){return`$and`in t&&Array.isArray(t.$and)?t.$and.every(t=>Ig(e,t,n)):`$or`in t&&Array.isArray(t.$or)?t.$or.some(t=>Ig(e,t,n)):`$nor`in t&&Array.isArray(t.$nor)?!t.$nor.some(t=>Ig(e,t,n)):Object.entries(t).every(([t,r])=>{let i=Kg(e,t);return typeof r!=`object`||!r||Array.isArray(r)?jg(i,r,n):Object.entries(r||{}).every(([e,t])=>e===`$gt`?i!=null&&i>t:e===`$gte`?i!=null&&i>=t:e===`$lt`?i!=null&&i<t:e===`$lte`?i!=null&&i<=t:e===`$eq`?jg(i,t,n):e===`$ne`?!jg(i,t,n):e===`$in`?Array.isArray(t)&&Lg(i,t,n):e===`$nin`?Array.isArray(t)&&!Lg(i,t,n):e===`$not`?!Ig({value:i},{value:t},n):!0)})}function Lg(e,t,n){return t.some(t=>jg(e,t,n)||Array.isArray(e)&&e.some(e=>jg(e,t,n)))}function Rg({rowGroup:e,physicalColumns:t,filter:n,strict:r=!0,bloomFilters:i,schemaElements:a}){if(!n)return!1;if(`$and`in n&&Array.isArray(n.$and))return n.$and.some(n=>Rg({rowGroup:e,physicalColumns:t,filter:n,strict:r,bloomFilters:i,schemaElements:a}));if(`$or`in n&&Array.isArray(n.$or))return n.$or.every(n=>Rg({rowGroup:e,physicalColumns:t,filter:n,strict:r,bloomFilters:i,schemaElements:a}));if(`$nor`in n&&Array.isArray(n.$nor))return!1;for(let[o,s]of Object.entries(n)){let n=t.indexOf(o);if(n===-1)continue;let{min:c,max:l,min_value:u,max_value:d,null_count:f}=e.columns[n].meta_data?.statistics||{},p=u===void 0?c:u,m=d===void 0?l:d,h=p!==void 0&&m!==void 0,g=i?.[o],_=a?.[o],v=Ig({value:null},{value:s},r)&&(f===void 0||f>0);if(h&&!v&&zg(s,p,m,r,_))return!0;for(let[e,t]of Object.entries(s||{}))if(g&&_){if(e===`$eq`){let e=Dg(t,_);if(e!==void 0&&!Tg(g.blocks,e))return!0}if(e===`$in`&&Array.isArray(t)&&t.length>0){let e=!0;for(let n of t){let t=Dg(n,_);if(t===void 0||Tg(g.blocks,t)){e=!1;break}}if(e)return!0}}}return!1}function zg(e,t,n,r,i){if(t===void 0||n===void 0)return!1;let a=i?.type===`FLOAT`||i?.type===`DOUBLE`||i?.logical_type?.type===`FLOAT16`;for(let[o,s]of Object.entries(e||{})){let e=Bg(t,s,r,i),c=Bg(n,s,r,i),l=!(t instanceof Uint8Array||n instanceof Uint8Array)&&(i?.type!==`BYTE_ARRAY`||typeof s==`string`&&[...s].every(e=>e.charCodeAt(0)<=127));if(o===`$gt`&&l&&c!==void 0&&c<=0||o===`$gte`&&l&&c!==void 0&&c<0||o===`$lt`&&l&&e!==void 0&&e>=0||o===`$lte`&&l&&e!==void 0&&e>0)return!0;if(o===`$eq`){let e=Bg(s,t,r,i),a=Bg(s,n,r,i);if(e!==void 0&&e<0||a!==void 0&&a>0)return!0}if(o===`$ne`&&!a&&jg(t,n,r)&&jg(t,s,r)||o===`$in`&&Array.isArray(s)&&s.every(e=>{let a=Bg(e,t,r,i),o=Bg(e,n,r,i);return a!==void 0&&a<0||o!==void 0&&o>0})||o===`$nin`&&!a&&Array.isArray(s)&&jg(t,n,r)&&s.some(e=>jg(t,e,r)))return!0}return!1}function Bg(e,t,n,r){if(r?.type===`BYTE_ARRAY`)return typeof e!=`string`||typeof t!=`string`?void 0:Vg(Ng.encode(e),Ng.encode(t));if(e instanceof Uint8Array||t instanceof Uint8Array)return!(e instanceof Uint8Array)||!(t instanceof Uint8Array)?void 0:Vg(e,t);if(e<t)return-1;if(e>t)return 1;if(jg(e,t,n))return 0}function Vg(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return e.length<t.length?-1:+(e.length>t.length)}function Hg(e,t){return Ig({value:null},{value:e},t)}function Ug(e,t,n,r=!0){if(!e)return;if(`$and`in e&&Array.isArray(e.$and)){let i;for(let a of e.$and)i=Wg(i,Ug(a,t,n,r));return i}if(`$or`in e&&Array.isArray(e.$or)){let i=[];for(let a of e.$or){let e=Ug(a,t,n,r);if(!e)return;i=Gg(i,e)}return i}if(`$nor`in e&&Array.isArray(e.$nor))return;let i;for(let[a,o]of Object.entries(e)){let e=t[a];if(!e)continue;let s=Hg(o,r),c=[];for(let t=0;t<e.pageStarts.length;t++){let i=e.pageStarts[t],a=t+1<e.pageStarts.length?e.pageStarts[t+1]:n,l=e.nullCounts?.[t],u=s&&(l===void 0||l>0);if(!(!e.nullPages[t]&&!u&&zg(o,e.minValues[t],e.maxValues[t],r,e.element))){let e=c[c.length-1];e&&e[1]===i?e[1]=a:c.push([i,a])}}i=Wg(i,c)}return i}function Wg(e,t){if(!e)return t;if(!t)return e;let n=[],r=0,i=0;for(;r<e.length&&i<t.length;){let a=Math.max(e[r][0],t[i][0]),o=Math.min(e[r][1],t[i][1]);a<o&&n.push([a,o]),e[r][1]<t[i][1]?r++:i++}return n}function Gg(e,t){let n=[],r=0,i=0;for(;r<e.length||i<t.length;){let a=i>=t.length||r<e.length&&e[r][0]<=t[i][0]?e[r++]:t[i++],o=n[n.length-1];o&&a[0]<=o[1]?o[1]=Math.max(o[1],a[1]):n.push([a[0],a[1]])}return n}function Kg(e,t){let n=e;for(let e of t.split(`.`))n=n?.[e];return n}var qg=1<<21,Jg=8192;function Yg(e){let{metadata:t,rowStart:n=0,columns:r,useOffsetIndex:i=!1}=e;if(!t)throw Error(`parquetPlan requires metadata`);let a=[],o=[],s=[],c=Xg(e);for(let e of c.groups){let t=Zg({...e,columns:r,useOffsetIndex:i});a.push(...t.groups),o.push(...t.fetches),s.push(...t.indexes)}return o.push(...n_(s,0,qg)),{metadata:t,rowStart:n,rowEnd:c.rowEnd,columns:r,fetches:o,groups:a}}function Xg({metadata:e,rowStart:t=0,rowEnd:n=1/0,columns:r,filter:i,filterStrict:a=!0,bloomFiltersByGroup:o,schemaElements:s,pageRangesByGroup:c,pageLocationsByGroup:l}){if(!e)throw Error(`parquetPlan requires metadata`);let u=ig(e),d=kh(u),f=i?{...r_(u),...s}:s,p=[],m=0;for(let s=0;s<e.row_groups.length;s++){let u=e.row_groups[s],h=Number(u.num_rows),g=m+h;if(h>0&&g>t&&m<n&&!Rg({rowGroup:u,physicalColumns:d,filter:i,strict:a,bloomFilters:o?.[s],schemaElements:f})){let e=Math.max(t-m,0),i=Math.min(n-m,h),a=c?.[s],o=l?.[s],d=a?a.map(([t,n])=>[Math.max(t,e),Math.min(n,i)]).filter(([e,t])=>e<t):[[e,i]];d.length>1&&(d=u.columns.every(e=>{let t=e.meta_data?.path_in_schema[0],n=e.meta_data?.path_in_schema.join(`.`);return r&&t&&!r.includes(t)?!0:!!(e.offset_index_offset&&e.offset_index_length)||!!(n&&o?.[n])})?Qg(d,u,r,o):[[d[0][0],d[d.length-1][1]]]),d.length&&p.push({rowGroup:u,groupIndex:s,groupStart:m,groupRows:h,ranges:d,pageRanges:a,pageLocations:o})}m=g}return{groups:p,rowEnd:isFinite(n)?n:m}}function Zg({rowGroup:e,groupStart:t,groupRows:n,ranges:r,columns:i,useOffsetIndex:a=!1,pageRanges:o,pageLocations:s}){let c=[],l=[],u=[],d=r.length>1||r[0][0]>0||r[0][1]<n;for(let t of e.columns){let e=t.meta_data;if(t.file_path)throw Error(`parquet file_path not supported`);if(!e)throw Error(`parquet column metadata is undefined`);if(i&&!i.includes(e.path_in_schema[0]))continue;let n=e.dictionary_page_offset||e.data_page_offset,r=Number(n),l=Number(n+e.total_compressed_size),u=s?.[e.path_in_schema.join(`.`)];if(u&&d)c.push({columnMetadata:e,pageLocations:u,range:{startByte:r,endByte:l}});else if((a||o)&&t.offset_index_offset&&t.offset_index_length&&d){let r=Number(t.offset_index_offset);c.push({columnMetadata:e,offsetIndex:{startByte:r,endByte:r+t.offset_index_length},range:{startByte:Number(n),endByte:l}})}else c.push({columnMetadata:e,range:{startByte:r,endByte:l}})}let f=[],p;for(let e of c)`pageLocations`in e||(`offsetIndex`in e?u.push(e.offsetIndex):i?f.push(e.range):p&&e.range.endByte-p.startByte<=2097152?p.endByte=e.range.endByte:(p&&l.push(p),p={...e.range}));return p&&l.push(p),l.push(...n_(f,Jg,qg)),{groups:r.map(([r,i])=>({chunks:c,rowGroup:e,groupStart:t,groupRows:n,selectStart:r,selectEnd:i})),fetches:l,indexes:u}}function Qg(e,t,n,r){let i=t.columns.filter(e=>!n||n.includes(e.meta_data?.path_in_schema[0]||``)).map(e=>r?.[e.meta_data?.path_in_schema.join(`.`)||``]),a=[];for(let n of e){let e=a[a.length-1],r=e&&i.some(r=>{if(!r)return!0;let i=$g(e,r,Number(t.num_rows)),a=$g(n,r,Number(t.num_rows));return i[0]<=a[1]&&a[0]<=i[1]});e&&r?e[1]=n[1]:a.push([...n])}return a}function $g([e,t],n,r){let i=1/0,a=-1/0;for(let o=0;o<n.length;o++){let s=Number(n[o].first_row_index);(o+1<n.length?Number(n[o+1].first_row_index):r)>e&&s<t&&(i=Math.min(i,o),a=o)}return[i,a]}async function e_({file:e,metadata:t,filter:n,filterStrict:r=!0,rowStart:i=0,rowEnd:a=1/0}){let o=t.row_groups.map(()=>({})),s=Og(n);if(s.size===0)return o;let c=kh(ig(t)),l=[],u=0;if(t.row_groups.forEach((e,t)=>{let o=Number(e.num_rows),d=u+o,f=o>0&&d>i&&u<a;if(u=d,f&&!Rg({rowGroup:e,physicalColumns:c,filter:n,strict:r}))for(let n of s){let r=c.indexOf(n);if(r===-1)continue;let i=e.columns[r]?.meta_data;if(!i?.bloom_filter_offset||!i.bloom_filter_length)continue;let a=Number(i.bloom_filter_offset),o=a+i.bloom_filter_length;l.push({rgIdx:t,colName:n,startByte:a,endByte:o})}}),l.length){let t=i_(e,{fetches:n_(l,0,qg)});await Promise.all(l.map(async({rgIdx:e,colName:n,startByte:r,endByte:i})=>{let a=await t.slice(r,i),s=Eg({view:new DataView(a),offset:0});s&&(o[e][n]=s)}))}return o}async function t_({file:e,metadata:t,filter:n,filterStrict:r=!0,rowStart:i=0,rowEnd:a=1/0,columns:o,bloomFiltersByGroup:s,schemaElements:c,parsers:l}){let u=t.row_groups.map(()=>void 0),d=t.row_groups.map(()=>({}));if(n&&`$nor`in n&&Array.isArray(n.$nor))return{pageRangesByGroup:u,pageLocationsByGroup:d};let f=Pg(n);if(!f.length)return{pageRangesByGroup:u,pageLocationsByGroup:d};let p=ig(t),m=kh(p),h={...r_(p),...c},g=[],_=[],v=[],y=0;if(t.row_groups.forEach((e,t)=>{let c=Number(e.num_rows),u=y+c,p=c>0&&u>i&&y<a;if(y=u,!p||Rg({rowGroup:e,physicalColumns:m,filter:n,strict:r,bloomFilters:s?.[t],schemaElements:h}))return;let b={},x=0,S=new Set,C=!1;for(let n of f){let r=m.indexOf(n);if(r===-1)continue;let i=e.columns[r];if(!i?.meta_data||!i.column_index_offset||!i.column_index_length||!i.offset_index_offset||!i.offset_index_length)continue;let a=h[n];if(!a)continue;C=!0,S.add(n);let o=Number(i.column_index_offset),s=Number(i.offset_index_offset),c=o+i.column_index_length,u=s+i.offset_index_length;g.push({startByte:o,endByte:c},{startByte:s,endByte:u}),x++,_.push(async e=>{let[r,i]=await Promise.all([e.slice(o,c),e.slice(s,u)]),f=lg({view:new DataView(r),offset:0},a,l),p=ug({view:new DataView(i),offset:0});d[t][n]=p.page_locations,b[n]={minValues:f.min_values,maxValues:f.max_values,nullPages:f.null_pages,nullCounts:f.null_counts,pageStarts:p.page_locations.map(e=>Number(e.first_row_index)),element:a}})}if(C)for(let n of e.columns){let e=n.meta_data;if(!e)continue;let r=e.path_in_schema[0],i=e.path_in_schema.join(`.`);if(o&&!o.includes(r)||S.has(i)||!n.offset_index_offset||!n.offset_index_length)continue;S.add(i);let a=Number(n.offset_index_offset),s=a+n.offset_index_length;g.push({startByte:a,endByte:s}),x++,_.push(async e=>{let n=await e.slice(a,s),r=ug({view:new DataView(n),offset:0});d[t][i]=r.page_locations})}x&&v.push({rgIdx:t,groupRows:c,columnPages:b})}),_.length){let t=i_(e,{fetches:n_(g)});await Promise.all(_.map(e=>e(t)));for(let{rgIdx:e,groupRows:t,columnPages:i}of v)u[e]=Ug(n,i,t,r)}return{pageRangesByGroup:u,pageLocationsByGroup:d}}function n_(e,t=0,n=1/0){let r=e.map(e=>({...e})).sort((e,t)=>e.startByte-t.startByte||e.endByte-t.endByte),i=[];for(let e of r){let r=i[i.length-1];r&&e.startByte<=r.endByte+t&&Math.max(r.endByte,e.endByte)-r.startByte<=n?r.endByte=Math.max(r.endByte,e.endByte):i.push(e)}return i}function r_(e){let t={};function n(e){if(e.children.length)for(let t of e.children)n(t);else t[e.path.join(`.`)]=e.element}return n(e),t}function i_(e,{fetches:t}){let n=t.map(({startByte:t,endByte:n})=>{try{return e.slice(t,n)}catch(e){return Promise.reject(e)}});return{byteLength:e.byteLength,slice(r,i=e.byteLength){let a=t.findIndex(({startByte:e,endByte:t})=>e<=r&&i<=t);if(a<0)return e.slice(r,i);if(t[a].startByte!==r||t[a].endByte!==i){let e=r-t[a].startByte,o=i-t[a].startByte;return n[a]instanceof Promise?n[a].then(t=>t.slice(e,o)):n[a].slice(e,o)}else return n[a]}}}var a_=new TextDecoder(`utf-8`,{ignoreBOM:!0}),o_=new WeakMap;function s_(e,t=bh){if(Array.isArray(e))return e.map(e=>s_(e,t));if(typeof e!=`object`)return e;if(`metadata`in e){let n=u_(e.metadata),r=e.typed_value&&c_(e.typed_value,n,t),i=e.value&&f_(l_(e.value),n,t);return r&&i?{...i,...r}:r??i}return e}function c_(e,t,n){if(e instanceof Date)return e;if(e&&typeof e==`object`&&!Array.isArray(e)&&!(e instanceof Uint8Array)){if(`typed_value`in e&&e.typed_value!==null&&e.typed_value!==void 0)return c_(e.typed_value,t,n);if(`value`in e&&e.value instanceof Uint8Array)return f_(l_(e.value),t,n);if(`typed_value`in e||`value`in e)return null;let r={};for(let[i,a]of Object.entries(e))t.dictionary.includes(i)&&(r[i]=c_(a,t,n));return r}return e instanceof Uint8Array?f_(l_(e),t,n):Array.isArray(e)?e.map(e=>c_(e,t,n)):e}function l_(e){return{view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0}}function u_(e){let t=o_.get(e.buffer);t||(t=new Map,o_.set(e.buffer,t));let n=`${e.byteOffset}:${e.byteLength}`,r=t.get(n);if(r)return r;let i=l_(e),a=i.view.getUint8(i.offset++),o=a&15;if(o!==1)throw Error(`parquet unsupported variant metadata version: ${o}`);let s=(a>>4&1)==1,c=(a>>6&3)+1,l=d_(i,c),u=Array(l+1);for(let e=0;e<u.length;e++)u[e]=d_(i,c);let d=i.offset,f=Array(l);for(let t=0;t<l;t++){let n=u[t],r=u[t+1],i=new Uint8Array(e.buffer,e.byteOffset+d+n,r-n);f[t]=a_.decode(i)}let p={dictionary:f,sorted:s};return t.set(n,p),p}function d_(e,t){let n=0;for(let r=0;r<t;r++)n|=e.view.getUint8(e.offset+r)<<r*8;return e.offset+=t,n}function f_(e,t,n){let r=e.view.getUint8(e.offset++),i=r&3,a=r>>2;if(i===0)return p_(e,a,n);if(i===2)return m_(e,a,t,n);if(i===3)return h_(e,a,t,n);let o=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,a);return e.offset+=a,a_.decode(o)}function p_(e,t,n){switch(t){case 0:return null;case 1:return!0;case 2:return!1;case 3:{let t=e.view.getInt8(e.offset);return e.offset+=1,t}case 4:{let t=e.view.getInt16(e.offset,!0);return e.offset+=2,t}case 5:{let t=e.view.getInt32(e.offset,!0);return e.offset+=4,t}case 6:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,t}case 7:{let t=e.view.getFloat64(e.offset,!0);return e.offset+=8,t}case 8:return g_(e,4);case 9:return g_(e,8);case 10:return g_(e,16);case 11:{let t=e.view.getInt32(e.offset,!0);return e.offset+=4,n.dateFromDays(t)}case 12:case 13:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,n.timestampFromMicroseconds(t)}case 14:{let t=e.view.getFloat32(e.offset,!0);return e.offset+=4,t}case 15:return __(e);case 16:{let t=__(e);return a_.decode(t)}case 17:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,t}case 18:case 19:{let t=e.view.getBigInt64(e.offset,!0);return e.offset+=8,n.timestampFromNanoseconds(t)}case 20:{let t=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,16);e.offset+=16;let n=Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``);return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}default:throw Error(`parquet unsupported variant primitive type: ${t}`)}}function m_(e,t,n,r){let i=(t&3)+1,a=(t>>2&3)+1,o=t>>4&1?d_(e,4):e.view.getUint8(e.offset++),s=Array(o);for(let t=0;t<o;t++)s[t]=d_(e,a);let c=Array(o+1);for(let t=0;t<c.length;t++)c[t]=d_(e,i);let l={};for(let t=0;t<o;t++){let i=n.dictionary[s[t]];l[i]=f_({view:e.view,offset:e.offset+c[t]},n,r)}return e.offset+=c[c.length-1],l}function h_(e,t,n,r){let i=t&3,a=t>>2&1,o=i+1,s=d_(e,a?4:1),c=Array(s+1);for(let t=0;t<c.length;t++)c[t]=d_(e,o);let l=e.offset,u=Array(s);for(let t=0;t<s;t++)u[t]=f_({view:e.view,offset:l+c[t]},n,r);return e.offset=l+c[c.length-1],u}function g_(e,t){let n=e.view.getUint8(e.offset);e.offset+=1;let r;if(t===4)r=BigInt(e.view.getInt32(e.offset,!0)),e.offset+=4;else if(t===8)r=e.view.getBigInt64(e.offset,!0),e.offset+=8;else{let t=e.view.getBigUint64(e.offset,!0);r=e.view.getBigInt64(e.offset+8,!0)<<64n|t,e.offset+=16}return Number(r)/10**n}function __(e){let t=e.view.getUint32(e.offset,!0);e.offset+=4;let n=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t,n}function v_(e,t,n,r,i){let a=jh(i);if(!t?.length&&!n.length){if(!a||!r.length)return r;t=Array(r.length).fill(a)}let o=t?.length||n.length,s=i.map(({element:e})=>e.repetition_type),c=0,l=[e],u=e,d=0,f=0,p=0;if(n[0])for(;d<s.length-2&&p<n[0];)d++,s[d]!==`REQUIRED`&&(u=u.at(-1),l.push(u),f++),s[d]===`REPEATED`&&p++;for(let e=0;e<o;e++){let i=t?.length?t[e]:a,o=n[e];for(;d&&(o<p||s[d]!==`REPEATED`);)s[d]!==`REQUIRED`&&(l.pop(),f--),s[d]===`REPEATED`&&p--,d--;for(u=l.at(-1);(d<s.length-2||s[d+1]===`REPEATED`)&&(f<i||s[d+1]===`REQUIRED`);){if(d++,s[d]!==`REQUIRED`){let e=[];u.push(e),u=e,l.push(e),f++}s[d]===`REPEATED`&&p++}i===a?u.push(r[c++]):d===s.length-2?u.push(s[d+1]===`REPEATED`?[]:null):u.push([])}if(!e.length)for(let e=0;e<a;e++){let e=[];u.push(e),u=e}return e}function y_(e,t,n,r=0){let i=t.path.join(`.`),a=t.element.repetition_type===`OPTIONAL`,o=a?r+1:r;if(Mh(t)){let s=t.children[0],c=o;s.children.length===1&&(s=s.children[0],c++),y_(e,s,n,c);let l=s.path.join(`.`),u=e.get(l);if(!u)throw Error(`parquet list column missing values`);a&&b_(u,r),e.set(i,u),e.delete(l);return}if(Nh(t)){let s=t.children[0].element.name;y_(e,t.children[0].children[0],n,o+1),y_(e,t.children[0].children[1],n,o+1);let c=e.get(`${i}.${s}.key`),l=e.get(`${i}.${s}.value`);if(!c)throw Error(`parquet map column missing keys`);if(!l)throw Error(`parquet map column missing values`);if(c.length!==l.length)throw Error(`parquet map column key/value length mismatch`);let u=x_(c,l,o);a&&b_(u,r),e.delete(`${i}.${s}.key`),e.delete(`${i}.${s}.value`),e.set(i,u);return}if(t.children.length){let o=t.element.repetition_type===`REQUIRED`?r:r+1,s={};for(let r of t.children){y_(e,r,n,o);let t=e.get(r.path.join(`.`));if(!t)throw Error(`parquet struct missing child data`);s[r.element.name]=t}for(let n of t.children)e.delete(n.path.join(`.`));let c=S_(s,o);t.element.logical_type?.type===`VARIANT`&&(c=s_(c,n)),a&&b_(c,r),e.set(i,c)}}function b_(e,t){for(let n=0;n<e.length;n++)t?b_(e[n],t-1):e[n]=e[n].length?e[n][0]:null}function x_(e,t,n){let r=[];for(let i=0;i<e.length;i++)if(n)r.push(x_(e[i],t[i],n-1));else if(e[i]){let n={};for(let r=0;r<e[i].length;r++){let a=t[i][r];n[e[i][r]]=a===void 0?null:a}r.push(n)}else r.push(void 0);return r}function S_(e,t){let n=Object.keys(e),r=e[n[0]]?.length,i=[];for(let a=0;a<r;a++){let o={};for(let t of n){if(e[t].length!==r)throw Error(`parquet struct parsing error`);o[t]=e[t][a]}t?i.push(S_(o,t-1)):i.push(o)}return i}var C_=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000,0x5af3107a4000,0x38d7ea4c68000,0x2386f26fc10000,0x16345785d8a0000,0xde0b6b3a7640000],w_=[1,.1,.01,.001,1e-4,1e-5,1e-6,1e-7,1e-8,1e-9,1e-10,1e-11,1e-12,1e-13,1e-14,1e-15,1e-16,1e-17,1e-18],T_=C_.slice(0,11).map(Math.fround),E_=w_.slice(0,11).map(Math.fround);function D_(e,t,n){if(n===`FLOAT`)return k_(e,t);if(n===`DOUBLE`)return A_(e,t);throw Error(`ALP encoding unsupported type: ${n}`)}function O_(e){let{view:t}=e,n=t.getUint8(e.offset++);if(n!==0)throw Error(`ALP unsupported compression mode: ${n}`);let r=t.getUint8(e.offset++);if(r!==0)throw Error(`ALP unsupported integer encoding: ${r}`);let i=t.getUint8(e.offset++);if(i<3||i>15)throw Error(`ALP invalid log_vector_size: ${i}`);let a=1<<i,o=t.getInt32(e.offset,!0);e.offset+=4;let s=Math.ceil(o/a),c=e.offset;return e.offset+=s*4,{vectorSize:a,numElements:o,numVectors:s,offsetArrayStart:c}}function k_(e,t){let{view:n}=e,{vectorSize:r,numElements:i,numVectors:a,offsetArrayStart:o}=O_(e);if(i!==t)throw Error(`ALP num_elements ${i} does not match expected ${t}`);let s=new Float32Array(t),c=new Uint8Array(s.buffer);for(let t=0;t<a;t++){e.offset=o+n.getUint32(o+t*4,!0);let a=t*r,l=Math.min(r,i-a),u=n.getUint8(e.offset++),d=n.getUint8(e.offset++),f=n.getUint16(e.offset,!0);e.offset+=2;let p=n.getInt32(e.offset,!0);e.offset+=4;let m=M_(e,l,n.getUint8(e.offset++)),h=T_[d],g=E_[u];for(let e=0;e<l;e++){let t=m[e]+p|0;s[a+e]=Math.fround(Math.fround(t)*h)*g}j_(e,f,4,c,a)}return s}function A_(e,t){let{view:n}=e,{vectorSize:r,numElements:i,numVectors:a,offsetArrayStart:o}=O_(e);if(i!==t)throw Error(`ALP num_elements ${i} does not match expected ${t}`);let s=new Float64Array(t),c=new Uint8Array(s.buffer);for(let t=0;t<a;t++){e.offset=o+n.getUint32(o+t*4,!0);let a=t*r,l=Math.min(r,i-a),u=n.getUint8(e.offset++),d=n.getUint8(e.offset++),f=n.getUint16(e.offset,!0);e.offset+=2;let p=n.getBigInt64(e.offset,!0);e.offset+=8;let m=n.getUint8(e.offset++),h=C_[d],g=w_[u],_=Number(p);if(m<=32&&Number.isSafeInteger(_)){let t=M_(e,l,m);for(let e=0;e<l;e++)s[a+e]=(t[e]+_)*h*g}else{let t=N_(e,l,m);for(let e=0;e<l;e++){let n=BigInt.asIntN(64,t[e]+p);s[a+e]=Number(n)*h*g}}j_(e,f,8,c,a)}return s}function j_(e,t,n,r,i){if(!t)return;let{view:a}=e,o=e.offset,s=o+t*2,c=new Uint8Array(a.buffer,a.byteOffset+s,t*n);for(let e=0;e<t;e++){let t=(i+a.getUint16(o+e*2,!0))*n;r.set(c.subarray(e*n,(e+1)*n),t)}e.offset=s+t*n}function M_(e,t,n){let r=new Uint32Array(t);if(!n)return r;let{view:i}=e,a=e.offset,o=2**n,s=0;for(let e=0;e<t;e++){let t=a+(s>>>3),c=s&7,l=i.getUint8(t++)>>>c,u=8-c;for(;u<n;)l+=i.getUint8(t++)*2**u,u+=8;r[e]=l%o,s+=n}return e.offset=a+Math.ceil(t*n/8),r}function N_(e,t,n){let r=new BigUint64Array(t);if(!n)return r;let{view:i}=e,a=e.offset,o=(1n<<BigInt(n))-1n,s=0n,c=0,l=a;for(let e=0;e<t;e++){for(;c<n;)s|=BigInt(i.getUint8(l++))<<BigInt(c),c+=8;r[e]=s&o,s>>=BigInt(n),c-=n}return e.offset=a+Math.ceil(t*n/8),r}function P_(e,t,n){if(n instanceof Int32Array){F_(e,t,n);return}let r=Jh(e),i=Jh(e);Jh(e);let a=Zh(e),o=0;n[o++]=a;let s=r/i;for(;o<t;){let r=Zh(e),c=new Uint8Array(i);for(let t=0;t<i;t++)c[t]=e.view.getUint8(e.offset++);for(let l=0;l<i&&o<t;l++){let i=c[l];if(i){let c=0,l=s,u=(1n<<BigInt(i))-1n;for(;l&&o<t;){let t=BigInt(e.view.getUint32(e.offset,!0)>>>c)&u;for(c+=i;c>=32;)c-=32,e.offset+=4,c&&(t|=BigInt(e.view.getUint32(e.offset,!0))<<BigInt(i-c)&u);let s=r+t;a+=s,n[o++]=a,l--}l&&(e.offset+=Math.ceil((l*i+c)/8))}else for(let e=0;e<s&&o<t;e++)a+=r,n[o++]=a}}}function F_(e,t,n){let r=Jh(e),i=Jh(e);Jh(e);let a=Xh(e),o=0;n[o++]=a;let s=r/i,{view:c}=e;for(;o<t;){let r=I_(e),l=e.offset,u=l+i;for(let e=0;e<i&&o<t;e++){let i=c.getUint8(l+e),d=u+s*i/8,f=0;for(let e=0;e<s&&o<t;e++){let e=0,t=0;for(;t<i;){let n=Math.min(8-f,i-t);t<32&&(e|=(c.getUint8(u)>>>f&(1<<n)-1)<<t),t+=n,f+=n,f===8&&(f=0,u++)}a=a+r+e|0,n[o++]=a}u=d}e.offset=u}}function I_(e){let t=e.offset,n=Jh(e),r=e.offset-t===5?e.view.getUint8(t+4)>>>4&1:0;return(n>>>1|r<<31)^-(n&1)}function L_(e,t,n){let r=new Int32Array(t);P_(e,t,r);for(let i=0;i<t;i++)n[i]=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,r[i]),e.offset+=r[i]}function R_(e,t,n){let r=new Int32Array(t);P_(e,t,r);let i=new Int32Array(t);P_(e,t,i);for(let a=0;a<t;a++){let t=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,i[a]);r[a]?(n[a]=new Uint8Array(r[a]+i[a]),n[a].set(n[a-1].subarray(0,r[a])),n[a].set(t,r[a])):n[a]=t,e.offset+=i[a]}}function z_(e,t,n,r){r===void 0&&(r=e.view.getUint32(e.offset,!0),e.offset+=4);let i=e.offset,a=0;for(;a<n.length;){let r=Jh(e);if(r&1)a=V_(e,r,t,n,a);else{let i=r>>>1;B_(e,i,t,n,a),a+=i}}e.offset=i+r}function B_(e,t,n,r,i){let a=n+7>>3,o=0;for(let t=0;t<a;t++)o|=e.view.getUint8(e.offset++)<<(t<<3);for(let e=0;e<t;e++)r[i+e]=o}function V_(e,t,n,r,i){let a=t>>1<<3,o=(1<<n)-1,s=0;if(e.offset<e.view.byteLength)s=e.view.getUint8(e.offset++);else if(o)throw Error(`parquet bitpack offset ${e.offset} out of range`);let c=8,l=0;for(;a;)l>8?(l-=8,c-=8,s>>>=8):c-l<n?(s|=e.view.getUint8(e.offset)<<c,e.offset++,c+=8):(i<r.length&&(r[i++]=s>>l&o),a--,l+=n);return i}function H_(e,t,n,r){let i=U_(n,r),a=new Uint8Array(t*i);for(let n=0;n<i;n++)for(let r=0;r<t;r++)a[r*i+n]=e.view.getUint8(e.offset++);if(n===`FLOAT`)return new Float32Array(a.buffer);if(n===`DOUBLE`)return new Float64Array(a.buffer);if(n===`INT32`)return new Int32Array(a.buffer);if(n===`INT64`)return new BigInt64Array(a.buffer);if(n===`FIXED_LEN_BYTE_ARRAY`){let e=Array(t);for(let n=0;n<t;n++)e[n]=a.subarray(n*i,(n+1)*i);return e}throw Error(`parquet byte_stream_split unsupported type: ${n}`)}function U_(e,t){switch(e){case`INT32`:case`FLOAT`:return 4;case`INT64`:case`DOUBLE`:return 8;case`FIXED_LEN_BYTE_ARRAY`:if(!t)throw Error(`parquet byteWidth missing type_length`);return t;default:throw Error(`parquet unsupported type: ${e}`)}}function W_(e,t,n,r){if(n===0)return[];if(t===`BOOLEAN`)return G_(e,n);if(t===`INT32`)return K_(e,n);if(t===`INT64`)return q_(e,n);if(t===`INT96`)return J_(e,n);if(t===`FLOAT`)return Y_(e,n);if(t===`DOUBLE`)return X_(e,n);if(t===`BYTE_ARRAY`)return Z_(e,n);if(t===`FIXED_LEN_BYTE_ARRAY`){if(!r)throw Error(`parquet missing fixed length`);return Q_(e,n,r)}else throw Error(`parquet unhandled type: ${t}`)}function G_(e,t){let n=Array(t);for(let r=0;r<t;r++){let t=e.offset+(r/8|0),i=r%8;n[r]=(e.view.getUint8(t)&1<<i)!=0}return e.offset+=Math.ceil(t/8),n}function K_(e,t){let n=(e.view.byteOffset+e.offset)%4?new Int32Array($_(e.view.buffer,e.view.byteOffset+e.offset,t*4)):new Int32Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*4,n}function q_(e,t){let n=(e.view.byteOffset+e.offset)%8?new BigInt64Array($_(e.view.buffer,e.view.byteOffset+e.offset,t*8)):new BigInt64Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*8,n}function J_(e,t){let n=Array(t);for(let r=0;r<t;r++){let t=e.view.getBigInt64(e.offset+r*12,!0),i=e.view.getInt32(e.offset+r*12+8,!0);n[r]=BigInt(i)<<64n|t}return e.offset+=t*12,n}function Y_(e,t){let n=(e.view.byteOffset+e.offset)%4?new Float32Array($_(e.view.buffer,e.view.byteOffset+e.offset,t*4)):new Float32Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*4,n}function X_(e,t){let n=(e.view.byteOffset+e.offset)%8?new Float64Array($_(e.view.buffer,e.view.byteOffset+e.offset,t*8)):new Float64Array(e.view.buffer,e.view.byteOffset+e.offset,t);return e.offset+=t*8,n}function Z_(e,t){let n=Array(t);for(let r=0;r<t;r++){let t=e.view.getUint32(e.offset,!0);e.offset+=4,n[r]=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t),e.offset+=t}return n}function Q_(e,t,n){let r=Array(t);for(let i=0;i<t;i++)r[i]=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,n),e.offset+=n;return r}function $_(e,t,n){let r=new ArrayBuffer(n);return new Uint8Array(r).set(new Uint8Array(e,t,n)),r}var ev=[0,255,65535,16777215,4294967295];function tv(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[t+a]}function nv(e,t){let n=e.byteLength,r=t.byteLength,i=0,a=0;for(;i<n;){let t=e[i];if(i++,t<128)break}if(r&&i>=n)throw Error(`invalid snappy length header`);for(;i<n;){let r=e[i],o=0;if(i++,i>=n)throw Error(`missing eof marker`);if(r&3){let s=0;switch(r&3){case 1:o=(r>>>2&7)+4,s=e[i]+(r>>>5<<8),i++;break;case 2:if(n<=i+1)throw Error(`snappy error end of input`);o=(r>>>2)+1,s=e[i]+(e[i+1]<<8),i+=2;break;case 3:if(n<=i+3)throw Error(`snappy error end of input`);o=(r>>>2)+1,s=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+(e[i+3]<<24),i+=4;break;default:break}if(s===0||isNaN(s))throw Error(`invalid offset ${s} pos ${i} inputLength ${n}`);if(s>a)throw Error(`cannot copy from before start of buffer`);tv(t,a-s,t,a,o),a+=o}else{let o=(r>>>2)+1;if(o>60){if(i+3>=n)throw Error(`snappy error literal pos + 3 >= inputLength`);let t=o-60;o=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+(e[i+3]<<24),o=(o&ev[t])+1,i+=t}if(i+o>n)throw Error(`snappy error literal exceeds input length`);tv(e,i,t,a,o),i+=o,a+=o}}if(a!==r)throw Error(`premature end of input`)}function rv(e,t,{type:n,element:r,schemaPath:i}){let a=new DataView(e.buffer,e.byteOffset,e.byteLength),o={view:a,offset:0},s,c=iv(o,t,i),{definitionLevels:l,numNulls:u}=av(o,t,i),d=t.num_values-u;if(t.encoding===`PLAIN`)s=W_(o,n,d,r.type_length);else if(t.encoding===`PLAIN_DICTIONARY`||t.encoding===`RLE_DICTIONARY`||t.encoding===`RLE`){let e=n===`BOOLEAN`?1:a.getUint8(o.offset++);e?(s=Array(d),n===`BOOLEAN`?(z_(o,e,s),s=s.map(e=>!!e)):z_(o,e,s,a.byteLength-o.offset)):s=new Uint8Array(d)}else if(t.encoding===`BYTE_STREAM_SPLIT`)s=H_(o,d,n,r.type_length);else if(t.encoding===`ALP`)s=D_(o,d,n);else if(t.encoding===`DELTA_BINARY_PACKED`)s=n===`INT32`?new Int32Array(d):new BigInt64Array(d),P_(o,d,s);else if(t.encoding===`DELTA_LENGTH_BYTE_ARRAY`)s=Array(d),L_(o,d,s);else if(t.encoding===`DELTA_BYTE_ARRAY`)s=Array(d),R_(o,d,s);else throw Error(`parquet unsupported encoding: ${t.encoding}`);return{definitionLevels:l,repetitionLevels:c,dataPage:s}}function iv(e,t,n){if(n.length>1){let r=Ah(n);if(r){let n=Array(t.num_values);return z_(e,uv(r),n),n}}return[]}function av(e,t,n){let r=jh(n);if(!r)return{definitionLevels:[],numNulls:0};let i=Array(t.num_values);z_(e,uv(r),i);let a=t.num_values;for(let e of i)e===r&&a--;return a===0&&(i.length=0),{definitionLevels:i,numNulls:a}}function ov(e,t,n,r){let i,a=r?.[n];if(n===`UNCOMPRESSED`)i=e;else if(a)i=a(e,t);else if(n===`SNAPPY`)i=new Uint8Array(t),nv(e,i);else throw Error(`parquet unsupported compression codec: ${n}`);if(i?.length!==t)throw Error(`parquet decompressed page length ${i?.length} does not match header ${t}`);return i}function sv(e,t,n){let r={view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0},{type:i,element:a,schemaPath:o,codec:s,compressors:c}=n,l=t.data_page_header_v2;if(!l)throw Error(`parquet data page header v2 is undefined`);let u=cv(r,l,o);r.offset=l.repetition_levels_byte_length;let d=lv(r,l,o),f=t.uncompressed_page_size-l.definition_levels_byte_length-l.repetition_levels_byte_length,p=e.subarray(r.offset);l.is_compressed!==!1&&f&&(p=ov(p,f,s,c));let m=new DataView(p.buffer,p.byteOffset,p.byteLength),h={view:m,offset:0},g,_=l.num_values-l.num_nulls;if(l.encoding===`PLAIN`)g=W_(h,i,_,a.type_length);else if(l.encoding===`RLE`)g=Array(_),z_(h,1,g),g=g.map(e=>!!e);else if(l.encoding===`PLAIN_DICTIONARY`||l.encoding===`RLE_DICTIONARY`){let e=m.getUint8(h.offset++);g=Array(_),z_(h,e,g,f-1)}else if(l.encoding===`DELTA_BINARY_PACKED`)g=i===`INT32`?new Int32Array(_):new BigInt64Array(_),P_(h,_,g);else if(l.encoding===`DELTA_LENGTH_BYTE_ARRAY`)g=Array(_),L_(h,_,g);else if(l.encoding===`DELTA_BYTE_ARRAY`)g=Array(_),R_(h,_,g);else if(l.encoding===`BYTE_STREAM_SPLIT`)g=H_(h,_,i,a.type_length);else if(l.encoding===`ALP`)g=D_(h,_,i);else throw Error(`parquet unsupported encoding: ${l.encoding}`);return{definitionLevels:d,repetitionLevels:u,dataPage:g}}function cv(e,t,n){let r=Ah(n);if(!r)return[];let i=Array(t.num_values);return z_(e,uv(r),i,t.repetition_levels_byte_length),i}function lv(e,t,n){let r=jh(n);if(r){let n=Array(t.num_values);return z_(e,uv(r),n,t.definition_levels_byte_length),n}}function uv(e){return 32-Math.clz32(e)}function dv(e,{groupStart:t,selectStart:n,selectEnd:r},i,a){let{pathInSchema:o,schemaPath:s}=i,c=Ph(s),l=[],u,d,f=0,p=0,m=a&&(()=>{d&&a({pathInSchema:o,columnData:d,rowStart:t+f-d.length,rowEnd:t+f})});for(;(c?f<r:e.offset<e.view.byteLength-1)&&!(e.offset>=e.view.byteLength-1);){let t=pv(e);if(t.type===`DICTIONARY_PAGE`){let{data:n}=fv(e,t,i,u,void 0,0);n&&(u=Sh(n,i))}else{let r=d?.length||0,a=fv(e,t,i,u,d,n-f);a.skipped?(l.length||(p+=a.skipped),f+=a.skipped):a.data&&d===a.data?f+=a.data.length-r:a.data&&a.data.length&&(m?.(),l.push(a.data),f+=a.data.length,d=a.data)}}return m?.(),{data:l,skipped:p}}function fv(e,t,n,r,i,a){let{type:o,element:s,schemaPath:c,codec:l,compressors:u}=n,d=new Uint8Array(e.view.buffer,e.view.byteOffset+e.offset,t.compressed_page_size);if(e.offset+=t.compressed_page_size,t.type===`DATA_PAGE`){let e=t.data_page_header;if(!e)throw Error(`parquet data page header is undefined`);if(a>e.num_values&&Ph(c))return{skipped:e.num_values};let{definitionLevels:o,repetitionLevels:s,dataPage:f}=rv(ov(d,Number(t.uncompressed_page_size),l,u),e,n),p=xh(f,r,e.encoding,n);return{skipped:0,data:v_(Array.isArray(i)?i:[],o,s,p,c)}}else if(t.type===`DATA_PAGE_V2`){let e=t.data_page_header_v2;if(!e)throw Error(`parquet data page header v2 is undefined`);if(a>e.num_rows)return{skipped:e.num_rows};let{definitionLevels:o,repetitionLevels:s,dataPage:l}=sv(d,t,n),u=xh(l,r,e.encoding,n);return{skipped:0,data:v_(Array.isArray(i)?i:[],o,s,u,c)}}else if(t.type===`DICTIONARY_PAGE`){let e=t.dictionary_page_header;if(!e)throw Error(`parquet dictionary page header is undefined`);let n=ov(d,Number(t.uncompressed_page_size),l,u);return{skipped:0,data:W_({view:new DataView(n.buffer,n.byteOffset,n.byteLength),offset:0},o,e.num_values,s.type_length)}}else throw Error(`parquet unsupported page type: ${t.type}`)}function pv(e){let t=Kh(e);return{type:uh[t.field_1],uncompressed_page_size:t.field_2,compressed_page_size:t.field_3,crc:t.field_4,data_page_header:t.field_5&&{num_values:t.field_5.field_1,encoding:oh[t.field_5.field_2],definition_level_encoding:oh[t.field_5.field_3],repetition_level_encoding:oh[t.field_5.field_4],statistics:mv(t.field_5.field_5)},index_page_header:t.field_6,dictionary_page_header:t.field_7&&{num_values:t.field_7.field_1,encoding:oh[t.field_7.field_2],is_sorted:t.field_7.field_3},data_page_header_v2:t.field_8&&{num_values:t.field_8.field_1,num_nulls:t.field_8.field_2,num_rows:t.field_8.field_3,encoding:oh[t.field_8.field_4],definition_levels_byte_length:t.field_8.field_5,repetition_levels_byte_length:t.field_8.field_6,is_compressed:t.field_8.field_7===void 0?!0:t.field_8.field_7,statistics:mv(t.field_8.field_8)}}}function mv(e){return e&&{max:e.field_1,min:e.field_2,null_count:e.field_3,distinct_count:e.field_4,max_value:e.field_5,min_value:e.field_6,is_max_value_exact:e.field_7,is_min_value_exact:e.field_8}}function hv(e,{metadata:t},n){let r=[],i=ig(t),a=n.chunks.filter(e=>`pageLocations`in e||`offsetIndex`in e),o=Promise.all(a.map(async t=>{if(`pageLocations`in t)return gv(n,t,t.pageLocations);if(!(`offsetIndex`in t))throw Error(`parquet expected offset index`);let r=await e.file.slice(t.offsetIndex.startByte,t.offsetIndex.endByte),i=ug({view:new DataView(r),offset:0}).page_locations;return gv(n,t,i)})).then(t=>{let n=t.flatMap(e=>e.fetches);return{file:i_(e.file,{fetches:n_(n,0,qg)}),selections:t}}),s=0;for(let t of n.chunks){let{path_in_schema:a}=t.columnMetadata,c=Oh(i,a),l={pathInSchema:a,element:c[c.length-1].element,schemaPath:c,...e,...t.columnMetadata,parsers:{...bh,...e.parsers}},{startByte:u,endByte:d}=t.range;if(`pageLocations`in t||`offsetIndex`in t){let t=s++;r.push({pathInSchema:a,data:o.then(({file:r,selections:i})=>_v({...e,file:r},n,i[t],l))})}else r.push({pathInSchema:a,data:Promise.resolve(e.file.slice(u,d)).then(t=>dv({view:new DataView(t),offset:0},n,l,e.onPage))})}return{groupStart:n.groupStart,groupRows:n.groupRows,selectStart:n.selectStart,selectEnd:n.selectEnd,asyncColumns:r}}function gv(e,t,n){let{data_page_offset:r,dictionary_page_offset:i}=t.columnMetadata,{selectStart:a,selectEnd:o}=e,{startByte:s,endByte:c}=t.range,l=-1,u=i||r<n[0].offset;for(let t=0;t<n.length;t++){let r=n[t],i=Number(r.first_row_index),u=t+1<n.length?Number(n[t+1].first_row_index):e.groupRows;l<0&&u>a&&(s=Number(r.offset),l=i),i<o&&(c=Number(r.offset)+r.compressed_page_size)}if(l<0&&(l=0),!u)return{skipped:l,fetches:[{startByte:s,endByte:c}]};if(!l)return{skipped:l,fetches:[{startByte:t.range.startByte,endByte:c}]};let d={startByte:t.range.startByte,endByte:Number(n[0].offset)};return{skipped:l,fetches:[d,{startByte:s,endByte:c}]}}async function _v(e,t,{skipped:n,fetches:r},i){let a;if(r.length>1){let[t,n]=r,i=t.endByte-t.startByte,[o,s]=await Promise.all([e.file.slice(t.startByte,t.endByte),e.file.slice(n.startByte,n.endByte)]),c=new Uint8Array(i+s.byteLength);c.set(new Uint8Array(o,0,i)),c.set(new Uint8Array(s),i),a=new DataView(c.buffer)}else a=new DataView(await e.file.slice(r[0].startByte,r[0].endByte));let{data:o,skipped:s}=dv({view:a,offset:0},n?{...t,groupStart:t.groupStart+n,selectStart:t.selectStart-n,selectEnd:t.selectEnd-n}:t,i,e.onPage);return{data:o,skipped:n+s}}async function vv({asyncColumns:e},t,n,r,i){let a=await Promise.all(e.map(e=>e.data.then(({skipped:e,data:t})=>({skipped:e,data:Mg(t)})))),o=n-t;if(i===`object`){let n=Array(o);for(let r=0;r<o;r++){let i={};for(let n=0;n<e.length;n++){let{data:o,skipped:s}=a[n];i[e[n].pathInSchema[0]]=o[t+r-s]}n[r]=i}return n}let s=e.map(e=>e.pathInSchema[0]).filter(e=>!r||r.includes(e)),c=r??s,l=c.map(t=>e.findIndex(e=>e.pathInSchema[0]===t)),u=Array(o);for(let n=0;n<o;n++){let r=Array(e.length);for(let e=0;e<c.length;e++){let i=l[e];if(i<0)throw Error(`parquet column not found: ${c[e]}`);let{data:o,skipped:s}=a[i];r[e]=o[t+n-s]}u[n]=r}return u}function yv(e,t,n){let{asyncColumns:r}=e,i={...bh,...n},a=[];for(let n of t.children)if(n.children.length){let t=r.filter(e=>e.pathInSchema[0]===n.element.name);if(!t.length)continue;a.push({pathInSchema:n.path,data:(async()=>{let r=await Promise.all(t.map(e=>e.data)),a=new Map,o=r.map(({data:e})=>Mg(e)),s=Math.max(e.selectStart??0,...r.map(e=>e.skipped)),c=Math.min(e.selectEnd??1/0,...r.map((e,t)=>e.skipped+o[t].length));for(let e=0;e<t.length;e++){let n=s-r[e].skipped,i=Math.max(0,c-s);a.set(t[e].pathInSchema.join(`.`),o[e].slice(n,n+i))}y_(a,n,i);let l=a.get(n.element.name);if(!l)throw Error(`parquet column data not assembled`);return{data:[l],skipped:s}})()})}else{let e=r.find(e=>e.pathInSchema[0]===n.element.name);e&&a.push(e)}return{...e,asyncColumns:a}}async function bv(e){let t=await xv(e);return{options:t,plan:Yg(t)}}async function xv(e){let t=e.metadata??await ng(e.file,e),n=ig(t).children.map(e=>e.element.name),r=Fg(e.filter).filter(e=>!n.includes(e));if(r.length)throw Error(`parquet filter columns not found: ${r.join(`, `)}`);if(e.columns){let t=e.columns.filter(e=>!n.includes(e));if(t.length)throw Error(`parquet column not found: ${t[0]}`)}let i={...e,metadata:t};return i=await Cv(i),i=await wv(i),i}function Sv(e,t){let n={...e,file:i_(e.file,t)};return t.groups.map(e=>hv(n,t,e))}async function Cv(e){if(!e.useBloomFilters||!e.filter||!e.metadata)return e;let t=ig(e.metadata),n={};for(let e of t.children)n[e.element.name]=e.element;let r=await e_({file:e.file,metadata:e.metadata,filter:e.filter,filterStrict:e.filterStrict,rowStart:e.rowStart,rowEnd:e.rowEnd});return{...e,bloomFiltersByGroup:r,schemaElements:n}}async function wv(e){if(!e.usePageIndex||!e.filter||!e.metadata)return e;let{pageRangesByGroup:t,pageLocationsByGroup:n}=await t_({file:e.file,metadata:e.metadata,filter:e.filter,filterStrict:e.filterStrict,rowStart:e.rowStart,rowEnd:e.rowEnd,columns:e.columns,bloomFiltersByGroup:e.bloomFiltersByGroup,schemaElements:e.schemaElements,parsers:e.parsers});return{...e,pageRangesByGroup:t,pageLocationsByGroup:n}}var Tv=Symbol(`rowIndex`);async function Ev(e){e.metadata??=await ng(e.file,e);let{rowStart:t=0,rowEnd:n,columns:r,onChunk:i,onComplete:a,rowFormat:o,filter:s,filterStrict:c=!0}=e;if(s&&o!==`object`)throw Error(`parquet filter requires rowFormat: "object"`);if(e.includeRowIndex&&o!==`object`)throw Error(`parquet includeRowIndex requires rowFormat: "object"`);let l=Fg(s),u=r;if(r&&l.length){let e=new Set(r),t=l.filter(t=>!e.has(t));t.length&&(u=[...r,...t])}let d=await bv(u===r?e:{...e,columns:u}),f=d.options,p=u!==r,m=Sv(f,d.plan);if(!a&&!i){await Dv(m);return}if(!f.metadata)throw Error(`parquet requires metadata`);let h=ig(f.metadata),g=m.map(t=>yv(t,h,e.parsers));if(i)for(let e of g)for(let t of e.asyncColumns)t.data.then(({data:n,skipped:r})=>{let a=e.groupStart+r;for(let e of n)i({columnName:t.pathInSchema[0],columnData:e,rowStart:a,rowEnd:a+e.length}),a+=e.length},()=>{});if(a){await Dv(g);let i=[];for(let a of g){let d=a.selectStart??Math.max(t-a.groupStart,0),f=a.selectEnd??Math.min((n??1/0)-a.groupStart,a.groupRows),m=o===`object`?await vv(a,d,f,u,`object`):await vv(a,d,f,r,`array`);if(e.includeRowIndex)for(let e=0;e<m.length;e++)Object.defineProperty(m[e],Tv,{value:a.groupStart+d+e});if(s){for(let e of m)if(Ig(e,s,c)){if(p&&r)for(let t of l)r.includes(t)||delete e[t];i.push(e)}}else Ag(i,m)}a(i)}else await Dv(g)}async function Dv(e){let t=e.flatMap(e=>e.asyncColumns.map(e=>e.data)),n=(await Promise.allSettled(t)).find(e=>e.status===`rejected`);if(n)throw n.reason}function Ov(){let e=kv();return(t,n)=>{let{memory:r,uncompress:i}=e.exports,a=68e3,o=a+t.byteLength,s=a+t.byteLength+n;if(r.buffer.byteLength<s){let e=64*1024,t=r.buffer.byteLength/e,n=Math.ceil(s/e)-t;r.grow(n)}let c=new Uint8Array(r.buffer);c.set(t,a);let l=i(a,t.byteLength,o);if(l===-1)throw Error(`invalid snappy length header`);if(l===-2)throw Error(`missing eof marker`);if(l===-3)throw Error(`premature end of input`);if(l)throw Error(`failed to uncompress data ${l}`);return c.slice(o,o+n)}}function kv(){let e=atob(Av),t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=1)t[n]=e.charCodeAt(n);let n=new WebAssembly.Module(t);return new WebAssembly.Instance(n)}var Av=`AGFzbQEAAAABEANgAABgA39/fwF/YAF/AX8DBgUAAQEBAgUDAQACBj8KfwFBoIwEC38AQYAIC38AQaAMC38AQaAMC38AQaCMBAt/AEGACAt/AEGgjAQLfwBBgIAIC38AQQALfwBBAQsHwQEOBm1lbW9yeQIAEV9fd2FzbV9jYWxsX2N0b3JzAAAGbWVtY3B5AAEHbWVtbW92ZQACCnVuY29tcHJlc3MAAwxfX2Rzb19oYW5kbGUDAQpfX2RhdGFfZW5kAwILX19zdGFja19sb3cDAwxfX3N0YWNrX2hpZ2gDBA1fX2dsb2JhbF9iYXNlAwULX19oZWFwX2Jhc2UDBgpfX2hlYXBfZW5kAwcNX19tZW1vcnlfYmFzZQMIDF9fdGFibGVfYmFzZQMJCuASBQIAC8sBAQN/AkAgAkUNAAJAAkAgAkEHcSIDDQAgACEEIAIhBQwBCyAAIQQgAiEFA0AgBCABLQAAOgAAIARBAWohBCABQQFqIQEgBUF/aiEFIANBf2oiAw0ACwsgAkEISQ0AA0AgBCABLQAAOgAAIAQgAS0AAToAASAEIAEtAAI6AAIgBCABLQADOgADIAQgAS0ABDoABCAEIAEtAAU6AAUgBCABLQAGOgAGIAQgAS0ABzoABy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AALCyAQICAhAAQMIRAhICIABQwiECIgIwAGDCMQIyAkAAcMJBAkICUACAwlECUgJgAJDCYQJiAnAAoMJxAnICgACwwoECggKQAEDSkQKSAqAAUNKhAqICsABg0rECsgLAAHDSwQLCAtAAgNLRAtIC4ACQ0uEC4gLwAKDS8QLyAwAAsNMBAwIDEABA4xEDEgMgAFDjIQMiAzAAYOMxAzIDQABw40EDQgNQAIDjUQNSA2AAkONhA2IDcACg43EDcgOAALDjgQOCA5AAQPORA5IDoABQ86EDogOwAGDzsQOyA8AAcPPBA8IAEICA89ED0gARAJDz4QPiABGAoPPxA/IAEgCw9AEEAgAGQEbmFtZQE9BQARX193YXNtX2NhbGxfY3RvcnMBBm1lbWNweQIHbWVtbW92ZQMKdW5jb21wcmVzcwQKcmVmaWxsX3RhZwcSAQAPX19zdGFja19wb2ludGVyCQoBAAcucm9kYXRhADIJcHJvZHVjZXJzAQxwcm9jZXNzZWQtYnkBDFVidW50dSBjbGFuZwsxNi4wLjYgKDE1KQAsD3RhcmdldF9mZWF0dXJlcwIrD211dGFibGUtZ2xvYmFscysIc2lnbi1leHQ=`,jv=4096,Mv=2*jv+32,Nv=2*jv-1,Pv=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]),Fv=class{constructor(e){this.buf_=new Uint8Array(Mv),this.input_=e,this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.reset()}static READ_SIZE=jv;static IBUF_MASK=Nv;reset(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(let e=0;e<4;e++)this.val_|=this.buf_[this.pos_]<<8*e,this.pos_++;return this.bit_end_pos_>0}readMoreInput(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw Error(`Unexpected end of input `+this.bit_pos_+` `+this.bit_end_pos_)}else{let e=this.buf_ptr_,t=this.input_.read(this.buf_,e,jv);if(t<0)throw Error(`Unexpected end of input`);if(t<jv){this.eos_=1;for(let n=0;n<32;n++)this.buf_[e+t+n]=0}if(e===0){for(let e=0;e<32;e++)this.buf_[(jv<<1)+e]=this.buf_[e];this.buf_ptr_=jv}else this.buf_ptr_=0;this.bit_end_pos_+=t<<3}}fillBitWindow(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&Nv]<<24,this.pos_++,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0}readBits(e){32-this.bit_pos_<e&&this.fillBitWindow();let t=this.val_>>>this.bit_pos_&Pv[e];return this.bit_pos_+=e,t}},Iv=8,Lv=8,Rv=255,zv=18,Bv=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),Vv=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]),Y=class{constructor(e,t){this.bits=e,this.value=t}},Hv=16,Uv=15;function Wv(e,t){let n=1<<t-1;for(;e&n;)n>>=1;return(e&n-1)+n}function Gv(e,t,n,r,i){do r-=n,e[t+r]=new Y(i.bits,i.value);while(r>0)}function Kv(e,t,n){let r=1<<t-n;for(;t<Uv&&(r-=e[t],!(r<=0));)++t,r<<=1;return t-n}function qv(e,t,n,r,i){let a=t,o=new Int32Array(Uv+1),s=new Int32Array(Uv+1),c=new Int32Array(i);for(let e=0;e<i;e++)o[r[e]]++;s[1]=0;for(let e=1;e<Uv;e++)s[e+1]=s[e]+o[e];for(let e=0;e<i;e++)r[e]!==0&&(c[s[r[e]]++]=e);let l=n,u=1<<l,d=u;if(s[Uv]===1){for(let n=0;n<d;++n)e[t+n]=new Y(0,c[0]&65535);return d}let f=0,p=0;for(let r=1,i=2;r<=n;++r,i<<=1)for(;o[r]>0;--o[r]){let n=new Y(r&255,c[p++]&65535);Gv(e,t+f,i,u,n),f=Wv(f,r)}let m=d-1,h=-1;for(let r=n+1,i=2;r<=Uv;++r,i<<=1)for(;o[r]>0;--o[r]){(f&m)!==h&&(t+=u,l=Kv(o,r,n),u=1<<l,d+=u,h=f&m,e[a+h]=new Y(l+n&255,t-a-h&65535));let s=new Y(r-n&255,c[p++]&65535);Gv(e,t+(f>>n),i,u,s),f=Wv(f,r)}return d}function Jv(e,t,n,r){let i=new Uint8Array(e);r.readMoreInput();let a=r.readBits(2);if(a===1){let t=e-1,n=0,a=new Int32Array(4),o=r.readBits(2)+1;for(;t;)t>>=1,n++;for(let t=0;t<o;t++)a[t]=r.readBits(n)%e,i[a[t]]=2;switch(i[a[0]]=1,o){case 1:break;case 3:if(a[0]===a[1]||a[0]===a[2]||a[1]===a[2])throw Error(`[ReadHuffmanCode] invalid symbols`);break;case 2:if(a[0]===a[1])throw Error(`[ReadHuffmanCode] invalid symbols`);i[a[1]]=1;break;case 4:if(a[0]===a[1]||a[0]===a[2]||a[0]===a[3]||a[1]===a[2]||a[1]===a[3]||a[2]===a[3])throw Error(`[ReadHuffmanCode] invalid symbols`);r.readBits(1)?(i[a[2]]=3,i[a[3]]=3):i[a[0]]=2;break}}else{let t=new Uint8Array(zv),n=32,o=0,s=[new Y(2,0),new Y(2,4),new Y(2,3),new Y(3,2),new Y(2,0),new Y(2,4),new Y(2,3),new Y(4,1),new Y(2,0),new Y(2,4),new Y(2,3),new Y(3,2),new Y(2,0),new Y(2,4),new Y(2,3),new Y(4,5)];for(let e=a;e<zv&&n>0;e++){let i=Bv[e],a=0;r.fillBitWindow(),a+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=s[a].bits;let c=s[a].value;t[i]=c,c!==0&&(n-=32>>c,o++)}if(!(o===1||n===0))throw Error(`[ReadHuffmanCode] invalid num_codes or space`);Xv(t,e,i,r)}let o=qv(t,n,Lv,i,e);if(!o)throw Error(`brotli BuildHuffmanTable failed`);return o}function Yv(e,t,n){n.fillBitWindow(),t+=n.val_>>>n.bit_pos_&Rv;let r=e[t].bits-Lv;return r>0&&(n.bit_pos_+=Lv,t+=e[t].value,t+=n.val_>>>n.bit_pos_&(1<<r)-1),n.bit_pos_+=e[t].bits,e[t].value}function Xv(e,t,n,r){let i=0,a=Iv,o=0,s=0,c=32768,l=[];for(let e=0;e<32;e++)l.push(new Y(0,0));for(qv(l,0,5,e,zv);i<t&&c>0;){let e=0;r.readMoreInput(),r.fillBitWindow(),e+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=l[e].bits;let u=l[e].value&255;if(u<Hv)o=0,n[i++]=u,u!==0&&(a=u,c-=32768>>u);else{let e=u-14,l=0;u===Hv&&(l=a),s!==l&&(o=0,s=l);let d=o;o>0&&(o-=2,o<<=e),o+=r.readBits(e)+3;let f=o-d;if(i+f>t)throw Error(`[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols`);for(let e=0;e<f;e++)n[i+e]=s;i+=f,s!==0&&(c-=f<<15-s)}}if(c!==0)throw Error(`[ReadHuffmanCodeLengths] space = `+c);for(;i<t;i++)n[i]=0}var Zv=class{constructor(e,t){this.alphabet_size=e,this.num_htrees=t,this.codes=Array(t+t*Vv[e+31>>>5]),this.htrees=new Uint32Array(t)}decode(e){let t=0;for(let n=0;n<this.num_htrees;n++)this.htrees[n]=t,t+=Jv(this.alphabet_size,this.codes,t,e)}};function Qv([e,t]){return{offset:e,nbits:t}}var $v=[[1,2],[5,2],[9,2],[13,2],[17,3],[25,3],[33,3],[41,3],[49,4],[65,4],[81,4],[97,4],[113,5],[145,5],[177,5],[209,5],[241,6],[305,6],[369,7],[497,8],[753,9],[1265,10],[2289,11],[4337,12],[8433,13],[16625,24]].map(Qv),ey=[[0,0],[1,0],[2,0],[3,0],[4,0],[5,0],[6,1],[8,1],[10,2],[14,2],[18,3],[26,3],[34,4],[50,4],[66,5],[98,5],[130,6],[194,7],[322,8],[578,9],[1090,10],[2114,12],[6210,14],[22594,24]].map(Qv),ty=[[2,0],[3,0],[4,0],[5,0],[6,0],[7,0],[8,0],[9,0],[10,1],[12,1],[14,2],[18,2],[22,3],[30,3],[38,4],[54,4],[70,5],[102,5],[134,6],[198,7],[326,8],[582,9],[1094,10],[2118,24]].map(Qv),ny=[0,0,8,8,0,16,8,16,16],ry=[0,8,0,8,16,0,16,8,16],iy=1080,ay=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),oy=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]);function sy(e,t){let n=new Uint16Array(31);for(let r=0;r<31;r++)n[r]=t+=1<<e[r-1];let r=new Int32Array(n[30]);for(let e=1;e<30;e++)for(let t=n[e];t<n[e+1];++t)r[t]=t-n[e]<<5|e;return{base:n,rev:r}}var{base:cy,rev:ly}=sy(ay,2);cy[28]=258,ly[258]=28;var{base:uy}=sy(oy,0),dy=new Uint16Array(32768);for(let e=0;e<32768;e++){let t=(e&43690)>>1|(e&21845)<<1;t=(t&52428)>>2|(t&13107)<<2,t=(t&61680)>>4|(t&3855)<<4,dy[e]=((t&65280)>>8|(t&255)<<8)>>1}function fy(e,t,n){let r=new Uint16Array(t);for(let t=0;t<e.length;t++)e[t]&&++r[e[t]-1];let i=new Uint16Array(t);for(let e=1;e<t;e++)i[e]=i[e-1]+r[e-1]<<1;let a;if(n){a=new Uint16Array(1<<t);let n=15-t;for(let r=0;r<e.length;r++)if(e[r]){let o=r<<4|e[r],s=t-e[r],c=i[e[r]-1]++<<s;for(let e=c|(1<<s)-1;c<=e;c++)a[dy[c]>>n]=o}}else{a=new Uint16Array(e.length);for(let t=0;t<e.length;t++)e[t]&&(a[t]=dy[i[e[t]-1]++]>>15-e[t])}return a}var py=new Uint8Array(288);for(let e=0;e<144;e++)py[e]=8;for(let e=144;e<256;e++)py[e]=9;for(let e=256;e<280;e++)py[e]=7;for(let e=280;e<288;e++)py[e]=8;var my=new Uint8Array(32);for(let e=0;e<32;e++)my[e]=5;var hy=fy(py,9,1),gy=fy(my,5,1);function _y(e,t,n,r,i,a,o){let s=n*2,c=n,l=Yv(t,n*iy,o),u;u=l===0?i[s+(a[c]&1)]:l===1?i[s+(a[c]-1&1)]+1:l-2,u>=e&&(u-=e),r[n]=u,i[s+(a[c]&1)]=u,a[c]++}function vy(e){let t={meta_block_length:0,input_end:0,is_uncompressed:0,is_metadata:!1};if(t.input_end=e.readBits(1),t.input_end&&e.readBits(1))return t;let n=e.readBits(2)+4;if(n===7){if(t.is_metadata=!0,e.readBits(1)!==0)throw Error(`Invalid reserved bit`);let n=e.readBits(2);if(n===0)return t;for(let r=0;r<n;r++){let i=e.readBits(8);if(r+1===n&&n>1&&i===0)throw Error(`Invalid size byte`);t.meta_block_length|=i<<r*8}}else for(let r=0;r<n;r++){let i=e.readBits(4);if(r+1===n&&n>4&&i===0)throw Error(`Invalid size nibble`);t.meta_block_length|=i<<r*4}return t.meta_block_length++,!t.input_end&&!t.is_metadata&&(t.is_uncompressed=e.readBits(1)),t}function yy(e,t,n,r,i,a){let o=i+1,s=n&i,c=a.pos_&Fv.IBUF_MASK;if(t<8||a.bit_pos_+(t<<3)<a.bit_end_pos_){for(;t-- >0;)a.readMoreInput(),r[s++]=a.readBits(8),s===o&&(e.write(r,o),s=0);return}if(a.bit_end_pos_<32)throw Error(`copyUncompressedBlockToOutput: br.bit_end_pos_ < 32`);for(;a.bit_pos_<32;)r[s]=a.val_>>>a.bit_pos_,a.bit_pos_+=8,s++,t--;let l=a.bit_end_pos_-a.bit_pos_>>3;if(c+l>Fv.IBUF_MASK){let e=Fv.IBUF_MASK+1-c;for(let t=0;t<e;t++)r[s+t]=a.buf_[c+t];l-=e,s+=e,t-=e,c=0}for(let e=0;e<l;e++)r[s+e]=a.buf_[c+e];if(s+=l,t-=l,s>=o){e.write(r,o),s-=o;for(let e=0;e<s;e++)r[e]=r[o+e]}for(;s+t>=o;){if(l=o-s,a.input_.read(r,s,l)<l)throw Error(`copyUncompressedBlockToOutput: not enough bytes`);e.write(r,o),t-=l,s=0}if(a.input_.read(r,s,t)<t)throw Error(`copyUncompressedBlockToOutput: not enough bytes`);a.reset()}function by(e){if(e.readBits(1)){let t=e.readBits(3);return t===0?1:e.readBits(t)+(1<<t)}return 0}function xy(e){if(e.readBits(1)===0)return 16;let t=e.readBits(3);return t>0?17+t:(t=e.readBits(3),t>0?8+t:17)}function Sy(e){let t=e.bit_pos_+7&-8;return!e.readBits(t-e.bit_pos_)}function Cy(e,t,n){let{offset:r,nbits:i}=$v[Yv(e,t,n)];return r+n.readBits(i)}var wy=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2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,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Ty=new Uint16Array([1024,1536,1280,1536,0,256,768,512]);function Ey(e,t){let n=0;t.readMoreInput();let r=by(t)+1,i=new Uint8Array(e);if(r<=1)return[r,i];t.readBits(1)&&(n=t.readBits(4)+1);let a=[];for(let e=0;e<iy;e++)a[e]=new Y(0,0);Jv(r+n,a,0,t);for(let r=0;r<e;){t.readMoreInput();let o=Yv(a,0,t);if(o===0)i[r]=0,r++;else if(o<=n){let n=1+(1<<o)+t.readBits(o);for(;--n;){if(r>=e)throw Error(`[DecodeContextMap] i >= context_map_size`);i[r]=0,r++}}else i[r]=o-n,r++}return t.readBits(1)&&Oy(i,e),[r,i]}function Dy(e,t){let n=e[t];for(let n=t;n;n--)e[n]=e[n-1];e[0]=n}function Oy(e,t){let n=new Uint8Array(256);for(let e=0;e<256;e++)n[e]=e;for(let r=0;r<t;r++){let t=e[r];e[r]=n[t],t&&Dy(n,t)}}var ky=class{constructor(e){this.buffer=e,this.pos=0}read(e,t,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(let r=0;r<n;r++)e[t+r]=this.buffer[this.pos+r];return this.pos+=n,n}},Ay=class{constructor(e){this.buffer=e,this.pos=0}write(e,t){if(this.pos+t>this.buffer.length)throw Error(`brotli output buffer is not large enough`);return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t}},jy=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);function My(e,t,n){let r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n}function Ny(e,t){let n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)}function Py(e){return(e+7)/8|0}function Fy(e,t){if(e[t++]!==31||e[t++]!==139||e[t++]!==8)return 0;let n=e[t++];t+=6,n&4&&(t+=(e[t]|e[t+1]<<8)+2);for(let r=(n>>3&1)+(n>>4&1);r>0;r-=Number(!e[t++]));return t+(n&2)}function Iy(e,t,n=0,r=0){let i=t??new Uint8Array(1024);if(!(e.length-n))return i;let a=Fy(e,n);if(a===e.length-8)return i;if(a>e.length-8)throw Error(`unexpected EOF`);let o=a*8,s=0,c=0,l=0,u,d,f=e.length*8;function p(e){if(!t&&e>i.length){let t=i;i=new Uint8Array(Math.max(t.length*2,e)),i.set(t)}}do{if(!u){s=My(e,o,1);let t=My(e,o+1,3);if(o+=3,!t){let t=Py(o)+4,n=e[t-4]|e[t-3]<<8,a=t+n;if(a>e.length)throw Error(`unexpected EOF`);p(r+n),i.set(e.subarray(t,a),r),r+=n,o=a*8;continue}else if(t===1)u=hy,d=gy,c=9,l=5;else if(t===2){let t=My(e,o,31)+257,n=My(e,o+10,15)+4,r=t+My(e,o+5,31)+1;o+=14;let i=new Uint8Array(r),a=new Uint8Array(19);for(let t=0;t<n;++t)a[jy[t]]=My(e,o+t*3,7);o+=n*3;let s=Math.max(...a),f=(1<<s)-1,p=fy(a,s,1);for(let t=0;t<r;){let n=p[My(e,o,f)];o+=n&15;let r=n>>4;if(r<16)i[t++]=r;else{let n=0,a=0;for(r===16?(a=3+My(e,o,3),o+=2,n=i[t-1]):r===17?(a=3+My(e,o,7),o+=3):r===18&&(a=11+My(e,o,127),o+=7);a--;)i[t++]=n}}let m=i.subarray(0,t),h=i.subarray(t);c=Math.max(...m),l=Math.max(...h),u=fy(m,c,1),d=fy(h,l,1)}else throw Error(`invalid block type`);if(o>f)throw Error(`unexpected EOF`)}p(r+131072);let t=(1<<c)-1,n=(1<<l)-1;for(;;){let a=u[Ny(e,o)&t],s=a>>4;if(o+=a&15,o>f)throw Error(`unexpected EOF`);if(!a)throw Error(`invalid length/literal`);if(s<256)i[r++]=s;else if(s===256){u=void 0;break}else{let t=s-254;if(s>264){let n=s-257,r=ay[n];t=My(e,o,(1<<r)-1)+cy[n],o+=r}if(!d)throw Error(`invalid distance map`);let a=d[Ny(e,o)&n],c=a>>4;if(!a)throw Error(`invalid distance`);o+=a&15;let l=uy[c];if(c>3){let t=oy[c];l+=Ny(e,o)&(1<<t)-1,o+=t}if(o>f)throw Error(`unexpected EOF`);let u=r+t;if(r<l)throw Error(`unexpected dictionary case`);for(p(u);r<u;r++)i[r]=i[r-l]}}u&&(s=1)}while(!s);if(r<i.length){let t=Math.ceil(o/8)+8;Iy(e,i,t,r)}return t?i:i.subarray(0,r)}var Ly=`
|
|
65
|
-
H4sIAAAAAAAAAzy96XIcx7Uu+tu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SJGrfCh1B6iJfcSnACcJemVMkZHsJFrI0lnJdms
|
|
1031
|
-
s6lwLLwmV4gKR4seJzhMXhnZuy+b9Hd/G3B8zj0TLgY+ZDEEUnkHS7w8hj3Hkm3YGxzI0vvCc9qr2Egb
|
|
1032
|
-
MTkwg9sJOkT8/jQ3KmnzBOLJyS9wLo3ELR3NZZ75gRlhN8fndGHhOc1ZSa3T8F7PabYqsjMvqRWKVy/i
|
|
1033
|
-
YEruPHv9jvnYZxalzUMH9iWulTvIaLTXEa5ZX8xVa61fFraX9QCIAKg5bh8rVRiy7m8o4pJl5O0ogZ8d
|
|
1034
|
-
vmbCnCfH5TJKTBFva0O4Wl+l/Ix13xO6KCJPD5H51fete+aO/R8EyzZRoN8BAA==`,Ry;function zy(){if(!Ry){Ry=new Uint8Array(122784);let e=atob(Ly),t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);Iy(t,Ry)}return Ry}var X=0,By=1,Vy=2,Hy=3,Uy=4,Wy=5,Gy=6,Ky=7,qy=8,Jy=9,Z=10,Q=11,Yy=12,Xy=13,Zy=14,Qy=15,$y=16,eb=17,tb=18,nb=20,$=class{constructor(e,t,n){this.prefix=new Uint8Array(e.length),this.transform=t,this.suffix=new Uint8Array(n.length);for(let t=0;t<e.length;t++)this.prefix[t]=e.charCodeAt(t);for(let e=0;e<n.length;e++)this.suffix[e]=n.charCodeAt(e)}},rb=[new $(``,X,``),new $(``,X,` `),new $(` `,X,` `),new $(``,Yy,``),new $(``,Z,` `),new $(``,X,` the `),new $(` `,X,``),new $(`s `,X,` `),new $(``,X,` of `),new $(``,Z,``),new $(``,X,` and `),new $(``,Xy,``),new $(``,By,``),new $(`, `,X,` `),new $(``,X,`, `),new $(` `,Z,` `),new $(``,X,` in `),new $(``,X,` to `),new $(`e `,X,` `),new $(``,X,`"`),new $(``,X,`.`),new $(``,X,`">`),new $(``,X,`
|
|
1035
|
-
`),new $(``,Hy,``),new $(``,X,`]`),new $(``,X,` for `),new $(``,Zy,``),new $(``,Vy,``),new $(``,X,` a `),new $(``,X,` that `),new $(` `,Z,``),new $(``,X,`. `),new $(`.`,X,``),new $(` `,X,`, `),new $(``,Qy,``),new $(``,X,` with `),new $(``,X,`'`),new $(``,X,` from `),new $(``,X,` by `),new $(``,$y,``),new $(``,eb,``),new $(` the `,X,``),new $(``,Uy,``),new $(``,X,`. The `),new $(``,Q,``),new $(``,X,` on `),new $(``,X,` as `),new $(``,X,` is `),new $(``,Ky,``),new $(``,By,`ing `),new $(``,X,`
|
|
1036
|
-
`),new $(``,X,`:`),new $(` `,X,`. `),new $(``,X,`ed `),new $(``,nb,``),new $(``,tb,``),new $(``,Gy,``),new $(``,X,`(`),new $(``,Z,`, `),new $(``,qy,``),new $(``,X,` at `),new $(``,X,`ly `),new $(` the `,X,` of `),new $(``,Wy,``),new $(``,Jy,``),new $(` `,Z,`, `),new $(``,Z,`"`),new $(`.`,X,`(`),new $(``,Q,` `),new $(``,Z,`">`),new $(``,X,`="`),new $(` `,X,`.`),new $(`.com/`,X,``),new $(` the `,X,` of the `),new $(``,Z,`'`),new $(``,X,`. This `),new $(``,X,`,`),new $(`.`,X,` `),new $(``,Z,`(`),new $(``,Z,`.`),new $(``,X,` not `),new $(` `,X,`="`),new $(``,X,`er `),new $(` `,Q,` `),new $(``,X,`al `),new $(` `,Q,``),new $(``,X,`='`),new $(``,Q,`"`),new $(``,Z,`. `),new $(` `,X,`(`),new $(``,X,`ful `),new $(` `,Z,`. `),new $(``,X,`ive `),new $(``,X,`less `),new $(``,Q,`'`),new $(``,X,`est `),new $(` `,Z,`.`),new $(``,Q,`">`),new $(` `,X,`='`),new $(``,Z,`,`),new $(``,X,`ize `),new $(``,Q,`.`),new $(`Â\xA0`,X,``),new $(` `,X,`,`),new $(``,Z,`="`),new $(``,Q,`="`),new $(``,X,`ous `),new $(``,Q,`, `),new $(``,Z,`='`),new $(` `,Z,`,`),new $(` `,Q,`="`),new $(` `,Q,`, `),new $(``,Q,`,`),new $(``,Q,`(`),new $(``,Q,`. `),new $(` `,Q,`.`),new $(``,Q,`='`),new $(` `,Q,`. `),new $(` `,Z,`="`),new $(` `,Q,`='`),new $(` `,Z,`='`)],ib=rb.length;function ab(e,t){return e[t]<192?(e[t]>=97&&e[t]<=122&&(e[t]^=32),1):e[t]<224?(e[t+1]^=32,2):(e[t+2]^=5,3)}function ob(e,t,n,r,i){let a=zy(),{prefix:o}=rb[i],{suffix:s}=rb[i],c=rb[i].transform,l=c<Yy?0:c-(Yy-1),u=t;l>r&&(l=r);let d=0;for(;d<o.length;)e[t++]=o[d++];n+=l,r-=l,c<=Jy&&(r-=c);for(let i=0;i<r;i++)e[t++]=a[n+i];let f=t-r;if(c===Z)ab(e,f);else if(c===Q)for(;r>0;){let t=ab(e,f);f+=t,r-=t}let p=0;for(;p<s.length;)e[t++]=s[p++];return t-u}var sb=256,cb=704,lb=26,ub=6,db=2,fb=16,pb=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),mb=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),hb=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),gb=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),_b=4,vb=24;function yb(e,t){let n=new Uint8Array(t);return bb(new ky(e),new Ay(n)),n}function bb(e,t){let n=0,r=0,i=0,a=[16,15,11,4],o=0,s=[new Zv(0,0),new Zv(0,0),new Zv(0,0)],c=128+Fv.READ_SIZE,l=new Fv(e),u=xy(l),d=(1<<u)-16,f=1<<u,p=f-1,m=new Uint8Array(f+c+vb),h=f,g=[],_=[];for(let e=0;e<3*iy;e++)g[e]=new Y(0,0),_[e]=new Y(0,0);for(;!r;){let e=[1<<28,1<<28,1<<28],c=[0],u=[1,1,1],v=[0,1,0,1,0,1],y=[0];for(let e=0;e<3;e++)s[e].codes=[],s[e].htrees=new Uint32Array;l.readMoreInput();let b=vy(l),x=b.meta_block_length;if(n+x>t.buffer.length){let e=new Uint8Array(n+x);e.set(t.buffer),t.buffer=e}if(r=b.input_end,b.is_metadata){for(Sy(l);x>0;--x)l.readMoreInput(),l.readBits(8);continue}if(x===0)continue;if(b.is_uncompressed){l.bit_pos_=l.bit_pos_+7&-8,yy(t,x,n,m,p,l),n+=x;continue}for(let t=0;t<3;t++)u[t]=by(l)+1,u[t]>=2&&(Jv(u[t]+2,g,t*iy,l),Jv(lb,_,t*iy,l),e[t]=Cy(_,t*iy,l),y[t]=1);l.readMoreInput();let S=l.readBits(2),C=fb+(l.readBits(4)<<S),w=(1<<S)-1,T=C+(48<<S),E=new Uint8Array(u[0]);for(let e=0;e<u[0];e++)l.readMoreInput(),E[e]=l.readBits(2)<<1;let[D,O]=Ey(u[0]<<ub,l),[k,A]=Ey(u[2]<<db,l);s[0]=new Zv(sb,D),s[1]=new Zv(cb,u[1]),s[2]=new Zv(T,k);for(let e=0;e<3;++e)s[e].decode(l);let j=0,M=0,N=E[c[0]],ee=Ty[N],te=Ty[N+1],ne=s[1].htrees[0];for(;x>0;){let r;l.readMoreInput(),e[1]===0&&(_y(u[1],g,1,c,v,y,l),e[1]=Cy(_,iy,l),ne=s[1].htrees[c[1]]),e[1]--;let b=Yv(s[1].codes,ne,l),T=b>>6;T>=2?(T-=2,r=-1):r=0;let D=ey[ny[T]+(b>>3&7)],k=D.offset+l.readBits(D.nbits),re=ty[ry[T]+(b&7)],ie=re.offset+l.readBits(re.nbits),ae=m[n-1&p],oe=m[n-2&p];for(let r=0;r<k;r++){l.readMoreInput(),e[0]===0&&(_y(u[0],g,0,c,v,y,l),e[0]=Cy(_,0,l),j=c[0]<<ub,N=E[c[0]],ee=Ty[N],te=Ty[N+1]);let r=wy[ee+ae]|wy[te+oe],i=O[j+r];e[0]--,oe=ae,ae=Yv(s[0].codes,s[0].htrees[i],l),m[n&p]=ae,(n&p)===p&&t.write(m,f),n++}if(x-=k,x<=0)break;if(r<0){l.readMoreInput(),e[2]===0&&(_y(u[2],g,2,c,v,y,l),e[2]=Cy(_,2*iy,l),M=c[2]<<db),e[2]--;let t=(ie>4?3:ie-2)&255,n=A[M+t];if(r=Yv(s[2].codes,s[2].htrees[n],l),r>=C){r-=C;let e=r&w;r>>=S;let t=(r>>1)+1;r=C+((2+(r&1)<<t)-4+l.readBits(t)<<S)+e}}let se=xb(r,a,o);if(se<0)throw Error(`[BrotliDecompress] invalid distance`);i=n<d&&i!==d?n:d;let ce=n&p;if(se>i)if(ie>=_b&&ie<=vb){let e=hb[ie],r=se-i-1,a=gb[ie],o=r&(1<<a)-1,s=r>>a;if(e+=o*ie,s<ib){let r=ob(m,ce,e,ie,s);if(ce+=r,n+=r,x-=r,ce>=h){t.write(m,f);for(let e=0;e<ce-h;e++)m[e]=m[h+e]}}else throw Error(`Invalid backward reference`)}else throw Error(`Invalid backward reference`);else{if(r>0&&(a[o&3]=se,o++),ie>x)throw Error(`Invalid backward reference`);for(let e=0;e<ie;e++)m[n&p]=m[n-se&p],(n&p)===p&&t.write(m,f),n++,x--}}n&=1073741823}t.write(m,n&p)}function xb(e,t,n){return e<fb?(n+=pb[e],n&=3,t[n]+mb[e]):e-fb+1}function Sb(e,t){let n=new Uint8Array(t);try{let t=0,r=0;for(;t<e.length-8;){let i=e[t++]<<24|e[t++]<<16|e[t++]<<8|e[t++],a=e[t++]<<24|e[t++]<<16|e[t++]<<8|e[t++];if(e.length-t<a||n.length<i||wb(e.subarray(t,t+a),n,r)!==i)throw Error(`lz4 not hadoop`);if(t+=a,r+=i,t===e.length)return n}if(t<e.length)throw Error(`lz4 not hadoop`)}catch(t){if(t instanceof Error&&t.message!==`lz4 not hadoop`)throw t;wb(e,n,0)}return n}function Cb(e,t){let n=new Uint8Array(t);return wb(e,n,0),n}function wb(e,t,n){let r=n;for(let i=0;i<e.length;){let a=e[i++],o=a>>4;if(o){let a=o+240;for(;a===255;)o+=a=e[i++];if(t.set(e.subarray(i,i+o),r),r+=o,i+=o,i>=e.length)return r-n}let s=e[i++]|e[i++]<<8;if(!s||s>r)throw Error(`lz4 offset out of range ${s}`);let c=a&15,l=c+240;for(;l===255;)c+=l=e[i++];c+=4;let u=r-s,d=r+c;for(;r<d;)t[r++]=t[u++]}return r-n}var Tb={SNAPPY:Ov(),GZIP:(e,t)=>Iy(e,new Uint8Array(t)),BROTLI:yb,ZSTD:e=>ip(e),LZ4:Sb,LZ4_RAW:Cb},Eb=e=>e instanceof Float64Array&&(e.byteOffset!==0||e.buffer.byteLength!==e.byteLength)?e.slice():e;function Db(t,n){async function*r(e,t,n){let r=e.groups[t.group],i=e.file.tables[r.table],a=t=>r.absolute&&t!==null?e.origin-(i.columns[t].origin??0):0;if(r.long){yield*w(i,r.long.shape,r.long.scan,t.channels,t.group,a(r.long.shape.time),n);return}let o=t.channels.map(e=>r.columns[e]),s=0;for await(let e of i.read(r.time===null?o:[r.time,...o],n)){let n=null;if(r.time!==null){let t=e.columns[0],i=a(r.time);n=new Float64Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[r]-i}let c=(r.time===null?e.columns:e.columns.slice(1)).map(Eb);o.forEach((e,t)=>{let n=i.columns[e].origin;if(n){let e=c[t];for(let t=0;t<e.length;t++)e[t]+=n}}),yield{group:t.group,time:n,start:s,length:e.length,columns:c},s+=e.length}}return{...t,async plan(t,r){let a=await n(t,r),o=[],s=[],c=[...a.notes],l=1/0,u=!1;for(let[n,r]of a.tables.entries()){c.push(...r.notes);let i=t.asTable?null:te(r.columns),a=i?await e(r,i):null;if(i&&a){let e=!!r.columns[i.time].absolute;e&&(l=Math.min(l,(r.columns[i.time].origin??0)+a.start)),s.push({table:n,long:{shape:i,scan:a},absolute:e}),o.push({name:r.name,channels:a.tags.map((e,t)=>({name:e,unit:a.units[t],sparse:!0})),samples:a.times,time:{kind:`timestamps`},rateHz:null,irregular:!0}),c.push(`${r.name}: one row per sample; ${a.tags.length.toLocaleString(`en-US`)} ${a.tags.length===1?`tag`:`tags`} opened as channels.`),a.sorted||c.push(`${r.name}: the rows were not in time order and were sorted.`),a.repeated&&c.push(`${r.name}: ${a.repeated.toLocaleString(`en-US`)} repeated ${a.repeated===1?`sample`:`samples`} (same time and tag) ${a.repeated===1?`was`:`were`} dropped; the first was kept.`),u=!0;continue}let d=r.columns.findIndex(e=>e.kind===`time`),f=r.columns.flatMap((e,t)=>t===d?[]:[t]);if(f.length===0){c.push(`${r.name}: no channels besides its time; skipped.`);continue}let p=d>=0&&!!r.columns[d].absolute;if(p){let e=await xe(r,d);Number.isNaN(e)||(l=Math.min(l,(r.columns[d].origin??0)+e))}s.push({table:n,long:null,time:d>=0?d:null,columns:f,absolute:p}),o.push({name:r.name,channels:f.map(e=>({name:r.columns[e].name,unit:r.columns[e].unit,text:r.columns[e].kind===`text`})),samples:r.rows,time:d>=0?{kind:`timestamps`}:{kind:`index`},rateHz:null})}if(o.length===0)throw Error(`${t.main.name}: no numbers to chart in this file.`);let d=o.filter((e,t)=>!s[t].long&&e.time.kind===`timestamps`);if(d.length>1)for(let e of d)e.irregular=!0;Number.isFinite(l)||(l=0);let f=s.some(e=>e.absolute)&&l?new Date(l*1e3).toISOString():null,p,m=o.filter((e,t)=>s[t].long&&e.channels.length>1e3);if(m.length){p=o.map((e,t)=>({group:t,channels:(s[t].long?e.channels.slice(0,i):e.channels).map((e,t)=>t)}));for(let e of m)c.push(`${e.name}: ${e.channels.length.toLocaleString(`en-US`)} tags; the first ${i.toLocaleString(`en-US`)} are loaded.`)}return{format:a.format,startTime:f,groups:o,meta:u?{layout:`long`}:{},events:[],notes:c,defaultSelection:p,state:{file:a,groups:s,origin:l}}},stream:e=>(async function*(){for(let t of e.selection)yield*r(e.plan.state,t,e.signal)})(),streamGroup:(e,t)=>r(e.plan.state,e.selection.find(e=>e.group===t),e.signal)}}var Ob={timestampFromMilliseconds:e=>e*1000000n,timestampFromMicroseconds:e=>e*1000n,timestampFromNanoseconds:e=>e,dateFromDays:e=>e*86400};function kb(e,t){if(e.first===void 0){e.first=t;let n=Number(t)/1e9;e.column.origin=e.wall?ee(n):n}let n=Number(t-e.first)/1e9;if(!e.wall)return n;let r=Number(e.first)/1e9;return n+(N(r+n)-N(r))}function Ab(e,t){let n=e.element,r=n.logical_type?.type,i=n.converted_type,a=e.path.join(`.`);if(r===`LIST`||r===`MAP`||i===`LIST`||i===`MAP`||i===`MAP_KEY_VALUE`||n.repetition_type===`REPEATED`)return t.push(a),[];if(e.children.length)return e.children.flatMap(e=>Ab(e,t));if(n.type===`INT96`)return[{path:e.path,column:{name:a,unit:``,kind:`time`,absolute:!0},wall:!1,ns:!0}];if(r===`TIMESTAMP`||r===`DATE`||i===`TIMESTAMP_MILLIS`||i===`TIMESTAMP_MICROS`||i===`DATE`){let t=r===`DATE`||i===`DATE`,o=n.logical_type?.type===`TIMESTAMP`?!n.logical_type.isAdjustedToUTC:t;return[{path:e.path,column:{name:a,unit:``,kind:`time`,absolute:!0},wall:o,ns:!t}]}if(r===`STRING`||r===`ENUM`||r===`JSON`||i===`UTF8`||i===`ENUM`||i===`JSON`)return[{path:e.path,column:{name:a,unit:``,kind:`text`},wall:!1}];if(!(n.type===`BOOLEAN`||n.type===`INT32`||n.type===`INT64`||n.type===`FLOAT`||n.type===`DOUBLE`||r===`DECIMAL`||i===`DECIMAL`))return t.push(a),[];let o=e.path.length===1&&g.test(n.name);return[{path:e.path,column:{name:a,unit:o?`s`:``,kind:o?`time`:`number`},wall:!1}]}var jb=e=>typeof e==`number`?e:typeof e==`bigint`?Number(e):typeof e==`boolean`?+!!e:NaN,Mb=(e,t)=>{for(let n of t)e=e?.[n];return e},Nb=`This Parquet file is damaged (its metadata or pages could not be read).`,Pb=async e=>{try{return await e}catch{throw Error(Nb)}},Fb=1<<23;async function Ib(e,t=Fb){let n={byteLength:e.size,slice:async(t,n=e.size)=>(await e.slice(t,n-t)).slice().buffer},r=await Pb(ng(n,{parsers:Ob})),i=[],a=ig(r).children.flatMap(e=>Ab(e,i)),o=i.length?[`${i.length} ${i.length===1?`column`:`columns`} skipped (lists, maps or binary): ${i.slice(0,5).join(`, `)}${i.length>5?`, …`:``}.`]:[],s={name:`Table`,columns:a.map(e=>e.column),rows:Number(r.num_rows),notes:o,async*read(e,i){let o=e.map(e=>a[e]),s=[...new Set(o.map(e=>e.path[0]))],c=Math.max(1,Math.floor(t/Math.max(1,o.length))),l=0;for(let e of r.row_groups){let t=l,a=l+Number(e.num_rows);l=a;for(let e=t;e<a;e+=c){i?.throwIfAborted();let t=Math.min(a,e+c),l=-1,u=[];for(let i of s){let a=[];if(await Pb(Ev({file:n,metadata:r,columns:[i],rowStart:e,rowEnd:t,compressors:Tb,parsers:Ob,onChunk:e=>{a.push({start:e.rowStart,data:e.columnData})}})),l<0){if(l=Math.min(t-e,a.reduce((t,n)=>Math.max(t,n.start+n.data.length-e),0)),l===0)break;for(let e of o)u.push(e.column.kind===`text`?Array(l).fill(null):new Float64Array(l).fill(NaN))}o.forEach((t,n)=>{if(t.path[0]!==i)return;let r=u[n],o=t.column.kind===`text`;for(let n of a){if(!o&&!t.wall&&!t.iso&&!t.ns&&t.path.length===1&&n.start>=e&&n.start-e+n.data.length<=l&&ArrayBuffer.isView(n.data)&&!(n.data instanceof BigInt64Array)&&!(n.data instanceof BigUint64Array)){r.set(n.data,n.start-e);continue}for(let i=Math.max(0,e-n.start);i<n.data.length;i++){let a=n.start+i-e;if(a>=l)break;let s=t.path.length>1?Mb(n.data[i],t.path.slice(1)):n.data[i];if(o)r[a]=s==null?null:String(s);else if(t.ns)r[a]=typeof s==`bigint`?kb(t,s):NaN;else{let e=t.iso?s==null?NaN:h(String(s)):jb(s);r[a]=t.wall&&!Number.isNaN(e)?ee(e):e}}}})}if(l<=0)break;yield{length:l,columns:u}}}}},c=a.flatMap((e,t)=>e.column.kind===`text`?[t]:[]);if(c.length)for await(let e of s.read(c)){c.forEach((t,n)=>{let r=e.columns[n];!r.some(e=>e)||r.some(e=>e&&Number.isNaN(h(e)))||(a[t].iso=!0,Object.assign(a[t].column,{kind:`time`,absolute:!0}))});break}return{format:`Parquet`,tables:[s],notes:[]}}var Lb=Db(we,(e,t)=>Ib(t)),Rb=`This workbook is damaged (its ZIP structure could not be read).`;async function zb(e){let t=Math.min(e.size,65557),n=await e.read(e.size-t,t),r=new DataView(n.buffer,n.byteOffset,n.byteLength),i=-1;for(let e=n.length-22;e>=0;e--)if(r.getUint32(e,!0)===101010256){i=e;break}if(i<0)throw Error(Rb);let a=r.getUint16(i+10,!0),o=r.getUint32(i+12,!0),s=r.getUint32(i+16,!0);if(s===4294967295||a===65535)throw Error(`Workbooks over 4 GB are not supported.`);let c=await e.slice(s,o),l=new DataView(c.buffer,c.byteOffset,c.byteLength),u=new TextDecoder,d=new Map;for(let e=0,t=0;t<a;t++){if(e+46>c.length||l.getUint32(e,!0)!==33639248)throw Error(Rb);let t=l.getUint16(e+28,!0),n=u.decode(c.subarray(e+46,e+46+t));d.set(n.replace(/^\//,``),{method:l.getUint16(e+10,!0),compressed:l.getUint32(e+20,!0),offset:l.getUint32(e+42,!0)}),e+=46+t+l.getUint16(e+30,!0)+l.getUint16(e+32,!0)}return d}async function*Bb(e,t){let n=await e.read(t.offset,30),r=new DataView(n.buffer,n.byteOffset,n.byteLength);if(n.length<30||r.getUint32(0,!0)!==67324752)throw Error(Rb);let i=t.offset+30+r.getUint16(26,!0)+r.getUint16(28,!0),a=new TextDecoder;if(t.method===0)for await(let n of e.windows(i,t.compressed))yield a.decode(n.bytes,{stream:!0});else if(t.method===8){let n=[],r=new ae(e=>{n.push(e)});try{for await(let o of e.windows(i,t.compressed,1<<20))for(r.push(o.bytes,!1);n.length;)yield a.decode(n.shift(),{stream:!0});r.push(new Uint8Array,!0)}catch{throw Error(Rb)}for(;n.length;)yield a.decode(n.shift(),{stream:!0})}else throw Error(`This workbook uses a ZIP compression Kymoscope does not read (method ${t.method}).`);let o=a.decode();o&&(yield o)}async function Vb(e,t){if(!t)return``;let n=``;for await(let r of Bb(e,t))n+=r;return n}var Hb=1048576,Ub=16384,Wb=class{rows=0;cols=[];#e=0;budget;constructor(e=v){this.budget=e}#t(e){if(this.#e+=e,this.#e>this.budget)throw Error(`This sheet is too large to open (over ${this.budget.toLocaleString(`en-US`)} cells).`)}put(e,t,n,r){if(e<0||t<0)return;if(e>=Hb)throw Error(`This sheet has a cell beyond Excel's last row (1,048,576); the file may be damaged.`);if(t>=Ub)throw Error(`This sheet has a cell beyond Excel's last column (XFD); the file may be damaged.`);e>=this.rows&&(this.rows=e+1);let i=this.cols[t];if(i||=(this.#t(256),this.cols[t]={num:new Float64Array(256).fill(NaN),date:new Uint8Array(256),text:new Map}),typeof n==`string`){n.trim()&&(this.#t(1),i.text.set(e,n));return}if(e>=i.num.length){let t=Math.min(Hb,Math.max(e+1,i.num.length*2));this.#t(t-i.num.length);let n=new Float64Array(t).fill(NaN);n.set(i.num);let r=new Uint8Array(t);r.set(i.date),i.num=n,i.date=r}i.num[e]=n,i.date[e]=+!!r}numbersIn(e){return this.cols.reduce((t,n)=>t+(n&&e<n.num.length&&!Number.isNaN(n.num[e])?1:0),0)}textsIn(e){return this.cols.reduce((t,n)=>t+ +!!n?.text.has(e),0)}},Gb=e=>e<26?String.fromCharCode(65+e):Gb(Math.floor(e/26)-1)+String.fromCharCode(65+e%26),Kb=65536;function qb(e,t,n,r){let i=t.cols.filter(Boolean).length,a=-1;for(let e=0;e<Math.min(t.rows,50);e++)if(t.textsIn(e)>=Math.max(1,Math.ceil(i/2))&&(t.numbersIn(e+1)>0||t.numbersIn(e+2)>0)){a=e;break}let o=a+1,s=-1;a>=0&&t.numbersIn(o)===0&&t.textsIn(o)>0&&t.cols.every(e=>!e?.text.has(o)||e.text.get(o).length<=16)&&(s=o,o++);let c=[];a>0&&Array.from({length:a},(e,n)=>t.textsIn(n)+t.numbersIn(n)).some(e=>e>0)&&c.push(`${e}: rows 1–${a} above the header were skipped.`),r&&c.push(`${e}: ${r.toLocaleString(`en-US`)} formula ${r===1?`cell has`:`cells have`} no saved value (the workbook was saved without calculating them); ${r===1?`it is`:`they are`} empty.`);let l=[],u=[];return t.cols.forEach((e,r)=>{if(!e)return;let i=0,c=0;for(let n=o;n<Math.min(t.rows,e.num.length);n++)Number.isNaN(e.num[n])||(i++,c+=e.date[n]);let d=0;for(let t of e.text.keys())t>=o&&d++;if(i+d===0)return;let f=(a>=0?e.text.get(a)?.trim():void 0)||`Column ${Gb(r)}`,p=i===0;if(p){for(let[t,n]of e.text)if(t>=o&&Number.isNaN(h(n))){p=!1;break}}let m=p?`time`:i>=d?c*2>i||g.test(f)?`time`:`number`:`text`,_=p?`iso`:m===`time`&&c*2>i?`serial`:null,v=NaN;if(_===`serial`)for(let t=o;t<e.num.length&&Number.isNaN(v);t++)v=e.num[t];let y=Number.isNaN(v)?void 0:ee((v-n)*86400);l.push({name:f,unit:s>=0?e.text.get(s)?.trim()??``:``,kind:m,absolute:_!==null,origin:y}),u.push({col:e,kind:m,from:_,first:v})}),l.some(e=>e.kind!==`text`)?{name:e,columns:l,rows:Math.max(0,t.rows-o),notes:c,async*read(e,r){for(let i=o;i<t.rows;i+=Kb){r?.throwIfAborted();let a=Math.min(t.rows,i+Kb);yield{length:a-i,columns:e.map(e=>{let{col:t,kind:r,from:o,first:s}=u[e];if(r===`text`)return Array.from({length:a-i},(e,n)=>t.text.get(i+n)??(i+n<t.num.length&&!Number.isNaN(t.num[i+n])?String(t.num[i+n]):null));let c=new Float64Array(a-i).fill(NaN);if(o===`iso`){for(let e=0;e<c.length;e++){let n=t.text.get(i+e);n!==void 0&&(c[e]=h(n))}return c}if(c.set(t.num.subarray(Math.min(i,t.num.length),Math.min(a,t.num.length))),o===`serial`){let e=N((s-n)*86400);for(let t=0;t<c.length;t++){let r=c[t];Number.isNaN(r)||(c[t]=Math.round((r-s)*864e5)/1e3+(N((r-n)*86400)-e))}}return c})}}}}:`${e}: no numbers; skipped.`}async function Jb(e){let t=await zb(e),{sheets:n,date1904:r}=kl(await Vb(e,t.get(`xl/workbook.xml`)),await Vb(e,t.get(`xl/_rels/workbook.xml.rels`)));if(n.length===0)throw Error(`This workbook has no sheets Kymoscope can read.`);let i=Nl(await Vb(e,t.get(`xl/sharedStrings.xml`))),a=Ml(await Vb(e,t.get(`xl/styles.xml`))),o=r?24107:25569,s=[],c=[];for(let r of n){let n=t.get(r.path);if(!n)continue;let l=new Wb(v-i.length),u=await Gl(Bb(e,n),i,a,(e,t,n,r)=>l.put(e,t,n,r)),d=qb(r.name,l,o,u);typeof d==`string`?c.push(d):s.push(d)}return{format:`Excel workbook`,tables:s,notes:c}}var Yb=Db(se,(e,t)=>Jb(t)),Xb=65536;async function*Zb(e,t){let n=new TextDecoder,r=``;for await(let i of e.windows(0,e.size)){t?.throwIfAborted();let e=(r+n.decode(i.bytes,{stream:!0})).split(/\r?\n/);r=e.pop(),yield*e}r+=n.decode(),r&&(yield r)}async function Qb(e){let t=[];for await(let n of Zb(e))if(n.trim()&&t.push(n),t.length>200)break;if(t.length<2)throw Error(`This file has no rows.`);let n=M(t.slice(0,50))??`,`,r=n===`;`,i=f(u(t[0],n),t.slice(1).map(e=>u(e,n)),r);return{format:`Delimited text`,tables:[{name:`Table`,columns:i,rows:-1,notes:[],async*read(t,a){let o=()=>t.map(e=>i[e].kind===`text`?Array(Xb).fill(null):new Float64Array(Xb).fill(NaN)),s=o(),c=0,l=!0;for await(let d of Zb(e,a)){if(!d.trim())continue;if(l){l=!1;continue}let e=u(d,n);for(let n=0;n<t.length;n++){let a=i[t[n]],o=e[t[n]]??``;a.kind===`text`?s[n][c]=o.trim()===``?null:o.trim():s[n][c]=a.absolute?h(o):O(o,r)}++c===Xb&&(yield{length:c,columns:s},s=o(),c=0)}c&&(yield{length:c,columns:s.map(e=>e.slice(0,c))})}}],notes:[]}}var $b={mdf:Cn,edf:On,xdf:Vn,tdms:dr,hdf5:Vr,mat:fi,comtrade:xi,mseed:Cd,ulog:Bd,mcap:om,pqdif:ih,ch10:Oa,iena:wu,ccsds:sd,parquet:Lb,xlsx:Yb,longtext:Db(A,(e,t)=>Qb(t)),krc:_e};function ex(e){let t=$b[e];if(!t)throw Error(`No importer for format ${e}.`);return t}export{ex as importerFor};
|