/*! * js-table2excel v1.1.2 * Released under the MIT License. * repository: https://github.com/hxj9102/table2excel.git */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Table2Excel=t()}(this,(function(){"use strict";var e=function(e,o){var i;"ie"==((i=window.navigator.userAgent).indexOf("MSIE")>=0?"ie":i.indexOf("Firefox")>=0?"Firefox":i.indexOf("Chrome")>=0?"Chrome":i.indexOf("Opera")>=0?"Opera":i.indexOf("Safari")>=0?"Safari":void 0)?t(e):n(e,o)},t=function(e,t){var n=e,o=new ActiveXObject("Excel.Application"),i=o.Workbooks.Add(),c=i.Worksheets(1),a=document.body.createTextRange();a.moveToElementText(n),a.select,a.execCommand("Copy"),c.Paste(),o.Visible=!0;try{o.Application.GetSaveAsFilename("Excel.xls","Excel Spreadsheets (*.xls), *.xls")}catch(e){print("Nested catch caught "+e)}finally{i.SaveAs(fname),i.Close(savechanges=!1),o.Quit(),o=null,window.setInterval("Cleanup();",1),window.setInterval("Cleanup();",1)}},n=function(e,t){var n,o="data:application/vnd.ms-excel;base64,"+function(e){return window.btoa(unescape(encodeURIComponent(e)))}((n={worksheet:t,table:e},'
\x3c!--[if gte mso 9]>