/* tableExport.jquery.plugin Version 1.33.0 Copyright (c) 2015-2025 hhurz, https://github.com/hhurz/tableExport.jquery.plugin Based on https://github.com/kayalshri/tableExport.jquery.plugin Licensed under the MIT License */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(d,H,u){d instanceof String&&(d=String(d));for(var D=d.length,K=0;Kg&&"undefined"!==typeof fa[g]&&-1!==d.inArray(fa[g],b.ignoreColumn))&&(h=!0):h=!0;return h}function F(a,c,g,h,e){if("function"===typeof e){var v=!1;"function"===typeof b.onIgnoreRow&&(v=b.onIgnoreRow(d(a),g));if(!1===v&&(0===b.ignoreRow.length||-1===d.inArray(g,b.ignoreRow)&&-1===d.inArray(g-h,b.ignoreRow))&&N(d(a))){a= T(d(a),c);var l=a.length,f=0,p=0;a.each(function(){var a=d(this),c=Y(this),b=ja(this),h;d.each(O,function(){if(g>this.s.r&&g<=this.e.r&&f>=this.s.c&&f<=this.e.c)for(h=0;h<=this.e.c-this.s.c;++h)l++,p++,e(null,g,f++)});if(b||c)c=c||1,O.push({s:{r:g,c:f},e:{r:g+(b||1)-1,c:f+c-1}});!1===Ya(a,l,p++)&&e(this,g,f++);if(1=this.s.r&&g<=this.e.r&&f>=this.s.c&&f<=this.e.c)for(var a=0;a<=this.e.c-this.s.c;++a)e(null,g,f++)})}}}function Za(a,c, b,d){if("undefined"!==typeof d.images&&(b=d.images[b],"undefined"!==typeof b)){c=c.getBoundingClientRect();var g=a.width/a.height,h=c.width/c.height,l=a.width,f=a.height,p=19.049976/25.4,C=0;h<=g?(f=Math.min(a.height,c.height),l=c.width*f/c.height):h>g&&(l=Math.min(a.width,c.width),f=c.height*l/c.width);l*=p;f*=p;fa.textPos.x&&h+C>a.textPos.x+a.width&&(0<=".,!%*;:=-".indexOf(p.charAt(0))&&(B=p.charAt(0),C=g.doc.getStringUnitWidth(B)*g.doc.internal.getFontSize(),h+C<=a.textPos.x+a.width&&(Aa(B,h,e,v),p=p.substring(1,p.length)),C=g.doc.getStringUnitWidth(p)*g.doc.internal.getFontSize()),h=a.textPos.x,e+=g.doc.internal.getFontSize()); if("visible"!==a.styles.overflow)for(;p.length&&h+C>a.textPos.x+a.width;)p=p.substring(0,p.length-1),C=g.doc.getStringUnitWidth(p)*g.doc.internal.getFontSize();Aa(p,h,e,v);h+=C}if(l||f)d(c).is("b")?l=!1:d(c).is("i")&&(f=!1),g.doc.setFont("undefined ",l||f?l?"bold":"italic":"normal");c=c.nextSibling}a.textPos.x=h;a.textPos.y=e}else Aa(a.text,a.textPos.x,a.textPos.y,v)}}function ka(a,c,b){return null==a?"":a.toString().replace(new RegExp(null==c?"":c.toString().replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"),"g"),b)}function Ja(a){return null==a?"":a.toString().replace(/^\s+/,"")}function Ka(a){return null==a?"":a.toString().replace(/\s+$/,"")}function qb(a){if(0===b.date.html.length)return!1;b.date.pattern.lastIndex=0;var c=b.date.pattern.exec(a);if(null==c)return!1;a=+c[b.date.match_y];if(0>a||8099"+f+"",null,!1);var p=0,C=0;f="";d.each(a,function(){if(d(this).is("input"))f+=l.find("input").eq(p++).val();else if(d(this).is("select"))f+=l.find("select option:selected").eq(C++).text();else if(d(this).is("br"))f+="
";else{if("undefined"===typeof d(this).html())f+=d(this).text(); else if(void 0===jQuery().bootstrapTable||!1===d(this).hasClass("fht-cell")&&!1===d(this).hasClass("filterControl")&&0===l.parents(".detail-view").length)f+=d(this).html();if(d(this).is("a")){var a=l.find("a").attr("href")||"";e="function"===typeof b.onCellHtmlHyperlink?e+b.onCellHtmlHyperlink(l,c,g,a,f):"href"===b.htmlHyperlink?e+a:e+f;f=""}}})}if(f&&""!==f&&!0===b.htmlContent)e=d.trim(f);else if(f&&""!==f)if(""!==l.attr("data-tableexport-cellformat")){var B=f.replace(/\n/g,"\u2028").replace(/(<\s*br([^>]*)>)/gi, "\u2060"),k=d("
").html(B).contents();a=!1;B="";d.each(k.text().split("\u2028"),function(a,c){0a?1:0)).split(".");1===k.length&&(k[1]="");var Ha=3a?"-":"")+(b.numbers.output.thousandsSeparator?(Ha?k[0].substr(0,Ha)+b.numbers.output.thousandsSeparator:"")+k[0].substr(Ha).replace(/(\d{3})(?=\d)/g,"$1"+b.numbers.output.thousandsSeparator):k[0])+(k[1].length?b.numbers.output.decimalMark+ k[1]:"")}}else e=f;!0===b.escape&&(e=escape(e));"function"===typeof b.onCellData&&(e=b.onCellData(l,c,g,e,v),l.data("teUserDefText",1))}void 0!==h&&(h.type=v);return e}function gb(a){return 0v?e+=String.fromCharCode(v):(127v?e+=String.fromCharCode(v>>6|192):(e+=String.fromCharCode(v>>12|224),e+=String.fromCharCode(v>>6&63|128)),e+=String.fromCharCode(v&63|128))}a=e}for(;d>2;l=(l&3)<<4|e>>4;var f=(e&15)<<2|c>>6;var p=c&63;isNaN(e)?f=p=64:isNaN(c)&&(p=64);b=b+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(v)+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(p)}return b}function ub(a,c,b,d){c&&"object"===typeof c||console.error("The headers should be an object or array, is: "+typeof c);b&&"object"===typeof b||console.error("The data should be an object or array, is: "+typeof b);d&&"object"!==typeof d&&console.error("The data should be an object or array, is: "+ typeof b);Array.prototype.forEach||console.error("The current browser does not support Array.prototype.forEach which is required for jsPDF-AutoTable");y=a;m=vb(d||{});Pa=1;I={y:!1===m.startY?m.margin.top:m.startY};a={textColor:30,fontSize:y.internal.getFontSize(),fontStyle:y.internal.getFont().fontStyle,fontName:y.internal.getFont().fontName};wb(c,b);xb();c=m.startY+m.margin.bottom+r.headerRow.height+(r.rows[0]&&"auto"===m.pageBreak?r.rows[0].height:0);"avoid"===m.pageBreak&&(c+=r.height);if("always"=== m.pageBreak&&!1!==m.startY||!1!==m.startY&&c>y.internal.pageSize.height)y.addPage(),I.y=m.margin.top;la(a);m.beforePageContent(V());!1!==m.drawHeaderRow(r.headerRow,V({row:r.headerRow}))&&Qa(r.headerRow,m.drawHeaderCell);la(a);yb();m.afterPageContent(V());la(a);return y}function Aa(a,c,b,d){"number"===typeof c&&"number"===typeof b||console.error("The x and y parameters are required. Missing for the text: ",a);var g=y.internal.getFontSize()/y.internal.scaleFactor,h=/\r\n|\r|\n/g,l=null,f=1;if("middle"=== d.valign||"bottom"===d.valign||"center"===d.halign||"right"===d.halign)l="string"===typeof a?a.split(h):a,f=l.length||1;b+=g*(2-1.15);"middle"===d.valign?b-=f/2*g:"bottom"===d.valign&&(b-=f*g);if("center"===d.halign||"right"===d.halign){h=g;"center"===d.halign&&(h*=.5);if(l&&1<=f){for(a=0;ab.contentWidth&&(b.contentWidth=a)});b.width=b.contentWidth;a+=b.contentWidth});r.contentWidth=a;var b=y.internal.pageSize.width-m.margin.left-m.margin.right,d=b;"number"===typeof m.tableWidth?d=m.tableWidth:"wrap"===m.tableWidth&&(d=r.contentWidth);r.width=dr.width?a.width=a.contentWidth:(h.push(a),e+=a.contentWidth,a.width=0);l+=a.width});jb(h,l,e,v);r.height=0;r.rows.concat(r.headerRow).forEach(function(a,b){var c=0,d=r.x;r.columns.forEach(function(b){var f=a.cells[b.dataKey];b.x=d;la(f.styles);var g=b.width- 2*f.styles.cellPadding;"linebreak"===f.styles.overflow?f.text=y.splitTextToSize(f.text,g+1,{fontSize:f.styles.fontSize}):"ellipsize"===f.styles.overflow?f.text=Ra(f.text,g,f.styles):"visible"!==f.styles.overflow&&("hidden"===f.styles.overflow?f.text=Ra(f.text,g,f.styles,""):"function"===typeof f.styles.overflow?f.text=f.styles.overflow(f.text,g):console.error("Unrecognized overflow type: "+f.styles.overflow));f=Array.isArray(f.text)?f.text.length-1:0;f>c&&(c=f);d+=b.width});a.heightStyle=a.styles.rowHeight; a.height=a.heightStyle+c*a.styles.fontSize*1.15+(2-1.15)/2*a.styles.fontSize;r.height+=a.height})}function jb(a,b,d,h){for(var c=r.width-b-d,g=0;gc&&p){a.splice(g,1);d-=l.contentWidth;l.width=h;b+=l.width;jb(a,b,d,h);break}else l.width=l.contentWidth+c*f}}function yb(){r.rows.forEach(function(a,b){I.y+a.height+m.margin.bottom>=y.internal.pageSize.height&&(m.afterPageContent(V()),y.addPage(),Pa++,I={x:m.margin.left,y:m.margin.top}, m.beforePageContent(V()),!1!==m.drawHeaderRow(r.headerRow,V({row:r.headerRow}))&&Qa(r.headerRow,m.drawHeaderCell));a.y=I.y;!1!==m.drawRow(a,V({row:a}))&&Qa(a,m.drawCell)})}function Qa(a,b){for(var c=0;c= Da(a,d))return a;for(;ba.length);)a=a.substring(0,a.length-1);return a.trim()+h}function Da(a,b){la(b);return y.getStringUnitWidth(a)*b.fontSize}function Z(a){var b={},d;for(d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);for(var h=1;h/gi," ");a=a.replace(/\r/g,"").replace(/\t/g," ").replace(/\n/g," ");a=d.trim(a);e+=" "+a+" |"});q++}):(k=h[0])&&F(k,"td",q,h.length,function(a,b,c){e+=" |"});k="|"; for(var l=0;l/gi," ");b=b.replace(/\r/g,"").replace(/\t/g," ").replace(/\n/g," ");b=d.trim(b);a+=" "+b+" |"});"|"!==a&&(b+=a+"\n");q++});return b},ra="";P(d(x));Q(d(x));d(x).filter(function(){return N(d(this))}).each(function(){var a= Ab(d(this));ra+=a;d(x).index(this)"+E(a,b,d)+""});q++});da+="";var kb=1;t=Q(d(x));d(t).each(function(){var a=1;w="";F(this,"td,th",q,z.length+t.length,function(b,d,h){w+=""+E(b,d, h)+"";a++});0"!==w&&(da+=''+w+"",kb++);q++});da+="";if("string"===b.outputMode)return da;if("base64"===b.outputMode)return R(da);S(da,b.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===b.type&&"xmlss"===b.mso.fileFormat){var Va=[],M=[];d(x).filter(function(){return N(d(this))}).each(function(){function a(a,b,c){var g=[];d(a).each(function(){var b=0,e=0;w="";F(this,"td,th",q,c+a.length, function(a,c,f){if(null!==a){var l="";c=E(a,c,f);f="String";if(!1!==jQuery.isNumeric(c))f="Number";else{var h=rb(c);!1!==h&&(c=h,f="Number",l+=' ss:StyleID="pct1"')}"Number"!==f&&(c=c.replace(/\n/g,"
"));h=Y(a);a=ja(a);d.each(g,function(){if(q>=this.s.r&&q<=this.e.r&&e>=this.s.c&&e<=this.e.c)for(var a=0;a<=this.e.c-this.s.c;++a)e++,b++});if(a||h)a=a||1,h=h||1,g.push({s:{r:q,c:e},e:{r:q+a-1,c:e+h-1}});1'+d("
").text(c).html()+"\r";e++}});0\r'+w+"\r");q++});return a.length}var c=d(this),g="";"string"===typeof b.mso.worksheetName&&b.mso.worksheetName.length?g=b.mso.worksheetName+" "+(M.length+1):"undefined"!==typeof b.mso.worksheetName[M.length]&&(g=b.mso.worksheetName[M.length]);g.length||(g=c.find("caption").text()||"");g.length||(g="Table "+(M.length+1)); g=d.trim(g.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31));M.push(d("
").text(g).html());!1===b.exportHiddenCells&&(U=c.find("tr, th, td").filter(":hidden"),ia=0\r";g=a(P(c),"th,td",0);a(Q(c),"td,th",g);L+="\r";Va.push(L)});for(var Ea={},Wa={},ea,sa,na=0,Bb=M.length;na\r\r\r \r\r\r 9000\r 13860\r 0\r 0\r False\r False\r\r\r \r \r \r\r', Fa=0;Fa\r'+Va[Fa],X=b.mso.rtl?X+'\r\r\r':X+'\r',X+="\r";X+="\r";if("string"===b.outputMode)return X;if("base64"===b.outputMode)return R(X);S(X,b.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"=== b.type&&"xlsx"===b.mso.fileFormat){var ta=[],lb=XLSX.utils.book_new();d(x).filter(function(){return N(d(this))}).each(function(){for(var a=d(this),c,g={},h=this.getElementsByTagName("tr"),e=Math.min(1E7,h.length),k={s:{r:0,c:0},e:{r:0,c:0}},l=[],f,p=0,C=0,B,m,q,r,n,u=XLSX.SSF.get_table();pc||36c||48===c)t="n";else{if("date"===x.type||13c||44c||56===c)t="d"}else t="s";if(null!==A&&void 0!==A){if("string"===typeof A&&0===A.length)f.t="z";else if(("string"!==typeof A||0!==A.trim().length)&&"s"!==t)if("function"===x.type)f={f:A};else if("string"===typeof A&&"TRUE"===A.toUpperCase())f= {t:"b",v:!0};else if("string"===typeof A&&"FALSE"===A.toUpperCase())f={t:"b",v:!1};else if("n"===t||isFinite(hb(A,b.numbers.output))){if(t=hb(A,b.numbers.output),0===c&&"function"!==typeof b.mso.xlsx.formatId.numbers&&(c=b.mso.xlsx.formatId.numbers),isFinite(t)||isFinite(A))f={t:"n",v:isFinite(t)?t:A,z:"string"===typeof c?c:c in u?u[c]:c===b.mso.xlsx.formatId.currency?b.mso.xlsx.format.currency:"0.00"}}else if(!1!==(x=qb(A))||"d"===t)0===c&&"function"!==typeof b.mso.xlsx.formatId.date&&(c=b.mso.xlsx.formatId.date), f={t:"d",v:!1!==x?x:A,z:"string"===typeof c?c:c in u?u[c]:"m/d/yy"};(t=d(n).find("a"))&&t.length&&(t=t[0].hasAttribute("href")?t.attr("href"):"",A="href"!==b.htmlHyperlink||""===t?A:"",x=""!==t?'=HYPERLINK("'+t+(A.length?'","'+A:"")+'")':"",""!==x&&("function"===typeof b.mso.xlsx.onHyperlink?(A=b.mso.xlsx.onHyperlink(d(n),p,B,t,A,x),f=0!==A.indexOf("=HYPERLINK")?{t:"s",v:A}:{f:A}):f={f:x}))}g[Na({c:m,r:C})]=f;k.e.c=e&&(g["!fullref"]=Oa((k.e.r=h.length-p+C-1,k)));c="";"string"===typeof b.mso.worksheetName&&b.mso.worksheetName.length?c=b.mso.worksheetName+" "+(ta.length+1):"undefined"!==typeof b.mso.worksheetName[ta.length]&&(c=b.mso.worksheetName[ta.length]);c.length||(c=a.find("caption").text()||"");c.length||(c="Table "+(ta.length+1));c=d.trim(c.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31));ta.push(c);XLSX.utils.book_append_sheet(lb,g,c)});var Cb=XLSX.write(lb,{type:"binary", bookType:b.mso.fileFormat,bookSST:!1});S(tb(Cb),b.fileName+"."+b.mso.fileFormat,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","UTF-8","",!1)}else if("excel"===b.type||"xls"===b.type||"word"===b.type||"doc"===b.type){var ua="excel"===b.type||"xls"===b.type?"excel":"word",Db="excel"===ua?"xls":"doc",Eb='xmlns:x="urn:schemas-microsoft-com:office:'+ua+'"',va=L="";d(x).filter(function(){return N(d(this))}).each(function(){var a=d(this);""===va&&(va=b.mso.worksheetName||a.find("caption").text()|| "Table",va=d.trim(va.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)));!1===b.exportHiddenCells&&(U=a.find("tr, th, td").filter(":hidden"),ia=0";z=P(a);d(z).each(function(){var a=d(this),g=document.defaultView.getComputedStyle(a[0],null);w="";F(this,"th,td",q,z.length,function(a,c,d){if(null!==a){var e="";w+=""}});0"+w+"");q++});L+="";t=Q(a);d(t).each(function(){var a=d(this),g=null,h=null;w="";F(this,"td,th",q,z.length+t.length,function(c,k,l){if(null!==c){var f=E(c,k,l),e="",m=d(c).attr("data-tableexport-msonumberformat");"undefined"=== typeof m&&"function"===typeof b.mso.onMsoNumberFormat&&(m=b.mso.onMsoNumberFormat(c,k,l));"undefined"!==typeof m&&""!==m&&(e="style=\"mso-number-format:'"+m+"'");if(b.mso.styles.length){g=document.defaultView.getComputedStyle(c,null);h=null;for(var n in b.mso.styles)k=b.mso.styles[n],m=J(g,k),""===m&&(null===h&&(h=document.defaultView.getComputedStyle(a[0],null)),m=J(h,k)),""!==m&&"0px none rgb(0, 0, 0)"!==m&&"rgba(0, 0, 0, 0)"!==m&&(e+=""===e?'style="':";",e+=k+":"+m)}w+=""));w+=">"+f+""}});0"+w+"");q++});b.displayTableName&&(L+=""+E(d("

"+b.tableName+"

"))+"");L+=""});var n='';n+="";n+='';"excel"===ua&&(n+="\x3c!--[if gte mso 9]>",n+="",n+="",n+="",n+="",n+="",n+=va,n+="",n+="",n+="",b.mso.rtl&&(n+=""),n+="",n+="",n+="",n+="",n+="",n+="";n+="@page { size:"+b.mso.pageOrientation+"; mso-page-orientation:"+b.mso.pageOrientation+ "; }";n+="@page Section1 {size:"+W[b.mso.pageFormat][0]+"pt "+W[b.mso.pageFormat][1]+"pt";n+="; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}";n+="div.Section1 {page:Section1;}";n+="@page Section2 {size:"+W[b.mso.pageFormat][1]+"pt "+W[b.mso.pageFormat][0]+"pt";n+=";mso-page-orientation:"+b.mso.pageOrientation+";margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}";n+="div.Section2 {page:Section2;}"; n+="br {mso-data-placement:same-cell;}";n+="";n+="";n+="";n+='
';n+=L;n+="
";n+="";n+="";if("string"===b.outputMode)return n;if("base64"===b.outputMode)return R(n);S(n,b.fileName+"."+Db,"application/vnd.ms-"+ua,"","base64",!1)}else if("png"===b.type)html2canvas(d(x)[0]).then(function(a){a=a.toDataURL();for(var c=atob(a.substring(22)),d=new ArrayBuffer(c.length),h=new Uint8Array(d),e=0;ec?l:c;for(c=g.length;cmb){a>W.a0[0]&&(Ga="a0",wa="l");for(var b in W)W.hasOwnProperty(b)&&W[b][1]>a&&(Ga=b,wa="l",W[b][0]>a&&(wa="p"));mb=a}}});b.jspdf.format=""===Ga?"a4":Ga;b.jspdf.orientation=""===wa?"w":wa}if(null==k.doc&&(k.doc=new jspdf.jsPDF(b.jspdf.orientation,b.jspdf.unit,b.jspdf.format),k.wScaleFactor=1,k.hScaleFactor=1,"function"===typeof b.jspdf.onDocCreated))b.jspdf.onDocCreated(k.doc);Ca.fontName=k.doc.getFont().fontName;!0=== k.outputImages&&(k.images={});"undefined"!==typeof k.images&&(d(x).filter(function(){return N(d(this))}).each(function(){var a=0;O=[];!1===b.exportHiddenCells&&(U=d(this).find("tr, th, td").filter(":hidden"),ia=0a.styles.rowHeight&&(a.styles.rowHeight=f)}a.styles.halign="inherit"===c.headerStyles.halign?"center":c.headerStyles.halign;a.styles.valign=c.headerStyles.valign;"undefined"!==typeof d.style&& !0!==d.style.hidden&&("inherit"===c.headerStyles.halign&&(a.styles.halign=d.style.align),"inherit"===c.styles.fillColor&&(a.styles.fillColor=d.style.bcolor),"inherit"===c.styles.textColor&&(a.styles.textColor=d.style.color),"inherit"===c.styles.fontStyle&&(a.styles.fontStyle=d.style.fstyle))}});"function"!==typeof c.createdCell&&(c.createdCell=function(a,b){b=k.teCells[b.row.index+":"+b.column.dataKey];a.styles.halign="inherit"===c.styles.halign?"center":c.styles.halign;a.styles.valign=c.styles.valign; "undefined"!==typeof b&&"undefined"!==typeof b.style&&!0!==b.style.hidden&&("inherit"===c.styles.halign&&(a.styles.halign=b.style.align),"inherit"===c.styles.fillColor&&(a.styles.fillColor=b.style.bcolor),"inherit"===c.styles.textColor&&(a.styles.textColor=b.style.color),"inherit"===c.styles.fontStyle&&(a.styles.fontStyle=b.style.fstyle))});"function"!==typeof c.drawHeaderCell&&(c.drawHeaderCell=function(a,b){var c=k.columns[b.column.dataKey];return(!0!==c.style.hasOwnProperty("hidden")||!0!==c.style.hidden)&& 0<=c.rowIndex?ab(a,b,c):!1});"function"!==typeof c.drawCell&&(c.drawCell=function(a,b){var c=k.teCells[b.row.index+":"+b.column.dataKey];if(!0!==("undefined"!==typeof c&&c.isCanvas))ab(a,b,c)&&(k.doc.rect(a.x,a.y,a.width,a.height,a.styles.fillStyle),"undefined"===typeof c||"undefined"!==typeof c.hasUserDefText&&!0===c.hasUserDefText||"undefined"===typeof c.elements||!c.elements.length?fb(a,{},k):(b=a.height/c.rect.height,b>k.hScaleFactor&&(k.hScaleFactor=b),k.wScaleFactor=a.width/c.rect.width,b=a.textPos.y, db(a,c.elements,k),a.textPos.y=b,fb(a,c.elements,k)));else{c=c.elements[0];var e=d(c).attr("data-tableexport-canvas"),f=c.getBoundingClientRect();a.width=f.width*k.wScaleFactor;a.height=f.height*k.hScaleFactor;b.row.height=a.height;Za(a,c,e,k)}return!1});k.headerrows=[];z=P(d(this));d(z).each(function(){a=0;k.headerrows[q]=[];F(this,"th,td",q,z.length,function(b,c,d){var e=Ma(b);e.title=E(b,c,d);e.key=a++;e.rowIndex=q;k.headerrows[q].push(e)});q++});if(0