sheetjs/dist/xlsx.min.js

1 line
388 KiB
JavaScript
Raw Normal View History

var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;var XLSX={};function make_xlsx_lib(a){a.version="0.14.1";var h=1200,n=1252;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined"){if(typeof global!=="undefined")global.cptable=undefined;else if(typeof window!=="undefined")window.cptable=undefined}}var r=[874,932,936,949,950];for(var e=0;e<=8;++e)r.push(1250+e);var d={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var l=function(e){if(r.indexOf(e)==-1)return;n=d[0]=e};function t(){l(1252)}var ve=function(e){h=e;l(e)};function o(){ve(1200);t()}function q(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function i(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function s(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var ee=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return i(e.slice(2));if(r==254&&t==255)return s(e.slice(2));if(r==65279)return e.slice(1);return e};var c=function e(r){return String.fromCharCode(r)};if(typeof cptable!=="undefined"){ve=function(e){h=e};ee=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,q(e.slice(2)))}return e};c=function e(r){if(h===1200)return String.fromCharCode(r);return cptable.utils.decode(h,[r&255,r>>8])[0]}}var pe=null;var v=true;var Te=function e(){var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(e){var r="";var t=0,a=0,n=0,i=0,s=0,f=0,l=0;for(var o=0;o<e.length;){t=e.charCodeAt(o++);i=t>>2;a=e.charCodeAt(o++);s=(t&3)<<4|a>>4;n=e.charCodeAt(o++);f=(a&15)<<2|n>>6;l=n&63;if(isNaN(a)){f=l=64}else if(isNaN(n)){l=64}r+=u.charAt(i)+u.charAt(s)+u.charAt(f)+u.charAt(l)}return r},decode:function e(r){var t="";var a=0,n=0,i=0,s=0,f=0,l=0,o=0;r=r.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<r.length;){s=u.indexOf(r.charAt(c++));f=u.indexOf(r.charAt(c++));a=s<<2|f>>4;t+=String.fromCharCode(a);l=u.indexOf(r.charAt(c++));n=(f&15)<<4|l>>2;if(l!==64){t+=String.fromCharCode(n)}o=u.indexOf(r.charAt(c++));i=(l&3)<<6|o;if(o!==64){t+=String.fromCharCode(i)}}return t}}}();var Ie=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&!!process.versions.node;var f=function(){};if(typeof Buffer!=="undefined"){var u=!Buffer.from;if(!u)try{Buffer.from("foo","utf8")}catch(e){u=true}f=u?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer);if(!Buffer.alloc)Buffer.alloc=function(e){return new Buffer(e)};if(!Buffer.allocUnsafe)Buffer.allocUnsafe=function(e){return new Buffer(e)}}function xe(e){return Ie?Buffer.alloc(e):new Array(e)}function _e(e){return Ie?Buffer.allocUnsafe(e):new Array(e)}var Ae=function e(r){if(Ie)return f(r,"binary");return r.split("").map(function(e){return e.charCodeAt(0)&255})};function p(e){if(typeof ArrayBuffer==="undefined")return Ae(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function m(e){if(Array.isArray(e))return e.map(_v).join("");var r=[];for(var t=0;t<e.length;++t)r[t]=_v(e[t]);return r.join("")}function b(e){if(typeof Uint8Array==="undefined")throw new Error("Unsupported");return new Uint8Array(e)}function g(e){if(typeof ArrayBuffer=="undefined")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return g(new Uint8Array(e));var r=new Array(e.length);for(var t=0;t<e.length;++t)r[t]=e[t];return r}var Re=function(e){return[].concat.apply([],e)};var ye=/\u0000/g,Fe=/[\u0001-\u0006]/g;var me={};var re=function e(r){r.version="0.10.2";function D(e){var r="",t=e.length-1;while(t>=0)r+=e.charAt(t--);return r}function O(e,r){var t="";while(t.length<r)t+=e;return t}function P(e,r){var t=""+e;return t.length>=r?t:O("0",r-t.length)+t}function N(e,r){var t=""+e;return t.length>=r?