"use strict";var c=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var R=(e,t)=>{for(var x in t)c(e,x,{get:t[x],enumerable:!0})},T=(e,t,x,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of j(t))!F.call(e,i)&&i!==x&&c(e,i,{get:()=>t[i],enumerable:!(n=L(t,i))||n.enumerable});return e};var O=e=>T(c({},"__esModule",{value:!0}),e);var I={};R(I,{parse:()=>d});module.exports=O(I);function s(e,t=0){return g(e,t,2).getUint16(0,!0)}function m(e,t=0){return g(e,t,4).getUint32(0,!0)}function f(e,t=0,x=e.byteLength){let n=e.slice(t,t+x);return k.decode(new Uint8Array(n))}function l(e,t,x=0){if(e.lengthn.length+i).reduce((t,x)=>x>t?x:t,0)}function v(e){return e.flatMap(([t,x,n,i={},r=[]])=>[[t,x,n,i],...r])}function w(e,{ext:t,mime:x}){return t||x?v(e).filter(n=>n[0]===t||n[1]===x):[]}function b(e,t){let x=0;for(;x+300){let r=S(e,i);if(r!==void 0)return r}}let n=S(e,u);if(n)return n;if(t)return E(e)}function S(e,t){let x=new Uint8Array(e.slice(0,D));for(let[n,i,r,{exact:p=!0,offset:o=0}={},a=[]]of t)if(l(x,r,o)){if(n==="zip"&&!p)return b(e,{ext:n,mime:i});if(!p&&a.length){for(let[B,A,z,{offset:U=0}={}]of a)if(l(x,z,U))return{ext:B,mime:A}}return{ext:n,mime:i}}}function E(e){return y(e)}0&&(module.exports={parse});