@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
|
@@ -0,0 +1,1036 @@
|
|
|
1
|
+
/*! @kymoscope/sdk (c) 2026 Kymoscope. Proprietary software: use requires a license. See LICENSE.md. */
|
|
2
|
+
import{$t as e,An as t,At as n,Bt as r,C as i,Cn as a,Ct as o,Dn as s,Dt as c,En as l,Et as u,Ft as d,Gt as f,Ht as p,It as m,Jt as h,Lt as g,Mn as _,Mt as v,Nt as y,On as b,Ot as x,Pt as S,Qt as C,Rt as w,Sn as T,Tn as E,Ut as D,Vt as O,Wt as k,Xt as A,Yt as j,Zt as ee,_n as te,an 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 M,jt as pe,kn as me,kt 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,wt as ke,xn as Ae,xt as je,yn as Me,zt as Ne}from"./importer-CLYlv_9G.js";function Pe(e,t){return e.selection.find(e=>e.group===t)?.channels??[]}var Fe=4096,Ie={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 Le(e){if(e.length>Fe)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(Ie,e)){let t=Ie[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 Re={k:`id`};function ze(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 Be(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]=ze(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 Ve(e,t){let n=Float64Array.of(t);return Be(e,n),n[0]}var He=(e,t)=>e===null||typeof e==`string`?e:String(Ve(e,t));function Ue(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]=He(o,a)}return n}function We(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 Ge(e,t,n){let r=_(t).getUint16(24,!0)===0,i=()=>Error(`This MDF file is damaged (a block is cut short or lies outside the file).`),a=async(t,n=4)=>{let a=await e.read(t,4);if(a.length<4)throw i();let o=_(a).getUint16(2,r),s=await e.read(t,o);if(o<n||s.length<o)throw i();return{id:l(s.subarray(0,2)),v:_(s),b:s,size:o}},o=(e,t)=>e.getUint32(t,r),c=(e,t)=>e.getUint16(t,r),u=(e,t)=>e.getFloat64(t,r),d=async e=>e?s((await a(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:Re,unit:``};let{v:n,b:r}=await a(e,46),l=s(r.subarray(22,42),!0),f=c(n,42),p=c(n,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)>r.length)throw i();let m=e=>u(n,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=s(r.subarray(46,302),!0),t=Le(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 i=46+40*t,a=u(n,i);return{lo:a,hi:a,to:s(r.subarray(i+8,i+40),!0)}}),def:null,int:t},unit:l};case 12:{let e=await Promise.all(Array.from({length:p},async(e,t)=>{let r=46+20*t;return{lo:u(n,r),hi:u(n,r+8),to:await d(o(n,r+16))}}));return{conv:{k:`text`,ranges:e.slice(1),def:e[0]?.to??null,int:t},unit:l}}case 65535:return{conv:Re,unit:l};default:return{conv:{k:`unsupported`,what:`MDF3 conversion type ${f}`},unit:l}}},g=await a(64,8),v=null;if(g.size>=172&&(o(g.v,164)||o(g.v,168))){let e=o(g.v,168)*4294967296+o(g.v,164);v=new Date(e/1e6).toISOString()}else{let e=l(g.b.subarray(18,28)),t=l(g.b.subarray(28,36));/^\d\d:\d\d:\d{4}$/.test(e)&&(v=`${e.slice(6)}-${e.slice(3,5)}-${e.slice(0,2)}T${t}`)}let y=[],b=0;for(let e=o(g.v,4),t=0;e;t++){m(e);let n=await a(e,24),i=c(n.v,22),l=[];for(let e=o(n.v,8);e;){m(e);let n=await a(e,26),u=[],p=null;for(let e=o(n.v,8);e;){m(e);let t=await a(e,192),n=s(t.b.subarray(26,58),!0),i=(t.size>=222?await d(o(t.v,218)):``)||n,l=We(c(t.v,190),r),g=c(t.v,186)+(t.size>=228?8*c(t.v,226):0);if(!l)f.push(`${i}: MDF3 data type ${c(t.v,190)} is not supported; skipped.`);else{let{conv:e,unit:n}=await h(o(t.v,8),l.type!==`float`),r={name:i,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=o(t.v,4)}b++,l.push({name:await d(o(n.v,12))||`Group ${b}`,dg:t,recordId:c(n.v,16),recordIdSize:+(i>0),idTrailer:+(i===2),dataBytes:c(n.v,20),invalBytes:0,cycles:o(n.v,22),vlsdCg:!1,sorted:!0,master:p,channels:u,stream:[],busType:0,busEvent:!1}),e=o(n.v,4)}let u=l.reduce((e,t)=>e+t.cycles*(t.recordIdSize+t.dataBytes+t.idTrailer),0),p=[{offset:o(n.v,16),length:u,zip:null}];for(let e of l)e.stream=p,e.sorted=l.length===1,y.push(e);e=o(n.v,4)}return{version:`MDF ${n}`,startTime:v,groups:y,notes:f,meta:{}}}var Ke=`This MF4 is damaged (its blocks link in a loop).`;function qe(e,t){if(e.seen.has(t))throw Error(Ke);e.seen.add(t)}async function Je(e,n){let r=await e.read(n,24);if(r.length<24)throw Error(`This MF4 is damaged (bad block at byte ${n}).`);let i=_(r),a=l(r.subarray(0,4)),o=t(i,8),s=t(i,16);if(!a.startsWith(`##`)||o<24+8*s||o>1<<26)throw Error(`This MF4 is damaged (bad block at byte ${n}).`);let c=await e.read(n,o);if(c.length<o)throw Error(`This MF4 is damaged (the block at byte ${n} runs past the end of the file).`);let u=_(c),d=[];for(let e=0;e<s;e++)d.push(t(u,24+8*e));let f=c.subarray(24+8*s);return{id:a,links:d,data:_(f),bytes:f}}var Ye={lt:`<`,gt:`>`,amp:`&`,quot:`"`,apos:`'`};function Xe(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)=>Ye[t]).trim()}function Ze(e,t){if(!t)return Promise.resolve(``);let n=e.texts.get(t);return n||(n=Je(e.io,t).then(e=>{let t=s(e.bytes);return e.id===`##MD`?Xe(t):t}),e.texts.set(t,n)),n}async function Qe(e,n,r=0){if(!n)return[];let i=e.io,a=await i.read(n,24),o=l(a.subarray(0,4)),s=a.length<24?0:t(_(a),8);switch(o){case`##DT`:case`##SD`:case`##RD`:return[{offset:n+24,length:s-24,zip:null}];case`##DZ`:{let e=_(await i.read(n+24,24));if(e.byteLength<24)throw Error(`This MF4 is damaged (bad block at byte ${n}).`);let r=e.getUint8(2);if(r===2||r===3)throw Error(`This MF4 uses zstd compression, which isn't supported yet.`);if(r===4||r===5)throw Error(`This MF4 uses LZ4 compression, which isn't supported yet.`);if(r>5)throw Error(`This MF4 is damaged (unknown compression type ${r}).`);let a=e.getUint32(4,!0),o=t(e,8),s=t(e,16);if(o>c(s)||r===1&&a===0)throw Error(`This MF4 is damaged (bad compressed block at byte ${n}).`);if(r===1&&o>268435456)throw Error(`This MF4 has a compressed block over 256 MB, which Kymoscope cannot read.`);return[{offset:n+48,length:s,zip:{type:r,param:a,orgLength:o}}]}case`##DL`:{if(r>1)throw Error(`This MF4 is damaged (unexpected ${o} block in its data).`);let t=[];for(let r=n;r;){qe(e,r);let n=await Je(i,r);for(let r of n.links.slice(1))t.push(...await Qe(e,r,2));r=n.links[0]}return t}case`##HL`:if(r>0)throw Error(`This MF4 is damaged (unexpected ${o} block in its data).`);return qe(e,n),Qe(e,(await Je(i,n)).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 $e(e,t,n){return t?l(await e.io.read(t,4))===`##CC`?et(e,t,n+1):Ze(e,t):null}async function et(e,t,n=0){if(!t||n>4||e.busy.has(t))return Re;let r=e.convs.get(t);if(r)return r;e.busy.add(t);try{let r=await tt(e,t,n);return e.convs.set(t,r),r}finally{e.busy.delete(t)}}async function tt(e,t,n){let r=await Je(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=>$e(e,t,n)));switch(a){case 0:return Re;case 1:return{k:`lin`,b:c[0],a:c[1]};case 2:return{k:`rat`,p:[...c]};case 3:{let t=await Ze(e,l[0]),n=Le(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 nt={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 rt(e,n){let{io:r,notes:i}=e,a=n.data,o=a.getUint8(0),s=a.getUint8(1),c=a.getUint8(2),u=await Ze(e,n.links[2]),d=nt[c];if(!d)return i.push(`${u}: data type ${c} is not supported; the channel was skipped.`),null;let f;if(o===2||o===3)if(s===1)f=o===2?`master`:`vmaster`;else{if(i.push(`The master channel ${u} is not time (sync type ${s}): samples are numbered instead.`),o===3)return null;f=`value`}else if(o===1)f=`vlsd`;else if(o===0||o===4)f=`value`;else return i.push(`${u}: channel type ${o} is not supported; skipped.`),null;let p=await et(e,n.links[4]),m=p.k===`text`?{...p,int:d.type!==`float`}:p,h=await Ze(e,n.links[6]);!h&&n.links[4]&&(h=await Ze(e,(await Je(r,n.links[4])).links[1]));let g=null,_=null;f===`vlsd`&&n.links[5]&&(l(await r.read(n.links[5],4))===`##CG`?_=t((await Je(r,n.links[5])).data,0):g=await Qe(e,n.links[5]));let v=a.getUint32(12,!0);return{name:u,unit:h,kind:f,...d,conv:m,sd:g,sdRecordId:_,byteOffset:a.getUint32(4,!0),bitOffset:a.getUint8(3),bitCount:a.getUint32(8,!0),invalBit:v&2?a.getUint32(16,!0):null,allInvalid:(v&1)!=0}}async function it(e,t,n,r=0){let{io:i,notes:a}=e;for(let o=t;o;){qe(e,o);let t=await Je(i,o),s=t.links[1];s&&r<4&&(l(await i.read(s,4))===`##CN`?await it(e,s,n,r+1):a.push(`${await Ze(e,t.links[2])}: array channels (CA) are not supported yet; skipped.`));let c=await rt(e,t);c&&n.push(c),o=t.links[0]}}async function at(e,n,r,i){let a=n.data,o=a.getUint16(16,!0),s=0;n.links[3]&&(s=(await Je(e.io,n.links[3])).data.getUint8(1));let c={name:await Ze(e,n.links[2]),dg:r,recordId:t(a,0),recordIdSize:i,idTrailer:0,dataBytes:a.getUint32(24,!0),invalBytes:a.getUint32(28,!0),cycles:t(a,8),vlsdCg:(o&1)!=0,sorted:!0,master:null,channels:[],stream:[],busType:s,busEvent:(o&2)!=0};if(c.vlsdCg)return c;let l=[];await it(e,n.links[1],l);for(let e of l)e.kind===`master`||e.kind===`vmaster`?c.master||=e:c.channels.push(e);return c}async function ot(e,n){let r=await Je(e,64);if(r.id!==`##HD`)throw Error(`This MF4 is damaged (no header block).`);let i=t(r.data,0),a=(r.data.getUint8(12)&1)!=0,o=new Date(i/1e6).toISOString(),s=i>0?a?o.slice(0,-1):o:null,c={io:e,notes:[],seen:new Set,texts:new Map,convs:new Map,busy:new Set},l=[],u=0;for(let t=r.links[0],n=0;t;n++){qe(c,t);let r=await Je(e,t),i=r.data.getUint8(0),a=[];for(let t=r.links[1];t;){qe(c,t);let r=await Je(e,t),o=await at(c,r,n,i);o.vlsdCg||(u++,o.name||=`Group ${u}`),a.push(o),t=r.links[0]}let o=await Qe(c,r.links[2]),s=a.length===1;for(let e of a)e.stream=o,e.sorted=s,l.push(e);t=r.links[0]}return{version:`MF4 ${n}`,startTime:s,groups:l,notes:c.notes,meta:{}}}function st(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 ct(e,t,n,r,i,a,o=0){let s=_(t),c=!e.bigEndian,l=i+e.byteOffset,u=e.bitCount;if(e.bitOffset===0)if(e.type===`float`){if(u===64){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getFloat64(l,c);return}if(u===32){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getFloat32(l,c);return}if(u===16){for(let e=0;e<n;e++,l+=r)a[o+e]=st(s.getUint16(l,c));return}}else if(e.type===`int`){if(u===8){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getInt8(l);return}if(u===16){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getInt16(l,c);return}if(u===32){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getInt32(l,c);return}if(u===64){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getInt32(l+(c?4:0),c)*4294967296+s.getUint32(l+(c?0:4),c);return}}else{if(u===8){for(let e=0;e<n;e++,l+=r)a[o+e]=t[l];return}if(u===16){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getUint16(l,c);return}if(u===32){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getUint32(l,c);return}if(u===64){for(let e=0;e<n;e++,l+=r)a[o+e]=s.getUint32(l+(c?4:0),c)*4294967296+s.getUint32(l+(c?0:4),c);return}}let d=e.bitOffset+u+7>>3,f=2**e.bitOffset,p=2**u,m=p/2,h=e.type===`int`;for(let e=0;e<n;e++,l+=r){let n=0;if(c)for(let e=d-1;e>=0;e--)n=n*256+t[l+e];else for(let e=0;e<d;e++)n=n*256+t[l+e];n=Math.floor(n/f)%p,a[o+e]=h&&n>=m?n-p:n}}var lt=new Map,ut=e=>{let t=lt.get(e);return t||lt.set(e,t=new TextDecoder(e)),t};function dt(e){let t=e.indexOf(`\0`);return t<0?e:e.slice(0,t)}function ft(e,t,n,r,i){let a=ut(e.encoding),o=e.bitCount>>3,s=Array(n);for(let c=0,l=i+e.byteOffset;c<n;c++,l+=r)s[c]=dt(a.decode(t.subarray(l,l+o)));return s}function pt(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 mt=e=>e.recordIdSize+e.dataBytes+e.invalBytes+e.idTrailer,ht=64<<20,gt=(e,t)=>e.reduce((e,n)=>e+(n.zip?n.zip.orgLength:Math.max(0,Math.min(n.length,t-n.offset))),0),_t=e=>e.byteOffset+Math.ceil((e.bitOffset+e.bitCount)/8);function vt(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:_t(e)<=t.dataBytes}function yt(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=mt(r);if(e>ht||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(gt(r.stream,t)/e));let i=r.channels.filter(e=>!vt(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&&!vt(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 bt(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 xt=65536,St=`This file's compressed data is damaged.`;async function*Ct(e){for(let t=0;t<e.length;t+=xt)yield e.subarray(t,t+xt)}async function*wt(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(St):e});if(e)return;yield t}}finally{r.cancel().catch(()=>{})}}async function Tt(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 wt(Ct(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 Et=new Uint8Array(Uint32Array.of(1).buffer)[0]===1;function Dt(e,t,n,r=t){let i=Math.floor(n/t),a=new Uint8Array(r<t?i*r:n),o=r%4==0&&Et?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 Ot(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 kt(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 Tt(i,s,r);let c=Math.min(n,o);return Dt(await Tt(i,s,c<o?s/o*c:1/0),o,s,c)}async function*At(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??kt(e,s,r);a=i(t[o+1])?kt(e,t[o+1],r):null,a?.catch(()=>{}),yield await n}else{let t=s.zip.orgLength;for await(let n of wt((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*jt(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 Mt(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 Nt=(e,t)=>(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0,Pt=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=At(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=Nt(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+Nt(this.#i,n)>this.#o)throw Error(`This MF4 is damaged (string data ends early).`);e<this.#a&&(this.#r=At(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}}},Ft=e=>Math.max(1,Math.min(65536,Math.floor((8<<20)/Math.max(1,e)))),It=64<<20,Lt=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 Pt(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=ut(e.encoding);return(await this.bytes(e,t)).map(e=>e?dt(n.decode(e)):null)}};function Rt(e,t,n,r,i=mt(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 ct(o,t,n,i,e.recordIdSize,a);return Be(o.conv,a),a}function zt(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 Bt(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}async function*Vt(e,t,n,r,i,a=1/0){let o=t.groups[n[0]];if(o.sorted){let t=Ot(o.stream,mt(o),a),r=0;for await(let{buf:a,n:s}of jt(At(e,o.stream,i,t),t,Ft(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=mt(n);l.set(n.recordId,{k:e,size:r,buf:new Uint8Array(r*Math.min(Ft(r),Math.max(1,n.cycles))),fill:0,start:0})}let u=new Map(s.map(({g:e})=>[e.recordId,e.vlsdCg?-1:mt(e)])),d=new Map,f=new Uint8Array;for await(let t of At(e,o.stream,i)){let e=f.length?Bt(f,t):t,n=0;for(;!(n+c>e.length);){let t=zt(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>It)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 Ht=(e,t)=>t?e+2147483648:e,Ut=/^BO_\s+(\d+)\s+(\w+)\s*:\s*(\d+)/,Wt=/^SG_\s+(\w+)\s*(?:(M|m\d+M?)\s*)?:\s*(\d+)\|(\d+)@([01])([+-])\s*\(([^,)]*),([^)]*)\)\s*\[[^\]]*\]\s*"([^"]*)"/,Gt=/^VAL_\s+(\d+)\s+(\w+)\s+(.*);/,Kt=/^SIG_VALTYPE_\s+(\d+)\s+(\w+)\s*:\s*([12])\s*;/,qt=/^-?\d+(?:\.\d+)?$/;function Jt(e){let t=e.split(`"`),n=new Map;for(let e=0;e+1<t.length;e+=2){let r=t[e].trim();qt.test(r)&&n.set(Number(r),t[e+1])}return n}var Yt=(e,t)=>e<=511&&t>=1&&t<=64;function Xt(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=Ut.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(Ht(i,r),a),n.set(e,a)}else if((s=Wt.exec(e))&&a){let e=s[2],t=Number(s[3]),n=Number(s[4]);if(!Yt(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=Gt.exec(e)){let e=i(s[1],s[2]);e&&(e.values=Jt(s[3]))}else if(s=Kt.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 Zt(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 Qt(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=Zt(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 $t(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 en=()=>({n:0,time:new Float64Array,key:new Float64Array,id:new Float64Array,ide:new Float64Array,bytes:null,buf:new Uint8Array,dataAt:new Int32Array});async function tn(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;ct(t.id,n,r,a,c,l),t.ide&&ct(t.ide,n,r,a,c,u);for(let e=0;e<r;e++){let n=l[e],r=n&536870911;d[e]=Ht(r,t.ide?u[e]!==0:n>=2147483648||r>2047)}if(s.bytes=null,t.data.kind===`vlsd`){let e=new Float64Array(r);ct({...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(!Rt(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 nn=new Uint8Array;function rn(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 an(e,t,n){let r=0;for(let e of n.values())for(let t of e.signals)r=Math.max(r,rn(t));let i=t.data.kind===`vlsd`?t.data:{...t.data,bitCount:Math.min(t.data.bitCount,r*8)};return bt(e,t.ide?[t.id,t.ide,i]:[t.id,i])}function on(e,t){let n=t.map(t=>e.signals[e.channels[t].s]);return{route:e,col:n.map(Qt),read:n.map(Zt),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 sn(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]]??nn,0)*a+o;else e(n.buf,n.dataAt,r,i,s,a,o);return s}function cn(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(sn(i,e.read[a],t,n,r),e=>o.get(e)??null):sn(i,e.read[a],t,n,r,e.factor[a],e.offset[a])})}}var ln=e=>({key:e,skip:!0,frames:0,all:null,sw:null,byMux:new Map,idx:new Int32Array,cnt:0});function un(e,t){let n=e.signals.find(e=>e.mux===`switch`);return{key:Ht(e.id,e.extended),skip:!1,frames:0,all:t,sw:n?{col:Qt(n),read:Zt(n)}:null,byMux:new Map,idx:new Int32Array,cnt:0}}var dn=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 fn(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=sn(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 pn=48e6;async function mn(e,t,n,r){let i=new Map;if(t.groups.forEach((e,t)=>{let n=$t(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=Xt(M(new Uint8Array(await n[0].arrayBuffer()))),o=[],s=new Map,c=new Map,l=0,u=new Lt(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})}),on({key:Ht(e.id,e.extended),mux:t,signals:n,channels:r},r.map((e,t)=>t))},p=new dn(e=>{let t=a.get(e);if(!t){let t=ln(e);return s.set(e,t),t}let r=un(t,f(t,null));return o.push({model:n,m:r}),r});d.data.sdRecordId!==null&&u.want(d.data.sdRecordId);let m=en();for await(let o of Vt(e,t,[n],u,r,an(i,d,a))){let e=await tn(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 fn(e,p,t)){let t=cn(n,e);if(l<0)continue;if((l+=t.time.length*(1+t.cols.length))>pn){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*hn(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=on(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 dn(e=>{let t=u.get(e);if(!t)return ln(e);let n=un(r.dbc.get(e),t.all);return t.byMux.size||(n.sw=null),n}),f=new Lt(e,a);s.data.sdRecordId!==null&&f.want(s.data.sdRecordId);let p=en();for await(let i of Vt(e,t,[n],f,a,an(c,s,r.dbc))){let e=await tn(c,s,i.buf,i.n,i.start,i.size,f,p);for(let t of fn(e,d,(e,t)=>u.get(e.key).byMux.get(t)??null)){let n=t.n,r=cn(t,e);yield{group:l.get(t),start:n,length:r.time.length,time:r.time,columns:r.cols}}}}var gn=e=>Math.round(e*1e6)/1e6,_n=e=>e.kind===`value`?e.type!==`bytes`:e.kind===`vlsd`&&e.type===`string`,vn=e=>({name:e.name,unit:e.unit,text:e.type===`string`||e.kind===`vlsd`||e.conv.k===`text`});async function yn(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?gn(1/n.conv.a):null;if(!t.sorted)return null;let r=mt(t),i=t.cycles,a,o;if(t.stream[0]?.zip){let n=Ot(t.stream.slice(0,1),r,bt(t,[])),s=await kt(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 Mt(e,t.stream,0,r),o=await Mt(e,t.stream,t.cycles-1,r);if(!a||!o)return null;let s=new Float64Array(2);return ct(n,a,1,r,t.recordIdSize,s,0),ct(n,o,1,r,t.recordIdSize,s,1),Be(n.conv,s),s[1]>s[0]?gn((i-1)/(s[1]-s[0])):null}async function bn(e,t,n,r,i,a,o){let s;if(e.kind===`vlsd`){let a=new Float64Array(n);ct({...e,type:`uint`},t,n,r,i,a),s=await o.strings(e,a)}else if(e.type===`string`)s=ft(e,t,n,r,i);else{let a=new Float64Array(n);ct(e,t,n,r,i,a),e.conv.k===`text`?s=Ue(e.conv,a):(Be(e.conv,a),s=a)}return pt(e,t,n,r,a,s),s}async function xn(e,t,n,r,i,a,o,s){let c=e.recordIdSize,l=[];for(let i of t)l.push(await bn(e.channels[i],n,r,a,c,c+e.dataBytes,s));return{group:o,time:Rt(e,n,r,i,a),start:i,length:r,columns:l}}async function*Sn(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:Pe(e,t)}));yield*hn(e.io,n.model,n.groups[r[0]].model,n.bus,t,e.signal)}if(!i.length)return;let a=new Lt(e.io,e.signal),o=new Map;for(let t of i){let r=n.groups[t],i=Pe(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?bt(l,c.map(e=>l.channels[e])):1/0;for await(let t of Vt(e.io,n.model,[...o.keys()],a,e.signal,u)){let{pg:e,cols:r}=o.get(t.g);yield await xn(n.model.groups[t.g],r,t.buf,t.n,t.start,t.size,e,a)}}function Cn(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 wn={...E,async plan(e,t){let n=await t.read(0,64);if(me(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=l(n.subarray(8,16)).replace(/\0/g,``).trim(),i=Number(r.replace(`.`,``).slice(0,3))>=400?await ot(t,r):await Ge(t,n,r);yt(i,t.size);let a=await mn(t,i,e.companions.filter(e=>e.name.toLowerCase().endsWith(`.dbc`))),o=new Set(a?.layouts.keys()??[]),s=[],c=[],u=[...i.notes],d=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)=>{_n(e)?r.push(t):d++}),r.length!==0){for(let e of r){let t=n.channels[e].conv;t.k===`unsupported`&&u.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=>vn(n.channels[e])),samples:n.cycles,time:n.master?{kind:`timestamps`}:{kind:`index`},rateHz:await yn(t,n)})}}if(d&&u.push(`${d} byte-array channel${d===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.`);u.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);u.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:u,interleaved:!!a?.routes.length||i.groups.some(e=>!e.sorted&&!e.vlsdCg),state:f}},async*stream(e){for(let t of Cn(e))yield*Sn(e,t)},streamGroup(e,t){return Sn(e,[t])}};function Tn(e){let t=[];for(let n of M(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 En(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 Dn=e=>`${+e.toFixed(6)} Hz`;function On(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 kn={...Oe,async plan(e,t){let n=await t.read(0,256),r=(e,t)=>l(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),u=/^(EDF|BDF)\+D/.test(s),d=parseFloat(r(244,8));if(!(a>0)||o!==256*(a+1)||!(d>0))throw Error(`This EDF/BDF header is damaged.`);let f=await t.read(256,a*256),p=(e,t,n)=>l(f.subarray(e*a+t*n,e*a+t*(n+1))).trim(),m=i?3:2,h=[],g=0;for(let e=0;e<a;e++){let t=parseFloat(p(104,8,e)),n=parseFloat(p(112,8,e)),r=parseFloat(p(120,8,e)),i=parseFloat(p(128,8,e)),a=Number(p(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);h.push({label:p(0,16,e),unit:p(96,8,e),spr:a,offset:g,bit:o,off:n/o-i}),g+=a*m}let _=g;if(!(_>0&&o+_<=t.size))throw Error(`This EDF/BDF file is damaged (its data records do not fit in it).`);let v=Math.floor((t.size-o)/_),y=parseInt(r(236,8),10),b=[];y>=0?y>v&&(b.push(`The file is shorter than its header says: ${v} of ${y} data records were read.`),y=v):y=v;let x=c?h.flatMap((e,t)=>/^(EDF|BDF) Annotations$/.test(e.label)?[t]:[]):[],S=new Map;h.forEach((e,t)=>{!x.includes(t)&&e.spr>0&&S.set(e.spr,[...S.get(e.spr)??[],t])});let C=[...S.values()],w=C.map(e=>{let t=h[e[0]].spr/d;return{name:Dn(t),channels:e.map(e=>({name:h[e].label,unit:h[e].unit})),samples:y*h[e[0]].spr,rateHz:t,time:u?{kind:`timestamps`}:{kind:`rate`,rate:t,start:0}}}),T={headerBytes:o,records:y,duration:d,recordBytes:_,bps:m,signals:h,groups:C,annotations:x,discontinuous:u};return{format:`${i?`BDF`:`EDF`}${c?u?`+D`:`+`:``}`,startTime:En(r(168,8),r(176,8)),groups:w,meta:{patient:r(8,80),recording:r(88,80)},events:[],notes:u?[`Discontinuous recording: each gap shows as a break in the traces.`,...b]:b,state:T}},async*stream(e){let t=e.plan.state,n=Math.max(1,Math.floor(ue/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=_(s.bytes),l=new Float64Array(n),u=[];for(let e=0;e<n;e++)l[e]=(a+e)*t.duration,t.annotations.forEach((n,r)=>{let i=t.signals[n],a=e*t.recordBytes+i.offset,o=Tn(s.bytes.subarray(a,a+i.spr*t.bps));r===0&&o.length&&(l[e]=o[0].onset);for(let e of o)for(let t of e.texts)u.push({time:e.onset,text:t})});let d=new Uint8Array(n),f=0;if(t.discontinuous)for(let e=0;e<n;e++){let n=e?l[e-1]+t.duration:o;n===n&&l[e]>n+1e-9&&(d[e]=1,f++)}for(let e=0;e<r.length;e++){let a=r[e],p=a.spr/t.duration,m=n*a.spr+f,h=t.discontinuous?new Float64Array(m):null,g=a.chans.map(()=>new Float64Array(m)),_=0;for(let e=0;e<n;e++){if(d[e]){h[_]=e?l[e-1]+t.duration:o;for(let e of g)e[_]=NaN;_++}if(h)for(let t=0;t<a.spr;t++)h[_+t]=l[e]+t/p;let n=e*t.recordBytes;a.chans.forEach((e,r)=>On(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&&u.length&&(v.events=u),i[e]+=m,yield v}o=l[n-1]+t.duration,a+=n}}},An={float32:4,double64:8,int8:1,int16:2,int32:4,int64:8};function jn(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 Mn(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 Nn=1e5,Pn=e=>e.fmt===`string`||An[e.fmt]!==void 0;function Fn(e,n,r){let i=e[r];if((i===1||i===4||i===8)&&r+1+i<=e.length)return i===1?[e[r+1],2]:i===4?[n.getUint32(r+1,!0),5]:[t(n,r+1),9];throw Error(`This XDF file is damaged (bad length field).`)}function In(e,t,n,r){if(n>=e.length)return-1;if(e[n++]===8&&(n+=8),r.fmt!==`string`)return n+An[r.fmt]*r.nch<=e.length?n+An[r.fmt]*r.nch:-1;for(let i=0;i<r.nch;i++){if(n>=e.length)return-1;let[r,i]=Fn(e,t,n);n+=i+r}return n<=e.length?n:-1}async function*Ln(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=_(i),s=0;for(;!(s+1>i.length);){let t=i[s];if(s+1+t>i.length)break;let[n,r]=Fn(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 Rn(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 zn(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 Bn(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)Rn(t,n,r);return zn(t),[t.a-t.b*t.i0,t.b]}function Vn(e,t,n){let r=t.t0+t.a+t.b*(n-t.i0);return r+e.c0+e.c1*r}var Hn={...a,async plan(e,t){let n=new Map,r=``;for await(let e of Ln(t)){let t=_(e.body);if(e.tag===1)r=M(e.body);else if(e.tag===2){let r=t.getUint32(0,!0),i=M(e.body.subarray(4)),a=parseInt(jn(i,`channel_count`),10)||1;if(!(a>=1&&a<=Nn))throw Error(`This XDF file is damaged (a stream with ${a} channels).`);let o=Mn(i,`channel`);n.set(r,{id:r,name:jn(i,`name`)||`Stream ${r}`,nch:a,srate:parseFloat(jn(i,`nominal_srate`))||0,fmt:jn(i,`channel_format`)||`float32`,labels:Array.from({length:a},(e,t)=>jn(o[t]??``,`label`)||`Ch${t+1}`),units:Array.from({length:a},(e,t)=>jn(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||!Pn(r))continue;let[i,a]=Fn(e.body,t,4),o=4+a,s=An[r.fmt],c=r.srate>0?Math.max(1,500/r.srate):1/0;for(let n=0;n<i&&!(In(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]=Fn(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}),Rn(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=>(Pn(e)||i.push(`${e.name}: channel format ${e.fmt} is not supported; skipped.`),Pn(e))),o=1/0;for(let e of a){[e.c0,e.c1]=Bn(e.clock);for(let t of e.segs)zn(t);if(e.count===0)continue;let t=e.srate>0?Vn(e,e.segs[0],0):e.segs[0].t0+e.c0+e.c1*e.segs[0].t0;o=Math.min(o,t)}let s=je(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})),l=jn(r,`version`);return{format:`XDF ${l||`1.0`}`,startTime:null,groups:c,meta:{header:l},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:Pe(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 Ln(e.io,e.signal)){if(i.tag!==3)continue;let e=_(i.body),o=r.get(e.getUint32(0,!0));if(!o)continue;let s=o.s,[c,l]=Fn(i.body,e,4),u=4+l,d=An[s.fmt],f=[];for(let r=0;r<c&&!(In(i.body,e,u,s)<0);r++){let r;i.body[u++]===8?(r=e.getFloat64(u,!0),u+=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=Vn(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]=Fn(i.body,e,u);n.push(M(i.body.subarray(u+r,u+r+t))),u+=r+t}o.sel.forEach((e,t)=>{o.cols[t][o.n]=n[e]}),f.push({time:c-t.origin,text:n.join(` `)})}else o.sel.forEach((t,n)=>{let r=u+t*d,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)}}),u+=d*s.nch;o.i++,++o.n===n&&(yield a(o))}f.length&&(yield{group:o.g,time:new Float64Array,start:o.start,length:0,columns:o.sel.map(()=>new Float64Array),events:f})}for(let e of r.values())e.n&&(yield a(e))}},Un=2,Wn=8,Gn=4,Kn=32,qn=64,Jn=4713,Yn=4714,Xn=32,Zn=68,Qn={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},$n={0:5,1:1,2:6,3:2,4:7,5:3,6:8,7:4,8:9,9:10,4294967295:Zn},er=65536,tr=65536,nr=(e,n,r)=>r?b(e,n+8,r)+t(e,n,r)/2**64:b(e,n,r)+t(e,n+8,r)/2**64,rr=()=>Error(`This TDMS file is damaged (its metadata is cut short).`);function ir(e,n,r,i,a){if(r+(i===Xn?4:Qn[i]??0)>n.length)throw rr();switch(i){case Xn:{let t=e.getUint32(r,a);if(r+4+t>n.length)throw rr();return[M(n.subarray(r+4,r+4+t)),4+t]}case 1:return[e.getInt8(r),1];case 2:return[e.getInt16(r,a),2];case 3:return[e.getInt32(r,a),4];case 4:return[b(e,r,a),8];case 5:return[e.getUint8(r),1];case 6:return[e.getUint16(r,a),2];case 7:return[e.getUint32(r,a),4];case 8:return[t(e,r,a),8];case 9:case 25:return[e.getFloat32(r,a),4];case 10:case 26:return[e.getFloat64(r,a),8];case 33:return[e.getUint8(r)!==0,1];case Zn:return[nr(e,r,a),16];default:throw Error(`This TDMS file has a property of type ${i}, which Kymoscope cannot read.`)}}function ar(e){let t=/^\/'((?:[^']|'')*)'(?:\/'((?:[^']|'')*)')?$/.exec(e);return t?[t[1].replace(/''/g,`'`),(t[2]??``).replace(/''/g,`'`)]:null}var or=4294967295;function sr(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 cr(e,t,n){let r=e.find(e=>sr(e)>0);if(!r||r.get(`NI_Scaling_Status`)===`scaled`)return null;let i=(e,a)=>{if(e===or||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`)??or),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`)??or),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(sr(r)-1,0)}var lr={1:Int8Array,2:Int16Array,3:Int32Array,5:Uint8Array,6:Uint16Array,7:Uint32Array,9:Float32Array,10:Float64Array,25:Float32Array,26:Float64Array,33:Uint8Array};function ur(e,n,r,i,a,o,s,c){let l=lr[e];if(l&&o&&i===Qn[e]&&(n.byteOffset+r)%i===0){s.set(new l(n.buffer,n.byteOffset+r,a),c);return}switch(e){case 1:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getInt8(r);return;case 2:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getInt16(r,o);return;case 3:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getInt32(r,o);return;case 4:for(let e=0;e<a;e++,r+=i)s[c+e]=b(n,r,o);return;case 5:case 33:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getUint8(r);return;case 6:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getUint16(r,o);return;case 7:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getUint32(r,o);return;case 8:for(let e=0;e<a;e++,r+=i)s[c+e]=t(n,r,o);return;case 9:case 25:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getFloat32(r,o);return;case 10:case 26:for(let e=0;e<a;e++,r+=i)s[c+e]=n.getFloat64(r,o);return;case Zn:for(let e=0;e<a;e++,r+=i)s[c+e]=nr(n,r,o);return;default:s.fill(NaN,c,c+a)}}async function dr(e,n,r){let i=new Map,a=[],o=[],s=new Map,c=new Map,l=n??e,u=0,d=0;for(;u+28<=e.size&&d+28<=l.size;){let f=n?d:u,p=await l.read(f,28),m=_(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&qn),v=t(m,12,g),y=t(m,20,g),b=v>=2**53?e.size:Math.min(e.size,u+28+v);if(y>b-u-28)throw Error(`This TDMS file is damaged (segment metadata longer than its segment).`);if(h&Un){let e=await l.read(f+28,y),n=_(e);h&Gn&&(o=[],s=new Map);let a=0,u=t=>{if(a+t>e.length)throw rr()};u(4);let d=n.getUint32(a,g);a+=4;for(let l=0;l<d;l++){u(4);let l=n.getUint32(a,g);u(4+l);let d=M(e.subarray(a+4,a+4+l));a+=4+l;let f=ar(d),p=i.get(d);p||i.set(d,p={path:d,group:f?.[0]??``,name:f?.[1]??``,type:0,props:new Map,pieces:[],total:0}),u(4);let m=n.getUint32(a,g);a+=4;let h=null;if(m===4294967295)h=null;else if(m===0)h=c.get(p)??null;else if(m===Jn||m===Yn){u(32);let e=t(n,a+8,g),i=n.getUint32(a+16,g),o=m===Jn?20:17,s=a+20,c=$n[n.getUint32(s,g)]??0,l=n.getUint32(s+8,g);a=s+i*o,u(4);let d=n.getUint32(a,g);a+=4,u(4*d);let f=0;for(let e=0;e<d;e++)f+=n.getUint32(a+4*e,g);a+=4*d,m===Yn?r.push(`${p.name}: DAQmx digital line data is not supported; skipped.`):(i>1&&r.push(`${p.name}: only the first of its ${i} DAQmx scalers is read.`),h={type:c,count:e,bytes:0,daqmx:{byteOffset:l,stride:f}})}else{if(m<20)throw rr();u(m-4);let e=n.getUint32(a,g);e===Xn&&u(24);let r=t(n,a+8,g),i=e===Xn?t(n,a+16,g):r*(Qn[e]??0);a+=m-4,h={type:e,count:r,bytes:i,daqmx:null}}h&&(p.type=h.type,c.set(p,h)),u(4);let _=n.getUint32(a,g);a+=4;for(let t=0;t<_;t++){u(4);let t=n.getUint32(a,g);u(8+t);let r=M(e.subarray(a+4,a+4+t));a+=4+t;let i=n.getUint32(a,g);a+=4;let[o,s]=ir(n,e,a,i,g);p.props.set(r,o),a+=s}let v=s.get(p);v===void 0?s.set(p,o.push({obj:p,idx:h})-1):o[v].idx=h}}if(h&Wn){let e=u+28+y,t=o.filter(e=>e.idx&&e.idx.count>0),n=t.filter(e=>e.idx.daqmx),r=(h&Kn)!==0,i=0,s=0;n.length?(s=n[0].idx.daqmx.stride,i=n[0].idx.count*s):r?(s=t.reduce((e,t)=>e+(Qn[t.idx.type]??0),0),i=(t[0]?.idx.count??0)*s):i=t.reduce((e,t)=>e+t.idx.bytes,0);let c=i>0?Math.floor((b-e)/i):0,l=a.push({rawStart:e,chunkSize:i,chunks:c,le:g})-1,d=0;for(let e of t){let t=e.idx,n=Qn[t.type]??0,a=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),a.type===Xn?a.count=Math.min(a.count,Math.floor(a.bytes/4)):n>0&&(a.count=Math.min(a.count,a.stride>0?Math.max(0,Math.floor((i-a.offset-n)/a.stride)+1):0)),e.obj.pieces.push(a),c&&(e.obj.total+=a.count*c)}}if(u=b,d+=28+y,b>=e.size)break}return{objs:[...i.values()],segments:a}}var fr={...T,async plan(e,t){let n=e.companions.find(e=>e.name.toLowerCase().endsWith(`.tdms_index`)),r=[],{objs:i,segments:a}=await dr(t,n?new de(n):null,r),o=i.find(e=>e.path===`/`)?.props,s=i.filter(e=>e.name&&e.total>0&&(e.type===Xn||Qn[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 l=s.map(e=>e.props.get(`wf_start_time`)).filter(e=>typeof e==`number`),u=l.reduce((e,t)=>Math.min(e,t),l.length?1/0:0),d=new Map;for(let e of s){let t=`${e.total}|${e.props.get(`wf_increment`)??``}`,n=d.get(e.group)??new Map,r=n.get(t);r?r.push(e):n.set(t,[e]),d.set(e.group,n)}let f=[],p=[];for(let[e,t]of d)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===Zn)??n.find(e=>e.type!==Xn&&/^(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-u:0):0;f.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===Xn})),samples:n[0].total,time:i?{kind:`rate`,rate:i,start:c}:a?{kind:`timestamps`}:{kind:`index`},rateHz:i}),p.push({channels:o,time:a,origin:0})}if(f.length===0)throw Error(`This TDMS file has no channels with data.`);let m=[];for(let e of p){if(!e.time)continue;let n=e.time.pieces[0],r=a[n.seg],i=await t.read(r.rawStart+n.offset,Qn[n.type]??8),o=new Float64Array(1);ur(n.type,_(i),0,0,1,r.le,o,0),m.push(o[0])}let h=m.reduce((e,t)=>Math.min(e,t),m.length?1/0:0);for(let e of p)e.origin=h;let g=new Date(Date.UTC(1904,0,1)+u*1e3),v=u&&Number.isFinite(g.getTime())?g.toISOString():null,y={objs:i,segments:a,groups:p},b={};for(let[e,t]of o??[])typeof t==`string`&&(b[e]=t);return{format:`TDMS`,startTime:v,groups:f,meta:b,events:[],notes:r,state:y}},async*stream(e){for(let t of e.selection)yield*mr(e,t.group)},streamGroup:(e,t)=>mr(e,t)};function pr(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===Xn)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+Qn[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*mr(e,t){let n=e.plan.state,r=n.groups[t],i=Pe(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(`/`),l=a.map(e=>cr([e.props,s(`/'${e.group.replace(/'/g,`''`)}'`),c],[],e.name)),u=a.map(()=>({pi:0,chunk:0,row:0})),d=a.reduce((e,t)=>Math.min(e,t.total),1/0);for(let i=0;i<d;){e.signal?.throwIfAborted();let o=Math.min(er,d-i),s=[];a.forEach((e,t)=>pr(n,e,t,u[t],o,s));let c=s.slice().sort((e,t)=>e.at-t.at),f=[];for(let e of c){let t=f[f.length-1];t&&e.at<=t.end+tr&&Math.max(t.end,e.end)-t.at<=16777216?t.end=Math.max(t.end,e.end):f.push({at:e.at,end:e.end}),e.range=f.length-1}let p=[];for(let t of f)p.push(await e.io.slice(t.at,t.end-t.at));let m=p.map(_),h=a.map(e=>e.type===Xn?Array(o).fill(null):new Float64Array(o).fill(NaN));for(let e of s){let t=e.at-f[e.range].at,n=e.piece;if(n.type===Xn){let r=p[e.range],i=m[e.range],a=t+4*n.count,o=h[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]=M(r.subarray(a+c,a+l))}}else ur(n.type,m[e.range],t,n.stride,e.rows,e.le,h[e.ch],e.out)}for(let e=0;e<a.length;e++){let t=l[e],n=h[e];if(t&&n instanceof Float64Array)for(let e=0;e<o;e++)n[e]=t(n[e])}let g=null;if(r.time){g=h.shift();for(let e=0;e<o;e++)g[e]-=r.origin}yield{group:t,time:g,start:i,length:o,columns:h},i+=o}}var hr=e=>!!e&&typeof e.keys==`function`,gr=1e5;function _r(){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<=gr,note:()=>t>1e5?`This file has more than ${gr.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 vr(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 yr=e=>!!e&&typeof e.slice==`function`,br=null,xr=null,Sr=new WeakMap;function Cr(){!br||xr||(xr=br(),xr.catch(()=>{xr=null}))}function wr(e){if(!br)return Promise.reject(Error(`HDF5 and MAT 7.3 files are read in the import worker, and this environment has no workers.`));Cr();let t=Sr.get(e);return t||(t=xr.then(t=>t(e)).then(e=>({root:e.root,close:()=>{}})),Sr.set(e,t),t.catch(()=>Sr.delete(e))),t}var Tr=new WeakMap;function Er(e,t,n){let r=Tr.get(e);r||Tr.set(e,r=new Map);let i=r.get(t);return i||r.set(t,i=n??e.get(t)),i}function Dr(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 Or={s:1,sec:1,second:1,seconds:1,ms:.001,msec:.001,us:1e-6,µs:1e-6,ns:1e-9};function kr(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 Ar(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 jr=0,Mr=1,Nr=3,Pr=6,Fr=new Set([1,2,3,4,5,6]),Ir=/^(time|t|timestamps?|.*[_ ]time|time[_ ].*)$/i,Lr=[`sampling_rate`,`sample_rate`,`samplerate`,`sampleRate`,`fs`,`Fs`,`rate`];function Rr(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(hr(l))o<16&&a.enter(l)&&Rr(e,l,c,r,i,a,o+1);else if(yr(l)){let t=Er(e,c,l);r.push({path:c,parent:n,name:s,ds:t,attrs:t.attrs})}}}var zr=e=>e===`/`?`root`:e.slice(1),Br=e=>Math.max(4096,Math.min(1<<20,Math.floor((8<<20)/(8*Math.max(1,e)))));async function Vr(e,t){let n=Er(e,t.path);if(t.col===null)return Dr(n.slice([[0,1]]))[0]*t.factor;let r=n.slice([[0,1]]);return Number(r[0][t.col])*t.factor}var Hr={...re,async plan(e){let t=await wr(e.main);try{let n=[],r=new Map,i=_r();i.enter(t.root),Rr(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=>!Fr.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(vr(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===jr||r===Mr||r===Nr)){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===jr||r===Mr)){let e=Ar(t.attrs,...Lr);c.push({name:zr(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===Pr){let e=(t.ds.metadata.compound_type?.members??[]).flatMap((e,n)=>e.type===jr||e.type===Mr?[{path:t.path,col:n,text:!1,factor:1,name:e.name}]:[]),r=e.find(e=>Ir.test(e.name));c.push({name:zr(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=>kr(e.attrs,`CLASS`)===`DIMENSION_SCALE`)??e.leaves.find(e=>Ir.test(e.name)&&e.ds.metadata.type!==Nr),i=n?Or[kr(n.attrs,`units`,`unit`,`Units`)]??1:1,a=n?null:Ar(r.get(e.parent)??{},...Lr);c.push({name:t?`${zr(e.parent)} (${e.n} rows)`:zr(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===Nr,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 Vr(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=>kr(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*Ur(e,t.group)},streamGroup:(e,t)=>Ur(e,t)};async function*Ur(e,t){let n=e.plan.state.groups[t],r=Pe(e,t).map(e=>n.cols[e]),i=await wr(e.files.main);try{let a=n.chunk??0,o=a>0?Math.max(1,Math.min(Math.floor((1<<20)/a),Math.ceil(Br(r.length+1)/a)))*a:Br(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=Er(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=Dr(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 Wr=/^(time|t|tout|timestamps?)$/i,Gr=/^(fs|sample_?rate|sampling_?rate|rate|samplerate)$/i,Kr=e=>e.slice(e.lastIndexOf(`.`)+1),qr=e=>e.includes(`.`)?e.slice(0,e.lastIndexOf(`.`)):``;function Jr(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 Yr(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])=>Gr.test(Kr(e))),a=i.length===1?i[0][1]:null,o=[];for(let[e,n]of r){let r=n.find(e=>Wr.test(Kr(e.name))||/(_time|\.Time)$/.test(e.name))??null;o.push({name:r?qr(r.name)||r.name:`${e} samples`,channels:n.filter(e=>e!==r).map(e=>Jr(e,t)),time:r,rate:r?null:a,origin:0})}return o}function Xr(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 Zr(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 Qr=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(){}},$r=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 Tt(await this.#e.slice(this.#t,this.#n),this.size,this.size),this.#r.subarray(e,e+t)}release(){this.keep||(this.#r=null)}},ei={1:1,2:1,3:2,4:2,5:4,6:4,7:4,9:8,12:8,13:8};function ti(e,t,n,r,i=1){let a=_(t),o=r.length,s=ei[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 ni(e,t,n){let r=_(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 ri(e,t,n,r,i){let[a,o]=t,s=ei[r.type];if(!s)return[];let c=(e,t)=>async(a,o)=>{let c=new Float64Array(o-a);return t===1?ti(r.type,await n.read(r.data+(e+a)*s,(o-a)*s),i,c):ti(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 ii(e,t,n,r,i,a,o){let c=t,u=await ni(e,c,n),d=_(await e.read(u.data,8)).getUint32(0,n),f=d&255;c=u.next;let p=await ni(e,c,n);if(p.bytes>128){a.notes.push(`A MAT variable with more than 32 dimensions was skipped (damaged).`);return}let m=_(await e.read(p.data,p.bytes)),h=Array.from({length:p.bytes/4},(e,t)=>m.getInt32(4*t,n));c=p.next;let g=await ni(e,c,n),v=l(await e.read(g.data,g.bytes));c=g.next;let y=i??v,b=r?`${r}.${y}`:y,x=h.reduce((e,t)=>e*t,1);if(f>=6&&f<=15){if(x===0)return;let t=await ni(e,c,n);if(d&2048&&a.notes.push(`${b}: the imaginary part was skipped.`),h.length>2){a.notes.push(`${b}: arrays with more than two dimensions are skipped.`);return}if(!ei[t.type])return;if(!(x>0)||x*ei[t.type]>t.bytes||t.data+t.bytes>e.size){a.notes.push(`${b}: its data is shorter than its dimensions (damaged); skipped.`);return}if(x===1){let r=new Float64Array(1);ti(t.type,await e.read(t.data,ei[t.type]??8),n,r),a.scalars.set(b,r[0]);return}a.channels.push(...ri(b,h,e,t,n));return}if(f===4){let t=await ni(e,c,n);if(t.bytes>ai)return;let r=await e.read(t.data,t.bytes),i=t.type===3||t.type===4||t.type===17?new TextDecoder(n?`utf-16le`:`utf-16be`).decode(r.subarray(0,r.length&-2)):M(r);h[0]<=1&&a.strings.set(b,i);return}if(f===2){let t=await ni(e,c,n),r=_(await e.read(t.data,4)).getInt32(0,n);c=t.next;let i=await ni(e,c,n);if(!(r>0))return;let l=await e.read(i.data,i.bytes),u=Array.from({length:Math.floor(l.length/r)},(e,t)=>s(l.subarray(t*r,(t+1)*r)));if(c=i.next,u.length===0||x*u.length*8>e.size-c){x>0&&u.length>0&&a.notes.push(`${b}: its fields are longer than the file (damaged); skipped.`);return}for(let t=0;t<x;t++){let r=x>1?`${b}(${t+1})`:b;for(let t of u){let i=await ni(e,c,n);i.type===14&&i.bytes>0&&o<16&&await ii(e,i.data,n,r,t,a,o+1),c=i.next}}return}f===1?a.notes.push(`${b}: cell arrays are skipped.`):f===5?a.notes.push(`${b}: sparse arrays are skipped.`):a.notes.includes(oi)||a.notes.push(oi)}var ai=1<<17,oi=`MATLAB objects (timeseries, SimulationOutput) were skipped: save them as 'Structure with time' or as structs.`,si=512<<20;async function ci(e){let t=l((await e.read(0,128)).subarray(126,128))===`IM`,n={channels:[],strings:new Map,scalars:new Map,notes:[],sources:[]},r=new Qr(e),i=0;for(let a=128;a+8<=e.size;){let o=await ni(r,a,t);if(o.type===15){if(o.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 r=await e.slice(o.data,o.bytes),a=await Tt(r,-1,8),s=a.length<8?0:8+_(a).getUint32(4,t);if(s>c(o.bytes))throw Error(`A compressed variable in this MAT file is damaged.`);if(s>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 l=await Tt(r,s,s),u=new $r(e,o.data,o.bytes,l);n.sources.push(u),i+=l.length;let d=await ni(u,0,t);if(d.type===14&&await ii(u,d.data,t,``,null,n,0),i>si)for(let e of n.sources)e.keep=!1,e.release()}else o.type===14&&await ii(r,o.data,t,``,null,n,0);a=o.next}return n}var li=65536,ui=new Set([`double`,`single`,`int8`,`uint8`,`int16`,`uint16`,`int32`,`uint32`,`int64`,`uint64`,`logical`]);function di(e,t){let n={channels:[],strings:new Map,scalars:new Map,notes:[]},r=_r();r.enter(e);let i=t=>Er(e,t),a=(e,t,n)=>{let r=null;return(a,o)=>((r?.s!==a||r.e!==o)&&(r={s:a,e:o,v:Dr(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=kr(m,`MATLAB_class`);if(m.MATLAB_empty)continue;if(hr(d)){h===`struct`&&l<16&&r.enter(d)&&o(d,f,p,l+1);continue}if(!yr(d))continue;let g=d.shape??[];if(h===`char`){if(g.reduce((e,t)=>e*t,1)>li)continue;let e=Dr(d.slice(g.map(e=>[0,e])));n.strings.set(p,new TextDecoder(`utf-16le`).decode(Uint16Array.from(e)))}else if(ui.has(h)&&g.length===2&&vr(d,g,t,!!d.metadata.chunks))n.notes.push(`${p}: larger than the file can hold (never written, or damaged); skipped.`);else if(ui.has(h)&&g.length===2){let[e,t]=g;if(e*t===1){n.scalars.set(p,Dr(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)=>Dr(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 fi=e=>Math.max(4096,Math.min(1<<18,Math.floor((16<<20)/(8*Math.max(1,e))))),pi={...Ae,async plan(e,t){let n=me(await t.read(0,20),`MATLAB 7.3`),r,i=[];if(n)r=di((await wr(e.main)).root,e.main.size);else{let e=await ci(t);i=e.sources,r=e}let a=Yr(r.channels,r.strings,r.scalars).filter(e=>e.channels.length>0);await Zr(a);let o=Xr(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*mi(e,t.group)},streamGroup:(e,t)=>mi(e,t)};async function*mi(e,t){let n=e.plan.state,r=n.groups[t],i=Pe(e,t).map(e=>r.channels[e]),a=r.channels[0].length,o=fi(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 hi(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 gi(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]=hi(t[c++],i),[g,_,v]=hi(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 _i={BINARY:2,BINARY32:4,FLOAT32:4},vi=16<<20;async function yi(e){let t=l(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 bi(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 xi=e=>e.companions.find(e=>e.name.toLowerCase().endsWith(`.dat`)),Si={...Me,async plan(e,t){let n=e.main.name.toLowerCase().endsWith(`.cff`),r,i;if(n){let e=await yi(t);r=e.cfg,i={data:`self`,offset:e.offset,length:e.length}}else{let n=xi(e);if(!n)throw Error(`This COMTRADE .cfg needs its .dat file: drop both together.`);if(t.size>vi)throw Error(`This .cfg is too large to be a COMTRADE configuration file.`);r=l(await t.read(0,t.size)),i={data:`companion`,offset:0,length:n.size}}let a=gi(r);if(a.ft!==`ASCII`&&!_i[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*_i[a.ft]+2*o,c=s?Math.floor(i.length/s):i.length,u=Math.min(a.rates[a.rates.length-1][1]||(s?c:-1),c),d=a.rates.length===1&&a.rates[0][0]>0?a.rates[0][0]:null,f=[`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:u,time:{kind:`timestamps`},rateHz:d}],events:a.start&&a.trigger?[{time:Math.round((a.triggerSec-a.startSec)*1e6)/1e6,text:`Trigger`}]:[],notes:f,state:{...i,cfg:a,samples:u,recordSize:s}}},stream:e=>Ci(e)};async function*Ci(e){let t=e.plan.state,{cfg:n}=t,r=t.data===`self`?e.io:new de(xi(e.files)),i=Pe(e,0),a=n.analog.length,o=n.rates[0][0]>0,s=n.timemult*n.timebase,c=65536,l=0,u=(e,t,r)=>{let i=new Float64Array(e);if(o)bi(n.rates,l,e,i);else for(let n=0;n<e;n++)i[n]=t[n]*s;let a={group:0,time:i,start:l,length:e,columns:r};return l+=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),d=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];d[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 u(f,l,d),l=new Float64Array(c),d=i.map(()=>new Float64Array(c)),f=0);m=t.slice(r)}m.trim()&&p(m,0,m.length),f&&(yield u(f,l.slice(0,f),d.map(e=>e.slice(0,f))));return}let d=t.recordSize,f=_i[n.ft],p=Math.max(1,Math.floor(Math.min(ue,c*d)/d)),m=t.samples;for await(let s of r.windows(t.offset,Math.min(t.length,t.samples*d),p*d)){e.signal?.throwIfAborted();let t=Math.min(m,Math.floor(s.bytes.length/d));if(t<=0)break;let r=_(s.bytes),c=new Float64Array(t);if(!o)for(let e=0;e<t;e++)c[e]=r.getUint32(e*d+4,!0);yield u(t,c,i.map(e=>{let i=new Float64Array(t);if(e<a){let{a,b:o}=n.analog[e],s=8+e*f;if(n.ft===`BINARY`)for(let e=0,n=s;e<t;e++,n+=d){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+=d){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+=d)i[e]=a*r.getFloat32(n,!0)+o}else{let n=e-a,o=8+a*f+2*(n>>4),s=1<<(n&15);for(let e=0,n=o;e<t;e++,n+=d)i[e]=r.getUint16(n,!0)&s?1:0}return i})),m-=t}}var wi=(e,t)=>(e[t]|e[t+1]<<8|e[t+2]<<16)+e[t+3]*16777216;function Ti(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*Ei(e,t,n,r){let i=e.size,a={},o=(e,t,n)=>De(e,t)&&n+wi(e,t+4)<=i,s=0,c=!1;for(;s<i;){r?.throwIfAborted();let l=await e.slice(s,Math.min(ue,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(De(l,d)&&r+wi(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=wi(l,d+4);if(d+p>l.length){if(p<=16777216){f=r;break}let i=await e.slice(r,p);Di(a,i,new DataView(i.buffer,i.byteOffset,i.byteLength),0,r,p,t,n),f=r+p;break}Di(a,l,u,d,r,p,t,n),d+=Math.max(p,24)}s=f,yield}}function Di(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=wi(t,r+8),!Ti(e,a)){s.damaged++;return}o(e)}function Oi(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 ki(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+(Oi(n,t,r)-Oi(n,e.o+24,r))*1e7}function Ai(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 ji=1<<20,Mi=16384,Ni=1024,Pi=65536,Fi=4e6;function Ii(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 N=e=>e!==void 0&&/^\s*[+-]?\d+\s*$/.test(e)?Number(e):null,Li=e=>{if(e===void 0||e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null};function Ri(e,t){let n=[];for(let r of e.keys()){let e=t.exec(r);e&&n.push(e)}return n}var zi=new WeakMap;function Bi(e,t){let n=zi.get(e);if(!n){zi.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 Vi(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 Hi=e=>t=>{let n=0;for(let r=0;r<e.length;r++)n+=e[r]*t**r;return n};function Ui(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 Wi(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 Gi(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,N(n(`PS\\N`))??0),t=[];for(let r=1;r<=e;r++){let e=Li(n(`PS3-${r}`)),i=Li(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(N(n(`PS2`))??t.length-1,t.length-1,5),i=Ui(t.map(e=>e[0]),t.map(e=>e[1]),Math.max(1,e));i?r.apply=Hi(i):r.unsupported=`pair sets that do not define a conversion`}else r.apply=Wi(t)}else if(i===`COE`||i===`NPC`){let e=i===`COE`?`CO`:`NPC`,t=N(n(`${e}\\N`)),a=t!==null&&t>=0&&t<=100?[Li(n(e)),...Array.from({length:t},(t,r)=>Li(n(`${e}-${r+1}`)))]:[];if(!a.length||a.some(e=>e===null))r.unsupported=`coefficients missing`;else if(i===`COE`)r.apply=Hi(a);else{let e=Hi(a);r.apply=t=>e(1/t)}}else i!==`NON`&&(r.unsupported=`conversion type ${i}`);return r}function Ki(e){let t=new Map;for(let n of Ri(e,/^C-(\d+)\\DCN$/)){let r=e.get(n[0]);t.has(r)||t.set(r,Gi(e,n[1]))}return t}function qi(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:(Ji.setUint32(0,e),Ji.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 Ji=new DataView(new ArrayBuffer(4)),Yi=(e,t)=>e===null||[`UNS`,`TWO`,`INT`,`OFF`,`ONE`,`SIG`,`SIM`,`BCD`].includes(e)||e===`FPT`&&(t===null||t===`IEEE_32`),Xi={1:`ONE`,2:`TWO`,3:`SIG`,4:`SIM`,B:`OFF`,U:`UNS`,F:`FPT`};function Zi(e){let t=new Map;for(let n of Ri(e,/^R-(\d+)\\TK1-(\d+)$/)){let r=N(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=Li(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 Bi(e,`R-${i}\\AMN-${a}-`)){let n=t[1],r=N(e.get(`R-${i}\\AMCN-${a}-${n}`))??Number(n);c.analog.set(r,{name:e.get(t[0]),bfm:Xi[(e.get(`R-${i}\\AF-${a}-${n}`)??``).toUpperCase()]??null})}for(let t of Bi(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 Qi(e,t){let n=new Map;for(let r of Ri(e,/^P-(\d+)\\DLN$/)){let i=r[1],a=e.get(r[0]),o=t=>e.get(`P-${i}\\${t}`),s=N(o(`MF1`)),c=N(o(`MF\\N`))??1,l=N(o(`F1`)),u=N(o(`MF4`));if(s===null||s<2||s>Mi||c<1||c>Ni||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 Bi(e,`P-${i}\\MFW1-`)){let n=N(e.get(t[0])),r=N(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=N(o(`MF2`)),m=(o(`MF5`)??``).replace(/\s/g,``).toUpperCase(),h=Li(o(`D2`)),g=(o(`F2`)??`M`).toUpperCase()===`L`,_=null;if((N(o(`ISF\\N`))??0)>=1){let e=N(o(`IDC1-1`)),t=N(o(`IDC3-1`))??1,n=N(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=N(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:N(o(`IDC8-1`))??(i?r-(c-1):r+c-1),initFrame:N(o(`IDC7-1`))??1,dec:i}}}n.set(a,{dln:a,mfn:c,widths:d,frameBits:Math.max(f,Math.min(p??0,f+Pi)),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 Ri(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;(N(o(`ML\\N`))??1)>1&&t(`measurement lists after the first of ${i.dln}`);let c=0,l=Bi(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(N(o(`MML\\N-1-${r}`))??1,9999),p=null,m=[],h=``;for(let e=1;e<=f&&!h;e++){let t=N(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=N(t(`WP`)),l=N(t(`WI`))??0,u=N(t(`FP`))??1,f=N(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>Fi){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:N(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)>Fi&&(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 $i(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 ea(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 ta(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 na(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 ra(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 ia(e,t,n){let r=e.offsets[t],i=Math.min(Math.max(e.tail-r,0),n),a=(t,n)=>ta(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 aa(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=ia(t,o,s);i[a]&&(u=ra(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=qi(c,l,a,o);return s?s(u):u}}function oa(e,t){let n=e.idc,r=e.widths[n.word],i=Math.floor(ia(t,n.word,r)/2**n.shift)%2**n.len;return n.lsbFirst&&(i=ra(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 sa=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=$i(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}}},ca=65536,la=4096,ua=17,da=33,fa=41,pa=9,ma=1;function ha(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 ga=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,_a=(e,t)=>{let n=e.ref??e.first;return n?(n.ms-e.baseMs)/1e3+va(t-n.rtc)/1e7:va(t-(e.baseRtc??0))/1e7},va=e=>e-Math.round(e/2**48)*2**48;function ya(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 ba(e,t,n,r){let i=n.model.convs,a=$i(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=>aa(t,e,i.get(e.name)))}}function xa(e,t,n,r,i){let a=e.f.idc?oa(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 Sa(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=_a(n.clock,e.rtc),p=t.f;if(s+c+l!==1)return a();if(l){if(!p.sync)return a();t.framer??=new sa(p),t.framer.push(e.b,i+4,e.dlen-4,d,f,(e,r)=>xa(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?$i(p,u):ea(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,xa(t,y,g?_a(n.clock,ki(e,a)):f+(p.bitRate?r*p.frameBits/p.bitRate:0),t.counter++%p.mfn+1,n)}}function Ca(e,t,n,r,i,a){let o=ya(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=_a(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=qi(na(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 wa(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,_a(n.clock,ki(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 Ta=e=>[...e].flatMap((t,n)=>t===`1`?[e.length-1-n]:[]);async function*Ea(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%la===0&&t.out.row(-2,0);let n=t.clock;if(n.baseRtc??=e.rtc,e.type===ua){let t=Ai(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!==da&&e.type!==fa&&e.type!==pa)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===da)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===fa){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?Ta(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=ba(e.ch,r,t,s(e.ch,`PCM`)))}a.set(i,u)}u.analog?Ca(e,e.ch,u.analog,t,s(e.ch,`Analog`),o?.rch.get(e.ch)):u.discrete?wa(e,u.discrete,t):u.pcm?Sa(e,u.pcm,t):t.problems.noFormat.set(e.ch,(t.problems.noFormat.get(e.ch)??0)+1)};for(let t=Ei(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 Da(e,t){let n=[],r=0,i=0,a=!1,o=!1,s=new TextDecoder(`latin1`),c=Ei(e,e=>{if(a)return;if(e.type!==ma){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,ji-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 Oa={7:`106-07`,8:`106-09`,9:`106-11`,10:`106-13`,11:`106-15`,12:`106-17`},ka={...te,async plan(e,t){try{return await Aa(t)}catch(e){throw u(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(ca,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=Pe(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=Ea(e.io,l,{damaged:0,cut:!1},null,e.signal);!(await t.next()).done;)yield*a,a.length=0}catch(e){throw u(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 Aa(e){let t=[],n={},r=await Da(e,t),i=null,a=[];if(r){let e=Ii(r.text);i={attrs:e,rch:Zi(e),convs:Ki(e),pcm:Qi(e,e=>a.push(e)),year:Vi(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=Ea(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=je(y.map(e=>e.d.name),[]),x=y.map((e,t)=>{let n=e.d.rate,r=je(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+va((f.baseRtc??0)-f.first.rtc)/1e7:u,C=Math.min(l,S),w=Number.isFinite(C)?C:0,T=[],E=new Set([ma,ua,da,fa,pa,3]);for(let[e,t]of[...m].sort((e,t)=>e[0]-t[0])){n[`Channel ${e}`]=[...t].map(([e,t])=>`${ha(e)[0]} (${ga(t,`packet`)})`).join(`, `);for(let[n,r]of t)E.has(n)||T.push(`${ga(r,`${ha(n)[1]} packet`)} (channel ${e})`)}if(T.length&&t.push(`Skipped: ${T.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: ${ga(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 D=h.damaged+p.damaged;D&&t.push(`${ga(D,`damaged packet`)} ${D===1?`was`:`were`} skipped.`),p.pcmMismatch&&t.push(`${ga(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(`${ga(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(`${ga(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 O=i?[...i.convs].filter(([,e])=>e.unsupported||!Yi(e.bfm,e.fpf)).map(([e,t])=>`${e} (${t.unsupported??`binary format ${t.bfm}${t.fpf?` ${t.fpf}`:``}`})`):[];O.length&&t.push(`Read without their conversion or format: ${O.slice(0,20).join(`, `)}${O.length>20?`, and ${O.length-20} more`:``}.`);let k=[...g.rates.keys()].filter(e=>!i?.rch.get(e)?.rate);k.length&&t.push(`The setup record has no sample rate for analog channel ${k.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 A=null,j=i?Vi(i.attrs):null;if(f.first){let e=f.baseMs+w*1e3;(f.firstHasYear||j!==null)&&Math.abs(e)<=864e13&&(A=new Date(e).toISOString()),!f.firstHasYear&&j!==null?t.push(`The time packets give the day of the year; the year (${j}) 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 ee={model:i,clock:f,t0:w,keys:y.map(e=>e.key),rates:g.rates};return{format:`IRIG 106 Chapter 10${r&&Oa[r.version]?` (${Oa[r.version]})`:``}`,startTime:A,groups:x,meta:n,events:[],notes:t,interleaved:!0,state:ee}}function ja(e){return e==null}function Ma(e){return typeof e==`object`&&!!e}function Na(e){return Array.isArray(e)?e:ja(e)?[]:[e]}function Pa(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 Fa(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function Ia(e){return e===0&&1/e==-1/0}var P={isNothing:ja,isObject:Ma,toArray:Na,repeat:Fa,isNegativeZero:Ia,extend:Pa};function La(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 Ra(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=La(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}Ra.prototype=Object.create(Error.prototype),Ra.prototype.constructor=Ra,Ra.prototype.toString=function(e){return this.name+`: `+La(this,e)};var za=Ra;function Ba(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 Va(e,t){return P.repeat(` `,t-e.length)+e}function Ha(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=Ba(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=P.repeat(` `,t.indent)+Va((e.line-c+1).toString(),u)+` | `+l.str+`
|
|
8
|
+
`+s;for(l=Ba(e.buffer,r[o],i[o],e.position,d),s+=P.repeat(` `,t.indent)+Va((e.line+1).toString(),u)+` | `+l.str+`
|
|
9
|
+
`,s+=P.repeat(`-`,t.indent+u+3+l.pos)+`^
|
|
10
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=Ba(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=P.repeat(` `,t.indent)+Va((e.line+c+1).toString(),u)+` | `+l.str+`
|
|
11
|
+
`;return s.replace(/\n$/,``)}var Ua=Ha,Wa=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],Ga=[`scalar`,`sequence`,`mapping`];function Ka(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function qa(e,t){if(t||={},Object.keys(t).forEach(function(t){if(Wa.indexOf(t)===-1)throw new za(`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=Ka(t.styleAliases||null),Ga.indexOf(this.kind)===-1)throw new za(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var Ja=qa;function Ya(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 Xa(){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 Za(e){return this.extend(e)}Za.prototype.extend=function(e){var t=[],n=[];if(e instanceof Ja)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 za(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof Ja))throw new za(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new za(`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 za(`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 Ja))throw new za(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(Za.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Ya(r,`implicit`),r.compiledExplicit=Ya(r,`explicit`),r.compiledTypeMap=Xa(r.compiledImplicit,r.compiledExplicit),r};var Qa=new Za({explicit:[new Ja(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),new Ja(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),new Ja(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})]});function $a(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function eo(){return null}function to(e){return e===null}var no=new Ja(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:$a,construct:eo,predicate:to,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function ro(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 io(e){return e===`true`||e===`True`||e===`TRUE`}function ao(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var oo=new Ja(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:ro,construct:io,predicate:ao,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 so(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function co(e){return 48<=e&&e<=55}function lo(e){return 48<=e&&e<=57}function uo(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(!so(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!co(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!lo(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function fo(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 po(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!P.isNegativeZero(e)}var mo=new Ja(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:uo,construct:fo,predicate:po,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`]}}),ho=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function go(e){return!(e===null||!ho.test(e)||e[e.length-1]===`_`)}function _o(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 vo=/^[-+]?[0-9]+e/;function yo(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(P.isNegativeZero(e))return`-0.0`;return n=e.toString(10),vo.test(n)?n.replace(`e`,`.e`):n}function bo(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||P.isNegativeZero(e))}var xo=new Ja(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:go,construct:_o,predicate:bo,represent:yo,defaultStyle:`lowercase`}),So=Qa.extend({implicit:[no,oo,mo,xo]}),Co=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),wo=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 To(e){return e===null?!1:Co.exec(e)!==null||wo.exec(e)!==null}function Eo(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Co.exec(e),t===null&&(t=wo.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 Do(e){return e.toISOString()}var Oo=new Ja(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:To,construct:Eo,instanceOf:Date,represent:Do});function ko(e){return e===`<<`||e===null}var Ao=new Ja(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:ko}),jo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
12
|
+
\r`;function Mo(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=jo;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 No(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=jo,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 Po(e){var t=``,n=0,r,i,a=e.length,o=jo;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 Fo(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var Io=new Ja(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:Mo,construct:No,predicate:Fo,represent:Po}),Lo=Object.prototype.hasOwnProperty,Ro=Object.prototype.toString;function zo(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,Ro.call(i)!==`[object Object]`)return!1;for(a in i)if(Lo.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 Bo(e){return e===null?[]:e}var Vo=new Ja(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:zo,construct:Bo}),Ho=Object.prototype.toString;function Uo(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],Ho.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function Wo(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 Go=new Ja(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:Uo,construct:Wo}),Ko=Object.prototype.hasOwnProperty;function qo(e){if(e===null)return!0;var t,n=e;for(t in n)if(Ko.call(n,t)&&n[t]!==null)return!1;return!0}function Jo(e){return e===null?{}:e}var Yo=new Ja(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:qo,construct:Jo}),Xo=So.extend({implicit:[Oo,Ao],explicit:[Io,Vo,Go,Yo]}),Zo=Object.prototype.hasOwnProperty,Qo=1,$o=2,es=3,ts=4,ns=1,rs=2,is=3,as=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,os=/[\x85\u2028\u2029]/,ss=/[,\[\]\{\}]/,cs=/^(?:!|!!|![a-z\-]+!)$/i,ls=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function us(e){return Object.prototype.toString.call(e)}function ds(e){return e===10||e===13}function fs(e){return e===9||e===32}function ps(e){return e===9||e===32||e===10||e===13}function ms(e){return e===44||e===91||e===93||e===123||e===125}function hs(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function gs(e){return e===120?2:e===117?4:e===85?8:0}function _s(e){return 48<=e&&e<=57?e-48:-1}function vs(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 ys(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function bs(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var xs=Array(256),Ss=Array(256),Cs=0;Cs<256;Cs++)xs[Cs]=+!!vs(Cs),Ss[Cs]=vs(Cs);function ws(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Xo,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 Ts(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=Ua(n),new za(t,n)}function F(e,t){throw Ts(e,t)}function Es(e,t){e.onWarning&&e.onWarning.call(null,Ts(e,t))}var Ds={YAML:function(e,t,n){var r,i,a;e.version!==null&&F(e,`duplication of %YAML directive`),n.length!==1&&F(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&F(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&F(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Es(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&F(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],cs.test(r)||F(e,`ill-formed tag handle (first argument) of the TAG directive`),Zo.call(e.tagMap,r)&&F(e,`there is a previously declared suffix for "`+r+`" tag handle`),ls.test(i)||F(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{F(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function Os(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||F(e,`expected valid JSON character`);else as.test(s)&&F(e,`the stream contains non-printable characters`);e.result+=s}}function ks(e,t,n,r){var i,a,o,s;for(P.isObject(n)||F(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],Zo.call(t,a)||(bs(t,a,n[a]),r[a]=!0)}function As(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])&&F(e,`nested arrays are not supported inside keys`),typeof i==`object`&&us(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&us(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)ks(e,t,a[l],n);else ks(e,t,a,n);else !e.json&&!Zo.call(n,i)&&Zo.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,F(e,`duplicated mapping key`)),bs(t,i,a),delete n[i];return t}function js(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):F(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function I(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;fs(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(ds(i))for(js(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&&Es(e,`deficient indentation`),r}function Ms(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||ps(n)))}function Ns(e,t){t===1?e.result+=` `:t>1&&(e.result+=P.repeat(`
|
|
14
|
+
`,t-1))}function Ps(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(ps(p)||ms(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),ps(i)||n&&ms(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),ps(i)||n&&ms(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),ps(r))break}else if(e.position===e.lineStart&&Ms(e)||n&&ms(p))break;else if(ds(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,I(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&&=(Os(e,a,o,!1),Ns(e,e.line-c),a=o=e.position,!1),fs(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Os(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function Fs(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(Os(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 ds(n)?(Os(e,r,i,!0),Ns(e,I(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Ms(e)?F(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);F(e,`unexpected end of the stream within a single quoted scalar`)}function Is(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 Os(e,n,e.position,!0),e.position++,!0;else if(s===92){if(Os(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),ds(s))I(e,!1,t);else if(s<256&&xs[s])e.result+=Ss[s],e.position++;else if((o=gs(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=hs(s))>=0?a=(a<<4)+o:F(e,`expected hexadecimal character`);e.result+=ys(a),e.position++}else F(e,`unknown escape sequence`);n=r=e.position}else ds(s)?(Os(e,n,r,!0),Ns(e,I(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Ms(e)?F(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);F(e,`unexpected end of the stream within a double quoted scalar`)}function Ls(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(I(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&&F(e,`expected the node content, but found ','`):F(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),ps(l)&&(d=f=!0,e.position++,I(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,Ws(e,t,Qo,!1,!0),g=e.tag,h=e.result,I(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),I(e,!0,t),Ws(e,t,Qo,!1,!0),_=e.result),p?As(e,s,m,g,h,_,r,i,a):d?s.push(As(e,null,m,g,h,_,r,i,a)):s.push(h),I(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}F(e,`unexpected end of the stream within a flow collection`)}function Rs(e,t){var n,r,i=ns,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)ns===i?i=d===43?is:rs:F(e,`repeat of a chomping mode identifier`);else if((u=_s(d))>=0)u===0?F(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?F(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(fs(d)){do d=e.input.charCodeAt(++e.position);while(fs(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ds(d)&&d!==0)}for(;d!==0;){for(js(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),ds(d)){c++;continue}if(e.lineIndent<s){i===is?e.result+=P.repeat(`
|
|
15
|
+
`,a?1+c:c):i===ns&&a&&(e.result+=`
|
|
16
|
+
`);break}for(r?fs(d)?(l=!0,e.result+=P.repeat(`
|
|
17
|
+
`,a?1+c:c)):l?(l=!1,e.result+=P.repeat(`
|
|
18
|
+
`,c+1)):c===0?a&&(e.result+=` `):e.result+=P.repeat(`
|
|
19
|
+
`,c):e.result+=P.repeat(`
|
|
20
|
+
`,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!ds(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Os(e,n,e.position,!1)}return!0}function zs(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,F(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!ps(o))));){if(s=!0,e.position++,I(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,Ws(e,t,es,!1,!0),a.push(e.result),I(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)F(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 Bs(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,F(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&ps(r))v===63?(g&&(As(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):F(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,!Ws(e,n,$o,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);fs(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),ps(v)||F(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(As(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(_)F(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)F(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),Ws(e,t,ts,!0,i)&&(g?m=e.result:h=e.result),g||(As(e,d,f,p,m,h,o,s,c),p=m=h=null),I(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)F(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&As(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function Vs(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&F(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)):F(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!ps(o);)o===33&&(r?F(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),cs.test(i)||F(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),ss.test(a)&&F(e,`tag suffix cannot contain flow indicator characters`)}a&&!ls.test(a)&&F(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{F(e,`tag name is malformed: `+a)}return n?e.tag=a:Zo.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:F(e,`undeclared tag handle "`+i+`"`),!0}function Hs(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&F(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ps(n)&&!ms(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&F(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function Us(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&&!ps(r)&&!ms(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&F(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),Zo.call(e.anchorMap,n)||F(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],I(e,!0,-1),!0}function Ws(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=ts===n||es===n,r&&I(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Vs(e)||Hs(e);)I(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||ts===n)&&(h=Qo===n||$o===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(zs(e,g)||Bs(e,g,h))||Ls(e,h)?u=!0:(o&&Rs(e,h)||Fs(e,h)||Is(e,h)?u=!0:Us(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&F(e,`alias node should not have any properties`)):Ps(e,h,Qo===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&zs(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`&&F(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(Zo.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||F(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&F(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)):F(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 Gs(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&&(I(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&&!ps(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&F(e,`directive name must not be less than one character in length`);o!==0;){for(;fs(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ds(o));break}if(ds(o))break;for(n=e.position;o!==0&&!ps(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&js(e),Zo.call(Ds,r)?Ds[r](e,r,i):Es(e,`unknown document directive "`+r+`"`)}if(I(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,I(e,!0,-1)):a&&F(e,`directives end mark is expected`),Ws(e,e.lineIndent-1,ts,!1,!0),I(e,!0,-1),e.checkLineBreaks&&os.test(e.input.slice(t,e.position))&&Es(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&Ms(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,I(e,!0,-1));return}if(e.position<e.length-1)F(e,`end of the stream or a document separator is expected`);else return}function Ks(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 ws(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,F(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;)Gs(n);return n.documents}function qs(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=Ks(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function Js(e,t){var n=Ks(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new za(`expected a single document in the stream, but found more`)}}var Ys={loadAll:qs,load:Js},Xs=Object.prototype.toString,Zs=Object.prototype.hasOwnProperty,Qs=65279,$s=9,ec=10,tc=13,nc=32,rc=33,ic=34,ac=35,oc=37,sc=38,cc=39,lc=42,uc=44,dc=45,fc=58,pc=61,mc=62,hc=63,gc=64,_c=91,vc=93,yc=96,bc=123,xc=124,Sc=125,Cc={};Cc[0]=`\\0`,Cc[7]=`\\a`,Cc[8]=`\\b`,Cc[9]=`\\t`,Cc[10]=`\\n`,Cc[11]=`\\v`,Cc[12]=`\\f`,Cc[13]=`\\r`,Cc[27]=`\\e`,Cc[34]=`\\"`,Cc[92]=`\\\\`,Cc[133]=`\\N`,Cc[160]=`\\_`,Cc[8232]=`\\L`,Cc[8233]=`\\P`;var wc=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],Tc=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ec(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&&Zs.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function Dc(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 za(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+P.repeat(`0`,r-t.length)+t}var Oc=1,kc=2;function Ac(e){this.schema=e.schema||Xo,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=P.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ec(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===`"`?kc:Oc,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 jc(e,t){for(var n=P.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 Mc(e,t){return`
|
|
24
|
+
`+P.repeat(` `,e.indent*t)}function Nc(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 Pc(e){return e===nc||e===$s}function Fc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Qs||65536<=e&&e<=1114111}function Ic(e){return Fc(e)&&e!==Qs&&e!==tc&&e!==ec}function Lc(e,t,n){var r=Ic(e),i=r&&!Pc(e);return(n?r:r&&e!==uc&&e!==_c&&e!==vc&&e!==bc&&e!==Sc)&&e!==ac&&!(t===fc&&!i)||Ic(t)&&!Pc(t)&&e===ac||t===fc&&i}function Rc(e){return Fc(e)&&e!==Qs&&!Pc(e)&&e!==dc&&e!==hc&&e!==fc&&e!==uc&&e!==_c&&e!==vc&&e!==bc&&e!==Sc&&e!==ac&&e!==sc&&e!==lc&&e!==rc&&e!==xc&&e!==pc&&e!==mc&&e!==cc&&e!==ic&&e!==oc&&e!==gc&&e!==yc}function zc(e){return!Pc(e)&&e!==fc}function Bc(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 Vc(e){return/^\n* /.test(e)}var Hc=1,Uc=2,Wc=3,Gc=4,Kc=5;function qc(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=Rc(Bc(e,0))&&zc(Bc(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Bc(e,c),!Fc(l))return Kc;h&&=Lc(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Bc(e,c),l===ec)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!Fc(l))return Kc;h&&=Lc(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?Hc:a===kc?Kc:Uc:n>9&&Vc(e)?Kc:o?a===kc?Kc:Uc:f?Gc:Wc}function Jc(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===kc?`""`:`''`;if(!e.noCompatMode&&(wc.indexOf(t)!==-1||Tc.test(t)))return e.quotingType===kc?`"`+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 Nc(e,t)}switch(qc(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case Hc:return t;case Uc:return`'`+t.replace(/'/g,`''`)+`'`;case Wc:return`|`+Yc(t,e.indent)+Xc(jc(t,a));case Gc:return`>`+Yc(t,e.indent)+Xc(jc(Zc(t,o),a));case Kc:return`"`+$c(t)+`"`;default:throw new za(`impossible error: invalid scalar style`)}}()}function Yc(e,t){var n=Vc(e)?String(t):``,r=e[e.length-1]===`
|
|
25
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
26
|
+
`||e===`
|
|
27
|
+
`)?`+`:r?``:`-`)+`
|
|
28
|
+
`}function Xc(e){return e[e.length-1]===`
|
|
29
|
+
`?e.slice(0,-1):e}function Zc(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,Qc(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
|
+
`:``)+Qc(c,t),i=a}return r}function Qc(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 $c(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Bc(e,i),r=Cc[n],!r&&Fc(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Dc(n);return t}function el(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)),(al(e,t,s,!1,!1)||s===void 0&&al(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function tl(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)),(al(e,t+1,c,!0,!0,!1,!0)||c===void 0&&al(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=Mc(e,t)),e.dump&&ec===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function nl(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)),al(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),al(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function rl(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 za(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=Mc(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),al(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&ec===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=Mc(e,t)),al(e,t+1,u,!0,d)&&(e.dump&&ec===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function il(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,Xs.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(Zs.call(s.represent,c))r=s.represent[c](t,c);else throw new za(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function al(e,t,n,r,i,a,o){e.tag=null,e.dump=n,il(e,n,!1)||il(e,n,!0);var s=Xs.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?(rl(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(nl(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?tl(e,t-1,e.dump,i):tl(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(el(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&Jc(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new za(`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 ol(e,t){var n=[],r=[],i,a;for(sl(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function sl(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)sl(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)sl(e[r[i]],t,n)}function cl(e,t){t||={};var n=new Ac(t);n.noRefs||ol(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),al(n,0,r,!0,!0)?n.dump+`
|
|
36
|
+
`:``}var ll={dump:cl},ul=Ys.load;Ys.loadAll,ll.dump;var L=class extends Error{},dl=1e6,fl=()=>new L(`it names more than ${dl.toLocaleString(`en-US`)} parameter occurrences`),pl={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`]},ml={little:!0,"<":!0,big:!1,">":!1},hl=[`name`,`type`,`offset`,`count`,`endian`,`scale`,`add`,`unit`,`bit`,`sample_rate_hz`],gl=e=>e==null||e===``;function _l(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 L(`${n}: '${t}' must be a number`)}function vl(e,t,n){let r=typeof e==`number`?e:Number(String(e).trim());if(gl(e)||Number.isNaN(r)&&!/^[+-]?nan$/i.test(String(e).trim()))throw new L(`${n}: '${t}' must be a number`);return r}function yl(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 bl(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)=>yl(e.getUint16(n,t));case`f32`:return(e,n)=>e.getFloat32(n,t);default:return(e,n)=>e.getFloat64(n,t)}}function xl(e,t,n,r,i){let a=String(e.name??``).trim();if(!a)throw new L(`${i}: every field needs a 'name'`);i=`${i}, field '${a}'`;let o=String(e.type??``);if(!(o in pl))throw new L(`${i}: 'type' must be one of ${Object.keys(pl).join(`, `)}`);let[s,c]=pl[o],l=ml[String(gl(e.endian)?n:e.endian)];if(l===void 0)throw new L(`${i}: 'endian' must be little or big`);let u=gl(e.count)?1:_l(e.count,`count`,i);if(u<1||u>4096)throw new L(`${i}: 'count' must be 1-4096`);let d=gl(e.offset)?t:_l(e.offset,`offset`,i);if(d<0||d>1<<24)throw new L(`${i}: 'offset' must be 0 or more`);let f=gl(e.bit)?null:_l(e.bit,`bit`,i);if(f!==null&&(c!==`u`&&c!==`i`||u!==1||f<0||f>=8*s))throw new L(`${i}: 'bit' needs one integer (u8..i64) and a bit number inside it`);let p=gl(e.scale)?1:vl(e.scale,`scale`,i),m=gl(e.add)?0:vl(e.add,`add`,i),h=gl(e.sample_rate_hz)?null:vl(e.sample_rate_hz,`sample_rate_hz`,i);if(h!==null&&(!(h>0)||o===`bool`||f!==null))throw new L(`${i}: 'sample_rate_hz' must be above 0, on a number field (not bool or bit)`);let g=String(e.unit??``),_=bl(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 Sl(e,t,n,r,i={n:0}){if(!Array.isArray(e.fields)||!e.fields.length)throw new L(`${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 L(`${r}: each field must be a mapping with name and type`);let e=xl(n,c,t,a,r);if((i.n+=e.count)>1e6)throw fl();c=e.off+e.size*e.count;for(let t of e.tags){if(s.has(t))throw new L(`${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 L(`${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 L(`${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 Cl(e,t){let n=String(e.endian||`little`);if(!(n in ml))throw new L(`${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 L(`${t}: 'packets' needs a 'packet_id' to tell them apart`);return r.any=Sl(e,n,0,t),r}if(typeof e.packet_id!=`object`)throw new L(`${t}: 'packet_id' must be one integer field`);let i=xl({name:`packet_id`,...e.packet_id},0,n,``,`${t} packet_id`);if(i.count!==1||!i.int)throw new L(`${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 L(`${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=_l(e,`packets`,t);r.keys.set(a,Sl(s??{},n,i.off+i.size,`${t} packet ${e}`,o))}return r}function wl(e,t){let n=e.replace(/^\uFEFF/,``).split(/\r?\n/),r=v(n[0]??``,`,`).map(e=>e.trim());if(!r.includes(`name`)||!r.includes(`type`))throw new L(`${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=v(e,`,`),n={};if(r.forEach((e,r)=>{e&&(n[e]=(t[r]??``).trim())}),!n.name)continue;let o={};for(let e of hl)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 Tl(e,t){let n=`the layout ${t}`,r;if(/\.csv$/i.test(t))r=wl(e,n);else try{r=ul(e)}catch(e){throw new L(`${n}: not YAML (${e.message.split(`
|
|
37
|
+
`)[0]})`)}if(!r||typeof r!=`object`||Array.isArray(r))throw new L(`${n} must be a mapping`);return Cl(r,n)}var El=/<(?:[\w.-]+:)?t(?:\s[^>]*)?>([\s\S]*?)<\/(?:[\w.-]+:)?t>/g,Dl={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`},Ol=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)):Dl[t]):e;function kl(e,t){let n=` ${t}="`,r=(` `+e).indexOf(n);if(r<0)return;let i=r-1+n.length;return Ol(e.slice(i,e.indexOf(`"`,i)))}function Al(e,t){let n=new Map;for(let e of t.matchAll(/<(?:[\w.-]+:)?Relationship\b([^>]*)>/g)){let t=kl(e[1],`Id`),r=kl(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=kl(e[1],`name`),r=n.get(kl(e[1],`r:id`)??``);return t&&r?[{name:t,path:r}]:[]}),i=kl(/<(?:[\w.-]+:)?workbookPr\b([^>]*)>/.exec(e)?.[1]??``,`date1904`);return{sheets:r,date1904:i===`1`||i===`true`}}var jl=new Set([14,15,16,17,18,19,20,21,22,45,46,47]);function Ml(e,t){if(t===void 0)return jl.has(e);let n=t.replace(/"[^"]*"/g,``).replace(/\\./g,``).replace(/\[(?![hms]+\])[^\]]*\]/gi,``);return/[dmyhs]/i.test(n)&&!/general/i.test(n)}function Nl(e){let t=new Map;for(let n of e.matchAll(/<(?:[\w.-]+:)?numFmt\b([^>]*)>/g)){let e=kl(n[1],`formatCode`);e!==void 0&&t.set(Number(kl(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(kl(e[1],`numFmtId`)??0);return Ml(n,t.get(n))})}function Pl(e,t=ke){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(El))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(Ol(i))}return n}var Fl=Array.from({length:23},(e,t)=>10**t),Il=-1;function Ll(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){Il=r;let e=c>0?a/Fl[c]:a;return i?-e:e}return Il=e.indexOf(`<`,r),Il<0?NaN:Number(e.slice(t,Il))}var Rl=e=>e===32||e===9||e===10||e===13,zl=(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)),Bl=0,Vl=1,Hl=2,Ul=3,Wl=4,Gl=5;async function Kl(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&&!Rl(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=Bl,b=0,x=f;for(;;){for(;x<l&&Rl(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&&!Rl(m)&&m!==62;)x++;let n=x-t;for(;x<l&&Rl(e.charCodeAt(x));)x++;if(x>=l)return u(c);if(e.charCodeAt(x)!==61)continue;for(x++;x<l&&Rl(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?Vl:n===98?Ul:n===101?Wl:n===110?Bl:-1:t===3&&n===115&&e.startsWith(`str`,i)?Hl:t===9&&e.startsWith(`inlineStr`,i)?Gl:-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===Bl&&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=Ll(e,C+4+T),o=Il;if(o>C+4+T&&zl(e,o,118,s)&&zl(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||Rl(l))&&(O=!0)}if(y===Gl){let t=``;for(let n of e.slice(C+1,k).matchAll(El))t+=n[1];t&&r(i,a,Ol(t),!1);continue}if(D<=E){O&&o++;continue}if(y===Bl){let t=Ll(e,E);Number.isNaN(t)||r(i,a,t,n[b]??!1)}else y===Vl?r(i,a,t[Ll(e,E)]??``,!1):y===Hl?r(i,a,Ol(e.slice(E,D)),!1):y===Ul&&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 ql=256;function Jl(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+=Ol(e.slice(r));break}if(t>r&&(a.text+=Ol(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>ql)throw new L(`the XidML file nests deeper than 256 elements`);n.push(d)}}return t}var R=(e,t)=>e?.kids.find(e=>e.name===t),Yl=(e,t)=>e?.kids.filter(e=>e.name===t)??[],z=(e,t)=>R(e,t)?.text.trim(),B=(e,t)=>{let n=RegExp(`(?:^|\\s)${t}\\s*=\\s*("([^"]*)"|'([^']*)')`).exec(e.attrs);return n?Ol(n[2]??n[3]):void 0};function Xl(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 V=e=>{if(e===void 0||e===``)return null;let t=Number(e);return Number.isFinite(t)?t:null};function Zl(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 Ql=new DataView(new ArrayBuffer(8)),$l=(e,t)=>(Math.floor(e/2**32)&Math.floor(t/2**32))*2**32+((e&t)>>>0);function eu(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+Zl(e,n+8*i,8);return r}:r!==null||i?(e,n)=>{let o=Zl(e,n,t);return r!==null&&(o=$l(o,r)),i?a-o:o}:(e,n)=>Zl(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)=>(Ql.setUint32(0,o(e,t)),Ql.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++)Ql.setUint8(7-n,Zl(e,t+8*n,8));return Ql.getFloat64(0)}:(e,t)=>(Ql.setUint32(0,Zl(e,t,32)),Ql.setUint32(4,Zl(e,t+32,32)),Ql.getFloat64(0)):`a double that is not 64 bits`;default:return`data format ${e}`}}var tu={"P Type":`P`,"D Type":`D`,"N Type":`N`,"M Type":`M`,"Q Type":`Q`},nu=65506*8;function ru(e){let t=R(Jl(e),`xidml`);if(!t)throw new L(`it has no <xidml> element`);let n=[],r=[],i=!1,a=0,o=new Map;for(let e of Xl(R(t,`Parameters`)??t,`Parameter`)){let t=B(e,`Name`);t&&!o.has(t)&&o.set(t,e)}let s=new Map;for(let e of Xl(t,`ParameterUnit`)){let t=B(e,`Name`);t&&s.set(t,{scale:V(z(e,`Scale`))??1,offset:V(z(e,`Offset`))??0})}let c=new Map;for(let e of Xl(t,`AlgorithmSet`))for(let t of e.kids){let e=B(t,`Name`);if(e)if(t.name===`Polynomial`){let n=Yl(t,`Term`).map(e=>[V(z(e,`Coefficient`))??0,V(z(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)=>{(R(e,`FillValue`)||(z(e,`Parity`)??`None`)!==`None`)&&(i=!0);let u=z(e,`ParameterReference`),d=u===void 0?R(e,`Parameter`):o.get(u),f=u??(d?B(d,`Name`):void 0);if(!f)return null;if(!d)return r.push(`${f} (${t}: no parameter definition)`),null;let p=V(z(e,`NumberOfDataBits`))??V(z(d,`SizeInBits`))??16;if(!Number.isInteger(p)||p<1||p>64)return r.push(`${f} (${p} bits)`),null;let m=z(d,`Endianness`);if(m===`Mixed-Endian`||m===`Bit-Endian`)return r.push(`${f} (${m})`),null;if(z(e,`MostSignificantBit`)===`Last`)return r.push(`${f} (least significant bit first)`),null;let h=z(e,`Justification`)===`Right`?Math.ceil(p/16)*16-p:0,g=z(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=z(e,`Complement`)===`Yes`,y=eu(z(d,`DataFormat`)??`OffsetBinary`,p,m===`Little-Endian`,_,v);if(typeof y==`string`)return r.push(`${f} (${y})`),null;let b=z(d,`ParameterUnitReference`),x=b?s.get(b):void 0,S=z(d,`BaseUnit`),C=x?b:S&&S!==`Unitless`&&S!==`BitVector`?S:``,w=z(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 Yl(e,`Location`)){let e=V(z(t,`Offset_Words`)),n=e===null?V(z(t,`Offset_Bits`)):e*16+h;if(n===null||!Number.isInteger(n)||n<0||n>nu)return r.push(`${f} (a location outside any IENA packet)`),null;let i=V(z(t,`Occurrences`))??1;if(!Number.isInteger(i)||i<1||i*p>nu)return r.push(`${f} (${i} occurrences)`),null;if((a+=i)>1e6)throw fl();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[...Xl(t,`IENA`),...Xl(t,`IENA-Ethernet-UDP-Basic`)]){let t=B(e,`Name`)??null,r=R(e,`Properties`),i=parseInt(z(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${iu(i)} twice; the first package is used.`);continue}let a=tu[z(r,`PayloadType`)??`P Type`]??`P`,o=parseInt(z(r,`EndWord`)??``,16),s=/^(true|1)$/i.test(z(e,`PlaceParametersContiguously`)??``),c=Yl(R(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??iu(i),s)).filter(e=>e!==null):[],f=V(z(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 L(`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 iu=e=>e.toString(16).toUpperCase().padStart(4,`0`),au=65536,ou=4096,su=64,cu=2e3,lu=1e5,uu=64<<20,du=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,fu=e=>e===1?`was`:`were`;function pu(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 mu=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}},hu=(e,t)=>e?.keys.get(t)??e?.any??null;function gu(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?hu(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 _u=e=>e?.kind??`P`,vu=e=>!!e&&e.kind===`P`&&e.fields.length>0,yu=e=>e.spread??e.at.length,bu=e=>yu(e)>1||e.dt!==void 0,xu=(e,t)=>(e?.source===`XidML`?t-2:t)*8;function Su(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 Cu(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>uu)throw new L(`it is larger than 64 MB`);let e=M(new Uint8Array(await a.arrayBuffer())),r=n(a)?ru(e):Tl(e,a.name);return t.push(...r.notes),r}catch(e){let n=e instanceof L?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 wu(e,t){let n=[],r={},i=await Cu(e.companions,n),a=le(await t.read(0,64));if(!a)throw Error(`This is not a pcap or pcapng capture.`);let o={dict:i,clock:new mu,stats:ge(),ports:new Map,damaged:0},s=new Map,c=[],l=[],u=1/0,d=0,f=e=>{let t=gu(e,o);if(!t)return;let{key:n,kd:r,abs:a,dv:f}=t,p=_u(r),m=s.get(n),h=vu(r),g=!h&&p!==`P`?pu(e.b,f,e.o,e.n,p,c):null;if(!h&&p!==`P`&&!g){o.damaged++;return}if(!m)s.set(n,m={packets:0,short:0,words:0,rows:[],ids:new Map,first:a,last:a,steps:0,seq:f.getUint16(e.o+12)});else{let t=f.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++,u=Math.min(u,a),h&&e.n<r.minBytes){m.short++;return}if(h){r.fields.forEach((t,n)=>{bu(t)&&(m.rows[n]=(m.rows[n]??0)+Su(t,e.n,xu(i,e.n),l).length/2)});return}if(p===`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>su&&d++,n.words=Math.max(n.words,Math.min(t,su)),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=be(t,f,o.stats);!(await e.next()).done;);let p=[],m=new Map,h=0,g=0,_=e=>p.length>=cu||h+e.channels.length>lu?(g++,-1):(h+=e.channels.length,p.push(e),p.length-1),v=[...s].sort((e,t)=>e[0]-t[0]),y=[],b=0;for(let[e,t]of v){let n=hu(i,e);i&&!n&&y.push(e);let a=_u(n),o=n?.name||`IENA 0x${iu(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};m.set(e,l),r[`Key 0x${iu(e)}`]=`${n?.name?`${n.name}: `:``}${n?i.source===`layout`?`layout`:`${a} type`:`raw words`}, ${du(t.packets,`packet`)}`;let u=(e,t,n,r)=>({name:e,channels:t,samples:n,time:{kind:`timestamps`},rateHz:r,irregular:!0});if(vu(n)){b+=t.short;let e=t.packets-t.short;if(!e)continue;let r=n.fields.filter(e=>!bu(e)),i=je(r.map(e=>e.name));r.length&&(l.main=_(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(!bu(e)||!t.rows[n])return;let r=yu(e),i=e.dt?1/e.dt:c&&c*r;l.fields.push({f:e,g:_(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=_(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${iu(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=_(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?_(u(`${o} 0x${iu(t)}`,n(t,i.words),i.total,null)):-1;l.ids.set(t,{g:e,c:0,words:i.words,own:!0})}}}if(!s.size)throw Error(`This capture has no IENA packets${o.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.`),y.length){let e=y.slice(0,10).map(e=>`0x${iu(e)}`).join(`, `);n.push(`Not in the ${i.source}: ${y.length===1?`key`:`keys`} ${e}${y.length>10?`, and ${y.length-10} more`:``}; read as raw 16-bit words.`)}let x=o.damaged,S=0;for(let[e,t]of o.ports.values())e?x+=t:S+=t;let C=o.stats;x&&n.push(`${du(x,`damaged IENA packet`)} ${fu(x)} skipped.`);let w=[S?`${du(S,`UDP datagram`)} that ${S===1?`isn't`:`aren't`} IENA`:``,C.other?`${du(C.other,`frame`)} that ${C.other===1?`isn't`:`aren't`} UDP`:``].filter(Boolean);w.length&&n.push(`Skipped: ${w.join(`, `)}.`),C.incomplete&&n.push(`${du(C.incomplete,`fragmented datagram`)} ${fu(C.incomplete)} incomplete and skipped.`),C.truncated&&n.push(`${du(C.truncated,`packet`)} captured shorter than sent (snap length) ${fu(C.truncated)} skipped.`),b&&n.push(`${du(b,`IENA packet`)} shorter than the layout ${fu(b)} skipped (as the collector does).`),d&&n.push(`${du(d,`message dataset`)} longer than ${su} words ${d===1?`is`:`are`} read to its first ${su} words.`),g&&n.push(`${du(g,`group`)} past ${cu.toLocaleString(`en-US`)} groups or ${lu.toLocaleString(`en-US`)} channels ${fu(g)} not read.`),C.cut&&n.push(`The capture ends in the middle of a packet.`),C.damagedAt!==null&&n.push(`The capture is damaged at byte ${C.damagedAt}; the rest of it was not read.`),je(p.map(e=>e.name),[]).forEach((e,t)=>{p[t].name=e});let T={keys:m,dict:i,t0:u};return{format:`IENA (${a})`,startTime:Number.isFinite(u)&&o.clock.dated?new Date(u/1e3).toISOString():null,groups:p,meta:r,events:[],notes:n,interleaved:!0,state:T}}var Tu={...Te,async plan(e,t){try{return await wu(e,t)}catch(e){throw u(e)}},async*stream(e){let t=e.plan.state,n=new Map,r=e=>{e.cap=Math.max(1,Math.min(au,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=Pe(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},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[s]=t,!0)),l=(e,t)=>{let n=o.slot[e];n>=0&&(o.cols[n][s]=t)},d={dict:t.dict,clock:new mu,stats:ge(),ports:new Map,damaged:0},f=[],p=[],m=0,h=e=>{if(++m%ou===0)for(let[e,t]of n)t.n&&a(e,t);let r=gu(e,d);if(!r)return;let i=t.keys.get(r.key);if(!i)return;let{b:u,o:h,n:g}=e,{dv:_}=r,v=(r.abs-t.t0)/1e6,y=xu(t.dict,g),b=h*8,x=e=>e+2<=h+g-2?_.getUint16(e):NaN;if(i.fields.length||vu(i.dict)){if(g<i.dict.minBytes)return;let e=i.main>=0&&c(i.main,v);for(let{f:t,g:n,c:r,occ:a}of i.fields){if(n===i.main){e&&l(r,t.at[0]+t.bits<=y?t.read(u,_,b+t.at[0]):NaN);continue}if(!(n<0)){Su(t,g,y,p);for(let e=0;e<p.length;e+=2){let r=p[e+1];if(!c(n,t.dt?v+r*t.dt:v+r*i.period/a/1e6))break;l(0,t.read(u,_,b+p[e]))}}}return}if(i.kind===`P`){if(i.main>=0&&c(i.main,v))for(let e=0;e<i.rawWords;e++)l(e,x(h+14+2*e));return}let S=pu(u,_,h,g,i.kind,f);if(!S)return;let C=i.main>=0&&c(i.main,v),w=o,T=s,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 u=Math.min(r,a.words);if(!a.own){if(!C)continue;o=w,s=T;for(let e=0;e<u;e++)l(a.c+e,x(n+2*e));continue}let d=v+t/1e6;if(E.has(e)){let t=D.get(e)??0;D.set(e,t+1),d=v+t*i.period/E.get(e)/1e6}if(c(a.g,d))for(let e=0;e<u;e++)l(e,x(n+2*e))}};try{for(let t=be(e.io,h,d.stats,e.signal);!(await t.next()).done;)yield*i,i.length=0}catch(e){throw u(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)})}},Eu=class extends Error{},Du=1e5,Ou=1e4,ku=2e6,Au=64,ju=[[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 Mu(e){let t=0;for(let[n,r]of ju)e>=n+r&&(t=r);return e-t}function Nu(e){switch(e){case`TAI`:return e=>Mu(-378691200+e);case`GPS`:return e=>Mu(315964819+e);case`J2000`:return e=>Mu(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 Pu={seconds:1,picoSeconds:1e-12,days:86400},Fu=new DataView(new ArrayBuffer(8));function Iu(e,t){return t?(t,n)=>{let r=0;for(let i=e/8-1;i>=0;i--)r=r*256+Zl(t,n+8*i,8);return r}:(t,n)=>Zl(t,n,e)}function Lu(e){let t=R(e,`ContextCalibratorList`)?`ContextCalibratorList`:``,n=R(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=Yl(r,`Term`).map(e=>[V(B(e,`coefficient`))??0,V(B(e,`exponent`))??0]);return{cal:t=>e.reduce((e,[n,r])=>e+n*t**r,0),why:t}}if(r.name===`SplineCalibrator`){let e=V(B(r,`order`))??1,n=/^(true|1)$/.test(B(r,`extrapolate`)??``),i=Yl(r,`SplinePoint`).map(e=>[V(B(e,`raw`)),V(B(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 Ru(e){let t=R(e,`SizeInBits`),n=V(z(R(t,`Fixed`),`FixedValue`)??z(t,`FixedValue`));return n!==null&&Number.isInteger(n)&&n>=0&&n<=65542*8?n:-1}function zu(e){let t=(e,t=-1)=>({bits:t,read:null,why:e,cal:null,calWhy:``});if(!e)return t(`no encoding`);if((B(e,`bitOrder`)??`mostSignificantBitFirst`)!==`mostSignificantBitFirst`)return t(`least significant bit first`);let n=B(e,`byteOrder`),r=R(e,`ByteOrderList`),i=n===`leastSignificantByteFirst`||r!==void 0&&B(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`,Ru(e));if(e.name===`BinaryDataEncoding`)return t(`binary data`,Ru(e));let a=V(B(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}=Lu(e),c=Iu(a,i),l=null,u=``;if(e.name===`IntegerDataEncoding`){let t=2**(a-1);switch(B(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=`${B(e,`encoding`)} integers`}}else if(e.name===`FloatDataEncoding`){let t=B(e,`encoding`)??`IEEE754_1985`;t!==`IEEE754_1985`&&t!==`IEEE754`?u=`${t} floats`:a===32?l=(e,t)=>(Fu.setUint32(0,c(e,t)),Fu.getFloat32(0)):a===64?l=i?(e,t)=>{for(let n=0;n<8;n++)Fu.setUint8(7-n,Zl(e,t+8*n,8));return Fu.getFloat64(0)}:(e,t)=>(Fu.setUint32(0,Zl(e,t,32)),Fu.setUint32(4,Zl(e,t+32,32)),Fu.getFloat64(0)):u=`${a}-bit floats`}else return t(e.name);return{bits:a,read:l,why:u,cal:o,calWhy:s}}var Bu=new Set([`IntegerDataEncoding`,`FloatDataEncoding`,`StringDataEncoding`,`BinaryDataEncoding`]),Vu=e=>e?.kids.find(e=>Bu.has(e.name)),Hu=e=>z(R(e,`UnitSet`),`Unit`)??``;function Uu(e){let t={unit:Hu(e),kind:`number`,labels:[],time:null};switch(e.name){case`IntegerParameterType`:case`FloatParameterType`:{let n=zu(Vu(e));return{...t,...n}}case`BooleanParameterType`:{let n=zu(Vu(e));return{...t,...n,cal:null,kind:`bool`,labels:[[B(e,`zeroStringValue`)??`False`,0],[B(e,`oneStringValue`)??`True`,1]]}}case`EnumeratedParameterType`:{let n=zu(Vu(e)),r=Yl(R(e,`EnumerationList`),`Enumeration`).flatMap(e=>{let t=V(B(e,`value`)),n=B(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=R(e,`Encoding`),r=zu(Vu(n)),i=Pu[(n&&B(n,`units`))??`seconds`],a=(V(n&&B(n,`scale`))??1)*(i??1),o=(V(n&&B(n,`offset`))??0)*(i??1),s=e=>e*a+o;if(!i)return{...t,...r,read:null,why:`time in ${B(n,`units`)}`};if(e.name===`RelativeTimeParameterType`)return{...t,...r,unit:`s`,cal:s};let c=R(e,`ReferenceTime`),l=z(c,`Epoch`),u=l?Nu(l):R(c,`OffsetFrom`)?null:Nu(`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,...zu(Vu(e)),read:null,why:`a string`};case`BinaryParameterType`:return{...t,...zu(Vu(e)),read:null,why:`binary data`};case`AggregateParameterType`:return{...t,...zu(void 0),why:`an aggregate`};case`ArrayParameterType`:return{...t,...zu(void 0),why:`an array`};default:return{...t,...zu(void 0),why:e.name}}}function Wu(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 Gu={ArrayParameterRefEntry:`an array entry`,IndirectParameterRefEntry:`an indirect parameter entry`,StreamSegmentEntry:`a stream segment entry`,ParameterSegmentRefEntry:`a parameter segment entry`,ContainerSegmentRefEntry:`a container segment entry`},Ku=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=R(Jl(e),`SpaceSystem`);if(!t)throw new Eu(`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}/${B(e,`name`)??``}`,f=R(e,`TelemetryMetaData`);for(let e of R(f,`ParameterTypeSet`)?.kids??[]){let t=B(e,`name`);t&&(n.set(`${d}/${t}`,[e,d]),r.has(t)||r.set(t,[e,d]))}for(let e of Yl(R(f,`ParameterSet`),`Parameter`)){let t=B(e,`name`);if(t){if(l.length>=Du)throw new Eu(`it defines more than ${Du.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 Yl(R(f,`ContainerSet`),`SequenceContainer`)){let t=B(e,`name`);if(t){if(c.length>=Ou)throw new Eu(`it defines more than ${Ou.toLocaleString(`en-US`)} containers`);o.set(`${d}/${t}`,c.length),s.has(t)||s.set(t,c.length),c.push([e,d])}}let p=Yl(e,`SpaceSystem`);for(let e=p.length-1;e>=0;e--)u.push([p[e],d])}if(!c.length)throw new Eu(`it has no SequenceContainers`);let d=new Map,f=new Map,p=new Map;for(let[e,t]of l){let i=B(e,`name`),a=B(e,`parameterTypeRef`),o=a?Wu(n,r,a,t):void 0,s=o&&p.get(o[0]);o&&!s&&p.set(o[0],s=Uu(o[0]));let c=s??{...Uu({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=B(t,`parameterTypeRef`),o=a?Wu(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=Wu(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=V(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=Yl(e,`ParameterInstanceRef`),i=z(e,`Value`);return r.length!==1||i===void 0?(d.set(n,`a condition against another parameter`),null):h(B(r[0],`parameterRef`)??``,(z(e,`ComparisonOperator`)??`==`).trim(),B(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`?Yl(r,`Comparison`):null;if(!i)return d.set(n,`a ${r?.name??`condition`}`),`unsupported`;let a=[];for(let e of i){let r=h(B(e,`parameterRef`)??``,B(e,`comparisonOperator`)??`==`,B(e,`useCalibratedValue`),B(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=B(e,`name`),r=R(e,`BaseContainer`),c=-1,l=!1,u=null;if(r){let e=Wu(o,s,B(r,`containerRef`)??``,t);e===void 0?(d.set(`container ${n}`,`its base container is not defined`),l=!0):c=e;let i=_(R(r,`RestrictionCriteria`),t,`container ${n}`);i===`unsupported`?l=!0:u=i}let p=[];for(let r of R(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(Gu[r.name]){e(`${n} entry`,Gu[r.name]);continue}if(r.name!==`ParameterRefEntry`&&r.name!==`ContainerRefEntry`)continue;let c=B(r,r.name===`ParameterRefEntry`?`parameterRef`:`containerRef`)??``;if(R(r,`RepeatEntry`)){e(c,`a RepeatEntry`);continue}let l=R(r,`LocationInContainerInBits`),u=-1,h=0;if(l){let t=V(z(l,`FixedValue`)),n=B(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=_(R(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=Wu(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=Wu(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(B(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 Eu(`its containers inherit from each other in a loop`);if(++n>Au)throw new Eu(`its containers inherit through more than ${Au} 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 Eu(`its containers refer to each other in a loop`);if(t>Au)throw new Eu(`its containers nest more than ${Au} 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>ku)throw new Eu(`its containers nest more than ${ku.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))}},qu=65536,Ju=4096,Yu=2e3,Xu=1e5,Zu=50<<20,Qu=256,$u=4e6,ed=(e,t,n=`${t}s`)=>`${e.toLocaleString(`en-US`)} ${e===1?t:n}`,td=e=>e===1?`was`:`were`,nd=e=>`0x${e.toString(16).toUpperCase().padStart(3,`0`)}`,rd=(e,t=10)=>`${e.slice(0,t).join(`, `)}${e.length>t?`, and ${e.length-t} more`:``}`;async function*id(t,n,r,i,a,o){let s=new ne(r,i),c=new Uint8Array,l={on:!1},u=n&&new C(n,s,a),d=n?new Uint8Array(n.frame):null,f=!0;for await(let r of t.windows(0,t.size)){o?.throwIfAborted();let p=r.offset+r.bytes.length>=t.size,m=r.bytes;c.length&&(m=new Uint8Array(c.length+r.bytes.length),m.set(c),m.set(r.bytes,c.length));let h=0;if(!n)h=ie(m,s,i,p,l);else{f&&(h=n.start,a.outOfSync+=h);let t=4+n.frame;for(;p?h+t<=m.length:h+Math.max(t,n.cadu)<=m.length;){if(!se(m,h)){if(we(m,h)){a.badSync++,h+=n.cadu;continue}let e=fe(m,h+1),t=e>=0?e:p?m.length:Math.max(h,m.length-3);if(a.outOfSync+=t-h,h=t,e<0)break;continue}let r=m.subarray(h+4,h+t);if(n.randomized){d.set(r);for(let t=0;t<r.length;t++)d[t]^=e[t%255];r=d}u.frame(r),h+=n.cadu}p&&h<m.length&&(m.length-h>4&&(i.cut=!0),h=m.length)}f=!1,c=m.slice(h),yield}}async function ad(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>Zu)throw new Eu(`it is larger than 50 MB`);let e=new Ku(M(new Uint8Array(await r.arrayBuffer())));return t.push(...e.notes),e}catch(e){let n=e instanceof Eu?e.message:e instanceof L?`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 od=(e,t,n,r)=>{let i=e?e.decode(t,n,r):-1;return i>=0&&e.chans[i].length?i:-1};async function sd(e,t){let n=[],r={},i=ve(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 ad(e.companions,n),o=Ce(),s=Se(),c=new Map,l=new Map,u=1/0,d=0,f=0,p=0,m=(e,t,n)=>{d++;let r=od(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=ye(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=id(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>=Yu||g+e.channels.length>Xu?(_++,-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=je(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 ${nd(e)}`,r=Math.min(t.width,Qu);t.width>Qu&&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 C=x.map(([e])=>nd(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&&C.length&&n.push(`Not in the XTCE: ${C.length===1?`APID`:`APIDs`} ${rd(C)}; read as raw bytes of the data field, numbered (no time).`);for(let e of S)n.push(`${e}: only the first ${Qu} bytes of its data field are read.`);f&&n.push(`${ed(f,`packet`)} shorter than ${f===1?`its`:`their`} XTCE container: the values past ${f===1?`its`:`their`} end are empty.`),p&&n.push(`${ed(p,`packet`)} with no usable time ${td(p)} skipped.`),s.badFecf&&n.push(`${ed(s.badFecf,`frame`)} failed ${s.badFecf===1?`its`:`their`} FECF check and ${td(s.badFecf)} skipped.`);let w=[...s.gaps].sort((e,t)=>e[0]-t[0]);if(w.length){let e=w.reduce((e,[,[t]])=>e+t,0);n.push(`${ed(e,`frame-count gap`)} (${w.map(([e,[,t]])=>`VC ${e}, ${ed(t,`frame`)} missing`).join(`; `)}).`)}s.damaged&&n.push(`${ed(s.damaged,`frame`)} of another spacecraft or version, or with a damaged data field, ${td(s.damaged)} skipped.`),s.notPackets&&n.push(`${ed(s.notPackets,`frame`)} carrying VCA data rather than packets ${td(s.notPackets)} skipped.`),s.idleFrames&&n.push(`${ed(s.idleFrames,`idle frame`)} ${td(s.idleFrames)} skipped.`),o.idle&&n.push(`${ed(o.idle,`idle packet`)} ${td(o.idle)} skipped.`),s.partial&&n.push(`${ed(s.partial,`partial packet`)} ${td(s.partial)} dropped (frame-count gaps, frames skipped).`),o.segments&&n.push(`${ed(o.segments,`packet segment`)} out of order ${td(o.segments)} dropped.`),o.skipped&&n.push(`${ed(o.skipped,`byte`)} that hold${o.skipped===1?`s`:``} no packet ${td(o.skipped)} skipped.`),s.outOfSync&&n.push(`${ed(s.outOfSync,`byte`)} out of sync (no ASM where a frame should start) ${td(s.outOfSync)} skipped.`),s.badSync&&n.push(`${ed(s.badSync,`frame`)} with a damaged sync marker (ASM) ${td(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(`${ed(_,`group`)} past ${Yu.toLocaleString(`en-US`)} groups or ${Xu.toLocaleString(`en-US`)} channels ${td(_)} 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),je(h.map(e=>e.name),[]).forEach((e,t)=>{h[t].name=e});let T={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:T}}var cd={...ee,async plan(e,t){try{return await sd(e,t)}catch(e){throw u(e)}},async*stream(e){let t=e.plan.state,n=new Map,r=e=>{e.cap=Math.max(1,Math.min(qu,e.total-e.start,Math.floor($u/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=Pe(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,d=0,f=(e,r,i)=>{if(++d%Ju===0)for(let[e,t]of n)t.n&&a(e,t);let u=od(l,e,r,i);if(u>=0){let e=0;if(l.timeParam[u]>=0){if(e=l.time(u),!Number.isFinite(e))return;e-=t.t0}let n=t.leafGroup[u];if(n<0||!c(n,e))return;let r=l.chans[u],{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(ye(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=id(e.io,t.shape,f,Ce(),Se(),e.signal);!(await n.next()).done;)yield*i,i.length=0}catch(e){throw u(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)})}},ld=`This MiniSEED file's compressed data is damaged.`;function ud(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(ld);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(ld);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(ld)}}if(l<n)throw Error(ld);i[0]=s;for(let e=1;e<n;e++)i[e]=i[e-1]+i[e];if(i[n-1]!==c)throw Error(ld);return i}var dd={1:2,3:4,4:4,5:8},fd=10,pd=11,md={1:1/2,3:1/4,4:1/4,5:1/8,10:1,11:7/4},hd=1e4,gd=65536,_d=(e,t,n,r,i)=>Date.UTC(e,0,1,n,r,i)+(t-1)*864e5;function vd(e,t){return e===0||t===0?0:e>0?t>0?e*t:-e/t:t>0?-t/e:1/(e*t)}function yd(e){let t=/^FDSN:([^_]*)_([^_]*)_([^_]*)_(.*)$/.exec(e);return t?`${t[1]}.${t[2]}.${t[3]}.${t[4].replace(/_/g,``)}`:e}function bd(e,t){let n=_(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=_d(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:yd(l(e.subarray(40,40+r)))},length:o}}async function xd(e,t,n){let r=!A(t,20,!1),i=_(t),a=(e,n)=>l(t.subarray(e,n)).trim(),o=`${a(18,20)}.${a(8,13)}.${a(13,15)}.${a(15,18)}`,s=vd(i.getInt16(32,r),i.getInt16(34,r)),c=_d(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&&h(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*Sd(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(gd,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(gd,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):Cd(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 Cd(e,t){if(e.enc===fd||e.enc===pd)return ud(t,e.enc===fd?1:2,e.n,e.steimLe);let n=_(t),r=new Float64Array(e.n),i=dd[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 wd={...xe,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=j(i);if(!c&&!h(i)){r.push(`The last ${t.size-e} bytes of the file are not MiniSEED records and were not read.`);break}let l=c?bd(i,e):await xd(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 md)){a(`in encoding ${u.enc}, which Kymoscope cannot read`);continue}if(u.n>u.dataLen*md[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===fd||u.enc===pd){let n=u.data-(e-l.length);try{Cd(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)>=hd||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)=>Sd(e,t),async*stream(e){for(let t of e.selection)yield*Sd(e,t.group)}},Td={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]},Ed=11,Dd=8,Od=65535,kd=65536,Ad=65536,jd=1e5,Md=[`EMERGENCY`,`ALERT`,`CRITICAL`,`ERROR`,`WARNING`,`NOTICE`,`INFO`,`DEBUG`];function Nd(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<=Od))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 Pd(e,t){let n=new Map,r=(t,i)=>{if(Td[t])return Td[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>Dd)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))>Od)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>Dd)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=Td[u.type];if(l===0&&u.name===`timestamp`&&u.type===`uint64_t`&&u.n===0)a=c;else if(d?.[1]===Ed)i.push({name:n+u.name,code:Ed,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*Fd(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=_(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 Id(e,n,r){switch(r){case 0:return e.getInt8(n);case 1:return e.getUint8(n);case 2:return e.getInt16(n,!0);case 3:return e.getUint16(n,!0);case 4:return e.getInt32(n,!0);case 5:return e.getUint32(n,!0);case 6:return b(e,n);case 7:return t(e,n);case 8:return e.getFloat32(n,!0);case 9:return e.getFloat64(n,!0);default:return+!!e.getUint8(n)}}function Ld(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 Rd(e,t,n,r,i){if(e.startsWith(`char[`))return s(t.subarray(r,i));let a=Td[e];if(!a||a[1]===Ed||r+a[0]>i)return null;let o=Id(n,r,a[1]);return a[1]===8?Ld(o):String(o)}function zd(e,t,n){let r=e[t];if(t+1+r>n)return null;let[i,a]=M(e.subarray(t+1,t+1+r)).split(` `);return a?[i,a,t+1+r]:null}var Bd=(e,t)=>`[${Md[e>=48?e-48:e]??`UNKNOWN`}] ${t}`,Vd={...f,async plan(e,n){let r=await n.read(0,59);if(r.length<16||!me(r,`ULog5`))throw Error(`This is not a ULog file.`);let i=_(r),a=[],o=n.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 n=t(i,35);e[0]&1&&n>16&&n<o&&(o=n,a.push(`This file has data appended after logging ended; only the data before it was read.`))}let c=new Map,l=new Map,u=new Set,d=[],f=new Map,p=[],m=0,h=0,g=0,v=0,y={},b=[],x=1/0,S=0,C=0,w=0,T=(e,n,r,i,o)=>{let _=i+o;switch(e){case 70:try{let[e,t]=Nd(M(n.subarray(i,_)));c.set(e,t),f.clear()}catch{a.push(`A message format in the file could not be read; skipped.`)}break;case 73:case 80:{let t=zd(n,i,_);if(!t)break;let a=`${e===73?`info`:`param`}.${t[1]}`,o=Rd(t[0],n,r,t[2],_);o!==null&&(e===73||!(a in y))&&(y[a]=o);break}case 77:{if(o<2)break;let e=zd(n,i+1,_);if(!e||!e[0].startsWith(`char[`))break;let t=`info.${e[1]}`,r=s(n.subarray(e[2],_));y[t]=t in y?y[t]+(n[i]?``:`
|
|
38
|
+
`)+r:r;break}case 65:{if(o<3)break;let e=n[i],t=r.getUint16(i+1,!0),s=M(n.subarray(i+3,_)),p=m++;l.delete(t),u.delete(t);let v=f.get(s);if(!v){try{v=Pd(c,s)}catch(e){v=e}f.set(s,v)}if(v instanceof Error){a.push(`${s}: ${v.message}; skipped.`);break}if(h+v.leaves.length>jd){g++,u.add(t);break}h+=v.leaves.length;let y={ord:p,name:e>0?`${s}_${e}`:s,count:0,...v};l.set(t,y),d.push(y);break}case 82:o>=2&&(l.delete(r.getUint16(i,!0)),u.delete(r.getUint16(i,!0)));break;case 68:{let e=o>=2?l.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 n=t(r,i+2+e.tsOff);x=Math.min(x,n),v=Math.max(v,n);break}case 76:o>=9&&b.push({ts:t(r,i+1),text:Bd(n[i],M(n.subarray(i+9,_)))});break;case 67:o>=11&&b.push({ts:t(r,i+3),text:Bd(n[i],M(n.subarray(i+11,_)))});break;case 79:if(o>=2){C++,w+=r.getUint16(i,!0),p.push(v);for(let e of l.values())e.count&&e.count++}break}},E={cut:!1};for(let e=Fd(n,o,T,E);!(await e.next()).done;);E.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.`),g&&a.push(`${g} subscription${g===1?` was`:`s were`} skipped: the file has more than ${jd.toLocaleString(`en-US`)} channels.`),C&&a.push(`${C} dropout${C===1?``:`s`} while logging (${w} ms in total).`),Number.isFinite(x)||(x=t(i,8));let D=d.filter(e=>e.count>0),O=je(D.map(e=>e.name),[]),k=D.map((e,t)=>({name:O[t],channels:e.leaves.map(e=>({name:e.name,unit:``,...e.code===Ed?{text:!0}:{}})),samples:e.count,time:{kind:`timestamps`},rateHz:null,irregular:!0})),A=b.map(e=>({time:(e.ts-x)/1e6,text:e.text}));return{format:`ULog v${r[7]}`,startTime:null,groups:k,meta:y,events:A,notes:a,interleaved:!0,state:{subs:D,t0:x,end:o,drops:p}}},async*stream(e){let n=e.plan.state,r=new Map,i=e=>{e.cap=Math.max(1,Math.min(kd,e.sub.count-e.start)),e.time=new Float64Array(e.cap),e.cols=e.leaves.map(t=>t.code===Ed?Array(e.cap):new Float64Array(e.cap))};for(let t of e.selection){let a=n.subs[t.group],o={g:t.group,sub:a,leaves:Pe(e,t.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,c=0,l=0,u=[],d=e=>{let t=e.n===e.cap;u.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)},f=(e,i,u,f,p)=>{if(++l%Ad===0)for(let e of r.values())e.n&&d(e);if(e===65){p>=3&&a.set(u.getUint16(f+1,!0),o++);return}if(e===82){p>=2&&a.delete(u.getUint16(f,!0));return}if(e===79){if(p<2)return;let e=(n.drops[c++]-n.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===Ed?n.cols[e][n.n]=null:n.cols[e][n.n]=NaN;++n.n===n.cap&&d(n)}}return}if(e!==68||p<2)return;let m=a.get(u.getUint16(f,!0)),h=m===void 0?void 0:r.get(m);if(!h||p-2<h.sub.minSize)return;let g=f+2;h.time[h.n]=(t(u,g+h.sub.tsOff)-n.t0)/1e6;for(let e=0;e<h.leaves.length;e++){let t=h.leaves[e];t.code===Ed?h.cols[e][h.n]=s(i.subarray(g+t.off,g+t.off+t.n)):h.cols[e][h.n]=Id(u,g+t.off,t.code)}++h.n===h.cap&&d(h)};for(let t=Fd(e.io,n.end,f,{cut:!1},e.signal);!(await t.next()).done;)yield*u,u.length=0;for(let e of r.values())e.n&&d(e);yield*u},streamGroup(e,t){return this.stream({...e,selection:e.selection.filter(e=>e.group===t)})}};function Hd({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 Ud=Hd({polynomial:3988292384,numTables:8});function Wd(){return-1}function Gd(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=Ud[(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=Ud[0+(e>>>24&255)]^Ud[1*256+(e>>>16&255)]^Ud[2*256+(e>>>8&255)]^Ud[3*256+(e>>>0&255)]^Ud[4*256+(i>>>24&255)]^Ud[5*256+(i>>>16&255)]^Ud[6*256+(i>>>8&255)]^Ud[7*256+(i>>>0&255)]}for(let e=a;e<n;e++)i=Ud[(i^r.getUint8(e))&255]^i>>>8;return i}function Kd(e){return(e^-1)>>>0}function qd(e){return Kd(Gd(Wd(),e))}var H=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())})},U=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}}},Jd=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},Yd=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))},Xd=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 H(this,void 0,void 0,function(){return U(this,function(n){return e>t?[2,1]:e<t?[2,-1]:[2,0]})})},e.maxComparator=function(e,t){return H(this,void 0,void 0,function(){return U(this,function(n){return t>e?[2,1]:t<e?[2,-1]:[2,0]})})},e.minComparatorNumber=function(e,t){return H(this,void 0,void 0,function(){return U(this,function(n){return[2,e-t]})})},e.maxComparatorNumber=function(e,t){return H(this,void 0,void 0,function(){return U(this,function(n){return[2,t-e]})})},e.defaultIsEqual=function(e,t){return H(this,void 0,void 0,function(){return U(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 H(this,void 0,void 0,function(){var r;return U(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 H(this,void 0,void 0,function(){var i;return U(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 H(this,void 0,void 0,function(){var i;return U(this,function(a){switch(a.label){case 0:return i=new e(r),i.heapArray=Yd([],Jd(n),!1),[4,i.init()];case 1:return a.sent(),[2,i.top(t)]}})})},e.nsmallest=function(t,n,r){return H(this,void 0,void 0,function(){var i;return U(this,function(a){switch(a.label){case 0:return i=new e(r),i.heapArray=Yd([],Jd(n),!1),[4,i.init()];case 1:return a.sent(),[2,i.bottom(t)]}})})},e.prototype.add=function(e){return H(this,void 0,void 0,function(){return U(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 H(this,void 0,void 0,function(){var t,n,r;return U(this,function(i){switch(i.label){case 0:t=this.length,(r=this.heapArray).push.apply(r,Yd([],Jd(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 H(this,arguments,void 0,function(e){return e===void 0&&(e=1),U(this,function(t){return this.heapArray.length===0||e<=0?[2,[]]:this.heapArray.length===1?[2,[this.heapArray[0]]]:e>=this.heapArray.length?[2,Yd([],Jd(this.heapArray),!1)]:[2,this._bottomN_push(~~e)]})})},e.prototype.check=function(){return H(this,void 0,void 0,function(){var e,t,n,r,i,a,o,s,c;return U(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,Xd(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 H(this,arguments,void 0,function(t,n){var r,i,a,o,s,c;return n===void 0&&(n=e.defaultIsEqual),U(this,function(e){switch(e.label){case 0:e.trys.push([0,5,6,7]),r=Xd(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 H(this,void 0,void 0,function(){var n;return U(this,function(r){switch(r.label){case 0:t&&(this.heapArray=Yd([],Jd(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 H(this,void 0,void 0,function(){var e;return U(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 H(this,void 0,void 0,function(){return U(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 H(this,void 0,void 0,function(){var t;return U(this,function(n){switch(n.label){case 0:return[4,this.compare(this.heapArray[0],e)];case 1:return n.sent()<0?(t=Jd([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 H(this,arguments,void 0,function(t,n){var r,i,a,o=this;return n===void 0&&(n=e.defaultIsEqual),U(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,Yd([],Jd(a),!1)),s.label=12;case 12:return[3,3];case 13:return[2,!1]}})})},e.prototype.replace=function(e){return H(this,void 0,void 0,function(){var t;return U(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 H(this,arguments,void 0,function(e){return e===void 0&&(e=1),U(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,Yd([],Jd(this.heapArray),!1)]:[2,this._topN_push(~~e)]})})},e.prototype.toArray=function(){return Yd([],Jd(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 U(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 H(this,void 0,void 0,function(){var n,r,i,a,o,s,o;return U(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 H(this,void 0,void 0,function(){var t,n,r,i,a,o,s;return U(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 H(this,void 0,void 0,function(){var n,r,i;return U(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 H(this,void 0,void 0,function(){var n,r,i,a;return U(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,Yd([],Jd(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,Yd([],Jd(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 H(this,void 0,void 0,function(){var n,r,i,a,o,o;return U(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,Yd([],Jd(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,Yd([],Jd(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 H(this,void 0,void 0,function(){var t,n,r,i,a;return U(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 H(this,void 0,void 0,function(){var t,n,r,i;return U(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 H(this,void 0,void 0,function(){var n;return U(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 Zd=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},$d=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))},ef=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=$d([],Qd(n),!1),i.init(),i.top(t)},e.nsmallest=function(t,n,r){var i=new e(r);return i.heapArray=$d([],Qd(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,$d([],Qd(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?$d([],Qd(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=$d([],Qd(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,$d([],Qd(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,$d([],Qd(e.getChildrenIndexOf(a)),!1))):this.compare(o,t)<=0&&r.push.apply(r,$d([],Qd(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=Qd([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,$d([],Qd(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?$d([],Qd(this.heapArray),!1):this._topN_push(~~e)},e.prototype.toArray=function(){return $d([],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 Zd(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,$d([],Qd(e.getChildrenIndexOf(a)),!1))):this.compare(i[a],n.peek())<0&&(n.replace(i[a]),r.push.apply(r,$d([],Qd(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,$d([],Qd(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,$d([],Qd(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}(),tf=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}},nf=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)},rf=new TextDecoder,af=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=nf.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 rf.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}},of=Object.freeze([137,77,67,65,80,48,13,10]),sf;(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`})(sf||={});function cf(e){if(e.bytesRemaining()<of.length)return;let t=e.u8ArrayBorrow(of.length);if(!of.every((e,n)=>e===t[n]))throw Error(`Expected MCAP magic '${of.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 lf(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 sf.HEADER:o=df(e,a);break;case sf.FOOTER:o=ff(e,a);break;case sf.SCHEMA:o=pf(e,a);break;case sf.CHANNEL:o=mf(e,a);break;case sf.MESSAGE:o=hf(e,a);break;case sf.CHUNK:o=gf(e,a);break;case sf.MESSAGE_INDEX:o=_f(e,a);break;case sf.CHUNK_INDEX:o=vf(e,a);break;case sf.ATTACHMENT:o=yf(e,a,t);break;case sf.ATTACHMENT_INDEX:o=bf(e,a);break;case sf.STATISTICS:o=xf(e,a);break;case sf.METADATA:o=Sf(e,a);break;case sf.METADATA_INDEX:o=Cf(e,a);break;case sf.SUMMARY_OFFSET:o=wf(e,a);break;case sf.DATA_END:o=Tf(e,a);break;default:o=uf(e,a,r);break}return e.offset=n+9+a,o}function uf(e,t,n){return{type:`Unknown`,opcode:n,data:e.u8ArrayBorrow(t)}}function df(e,t){let n=e.offset,r=e.string(),i=e.string();return e.offset=n+t,{type:`Header`,profile:r,library:i}}function ff(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 pf(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 mf(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 hf(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 gf(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 _f(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 vf(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 yf(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=qd(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 bf(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 xf(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 Sf(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 Cf(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 wf(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 Tf(e,t){let n=e.offset,r=e.uint32();return e.offset=n+t,{type:`DataEnd`,dataSectionCrc:r}}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}function Df(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 Of=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 af(new DataView(s.buffer,s.byteOffset,s.byteLength)),l=[],u;for(;u=lf(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=Ef(this.#a,p,h)),m!=null&&(_=Df(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}},kf=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 tf(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(of.length+1+8),i),n=new DataView(e.buffer,e.byteOffset,e.byteLength);cf(new af(n));let r=9n+n.getBigUint64(of.length+1,!0),a=await t.read(BigInt(of.length),r,i);s=BigInt(of.length)+r;let c=new af(new DataView(a.buffer,a.byteOffset,a.byteLength)),l=lf(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(of.length+1+8+4+4),n=BigInt(29+of.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{cf(new af(u,u.byteLength-of.length))}catch(e){throw c(e.message)}let d;{let e=new af(u),t=lf(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()!==of.length)throw c(`${e.bytesRemaining()-of.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=Wd();if(e=Gd(e,h.subarray(Number(p))),e=Gd(e,f),e=Kd(e),e!==d.summaryCrc)throw c(`Incorrect summary CRC ${e} (expected ${d.summaryCrc})`)}let g=new af(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=lf(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}=Af(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 ef((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 Of({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 af(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=lf(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=lf(new af(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}=Af(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=lf(new af(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=lf(new af(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=qd(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 Af(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 jf=class{#e=new ArrayBuffer(of.length*2);#t=new DataView(this.#e,0,0);#n=new af(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&&!Mf(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=cf(this.#n),!e;)yield}let e;function t(t){return Error(`${t} ${e?`[library=${e.library}]`:`[no header]`}`)}for(;;){let n;for(;n=lf(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=qd(e);if(r!==n.uncompressedCrc)throw t(`Incorrect chunk CRC ${r} (expected ${n.uncompressedCrc})`)}let r=new af(new DataView(e.buffer,e.byteOffset,e.byteLength)),i;for(;i=lf(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=cf(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 Mf(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 Nf=ArrayBuffer,W=Uint8Array,Pf=Uint16Array,Ff=Int16Array,If=Int32Array,Lf=function(e,t,n){if(W.prototype.slice)return W.prototype.slice.call(e,t,n);(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new W(n-t);return r.set(e.subarray(t,n)),r},Rf=function(e,t,n,r){if(W.prototype.fill)return W.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},zf=function(e,t,n,r){if(W.prototype.copyWithin)return W.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++]},Bf=[`invalid zstd data`,`window size too large (>2046MB)`,`invalid block type`,`FSE accuracy too high`,`match distance too far back`,`unexpected EOF`],G=function(e,t,n){var r=Error(t||Bf[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,G),!n)throw r;return r},Vf=function(e,t,n){for(var r=0,i=0;r<n;++r)i|=e[t++]<<(r<<3);return i},Hf=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Uf=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&&G(0);var c=6-i,l=o==3?4:o,u=Vf(e,c,l);c+=l;var d=s?1<<s:i,f=Vf(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&&G(1);var h=new W((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 If(h.buffer,0,3),u:f,c:a,m:Math.min(131072,p)}}else if((n>>4|e[3]<<20)==25481893)return Hf(e,4)+8;G(0)},Wf=function(e){for(var t=0;1<<t<=e;++t);return t-1},Gf=function(e,t,n){var r=(t<<3)+4,i=(e[t]&15)+5;i>n&&G(3);for(var a=1<<i,o=a,s=-1,c=-1,l=-1,u=a,d=new Nf(512+(a<<2)),f=new Ff(d,0,256),p=new Pf(d,0,256),m=new Pf(d,512,a),h=512+(a<<1),g=new W(d,h,a),_=new W(d,h+a);s<255&&o>0;){var v=Wf(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)&&G(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&&G(0),l=0;l<a;++l){var j=p[g[l]]++;m[l]=(j<<(_[l]=i-Wf(j)))-a}return[r+7>>3,{b:i,s:g,n:_,t:m}]},Kf=function(e,t){var n=0,r=-1,i=new W(292),a=e[t],o=i.subarray(0,256),s=i.subarray(256,268),c=new Pf(i.buffer,268);if(a<128){var l=Gf(e,t+1,6),u=l[0],d=l[1];t+=a;var f=u<<3,p=e[t];p||G(0);for(var m=0,h=0,g=d.b,_=g,v=(++t<<3)-8+Wf(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&&G(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&&G(0),x+=S&&1<<S-1}var C=Wf(x)+1,w=1<<C,T=w-x;for(T&T-1&&G(0),o[r++]=Wf(T)+1,n=0;n<r;++n){var S=o[n];++s[o[n]=S&&C+1-S]}var E=new W(w<<1),D=E.subarray(0,w),O=E.subarray(w);for(c[C]=0,n=C;n>0;--n){var k=c[n];Rf(O,n,k,c[n-1]=k+s[n]*(1<<C-n))}for(c[0]!=w&&G(0),n=0;n<r;++n){var A=o[n];if(A){var j=c[A];Rf(D,n,j,c[A]=j+(1<<C-A))}}return[t,{n:O,b:C,s:D}]},qf=Gf(new W([81,16,99,140,49,198,24,99,12,33,196,24,99,102,102,134,70,146,4]),0,6)[1],Jf=Gf(new W([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],Yf=Gf(new W([32,132,16,66,102,70,68,68,68,68,36,73,2]),0,5)[1],Xf=function(e,t){for(var n=e.length,r=new If(n),i=0;i<n;++i)r[i]=t,t+=1<<e[i];return r},Zf=new W(new If([0,0,0,0,16843009,50528770,134678020,202050057,269422093]).buffer,0,36),Qf=Xf(Zf,0),$f=new W(new If([0,0,0,0,0,0,0,0,16843009,50528770,117769220,185207048,252579084,16]).buffer,0,53),ep=Xf($f,3),tp=function(e,t,n){var r=e.length,i=t.length,a=e[r-1],o=(1<<n.b)-1,s=-n.b;a||G(0);for(var c=0,l=n.b,u=(r<<3)-8+Wf(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)&&G(0)},np=function(e,t,n){var r=6,i=t.length+3>>2,a=i<<1,o=i+a;tp(e.subarray(r,r+=e[0]|e[1]<<8),t.subarray(0,i),n),tp(e.subarray(r,r+=e[2]|e[3]<<8),t.subarray(i,a),n),tp(e.subarray(r,r+=e[4]|e[5]<<8),t.subarray(a,o),n),tp(e.subarray(r),t.subarray(o),n)},rp=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?(Rf(n,e[i],t.y,t.y+=s),n):Rf(new W(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):Lf(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 W(t.m),g=h.length-f;if(u==0)h.set(e.subarray(i,i+=f),g);else if(u==1)Rf(h,e[i++],g);else{var _=t.h;if(u==2){var v=Kf(e,i);p+=i-(i=v[0]),t.h=_=v[1]}else _||G(0);(m?np:tp)(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&&G(0);for(var x=[Jf,Yf,qf],S=2;S>-1;--S){var C=b>>(S<<1)+2&3;if(C==1){var w=new W([0,0,e[i++]]);x[S]={s:w.subarray(2,3),n:w.subarray(0,1),t:new Pf(w.buffer,0,1),b:0}}else C==2?(r=Gf(e,i,9-(S&1)),i=r[0],x[S]=r[1]):C==3&&(t.t||G(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||G(0);var A=(c<<3)-8+Wf(k)-O.b,j=A>>3,ee=0,te=(e[j]|e[j+1]<<8)>>(A&7)&(1<<O.b)-1;j=(A-=D.b)>>3;var ne=(e[j]|e[j+1]<<8)>>(A&7)&(1<<D.b)-1;j=(A-=E.b)>>3;var re=(e[j]|e[j+1]<<8)>>(A&7)&(1<<E.b)-1;for(++y;--y;){var ie=O.s[te],ae=O.n[te],oe=E.s[re],se=E.n[re],ce=D.s[ne],le=D.n[ne];j=(A-=ce)>>3;var ue=1<<ce,de=ue+((e[j]|e[j+1]<<8|e[j+2]<<16|e[j+3]<<24)>>>(A&7)&ue-1);j=(A-=$f[oe])>>3;var fe=ep[oe]+((e[j]|e[j+1]<<8|e[j+2]<<16)>>(A&7)&(1<<$f[oe])-1);j=(A-=Zf[ie])>>3;var M=Qf[ie]+((e[j]|e[j+1]<<8|e[j+2]<<16)>>(A&7)&(1<<Zf[ie])-1);if(j=(A-=ae)>>3,te=O.t[te]+((e[j]|e[j+1]<<8)>>(A&7)&(1<<ae)-1),j=(A-=se)>>3,re=E.t[re]+((e[j]|e[j+1]<<8)>>(A&7)&(1<<se)-1),j=(A-=le)>>3,ne=D.t[ne]+((e[j]|e[j+1]<<8)>>(A&7)&(1<<le)-1),de>3)t.o[2]=t.o[1],t.o[1]=t.o[0],t.o[0]=de-=3;else{var pe=de-(M!=0);pe?(de=pe==3?t.o[0]-1:t.o[pe],pe>1&&(t.o[2]=t.o[1]),t.o[1]=t.o[0],t.o[0]=de):de=t.o[0]}for(var S=0;S<M;++S)h[ee+S]=h[g+S];ee+=M,g+=M;var me=ee-de;if(me<0){var he=-me,ge=t.e+me;he>fe&&(he=fe);for(var S=0;S<he;++S)h[ee+S]=t.w[ge+S];ee+=he,fe-=he,me=0}for(var S=0;S<fe;++S)h[ee+S]=h[me+S];ee+=fe}if(ee!=g)for(;g<h.length;)h[ee++]=h[g++];else ee=h.length;n?t.y+=ee:h=Lf(h,0,ee)}else if(n){if(t.y+=f,g)for(var S=0;S<f;++S)h[S]=h[g+S]}else g&&(h=Lf(h,g));return t.b=c,h}G(2)}},ip=function(e,t){if(e.length==1)return e[0];for(var n=new W(t),r=0,i=0;r<e.length;++r){var a=e[r];n.set(a,i),i+=a.length}return n};function ap(e,t){for(var n=[],r=+!t,i=0,a=0;e.length;){var o=Uf(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=rp(e,o,t);s||G(5),t?o.e=o.y:(n.push(s),a+=s.length,zf(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 ip(n,a)}var op=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)})()})),sp=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={}))})),cp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getEncapsulationKindInfo=void 0;var t=sp();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}}})),lp=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}})),up=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}})),dp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SENTINEL_PID=e.EXTENDED_PID=void 0,e.EXTENDED_PID=16129,e.SENTINEL_PID=16130})),fp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CdrReader=void 0;var t=cp(),n=lp(),r=up(),i=dp(),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}}})),pp=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}}})),mp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CdrWriter=void 0;var t=sp(),n=cp(),r=lp(),i=up(),a=dp(),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})),hp=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(fp(),e),n(pp(),e),n(mp(),e),n(sp(),e)})),gp=Ee((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.messageDefinitionHasDataFields=t;function t(e){return e.some(e=>e.isConstant!==!0)}})),_p=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=hp(),d=gp();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`)}})),vp=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}})),yp=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=hp(),p=gp(),m=vp(),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`,ee],[`time`,te],[`duration`,te],[`wstring`,v]]),_=new Map([[`bool`,ne],[`int8`,re],[`uint8`,ie],[`int16`,ae],[`uint16`,oe],[`int32`,se],[`uint32`,ce],[`int64`,le],[`uint64`,ue],[`float32`,de],[`float64`,fe],[`string`,M],[`time`,pe],[`duration`,pe],[`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+=me(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+=me(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+=me(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+=me(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+=me(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 ee(e,t,n){n.string(typeof e==`string`?e:t??``)}function te(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 ne(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 re(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 ie(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 ae(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 oe(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 se(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 ce(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 le(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 ue(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 de(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 fe(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 M(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 pe(e,t,n,r){if(Array.isArray(e))for(let t of e)te(t,void 0,n);else{let e=Array(r).fill(void 0);for(let t of e)te(t,void 0,n)}}function me(e,t){let n=(e-4)%t;return n>0?t-n:0}})),bp=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(_p(),e),n(yp(),e)})),xp=op(),Sp=bp(),Cp=`damaged protobuf data`,wp=64,Tp=4294967296,Ep={double:1,float:2,group:10,message:11,bytes:12,enum:14,string:9,bool:8},Dp=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 Op(e,t,n,r){let i=0,a=0;for(let r=0;;r++){if(t>=n||r===10)throw Error(Cp);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 kp(e,t,n,r,i=!1){let a={lo:0,hi:0,p:0,s:0,e:0};for(;t<n;){t=Op(e,t,n,a);let o=a.lo>>>3,s=a.lo&7;if(s===0)t=Op(e,t,n,a);else if(s===1||s===5){if(a.p=t,(t+=s===1?8:4)>n)throw Error(Cp)}else if(s===2){if(t=Op(e,t,n,a),a.s=t,a.e=t+(a.lo>>>0),a.hi||a.e>n)throw Error(Cp);t=a.e}else if(s===3){t=kp(e,t,n,()=>{},!0);continue}else if(s===4&&i)return t;else throw Error(Cp);r(o,s,a)}if(i)throw Error(Cp);return t}var Ap=(e,t)=>M(e.subarray(t.s,t.e));function jp(e){let t=new Map,n=new Map,r=(t,r,i)=>{let a=``,o=new Map;kp(e,t,r,(t,n,r)=>{if(t===1)a=Ap(e,r);else if(t===2){let t=``,n=0;kp(e,r.s,r.e,(r,i,a)=>{r===1?t=Ap(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>wp)throw Error(Cp);let c=``;kp(e,n,a,(t,n,r)=>{t===1&&(c=Ap(e,r))});let l=o?`${o}.${c}`:c,u=[];kp(e,n,a,(t,n,a)=>{if(t===2){let t={name:``,number:0,type:0,repeated:!1,oneof:!1,typeName:``,scope:l};kp(e,a.s,a.e,(n,r,i)=>{n===1?t.name=Ap(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=Ap(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]))})};kp(e,0,e.length,(t,n,a)=>{if(t!==1)return;let o=``;kp(e,a.s,a.e,(t,n,r)=>{t===2&&(o=Ap(e,r))}),kp(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 Mp(e,t){let n=jp(e),r=n.messages.get(t);if(!r)throw Error(`no type ${t}`);return e=>Fp(n,r,e,_(e),0,e.length,0)}var Np=(e,t,n)=>e.enums.get(t.typeName)?.get(n)??n;function Pp(e,t){switch(t.type){case Ep.string:return``;case Ep.bytes:return new Uint8Array;case Ep.bool:return!1;case Ep.enum:{let n=e.enums.get(t.typeName);return n?n.get(0)??n.values().next().value??0:0}default:return 0}}function Fp(e,t,n,r,i,a,o){if(o>wp)throw Error(Cp);let s={};for(let n of t.list)n.repeated?s[n.name]=[]:!n.oneof&&n.type!==Ep.message&&n.type!==Ep.group&&(s[n.name]=Pp(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)*Tp+(a>>>0);case 4:return(s>>>0)*Tp+(a>>>0);case 5:return a|0;case 6:return r.getUint32(c+4,!0)*Tp+r.getUint32(c,!0);case 7:return r.getUint32(c,!0);case 8:return a!==0||s!==0;case 9:return Ap(n,i);case 11:{let a=e.messages.get(t.typeName);return a?Fp(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 Np(e,t,a|0);case 15:return r.getInt32(c,!0);case 16:return r.getInt32(c+4,!0)*Tp+r.getUint32(c,!0);case 17:return a>>>1^-(a&1);case 18:{let e=-(a&1);return(s>>>1^e|0)*Tp+(((a>>>1|s<<31)^e)>>>0)}default:return}};return kp(n,i,a,(e,r,i)=>{let a=t.fields.get(e);if(!a)return;let o=Dp(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=Op(n,r,i.e,t);else if(t.p=r,(r+=o===1?8:4)>i.e)throw Error(Cp);e.push(c(a,t))}return}if(r!==o)throw Error(Cp);let l=c(a,i);a.repeated?s[a.name].push(l):s[a.name]=l}),s}var Ip=/(^|[/.])(Image|CompressedImage|RawImage|CompressedVideo|PointCloud|PointCloud2)$/;function Lp(e){if(Ip.test(e.schemaName))return`no numbers (images and point clouds are skipped).`;if(e.messageEncoding===`cdr`&&e.schemaEncoding===`ros2msg`){let t=new Sp.MessageReader((0,xp.parse)(M(e.schemaData),{ros2:!0}));return e=>t.readMessage(e)}return e.messageEncoding===`protobuf`&&e.schemaEncoding===`protobuf`?Mp(e.schemaData,e.schemaName):e.messageEncoding===`json`&&(e.schemaEncoding===`jsonschema`||e.schemaEncoding===``)?e=>JSON.parse(M(e)):`message encoding ${e.messageEncoding}${e.schemaEncoding?` (schema ${e.schemaEncoding})`:``} is not supported; skipped.`}var Rp=16;function zp(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>Rp){r.add(`${t} (over ${Rp} 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))zp(a,t?`${t}.${i}`:i,n,r)}}var Bp=e=>Array.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView);function Vp(e,t,n,r=``,i=[]){if(typeof e!=`object`||!e){t.has(r)&&n.set(r,i);return}if(Bp(e)){for(let a=0;a<Math.min(e.length,Rp);a++)t.has(`${r}[${a}]`)&&n.set(`${r}[${a}]`,[...i,a]);return}for(let a of Object.keys(e))Vp(e[a],t,n,r?`${r}.${a}`:a,[...i,a])}function Hp(e,t){let n=e;for(let e of t){if(typeof n!=`object`||!n)return;if(typeof e==`number`){if(!Bp(n)||n.length>Rp)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(Bp(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 Up=`damaged LZ4 data`;function Wp(e,t){let n=new Uint8Array(t),r=0,i=0,a=()=>{if(r+4>e.length)throw Error(Up);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(Up);let s=e[r];if(s>>6!=1)throw Error(Up);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(Up);if(o&2147483648){if(i+c>t)throw Error(Up);n.set(e.subarray(r,r+c),i),i+=c}else i=Gp(e,r,r+c,n,i);r+=c+(s&16?4:0)}s&4&&(r+=4)}if(r>e.length||i!==t)throw Error(Up);return n}function Gp(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(Up);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(Up);if(r.set(e.subarray(t,t+s),i),t+=s,i+=s,t===n)return i;if(t+2>n)throw Error(Up);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(Up);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(Up)}var Kp=`This MCAP file is damaged (its records could not be read).`,qp=e=>e instanceof Error&&e.name===`AbortError`?e:Error(Kp),Jp=e=>{if(e>BigInt(1073741824))throw Error(Kp);return Number(e)},Yp={zstd:(e,t)=>ap(e,new Uint8Array(Jp(t))),lz4:(e,t)=>Wp(e,Jp(t))};async function Xp(e){let t;try{t=await kf.Initialize({readable:{size:async()=>BigInt(e.size),read:async(t,n)=>e.slice(Number(t),Number(n))},decompressHandlers:Yp})}catch{return null}return(t.chunkIndexes.length>0||t.statistics?.messageCount===0n)&&t.chunkIndexes.every(e=>e.messageIndexOffsets.size>0)?t:null}async function*Zp(e,t){let n=new jf({decompressHandlers:Yp});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 qp(e)}}async function*Qp(e){try{for await(let t of e)yield t}catch(e){throw qp(e)}}var $p=(e,t)=>({messageEncoding:e.messageEncoding,schemaName:t?.name??``,schemaEncoding:t?.encoding??``,schemaData:t?.data??new Uint8Array}),em=100,tm=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>=em)return;if(this.n++,this.decoder===null)try{this.decoder=Lp(this.info)}catch{this.decoder=`its schema could not be read; skipped.`}if(typeof this.decoder==`string`)return;let t=new Map;try{zp(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`)}},nm=946684800n*1000000000n,rm=8192,im=65536;async function*am(e,t){let n=e.plan.state,r=e=>{e.cap=e.t.samples<0?rm:Math.max(1,Math.min(rm,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=Pe(e,t.group),s={g:t.group,t:a,sel:o,text:o.map(e=>a.text[e]),decode:Lp(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%im===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;Vp(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?Hp(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*om(e,t,n){let r=[];for await(let i of Zp(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 sm={...k,async plan(e,t){let n=await Xp(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 tm(e.id,e.topic,$p(e,n.schemasById.get(e.schemaId)));r.push(t);for await(let r of Qp(n.readMessages({topics:[e.topic]})))if(r.channelId===e.id&&(t.add(r),t.n>=em))break}}else{let e=new Map,n=new Map;for await(let a of Zp(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 tm(a.id,a.topic,$p(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=je(s.map(e=>e.topic),[]),u=s.map((e,t)=>{let n=je(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>=nm?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 Xp(e.io):null;if(t.indexed&&!n)throw Error(Kp);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*am(e,n?Qp(n.readMessages({topics:r})):om(e.io,i,e.signal))},async*streamGroup(e,t){let n=await Xp(e.io);if(!n)throw Error(Kp);yield*am(e,Qp(n.readMessages({topics:[e.plan.state.topics[t].topic]})))}},cm={container:`89738606-f1c3-11cf-9d89-0080c72e70a3`,dataSource:`89738619-f1c3-11cf-9d89-0080c72e70a3`,monitorSettings:`b48d858c-f5f5-11cf-9d89-0080c72e70a3`,observation:`8973861a-f1c3-11cf-9d89-0080c72e70a3`},K={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`},lm={"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`]},um=`c690e862-f755-11cf-9d89-0080c72e70a3`,dm={"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`},fm={"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`},pm=`This PQDIF file is damaged.`,mm=()=>{throw Error(pm)},hm=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function gm(e,t){let n=n=>hm[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 _m={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},vm=e=>_m[e]??0,ym=64*1024;async function bm(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)&&mm();let s=await r(a);(s<0||a+4+s*28>t||(n-=s)<0)&&mm();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:gm(c,d),type:n,phys:s,at:a+4+d+20,size:1,kids:[],bytes:null},p=_m[s]??0,m=n===2&&c[d+18];if(!m){let e=l.getInt32(d+20,!0);(e<0||e>=t)&&mm(),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)&&mm(),f.size*p<=ym&&(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 xm(e,t){return t.bytes??=await e(t.at,t.size*vm(t.phys)),t.bytes}function Sm(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 Cm=e=>{if(!e.bytes)throw Error(pm);return new DataView(e.bytes.buffer,e.bytes.byteOffset,e.bytes.byteLength)},wm=(e,t=0)=>Sm(Cm(e),e.phys,t*(_m[e.phys]??0)),Tm=(e,t=0)=>{let n=Cm(e);return[n.getUint32(t*12,!0),n.getFloat64(t*12+4,!0)]},Em=([e,t])=>(e-25569)*86400+t;function Dm(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 Om=e=>e&&e.phys===60&&e.bytes?gm(e.bytes,0):``,q=(e,t)=>e?.find(e=>e.tag===t),km=(e,t)=>e?.filter(e=>e.tag===t)??[];async function Am(e){let t=[];for(let n=0;;){n+64>e.size&&mm();let r=await e.read(n,64);gm(r,0)!==`4a111440-e49f-11cf-9900-505144494600`&&mm();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)&&mm(),t.push({type:gm(r,16),body:n+64,size:a}),o===0||o===e.size)return t;(o<n+64+a||o>e.size)&&mm(),n=o}}async function jm(e,t,n){let r=await e.slice(t.body,t.size);return!n||r.length===0?r:Tt(r,-1,Math.min(o,c(r.length)))}async function Mm(e,t,n){if(n){let n=await jm(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 Nm=65536,Pm=1,Fm=2,Im=4,Lm=new Set([10,11,42,43,50,60]),Rm=[``,`V`,`I`,`Power`,`Energy`,`Temperature`,`Pressure`,`Charge`,`Electric field`,`Magnetic field`,`Velocity`,`Bearing`,`Force`,`Torque`,`Position`,`Flux linkage`,`Flux density`,`Status`],zm=[``,`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`],Bm=`..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(`.`),Vm=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Hm=e=>e&&e.type===2?wm(e):0,Um=(e,t)=>(e[0]-t[0])*86400+(e[1]-t[1]);function Wm(e){let t=km(q(e,K.channelDefinitions)?.kids,K.oneChannelDefinition).map(e=>({name:Dm(q(e.kids,K.channelName)),phase:Hm(q(e.kids,K.phaseId)),measured:Hm(q(e.kids,K.quantityMeasuredId)),quantityType:Om(q(e.kids,K.quantityTypeId)),series:km(q(e.kids,K.seriesDefinitions)?.kids,K.oneSeriesDefinition).map(e=>({valueType:Om(q(e.kids,K.valueTypeId)),units:Hm(q(e.kids,K.quantityUnitsId)),characteristic:Om(q(e.kids,K.quantityCharacteristicId)),storage:Hm(q(e.kids,K.storageMethodId))||Pm,name:Dm(q(e.kids,K.valueTypeName))}))}));return{name:Dm(q(e,K.dataSourceName)),defs:t}}function Gm(e){let t=new Map;for(let n of km(q(e,K.channelSettingsArray)?.kids,K.oneChannelSetting)){let e=Hm(q(n.kids,K.channelDefinitionIndex));if(t.has(e))continue;let r=q(n.kids,K.xdSystemSideRatio),i=q(n.kids,K.xdMonitorSideRatio);t.set(e,r&&i?Hm(r)/Hm(i):null)}return{useTransducer:Hm(q(e,K.useTransducer))!==0,ratio:t}}var Km=e=>km(q(e,K.channelInstances)?.kids,K.oneChannelInstance),qm=e=>km(q(e?.kids,K.seriesInstances)?.kids,K.oneSeriesInstance);function Jm(e,t,n,r=0){let i=qm(e[t])[n]?.kids;if(!i)return{};let a=q(i,K.seriesShareChannelIndex),o=q(i,K.seriesShareSeriesIndex),s=a&&o&&r<8?Jm(e,Hm(a),Hm(o),r+1):{},c=q(i,K.seriesValues);return{values:s.values??(c?.type===3?c:void 0),scale:q(i,K.seriesScale)??s.scale,offset:q(i,K.seriesOffset)??s.offset}}var Ym=(e,t)=>t&Fm?[e.scale?wm(e.scale):1,e.offset?wm(e.offset):0]:[1,0];function Xm(e,t){let n=e.values,[r,i]=Ym(e,t);return{at:n.at,phys:n.phys,size:n.size,storage:t,scale:r,offset:i}}var Zm=e=>(e.storage&Im)!==0&&e.phys!==50;function Qm(e){let t=wm(e,0);if(!(Number.isInteger(t)&&t>=0&&1+2*t<=e.size))throw Error(pm);for(let n=0;n<t;n++){let t=wm(e,1+2*n);if(!(Number.isInteger(t)&&t>=0))throw Error(pm)}return t}function $m(e,t,n){if(!Zm({phys:e.phys,storage:t}))return e.size;let r=0;for(let t=0,n=Qm(e);t<n;t++)r+=wm(e,1+2*t);if(r>n||r>128e6)throw Error(pm);return r}async function eh(e,t,n){let r=t.values,i=2166136261,a=r.size*vm(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}|${Ym(t,n).join(`,`)}|${i>>>0}`}function th(e,t,n){let r=Rm[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}`:zm[e.phase]??``,a=fm[t.characteristic],o=dm[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 nh(e,t,n,r,i){let a=vm(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(Zm(e)){let n={tag:``,type:3,phys:e.phys,at:0,size:e.size,kids:[],bytes:await t(e.at,e.size*a)},r=Qm(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=wm(n,1+2*i),r=wm(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=Vm(await t(e.at+r*a,c*a));if(e.phys===50)for(let e=0;e<c;e++)s[e]=Um([i.getUint32(e*12,!0),i.getFloat64(e*12+4,!0)],n);else for(let t=0;t<c;t++)s[t]=Sm(i,e.phys,t*a)}return o(s)}}async function*rh(e,t){let n=Pe(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 jm(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 nh(a.time,s,i.t0,a.start,1):null,l=await Promise.all(n.map(e=>nh(a.channels[e],s,i.t0,0,a.channels[e].ratio))),u=r.samples;for(let n=0;n<u;n+=Nm){e.signal?.throwIfAborted();let r=Math.min(u,n+Nm),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 ih=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}},ah={...D,async plan(e,t){let n=await Am(t);if(n[0].type!==cm.container)throw Error(pm);let r=async(e,n)=>{let{read:r,size:i}=await Mm(t,e,n);return{read:r,els:await bm(r,i)}},{els:i}=await r(n[0],!1),a=Hm(q(i,K.compressionStyle)),o=Hm(q(i,K.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=Dm(q(i,K.title));l&&(c.title=l);let u=new ih,d=[],f=null,p=0,m=[],h=[];for(let e of n.slice(1))if(e.type===cm.dataSource){let t=Wm((await r(e,s)).els);d=t.defs,c.dataSource??=t.name}else if(e.type===cm.monitorSettings)f=Gm((await r(e,s)).els);else if(e.type===cm.observation){let{read:t,els:n}=await r(e,s),i=q(n,K.timeStart);if(i?.phys!==50||i.type!==2)throw Error(pm);let a=Tm(i),o=q(n,K.timeTriggered);o?.phys===50&&o.type===2&&h.push(Tm(o));let c=p++,l=Dm(q(n,K.observationName))||`Observation ${c+1}`,g=new Map,_=Km(n),v=0;for(let e of _)for(let t of qm(e)){let e=q(t.kids,K.seriesValues);e?.type===3&&(v=Math.max(v,e.size))}for(let[n,r]of _.entries()){let i=Hm(q(r.kids,K.channelDefinitionIndex)),o=d[i];if(!o){u.add(`channel without a definition`,`channels without a definition`);continue}let s=lm[o.quantityType];if(s){u.add(...s);continue}let p=o.series.findIndex(e=>e.valueType===um),m=p<0?{}:Jm(_,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 eh(t,m,h),b=g.get(y);if(!b){let n=Xm(m,h);Zm(n)&&await xm(t,m.values);let r=$m(m.values,h,v),i=Zm(n)&&n.size>=3&&wm(m.values,0)===1?wm(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=qm(r);o.series.forEach((e,t)=>{if(t===p)return;let r=t<S.length?Jm(_,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(Lm.has(i)){u.add(`series with values that are not numbers`,`series with values that are not numbers`);return}b.channels.push({...Xm(r,e.storage),ratio:x,name:th(o,e,t),channel:o.name,unit:Bm[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)=>Em(t.start)<Em(e)?t.start:e,m[0].start),_=new Map,v=je(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=Um(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=je(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(Um(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 C={compressed:s,t0:g,groups:m.map(e=>({rec:e.rec,start:Um(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}))}))},w=Em(g)*1e3;return{format:s?`PQDIF (zlib)`:`PQDIF`,startTime:Math.abs(w)<=864e13?new Date(w).toISOString():null,groups:y,meta:c,events:b,notes:x,state:C}},streamGroup:(e,t)=>rh(e,t),async*stream(e){for(let t of e.selection)yield*rh(e,t.group)}},oh=[`BOOLEAN`,`INT32`,`INT64`,`INT96`,`FLOAT`,`DOUBLE`,`BYTE_ARRAY`,`FIXED_LEN_BYTE_ARRAY`],sh=[`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`],ch=[`REQUIRED`,`OPTIONAL`,`REPEATED`],lh=[`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`],uh=[`UNCOMPRESSED`,`SNAPPY`,`GZIP`,`LZO`,`BROTLI`,`LZ4`,`ZSTD`,`LZ4_RAW`],dh=[`DATA_PAGE`,`INDEX_PAGE`,`DICTIONARY_PAGE`,`DATA_PAGE_V2`],fh=[`UNORDERED`,`ASCENDING`,`DESCENDING`],ph=[`SPHERICAL`,`VINCENTY`,`THOMAS`,`ANDOYER`,`KARNEY`];function mh(e){let t=hh(e);if(t.type===1)return{type:`Point`,coordinates:gh(e,t)};if(t.type===2)return{type:`LineString`,coordinates:_h(e,t)};if(t.type===3)return{type:`Polygon`,coordinates:vh(e,t)};if(t.type===4){let n=[];for(let r=0;r<t.count;r++)n.push(gh(e,hh(e)));return{type:`MultiPoint`,coordinates:n}}else if(t.type===5){let n=[];for(let r=0;r<t.count;r++)n.push(_h(e,hh(e)));return{type:`MultiLineString`,coordinates:n}}else if(t.type===6){let n=[];for(let r=0;r<t.count;r++)n.push(vh(e,hh(e)));return{type:`MultiPolygon`,coordinates:n}}else if(t.type===7){let n=[];for(let r=0;r<t.count;r++)n.push(mh(e));return{type:`GeometryCollection`,geometries:n}}else throw Error(`Unsupported geometry type: ${t.type}`)}function hh(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 gh(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 _h(e,t){let n=[];for(let r=0;r<t.count;r++)n.push(gh(e,t));return n}function vh(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(_h(e,{...t,count:i}))}return r}var yh=new TextDecoder(`utf-8`,{ignoreBOM:!0}),bh=new TextDecoder,xh={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&&yh.decode(e)},jsonFromBytes(e){return e&&JSON.parse(bh.decode(e))},geometryFromBytes(e){return e&&mh({view:new DataView(e.buffer,e.byteOffset,e.byteLength),offset:0})},geographyFromBytes(e){return e&&mh({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 Sh(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 Ch(e,r)}function Ch(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?wh(e[n])*10**-t:wh(e[n])/r:i[n]=Number(e[n])/r;return i}if(!s&&o===`INT96`)return Array.from(e).map(e=>r.timestampFromNanoseconds(Th(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(Eh);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 wh(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 Th(e){let t=(e>>64n)-2440588n,n=e&18446744073709551615n;return t*86400000000000n+n}function Eh(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 Dh(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=Dh(e,t+a,[...n,r.name]);a+=o.count,i.push(o)}return{count:a,element:r,children:i,path:n}}function Oh(e,t){return kh(Dh(e,0,[]),t)}function kh(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 Ah(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 jh(e){let t=0;for(let{element:n}of e)n.repetition_type===`REPEATED`&&t++;return t}function Mh(e){let t=0;for(let{element:n}of e.slice(1))n.repetition_type!==`REQUIRED`&&t++;return t}function Nh(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 Ph(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 Fh(e){if(e.length!==2)return!1;let[,t]=e;return!(t.element.repetition_type===`REPEATED`||t.children.length)}var Ih=0,Lh=1,Rh=2,zh=3,Bh=4,Vh=5,Hh=6,Uh=7,Wh=8,Gh=9,Kh=12;function qh(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===Ih)break;let a=r>>4;n=a?n+a:Zh(e),t[`field_${n}`]=Jh(e,i)}return t}function Jh(e,t){switch(t){case Lh:return!0;case Rh:return!1;case zh:return e.view.getInt8(e.offset++);case Bh:case Vh:return Zh(e);case Hh:return Qh(e);case Uh:{let t=e.view.getFloat64(e.offset,!0);return e.offset+=8,t}case Wh:{let t=Yh(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 Gh:{let t=e.view.getUint8(e.offset++),n=t&15,r=t>>4;r===15&&(r=Yh(e));let i=n===Lh||n===Rh,a=Array(r);for(let t=0;t<r;t++)a[t]=i?Jh(e,zh)===1:Jh(e,n);return a}case Kh:return qh(e);default:throw Error(`thrift unhandled type: ${t}`)}}function Yh(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 Xh(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 Zh(e){let t=Yh(e);return t>>>1^-(t&1)}function Qh(e){let t=Xh(e);return t>>1n^-(t&1n)}function $h(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 eg=1<<19,tg=new TextDecoder(`utf-8`,{ignoreBOM:!0});function ng(e){return e&&tg.decode(e)}async function rg(e,{parsers:t,initialFetchSize:n=eg,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),ig(c,{parsers:t,geoparquet:r})}else return ig(a,{parsers:t,geoparquet:r})}function ig(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={...xh,...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=qh({view:r,offset:s}),l=c.field_1,u=c.field_2.map(e=>({type:oh[e.field_1],type_length:e.field_2,repetition_type:ch[e.field_3],name:ng(e.field_4),num_children:e.field_5,converted_type:lh[e.field_6],scale:e.field_7,precision:e.field_8,field_id:e.field_9,logical_type:og(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:ng(e.field_1),file_offset:e.field_2,meta_data:e.field_3&&{type:oh[e.field_3.field_1],encodings:e.field_3.field_2?.map(e=>sh[e]),path_in_schema:e.field_3.field_3.map(ng),codec:uh[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:ng(e.field_1),value:ng(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:cg(e.field_3.field_12,d[t],i),encoding_stats:e.field_3.field_13?.map(e=>({page_type:dh[e.field_1],encoding:sh[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:ng(e.field_1),value:ng(e.field_2)})),h=ng(c.field_6);return n&&$h(u,m),{version:l,schema:u,num_rows:f,row_groups:p,key_value_metadata:m,created_by:h,metadata_length:o}}function ag({schema:e}){return Oh(e,[])[0]}function og(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:sg(e.field_7.field_2)}:e?.field_8?{type:`TIMESTAMP`,isAdjustedToUTC:e.field_8.field_1,unit:sg(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:ng(e.field_17.field_1)}:e?.field_18?{type:`GEOGRAPHY`,crs:ng(e.field_18.field_1),algorithm:ph[e.field_18.field_2]}:e?.field_19?{type:`FILE`}:e}function sg(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 cg(e,t,n){return e&&{max:lg(e.field_1,t,n),min:lg(e.field_2,t,n),null_count:e.field_3,distinct_count:e.field_4,max_value:lg(e.field_5,t,n),min_value:lg(e.field_6,t,n),is_max_value_exact:e.field_7,is_min_value_exact:e.field_8}}function lg(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?wh(e)*10**-n:wh(e)/10**n}return a?.type===`FLOAT16`?Eh(e):a?.type===`UUID`?n.uuidFromBytes(e):e}function ug(e,t,n=void 0){let r={...xh,...n},i=qh(e);return{null_pages:i.field_1,min_values:i.field_2.map(e=>lg(e,t,r)),max_values:i.field_3.map(e=>lg(e,t,r)),boundary_order:fh[i.field_4],null_counts:i.field_5,repetition_level_histograms:i.field_6,definition_level_histograms:i.field_7}}function dg(e){let t=qh(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 J=18446744073709551615n,fg=11400714785074694791n,pg=14029467366897019727n,mg=1609587929392839161n,hg=9650029242287828579n,gg=2870177450012600261n;function _g(e,t){return(e<<t|e>>64n-t)&J}function vg(e,t){return e=e+t*pg&J,e=_g(e,31n),e*fg&J}function yg(e,t){return e^=vg(0n,t),e*fg+hg&J}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&J,o=t+pg&J,s=t,c=t-fg&J;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)&J,a=yg(a,e),a=yg(a,o),a=yg(a,s),a=yg(a,c)}else a=t+gg&J;for(a=a+BigInt(r)&J;i+8<=r;)a^=vg(0n,n.getBigUint64(i,!0)),a=_g(a,27n)*fg+hg&J,i+=8;for(i+4<=r&&(a^=BigInt(n.getUint32(i,!0))*fg&J,a=_g(a,23n)*pg+mg&J,i+=4);i<r;)a^=BigInt(n.getUint8(i))*gg&J,a=_g(a,11n)*fg&J,i+=1;return a^=a>>33n,a=a*pg&J,a^=a>>29n,a=a*mg&J,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=qh(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=ag(e),d=Ah(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=Ah(ag(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=ag(t),m=Ah(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=ug({view:new DataView(r),offset:0},a,l),p=dg({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=dg({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=xh){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=Mh(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(Nh(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(Ph(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=Yh(e),i=Yh(e);Yh(e);let a=Qh(e),o=0;n[o++]=a;let s=r/i;for(;o<t;){let r=Qh(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=Yh(e),i=Yh(e);Yh(e);let a=Zh(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=Yh(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=Yh(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=jh(n);if(r){let n=Array(t.num_values);return z_(e,uv(r),n),n}}return[]}function av(e,t,n){let r=Mh(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=jh(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=Mh(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=Fh(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=Ch(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&&Fh(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=Sh(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=Sh(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=qh(e);return{type:dh[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:sh[t.field_5.field_2],definition_level_encoding:sh[t.field_5.field_3],repetition_level_encoding:sh[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:sh[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:sh[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=ag(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=dg({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=kh(i,a),l={pathInSchema:a,element:c[c.length-1].element,schemaPath:c,...e,...t.columnMetadata,parsers:{...xh,...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={...xh,...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 rg(e.file,e),n=ag(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=ag(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 rg(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=ag(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/aiEFIANBf2oiAw0ACwsgAkEISQ0AA0AgBCABLQAAOgAAIAQgAS0AAToAASAEIAEtAAI6AAIgBCABLQADOgADIAQgAS0ABDoABCAEIAEtAAU6AAUgBCABLQAGOgAGIAQgAS0ABzoAByAEQQhqIQQgAUEIaiEBIAVBeGoiBQ0ACwsgAAugAwEEfwJAIAAgAUYNAAJAA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DCYQJiAnAAoMJxAnICgACwwoECggKQAEDSkQKSAqAAUNKhAqICsABg0rECsgLAAHDSwQLCAtAAgNLRAtIC4ACQ0uEC4gLwAKDS8QLyAwAAsNMBAwIDEABA4xEDEgMgAFDjIQMiAzAAYOMxAzIDQABw40EDQgNQAIDjUQNSA2AAkONhA2IDcACg43EDcgOAALDjgQOCA5AAQPORA5IDoABQ86EDogOwAGDzsQOyA8AAcPPBA8IAEICA89ED0gARAJDz4QPiABGAoPPxA/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,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,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,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,2,2,2,2,2,2,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,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,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,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,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+tuI4DuU2meLxDbRAElNJgYHR0neGrgFyr7bPg5FdlV2dwHVVa3KKoBN
|
|
66
|
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KR4seJzhMXhnZuy+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,ee=0,te=E[c[0]],ne=Ty[te],re=Ty[te+1],ie=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),ie=s[1].htrees[c[1]]),e[1]--;let b=Yv(s[1].codes,ie,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),ae=ty[ry[T]+(b&7)],oe=ae.offset+l.readBits(ae.nbits),se=m[n-1&p],ce=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,te=E[c[0]],ne=Ty[te],re=Ty[te+1]);let r=wy[ne+se]|wy[re+ce],i=O[j+r];e[0]--,ce=se,se=Yv(s[0].codes,s[0].htrees[i],l),m[n&p]=se,(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),ee=c[2]<<db),e[2]--;let t=(oe>4?3:oe-2)&255,n=A[ee+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 le=xb(r,a,o);if(le<0)throw Error(`[BrotliDecompress] invalid distance`);i=n<d&&i!==d?n:d;let ue=n&p;if(le>i)if(oe>=_b&&oe<=vb){let e=hb[oe],r=le-i-1,a=gb[oe],o=r&(1<<a)-1,s=r>>a;if(e+=o*oe,s<ib){let r=ob(m,ue,e,oe,s);if(ue+=r,n+=r,x-=r,ue>=h){t.write(m,f);for(let e=0;e<ue-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]=le,o++),oe>x)throw Error(`Invalid backward reference`);for(let e=0;e<oe;e++)m[n&p]=m[n-le&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=>ap(e),LZ4:Sb,LZ4_RAW:Cb},Eb=e=>e instanceof Float64Array&&(e.byteOffset!==0||e.buffer.byteLength!==e.byteLength)?e.slice():e;function Db(e,t){async function*n(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*Ne(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{...e,async plan(e,n){let a=await t(e,n),o=[],s=[],c=[...a.notes],l=1/0,u=!1;for(let[t,n]of a.tables.entries()){c.push(...n.notes);let i=e.asTable?null:w(n.columns),a=i?await r(n,i):null;if(i&&a){let e=!!n.columns[i.time].absolute;e&&(l=Math.min(l,(n.columns[i.time].origin??0)+a.start)),s.push({table:t,long:{shape:i,scan:a},absolute:e}),o.push({name:n.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(`${n.name}: one row per sample; ${a.tags.length.toLocaleString(`en-US`)} ${a.tags.length===1?`tag`:`tags`} opened as channels.`),a.sorted||c.push(`${n.name}: the rows were not in time order and were sorted.`),a.repeated&&c.push(`${n.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=n.columns.findIndex(e=>e.kind===`time`),f=n.columns.flatMap((e,t)=>t===d?[]:[t]);if(f.length===0){c.push(`${n.name}: no channels besides its time; skipped.`);continue}let p=d>=0&&!!n.columns[d].absolute;if(p){let e=await S(n,d);Number.isNaN(e)||(l=Math.min(l,(n.columns[d].origin??0)+e))}s.push({table:t,long:null,time:d>=0?d:null,columns:f,absolute:p}),o.push({name:n.name,channels:f.map(e=>({name:n.columns[e].name,unit:n.columns[e].unit,text:n.columns[e].kind===`text`})),samples:n.rows,time:d>=0?{kind:`timestamps`}:{kind:`index`},rateHz:null})}if(o.length===0)throw Error(`${e.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*n(e.plan.state,t,e.signal)})(),streamGroup:(e,t)=>n(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?m(n):n}let n=Number(t-e.first)/1e9;if(!e.wall)return n;let r=Number(e.first)/1e9;return n+(g(r+n)-g(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&&y.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(rg(n,{parsers:Ob})),i=[],a=ag(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:d(String(s)):jb(s);r[a]=t.wall&&!Number.isNaN(e)?m(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(d(e)))||(a[t].iso=!0,Object.assign(a[t].column,{kind:`time`,absolute:!0}))});break}return{format:`Parquet`,tables:[s],notes:[]}}var Lb=Db(p,(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)}var Vb=256<<20;async function Hb(e,t,n=Vb){if(!t)return``;let r=``;for await(let i of Bb(e,t)){if(r.length+i.length>n)throw Error(`This workbook is too large to read (one of its parts holds over 256 MB of text).`);r+=i}return r}var Ub=1048576,Wb=16384,Gb=class{rows=0;cols=[];#e=0;budget;constructor(e=ke){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>=Ub)throw Error(`This sheet has a cell beyond Excel's last row (1,048,576); the file may be damaged.`);if(t>=Wb)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(Ub,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)}},Kb=e=>e<26?String.fromCharCode(65+e):Kb(Math.floor(e/26)-1)+String.fromCharCode(65+e%26),qb=65536;function Jb(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 f=0;for(let t of e.text.keys())t>=o&&f++;if(i+f===0)return;let p=(a>=0?e.text.get(a)?.trim():void 0)||`Column ${Kb(r)}`,h=i===0;if(h){for(let[t,n]of e.text)if(t>=o&&Number.isNaN(d(n))){h=!1;break}}let g=h?`time`:i>=f?c*2>i||y.test(p)?`time`:`number`:`text`,_=h?`iso`:g===`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 b=Number.isNaN(v)?void 0:m((v-n)*86400);l.push({name:p,unit:s>=0?e.text.get(s)?.trim()??``:``,kind:g,absolute:_!==null,origin:b}),u.push({col:e,kind:g,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+=qb){r?.throwIfAborted();let a=Math.min(t.rows,i+qb);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]=d(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=g((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+(g((r-n)*86400)-e))}}return c})}}}}:`${e}: no numbers; skipped.`}async function Yb(e){let t=await zb(e),{sheets:n,date1904:r}=Al(await Hb(e,t.get(`xl/workbook.xml`)),await Hb(e,t.get(`xl/_rels/workbook.xml.rels`)));if(n.length===0)throw Error(`This workbook has no sheets Kymoscope can read.`);let i=Pl(await Hb(e,t.get(`xl/sharedStrings.xml`))),a=Nl(await Hb(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 Gb(ke-i.length),u=await Kl(Bb(e,n),i,a,(e,t,n,r)=>l.put(e,t,n,r)),d=Jb(r.name,l,o,u);typeof d==`string`?c.push(d):s.push(d)}return{format:`Excel workbook`,tables:s,notes:c}}var Xb=Db(O,(e,t)=>Yb(t)),Zb=65536;async function*Qb(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 $b(e){let t=[];for await(let n of Qb(e))if(n.trim()&&t.push(n),t.length>200)break;if(t.length<2)throw Error(`This file has no rows.`);let r=pe(t.slice(0,50))??`,`,i=r===`;`,a=he(v(t[0],r),t.slice(1).map(e=>v(e,r)),i);return{format:`Delimited text`,tables:[{name:`Table`,columns:a,rows:-1,notes:[],async*read(t,o){let s=()=>t.map(e=>a[e].kind===`text`?Array(Zb).fill(null):new Float64Array(Zb).fill(NaN)),c=s(),l=0,u=!0;for await(let f of Qb(e,o)){if(!f.trim())continue;if(u){u=!1;continue}let e=v(f,r);for(let r=0;r<t.length;r++){let o=a[t[r]],s=e[t[r]]??``;o.kind===`text`?c[r][l]=s.trim()===``?null:s.trim():c[r][l]=o.absolute?d(s):n(s,i)}++l===Zb&&(yield{length:l,columns:c},c=s(),l=0)}l&&(yield{length:l,columns:c.map(e=>e.slice(0,l))})}}],notes:[]}}var ex={mdf:wn,edf:kn,xdf:Hn,tdms:fr,hdf5:Hr,mat:pi,comtrade:Si,mseed:wd,ulog:Vd,mcap:sm,pqdif:ah,ch10:ka,iena:Tu,ccsds:cd,parquet:Lb,xlsx:Xb,longtext:Db(x,(e,t)=>$b(t)),krc:_e};function tx(e){let t=ex[e];if(!t)throw Error(`No importer for format ${e}.`);return t}export{tx as importerFor};
|