1/*! 2 * 3 * jsPDF AutoTable plugin v3.2.2 4 * 5 * Copyright (c) 2014 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable 6 * Licensed under the MIT License. 7 * http://opensource.org/licenses/mit-license 8 * 9 * * /if (typeof window === 'object') window.jspdfAutoTableVersion = '" + newVersion + "';/*" 10 * 11 */ 12!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jspdf"));else if("function"==typeof define&&define.amd)define(["jspdf"],e);else{var n="object"==typeof exports?e(require("jspdf")):e(t.jsPDF);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=null,i=null;e.globalDefaults={},e.documentDefaults={},e.default=function(){return i},e.getGlobalOptions=function(){return e.globalDefaults},e.getDocumentOptions=function(){return e.documentDefaults};var l=function(){function t(t){this.doc=t}return t.prototype.pageHeight=function(){return this.pageSize().height},t.prototype.pageWidth=function(){return this.pageSize().width},t.prototype.pageSize=function(){var t=this.doc.internal.pageSize;return null==t.width&&(t={width:t.getWidth(),height:t.getHeight()}),t},t.prototype.scaleFactor=function(){return this.doc.internal.scaleFactor},t.prototype.pageNumber=function(){var t=this.doc.internal.getCurrentPageInfo();return t?t.pageNumber:this.doc.internal.getNumberOfPages()},t}();e.setupState=function(t){r=i,i=new l(t),t!==o&&(o=t,e.documentDefaults={})},e.resetState=function(){i=r},e.setDefaults=function(t,n){void 0===n&&(n=null),n?(e.documentDefaults=t||{},o=n):e.globalDefaults=t||{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(0),i=n(3);function l(t,e){var n=e.fontSize/o.default().scaleFactor();s(e),t=Array.isArray(t)?t:[t];var r=0;t.forEach((function(t){var e=o.default().doc.getStringUnitWidth(t);e>r&&(r=e)}));var i=1e4*o.default().scaleFactor();return(r=Math.floor(r*i)/i)*n}function a(t){var e=t.lineWidth>0,n=t.fillColor||0===t.fillColor;return e&&n?"DF":e?"S":!!n&&"F"}function s(t){var e=o.default().doc,n={fillColor:e.setFillColor,textColor:e.setTextColor,fontStyle:e.setFontStyle,lineColor:e.setDrawColor,lineWidth:e.setLineWidth,font:e.setFont,fontSize:e.setFontSize};Object.keys(n).forEach((function(e){var r=t[e],o=n[e];void 0!==r&&(Array.isArray(r)?o.apply(this,r):o(r))}))}e.getStringWidth=l,e.ellipsize=function t(e,n,r,i){if(void 0===i&&(i="..."),Array.isArray(e)){var a=[];return e.forEach((function(e,o){a[o]=t(e,n,r,i)})),a}var s=1e4*o.default().scaleFactor();if((n=Math.ceil(n*s)/s)>=l(e,r))return e;for(;n<l(e+i,r)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+i},e.addTableBorder=function(){var t=o.default().table,e={lineWidth:t.settings.tableLineWidth,lineColor:t.settings.tableLineColor};s(e);var n=a(e);n&&o.default().doc.rect(t.pageStartX,t.pageStartY,t.width,t.cursor.y-t.pageStartY,n)},e.getFillStyle=a,e.applyUserStyles=function(){s(o.default().table.userStyles)},e.applyStyles=s,e.marginOrPadding=function(t,e){var n={};if(Array.isArray(t))t.length>=4?n={top:t[0],right:t[1],bottom:t[2],left:t[3]}:3===t.length?n={top:t[0],right:t[1],bottom:t[2],left:t[1]}:2===t.length?n={top:t[0],right:t[1],bottom:t[0],left:t[1]}:t=1===t.length?t[0]:e;else if("object"==typeof t){t.vertical&&(t.top=t.vertical,t.bottom=t.vertical),t.horizontal&&(t.right=t.horizontal,t.left=t.horizontal);for(var r=0,o=["top","right","bottom","left"];r<o.length;r++){var i=o[r];n[i]=t[i]||0===t[i]?t[i]:e}}return"number"==typeof t&&(n={top:t,right:t,bottom:t,left:t}),n},e.styles=function(t){return t=Array.isArray(t)?t:[t],i.assign.apply(void 0,[r.defaultStyles()].concat(t))}},function(t,e,n){"use strict";
12Object.defineProperty(e,"__esModule",{value:!0}),e.FONT_ROW_RATIO=1.15;var r=n(0);e.defaultConfig=function(){return{html:null,head:null,body:null,foot:null,includeHiddenHtml:!1,startY:null,margin:40/r.default().scaleFactor(),pageBreak:"auto",rowPageBreak:"auto",tableWidth:"auto",showHead:"everyPage",showFoot:"everyPage",tableLineWidth:0,tableLineColor:200,tableId:null,theme:"striped",useCss:!1,styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{},didParseCell:function(t){},willDrawCell:function(t){},didDrawCell:function(t){},didDrawPage:function(t){}}},e.defaultStyles=function(){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/r.default().scaleFactor(),lineColor:200,lineWidth:0/r.default().scaleFactor(),cellWidth:"auto",minCellHeight:0}},e.getTheme=function(t){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i)for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(0),i=n(9),l=n(1),a=n(5),s=function(){this.didParseCell=[],this.willDrawCell=[],this.didDrawCell=[],this.didDrawPage=[]},u=function(){function t(){this.columns=[],this.head=[],this.body=[],this.foot=[],this.height=0,this.width=0,this.preferredWidth=0,this.wrappedWidth=0,this.minWidth=0,this.headHeight=0,this.footHeight=0,this.startPageNumber=1,this.pageNumber=1,this.styles={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},this.cellHooks=new s}return Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pageNumber},enumerable:!0,configurable:!0}),t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(t,e,n,r){for(var o=0,l=t;o<l.length;o++){if(!1===(0,l[o])(new i.CellHookData(e,n,r)))return!1}return!0},t.prototype.callEndPageHooks=function(){l.applyUserStyles();for(var t=0,e=this.cellHooks.didDrawPage;t<e.length;t++){(0,e[t])(new i.HookData)}},t.prototype.margin=function(t){return l.marginOrPadding(this.settings.margin,r.defaultConfig().margin)[t]},t}();e.Table=u;var d=function(){function t(t,e,n){this.cells={},this.height=0,this.maxCellLineCount=1,this.maxCellHeight=0,this.pageNumber=1,this.spansMultiplePages=!1,this.raw=t,t._element&&(this.raw=t._element),this.index=e,this.section=n}return Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pageNumber},enumerable:!0,configurable:!0}),t}();e.Row=d;var c=function(){function t(t,e,n){var r;this.contentWidth=0,this.wrappedWidth=0,this.minWidth=0,this.textPos={},this.height=0,this.width=0,this.rowSpan=t&&t.rowSpan||1,this.colSpan=t&&t.colSpan||1,this.styles=a(e,t&&t.styles||{}),this.section=n;var i=t&&null!=t.content?t.content:t;i=i&&null!=i.title?i.title:i,this.raw=t&&t._element?t._element:t,r=null!=i?""+i:"";if(this.text=r.split(/\r\n|\r|\n/g),this.contentWidth=this.padding("horizontal")+l.getStringWidth(this.text,this.styles),"number"==typeof this.styles.cellWidth)this.minWidth=this.styles.cellWidth,this.wrappedWidth=this.styles.cellWidth;else if("wrap"===this.styles.cellWidth)this.minWidth=this.contentWidth,this.wrappedWidth=this.contentWidth;else{var s=10/o.default().scaleFactor();this.minWidth=this.styles.minCellWidth||s,this.wrappedWidth=this.contentWidth,this.minWidth>this.wrappedWidth&&(this.wrappedWidth=this.minWidth)}}return t.prototype.padding=function(t){var e=l.marginOrPadding(this.styles.cellPadding,l.styles([]).cellPadding);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}();e.Cell=c;var h=function(t,e,n){this.preferredWidth=0,this.minWidth=0,this.wrappedWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n};e.Column=h},function(t,e,n){"use strict"; 13/* 14object-assign 15(c) Sindre Sorhus 16@license MIT
17*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=l(t),u=1;u<arguments.length;u++){for(var d in n=Object(arguments[u]))o.call(n,d)&&(s[d]=n[d]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8),o=n(10),i=n(11),l=n(0);n(15);var a=n(1),s=n(6);s.API.autoTable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];l.setupState(this);var n=i.parseInput(t);return o.calculateWidths(n),r.drawTable(n),n.finalY=n.cursor.y,this.previousAutoTable=n,this.lastAutoTable=n,this.autoTable.previous=n,a.applyUserStyles(),l.resetState(),this},s.API.lastAutoTable=!1,s.API.previousAutoTable=!1,s.API.autoTable.previous=!1,s.API.autoTableSetDefaults=function(t){return l.setDefaults(t,this),this},s.autoTableSetDefaults=function(t,e){return l.setDefaults(t,e),this},s.API.autoTableHtmlToJson=function(t,e){if(e=e||!1,!(t&&t instanceof HTMLTableElement))return null;for(var n={},r=[],o=t.rows[0],i=0;i<o.cells.length;i++){var l=o.cells[i],a=window.getComputedStyle(l);(e||"none"!==a.display)&&(n[i]=l)}var s=function(o){var i=t.rows[o],l=window.getComputedStyle(i);if(e||"none"!==l.display){var a=[];Object.keys(n).forEach((function(t){var e=i.cells[t];a.push(e)})),r.push(a)}};for(i=1;i<t.rows.length;i++)s(i);return{columns:Object.keys(n).map((function(t){return n[t]})),rows:r,data:r}},s.API.autoTableEndPosY=function(){var t=this.previousAutoTable;return t.cursor&&"number"==typeof t.cursor.y?t.cursor.y:0},s.API.autoTableAddPageContent=function(t){return s.API.autoTable.globalDefaults||(s.API.autoTable.globalDefaults={}),s.API.autoTable.globalDefaults.addPageContent=t,this},s.API.autoTableAddPage=function(){return this.addPage(),this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(1),i=n(4),l=n(0),a=n(5);function s(t,e,n){var o={},a=l.default().table,s=function(t){var e=l.default().table,n=e.margin("bottom"),r=e.settings.showFoot;(!0===r||"everyPage"===r||"lastPage"===r&&t)&&(n+=e.footHeight);return l.default().pageHeight()-e.cursor.y-n}(e);if(s<t.maxCellHeight)if(s<function(t){return l.default().table.columns.reduce((function(e,n){var o=t.cells[n.index];if(!o)return 0;var i=o.styles.fontSize/l.default().scaleFactor()*r.FONT_ROW_RATIO,a=o.padding("vertical")+i;return a>e?a:e}),0)}(t)||"avoid"===a.settings.rowPageBreak&&!function(t){var e=l.default().table,n=l.default().pageHeight()-e.margin("top")-e.margin("bottom");return t.maxCellHeight>n}(t))d(n);else{t.spansMultiplePages=!0;for(var c=0;c<a.columns.length;c++){var h=a.columns[c],f=t.cells[h.index];if(f){var g=f.styles.fontSize/l.default().scaleFactor()*r.FONT_ROW_RATIO,p=f.padding("vertical"),y=Math.floor((s-p)/g);if(Array.isArray(f.text)&&f.text.length>y){o[h.index]=f.text.splice(y,f.text.length);var v=Math.floor(f.text.length*g);1===f.rowSpan&&(t.height=Math.min(t.height,v));var m=new i.Cell(f,f.styles,f.section);m.height=f.height,m.width=f.width,m.text=o[h.index],n.cells[h.index]=m}else if(f.height>s){var b=new i.Cell(f,f.styles,f.section);b.height=f.height,b.width=f.width,b.text=[],n.cells[h.index]=b}f.height=Math.min(s,f.height)}}}u(t),n&&0!==Object.keys(n.cells).length&&Object.keys(n.cells).forEach((function(e){n.cells[e].height-=t.height}))}function u(t){var e=l.default().table;
17e.cursor.x=e.margin("left"),t.y=e.cursor.y,t.x=e.cursor.x,e.cursor.x=e.margin("left"),t.y=e.cursor.y,t.x=e.cursor.x;for(var n=0,r=e.columns;n<r.length;n++){var i=r[n],a=t.cells[i.index];if(a)if(o.applyStyles(a.styles),a.x=e.cursor.x,a.y=t.y,"top"===a.styles.valign?a.textPos.y=e.cursor.y+a.padding("top"):"bottom"===a.styles.valign?a.textPos.y=e.cursor.y+a.height-a.padding("bottom"):a.textPos.y=e.cursor.y+a.height/2,"right"===a.styles.halign?a.textPos.x=a.x+a.width-a.padding("right"):"center"===a.styles.halign?a.textPos.x=a.x+a.width/2:a.textPos.x=a.x+a.padding("left"),!1!==e.callCellHooks(e.cellHooks.willDrawCell,a,t,i)){var s=o.getFillStyle(a.styles);s&&l.default().doc.rect(a.x,e.cursor.y,a.width,a.height,s),l.default().doc.autoTableText(a.text,a.textPos.x,a.textPos.y,{halign:a.styles.halign,valign:a.styles.valign,maxWidth:a.width-a.padding("left")-a.padding("right")}),e.callCellHooks(e.cellHooks.didDrawCell,a,t,i),e.cursor.x+=i.width}else e.cursor.x+=i.width;else e.cursor.x+=i.width}e.cursor.y+=t.height}function d(t){var e=l.default().table;if(o.applyUserStyles(),!0!==e.settings.showFoot&&"everyPage"!==e.settings.showFoot||e.foot.forEach((function(t){return u(t)})),e.finalY=e.cursor.y,e.callEndPageHooks(),o.addTableBorder(),c(l.default().doc),e.pageNumber++,e.cursor={x:e.margin("left"),y:e.margin("top")},e.pageStartX=e.cursor.x,e.pageStartY=e.cursor.y,!0!==e.settings.showHead&&"everyPage"!==e.settings.showHead||e.head.forEac
17h((function(t){return u(t)})),t&&0!==Object.keys(t.cells).length){var n=a({},t);n.height=0,Object.keys(t.cells).forEach((function(e){n.maxCellHeight<t.cells[e].height&&(n.maxCellHeight=t.cells[e].height),t.cells[e].rowSpan>1||(n.height=t.cells[e].height)})),t.cells={},s(n,!1,t)}}function c(t){var e=l.default().pageNumber();t.setPage(e+1),l.default().pageNumber()===e&&t.addPage()}e.drawTable=function(t){var e=t.settings;t.cursor={x:t.margin("left"),y:null==e.startY?t.margin("top"):e.startY};var n=e.startY+t.margin("bottom")+t.headHeight+t.footHeight;"avoid"===e.pageBreak&&(n+=t.height),("always"===e.pageBreak||null!=e.startY&&!1!==e.startY&&n>l.default().pageHeight())&&(c(l.default().doc),t.cursor.y=t.margin("top")),t.pageStartX=t.cursor.x,t.pageStartY=t.cursor.y,t.startPageNumber=l.default().pageNumber();var r=new i.Row([],0,"body");r.index=-1,o.applyUserStyles(),!0!==e.showHead&&"firstPage"!==e.showHead&&"everyPage"!==e.showHead||t.head.forEach((function(t){return u(t)})),o.applyUserStyles(),t.body.forEach((function(e,n){s(e,n===t.body.length-1,r)})),o.applyUserStyles(),!0!==e.showFoot&&"lastPage"!==e.showFoot&&"everyPage"!==e.showFoot||t.foot.forEach((function(t){return u(t)})),o.addTableBorder(),t.callEndPageHooks()},e.addPage=d},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),l=function(){function t(){var t=i.default().table;this.table=t,this.pageNumber=t.pageNumber,this.settings=t.settings,this.cursor=t.cursor,this.doc=i.default().doc}return Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pageNumber},enumerable:!0,configurable:!0}),t}();e.HookData=l;var a=function(t){function e(e,n,r){var o=t.call(this)||this;return o.cell=e,o.row=n,o.column=r,o.section=n.section,o}return o(e,t),e}(l);e.CellHookData=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n(1),i=n(0);function l(t,e,n){for(var r=0;r<t.length;r++){var o=t[r],a=e*(o.wrappedWidth/n),s=o.wrappedWidth+a;if(!(s>=o.minWidth)){o.width=o.minWidth+1/i.default().scaleFactor(),n-=o.wrappedWidth,t.splice(r,1),l(t,e,n);break}o.width=s}}e.calculateWidths=function(t){10/i.default().scaleFactor()*t.columns.length>t.width||(t.minWidth,t.width),l(t.columns.slice(0),t.width-t.wrappedWidth,t.wrappedWidth),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var r=e[n],o=null,i=0,l=0,a=0;a<t.columns.length;a++){var s=t.columns[a],u=null;if((l-=1)>1&&t.columns[a+1])i+=s.width,delete r.cells[s.index];else{if(o)u=o,delete r.cells[s.index],o=null;else{if(!(u=r.cells[s.index]))continue;if(l=u.colSpan,i=0,u.colSpan>1){o=u,i+=s.width;continue}}u.width=s.width+i}}}(t),function(t){for(var e={count:0,height:0},n=0,l=t.allRows();n<l.length;n++){for(var a=l[n],s=0,u=t.columns;s<u.length;s++){var d=u[s],c=a.cells[d.index];if(c){o.applyStyles(c.styles);var h=c.width-c.padding("horizontal");"linebreak"===c.styles.overflow?c.text=i.default().doc.splitTextToSize(c.text,h+1/(i.default().scaleFactor()||1),{fontSize:c.styles.fontSize}):"ellipsize"===c.styles.overflow?c.text=o.ellipsize(c.text,h,c.styles):"hidden"===c.styles.overflow?c.text=o.ellipsize(c.text,h,c.styles,""):"function"==typeof c.styles.overflow&&(c.text=c.styles.overflow(c.text,h));var f=Array.isArray(c.text)?c.text.length:1,g=c.styles.fontSize/i.default().scaleFactor()*r.FONT_ROW_RATIO;c.contentHeight=f*g+c.padding("vertical"),c.styles.minCellHeight>c.contentHeight&&(c.contentHeight=c.styles.minCellHeight);var p=c.contentHeight/c.rowSpan;c.rowSpan>1&&e.count*e.height<p*c.rowSpan?e={height:p,count:c.rowSpan}:e&&e.count>0&&e.height>p&&(p=e.height),p>a.height&&(a.height=p,a.maxCellHeight=p,a.maxCellLineCount=f)}}e.count--}}(t),function(t){for(var e={},n=1,r=t.allRows(),o=0;o<r.length;o++){for(var i=r[o],l=0,a=t.columns;l<a.length;l++){var s=a[l],u=e[s.index];if(n>1)n--,delete i.cells[s.index];else if(u)u.cell.height+=i.height,u.cell.height>i.maxCellHeight&&(u.row.maxCellHeight=u.cell.height,u.row.maxCellLineCount=Array.isArray(u.cell.text)?u.cell.text.length:1),n=u.cell.colSpan,delete i.cells[s.index],u.left--,u.left<=1&&delete e[s.index];else{var d=i.cells[s.index];if(!d)continue;if(d.height=i.height,d.rowSpan>1){var c=r.length-o,h=d.rowSpan>c?c:d.rowSpan;e[s.index]={cell:d,left:h,row:i}}}}"head"===i.section&&(t.headHeight+=i.maxCellHeight),"foot"===i.section&&(t.footHeight+=i.maxCellHeight),t.height+=i.height}}(t)}},function(t,e,n){"use strict";
17Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(2),i=n(12),l=n(3),a=n(1),s=n(0),u=n(14);function d(t,e,n){var r=s.default().table,i=o.getTheme(r.settings.theme),a=[i.table,i[t],r.styles.styles,r.styles[t+"Styles"]],u=r.styles.columnStyles[e.dataKey]||r.styles.columnStyles[e.index]||{},d="body"===t?u:{},c="body"===t&&n%2==0?l.assign({},i.alternateRow,r.styles.alternateRowStyles):{};return l.assign.apply(void 0,[o.defaultStyles()].concat(a.concat([c,d])))}e.parseInput=function(t){var e=function(t){if(1===t.length)return t[0];var e=t[2]||{};return e.body=t[1],e.columns=t[0],e.columns.forEach((function(t){null==t.header&&(t.header=t.title)})),e}(t),n=[s.getGlobalOptions(),s.getDocumentOptions(),e];u.default(n);var c=new r.Table;s.default().table=c,c.id=e.tableId;var h=s.default().doc;c.userStyles={textColor:h.getTextColor?h.getTextColor():0,fontSize:h.internal.getFontSize(),fontStyle:h.internal.getFont().fontStyle,font:h.internal.getFont().fontName};for(var f=function(t){var e=n.map((function(e){return e[t]||{}}));c.styles[t]=l.assign.apply(void 0,[{}].concat(e))},g=0,p=Object.keys(c.styles);g<p.length;g++){f(p[g])}for(var y=0,v=n;y<v.length;y++)for(var m=v[y],b=0,w=Object.keys(c.cellHooks);b<w.length;b++){var x=w[b];m&&"function"==typeof m[x]&&c.cellHooks[x].push(m[x])}c.settings=l.assign.apply(void 0,[{},o.defaultConfig()].concat(n)),c.settings.margin=a.marginOrPadding(c.settings.margin,o.defaultConfig().margin),"auto"===c.settings.theme&&(c.settings.theme=c.settings.useCss?"plain":"striped"),!1===c.settings.startY&&delete c.settings.startY;var S=s.default().doc.previousAutoTable,C=S&&S.startPageNumber+S.pageNumber-1===s.default().pageNumber();null==c.settings.startY&&C&&(c.settings.startY=S.finalY+20/s.default().scaleFactor());var P={};return c.settings.html&&(P=i.parseHtml(c.settings.html,c.settings.includeHiddenHtml,c.settings.useCss)||{}),c.settings.head=P.head||c.settings.head||[],c.settings.body=P.body||c.settings.body||[],c.settings.foot=P.foot||c.settings.foot||[],function(t){var e=t.settings;t.columns=function(t){if(t.columns)return t.columns.map((function(t,e){var n=t.dataKey||t.key||e;return new r.Column(n,t,e)}));var e=t.head[0]||t.body[0]||t.foot[0]||[],n=[];return Object.keys(e).filter((function(t){return"_element"!==t})).forEach((function(t){for(var o=e[t].colSpan||1,i=0;i<o;i++){var l=void 0;l=Array.isArray(e)?n.length:t+(i>0?"_"+i:""),n.push(new r.Column(l,l,n.length))}})),n}(e);for(var n=function(n){var o={},i=e[n];if(0===i.length&&e.columns&&"body"!==n){var l=function(t,e){var n={};return t.columns.forEach((function(t){var r=t.raw;if("head"===e){var o=r&&r.header?r.header:r;o&&(n[t.dataKey]=o)}else"foot"===e&&r.footer&&(n[t.dataKey]=r.footer)})),Object.keys(n).length>0?n:null}(t,n);l&&i.push(l)}i.forEach((function(e,i){var l=0,a=new r.Row(e,i,n);t[n].push(a);for(var s=0,u=0,c=0,h=t.columns;c<h.length;c++){var f=h[c];if(null==o[f.index]||0===o[f.index].left)if(0===u){var g=void 0;g=Array.isArray(e)?e[f.index-s-l]:e[f.dataKey];var p=d(n,f,i),y=new r.Cell(g,p,n);a.cells[f.dataKey]=y,a.cells[f.index]=y,t.callCellHooks(t.cellHooks.didParseCell,y,a,f),u=y.colSpan-1,o[f.index]={left:y.rowSpan-1,times:u}}else u--,s++;else o[f.index].left--,u=o[f.index].times,l++}}))},o=0,i=["head","body","foot"];o<i.length;o++){n(i[o])}t.allRows().forEach((function(e){for(var n=0,r=t.columns;n<r.length;n++){var o=r[n],i=e.cells[o.index];if(i&&1===i.colSpan)i.wrappedWidth>o.wrappedWidth&&(o.wrappedWidth=i.wrappedWidth),i.minWidth>o.minWidth&&(o.minWidth=i.minWidth);else{var l=(t.styles.columnStyles[o.dataKey]||t.styles.columnStyles[o.index]||{}).cellWidth;l&&(o.minWidth=l,o.wrappedWidth=l)}i&&i.colSpan>1&&!o.minWidth&&(o.minWidth=i.minWidth),i&&i.colSpan>1&&!o.wrappedWidth&&(o.wrappedWidth=i.minWidth)}}))}(c),c.minWidth=c.columns.reduce((function(t,e){return t+e.minWidth}),0),c.wrappedWidth=c.columns.reduce((function(t,e){return t+e.wrappedWidth}),0),"number"==typeof c.settings.tableWidth?c.width=c.settings.tableWidth:"wrap"===c.settings.tableWidth?c.width=c.wrappedWidth:c.width=s.default().pageWidth()-c.margin("left")-c.margin("right"),c}},function(t,e,n){"use strict";
17Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),o=n(0);function i(t,e,n,i){var a=[];if(!e)return a;for(var s=0;s<e.rows.length;s++){for(var u=e.rows[s],d=[],c=i?r.parseCss(u,o.default().scaleFactor(),["cellPadding","lineWidth","lineColor"]):{},h=0;h<u.cells.length;h++){var f=u.cells[h],g=t.getComputedStyle(f);if(n||"none"!==g.display){var p=i?r.parseCss(f,o.default().scaleFactor()):{};d.push({rowSpan:f.rowSpan,colSpan:f.colSpan,styles:i?p:null,_element:f,content:l(f)})}}d.length>0&&(n||"none"!==c.display)&&(d._element=u,a.push(d))}return a}function l(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split("<br>").map((function(t){return t.trim()})).join("\n"),e.innerText||e.textContent||""}e.parseHtml=function(t,e,n){var r;if(void 0===e&&(e=!1),void 0===n&&(n=!1),r="string"==typeof t?window.document.querySelector(t):t){for(var o=i(window,r.tHead,e,n),l=[],a=0;a<r.tBodies.length;a++)l=l.concat(i(window,r.tBodies[a],e,n));return{head:o,body:l,foot:i(window,r.tFoot,e,n)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(0);function i(t,e){var n=l(t,e);if(!n)return null;var r=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var o=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])];return 0===parseInt(r[4])||isNaN(o[0])||isNaN(o[1])||isNaN(o[2])?null:o}function l(t,e){if(!t)return null;var n=window.getComputedStyle(t)[e];return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?l(t.parentElement,e):n}e.parseCss=function(t,e,n){void 0===n&&(n=[]);var l={},a=window.getComputedStyle(t);function s(t,e,r){void 0===r&&(r=[]),0!==r.length&&-1===r.indexOf(e)||-1!==n.indexOf(t)||(0===e||e)&&(l[t]=e)}var u=96/72;s("fillColor",i(t,"backgroundColor")),s("fontStyle",function(t){var e="";("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e+="bold");"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic");return e}(a)),s("textColor",i(t,"color")),s("halign",a.textAlign,["left","right","center","justify"]),s("valign",a.verticalAlign,["middle","bottom","top"]),s("fontSize",parseInt(a.fontSize||"")/u),s("cellPadding",function(t,e,n,o){if(!t)return null;var i=96/(72/o),l=(parseInt(n)-parseInt(e))/o/2,a=t.split(" ").map((function(t){return parseInt(t)/i}));a=r.marginOrPadding(a,0),l>a.top&&(a.top=l);l>a.bottom&&(a.bottom=l);return a}(a.padding,a.fontSize,a.lineHeight,e)),s("lineWidth",parseInt(a.borderTopWidth||"")/u/e),s("lineColor",i(t,"borderTopColor"));var d=(a.fontFamily||"").toLowerCase();return o.default().doc.getFontList()[d]&&s("font",d),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function o(t){t.rowHeight?t.minCellHeight||(t.minCellHeight=t.rowHeight):t.columnWidth&&(t.cellWidth||(t.cellWidth=t.columnWidth))}e.default=function(t){for(var e=function(t){void 0!==t.extendWidth&&(t.tableWidth=t.extendWidth?"auto":"wrap"),void 0!==t.margins&&void 0===t.margin&&(t.margin=t.margins),t.startY&&"number"!=typeof t.startY&&delete t.startY,!t.didDrawPage&&(t.afterPageContent||t.beforePageContent||t.afterPageAdd)&&(t.didDrawPage=function(e){r.applyUserStyles(),t.beforePageContent&&t.beforePageContent(e),r.applyUserStyles(),t.afterPageContent&&t.afterPageContent(e),r.applyUserStyles(),t.afterPageAdd&&e.pageNumber>1&&e.afterPageAdd(e),r.applyUserStyles()}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(e){t[e]})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(e){var n=e[0],r=e[1];t[r]&&(t[n]=t[r])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(e){var n="string"==typeof e?e:e[0],r="string"==typeof e?e:e[1];void 0!==t[n]&&void 0===t.styles[r]&&(t.styles[r]=t[n])}));for(var e=0,n=["styles","bodyStyles","headStyles","footStyles"];e<n.length;e++){o(t[n[e]]||{})}for(var i=t.columnStyles||{},l=0,a=Object.keys(i);l<a.length;l++){o(i[a[l]]||{})}},n=0,i=t;n<i.length;n++){e(i[n])}}},function(t,e,n){n(6).API.autoTableText=function(t,e,n,r){r=r||{};var o=1.15,i=this.internal.scaleFactor,l=this.internal.getFontSize()/i,a=null,s=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(s=(a="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=l*(2-o),"middle"===r.valign?n-=s/2*l*o:"bottom"===r.valign&&(n-=s*l*o),"center"===r.halign||"right"===r.halign){var u=l;if("center"===r.halign&&(u*=.5),s>=1){for(var d=0;d<a.length;d++)this.text(a[d],e-this.getStringUnitWidth(a[d])*u,n),n+=l*o;return this}e-=this.getStringUnitWidth(t)*u}return"justify"===r.halign?this.text(t,e,n,{maxWidth:r.maxWidth||100,align:"justify"}):this.text(t,e,n),this}}])}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.