6 lines
150 KiB
JavaScript
6 lines
150 KiB
JavaScript
|
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){"use strict";function r(e){var n,a,o="a aa ai ao as b fn i m o s ",l={};t.each(e,function(t,i){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!==o.indexOf(n[1]+" ")&&(a=t.replace(n[0],n[2].toLowerCase()),l[a]=t,"o"===n[1]&&r(e[t]))}),e._hungarianMap=l}function o(e,n,l){e._hungarianMap||r(e);var i;t.each(n,function(r,s){(i=e._hungarianMap[r])===a||!l&&n[i]!==a||("o"===i.charAt(0)?(n[i]||(n[i]={}),t.extend(!0,n[i],n[r]),o(e[i],n[i],l)):n[i]=n[r])})}function l(t){var e=Jt.defaults.oLanguage,n=e.sDecimal;if(n&&zt(n),t){var a=t.sZeroRecords;!t.sEmptyTable&&a&&"No data available in table"===e.sEmptyTable&&Lt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&a&&"Loading..."===e.sLoadingRecords&&Lt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var r=t.sDecimal;r&&n!==r&&zt(r)}}function i(t){he(t,"ordering","bSort"),he(t,"orderMulti","bSortMulti"),he(t,"orderClasses","bSortClasses"),he(t,"orderCellsTop","bSortCellsTop"),he(t,"order","aaSorting"),he(t,"orderFixed","aaSortingFixed"),he(t,"paging","bPaginate"),he(t,"pagingType","sPaginationType"),he(t,"pageLength","iDisplayLength"),he(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,a=e.length;n<a;n++)e[n]&&o(Jt.models.oSearch,e[n])}function s(e){he(e,"orderable","bSortable"),he(e,"orderData","aDataSort"),he(e,"orderSequence","asSorting"),he(e,"orderDataType","sortDataType");var n=e.aDataSort;"number"!=typeof n||t.isArray(n)||(e.aDataSort=[n])}function d(n){if(!Jt.__browser){var a={};Jt.__browser=a;var r=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),o=r.children(),l=o.children();a.barWidth=o[0].offsetWidth-o[0].clientWidth,a.bScrollOversize=100===l[0].offsetWidth&&100!==o[0].clientWidth,a.bScrollbarLeft=1!==Math.round(l.offset().left),a.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}t.extend(n.oBrowser,Jt.__browser),n.oScroll.iBarWidth=Jt.__browser.barWidth}function u(t,e,n,r,o,l){var i,s=r,d=!1;for(n!==a&&(i=n,d=!0);s!==o;)t.hasOwnProperty(s)&&(i=d?e(i,t[s],s,t):t[s],d=!0,s+=l);return i}function c(e,a){var r=Jt.defaults.column,o=e.aoColumns.length,l=t.extend({},Jt.models.oColumn,r,{nTh:a||n.createElement("th"),sTitle:r.sTitle?r.sTitle:a?a.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o});e.aoColumns.push(l);var i=e.aoPreSearchCols;i[o]=t.extend({},Jt.models.oSearch,i[o]),f(e,o,t(a).data())}function f(e,n,r){var l=e.aoColumns[n],i=e.oClasses,d=t(l.nTh);if(!l.sWidthOrig){l.sWidthOrig=d.attr("width")||null;var u=(d.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);u&&(l.sWidthOrig=u[1])}r!==a&&null!==r&&(s(r),o(Jt.defaults.column,r),r.mDataProp===a||r.mData||(r.mData=r.mDataProp),r.sType&&(l._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&d.addClass(r.sClass),t.extend(l,r),Lt(l,r,"sWidth","sWidthOrig"),r.iDataSort!==a&&(l.aDataSort=[r.iDataSort]),Lt(l,r,"aDataSort"));var c=l.mData,f=T(c),p=l.mRender?T(l.mRender):null,h=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};l._bAttrSrc=t.isPlainObject(c)&&(h(c.sort)||h(c.type)||h(c.filter)),l._setter=null,l.fnGetData=function(t,e,n){var r=f(t,e,a,n);return p&&e?p(r,e,t,n):r},l.fnSetData=function(t,e,n){return _(c)(t,e,n)},"number"!=typeof c&&(e._rowReadObject=!0),e.oFeatures.bSort||(l.bSortable=!1,d.addClass(i.sSortableNone));var m=-1!==t.inArray("asc",l.asSorting),b=-1!==t.inArray("desc",l.asSorting);l.bSortable&&(m||b)?m&&!b?(l.sSortingClass=i.s
|
||
|
r.formatter&&d++,_t(t,r.col);if("ssp"!=Mt(t)&&0!==o.length){for(e=0,a=u.length;e<a;e++)l[u[e]]=e;d===o.length?u.sort(function(t,e){var n,a,r,i,d,u=o.length,c=s[t]._aSortData,f=s[e]._aSortData;for(r=0;r<u;r++)if(d=o[r],n=c[d.col],a=f[d.col],0!==(i=n<a?-1:n>a?1:0))return"asc"===d.dir?i:-i;return n=l[t],a=l[e],n<a?-1:n>a?1:0}):u.sort(function(t,e){var n,a,r,d,u,c,f=o.length,p=s[t]._aSortData,h=s[e]._aSortData;for(r=0;r<f;r++)if(u=o[r],n=p[u.col],a=h[u.col],c=i[u.type+"-"+u.dir]||i["string-"+u.dir],0!==(d=c(n,a)))return d;return n=l[t],a=l[e],n<a?-1:n>a?1:0})}t.bSorted=!0}function wt(t){for(var e,n,a=t.aoColumns,r=Ft(t),o=t.oLanguage.oAria,l=0,i=a.length;l<i;l++){var s=a[l],d=s.asSorting,u=s.sTitle.replace(/<.*?>/g,""),c=s.nTh;c.removeAttribute("aria-sort"),s.bSortable?(r.length>0&&r[0].col==l?(c.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),n=d[r[0].index+1]||d[0]):n=d[0],e=u+("asc"===n?o.sSortAscending:o.sSortDescending)):e=u,c.setAttribute("aria-label",e)}}function Dt(e,n,r,o){var l,i=e.aoColumns[n],s=e.aaSorting,d=i.asSorting,u=function(e,n){var r=e._idx;return r===a&&(r=t.inArray(e[1],d)),r+1<d.length?r+1:n?null:0};if("number"==typeof s[0]&&(s=e.aaSorting=[s]),r&&e.oFeatures.bSortMulti){var c=t.inArray(n,ie(s,"0"));-1!==c?(l=u(s[c],!0),null===l&&1===s.length&&(l=0),null===l?s.splice(c,1):(s[c][1]=d[l],s[c]._idx=l)):(s.push([n,d[0],0]),s[s.length-1]._idx=0)}else s.length&&s[0][0]==n?(l=u(s[0]),s.length=1,s[0][1]=d[l],s[0]._idx=l):(s.length=0,s.push([n,d[0]]),s[0]._idx=0);H(e),"function"==typeof o&&o(e)}function Ct(t,e,n,a){var r=t.aoColumns[n];Rt(e,{},function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(pt(t,!0),setTimeout(function(){Dt(t,n,e.shiftKey,a),"ssp"!==Mt(t)&&pt(t,!1)},0)):Dt(t,n,e.shiftKey,a))})}function Tt(e){var n,a,r,o=e.aLastSort,l=e.oClasses.sSortColumn,i=Ft(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(n=0,a=o.length;n<a;n++)r=o[n].src,t(ie(e.aoData,"anCells",r)).removeClass(l+(n<2?n+1:3));for(n=0,a=i.length;n<a;n++)r=i[n].src,t(ie(e.aoData,"anCells",r)).addClass(l+(n<2?n+1:3))}e.aLastSort=i}function _t(t,e){var n,a=t.aoColumns[e],r=Jt.ext.order[a.sSortDataType];r&&(n=r.call(t.oInstance,t,e,m(t,e)));for(var o,l,i=Jt.ext.type.order[a.sType+"-pre"],s=0,d=t.aoData.length;s<d;s++)o=t.aoData[s],o._aSortData||(o._aSortData=[]),o._aSortData[e]&&!r||(l=r?n[s]:w(t,s,e,"sort"),o._aSortData[e]=i?i(l):l)}function At(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:et(e.oPreviousSearch),columns:t.map(e.aoColumns,function(t,n){return{visible:t.bVisible,search:et(e.aoPreSearchCols[n])}})};Et(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function Bt(e,n,r){var o,l,i=e.aoColumns,s=function(n){if(!n||!n.time)return void r();var s=Et(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1!==t.inArray(!1,s))return void r();var d=e.iStateDuration;if(d>0&&n.time<+new Date-1e3*d)return void r();if(n.columns&&i.length!==n.columns.length)return void r();if(e.oLoadedState=t.extend(!0,{},n),n.start!==a&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==a&&(e._iDisplayLength=n.length),n.order!==a&&(e.aaSorting=[],t.each(n.order,function(t,n){e.aaSorting.push(n[0]>=i.length?[0,n[1]]:n)})),n.search!==a&&t.extend(e.oPreviousSearch,nt(n.search)),n.columns)for(o=0,l=n.columns.length;o<l;o++){var u=n.columns[o];u.visible!==a&&(i[o].bVisible=u.visible),u.search!==a&&t.extend(e.aoPreSearchCols[o],nt(u.search))}Et(e,"aoStateLoaded","stateLoaded",[e,n]),r()};if(!e.oFeatures.bStateSave)return void r();var d=e.fnStateLoadCallback.call(e.oInstance,e,s);d!==a&&s(d)}function kt(e){var n=Jt.settings,a=t.inArray(e,ie(n,"nTable"));return-1!==a?n[a]:null}function Nt(t,n,a,r){if(a="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+a,r&&(a+=". For more information about this error, please see http://datatables.net/tn/"+r),n)e.console&&console.log&&console.log(a);else{var o=Jt.ext,l=o.sErrMode||o.errMode;if(t&&Et(t,null,"error",[t,r,a]),"
|
||
|
if(t.isPlainObject(n))return n.column!==a&&n.row!==a&&-1!==t.inArray(n.row,p)?[n]:[];var h=m.filter(n).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray();return h.length||!n.nodeName?h:(c=t(n).closest("*[data-dt-row]"),c.length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[])},e,r)};qt("cells()",function(e,n,r){if(t.isPlainObject(e)&&(e.row===a?(r=e,e=null):(r=n,n=null)),t.isPlainObject(n)&&(r=n,n=null),null===n||n===a)return this.iterator("table",function(t){return Me(t,e,_e(r))});var o,l,i,s,d,u=this.columns(n),c=this.rows(e);this.iterator("table",function(t,e){for(o=[],l=0,i=c[e].length;l<i;l++)for(s=0,d=u[e].length;s<d;s++)o.push({row:c[e][l],column:u[e][s]})},1);var f=this.cells(o,r);return t.extend(f.selector,{cols:n,rows:e,opts:r}),f}),Vt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){var r=t.aoData[e];return r&&r.anCells?r.anCells[n]:a},1)}),qt("cells().data()",function(){return this.iterator("cell",function(t,e,n){return w(t,e,n)},1)}),Vt("cells().cache()","cell().cache()",function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",function(e,n,a){return e.aoData[n][t][a]},1)}),Vt("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,n,a){return w(e,n,a,t)},1)}),Vt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:m(t,n)}},1)}),Vt("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,n,a){N(e,n,t,a)})}),qt("cell()",function(t,e,n){return Ae(this.cells(t,e,n))}),qt("cell().data()",function(t){var e=this.context,n=this[0];return t===a?e.length&&n.length?w(e[0],n[0].row,n[0].column):a:(D(e[0],n[0].row,n[0].column,t),N(e[0],n[0].row,"data",n[0].column),this)}),qt("order()",function(e,n){var r=this.context;return e===a?0!==r.length?r[0].aaSorting:a:("number"==typeof e?e=[[e,n]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),qt("order.listener()",function(t,e,n){return this.iterator("table",function(a){Ct(a,t,e,n)})}),qt("order.fixed()",function(e){if(!e){var n=this.context,r=n.length?n[0].aaSortingFixed:a;return t.isArray(r)?{pre:r}:r}return this.iterator("table",function(n){n.aaSortingFixed=t.extend(!0,{},e)})}),qt(["columns().order()","column().order()"],function(e){var n=this;return this.iterator("table",function(a,r){var o=[];t.each(n[r],function(t,n){o.push([n,e])}),a.aaSorting=o})}),qt("search()",function(e,n,r,o){var l=this.context;return e===a?0!==l.length?l[0].oPreviousSearch.sSearch:a:this.iterator("table",function(a){a.oFeatures.bFilter&&G(a,t.extend({},a.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)})}),Vt("columns().search()","column().search()",function(e,n,r,o){return this.iterator("column",function(l,i){var s=l.aoPreSearchCols;if(e===a)return s[i].sSearch;l.oFeatures.bFilter&&(t.extend(s[i],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),G(l,l.oPreviousSearch,1))})}),qt("state()",function(){return this.context.length?this.context[0].oSavedState:null}),qt("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),qt("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),qt("state.save()",function(){return this.iterator("table",function(t){At(t)})}),Jt.versionCheck=Jt.fnVersionCheck=function(t){for(var e,n,a=Jt.version.split("."),r=t.split("."),o=0,l=r.length;o<l;o++)if(e=parseInt(a[o],10)||0,n=parseInt(r[o],10)||0,e!==n)return e>n;return!0},Jt.isDataTable=Jt.fnIsDataTable=function(e){var n=t(e).get(0),a=!1;return e instanceof Jt.Api||(t.each(Jt.settings,function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,l=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&l!==n||(a=!0)}),a)},Jt.tables=Jt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.a
|
||
|
;return n.length>1&&n.splice(1,n.length),n}),r.Api.registerPlural("buttons().active()","button().active()",function(t){return t===a?this.map(function(t){return t.inst.active(t.node)}):this.each(function(e){e.inst.active(e.node,t)})}),r.Api.registerPlural("buttons().action()","button().action()",function(t){return t===a?this.map(function(t){return t.inst.action(t.node)}):this.each(function(e){e.inst.action(e.node,t)})}),r.Api.register(["buttons().enable()","button().enable()"],function(t){return this.each(function(e){e.inst.enable(e.node,t)})}),r.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(t){t.inst.disable(t.node)})}),r.Api.registerPlural("buttons().nodes()","button().node()",function(){var e=t();return t(this.each(function(t){e=e.add(t.inst.node(t.node))})),e}),r.Api.registerPlural("buttons().processing()","button().processing()",function(t){return t===a?this.map(function(t){return t.inst.processing(t.node)}):this.each(function(e){e.inst.processing(e.node,t)})}),r.Api.registerPlural("buttons().text()","button().text()",function(t){return t===a?this.map(function(t){return t.inst.text(t.node)}):this.each(function(e){e.inst.text(e.node,t)})}),r.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(t){t.inst.node(t.node).trigger("click")})}),r.Api.registerPlural("buttons().containers()","buttons().container()",function(){var e=t(),n=this._groupSelector;return this.iterator(!0,"table",function(t){if(t._buttons)for(var a=s.instanceSelector(n,t._buttons),r=0,o=a.length;r<o;r++)e=e.add(a[r].container())}),e}),r.Api.register("button().add()",function(t,e){var n=this.context;if(n.length){var a=s.instanceSelector(this._groupSelector,n[0]._buttons);a.length&&a[0].add(e,t)}return this.button(this._groupSelector,t)}),r.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(t){t.destroy()}),this}),r.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(t){t.inst.remove(t.node)}),this});var d;r.Api.register("buttons.info()",function(e,n,r){var o=this;return!1===e?(t("#datatables_buttons_info").fadeOut(function(){t(this).remove()}),clearTimeout(d),d=null,this):(d&&clearTimeout(d),t("#datatables_buttons_info").length&&t("#datatables_buttons_info").remove(),e=e?"<h2>"+e+"</h2>":"",t('<div id="datatables_buttons_info" class="dt-button-info"/>').html(e).append(t("<div/>")["string"==typeof n?"html":"append"](n)).css("display","none").appendTo("body").fadeIn(),r!==a&&0!==r&&(d=setTimeout(function(){o.buttons.info(!1)},r)),this)}),r.Api.register("buttons.exportData()",function(t){if(this.context.length)return m(new r.Api(this.context[0]),t)}),r.Api.register("buttons.exportInfo()",function(t){return t||(t={}),{filename:u(t),title:f(t),messageTop:p(this,t.message||t.messageTop,"top"),messageBottom:p(this,t.messageBottom,"bottom")}});var u=function(e){var n="*"===e.filename&&"*"!==e.title&&e.title!==a&&null!==e.title&&""!==e.title?e.title:e.filename;if("function"==typeof n&&(n=n()),n===a||null===n)return null;-1!==n.indexOf("*")&&(n=t.trim(n.replace("*",t("head > title").text()))),n=n.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");var r=c(e.extension);return r||(r=""),n+r},c=function(t){return null===t||t===a?null:"function"==typeof t?t():t},f=function(e){var n=c(e.title);return null===n?null:-1!==n.indexOf("*")?n.replace("*",t("head > title").text()||"Exported data"):n},p=function(e,n,a){var r=c(n);if(null===r)return null;var o=t("caption",e.table().container()).eq(0);if("*"===r){return o.css("caption-side")!==a?null:o.length?o.text():""}return r},h=t("<textarea/>")[0],m=function(e,n){var r=t.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(t){return o(t)},footer:function(t){return o(t)},body:function(t){return o(t)}},customizeData:null},n),o=function(t){return"string"!=typeof t?t:(t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)
|
||
|
function i(){return r||e.pdfMake}function s(t){for(var e="A".charCodeAt(0),n="Z".charCodeAt(0),a=n-e+1,r="";t>=0;)r=String.fromCharCode(t%a+e)+r,t=Math.floor(t/a)-1;return r}function d(e,n){g===o&&(g=-1===v.serializeToString(t.parseXML(x["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r")),t.each(n,function(n,a){if(t.isPlainObject(a)){d(e.folder(n),a)}else{if(g){var r,o,l=a.childNodes[0],i=[];for(r=l.attributes.length-1;r>=0;r--){var s=l.attributes[r].nodeName,u=l.attributes[r].nodeValue;-1!==s.indexOf(":")&&(i.push({name:s,value:u}),l.removeAttribute(s))}for(r=0,o=i.length;r<o;r++){var c=a.createAttribute(i[r].name.replace(":","_dt_b_namespace_token_"));c.value=i[r].value,l.setAttributeNode(c)}}var f=v.serializeToString(a);g&&(-1===f.indexOf("<?xml")&&(f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+f),f=f.replace(/_dt_b_namespace_token_/g,":")),f=f.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),e.file(n,f)}})}function u(e,n,a){var r=e.createElement(n);return a&&(a.attr&&t(r).attr(a.attr),a.children&&t.each(a.children,function(t,e){r.appendChild(e)}),null!==a.text&&a.text!==o&&r.appendChild(e.createTextNode(a.text))),r}function c(t,e){var n,a,r,l=t.header[e].length;t.footer&&t.footer[e].length>l&&(l=t.footer[e].length);for(var i=0,s=t.body.length;i<s;i++){var d=t.body[i][e];if(r=null!==d&&d!==o?d.toString():"",-1!==r.indexOf("\n")?(a=r.split("\n"),a.sort(function(t,e){return e.length-t.length}),n=a[0].length):n=r.length,n>l&&(l=n),l>40)return 52}return l*=1.3,l>6?l:6}var f=t.fn.dataTable,p=function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,n=function(){return t.URL||t.webkitURL||t},a=e.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in a,l=function(t){var e=new MouseEvent("click");t.dispatchEvent(e)},i=/constructor/i.test(t.HTMLElement)||t.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),d=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},u=function(t){var e=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};setTimeout(e,4e4)},c=function(t,e,n){e=[].concat(e);for(var a=e.length;a--;){var r=t["on"+e[a]];if("function"==typeof r)try{r.call(t,n||t)}catch(t){d(t)}}},f=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},p=function(e,d,p){p||(e=f(e));var h,m=this,b=e.type,y="application/octet-stream"===b,g=function(){c(m,"writestart progress write writeend".split(" "))};if(m.readyState=m.INIT,r)return h=n().createObjectURL(e),void setTimeout(function(){a.href=h,a.download=d,l(a),g(),u(h),m.readyState=m.DONE});!function(){if((s||y&&i)&&t.FileReader){var a=new FileReader;return a.onloadend=function(){var e=s?a.result:a.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=o,m.readyState=m.DONE,g()},a.readAsDataURL(e),void(m.readyState=m.INIT)}if(h||(h=n().createObjectURL(e)),y)t.location.href=h;else{t.open(h,"_blank")||(t.location.href=h)}m.readyState=m.DONE,g(),u(h)}()},h=p.prototype,m=function(t,e,n){return new p(t,e||t.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=f(t)),navigator.msSaveOrOpenBlob(t,e)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,m)}}("undefined"!=typeof self&&self||void 0!==e&&e||this.content);f.fileSave=p;var h=function(t){var e="Sheet1";return t.sheetName&&(e=t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),e},m=function(t){return t.newline?t.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"},b=function(t,e){for(var n=m(e),a=t.buttons.exportData(e.exportOptions),r=e.fieldBoundary,l=e.fieldSeparator,i=new RegExp(r,"g"),s=e.escapeChar!==o?e.escapeChar:"\\",d=function(t){for(var e="",n=0,a=t.length;n<a;n++)n>0&&(e+=l),e+=r?r+(""+t[n]).replace(i,s+r)+r:t[n];return e},u=e.header?d(a.header)+n:"",c=e.footer&&a.footer?n+d(a.footer):""
|