Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tableexport

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tableexport - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

yarn.lock

8

bower.json
{
"name": "tableexport.js",
"version": "5.0.3",
"version": "5.0.4",
"authors": [

@@ -24,5 +24,5 @@ "clarketm <travis.m.clarke@gmail.com>"

"jquery": "^3.1.1",
"file-saverjs": "^1.3.5",
"blobjs": "^1.1.0",
"js-xlsx": "^0.9.12"
"file-saverjs": "^1.3.6",
"blobjs": "^1.1.1",
"js-xlsx": "^0.14.0"
},

@@ -29,0 +29,0 @@ "license": "Apache-2.0",

/*!
* TableExport.js v5.0.3 (https://www.travismclarke.com)
* TableExport.js v5.0.4 (https://www.travismclarke.com)
*

@@ -151,3 +151,3 @@ * Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com

*/
version: '5.0.3',
version: '5.0.4',
/**

@@ -572,6 +572,6 @@ * Default library options.

export2file: function (data, mime, name, extension, merges) {
var format = extension.slice(1);
data = this.getRawData(data, extension, name, merges);
if (_isMobile) {
// TODO: fix dataURI on iphone (xlsx & xls)
if (_isMobile && (format === _FORMAT.CSV || format === _FORMAT.TXT)) {
var dataURI = 'data:' + mime + ';' + this.charset + ',' + data;

@@ -947,3 +947,2 @@ this.downloadDataURI(dataURI, name, extension);

XLSX
&& !_isMobile
&& !(TableExport.prototype.formatConfig[key].enforceStrictRFC4180)

@@ -950,0 +949,0 @@ );

/*!
* TableExport.js v5.0.3 (https://www.travismclarke.com)
* TableExport.js v5.0.4 (https://www.travismclarke.com)
*

@@ -19,2 +19,2 @@ * Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com

*/
!function(t,e){if("function"==typeof define&&define.amd)define(function(t){var r;try{r=t("jquery")}catch(o){}return e(r,t("blobjs"),t("file-saverjs"),t("xlsx"))});else if("object"==typeof exports&&"string"!=typeof exports.nodeName){var r;try{r=require("jquery")}catch(o){}module.exports=e(r,require("blobjs"),require("file-saverjs"),require("xlsx"))}else t.TableExport=e(t.jQuery,t.Blob,t.saveAs,t.XLSX)}(this,function(t,e,r,o){"use strict";function n(){for(var t=arguments,e=1;e<t.length;e++)for(var r in t[e])t[e].hasOwnProperty(r)&&(t[0][r]=t[e][r]);return t[0]}function a(t){return"undefined"==typeof t.length?[].concat(t):[].slice.call(t)}function i(t,e){return e.filter(function(e){return[].indexOf.call(document.querySelectorAll(e),t)!==-1}).length>0}function s(t){return"undefined"!=typeof t}function l(t){return t instanceof Array?[].concat.apply([],t):t}function p(t){return~y.indexOf(t)}function u(t){var e;switch(t){case v.TXT:case v.CSV:case v.XLS:e=!0;break;default:e=b(t)}return e}function c(t){return console.error(t),new Error(t)}function f(t,e,r){var o={};return t?(o.bootstrapClass=e[0]+" ",o.bootstrapTheme=e[1]+" ",o.bootstrapSpacing=e[2]+" "):(o.bootstrapClass=r+" ",o.bootstrapTheme="",o.bootstrapSpacing=""),o}var d=function(t,e){var r=this;if(!t)return c('"selectors" is required. \nUsage: TableExport(selectors, options)');if(!r)return new d(t,e);r.settings=n({},r.defaults,e),r.selectors=a(t);var o=r.settings;o.ignoreRows=o.ignoreRows instanceof Array?o.ignoreRows:[o.ignoreRows],o.ignoreCols=o.ignoreCols instanceof Array?o.ignoreCols:[o.ignoreCols],o.ignoreCSS=r.ignoreCSS instanceof Array?r.ignoreCSS:[r.ignoreCSS],o.emptyCSS=r.emptyCSS instanceof Array?r.emptyCSS:[r.emptyCSS],o.formatValue=r.formatValue.bind(this,o.trimWhitespace),o.bootstrapSettings=f(o.bootstrap,r.bootstrapConfig,r.defaultButton);var i={};r.getExportData=function(){return i},r.selectors.forEach(function(t){var e={};e.rows=a(t.querySelectorAll("tbody > tr")),e.rows=o.headers?a(t.querySelectorAll("thead > tr")).concat(e.rows):e.rows,e.rows=o.footers?e.rows.concat(a(t.querySelectorAll("tfoot > tr"))):e.rows,e.thAdj=o.headers?t.querySelectorAll("thead > tr").length:0,e.filename="id"===o.filename?t.getAttribute("id")?t.getAttribute("id"):r.defaultFilename:o.filename?o.filename:r.defaultFilename,e.uuid=w(t),e.checkCaption=function(e){var n=t.querySelectorAll("caption."+r.defaultCaptionClass);n.length?n[0].appendChild(e):(n=document.createElement("caption"),n.className=o.bootstrapSettings.bootstrapSpacing+o.position+" "+r.defaultCaptionClass,n.appendChild(e),t.insertBefore(n,t.firstChild))},e.setExportData=function(){return function(t){var r=m.getInstance().getItem(t),o=t.substring(t.indexOf("-")+1);i[e.uuid]=i[e.uuid]||{},i[e.uuid][o]=JSON.parse(r)}}(),e.rcMap=(new h).build(e,o);var n=y.reduce(function(t,e){return t[e]=0,t},{});o.formats.forEach(function(t){return p(t)?u(t)?void(n[t]||(e.setExportData(r.exporters.build.call(r,e,t)),n[t]++)):c('"'+t+'" requires "js-xlsx".'):c('"'+t+'" is not a valid format. \nFormats: '+y.join(", "))})});var s=document.querySelectorAll("button["+r.storageKey+"]");return S(s,"click",r.downloadHandler,r),r};d.prototype={version:"5.0.3",defaults:{headers:!0,footers:!0,formats:["xlsx","csv","txt"],filename:"id",bootstrap:!1,exportButtons:!0,position:"bottom",ignoreRows:null,ignoreCols:null,trimWhitespace:!0},CONSTANTS:{FORMAT:{XLSX:"xlsx",XLSM:"xlsm",XLSB:"xlsb",BIFF2:"biff2",XLS:"xls",CSV:"csv",TXT:"txt"},TYPE:{STRING:"s",NUMBER:"n",BOOLEAN:"b",DATE:"d"}},charset:"charset=utf-8",defaultFilename:"myDownload",defaultButton:"button-default",defaultCaptionClass:"tableexport-caption",defaultNamespace:"tableexport-",tableKey:"tableexport-key",storageKey:"tableexport-id",ignoreCSS:".tableexport-ignore",emptyCSS:".tableexport-empty",bootstrapConfig:["btn","btn-default","btn-toolbar"],rowDel:"\r\n",entityMap:{"&":"&#38;","<":"&#60;",">":"&#62;","'":"&#39;","/":"&#47;"},formatConfig:{xlsx:{defaultClass:"xlsx",buttonContent:"Export to xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fileExtension:".xlsx"},xlsm:{defaultClass:"xlsm",buttonContent:"Export to xlsm",mimeType:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",fileExtension:".xlsm"},xlsb:{defaultClass:"xlsb",buttonContent:"Export to xlsb",mimeType:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",fileExtension:".xlsb"},xls:{defaultClass:"xls",buttonContent:"Export to xls",separator:"\t",mimeType:"application/vnd.ms-excel",fileExtension:".xls",enforceStrictRFC4180:!1},csv:{defaultClass:"csv",buttonContent:"Export to csv",separator:",",mimeType:"text/csv",fileExtension:".csv",enforceStrictRFC4180:!0},txt:{defaultClass:"txt",buttonContent:"Export to txt",separator:" ",mimeType:"text/plain",fileExtension:".txt",enforceStrictRFC4180:!0}},typeConfig:{string:{defaultClass:"tableexport-string"},number:{defaultClass:"tableexport-number",assert:function(t){return!isNaN(t)}},"boolean":{defaultClass:"tableexport-boolean",assert:function(t){return"true"===t.toLowerCase()||"false"===t.toLowerCase()}},date:{defaultClass:"tableexport-date",assert:function(t){return!/.*%/.test(t)&&!isNaN(Date.parse(t))}}},exporters:{build:function(t,e){var r=this,o=r.settings,n=r.formatConfig[e],i=n.separator,s=t.rcMap,l=function(t){if(b(e))return{v:o.formatValue(t.textContent),t:r.getType(t.className)};switch(e){case v.CSV:return'"'+o.formatValue(t.textContent.replace(/"/g,'""'))+'"';default:return o.formatValue(t.textContent)}},p=a(t.rows).map(function(t,r){if(s.isIgnore(r))return s.handleRowColMapProp(s.TYPE.IGNORE);if(s.isEmpty(r))return s.handleRowColMapProp(s.TYPE.EMPTY);var o=t.querySelectorAll("th, td");return a(o).map(function(t,o){var n=l(t);return s.isIgnore(r,o)?s.handleRowColMapProp(s.TYPE.IGNORE):s.isEmpty(r,o)?s.handleRowColMapProp(s.TYPE.EMPTY):s.handleRowColMapProp(s.TYPE.DEFAULT,r,o,e,n,i)}).processCols(e,i)}).processRows(e,r.rowDel),u=JSON.stringify({data:p,filename:t.filename,mimeType:n.mimeType,fileExtension:n.fileExtension,merges:s.merges}),c=x({uuid:t.uuid,type:e});return o.exportButtons&&t.checkCaption(r.createObjButton(c,u,n.buttonContent,n.defaultClass,o.bootstrapSettings)),m.getInstance().setItem(c,u,!0)}},createObjButton:function(t,e,r,o,n){var a=document.createElement("button");return a.setAttribute("type","button"),a.setAttribute(this.storageKey,t),a.className=n.bootstrapClass+n.bootstrapTheme+o,a.textContent=r,a},escapeHtml:function(t){var e=this;return String(t).replace(/[&<>'\/]/g,function(t){return e.entityMap[t]})},unescapeHtml:function(t){var e=String(t);for(var r in this.entityMap)e=e.replace(RegExp(this.entityMap[r],"g"),r);return e},formatValue:function(t,e){return t?e.trim():e},getType:function(t){if(!t)return"";var e=this.typeConfig;return~t.indexOf(e.string.defaultClass)?C.STRING:~t.indexOf(e.number.defaultClass)?C.NUMBER:~t.indexOf(e["boolean"].defaultClass)?C.BOOLEAN:~t.indexOf(e.date.defaultClass)?C.DATE:""},dateNum:function(t,e){e&&(t+=1462);var r=Date.parse(t),o=(r-new Date(Date.UTC(1899,11,30)))/864e5;return Math.floor(o)},createSheet:function(t,e){for(var r={},n={s:{c:1e7,r:1e7},e:{c:0,r:0}},a=this.typeConfig,i=0;i!==t.length;++i)for(var s=0;s!==t[i].length;++s){n.s.r>i&&(n.s.r=i),n.s.c>s&&(n.s.c=s),n.e.r<i&&(n.e.r=i),n.e.c<s&&(n.e.c=s);var l=t[i][s];if(l&&l.v){var p=o.utils.encode_cell({c:s,r:i});l.t||(a.number.assert(l.v)?l.t=C.NUMBER:a["boolean"].assert(l.v)?l.t=C.BOOLEAN:a.date.assert(l.v)?l.t=C.DATE:l.t=C.STRING),l.t===C.DATE&&(l.t=C.NUMBER,l.z=o.SSF._table[14],l.v=this.dateNum(l.v)),r[p]=l}}return r["!merges"]=e,n.s.c<1e7&&(r["!ref"]=o.utils.encode_range(n)),r},downloadHandler:function(t){var e=t.target,r=JSON.parse(m.getInstance().getItem(e.getAttribute(this.storageKey))),o=r.data,n=r.filename,a=r.mimeType,i=r.fileExtension,s=r.merges;this.export2file(o,a,n,i,s)},Workbook:function(){this.SheetNames=[],this.Sheets={}},string2ArrayBuffer:function(t){for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),o=0;o!==t.length;++o)r[o]=255&t.charCodeAt(o);return e},export2file:function(t,o,n,a,i){if(t=this.getRawData(t,a,n,i),g){var s="data:"+o+";"+this.charset+","+t;this.downloadDataURI(s,n,a)}else r(new e([t],{type:o+";"+this.charset}),n+a,!0)},downloadDataURI:function(t,e,r){var o=encodeURI(t),n=document.createElement("a");n.setAttribute("href",o),n.setAttribute("download",e+r),document.body.appendChild(n),n.click()},getBookType:function(t){switch(t){case v.XLS:return v.BIFF2;default:return t}},getRawData:function(t,e,r,n){var a=e.substring(1);if(b(a)){var i=new this.Workbook,s=this.createSheet(t,n),l=this.getBookType(a);r=r||"",i.SheetNames.push(r),i.Sheets[r]=s;var p={bookType:l,bookSST:!1,type:"binary"},u=o.write(i,p);t=this.string2ArrayBuffer(u)}return t},getFileSize:function(t,e){var r=this.getRawData(t,e);return r instanceof ArrayBuffer?r.byteLength:this.string2ArrayBuffer(r).byteLength},update:function(t){return this.remove(),new d(this.selectors,n({},this.defaults,t))},reset:function(){return this.remove(),new d(this.selectors,this.settings)},remove:function(){var t=this;this.selectors.forEach(function(e){var r=e.querySelector("caption."+t.defaultCaptionClass);r&&e.removeChild(r)})}};var m=function(){this._instance=null,this.store=sessionStorage,this.namespace=d.prototype.defaultNamespace,this.getKey=function(t){return this.namespace+t},this.setItem=function(t,e,r){var o=this.getKey(t);if(!this.exists(t)||r)return"string"!=typeof e?c('"value" must be a string.'):(this.store.setItem(o,e),t)},this.getItem=function(t){var e=this.getKey(t);return this.store.getItem(e)},this.exists=function(t){var e=this.getKey(t);return null!==this.store.getItem(e)},this.removeItem=function(t){var e=this.getKey(t);return this.store.removeItem(e)}};m.getInstance=function(){return this._instance||(this._instance=new m),this._instance};var h=function(){this.rcMap=[],this.merges=[],this.isIgnore=function(t,e){var r=h.prototype.TYPE.IGNORE;return this.getRowColMapProp(t,e,r)},this.isEmpty=function(t,e){var r=h.prototype.TYPE.EMPTY;return this.getRowColMapProp(t,e,r)},this.isRowSpan=function(t){var e=h.prototype.TYPE.ROWSPAN;return this.getRowColMapProp(t,void 0,e)},this.isColSpan=function(t){var e=h.prototype.TYPE.COLSPAN;return this.getRowColMapProp(t,void 0,e)},this.isSpan=function(t){return this.isRowSpan(t)||this.isColSpan(t)},this.isMerge=function(t){return this.merges.length>0},this.addMerge=function(t,e){var r=h.prototype.TYPE.MERGE;this.merges.push(e),this.setRowColMapProp(t,void 0,r,this.merges)},this.getRowColMapProp=function(t,e,r){if(this.rcMap[t]){if("undefined"==typeof r)return this.rcMap[t][e];if("undefined"==typeof e)return this.rcMap[t][r];if(this.rcMap[t][e])return this.rcMap[t][e][r]}},this.setRowColMapProp=function(t,e,r,o){return this.rcMap[t]=this.rcMap[t]||[],"undefined"==typeof r?this.rcMap[t][e]=o:"undefined"==typeof e?this.rcMap[t][r]=o:(this.rcMap[t][e]=this.rcMap[t][e]||[],this.rcMap[t][e][r]=o)},this.generateTotal=function(t,e){var r=h.prototype.TYPE.VALUE,o=0;return this.isRowSpan(t)&&this.isColSpan(t)?o=this.getRowColMapProp(t,e,r)||0:this.getRowColMapProp(t,e,r)&&(o=this.getRowColMapProp(t,e,r)),o},this.convertSpanToArray=function(t,e,r,o,n){if(this.rcMap[t]&&this.isSpan(t)){var a=this.generateTotal(t,e);return b(r)?new Array(a).concat(o):new Array(a).concat(o).join(n)}return o},this.handleRowColMapProp=function(t,e,r,o,n,a){switch(t){case h.prototype.TYPE.IGNORE:return;case h.prototype.TYPE.EMPTY:return" ";case h.prototype.TYPE.DEFAULT:default:return this.convertSpanToArray(e,r,o,n,a)}}};h.prototype={OFFSET:1,TYPE:{IGNORE:"ignore",EMPTY:"empty",MERGE:"merge",ROWSPAN:"rowspan",ROWSPANTOTAL:"rowspantotal",COLSPAN:"colspan",COLSPANTOTAL:"colspantotal",DEFAULT:"default",VALUE:"value"},build:function(t,e){var r=this,o=r.OFFSET,n=r.rowLength=t.rows.length,s=function(t,e){r.setRowColMapProp(t,e,r.TYPE.IGNORE,!0)},l=function(t,e){r.setRowColMapProp(t,e,r.TYPE.EMPTY,!0)},p=function(t,e,o){for(var a,i,s,l,p,f,d,m,h,g=+t.getAttribute("rowspan"),b=+t.getAttribute("colspan"),v=0;v<g;v++){if(v+e>=n)return;if(b&&(a=u(t,v+e,o,v>0,g)),g<=1)return!1;var y=r.rcMap["c"+(o-1)]?r.rcMap["c"+(o-1)][v+e]:0;if(y&&(r.rcMap["c"+o]=r.rcMap["c"+o]||[],r.rcMap["c"+o][v+e]=(r.rcMap["c"+o][v+e]||0)+y),g&&0===v&&b>1)for(var C=0;C<g;C++)r.rcMap["c"+(o+1)]=r.rcMap["c"+(o+1)]||[],r.rcMap["c"+(o+1)][v+e+C]=(r.rcMap["c"+(o+1)][v+e+C]||0)+Math.max(1,b);if(v>=1&&(i=r.getRowColMapProp(v+e,void 0,r.TYPE.ROWSPAN)||0,r.setRowColMapProp(v+e,void 0,r.TYPE.ROWSPAN,i+1),!a&&(l=r.getRowColMapProp(v+e,o-i,r.TYPE.VALUE)||0,r.setRowColMapProp(v+e,o-i,r.TYPE.VALUE,l+1),g>1&&1===v))){var w=r.rcMap["c"+o]&&r.rcMap["c"+o][v+e];p=r.getRowColMapProp(e,void 0,r.TYPE.COLSPANTOTAL)||0,s=r.getRowColMapProp(e,void 0,r.TYPE.COLSPAN)||0,f=e,d=e+g-1,m=o+p-s+(w||0),h=m+Math.max(1,b)-1,c(f,m,d,h)}}},u=function(t,e,n,a,i){var s,l,p,u,f=+t.getAttribute("colspan"),d=r.getRowColMapProp(e,void 0,r.TYPE.COLSPAN)||0,m=r.getRowColMapProp(e,void 0,r.TYPE.COLSPANTOTAL)||0;return!(f<=1)&&(r.setRowColMapProp(e,void 0,r.TYPE.COLSPAN,d+1),r.setRowColMapProp(e,void 0,r.TYPE.COLSPANTOTAL,m+f),a?(r.setRowColMapProp(e,n-d,r.TYPE.VALUE,f),!0):(s=e,l=e+(i||1)-o,p=n+m-d,u=n+m-d+(f-o),r.setRowColMapProp(e,n+o,r.TYPE.VALUE,f-o),c(s,p,l,u),void 0))},c=function(t,e,o,n){var a={s:{r:t,c:e},e:{r:o,c:n}};return r.addMerge(t,a)};return a(t.rows).map(function(r,o){(~e.ignoreRows.indexOf(o-t.thAdj)||i(r,e.ignoreCSS))&&s(o),i(r,e.emptyCSS)&&l(o);var n=r.querySelectorAll("th, td");return a(n).map(function(t,r){(~e.ignoreCols.indexOf(r)||i(t,e.ignoreCSS))&&s(o,r),i(t,e.emptyCSS)&&l(o,r),t.hasAttribute("rowspan")?p(t,o,r):t.hasAttribute("colspan")&&u(t,o,r)})}),r}};var g=function(t){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4))}(navigator.userAgent||navigator.vendor||window.opera),b=function(){return function(t){return o&&!g&&!d.prototype.formatConfig[t].enforceStrictRFC4180}}(),v=function(){return d.prototype.CONSTANTS.FORMAT}(),y=function(){return Object.keys(v).map(function(t){return v[t]})}(),C=function(){return d.prototype.CONSTANTS.TYPE}();Object.defineProperty(Array.prototype,"processRows",{enumerable:!1,value:function(t,e){return b(t)?this.map(l).filter(s):this.filter(s).join(e)}}),Object.defineProperty(Array.prototype,"processCols",{enumerable:!1,value:function(t,e){return b(t)?this.filter(s):this.filter(s).join(e)}});var w=function(){var t=0;return function(e){var r=e.getAttribute(d.prototype.tableKey);return r||(r=e.id?e.id:d.prototype.defaultNamespace+ ++t,e.setAttribute(d.prototype.tableKey,r)),r}}(),x=function(){return function(t){var e,r,o=0,n=t.type;if(t=JSON.stringify(t),0===t.length)return o;for(e=0;e<t.length;e++)r=t.charCodeAt(e),o=(o<<5)-o+r,o|=0;return o.toString(16).substring(1)+"-"+n}}(),S=function(){var t=null;return function(e,r,o,n){for(var a=o.bind(n),i=0;i<e.length;++i)t&&e[i].removeEventListener(r,t,!1),e[i].addEventListener(r,a,!1);t=a}}();if(t){t.fn.tableExport=function(e){return d.call(n({},d.prototype,t.fn.tableExport),this,e)};for(var E in d.prototype)t.fn.tableExport[E]=d.prototype[E]}return d.TableExport=d,d});
!function(t,r){if("function"==typeof define&&define.amd)define(function(t){var e;try{e=t("jquery")}catch(t){}return r(e,t("blobjs"),t("file-saverjs"),t("xlsx"))});else if("object"==typeof exports&&"string"!=typeof exports.nodeName){var e;try{e=require("jquery")}catch(t){}module.exports=r(e,require("blobjs"),require("file-saverjs"),require("xlsx"))}else t.TableExport=r(t.jQuery,t.Blob,t.saveAs,t.XLSX)}(this,function(e,s,l,c){"use strict";var o=function(t,e){var a=this;if(!t)return S('"selectors" is required. \nUsage: TableExport(selectors, options)');if(!a)return new o(t,e);a.settings=y({},a.defaults,e),a.selectors=C(t);var i=a.settings;i.ignoreRows=i.ignoreRows instanceof Array?i.ignoreRows:[i.ignoreRows],i.ignoreCols=i.ignoreCols instanceof Array?i.ignoreCols:[i.ignoreCols],i.ignoreCSS=a.ignoreCSS instanceof Array?a.ignoreCSS:[a.ignoreCSS],i.emptyCSS=a.emptyCSS instanceof Array?a.emptyCSS:[a.emptyCSS],i.formatValue=a.formatValue.bind(this,i.trimWhitespace),i.bootstrapSettings=function(t,e,r){var o={};o.bootstrapSpacing=t?(o.bootstrapClass=e[0]+" ",o.bootstrapTheme=e[1]+" ",e[2]+" "):(o.bootstrapClass=r+" ",o.bootstrapTheme="","");return o}(i.bootstrap,a.bootstrapConfig,a.defaultButton);var s={};a.getExportData=function(){return s},a.selectors.forEach(function(r){var o={};o.rows=C(r.querySelectorAll("tbody > tr")),o.rows=i.headers?C(r.querySelectorAll("thead > tr")).concat(o.rows):o.rows,o.rows=i.footers?o.rows.concat(C(r.querySelectorAll("tfoot > tr"))):o.rows,o.thAdj=i.headers?r.querySelectorAll("thead > tr").length:0,o.filename="id"===i.filename?r.getAttribute("id")?r.getAttribute("id"):a.defaultFilename:i.filename?i.filename:a.defaultFilename,o.uuid=b(r),o.checkCaption=function(t){var e=r.querySelectorAll("caption."+a.defaultCaptionClass);e.length?e[0].appendChild(t):((e=document.createElement("caption")).className=i.bootstrapSettings.bootstrapSpacing+i.position+" "+a.defaultCaptionClass,e.appendChild(t),r.insertBefore(e,r.firstChild))},o.setExportData=function(t){var e=u.getInstance().getItem(t),r=t.substring(t.indexOf("-")+1);s[o.uuid]=s[o.uuid]||{},s[o.uuid][r]=JSON.parse(e)},o.rcMap=(new p).build(o,i);var n=h.reduce(function(t,e){return t[e]=0,t},{});i.formats.forEach(function(t){return e=t,~h.indexOf(e)?function(t){var e;switch(t){case m.TXT:case m.CSV:case m.XLS:e=!0;break;default:e=d(t)}return e}(t)?void(n[t]||(o.setExportData(a.exporters.build.call(a,o,t)),n[t]++)):S('"'+t+'" requires "js-xlsx".'):S('"'+t+'" is not a valid format. \nFormats: '+h.join(", "));var e})});var r=document.querySelectorAll("button["+a.storageKey+"]");return n(r,"click",a.downloadHandler,a),a};o.prototype={version:"5.0.4",defaults:{headers:!0,footers:!0,formats:["xlsx","csv","txt"],filename:"id",bootstrap:!1,exportButtons:!0,position:"bottom",ignoreRows:null,ignoreCols:null,trimWhitespace:!0},CONSTANTS:{FORMAT:{XLSX:"xlsx",XLSM:"xlsm",XLSB:"xlsb",BIFF2:"biff2",XLS:"xls",CSV:"csv",TXT:"txt"},TYPE:{STRING:"s",NUMBER:"n",BOOLEAN:"b",DATE:"d"}},charset:"charset=utf-8",defaultFilename:"myDownload",defaultButton:"button-default",defaultCaptionClass:"tableexport-caption",defaultNamespace:"tableexport-",tableKey:"tableexport-key",storageKey:"tableexport-id",ignoreCSS:".tableexport-ignore",emptyCSS:".tableexport-empty",bootstrapConfig:["btn","btn-default","btn-toolbar"],rowDel:"\r\n",entityMap:{"&":"&#38;","<":"&#60;",">":"&#62;","'":"&#39;","/":"&#47;"},formatConfig:{xlsx:{defaultClass:"xlsx",buttonContent:"Export to xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fileExtension:".xlsx"},xlsm:{defaultClass:"xlsm",buttonContent:"Export to xlsm",mimeType:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",fileExtension:".xlsm"},xlsb:{defaultClass:"xlsb",buttonContent:"Export to xlsb",mimeType:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",fileExtension:".xlsb"},xls:{defaultClass:"xls",buttonContent:"Export to xls",separator:"\t",mimeType:"application/vnd.ms-excel",fileExtension:".xls",enforceStrictRFC4180:!1},csv:{defaultClass:"csv",buttonContent:"Export to csv",separator:",",mimeType:"text/csv",fileExtension:".csv",enforceStrictRFC4180:!0},txt:{defaultClass:"txt",buttonContent:"Export to txt",separator:" ",mimeType:"text/plain",fileExtension:".txt",enforceStrictRFC4180:!0}},typeConfig:{string:{defaultClass:"tableexport-string"},number:{defaultClass:"tableexport-number",assert:function(t){return!isNaN(t)}},boolean:{defaultClass:"tableexport-boolean",assert:function(t){return"true"===t.toLowerCase()||"false"===t.toLowerCase()}},date:{defaultClass:"tableexport-date",assert:function(t){return!/.*%/.test(t)&&!isNaN(Date.parse(t))}}},exporters:{build:function(t,n){var a=this,i=a.settings,e=a.formatConfig[n],s=e.separator,l=t.rcMap,r=C(t.rows).map(function(t,o){return l.isIgnore(o)?l.handleRowColMapProp(l.TYPE.IGNORE):l.isEmpty(o)?l.handleRowColMapProp(l.TYPE.EMPTY):C(t.querySelectorAll("th, td")).map(function(t,e){var r=function(t){if(d(n))return{v:i.formatValue(t.textContent),t:a.getType(t.className)};switch(n){case m.CSV:return'"'+i.formatValue(t.textContent.replace(/"/g,'""'))+'"';default:return i.formatValue(t.textContent)}}(t);return l.isIgnore(o,e)?l.handleRowColMapProp(l.TYPE.IGNORE):l.isEmpty(o,e)?l.handleRowColMapProp(l.TYPE.EMPTY):l.handleRowColMapProp(l.TYPE.DEFAULT,o,e,n,r,s)}).processCols(n,s)}).processRows(n,a.rowDel),o=JSON.stringify({data:r,filename:t.filename,mimeType:e.mimeType,fileExtension:e.fileExtension,merges:l.merges}),p=v({uuid:t.uuid,type:n});return i.exportButtons&&t.checkCaption(a.createObjButton(p,o,e.buttonContent,e.defaultClass,i.bootstrapSettings)),u.getInstance().setItem(p,o,!0)}},createObjButton:function(t,e,r,o,n){var a=document.createElement("button");return a.setAttribute("type","button"),a.setAttribute(this.storageKey,t),a.className=n.bootstrapClass+n.bootstrapTheme+o,a.textContent=r,a},escapeHtml:function(t){var e=this;return String(t).replace(/[&<>'\/]/g,function(t){return e.entityMap[t]})},unescapeHtml:function(t){var e=String(t);for(var r in this.entityMap)e=e.replace(RegExp(this.entityMap[r],"g"),r);return e},formatValue:function(t,e){return t?e.trim():e},getType:function(t){if(!t)return"";var e=this.typeConfig;return~t.indexOf(e.string.defaultClass)?g.STRING:~t.indexOf(e.number.defaultClass)?g.NUMBER:~t.indexOf(e.boolean.defaultClass)?g.BOOLEAN:~t.indexOf(e.date.defaultClass)?g.DATE:""},dateNum:function(t,e){e&&(t+=1462);var r=(Date.parse(t)-new Date(Date.UTC(1899,11,30)))/864e5;return Math.floor(r)},createSheet:function(t,e){for(var r={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},n=this.typeConfig,a=0;a!==t.length;++a)for(var i=0;i!==t[a].length;++i){o.s.r>a&&(o.s.r=a),o.s.c>i&&(o.s.c=i),o.e.r<a&&(o.e.r=a),o.e.c<i&&(o.e.c=i);var s=t[a][i];if(s&&s.v){var l=c.utils.encode_cell({c:i,r:a});s.t||(n.number.assert(s.v)?s.t=g.NUMBER:n.boolean.assert(s.v)?s.t=g.BOOLEAN:n.date.assert(s.v)?s.t=g.DATE:s.t=g.STRING),s.t===g.DATE&&(s.t=g.NUMBER,s.z=c.SSF._table[14],s.v=this.dateNum(s.v)),r[l]=s}}return r["!merges"]=e,o.s.c<1e7&&(r["!ref"]=c.utils.encode_range(o)),r},downloadHandler:function(t){var e=t.target,r=JSON.parse(u.getInstance().getItem(e.getAttribute(this.storageKey))),o=r.data,n=r.filename,a=r.mimeType,i=r.fileExtension,s=r.merges;this.export2file(o,a,n,i,s)},Workbook:function(){this.SheetNames=[],this.Sheets={}},string2ArrayBuffer:function(t){for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),o=0;o!==t.length;++o)r[o]=255&t.charCodeAt(o);return e},export2file:function(t,e,r,o,n){var a=o.slice(1);if(t=this.getRawData(t,o,r,n),!f||a!==m.CSV&&a!==m.TXT)l(new s([t],{type:e+";"+this.charset}),r+o,!0);else{var i="data:"+e+";"+this.charset+","+t;this.downloadDataURI(i,r,o)}},downloadDataURI:function(t,e,r){var o=encodeURI(t),n=document.createElement("a");n.setAttribute("href",o),n.setAttribute("download",e+r),document.body.appendChild(n),n.click()},getBookType:function(t){switch(t){case m.XLS:return m.BIFF2;default:return t}},getRawData:function(t,e,r,o){var n=e.substring(1);if(d(n)){var a=new this.Workbook,i=this.createSheet(t,o),s=this.getBookType(n);r=r||"",a.SheetNames.push(r),a.Sheets[r]=i;var l={bookType:s,bookSST:!1,type:"binary"},p=c.write(a,l);t=this.string2ArrayBuffer(p)}return t},getFileSize:function(t,e){var r=this.getRawData(t,e);return r instanceof ArrayBuffer?r.byteLength:this.string2ArrayBuffer(r).byteLength},update:function(t){return this.remove(),new o(this.selectors,y({},this.defaults,t))},reset:function(){return this.remove(),new o(this.selectors,this.settings)},remove:function(){var r=this;this.selectors.forEach(function(t){var e=t.querySelector("caption."+r.defaultCaptionClass);e&&t.removeChild(e)})}};var u=function(){this._instance=null,this.store=sessionStorage,this.namespace=o.prototype.defaultNamespace,this.getKey=function(t){return this.namespace+t},this.setItem=function(t,e,r){var o=this.getKey(t);if(!this.exists(t)||r)return"string"!=typeof e?S('"value" must be a string.'):(this.store.setItem(o,e),t)},this.getItem=function(t){var e=this.getKey(t);return this.store.getItem(e)},this.exists=function(t){var e=this.getKey(t);return null!==this.store.getItem(e)},this.removeItem=function(t){var e=this.getKey(t);return this.store.removeItem(e)}};u.getInstance=function(){return this._instance||(this._instance=new u),this._instance};var p=function(){this.rcMap=[],this.merges=[],this.isIgnore=function(t,e){var r=p.prototype.TYPE.IGNORE;return this.getRowColMapProp(t,e,r)},this.isEmpty=function(t,e){var r=p.prototype.TYPE.EMPTY;return this.getRowColMapProp(t,e,r)},this.isRowSpan=function(t){var e=p.prototype.TYPE.ROWSPAN;return this.getRowColMapProp(t,void 0,e)},this.isColSpan=function(t){var e=p.prototype.TYPE.COLSPAN;return this.getRowColMapProp(t,void 0,e)},this.isSpan=function(t){return this.isRowSpan(t)||this.isColSpan(t)},this.isMerge=function(t){return 0<this.merges.length},this.addMerge=function(t,e){var r=p.prototype.TYPE.MERGE;this.merges.push(e),this.setRowColMapProp(t,void 0,r,this.merges)},this.getRowColMapProp=function(t,e,r){if(this.rcMap[t]){if(void 0===r)return this.rcMap[t][e];if(void 0===e)return this.rcMap[t][r];if(this.rcMap[t][e])return this.rcMap[t][e][r]}},this.setRowColMapProp=function(t,e,r,o){return this.rcMap[t]=this.rcMap[t]||[],void 0===r?this.rcMap[t][e]=o:void 0===e?this.rcMap[t][r]=o:(this.rcMap[t][e]=this.rcMap[t][e]||[],this.rcMap[t][e][r]=o)},this.generateTotal=function(t,e){var r=p.prototype.TYPE.VALUE,o=0;return this.isRowSpan(t)&&this.isColSpan(t)?o=this.getRowColMapProp(t,e,r)||0:this.getRowColMapProp(t,e,r)&&(o=this.getRowColMapProp(t,e,r)),o},this.convertSpanToArray=function(t,e,r,o,n){if(this.rcMap[t]&&this.isSpan(t)){var a=this.generateTotal(t,e);return d(r)?new Array(a).concat(o):new Array(a).concat(o).join(n)}return o},this.handleRowColMapProp=function(t,e,r,o,n,a){switch(t){case p.prototype.TYPE.IGNORE:return;case p.prototype.TYPE.EMPTY:return" ";case p.prototype.TYPE.DEFAULT:default:return this.convertSpanToArray(e,r,o,n,a)}}};p.prototype={OFFSET:1,TYPE:{IGNORE:"ignore",EMPTY:"empty",MERGE:"merge",ROWSPAN:"rowspan",ROWSPANTOTAL:"rowspantotal",COLSPAN:"colspan",COLSPANTOTAL:"colspantotal",DEFAULT:"default",VALUE:"value"},build:function(e,o){var g=this,f=g.OFFSET,b=g.rowLength=e.rows.length,n=function(t,e){g.setRowColMapProp(t,e,g.TYPE.IGNORE,!0)},a=function(t,e){g.setRowColMapProp(t,e,g.TYPE.EMPTY,!0)},v=function(t,e,r,o,n){var a,i,s,l,p=+t.getAttribute("colspan"),c=g.getRowColMapProp(e,void 0,g.TYPE.COLSPAN)||0,u=g.getRowColMapProp(e,void 0,g.TYPE.COLSPANTOTAL)||0;return!(p<=1)&&(g.setRowColMapProp(e,void 0,g.TYPE.COLSPAN,c+1),g.setRowColMapProp(e,void 0,g.TYPE.COLSPANTOTAL,u+p),o?(g.setRowColMapProp(e,r-c,g.TYPE.VALUE,p),!0):(i=(a=e)+(n||1)-f,l=(s=r+u-c)+(p-f),g.setRowColMapProp(e,r+f,g.TYPE.VALUE,p-f),void y(a,s,i,l)))},y=function(t,e,r,o){var n={s:{r:t,c:e},e:{r:r,c:o}};return g.addMerge(t,n)};return C(e.rows).map(function(t,r){return(~o.ignoreRows.indexOf(r-e.thAdj)||w(t,o.ignoreCSS))&&n(r),w(t,o.emptyCSS)&&a(r),C(t.querySelectorAll("th, td")).map(function(t,e){(~o.ignoreCols.indexOf(e)||w(t,o.ignoreCSS))&&n(r,e),w(t,o.emptyCSS)&&a(r,e),t.hasAttribute("rowspan")?function(t,e,r){for(var o,n,a,i,s,l,p,c=+t.getAttribute("rowspan"),u=+t.getAttribute("colspan"),f=0;f<c;f++){if(b<=f+e)return;if(u&&(o=v(t,f+e,r,0<f,c)),c<=1)return;var d=g.rcMap["c"+(r-1)]?g.rcMap["c"+(r-1)][f+e]:0;if(d&&(g.rcMap["c"+r]=g.rcMap["c"+r]||[],g.rcMap["c"+r][f+e]=(g.rcMap["c"+r][f+e]||0)+d),c&&0===f&&1<u)for(var m=0;m<c;m++)g.rcMap["c"+(r+1)]=g.rcMap["c"+(r+1)]||[],g.rcMap["c"+(r+1)][f+e+m]=(g.rcMap["c"+(r+1)][f+e+m]||0)+Math.max(1,u);if(1<=f&&(n=g.getRowColMapProp(f+e,void 0,g.TYPE.ROWSPAN)||0,g.setRowColMapProp(f+e,void 0,g.TYPE.ROWSPAN,n+1),!o&&(a=g.getRowColMapProp(f+e,r-n,g.TYPE.VALUE)||0,g.setRowColMapProp(f+e,r-n,g.TYPE.VALUE,a+1),1<c&&1===f))){var h=g.rcMap["c"+r]&&g.rcMap["c"+r][f+e];s=(i=e)+c-1,p=(l=r+(g.getRowColMapProp(e,void 0,g.TYPE.COLSPANTOTAL)||0)-(g.getRowColMapProp(e,void 0,g.TYPE.COLSPAN)||0)+(h||0))+Math.max(1,u)-1,y(i,l,s,p)}}}(t,r,e):t.hasAttribute("colspan")&&v(t,r,e)})}),g}};var t,f=(t=navigator.userAgent||navigator.vendor||window.opera,/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4))),d=function(t){return c&&!o.prototype.formatConfig[t].enforceStrictRFC4180},m=o.prototype.CONSTANTS.FORMAT,h=Object.keys(m).map(function(t){return m[t]}),g=o.prototype.CONSTANTS.TYPE;Object.defineProperty(Array.prototype,"processRows",{enumerable:!1,value:function(t,e){return d(t)?this.map(x).filter(a):this.filter(a).join(e)}}),Object.defineProperty(Array.prototype,"processCols",{enumerable:!1,value:function(t,e){return d(t)?this.filter(a):this.filter(a).join(e)}});var r,i,b=(r=0,function(t){var e=t.getAttribute(o.prototype.tableKey);return e||(e=t.id?t.id:o.prototype.defaultNamespace+ ++r,t.setAttribute(o.prototype.tableKey,e)),e}),v=function(t){var e,r=0,o=t.type;if(0===(t=JSON.stringify(t)).length)return r;for(e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return r.toString(16).substring(1)+"-"+o},n=(i=null,function(t,e,r,o){for(var n=r.bind(o),a=0;a<t.length;++a)i&&t[a].removeEventListener(e,i,!1),t[a].addEventListener(e,n,!1);i=n});function y(){for(var t=arguments,e=1;e<t.length;e++)for(var r in t[e])t[e].hasOwnProperty(r)&&(t[0][r]=t[e][r]);return t[0]}function C(t){return void 0===t.length?[].concat(t):[].slice.call(t)}function w(e,t){return 0<t.filter(function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),e)}).length}function a(t){return void 0!==t}function x(t){return t instanceof Array?[].concat.apply([],t):t}function S(t){return console.error(t),new Error(t)}if(e)for(var E in e.fn.tableExport=function(t){return o.call(y({},o.prototype,e.fn.tableExport),this,t)},o.prototype)e.fn.tableExport[E]=o.prototype[E];return o.TableExport=o});

@@ -1,2 +0,2 @@

// Type definitions for TableExport v5.0.3
// Type definitions for TableExport v5.0.4
// Project: https://tableexport.travismclarke.com

@@ -6,3 +6,3 @@ // Definitions by: Travis Clarke <https://github.com/clarketm>

/*!
* TableExport.js v5.0.3 (https://www.travismclarke.com)
* TableExport.js v5.0.4 (https://www.travismclarke.com)
*

@@ -265,3 +265,3 @@ * Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com

}
}
}

@@ -43,5 +43,5 @@ <!--[![TableExport](/Hero.png)](https://tableexport.travismclarke.com)-->

| :------: | :----------: | :--------: |
| __CSS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/css/tableexport.css) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/css/tableexport.min.css) |
| __JS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/js/tableexport.js) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/js/tableexport.min.js) |
| __Images__ | &mdash; | [🔗<sup>xlsx</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/xlsx.svg)[🔗<sup>xls</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/xls.svg)[🔗<sup>csv</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/csv.svg)[🔗<sup>txt</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/txt.svg) |
| __CSS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/css/tableexport.css) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/css/tableexport.min.css) |
| __JS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/js/tableexport.js) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/js/tableexport.min.js) |
| __Images__ | &mdash; | [🔗<sup>xlsx</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/xlsx.svg)[🔗<sup>xls</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/xls.svg)[🔗<sup>csv</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/csv.svg)[🔗<sup>txt</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/txt.svg) |

@@ -48,0 +48,0 @@

{
"name": "tableexport",
"version": "5.0.3",
"version": "5.0.4",
"authors": [

@@ -37,4 +37,4 @@ "clarketm <travis.m.clarke@gmail.com>"

"peerDependencies": {
"jquery": ">= 1.1.2",
"bootstrap": ">= 3 < 4"
"bootstrap": ">= 3 < 4",
"jquery": ">= 1.1.2"
},

@@ -44,13 +44,13 @@ "dependencies": {

"file-saverjs": "^1.3.6",
"xlsx": "^0.9.13"
"xlsx": "^0.14.0"
},
"devDependencies": {
"del": "^2.2.0",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-bump": "^2.4.0",
"gulp-clean-css": "^2.0.7",
"gulp-bump": "^3.1.1",
"gulp-clean-css": "^4.0.0",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-uglify": "^1.5.3",
"jasmine": "^2.4.1"
"gulp-replace": "^1.0.0",
"gulp-uglify": "^3.0.1",
"jasmine": "^3.3.0"
},

@@ -57,0 +57,0 @@ "license": "Apache-2.0",

@@ -43,5 +43,5 @@ [![TableExport](/Hero.png)](https://tableexport.travismclarke.com)

| :------: | :----------: | :--------: |
| __CSS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/css/tableexport.css) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/css/tableexport.min.css) |
| __JS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/js/tableexport.js) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/js/tableexport.min.js) |
| __Images__ | &mdash; | [🔗<sup>xlsx</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/xlsx.svg)[🔗<sup>xls</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/xls.svg)[🔗<sup>csv</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/csv.svg)[🔗<sup>txt</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.3/img/txt.svg) |
| __CSS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/css/tableexport.css) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/css/tableexport.min.css) |
| __JS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/js/tableexport.js) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/js/tableexport.min.js) |
| __Images__ | &mdash; | [🔗<sup>xlsx</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/xlsx.svg)[🔗<sup>xls</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/xls.svg)[🔗<sup>csv</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/csv.svg)[🔗<sup>txt</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.4/img/txt.svg) |

@@ -48,0 +48,0 @@

/*!
* TableExport.js v5.0.3 (https://www.travismclarke.com)
* TableExport.js v5.0.4 (https://www.travismclarke.com)
*

@@ -151,3 +151,3 @@ * Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com

*/
version: '5.0.3',
version: '5.0.4',
/**

@@ -572,6 +572,6 @@ * Default library options.

export2file: function (data, mime, name, extension, merges) {
var format = extension.slice(1);
data = this.getRawData(data, extension, name, merges);
if (_isMobile) {
// TODO: fix dataURI on iphone (xlsx & xls)
if (_isMobile && (format === _FORMAT.CSV || format === _FORMAT.TXT)) {
var dataURI = 'data:' + mime + ';' + this.charset + ',' + data;

@@ -947,3 +947,2 @@ this.downloadDataURI(dataURI, name, extension);

XLSX
&& !_isMobile
&& !(TableExport.prototype.formatConfig[key].enforceStrictRFC4180)

@@ -950,0 +949,0 @@ );

/*!
* TableExport.js v5.0.3 (https://www.travismclarke.com)
* TableExport.js v5.0.4 (https://www.travismclarke.com)
*

@@ -19,2 +19,2 @@ * Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com

*/
!function(t,e){if("function"==typeof define&&define.amd)define(function(t){var r;try{r=t("jquery")}catch(o){}return e(r,t("blobjs"),t("file-saverjs"),t("xlsx"))});else if("object"==typeof exports&&"string"!=typeof exports.nodeName){var r;try{r=require("jquery")}catch(o){}module.exports=e(r,require("blobjs"),require("file-saverjs"),require("xlsx"))}else t.TableExport=e(t.jQuery,t.Blob,t.saveAs,t.XLSX)}(this,function(t,e,r,o){"use strict";function n(){for(var t=arguments,e=1;e<t.length;e++)for(var r in t[e])t[e].hasOwnProperty(r)&&(t[0][r]=t[e][r]);return t[0]}function a(t){return"undefined"==typeof t.length?[].concat(t):[].slice.call(t)}function i(t,e){return e.filter(function(e){return[].indexOf.call(document.querySelectorAll(e),t)!==-1}).length>0}function s(t){return"undefined"!=typeof t}function l(t){return t instanceof Array?[].concat.apply([],t):t}function p(t){return~y.indexOf(t)}function u(t){var e;switch(t){case v.TXT:case v.CSV:case v.XLS:e=!0;break;default:e=b(t)}return e}function c(t){return console.error(t),new Error(t)}function f(t,e,r){var o={};return t?(o.bootstrapClass=e[0]+" ",o.bootstrapTheme=e[1]+" ",o.bootstrapSpacing=e[2]+" "):(o.bootstrapClass=r+" ",o.bootstrapTheme="",o.bootstrapSpacing=""),o}var d=function(t,e){var r=this;if(!t)return c('"selectors" is required. \nUsage: TableExport(selectors, options)');if(!r)return new d(t,e);r.settings=n({},r.defaults,e),r.selectors=a(t);var o=r.settings;o.ignoreRows=o.ignoreRows instanceof Array?o.ignoreRows:[o.ignoreRows],o.ignoreCols=o.ignoreCols instanceof Array?o.ignoreCols:[o.ignoreCols],o.ignoreCSS=r.ignoreCSS instanceof Array?r.ignoreCSS:[r.ignoreCSS],o.emptyCSS=r.emptyCSS instanceof Array?r.emptyCSS:[r.emptyCSS],o.formatValue=r.formatValue.bind(this,o.trimWhitespace),o.bootstrapSettings=f(o.bootstrap,r.bootstrapConfig,r.defaultButton);var i={};r.getExportData=function(){return i},r.selectors.forEach(function(t){var e={};e.rows=a(t.querySelectorAll("tbody > tr")),e.rows=o.headers?a(t.querySelectorAll("thead > tr")).concat(e.rows):e.rows,e.rows=o.footers?e.rows.concat(a(t.querySelectorAll("tfoot > tr"))):e.rows,e.thAdj=o.headers?t.querySelectorAll("thead > tr").length:0,e.filename="id"===o.filename?t.getAttribute("id")?t.getAttribute("id"):r.defaultFilename:o.filename?o.filename:r.defaultFilename,e.uuid=w(t),e.checkCaption=function(e){var n=t.querySelectorAll("caption."+r.defaultCaptionClass);n.length?n[0].appendChild(e):(n=document.createElement("caption"),n.className=o.bootstrapSettings.bootstrapSpacing+o.position+" "+r.defaultCaptionClass,n.appendChild(e),t.insertBefore(n,t.firstChild))},e.setExportData=function(){return function(t){var r=m.getInstance().getItem(t),o=t.substring(t.indexOf("-")+1);i[e.uuid]=i[e.uuid]||{},i[e.uuid][o]=JSON.parse(r)}}(),e.rcMap=(new h).build(e,o);var n=y.reduce(function(t,e){return t[e]=0,t},{});o.formats.forEach(function(t){return p(t)?u(t)?void(n[t]||(e.setExportData(r.exporters.build.call(r,e,t)),n[t]++)):c('"'+t+'" requires "js-xlsx".'):c('"'+t+'" is not a valid format. \nFormats: '+y.join(", "))})});var s=document.querySelectorAll("button["+r.storageKey+"]");return S(s,"click",r.downloadHandler,r),r};d.prototype={version:"5.0.3",defaults:{headers:!0,footers:!0,formats:["xlsx","csv","txt"],filename:"id",bootstrap:!1,exportButtons:!0,position:"bottom",ignoreRows:null,ignoreCols:null,trimWhitespace:!0},CONSTANTS:{FORMAT:{XLSX:"xlsx",XLSM:"xlsm",XLSB:"xlsb",BIFF2:"biff2",XLS:"xls",CSV:"csv",TXT:"txt"},TYPE:{STRING:"s",NUMBER:"n",BOOLEAN:"b",DATE:"d"}},charset:"charset=utf-8",defaultFilename:"myDownload",defaultButton:"button-default",defaultCaptionClass:"tableexport-caption",defaultNamespace:"tableexport-",tableKey:"tableexport-key",storageKey:"tableexport-id",ignoreCSS:".tableexport-ignore",emptyCSS:".tableexport-empty",bootstrapConfig:["btn","btn-default","btn-toolbar"],rowDel:"\r\n",entityMap:{"&":"&#38;","<":"&#60;",">":"&#62;","'":"&#39;","/":"&#47;"},formatConfig:{xlsx:{defaultClass:"xlsx",buttonContent:"Export to xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fileExtension:".xlsx"},xlsm:{defaultClass:"xlsm",buttonContent:"Export to xlsm",mimeType:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",fileExtension:".xlsm"},xlsb:{defaultClass:"xlsb",buttonContent:"Export to xlsb",mimeType:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",fileExtension:".xlsb"},xls:{defaultClass:"xls",buttonContent:"Export to xls",separator:"\t",mimeType:"application/vnd.ms-excel",fileExtension:".xls",enforceStrictRFC4180:!1},csv:{defaultClass:"csv",buttonContent:"Export to csv",separator:",",mimeType:"text/csv",fileExtension:".csv",enforceStrictRFC4180:!0},txt:{defaultClass:"txt",buttonContent:"Export to txt",separator:" ",mimeType:"text/plain",fileExtension:".txt",enforceStrictRFC4180:!0}},typeConfig:{string:{defaultClass:"tableexport-string"},number:{defaultClass:"tableexport-number",assert:function(t){return!isNaN(t)}},"boolean":{defaultClass:"tableexport-boolean",assert:function(t){return"true"===t.toLowerCase()||"false"===t.toLowerCase()}},date:{defaultClass:"tableexport-date",assert:function(t){return!/.*%/.test(t)&&!isNaN(Date.parse(t))}}},exporters:{build:function(t,e){var r=this,o=r.settings,n=r.formatConfig[e],i=n.separator,s=t.rcMap,l=function(t){if(b(e))return{v:o.formatValue(t.textContent),t:r.getType(t.className)};switch(e){case v.CSV:return'"'+o.formatValue(t.textContent.replace(/"/g,'""'))+'"';default:return o.formatValue(t.textContent)}},p=a(t.rows).map(function(t,r){if(s.isIgnore(r))return s.handleRowColMapProp(s.TYPE.IGNORE);if(s.isEmpty(r))return s.handleRowColMapProp(s.TYPE.EMPTY);var o=t.querySelectorAll("th, td");return a(o).map(function(t,o){var n=l(t);return s.isIgnore(r,o)?s.handleRowColMapProp(s.TYPE.IGNORE):s.isEmpty(r,o)?s.handleRowColMapProp(s.TYPE.EMPTY):s.handleRowColMapProp(s.TYPE.DEFAULT,r,o,e,n,i)}).processCols(e,i)}).processRows(e,r.rowDel),u=JSON.stringify({data:p,filename:t.filename,mimeType:n.mimeType,fileExtension:n.fileExtension,merges:s.merges}),c=x({uuid:t.uuid,type:e});return o.exportButtons&&t.checkCaption(r.createObjButton(c,u,n.buttonContent,n.defaultClass,o.bootstrapSettings)),m.getInstance().setItem(c,u,!0)}},createObjButton:function(t,e,r,o,n){var a=document.createElement("button");return a.setAttribute("type","button"),a.setAttribute(this.storageKey,t),a.className=n.bootstrapClass+n.bootstrapTheme+o,a.textContent=r,a},escapeHtml:function(t){var e=this;return String(t).replace(/[&<>'\/]/g,function(t){return e.entityMap[t]})},unescapeHtml:function(t){var e=String(t);for(var r in this.entityMap)e=e.replace(RegExp(this.entityMap[r],"g"),r);return e},formatValue:function(t,e){return t?e.trim():e},getType:function(t){if(!t)return"";var e=this.typeConfig;return~t.indexOf(e.string.defaultClass)?C.STRING:~t.indexOf(e.number.defaultClass)?C.NUMBER:~t.indexOf(e["boolean"].defaultClass)?C.BOOLEAN:~t.indexOf(e.date.defaultClass)?C.DATE:""},dateNum:function(t,e){e&&(t+=1462);var r=Date.parse(t),o=(r-new Date(Date.UTC(1899,11,30)))/864e5;return Math.floor(o)},createSheet:function(t,e){for(var r={},n={s:{c:1e7,r:1e7},e:{c:0,r:0}},a=this.typeConfig,i=0;i!==t.length;++i)for(var s=0;s!==t[i].length;++s){n.s.r>i&&(n.s.r=i),n.s.c>s&&(n.s.c=s),n.e.r<i&&(n.e.r=i),n.e.c<s&&(n.e.c=s);var l=t[i][s];if(l&&l.v){var p=o.utils.encode_cell({c:s,r:i});l.t||(a.number.assert(l.v)?l.t=C.NUMBER:a["boolean"].assert(l.v)?l.t=C.BOOLEAN:a.date.assert(l.v)?l.t=C.DATE:l.t=C.STRING),l.t===C.DATE&&(l.t=C.NUMBER,l.z=o.SSF._table[14],l.v=this.dateNum(l.v)),r[p]=l}}return r["!merges"]=e,n.s.c<1e7&&(r["!ref"]=o.utils.encode_range(n)),r},downloadHandler:function(t){var e=t.target,r=JSON.parse(m.getInstance().getItem(e.getAttribute(this.storageKey))),o=r.data,n=r.filename,a=r.mimeType,i=r.fileExtension,s=r.merges;this.export2file(o,a,n,i,s)},Workbook:function(){this.SheetNames=[],this.Sheets={}},string2ArrayBuffer:function(t){for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),o=0;o!==t.length;++o)r[o]=255&t.charCodeAt(o);return e},export2file:function(t,o,n,a,i){if(t=this.getRawData(t,a,n,i),g){var s="data:"+o+";"+this.charset+","+t;this.downloadDataURI(s,n,a)}else r(new e([t],{type:o+";"+this.charset}),n+a,!0)},downloadDataURI:function(t,e,r){var o=encodeURI(t),n=document.createElement("a");n.setAttribute("href",o),n.setAttribute("download",e+r),document.body.appendChild(n),n.click()},getBookType:function(t){switch(t){case v.XLS:return v.BIFF2;default:return t}},getRawData:function(t,e,r,n){var a=e.substring(1);if(b(a)){var i=new this.Workbook,s=this.createSheet(t,n),l=this.getBookType(a);r=r||"",i.SheetNames.push(r),i.Sheets[r]=s;var p={bookType:l,bookSST:!1,type:"binary"},u=o.write(i,p);t=this.string2ArrayBuffer(u)}return t},getFileSize:function(t,e){var r=this.getRawData(t,e);return r instanceof ArrayBuffer?r.byteLength:this.string2ArrayBuffer(r).byteLength},update:function(t){return this.remove(),new d(this.selectors,n({},this.defaults,t))},reset:function(){return this.remove(),new d(this.selectors,this.settings)},remove:function(){var t=this;this.selectors.forEach(function(e){var r=e.querySelector("caption."+t.defaultCaptionClass);r&&e.removeChild(r)})}};var m=function(){this._instance=null,this.store=sessionStorage,this.namespace=d.prototype.defaultNamespace,this.getKey=function(t){return this.namespace+t},this.setItem=function(t,e,r){var o=this.getKey(t);if(!this.exists(t)||r)return"string"!=typeof e?c('"value" must be a string.'):(this.store.setItem(o,e),t)},this.getItem=function(t){var e=this.getKey(t);return this.store.getItem(e)},this.exists=function(t){var e=this.getKey(t);return null!==this.store.getItem(e)},this.removeItem=function(t){var e=this.getKey(t);return this.store.removeItem(e)}};m.getInstance=function(){return this._instance||(this._instance=new m),this._instance};var h=function(){this.rcMap=[],this.merges=[],this.isIgnore=function(t,e){var r=h.prototype.TYPE.IGNORE;return this.getRowColMapProp(t,e,r)},this.isEmpty=function(t,e){var r=h.prototype.TYPE.EMPTY;return this.getRowColMapProp(t,e,r)},this.isRowSpan=function(t){var e=h.prototype.TYPE.ROWSPAN;return this.getRowColMapProp(t,void 0,e)},this.isColSpan=function(t){var e=h.prototype.TYPE.COLSPAN;return this.getRowColMapProp(t,void 0,e)},this.isSpan=function(t){return this.isRowSpan(t)||this.isColSpan(t)},this.isMerge=function(t){return this.merges.length>0},this.addMerge=function(t,e){var r=h.prototype.TYPE.MERGE;this.merges.push(e),this.setRowColMapProp(t,void 0,r,this.merges)},this.getRowColMapProp=function(t,e,r){if(this.rcMap[t]){if("undefined"==typeof r)return this.rcMap[t][e];if("undefined"==typeof e)return this.rcMap[t][r];if(this.rcMap[t][e])return this.rcMap[t][e][r]}},this.setRowColMapProp=function(t,e,r,o){return this.rcMap[t]=this.rcMap[t]||[],"undefined"==typeof r?this.rcMap[t][e]=o:"undefined"==typeof e?this.rcMap[t][r]=o:(this.rcMap[t][e]=this.rcMap[t][e]||[],this.rcMap[t][e][r]=o)},this.generateTotal=function(t,e){var r=h.prototype.TYPE.VALUE,o=0;return this.isRowSpan(t)&&this.isColSpan(t)?o=this.getRowColMapProp(t,e,r)||0:this.getRowColMapProp(t,e,r)&&(o=this.getRowColMapProp(t,e,r)),o},this.convertSpanToArray=function(t,e,r,o,n){if(this.rcMap[t]&&this.isSpan(t)){var a=this.generateTotal(t,e);return b(r)?new Array(a).concat(o):new Array(a).concat(o).join(n)}return o},this.handleRowColMapProp=function(t,e,r,o,n,a){switch(t){case h.prototype.TYPE.IGNORE:return;case h.prototype.TYPE.EMPTY:return" ";case h.prototype.TYPE.DEFAULT:default:return this.convertSpanToArray(e,r,o,n,a)}}};h.prototype={OFFSET:1,TYPE:{IGNORE:"ignore",EMPTY:"empty",MERGE:"merge",ROWSPAN:"rowspan",ROWSPANTOTAL:"rowspantotal",COLSPAN:"colspan",COLSPANTOTAL:"colspantotal",DEFAULT:"default",VALUE:"value"},build:function(t,e){var r=this,o=r.OFFSET,n=r.rowLength=t.rows.length,s=function(t,e){r.setRowColMapProp(t,e,r.TYPE.IGNORE,!0)},l=function(t,e){r.setRowColMapProp(t,e,r.TYPE.EMPTY,!0)},p=function(t,e,o){for(var a,i,s,l,p,f,d,m,h,g=+t.getAttribute("rowspan"),b=+t.getAttribute("colspan"),v=0;v<g;v++){if(v+e>=n)return;if(b&&(a=u(t,v+e,o,v>0,g)),g<=1)return!1;var y=r.rcMap["c"+(o-1)]?r.rcMap["c"+(o-1)][v+e]:0;if(y&&(r.rcMap["c"+o]=r.rcMap["c"+o]||[],r.rcMap["c"+o][v+e]=(r.rcMap["c"+o][v+e]||0)+y),g&&0===v&&b>1)for(var C=0;C<g;C++)r.rcMap["c"+(o+1)]=r.rcMap["c"+(o+1)]||[],r.rcMap["c"+(o+1)][v+e+C]=(r.rcMap["c"+(o+1)][v+e+C]||0)+Math.max(1,b);if(v>=1&&(i=r.getRowColMapProp(v+e,void 0,r.TYPE.ROWSPAN)||0,r.setRowColMapProp(v+e,void 0,r.TYPE.ROWSPAN,i+1),!a&&(l=r.getRowColMapProp(v+e,o-i,r.TYPE.VALUE)||0,r.setRowColMapProp(v+e,o-i,r.TYPE.VALUE,l+1),g>1&&1===v))){var w=r.rcMap["c"+o]&&r.rcMap["c"+o][v+e];p=r.getRowColMapProp(e,void 0,r.TYPE.COLSPANTOTAL)||0,s=r.getRowColMapProp(e,void 0,r.TYPE.COLSPAN)||0,f=e,d=e+g-1,m=o+p-s+(w||0),h=m+Math.max(1,b)-1,c(f,m,d,h)}}},u=function(t,e,n,a,i){var s,l,p,u,f=+t.getAttribute("colspan"),d=r.getRowColMapProp(e,void 0,r.TYPE.COLSPAN)||0,m=r.getRowColMapProp(e,void 0,r.TYPE.COLSPANTOTAL)||0;return!(f<=1)&&(r.setRowColMapProp(e,void 0,r.TYPE.COLSPAN,d+1),r.setRowColMapProp(e,void 0,r.TYPE.COLSPANTOTAL,m+f),a?(r.setRowColMapProp(e,n-d,r.TYPE.VALUE,f),!0):(s=e,l=e+(i||1)-o,p=n+m-d,u=n+m-d+(f-o),r.setRowColMapProp(e,n+o,r.TYPE.VALUE,f-o),c(s,p,l,u),void 0))},c=function(t,e,o,n){var a={s:{r:t,c:e},e:{r:o,c:n}};return r.addMerge(t,a)};return a(t.rows).map(function(r,o){(~e.ignoreRows.indexOf(o-t.thAdj)||i(r,e.ignoreCSS))&&s(o),i(r,e.emptyCSS)&&l(o);var n=r.querySelectorAll("th, td");return a(n).map(function(t,r){(~e.ignoreCols.indexOf(r)||i(t,e.ignoreCSS))&&s(o,r),i(t,e.emptyCSS)&&l(o,r),t.hasAttribute("rowspan")?p(t,o,r):t.hasAttribute("colspan")&&u(t,o,r)})}),r}};var g=function(t){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4))}(navigator.userAgent||navigator.vendor||window.opera),b=function(){return function(t){return o&&!g&&!d.prototype.formatConfig[t].enforceStrictRFC4180}}(),v=function(){return d.prototype.CONSTANTS.FORMAT}(),y=function(){return Object.keys(v).map(function(t){return v[t]})}(),C=function(){return d.prototype.CONSTANTS.TYPE}();Object.defineProperty(Array.prototype,"processRows",{enumerable:!1,value:function(t,e){return b(t)?this.map(l).filter(s):this.filter(s).join(e)}}),Object.defineProperty(Array.prototype,"processCols",{enumerable:!1,value:function(t,e){return b(t)?this.filter(s):this.filter(s).join(e)}});var w=function(){var t=0;return function(e){var r=e.getAttribute(d.prototype.tableKey);return r||(r=e.id?e.id:d.prototype.defaultNamespace+ ++t,e.setAttribute(d.prototype.tableKey,r)),r}}(),x=function(){return function(t){var e,r,o=0,n=t.type;if(t=JSON.stringify(t),0===t.length)return o;for(e=0;e<t.length;e++)r=t.charCodeAt(e),o=(o<<5)-o+r,o|=0;return o.toString(16).substring(1)+"-"+n}}(),S=function(){var t=null;return function(e,r,o,n){for(var a=o.bind(n),i=0;i<e.length;++i)t&&e[i].removeEventListener(r,t,!1),e[i].addEventListener(r,a,!1);t=a}}();if(t){t.fn.tableExport=function(e){return d.call(n({},d.prototype,t.fn.tableExport),this,e)};for(var E in d.prototype)t.fn.tableExport[E]=d.prototype[E]}return d.TableExport=d,d});
!function(t,r){if("function"==typeof define&&define.amd)define(function(t){var e;try{e=t("jquery")}catch(t){}return r(e,t("blobjs"),t("file-saverjs"),t("xlsx"))});else if("object"==typeof exports&&"string"!=typeof exports.nodeName){var e;try{e=require("jquery")}catch(t){}module.exports=r(e,require("blobjs"),require("file-saverjs"),require("xlsx"))}else t.TableExport=r(t.jQuery,t.Blob,t.saveAs,t.XLSX)}(this,function(e,s,l,c){"use strict";var o=function(t,e){var a=this;if(!t)return S('"selectors" is required. \nUsage: TableExport(selectors, options)');if(!a)return new o(t,e);a.settings=y({},a.defaults,e),a.selectors=C(t);var i=a.settings;i.ignoreRows=i.ignoreRows instanceof Array?i.ignoreRows:[i.ignoreRows],i.ignoreCols=i.ignoreCols instanceof Array?i.ignoreCols:[i.ignoreCols],i.ignoreCSS=a.ignoreCSS instanceof Array?a.ignoreCSS:[a.ignoreCSS],i.emptyCSS=a.emptyCSS instanceof Array?a.emptyCSS:[a.emptyCSS],i.formatValue=a.formatValue.bind(this,i.trimWhitespace),i.bootstrapSettings=function(t,e,r){var o={};o.bootstrapSpacing=t?(o.bootstrapClass=e[0]+" ",o.bootstrapTheme=e[1]+" ",e[2]+" "):(o.bootstrapClass=r+" ",o.bootstrapTheme="","");return o}(i.bootstrap,a.bootstrapConfig,a.defaultButton);var s={};a.getExportData=function(){return s},a.selectors.forEach(function(r){var o={};o.rows=C(r.querySelectorAll("tbody > tr")),o.rows=i.headers?C(r.querySelectorAll("thead > tr")).concat(o.rows):o.rows,o.rows=i.footers?o.rows.concat(C(r.querySelectorAll("tfoot > tr"))):o.rows,o.thAdj=i.headers?r.querySelectorAll("thead > tr").length:0,o.filename="id"===i.filename?r.getAttribute("id")?r.getAttribute("id"):a.defaultFilename:i.filename?i.filename:a.defaultFilename,o.uuid=b(r),o.checkCaption=function(t){var e=r.querySelectorAll("caption."+a.defaultCaptionClass);e.length?e[0].appendChild(t):((e=document.createElement("caption")).className=i.bootstrapSettings.bootstrapSpacing+i.position+" "+a.defaultCaptionClass,e.appendChild(t),r.insertBefore(e,r.firstChild))},o.setExportData=function(t){var e=u.getInstance().getItem(t),r=t.substring(t.indexOf("-")+1);s[o.uuid]=s[o.uuid]||{},s[o.uuid][r]=JSON.parse(e)},o.rcMap=(new p).build(o,i);var n=h.reduce(function(t,e){return t[e]=0,t},{});i.formats.forEach(function(t){return e=t,~h.indexOf(e)?function(t){var e;switch(t){case m.TXT:case m.CSV:case m.XLS:e=!0;break;default:e=d(t)}return e}(t)?void(n[t]||(o.setExportData(a.exporters.build.call(a,o,t)),n[t]++)):S('"'+t+'" requires "js-xlsx".'):S('"'+t+'" is not a valid format. \nFormats: '+h.join(", "));var e})});var r=document.querySelectorAll("button["+a.storageKey+"]");return n(r,"click",a.downloadHandler,a),a};o.prototype={version:"5.0.4",defaults:{headers:!0,footers:!0,formats:["xlsx","csv","txt"],filename:"id",bootstrap:!1,exportButtons:!0,position:"bottom",ignoreRows:null,ignoreCols:null,trimWhitespace:!0},CONSTANTS:{FORMAT:{XLSX:"xlsx",XLSM:"xlsm",XLSB:"xlsb",BIFF2:"biff2",XLS:"xls",CSV:"csv",TXT:"txt"},TYPE:{STRING:"s",NUMBER:"n",BOOLEAN:"b",DATE:"d"}},charset:"charset=utf-8",defaultFilename:"myDownload",defaultButton:"button-default",defaultCaptionClass:"tableexport-caption",defaultNamespace:"tableexport-",tableKey:"tableexport-key",storageKey:"tableexport-id",ignoreCSS:".tableexport-ignore",emptyCSS:".tableexport-empty",bootstrapConfig:["btn","btn-default","btn-toolbar"],rowDel:"\r\n",entityMap:{"&":"&#38;","<":"&#60;",">":"&#62;","'":"&#39;","/":"&#47;"},formatConfig:{xlsx:{defaultClass:"xlsx",buttonContent:"Export to xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fileExtension:".xlsx"},xlsm:{defaultClass:"xlsm",buttonContent:"Export to xlsm",mimeType:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",fileExtension:".xlsm"},xlsb:{defaultClass:"xlsb",buttonContent:"Export to xlsb",mimeType:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",fileExtension:".xlsb"},xls:{defaultClass:"xls",buttonContent:"Export to xls",separator:"\t",mimeType:"application/vnd.ms-excel",fileExtension:".xls",enforceStrictRFC4180:!1},csv:{defaultClass:"csv",buttonContent:"Export to csv",separator:",",mimeType:"text/csv",fileExtension:".csv",enforceStrictRFC4180:!0},txt:{defaultClass:"txt",buttonContent:"Export to txt",separator:" ",mimeType:"text/plain",fileExtension:".txt",enforceStrictRFC4180:!0}},typeConfig:{string:{defaultClass:"tableexport-string"},number:{defaultClass:"tableexport-number",assert:function(t){return!isNaN(t)}},boolean:{defaultClass:"tableexport-boolean",assert:function(t){return"true"===t.toLowerCase()||"false"===t.toLowerCase()}},date:{defaultClass:"tableexport-date",assert:function(t){return!/.*%/.test(t)&&!isNaN(Date.parse(t))}}},exporters:{build:function(t,n){var a=this,i=a.settings,e=a.formatConfig[n],s=e.separator,l=t.rcMap,r=C(t.rows).map(function(t,o){return l.isIgnore(o)?l.handleRowColMapProp(l.TYPE.IGNORE):l.isEmpty(o)?l.handleRowColMapProp(l.TYPE.EMPTY):C(t.querySelectorAll("th, td")).map(function(t,e){var r=function(t){if(d(n))return{v:i.formatValue(t.textContent),t:a.getType(t.className)};switch(n){case m.CSV:return'"'+i.formatValue(t.textContent.replace(/"/g,'""'))+'"';default:return i.formatValue(t.textContent)}}(t);return l.isIgnore(o,e)?l.handleRowColMapProp(l.TYPE.IGNORE):l.isEmpty(o,e)?l.handleRowColMapProp(l.TYPE.EMPTY):l.handleRowColMapProp(l.TYPE.DEFAULT,o,e,n,r,s)}).processCols(n,s)}).processRows(n,a.rowDel),o=JSON.stringify({data:r,filename:t.filename,mimeType:e.mimeType,fileExtension:e.fileExtension,merges:l.merges}),p=v({uuid:t.uuid,type:n});return i.exportButtons&&t.checkCaption(a.createObjButton(p,o,e.buttonContent,e.defaultClass,i.bootstrapSettings)),u.getInstance().setItem(p,o,!0)}},createObjButton:function(t,e,r,o,n){var a=document.createElement("button");return a.setAttribute("type","button"),a.setAttribute(this.storageKey,t),a.className=n.bootstrapClass+n.bootstrapTheme+o,a.textContent=r,a},escapeHtml:function(t){var e=this;return String(t).replace(/[&<>'\/]/g,function(t){return e.entityMap[t]})},unescapeHtml:function(t){var e=String(t);for(var r in this.entityMap)e=e.replace(RegExp(this.entityMap[r],"g"),r);return e},formatValue:function(t,e){return t?e.trim():e},getType:function(t){if(!t)return"";var e=this.typeConfig;return~t.indexOf(e.string.defaultClass)?g.STRING:~t.indexOf(e.number.defaultClass)?g.NUMBER:~t.indexOf(e.boolean.defaultClass)?g.BOOLEAN:~t.indexOf(e.date.defaultClass)?g.DATE:""},dateNum:function(t,e){e&&(t+=1462);var r=(Date.parse(t)-new Date(Date.UTC(1899,11,30)))/864e5;return Math.floor(r)},createSheet:function(t,e){for(var r={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},n=this.typeConfig,a=0;a!==t.length;++a)for(var i=0;i!==t[a].length;++i){o.s.r>a&&(o.s.r=a),o.s.c>i&&(o.s.c=i),o.e.r<a&&(o.e.r=a),o.e.c<i&&(o.e.c=i);var s=t[a][i];if(s&&s.v){var l=c.utils.encode_cell({c:i,r:a});s.t||(n.number.assert(s.v)?s.t=g.NUMBER:n.boolean.assert(s.v)?s.t=g.BOOLEAN:n.date.assert(s.v)?s.t=g.DATE:s.t=g.STRING),s.t===g.DATE&&(s.t=g.NUMBER,s.z=c.SSF._table[14],s.v=this.dateNum(s.v)),r[l]=s}}return r["!merges"]=e,o.s.c<1e7&&(r["!ref"]=c.utils.encode_range(o)),r},downloadHandler:function(t){var e=t.target,r=JSON.parse(u.getInstance().getItem(e.getAttribute(this.storageKey))),o=r.data,n=r.filename,a=r.mimeType,i=r.fileExtension,s=r.merges;this.export2file(o,a,n,i,s)},Workbook:function(){this.SheetNames=[],this.Sheets={}},string2ArrayBuffer:function(t){for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),o=0;o!==t.length;++o)r[o]=255&t.charCodeAt(o);return e},export2file:function(t,e,r,o,n){var a=o.slice(1);if(t=this.getRawData(t,o,r,n),!f||a!==m.CSV&&a!==m.TXT)l(new s([t],{type:e+";"+this.charset}),r+o,!0);else{var i="data:"+e+";"+this.charset+","+t;this.downloadDataURI(i,r,o)}},downloadDataURI:function(t,e,r){var o=encodeURI(t),n=document.createElement("a");n.setAttribute("href",o),n.setAttribute("download",e+r),document.body.appendChild(n),n.click()},getBookType:function(t){switch(t){case m.XLS:return m.BIFF2;default:return t}},getRawData:function(t,e,r,o){var n=e.substring(1);if(d(n)){var a=new this.Workbook,i=this.createSheet(t,o),s=this.getBookType(n);r=r||"",a.SheetNames.push(r),a.Sheets[r]=i;var l={bookType:s,bookSST:!1,type:"binary"},p=c.write(a,l);t=this.string2ArrayBuffer(p)}return t},getFileSize:function(t,e){var r=this.getRawData(t,e);return r instanceof ArrayBuffer?r.byteLength:this.string2ArrayBuffer(r).byteLength},update:function(t){return this.remove(),new o(this.selectors,y({},this.defaults,t))},reset:function(){return this.remove(),new o(this.selectors,this.settings)},remove:function(){var r=this;this.selectors.forEach(function(t){var e=t.querySelector("caption."+r.defaultCaptionClass);e&&t.removeChild(e)})}};var u=function(){this._instance=null,this.store=sessionStorage,this.namespace=o.prototype.defaultNamespace,this.getKey=function(t){return this.namespace+t},this.setItem=function(t,e,r){var o=this.getKey(t);if(!this.exists(t)||r)return"string"!=typeof e?S('"value" must be a string.'):(this.store.setItem(o,e),t)},this.getItem=function(t){var e=this.getKey(t);return this.store.getItem(e)},this.exists=function(t){var e=this.getKey(t);return null!==this.store.getItem(e)},this.removeItem=function(t){var e=this.getKey(t);return this.store.removeItem(e)}};u.getInstance=function(){return this._instance||(this._instance=new u),this._instance};var p=function(){this.rcMap=[],this.merges=[],this.isIgnore=function(t,e){var r=p.prototype.TYPE.IGNORE;return this.getRowColMapProp(t,e,r)},this.isEmpty=function(t,e){var r=p.prototype.TYPE.EMPTY;return this.getRowColMapProp(t,e,r)},this.isRowSpan=function(t){var e=p.prototype.TYPE.ROWSPAN;return this.getRowColMapProp(t,void 0,e)},this.isColSpan=function(t){var e=p.prototype.TYPE.COLSPAN;return this.getRowColMapProp(t,void 0,e)},this.isSpan=function(t){return this.isRowSpan(t)||this.isColSpan(t)},this.isMerge=function(t){return 0<this.merges.length},this.addMerge=function(t,e){var r=p.prototype.TYPE.MERGE;this.merges.push(e),this.setRowColMapProp(t,void 0,r,this.merges)},this.getRowColMapProp=function(t,e,r){if(this.rcMap[t]){if(void 0===r)return this.rcMap[t][e];if(void 0===e)return this.rcMap[t][r];if(this.rcMap[t][e])return this.rcMap[t][e][r]}},this.setRowColMapProp=function(t,e,r,o){return this.rcMap[t]=this.rcMap[t]||[],void 0===r?this.rcMap[t][e]=o:void 0===e?this.rcMap[t][r]=o:(this.rcMap[t][e]=this.rcMap[t][e]||[],this.rcMap[t][e][r]=o)},this.generateTotal=function(t,e){var r=p.prototype.TYPE.VALUE,o=0;return this.isRowSpan(t)&&this.isColSpan(t)?o=this.getRowColMapProp(t,e,r)||0:this.getRowColMapProp(t,e,r)&&(o=this.getRowColMapProp(t,e,r)),o},this.convertSpanToArray=function(t,e,r,o,n){if(this.rcMap[t]&&this.isSpan(t)){var a=this.generateTotal(t,e);return d(r)?new Array(a).concat(o):new Array(a).concat(o).join(n)}return o},this.handleRowColMapProp=function(t,e,r,o,n,a){switch(t){case p.prototype.TYPE.IGNORE:return;case p.prototype.TYPE.EMPTY:return" ";case p.prototype.TYPE.DEFAULT:default:return this.convertSpanToArray(e,r,o,n,a)}}};p.prototype={OFFSET:1,TYPE:{IGNORE:"ignore",EMPTY:"empty",MERGE:"merge",ROWSPAN:"rowspan",ROWSPANTOTAL:"rowspantotal",COLSPAN:"colspan",COLSPANTOTAL:"colspantotal",DEFAULT:"default",VALUE:"value"},build:function(e,o){var g=this,f=g.OFFSET,b=g.rowLength=e.rows.length,n=function(t,e){g.setRowColMapProp(t,e,g.TYPE.IGNORE,!0)},a=function(t,e){g.setRowColMapProp(t,e,g.TYPE.EMPTY,!0)},v=function(t,e,r,o,n){var a,i,s,l,p=+t.getAttribute("colspan"),c=g.getRowColMapProp(e,void 0,g.TYPE.COLSPAN)||0,u=g.getRowColMapProp(e,void 0,g.TYPE.COLSPANTOTAL)||0;return!(p<=1)&&(g.setRowColMapProp(e,void 0,g.TYPE.COLSPAN,c+1),g.setRowColMapProp(e,void 0,g.TYPE.COLSPANTOTAL,u+p),o?(g.setRowColMapProp(e,r-c,g.TYPE.VALUE,p),!0):(i=(a=e)+(n||1)-f,l=(s=r+u-c)+(p-f),g.setRowColMapProp(e,r+f,g.TYPE.VALUE,p-f),void y(a,s,i,l)))},y=function(t,e,r,o){var n={s:{r:t,c:e},e:{r:r,c:o}};return g.addMerge(t,n)};return C(e.rows).map(function(t,r){return(~o.ignoreRows.indexOf(r-e.thAdj)||w(t,o.ignoreCSS))&&n(r),w(t,o.emptyCSS)&&a(r),C(t.querySelectorAll("th, td")).map(function(t,e){(~o.ignoreCols.indexOf(e)||w(t,o.ignoreCSS))&&n(r,e),w(t,o.emptyCSS)&&a(r,e),t.hasAttribute("rowspan")?function(t,e,r){for(var o,n,a,i,s,l,p,c=+t.getAttribute("rowspan"),u=+t.getAttribute("colspan"),f=0;f<c;f++){if(b<=f+e)return;if(u&&(o=v(t,f+e,r,0<f,c)),c<=1)return;var d=g.rcMap["c"+(r-1)]?g.rcMap["c"+(r-1)][f+e]:0;if(d&&(g.rcMap["c"+r]=g.rcMap["c"+r]||[],g.rcMap["c"+r][f+e]=(g.rcMap["c"+r][f+e]||0)+d),c&&0===f&&1<u)for(var m=0;m<c;m++)g.rcMap["c"+(r+1)]=g.rcMap["c"+(r+1)]||[],g.rcMap["c"+(r+1)][f+e+m]=(g.rcMap["c"+(r+1)][f+e+m]||0)+Math.max(1,u);if(1<=f&&(n=g.getRowColMapProp(f+e,void 0,g.TYPE.ROWSPAN)||0,g.setRowColMapProp(f+e,void 0,g.TYPE.ROWSPAN,n+1),!o&&(a=g.getRowColMapProp(f+e,r-n,g.TYPE.VALUE)||0,g.setRowColMapProp(f+e,r-n,g.TYPE.VALUE,a+1),1<c&&1===f))){var h=g.rcMap["c"+r]&&g.rcMap["c"+r][f+e];s=(i=e)+c-1,p=(l=r+(g.getRowColMapProp(e,void 0,g.TYPE.COLSPANTOTAL)||0)-(g.getRowColMapProp(e,void 0,g.TYPE.COLSPAN)||0)+(h||0))+Math.max(1,u)-1,y(i,l,s,p)}}}(t,r,e):t.hasAttribute("colspan")&&v(t,r,e)})}),g}};var t,f=(t=navigator.userAgent||navigator.vendor||window.opera,/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4))),d=function(t){return c&&!o.prototype.formatConfig[t].enforceStrictRFC4180},m=o.prototype.CONSTANTS.FORMAT,h=Object.keys(m).map(function(t){return m[t]}),g=o.prototype.CONSTANTS.TYPE;Object.defineProperty(Array.prototype,"processRows",{enumerable:!1,value:function(t,e){return d(t)?this.map(x).filter(a):this.filter(a).join(e)}}),Object.defineProperty(Array.prototype,"processCols",{enumerable:!1,value:function(t,e){return d(t)?this.filter(a):this.filter(a).join(e)}});var r,i,b=(r=0,function(t){var e=t.getAttribute(o.prototype.tableKey);return e||(e=t.id?t.id:o.prototype.defaultNamespace+ ++r,t.setAttribute(o.prototype.tableKey,e)),e}),v=function(t){var e,r=0,o=t.type;if(0===(t=JSON.stringify(t)).length)return r;for(e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return r.toString(16).substring(1)+"-"+o},n=(i=null,function(t,e,r,o){for(var n=r.bind(o),a=0;a<t.length;++a)i&&t[a].removeEventListener(e,i,!1),t[a].addEventListener(e,n,!1);i=n});function y(){for(var t=arguments,e=1;e<t.length;e++)for(var r in t[e])t[e].hasOwnProperty(r)&&(t[0][r]=t[e][r]);return t[0]}function C(t){return void 0===t.length?[].concat(t):[].slice.call(t)}function w(e,t){return 0<t.filter(function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),e)}).length}function a(t){return void 0!==t}function x(t){return t instanceof Array?[].concat.apply([],t):t}function S(t){return console.error(t),new Error(t)}if(e)for(var E in e.fn.tableExport=function(t){return o.call(y({},o.prototype,e.fn.tableExport),this,t)},o.prototype)e.fn.tableExport[E]=o.prototype[E];return o.TableExport=o});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc