UNPKG

sigfile

Version:

Utilities to reading signal data from files

75 lines 20.5 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.sigfile=e():t.sigfile=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t){t.exports=JSON.parse('{"a":"0.1.9"}')},function(t,e,n){t.exports=n(2)},function(t,e,n){"use strict";n.r(e),n.d(e,"bluefile",(function(){return r})),n.d(e,"matfile",(function(){return i})),n.d(e,"version",(function(){return j.a}));var r={};n.r(r),n.d(r,"BlueHeader",(function(){return w})),n.d(r,"BlueFileReader",(function(){return I}));var i={};function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.r(i),n.d(i,"MatHeader",(function(){return C})),n.d(i,"MatFileReader",(function(){return L}));var o=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof ArrayBuffer||"number"!=typeof e?(this.buffer=e,this.u8=new Uint8Array(e)):(this.buffer=new ArrayBuffer(e/8),this.u8=new Uint8Array(this.buffer)),new Proxy(this,{get:function(t,e){return t[e]?t[e]:t.getBit(e)},set:function(t,e,n){var r=parseInt(e);return!isNaN(r)&&(t.setBit(e,n),!0)}})}var e,n,r;return e=t,(n=[{key:"set",value:function(t){this.setArray(t)}},{key:"getBit",value:function(t){return this.u8[t>>3]>>7-(7&t)&1}},{key:"setBit",value:function(t,e){var n=7&t;e?this.u8[t>>3]|=128>>n:this.u8[t>>3]&=~(128>>n)}},{key:"setArray",value:function(t){for(var e=t.length,n=0;n<e;n++)this.setBit(n,t[n])}},{key:"subarray",value:function(t,e){var n=[];t=(t=t||0)<0?0:t,e=(e=e||this.length)>this.length?this.length:e;for(var r=t;r<e;r++)n.push(this.getBit(r));return n}},{key:"length",get:function(){return 8*this.u8.byteLength}}])&&a(e.prototype,n),r&&a(e,r),t}();function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r} /** * @license apache-2.0 * @file util.src * Copyright (c) 2012-2020, LGS Innovations Inc., All rights reserved. * * This file is part of SigFile. * * Licensed to the LGS Innovations (LGS) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. LGS licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ function f(){var t=new ArrayBuffer(4),e=new Uint32Array(t),n=new Uint8Array(t);if(e[0]=3735928559,239===n[0])return"LE";if(222===n[0])return"BE";throw new Error("unknown endianness")}function l(t,e,n){var r=Math.pow(2,53),i=s(n?[4,0]:[0,4],2),a=i[0],o=i[1],u=t.getInt32(e+a,n),f=t.getInt32(e+o,n)+h(32)*u;return f>=r?(console.warn("Int is bigger than JS can represent."),1/0):f}function c(t,e){var n=new Uint8Array(t);return void 0===c._applySupportsTypedArray&&(c._applySupportsTypedArray=void 0!==e?e:function(){try{var t=new Uint8Array(new ArrayBuffer(4));if(t[0]=66,t[1]=76,t[2]=85,t[3]=69,"BLUE"!==String.fromCharCode.apply(null,t))return!1}catch(t){return!1}return!0}()),c._applySupportsTypedArray?String.fromCharCode.apply(null,n):n.reduce((function(t,e){return t+String.fromCharCode(e)}),"")}function h(t){return t>=0&&t<31?1<<t:h[t]||(h[t]=Math.pow(2,t))}function y(t){var e=document.createElement("a");return e.href=t,{source:t,protocol:e.protocol.replace(":",""),host:e.hostname,port:e.port,query:e.search,params:function(){for(var t={},n=e.search.replace(/^\?/,"").split("&"),r=n.length,i=0;i<r;i++)if(n[i]){var a=n[i].split("=");t[a[0]]=a[1]}return t}(),file:(e.pathname.match(/\/([^/?#]+)$/i)||[null,""])[1],hash:e.hash.replace("#",""),path:e.pathname.replace(/^([^/])/,"/$1"),relative:(e.href.match(/tps?:\/\/[^/]+(.+)/)||[null,""])[1],segments:e.pathname.replace(/^\//,"").split("/")}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var d=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.header_class=e,this.options=n}var e,n,r;return e=t,(n=[{key:"_read",value:function(t,e,n){var r=this,i=new FileReader,a=void 0===t.webkitSlice?"slice":"webkitSlice",o=n?t[a](0,512):t;i.onloadend=function(t){return function(n){if(n.target.error)e(null);else{var a=i.result,o=new r.header_class(a,r.options);o.file=t,o.file_name=t.name,e(o)}}}(t),i.readAsArrayBuffer(o)}},{key:"readheader",value:function(t,e){this._read(t,e,!0)}},{key:"read",value:function(t,e){this._read(t,e,!1)}},{key:"read_http",value:function(t,e){var n=this,r=new XMLHttpRequest;return r.open("GET",t,!0),r.responseType="arraybuffer",r.overrideMimeType("text/plain; charset=x-user-defined"),r.onload=function(i){if(4!==r.readyState||200!==r.status&&0!==r.status)e(null);else{var a=null;if(r.response){a=r.response;var o=new n.header_class(a,n.options),s=y(t);o.file_name=s.file,e(o)}else r.responseText&&function(t,e,n){n=n||1024;var r=0,i=new ArrayBuffer(t.length),a=new Uint8Array(i);setTimeout((function o(){for(var s=r+n;r<s;r++)a[r]=255&t.charCodeAt(r);r>=t.length?e(i):setTimeout(o,0)}),0)}(r.responseText,(function(r){var i=new n.header_class(r,n.options),a=y(t);i.file_name=a.file,e(i)}))}},r.onerror=function(t){e(null)},r.send(null),r}}])&&p(e.prototype,n),r&&p(e,r),t}();function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t} /** * @license apache-2.0 * @file bluefile.src * Copyright (c) 2012-2020, LGS Innovations Inc., All rights reserved. * * This file is part of SigFile. * * Licensed to the LGS Innovations (LGS) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. LGS licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */var w=function(){function t(e,n){if(_(this,t),void 0===n&&(n={}),this.options=Object.assign({ext_header_type:"dict"},n),this.buf=e,null!=this.buf){this.setHeader();var r=this.data_start,i=this.data_start+this.data_size;this.setData(this.buf,r,i,this.littleEndianData)}}var e,n,r;return e=t,(n=[{key:"setHeader",value:function(){var t=new DataView(this.buf);this.version=c(this.buf.slice(0,4)),this.headrep=c(this.buf.slice(4,8)),this.datarep=c(this.buf.slice(8,12));var e="EEEI"===this.headrep;this.littleEndianData="EEEI"===this.datarep,this.ext_start=t.getInt32(24,e),this.ext_size=t.getInt32(28,e),this.type=t.getUint32(48,e),this.class=this.type/1e3,this.format=c(this.buf.slice(52,54)),this.timecode=t.getFloat64(56,e),1===this.class?(this.xstart=t.getFloat64(256,e),this.xdelta=t.getFloat64(264,e),this.xunits=t.getInt32(272,e),this.yunits=t.getInt32(296,e),this.subsize=1):2===this.class&&(this.xstart=t.getFloat64(256,e),this.xdelta=t.getFloat64(264,e),this.xunits=t.getInt32(272,e),this.subsize=t.getInt32(276,e),this.ystart=t.getFloat64(280,e),this.ydelta=t.getFloat64(288,e),this.yunits=t.getInt32(296,e)),this.data_start=t.getFloat64(32,e),this.data_size=t.getFloat64(40,e),this.ext_size&&(this.ext_header=this.unpack_keywords(this.buf,this.ext_size,512*this.ext_start,e))}},{key:"setData",value:function(e,n,r,i){void 0===i&&(i="LE"===t.ARRAY_BUFFER_ENDIANNESS),this.spa=t._SPA[this.format[0]],this.bps=t._BPS[this.format[1]],this.bpa=this.spa*this.bps,1===this.class?this.ape=1:2===this.class&&(this.ape=this.subsize),this.bpe=this.ape*this.bpa;var a="LE"===t.ARRAY_BUFFER_ENDIANNESS,o="BE"===t.ARRAY_BUFFER_ENDIANNESS;if(a&&!i||o&&this.littleEndianData)throw"Not supported ".concat(t.ARRAY_BUFFER_ENDIANNESS," ").concat(i);if(e){if(n&&r){var s=(r-n)/this.bps;this.dview=this.createArray(e,n,s)}else this.dview=this.createArray(e);this.size=this.dview.length/(this.spa*this.ape)}else this.dview=this.createArray(null,null,this.size)}},{key:"unpack_keywords",value:function(e,n,r,i){var a,o,s,u,f,l,h,y,p,d=[],m={},v={},b=0;e=e.slice(r,e.byteLength);var g=new DataView(e);for(e=c(e);b<n;){if(p=b+8,a=g.getUint32(b,i),o=g.getInt16(b+4,i),s=g.getInt8(b+6),u=e.slice(b+7,b+8),y=p+(h=a-o),f=e.slice(y,y+s),"A"===u)l=e.slice(p,p+h);else{if(!t._XM_TO_DATAVIEW[u])throw"Unsupported keyword format ".concat(u," for tag ").concat(f);var _=t._XM_TO_DATAVIEW[u];l="string"==typeof _?g[_](p,i):_(g,p,i)}void 0===m[f]?m[f]=1:(m[f]++,f=""+f+m[f]),v[f]=l,d.push({tag:f,value:l}),b+=a}var T=["dict","json",{},"XMTable","JSON","DICT"],S=this.options.ext_header_type;if("object"===A(S)&&null!==S&&0===Object.keys(S).length&&S.constructor===Object)return v;for(var w in T)if(T[w]===S)return v;return d}},{key:"createArray",value:function(e,n,r){var i,a=t._XM_TO_TYPEDARRAY[this.format[1]];if(void 0===a)throw"unknown format ".concat(this.format[1]);if(void 0===n&&(n=0),void 0===r&&(r=e.length||e.byteLength/t._BPS[this.format[1]]),e)if(Array.isArray(e)&&Array.isArray(e[0]))i=new a(e=[].concat.apply([],e),n,r=e.length*e[0].length);else if(Array.isArray(e)&&ArrayBuffer.isView(e[0])){i=new a(r=e.length*e[0].length);for(var o=0;o<e.length;++o)i.set(e[o],o*e[0].length)}else i=new a(e,n,r);else i=new a(r);return i}}])&&T(e.prototype,n),r&&T(e,r),t}();S(w,"ARRAY_BUFFER_ENDIANNESS",f()),S(w,"_SPA",{S:1,C:2,V:3,Q:4,M:9,X:10,T:16,U:1,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9}),S(w,"_BPS",{P:.125,A:1,O:1,B:1,I:2,L:4,X:8,F:4,D:8}),S(w,"_XM_TO_TYPEDARRAY",{P:o,A:null,O:Uint8Array,B:Int8Array,I:Int16Array,L:Int32Array,X:null,F:Float32Array,D:Float64Array}),S(w,"_XM_TO_DATAVIEW",{P:null,A:null,O:"getUint8",B:"getInt8",I:"getInt16",L:"getInt32",X:l,F:"getFloat32",D:"getFloat64"});var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(r,t);var e,n=(e=r,function(){var t,n=g(e);if(b()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return v(this,t)});function r(t){return _(this,r),n.call(this,w,t)}return r}(d);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t} /** * @license * File: matfile.src * Copyright (c) 2012-2017, LGS Innovations Inc., All rights reserved. * * This file is part of SigPlot. * * Licensed to the LGS Innovations (LGS) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. LGS licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */var C=function(){function t(e){if(B(this,t),this.file=null,this.file_name=null,this.buf=e,null!=this.buf){var n=new DataView(this.buf);this.headerStr=c(this.buf.slice(t.headerTextBegin-1,t.headerTextEnd)),this.datarep=c(this.buf.slice(t.endianCharsBegin-1,t.endianCharsEnd));var r="IM"===this.datarep,i="IM"===this.datarep;this.headerList=this.headerStr.split(",").map((function(t){return t.trim()})),this.matfile=this.headerList[0],this.platform=this.headerList[1],this.createdOn=this.headerList[2],this.subsystemOffset=c(this.buf.slice(t.subsysOffsetBegin-1,t.subsysOffsetEnd)),this.version=n.getUint16(t.versionOffsetBegin-1,r),this.versionName=t.versionNames[this.version],this.dataType=n.getUint32(t.firstDataTypeOffsetBegin-1,r),this.dataTypeName=t.dataTypeNames[this.dataType].name,this.arraySize=n.getUint32(t.numBytesOffsetBegin-1,r);t.numBytesOffsetEnd;var a=t.numBytesOffsetEnd+1,o=n.getUint32(a-1,r),s=t.dataTypeNames[o].name,u=t.dataTypeNames[o].size;a+=4;this.getDataWithType(n,s,a-1,i);a+=u;var f=this.getDataWithType(n,s,a-1,i);a+=u;var l=15&f;t.arrayClassNames[l];a+=u;var h=n.getUint32(a-1,i);a+=4;var y=t.dataTypeNames[h].name,p=t.dataTypeNames[h].size;n.getUint32(a-1,i);a+=4;var d=this.getDataWithType(n,y,a-1,i);a+=p,d>1&&console.warn("Only 1D arrays are currently supported.");this.getDataWithType(n,y,a-1,i);a+=u;var m=n.getUint32(a-1,i);a+=4;var v=0,b=!1;m>15&&(m&=255,b=!0,v=n.getUint16(a-5,i));var g=t.dataTypeNames[m].name;t.dataTypeNames[m].size;b||(v=this.getDataWithType(n,g,a-1,i),a+=4),a+=v+(b?(4-v%4)%4:(8-v%8)%8),this.setData(this.buf,n,a,i)}}var e,n,r;return e=t,(n=[{key:"createArray",value:function(e,n,r,i){var a=t._MAT_TO_TYPEDARRAY[i];if(void 0===a)throw"unknown type ".concat(i);return void 0===n&&(n=0),void 0===r&&(r=e.length),new a(e,n,r)}},{key:"getDataWithType",value:function(e,n,r,i){var a=t._MAT_TO_DATAVIEW[n];if(void 0===a)throw"Type name ".concat(n," is not supported");return e[a](r,i)}},{key:"setData",value:function(e,n,r,i){var a,o=n.getUint32(r-1,i),s=!1;o>15?(o&=255,s=!0,a=n.getUint16(r+1,2,i)):r+=4;var u=t.dataTypeNames[o].name,f=t.dataTypeNames[o].size;s||(a=n.getUint32(r-1,i),s=!1),r+=4,this.dview=this.createArray(e,r-1,a/f,u)}}])&&D(e.prototype,n),r&&D(e,r),t}();R(C,"ARRAY_BUFFER_ENDIANNESS",f()),R(C,"versionNames",{256:"MAT-file"}),R(C,"_MAT_TO_TYPEDARRAY",{miINT8:Int8Array,miUINT8:Uint8Array,miInt16:Int16Array,miUINT16:Uint16Array,miINT32:Int32Array,miUINT32:Uint32Array,miDOUBLE:Float64Array}),R(C,"_MAT_TO_DATAVIEW",{miINT8:"getInt8",miUINT8:"getUint8",miINT16:"getInt16",miUINT16:"getUint16",miINT32:"getInt32",miUINT32:"getUint32",miSINGLE:"getFloat32",miDOUBLE:"getFloat64",miINT64:l}),R(C,"dataTypeNames",{1:{name:"miINT8",size:1},2:{name:"miUINT8",size:1},3:{name:"miINT16",size:2},4:{name:"miUINT16",size:2},5:{name:"miINT32",size:4},6:{name:"miUINT32",size:4},7:{name:"miSINGLE",size:4},9:{name:"miDOUBLE",size:8},12:{name:"miINT64",size:8},13:{name:"miUINT64",size:8},14:{name:"miMATRIX",size:null},15:{name:"miCOMPRESSED",size:null},16:{name:"miUTF8",size:null},17:{name:"miUTF16",size:null},18:{name:"miUTF32",size:null}}),R(C,"arrayClassNames",{1:"mxCELL_CLASS",2:"mxSTRUCT_CLASS",3:"mxOBJECT_CLASS",4:"mxCHAR_CLASS",5:"mxSPARSE_CLASS",6:"mxDOUBLE_CLASS",7:"mxSINGLE_CLASS",8:"mxINT8_CLASS",9:"mxUINT8_CLASS",10:"mxINT16_CLASS",11:"mxUINT16_CLASS",12:"mxINT32_CLASS",13:"mxUINT32_CLASS",14:"mxINT64_CLASS",15:"mxUINT64_CLASS"}),R(C,"headerTextBegin",1),R(C,"headerTextEnd",116),R(C,"subsysOffsetBegin",117),R(C,"subsysOffsetEnd",124),R(C,"versionOffsetBegin",125),R(C,"versionOffsetEnd",126),R(C,"endianCharsBegin",127),R(C,"endianCharsEnd",128),R(C,"firstDataTypeOffsetBegin",129),R(C,"firstDataTypeOffsetEnd",132),R(C,"numBytesOffsetBegin",133),R(C,"numBytesOffsetEnd",136);var L=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(r,t);var e,n=(e=r,function(){var t,n=x(e);if(U()){var r=x(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return N(this,t)});function r(t){return B(this,r),n.call(this,t,C)}return r}(d),j=n(0)}])})); //# sourceMappingURL=sigfile.js.map