/home/techb158/dev.balacoffee.com/public/js/bundle
Edit: /home/techb158/dev.balacoffee.com/public/js/bundle/index_sales.js (495733B)
/*! For license information please see index_sales.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[3963],{54465:(t,e,n)=>{"use strict";n.d(e,{J:()=>h});var r="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",o=null,s=function(t){return null!==o||(o=new Promise((function(e,n){if("undefined"!=typeof window)if(window.Stripe&&t&&console.warn(a),window.Stripe)e(window.Stripe);else try{var o=function(){for(var t=document.querySelectorAll('script[src^="'.concat(r,'"]')),e=0;e
element.");return i.appendChild(n),n}(t)),o.addEventListener("load",(function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))})),o.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(t){return void n(t)}else e(null)}))),o},l=function(t,e,n){if(null===t)return null;var r=t.apply(void 0,e);return function(t,e){t&&t._registerWrapper&&t._registerWrapper({name:"stripe-js",version:"1.22.0",startTime:e})}(r,n),r},u=Promise.resolve().then((function(){return s(null)})),c=!1;u.catch((function(t){c||console.warn(t)}));var h=function(){for(var t=arguments.length,e=new Array(t),n=0;n{"use strict";n.d(e,{Z:()=>a});var r=n(23645),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,".total{font-size:14px;font-weight:700}",""]);const a=i},55961:(t,e,n)=>{"use strict";var r=f(n(82289)),i=f(n(62276)),a=f(n(25443)),o=f(n(87044)),s=f(n(49972)),l=f(n(75065)),u=f(n(88532)),c=n(82362),h=f(n(66025));function f(t){return t&&t.__esModule?t:{default:t}}var d=function(){},p=function(t,e,n){var r=new d;if(void 0===t)throw Error("No element to render on was provided.");return r._renderProperties=(0,s.default)(t),r._encodings=[],r._options=h.default,r._errorHandler=new u.default(r),void 0!==e&&((n=n||{}).format||(n.format=b()),r.options(n)[n.format](e,n).render()),r};for(var m in p.getModule=function(t){return r.default[t]},r.default)r.default.hasOwnProperty(m)&&g(r.default,m);function g(t,e){d.prototype[e]=d.prototype[e.toUpperCase()]=d.prototype[e.toLowerCase()]=function(n,r){var a=this;return a._errorHandler.wrapBarcodeCall((function(){r.text=void 0===r.text?void 0:""+r.text;var o=(0,i.default)(a._options,r);o=(0,l.default)(o);var s=t[e],u=v(n,s,o);return a._encodings.push(u),a}))}}function v(t,e,n){var r=new e(t=""+t,n);if(!r.valid())throw new c.InvalidInputException(r.constructor.name,t);var o=r.encode();o=(0,a.default)(o);for(var s=0;s{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=n.text||e,this.options=n}},92089:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n=200){a=t.shift()-105;var o=s.SWAP[a];void 0!==o?i=e.next(t,n+1,o):(r!==s.SET_A&&r!==s.SET_B||a!==s.SHIFT||(t[0]=r===s.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),i=e.next(t,n+1,r))}else a=e.correctIndex(t,r),i=e.next(t,n+1,r);var l=a*n;return{result:e.getBar(a)+i.result,checksum:l+i.checksum}}}]),e}(o.default);e.default=l},98238:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(92089)),i=a(n(37293));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(t,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,i.default)(t),n));else r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o(r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=s},37293:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14602),i=function(t){return t.match(new RegExp("^"+r.A_CHARS+"*"))[0].length},a=function(t){return t.match(new RegExp("^"+r.B_CHARS+"*"))[0].length},o=function(t){return t.match(new RegExp("^"+r.C_CHARS+"*"))[0]};function s(t,e){var n=e?r.A_CHARS:r.B_CHARS,i=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(i)return i[1]+String.fromCharCode(204)+l(t.substring(i[1].length));var a=t.match(new RegExp("^"+n+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+s(t.substring(a.length),!e)}function l(t){var e=o(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var r=i(t)>=a(t);return e+String.fromCharCode(r?206:205)+s(t,r)}e.default=function(t){var e=void 0;if(o(t).length>=2)e=r.C_START_CHAR+l(t);else{var n=i(t)>a(t);e=(n?r.A_START_CHAR:r.B_START_CHAR)+s(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},14602:(t,e)=>{"use strict";var n;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var i=e.SET_A=0,a=e.SET_B=1,o=e.SET_C=2,s=(e.SHIFT=98,e.START_A=103),l=e.START_B=104,u=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(r(n={},s,i),r(n,l,a),r(n,u,o),n),e.SWAP={101:i,100:a,99:o},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHARS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},74935:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var r=s(n(88845)),i=s(n(98238)),a=s(n(21180)),o=s(n(20944));function s(t){return t&&t.__esModule?t:{default:t}}e.CODE128=r.default,e.CODE128A=i.default,e.CODE128B=a.default,e.CODE128C=o.default},93361:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,a.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,a.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:i.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:i.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:i.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[i.SIDE_BIN,this.leftEncode(),i.MIDDLE_BIN,this.rightEncode(),i.SIDE_BIN].join(""),text:this.text}}}]),e}(o(n(28012)).default);e.default=s},20023:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==s(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,i.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,i.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,i.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,i.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,i.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,i.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(a(n(28012)).default);function s(t){var e,n=0;for(e=1;e<11;e+=2)n+=parseInt(t[e]);for(e=0;e<11;e+=2)n+=3*parseInt(t[e]);return(10-n%10)%10}e.default=o},60930:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=c[parseInt(e)][parseInt(t)];return(0,i.default)(this.middleDigits,n)}}]),e}(a.default);function f(t,e){for(var n=parseInt(t[t.length-1]),r=u[n],i="",a=0,s=0;s{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},75532:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51239);e.default=function(t,e,n){var i=t.split("").map((function(t,n){return r.BINARIES[e[n]]})).map((function(e,n){return e?e[t[n]]:""}));if(n){var a=t.length-1;i=i.map((function(t,e){return e{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var r=u(n(20023)),i=u(n(45218)),a=u(n(59668)),o=u(n(76552)),s=u(n(45314)),l=u(n(60930));function u(t){return t&&t.__esModule?t:{default:t}}e.EAN13=r.default,e.EAN8=i.default,e.EAN5=a.default,e.EAN2=o.default,e.UPC=s.default,e.UPCE=l.default},6447:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},35984:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var r=a(n(23074)),i=a(n(6972));function a(t){return t&&t.__esModule?t:{default:t}}e.ITF=r.default,e.ITF14=i.default},22582:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(22582),a=(r=i)&&r.__esModule?r:{default:r},o=n(4348);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod10)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);e.default=s},98035:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(22582),a=(r=i)&&r.__esModule?r:{default:r},o=n(4348);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod10)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);e.default=s},5883:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(22582),a=(r=i)&&r.__esModule?r:{default:r},o=n(4348);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod11)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);e.default=s},96287:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(22582),a=(r=i)&&r.__esModule?r:{default:r},o=n(4348);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod11)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);e.default=s},4348:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var r=l(n(22582)),i=l(n(97839)),a=l(n(5883)),o=l(n(98035)),s=l(n(96287));function l(t){return t&&t.__esModule?t:{default:t}}e.MSI=r.default,e.MSI10=i.default,e.MSI11=a.default,e.MSI1010=o.default,e.MSI1110=s.default},40123:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93361),i=n(74935),a=n(15321),o=n(35984),s=n(28458),l=n(23840),u=n(40123),c=n(6447);e.default={CODE39:r.CODE39,CODE128:i.CODE128,CODE128A:i.CODE128A,CODE128B:i.CODE128B,CODE128C:i.CODE128C,EAN13:a.EAN13,EAN8:a.EAN8,EAN5:a.EAN5,EAN2:a.EAN2,UPC:a.UPC,UPCE:a.UPCE,ITF14:o.ITF14,ITF:o.ITF,MSI:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,pharmacode:l.pharmacode,codabar:u.codabar,GenericBarcode:c.GenericBarcode}},23840:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var r,i=function(){function t(t,e){for(var n=0;n=3&&this.number<=131070}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.pharmacode=o},88532:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n{"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(t,i){n(this,e);var a=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a.name="InvalidInputException",a.symbology=t,a.input=i,a.message='"'+a.input+'" is not a valid input for '+a.symbology,a}return i(e,Error),e}(),o=function(t){function e(){n(this,e);var t=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return i(e,Error),e}(),s=function(t){function e(){n(this,e);var t=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return i(e,Error),e}();e.InvalidInputException=a,e.InvalidElementException=o,e.NoElementException=s},87044:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}},43898:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(75065)),i=a(n(66025));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e={};for(var n in i.default)i.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,r.default)(e)}},49972:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=s(n(43898)),a=s(n(32804)),o=n(82362);function s(t){return t&&t.__esModule?t:{default:t}}function l(t){if("string"==typeof t)return function(t){var e=document.querySelectorAll(t);if(0===e.length)return;for(var n=[],r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return function t(n){if(Array.isArray(n))for(var r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&(n=e[n],"string"==typeof t[n]&&(t[n]=parseInt(t[n],10)));"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue);return t}},66025:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};e.default=n},98204:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n0?(n=0,i.textAlign="left"):"right"==t.textAlign?(n=e.width-1,i.textAlign="right"):(n=e.width/2,i.textAlign="center"),i.fillText(e.text,n,r))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=l},32804:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(98204)),i=o(n(36917)),a=o(n(98652));function o(t){return t&&t.__esModule?t:{default:t}}e.default={CanvasRenderer:r.default,SVGRenderer:i.default,ObjectRenderer:a.default}},98652:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var r,i=n(62276),a=(r=i)&&r.__esModule?r:{default:r};function o(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function s(t,e,n){if(n.displayValue&&ee&&(e=t[n].height);return e},e.getEncodingHeight=o,e.getBarcodePadding=s,e.calculateEncodingAttributes=function(t,e,n){for(var r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n0&&(this.drawRect(o-e.width*a,r,e.width*a,e.height,t),a=0);a>0&&this.drawRect(o-e.width*(a-1),r,e.width*a,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var r,i,a=this.document.createElementNS(l,"text");e.displayValue&&(a.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),i="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(r=0,a.setAttribute("text-anchor","start")):"right"==e.textAlign?(r=n.width-1,a.setAttribute("text-anchor","end")):(r=n.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",r),a.setAttribute("y",i),a.appendChild(this.document.createTextNode(n.text)),t.appendChild(a))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",l),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,n){var r=this.document.createElementNS(l,"g");return r.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,n,r,i){var a=this.document.createElementNS(l,"rect");return a.setAttribute("x",t),a.setAttribute("y",e),a.setAttribute("width",n),a.setAttribute("height",r),i.appendChild(a),a}}]),t}();e.default=u},18159:function(t,e,n){var r;void 0!==this||window,t.exports=(r=function(){try{return n(17959)}catch(t){}}(),(()=>{"use strict";var t={662:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CellHookData=e.HookData=void 0;var i=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.pageCount=this.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()};e.HookData=i;var a=function(t){function e(e,n,r,i,a,o){var s=t.call(this,e,n,o)||this;return s.cell=r,s.row=i,s.column=a,s.section=i.section,s}return r(e,t),e}(i);e.CellHookData=a},790:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(148),i=n(938),a=n(323),o=n(587),s=n(49),l=n(858);e.default=function(t){t.API.autoTable=function(){for(var t,e=[],n=0;n {}}) instead."),t.API.autoTable.globalDefaults||(t.API.autoTable.globalDefaults={}),t.API.autoTable.globalDefaults.addPageContent=e,this},t.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},938:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){r=r||{};var a=1.15,o=i.internal.scaleFactor,s=i.internal.getFontSize()/o,l="",u=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(u=(l="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=s*(2-a),"middle"===r.valign?n-=u/2*s*a:"bottom"===r.valign&&(n-=u*s*a),"center"===r.halign||"right"===r.halign){var c=s;if("center"===r.halign&&(c*=.5),l&&u>=1){for(var h=0;h{function n(t,e){var n=t>0,r=e||0===e;return n&&r?"DF":n?"S":r?"F":null}Object.defineProperty(e,"__esModule",{value:!0}),e.parseSpacing=e.getFillStyle=e.addTableBorder=e.getStringWidth=void 0,e.getStringWidth=function(t,e,n){return n.applyStyles(e,!0),(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0)},e.addTableBorder=function(t,e,r,i){var a=e.settings.tableLineWidth,o=e.settings.tableLineColor;t.applyStyles({lineWidth:a,lineColor:o});var s=n(a,!1);s&&t.rect(r.x,r.y,e.getWidth(t.pageSize().width),i.y-r.y,s)},e.getFillStyle=n,e.parseSpacing=function(t,e){var n,r,i,a;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(3===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t=1===t.length?t[0]:e}return"object"==typeof t?("number"==typeof t.vertical&&(t.top=t.vertical,t.bottom=t.vertical),"number"==typeof t.horizontal&&(t.right=t.horizontal,t.left=t.horizontal),{left:null!==(n=t.left)&&void 0!==n?n:e,top:null!==(r=t.top)&&void 0!==r?r:e,right:null!==(i=t.right)&&void 0!==i?i:e,bottom:null!==(a=t.bottom)&&void 0!==a?a:e}):("number"!=typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}},913:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.getTheme=e.defaultStyles=e.HtmlRowInput=e.FONT_ROW_RATIO=void 0,e.FONT_ROW_RATIO=1.15;var i=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return r(e,t),e}(Array);e.HtmlRowInput=i,e.defaultStyles=function(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth: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]}},259:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseCss=void 0;var r=n(200);function i(t,e){var n=a(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 i=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])];return 0===parseInt(r[4])||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function a(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:a(t.parentElement,e):n}e.parseCss=function(t,e,n,a,o){var s={},l=96/72,u=i(e,(function(t){return o.getComputedStyle(t).backgroundColor}));null!=u&&(s.fillColor=u);var c=i(e,(function(t){return o.getComputedStyle(t).color}));null!=c&&(s.textColor=c);var h=i(e,(function(t){return o.getComputedStyle(t).borderTopColor}));null!=h&&(s.lineColor=h);var f=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],i=96/(72/e),a=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,o=n.map((function(t){return parseInt(t||"0")/i})),s=(0,r.parseSpacing)(o,0);return a>s.top&&(s.top=a),a>s.bottom&&(s.bottom=a),s}(a,n);f&&(s.cellPadding=f);var d=parseInt(a.borderTopWidth||"");(d=d/l/n)&&(s.lineWidth=d);var p=["left","right","center","justify"];-1!==p.indexOf(a.textAlign)&&(s.halign=a.textAlign),-1!==(p=["middle","bottom","top"]).indexOf(a.verticalAlign)&&(s.valign=a.verticalAlign);var m=parseInt(a.fontSize||"");isNaN(m)||(s.fontSize=m/l);var g=function(t){var e="";return("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold"),"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic"),e}(a);g&&(s.fontStyle=g);var v=(a.fontFamily||"").toLowerCase();return-1!==t.indexOf(v)&&(s.font=v),s}},323:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DocHandler=void 0;var n={},r=function(){function t(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName}}return t.setDefaults=function(t,e){void 0===e&&(e=null),e?e.__autoTableDocumentDefaults=t:n=t},t.unifyColor=function(t){return Array.isArray(t)?t:"number"==typeof t?[t,t,t]:"string"==typeof t?[t]:null},t.prototype.applyStyles=function(e,n){var r,i,a;void 0===n&&(n=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var o=this.jsPDFDocument.internal.getFont(),s=o.fontStyle,l=o.fontName;if(e.font&&(l=e.font),e.fontStyle){s=e.fontStyle;var u=this.getFontList()[l];u&&-1===u.indexOf(s)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(u[0]),s=u[0])}if(this.jsPDFDocument.setFont(l,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var c=t.unifyColor(e.fillColor);c&&(r=this.jsPDFDocument).setFillColor.apply(r,c),(c=t.unifyColor(e.textColor))&&(i=this.jsPDFDocument).setTextColor.apply(i,c),(c=t.unifyColor(e.lineColor))&&(a=this.jsPDFDocument).setDrawColor.apply(a,c),"number"==typeof e.lineWidth&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(t,e,n){return this.jsPDFDocument.splitTextToSize(t,e,n)},t.prototype.rect=function(t,e,n,r,i){return this.jsPDFDocument.rect(t,e,n,r,i)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return n||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return null==t.width&&(t={width:t.getWidth(),height:t.getHeight()}),t},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t}();e.DocHandler=r},148:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseHtml=void 0;var r=n(259),i=n(913);function a(t,e,n,a,s,l){for(var u=new i.HtmlRowInput(a),c=0;c0&&(s||"none"!==p.display))return u}function o(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/\/).map((function(t){return t.trim()})).join("\n"),e.innerText||e.textContent||""}e.parseHtml=function(t,e,n,r,i){var o,s,l;void 0===r&&(r=!1),void 0===i&&(i=!1),l="string"==typeof e?n.document.querySelector(e):e;var u=Object.keys(t.getFontList()),c=t.scaleFactor(),h=[],f=[],d=[];if(!l)return console.error("Html table could not be found with input: ",e),{head:h,body:f,foot:d};for(var p=0;p{Object.defineProperty(e,"__esModule",{value:!0}),e.parseInput=void 0;var r=n(148),i=n(360),a=n(200),o=n(323),s=n(291);function l(t,e,n){var r=t[0]||e[0]||n[0]||[],i=[];return Object.keys(r).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!=typeof(e=Array.isArray(r)?r[parseInt(t)]:r[t])||Array.isArray(e)||(n=(null==e?void 0:e.colSpan)||1);for(var a=0;a0?"_"+a:"")};i.push(o)}})),i}e.parseInput=function(t,e){var n=new o.DocHandler(t),u=n.getDocumentOptions(),c=n.getGlobalOptions();(0,s.default)(n,c,u,e);var h,f=(0,i.assign)({},c,u,e);"undefined"!=typeof window&&(h=window);var d=function(t,e,n){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(a){if("columnStyles"===a){var o=t[a],s=e[a],l=n[a];r.columnStyles=(0,i.assign)({},o,s,l)}else{var u=[t,e,n].map((function(t){return t[a]||{}}));r[a]=(0,i.assign)({},u[0],u[1],u[2])}},o=0,s=Object.keys(r);o{function n(t){t.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),t.minCellHeight||(t.minCellHeight=t.rowHeight)):t.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),t.cellWidth||(t.cellWidth=t.columnWidth))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,i){for(var a=function(e){e&&"object"!=typeof e&&console.error("The options parameter should be of type object, is: "+typeof e),void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==e.margins&&(void 0===e.margin&&(e.margin=e.margins),console.error("Use of deprecated option: margins, use margin instead.")),e.startY&&"number"!=typeof e.startY&&(console.error("Invalid value for startY option",e.startY),delete e.startY),!e.didDrawPage&&(e.afterPageContent||e.beforePageContent||e.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),e.didDrawPage=function(n){t.applyStyles(t.userStyles),e.beforePageContent&&e.beforePageContent(n),t.applyStyles(t.userStyles),e.afterPageContent&&e.afterPageContent(n),t.applyStyles(t.userStyles),e.afterPageAdd&&n.pageNumber>1&&n.afterPageAdd(n),t.applyStyles(t.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(t){e[t]&&console.error('The "'+t+'" hook has changed in version 3.0, check the changelog for how to migrate.')})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(t){var n=t[0],r=t[1];e[r]&&(console.error("Use of deprecated option "+r+". Use "+n+" instead"),e[n]=e[r])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(t){var n="string"==typeof t?t:t[0],r="string"==typeof t?t:t[1];void 0!==e[n]&&(void 0===e.styles[r]&&(e.styles[r]=e[n]),console.error("Use of deprecated option: "+n+", use the style "+r+" instead."))}));for(var r=0,i=["styles","bodyStyles","headStyles","footStyles"];r{Object.defineProperty(e,"__esModule",{value:!0}),e.Column=e.Cell=e.Row=e.Table=void 0;var r=n(913),i=n(662),a=n(200),o=function(){function t(t,e){this.pageNumber=1,this.pageCount=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(t){return this.head.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.getFootHeight=function(t){return this.foot.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(t,e,n,r,a,o){for(var s=0,l=e;s1})).length>0},t.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},t.prototype.getMinimumRowHeight=function(t,e){var n=this;return t.reduce((function(t,i){var a=n.cells[i.index];if(!a)return 0;var o=a.styles.fontSize/e.scaleFactor()*r.FONT_ROW_RATIO,s=a.padding("vertical")+o;return s>t?s:t}),0)},t}();e.Row=s;var l=function(){function t(t,e,n){var r,i;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=n,this.raw=t;var a=t;null==t||"object"!=typeof t||Array.isArray(t)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,a=null!==(i=null!==(r=t.content)&&void 0!==r?r:t.title)&&void 0!==i?i:t,t._element&&(this.raw=t._element));var o=null!=a?""+a:"";this.text=o.split(/\r\n|\r|\n/g)}return t.prototype.getTextPos=function(){var t,e;if("top"===this.styles.valign)t=this.y+this.padding("top");else if("bottom"===this.styles.valign)t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}if("right"===this.styles.halign)e=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var r=this.width-this.padding("horizontal");e=this.x+r/2+this.padding("left")}else e=this.x+this.padding("left");return{x:e,y:t}},t.prototype.getContentHeight=function(t){var e=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/t*r.FONT_ROW_RATIO)+this.padding("vertical");return Math.max(e,this.styles.minCellHeight)},t.prototype.padding=function(t){var e=(0,a.parseSpacing)(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}();e.Cell=l;var u=function(){function t(t,e,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n}return t.prototype.getMaxCustomCellWidth=function(t){for(var e=0,n=0,r=t.allRows();n{Object.defineProperty(e,"__esModule",{value:!0}),e.assign=void 0,e.assign=function(t,e,n,r,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(t),o=1;o{Object.defineProperty(e,"__esModule",{value:!0}),e.createTable=void 0;var r=n(323),i=n(287),a=n(189),o=n(913),s=n(360);function l(t,e,n,r,a,o){var s={};return e.map((function(e,l){for(var u=0,h={},f=0,d=0,p=0,m=n;p0?n:null}function c(t,e,n,r,i,a,l){var u,c=(0,o.getTheme)(r);"head"===t?u=i.headStyles:"body"===t?u=i.bodyStyles:"foot"===t&&(u=i.footStyles);var h=(0,s.assign)({},c.table,c[t],i.styles,u),f=i.columnStyles[e.dataKey]||i.columnStyles[e.index]||{},d="body"===t?f:{},p="body"===t&&n%2==0?(0,s.assign)({},c.alternateRow,i.alternateRowStyles):{},m=(0,o.defaultStyles)(a),g=(0,s.assign)({},m,h,p,d);return(0,s.assign)(g,l)}e.createTable=function(t,e){var n=new r.DocHandler(t),o=function(t,e){var n,r=t.content,a=function(t){return t.map((function(t,e){var n,r,a;return a="object"==typeof t&&null!==(r=null!==(n=t.dataKey)&&void 0!==n?n:t.key)&&void 0!==r?r:e,new i.Column(a,t,e)}))}(r.columns);0===r.head.length&&(n=u(a,"head"))&&r.head.push(n),0===r.foot.length&&(n=u(a,"foot"))&&r.foot.push(n);var o=t.settings.theme,s=t.styles;return{columns:a,head:l("head",r.head,a,s,o,e),body:l("body",r.body,a,s,o,e),foot:l("foot",r.foot,a,s,o,e)}}(e,n.scaleFactor()),s=new i.Table(e,o);return(0,a.calculateWidths)(n,s),n.applyStyles(n.userStyles),s}},49:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.addPage=e.drawTable=void 0;var r=n(913),i=n(200),a=n(287),o=n(323),s=n(360),l=n(938),u=n(435);function c(t,e,n){var i=t.styles.fontSize/n.scaleFactor()*r.FONT_ROW_RATIO,a=t.padding("vertical"),o=Math.floor((e-a)/i);return Math.max(0,o)}function h(t,e,n,r,i,o,l){var u=function(t,e,n,r){var i=e.settings.margin.bottom,a=e.settings.showFoot;return("everyPage"===a||"lastPage"===a&&n)&&(i+=e.getFootHeight(e.columns)),t.pageSize().height-r.y-i}(t,e,r,o);if(n.canEntireRowFit(u,l))f(t,e,n,o,l);else if(function(t,e,n,r){var i=t.pageSize().height,a=r.settings.margin,o=i-(a.top+a.bottom);"body"===e.section&&(o-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var s=e.getMinimumRowHeight(r.columns,t),l=so)return console.error("Will not be able to print row "+e.index+" correctly since it's minimum height is larger than page height"),!0;if(!l)return!1;var u=e.hasRowSpan(r.columns);return e.getMaxCellHeight(r.columns)>o?(u&&console.error("The content of row "+e.index+" will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported."),!0):!u&&"avoid"!==r.settings.rowPageBreak}(t,n,u,e)){var d=function(t,e,n,r){var i={};t.spansMultiplePages=!0,t.height=0;for(var o=0,l=0,u=n.columns;ld&&(f.text=b.text.splice(d,b.text.length));var p=r.scaleFactor();b.contentHeight=b.getContentHeight(p),b.contentHeight>=e&&(b.contentHeight=e,f.styles.minCellHeight-=e),b.contentHeight>t.height&&(t.height=b.contentHeight),f.contentHeight=f.getContentHeight(p),f.contentHeight>o&&(o=f.contentHeight),i[h.index]=f}}var m=new a.Row(t.raw,-1,t.section,i,!0);m.height=o;for(var g=0,v=n.columns;gg.pageSize().height)&&(m(g),l.y=a.top);var v=(0,s.assign)({},l);e.startPageNumber=g.pageNumber(),!0===n.horizontalPageBreak?function(t,e,n,r){u.default.calculateAllColumnsCanFitInPage(t,e).map((function(i,a){t.applyStyles(t.userStyles),a>0?p(t,e,n,r,i.columns):function(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),("firstPage"===i.showHead||"everyPage"===i.showHead)&&e.head.forEach((function(i){return f(t,e,i,n,r)}))}(t,e,r,i.columns),function(t,e,n,r,i){t.applyStyles(t.userStyles),e.body.forEach((function(a,o){var s=o===e.body.length-1;h(t,e,a,s,n,r,i)}))}(t,e,n,r,i.columns),function(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),("lastPage"===i.showFoot||"everyPage"===i.showFoot)&&e.foot.forEach((function(i){return f(t,e,i,n,r)}))}(t,e,r,i.columns)}))}(g,e,v,l):(g.applyStyles(g.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return f(g,e,t,l,e.columns)})),g.applyStyles(g.userStyles),e.body.forEach((function(t,n){var r=n===e.body.length-1;h(g,e,t,r,v,l,e.columns)})),g.applyStyles(g.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return f(g,e,t,l,e.columns)}))),(0,i.addTableBorder)(g,e,v,l),e.callEndPageHooks(g,l),e.finalY=l.y,t.lastAutoTable=e,t.previousAutoTable=e,t.autoTable&&(t.autoTable.previous=e),g.applyStyles(g.userStyles)},e.addPage=p},435:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(200),i=function(t,e){var n=(0,r.parseSpacing)(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)},a=function(t,e,n){void 0===n&&(n={});var r=i(t,e),a=e.settings.horizontalPageBreakRepeat,o=null,s=[],l=[],u=e.columns.length,c=n&&n.start?n.start:0;for(null!=a&&(o=e.columns.find((function(t){return t.dataKey===a||t.index===a})))&&(s.push(o.index),l.push(e.columns[o.index]),r-=o.wrappedWidth);c{Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsize=e.resizeColumns=e.calculateWidths=void 0;var r=n(200),i=n(435);function a(t,e,n){for(var r=e,i=t.reduce((function(t,e){return t+e.wrappedWidth}),0),o=0;on(t)}));f.length&&(e=a(f,e,n))}return e}function o(t,e,n,i,a){return t.map((function(t){return function(t,e,n,i,a){var o=1e4*i.scaleFactor();if((e=Math.ceil(e*o)/o)>=(0,r.getStringWidth)(t,n,i))return t;for(;e<(0,r.getStringWidth)(t+a,n,i)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+a}(t,e,n,i,a)}))}e.calculateWidths=function(t,e){!function(t,e){var n=t.scaleFactor(),a=e.settings.horizontalPageBreak,o=i.default.getPageAvailableWidth(t,e);e.allRows().forEach((function(i){for(var s=0,l=e.columns;so?(c.minWidth=o,c.wrappedWidth=o):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var p=10/n;c.minWidth=c.styles.minCellWidth||p,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,r=e.columns;n1&&!i.minWidth&&(i.minWidth=a.minWidth),a.colSpan>1&&!i.wrappedWidth&&(i.wrappedWidth=a.minWidth))}}))}(t,e);var n=[],s=0;e.columns.forEach((function(t){var r=t.getMaxCustomCellWidth(e);r?t.width=r:(t.width=t.wrappedWidth,n.push(t)),s+=t.width}));var l=e.getWidth(t.pageSize().width)-s;l&&(l=a(n,l,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),l&&(l=a(n,l,(function(t){return t.minWidth}))),l=Math.abs(l),!e.settings.horizontalPageBreak&&l>.1/t.scaleFactor()&&(l=l<1?l:Math.round(l),console.error("Of the table content, "+l+" units width could not fit page")),function(t){for(var e=t.allRows(),n=0;n1&&t.columns[s+1])a+=l.width,delete r.cells[l.index];else if(i){var u=i;delete r.cells[l.index],i=null,u.width=l.width+a}else{if(!(u=r.cells[l.index]))continue;if(o=u.colSpan,a=0,u.colSpan>1){i=u,a+=l.width;continue}u.width=l.width+a}}}(e),function(t,e){for(var n={count:0,height:0},r=0,i=t.allRows();r1&&n.count*n.height0&&n.height>f&&(f=n.height),f>a.height&&(a.height=f)}}n.count--}}(e,t),function(t){for(var e={},n=1,r=t.allRows(),i=0;i1)n--,delete a.cells[l.index];else if(u)u.cell.height+=a.height,n=u.cell.colSpan,delete a.cells[l.index],u.left--,u.left<=1&&delete e[l.index];else{var c=a.cells[l.index];if(!c)continue;if(c.height=a.height,c.rowSpan>1){var h=r.length-i,f=c.rowSpan>h?h:c.rowSpan;e[l.index]={cell:c,left:f,row:a}}}}}(e)},e.resizeColumns=a,e.ellipsize=o},84:t=>{if(void 0===r){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}t.exports=r}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}var i={};return(()=>{var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.Cell=t.Column=t.Row=t.Table=t.CellHookData=t.__drawTable=t.__createTable=t.applyPlugin=void 0;var e=n(790),r=n(587),a=n(49),o=n(858),s=n(287);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return s.Table}});var l=n(662);Object.defineProperty(t,"CellHookData",{enumerable:!0,get:function(){return l.CellHookData}});var u=n(287);function c(t){(0,e.default)(t)}Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return u.Cell}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return u.Column}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return u.Row}}),t.applyPlugin=c,t.default=function(t,e){var n=(0,r.parseInput)(t,e),i=(0,o.createTable)(t,n);(0,a.drawTable)(t,i)},t.__createTable=function(t,e){var n=(0,r.parseInput)(t,e);return(0,o.createTable)(t,n)},t.__drawTable=function(t,e){(0,a.drawTable)(t,e)};try{var h=n(84);h.jsPDF&&(h=h.jsPDF),c(h)}catch(t){}})(),i})())},17959:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.r(e),n.d(e,{AcroForm:()=>we,AcroFormAppearance:()=>ge,AcroFormButton:()=>ue,AcroFormCheckBox:()=>de,AcroFormChoiceField:()=>ae,AcroFormComboBox:()=>se,AcroFormEditBox:()=>le,AcroFormListBox:()=>oe,AcroFormPasswordField:()=>me,AcroFormPushButton:()=>ce,AcroFormRadioButton:()=>he,AcroFormTextField:()=>pe,GState:()=>Nt,ShadingPattern:()=>Ct,TilingPattern:()=>kt,default:()=>bn,jsPDF:()=>Ot});var i=Uint8Array,a=Uint16Array,o=Uint32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var n=new a(31),r=0;r<31;++r)n[r]=e+=1<>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,v[b]=((65280&y)>>>8|(255&y)<<8)>>>1}var w=function(t,e,n){for(var r=t.length,i=0,o=new a(e);i>>u]=c}else for(s=new a(r),i=0;i>>15-t[i];return s},_=new i(288);for(b=0;b<144;++b)_[b]=8;for(b=144;b<256;++b)_[b]=9;for(b=256;b<280;++b)_[b]=7;for(b=280;b<288;++b)_[b]=8;var x=new i(32);for(b=0;b<32;++b)x[b]=5;var S=w(_,9,0),A=w(_,9,1),P=w(x,5,0),N=w(x,5,1),L=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},C=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},k=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},O=function(t){return(t/8>>0)+(7&t&&1)},j=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof a?a:t instanceof o?o:i)(n-e);return r.set(t.subarray(e,n)),r},F=function(t,e,n){var r=t.length,a=!e||n,o=!n||n.i;n||(n={}),e||(e=new i(3*r));var c=function(t){var n=e.length;if(t>n){var r=new i(Math.max(2*n,t));r.set(e),e=r}},h=n.f||0,d=n.p||0,p=n.b||0,g=n.l,v=n.d,b=n.m,y=n.n,_=8*r;do{if(!g){n.f=h=C(t,d,1);var x=C(t,d+1,3);if(d+=3,!x){var S=t[(z=O(d)+4)-4]|t[z-3]<<8,P=z+S;if(P>r){if(o)throw"unexpected EOF";break}a&&c(p+S),e.set(t.subarray(z,P),p),n.b=p+=S,n.p=d=8*P;continue}if(1==x)g=A,v=N,b=9,y=5;else{if(2!=x)throw"invalid block type";var F=C(t,d,31)+257,E=C(t,d+10,15)+4,I=F+C(t,d+5,31)+1;d+=14;for(var T=new i(I),R=new i(19),M=0;M_)break;var q=w(R,D,1);for(M=0;M>>4)<16)T[M++]=z;else{var H=0,W=0;for(16==z?(W=3+C(t,d,3),d+=2,H=T[M-1]):17==z?(W=3+C(t,d,7),d+=3):18==z&&(W=11+C(t,d,127),d+=7);W--;)T[M++]=H}}var $=T.subarray(0,F),G=T.subarray(F);b=L($),y=L(G),g=w($,b,1),v=w(G,y,1)}if(d>_)throw"unexpected EOF"}a&&c(p+131072);for(var V=(1<>>4;if((d+=15&H)>_)throw"unexpected EOF";if(!H)throw"invalid length/literal";if(J<256)e[p++]=J;else{if(256==J){g=null;break}var K=J-254;if(J>264){var Z=s[M=J-257];K=C(t,d,(1<>>4;if(!Q)throw"invalid distance";d+=15&Q;G=m[tt];if(tt>3){Z=l[tt];G+=k(t,d)&(1<_)throw"unexpected EOF";a&&c(p+131072);for(var et=p+K;p>0;t[r]|=n,t[r+1]|=n>>>8},I=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},T=function(t,e){for(var n=[],r=0;rp&&(p=s[r].s);var m=new a(p+1),g=R(n[f-1],m,0);if(g>e){r=0;var v=0,b=g-e,y=1<e))break;v+=y-(1<>>=b;v>0;){var _=s[r].s;m[_]=0&&v;--r){var x=s[r].s;m[x]==e&&(--m[x],++v)}g=e}return[new i(m),g]},R=function(t,e,n){return-1==t.s?Math.max(R(t.l,e,n+1),R(t.r,e,n+1)):e[t.s]=n},M=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new a(++e),r=0,i=t[0],o=1,s=function(t){n[r++]=t},l=1;l<=e;++l)if(t[l]==i&&l!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=t[l]}return[n.subarray(0,r),e]},D=function(t,e){for(var n=0,r=0;r>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!z[u[H-1]];--H);var W,$,G,V,X=d+5<<3,Y=D(i,_)+D(o,x)+c,J=D(i,g)+D(o,y)+c+14+3*H+D(F,z)+(2*F[16]+3*F[17]+7*F[18]);if(X<=Y&&X<=J)return B(e,p,t.subarray(f,f+d));if(E(e,p,1+(J15&&(E(e,p,tt[R]>>>5&127),p+=tt[R]>>>12)}}}else W=S,$=_,G=P,V=x;for(R=0;R255){et=r[R]>>>18&31;I(e,p,W[et+257]),p+=$[et+257],et>7&&(E(e,p,r[R]>>>23&31),p+=s[et]);var nt=31&r[R];I(e,p,G[nt]),p+=V[nt],nt>3&&(I(e,p,r[R]>>>5&8191),p+=l[nt])}else I(e,p,W[r[R]]),p+=$[r[R]];return I(e,p,W[256]),p+$[256]},z=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new i(0),H=function(t,e,n,r,u,c){var h=t.length,f=new i(r+h+5*(1+Math.floor(h/7e3))+u),p=f.subarray(r,f.length-u),m=0;if(!e||h<8)for(var v=0;v<=h;v+=65535){var b=v+65535;b>>13,_=8191&y,x=(1<7e3||T>24576)&&$>423){m=q(t,p,0,C,k,F,I,T,M,v-M,m),T=E=I=0,M=v;for(var G=0;G<286;++G)k[G]=0;for(G=0;G<30;++G)F[G]=0}var V=2,X=0,Y=_,J=H-W&32767;if($>2&&D==L(v-J))for(var K=Math.min(w,$)-1,Z=Math.min(32767,v),Q=Math.min(258,$);J<=Z&&--Y&&H!=W;){if(t[v+V]==t[v+V-J]){for(var tt=0;ttV){if(V=tt,X=J,tt>K)break;var et=Math.min(J,tt-2),nt=0;for(G=0;Gnt&&(nt=it,W=rt)}}}J+=(H=W)-(W=S[H])+32768&32767}if(X){C[T++]=268435456|d[V]<<18|g[X];var at=31&d[V],ot=31&g[X];I+=s[at]+l[ot],++k[257+at],++F[ot],R=v+V,++E}else C[T++]=t[v],++k[t[v]]}}m=q(t,p,c,C,k,F,I,T,M,v-M,m),c||(m=B(p,m,U))}return j(f,0,r+O(m)+u)},W=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,a=n.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},$=function(t,e,n,r,i){return H(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},G=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},V=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},X=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function Y(t,e){void 0===e&&(e={});var n=W();n.p(t);var r=$(t,e,2,4);return V(r,e),G(r,r.length-4,n.d()),r}function J(t,e){return F((X(t),t.subarray(2,-4)),e)}var K=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function Z(){K.console&&"function"==typeof K.console.log&&K.console.log.apply(K.console,arguments)}var Q={log:Z,warn:function(t){K.console&&("function"==typeof K.console.warn?K.console.warn.apply(K.console,arguments):Z.call(null,arguments))},error:function(t){K.console&&("function"==typeof K.console.error?K.console.error.apply(K.console,arguments):Z(t))}};function tt(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){at(r.response,e,n)},r.onerror=function(){Q.error("could not download file")},r.send()}function et(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function nt(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var rt,it,at=K.saveAs||("object"!==("undefined"==typeof window?"undefined":r(window))||window!==K?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=K.URL||K.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?et(i.href)?tt(t,e,n):nt(i,i.target="_blank"):nt(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){nt(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(et(t))tt(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){nt(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==r(e)&&(Q.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\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}(t,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return tt(t,e,n);var a="application/octet-stream"===t.type,o=/constructor/i.test(K.HTMLElement)||K.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&o)&&"object"===("undefined"==typeof FileReader?"undefined":r(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var u=K.URL||K.webkitURL,c=u.createObjectURL(t);i?i.location=c:location.href=c,i=null,setTimeout((function(){u.revokeObjectURL(c)}),4e4)}});function ot(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function st(t,e){var n=t[0],r=t[1],i=t[2],a=t[3];n=ut(n,r,i,a,e[0],7,-680876936),a=ut(a,n,r,i,e[1],12,-389564586),i=ut(i,a,n,r,e[2],17,606105819),r=ut(r,i,a,n,e[3],22,-1044525330),n=ut(n,r,i,a,e[4],7,-176418897),a=ut(a,n,r,i,e[5],12,1200080426),i=ut(i,a,n,r,e[6],17,-1473231341),r=ut(r,i,a,n,e[7],22,-45705983),n=ut(n,r,i,a,e[8],7,1770035416),a=ut(a,n,r,i,e[9],12,-1958414417),i=ut(i,a,n,r,e[10],17,-42063),r=ut(r,i,a,n,e[11],22,-1990404162),n=ut(n,r,i,a,e[12],7,1804603682),a=ut(a,n,r,i,e[13],12,-40341101),i=ut(i,a,n,r,e[14],17,-1502002290),n=ct(n,r=ut(r,i,a,n,e[15],22,1236535329),i,a,e[1],5,-165796510),a=ct(a,n,r,i,e[6],9,-1069501632),i=ct(i,a,n,r,e[11],14,643717713),r=ct(r,i,a,n,e[0],20,-373897302),n=ct(n,r,i,a,e[5],5,-701558691),a=ct(a,n,r,i,e[10],9,38016083),i=ct(i,a,n,r,e[15],14,-660478335),r=ct(r,i,a,n,e[4],20,-405537848),n=ct(n,r,i,a,e[9],5,568446438),a=ct(a,n,r,i,e[14],9,-1019803690),i=ct(i,a,n,r,e[3],14,-187363961),r=ct(r,i,a,n,e[8],20,1163531501),n=ct(n,r,i,a,e[13],5,-1444681467),a=ct(a,n,r,i,e[2],9,-51403784),i=ct(i,a,n,r,e[7],14,1735328473),n=ht(n,r=ct(r,i,a,n,e[12],20,-1926607734),i,a,e[5],4,-378558),a=ht(a,n,r,i,e[8],11,-2022574463),i=ht(i,a,n,r,e[11],16,1839030562),r=ht(r,i,a,n,e[14],23,-35309556),n=ht(n,r,i,a,e[1],4,-1530992060),a=ht(a,n,r,i,e[4],11,1272893353),i=ht(i,a,n,r,e[7],16,-155497632),r=ht(r,i,a,n,e[10],23,-1094730640),n=ht(n,r,i,a,e[13],4,681279174),a=ht(a,n,r,i,e[0],11,-358537222),i=ht(i,a,n,r,e[3],16,-722521979),r=ht(r,i,a,n,e[6],23,76029189),n=ht(n,r,i,a,e[9],4,-640364487),a=ht(a,n,r,i,e[12],11,-421815835),i=ht(i,a,n,r,e[15],16,530742520),n=ft(n,r=ht(r,i,a,n,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ft(a,n,r,i,e[7],10,1126891415),i=ft(i,a,n,r,e[14],15,-1416354905),r=ft(r,i,a,n,e[5],21,-57434055),n=ft(n,r,i,a,e[12],6,1700485571),a=ft(a,n,r,i,e[3],10,-1894986606),i=ft(i,a,n,r,e[10],15,-1051523),r=ft(r,i,a,n,e[1],21,-2054922799),n=ft(n,r,i,a,e[8],6,1873313359),a=ft(a,n,r,i,e[15],10,-30611744),i=ft(i,a,n,r,e[6],15,-1560198380),r=ft(r,i,a,n,e[13],21,1309151649),n=ft(n,r,i,a,e[4],6,-145523070),a=ft(a,n,r,i,e[11],10,-1120210379),i=ft(i,a,n,r,e[2],15,718787259),r=ft(r,i,a,n,e[9],21,-343485551),t[0]=wt(n,t[0]),t[1]=wt(r,t[1]),t[2]=wt(i,t[2]),t[3]=wt(a,t[3])}function lt(t,e,n,r,i,a){return e=wt(wt(e,t),wt(r,a)),wt(e<>>32-i,n)}function ut(t,e,n,r,i,a,o){return lt(e&n|~e&r,t,e,i,a,o)}function ct(t,e,n,r,i,a,o){return lt(e&r|n&~r,t,e,i,a,o)}function ht(t,e,n,r,i,a,o){return lt(e^n^r,t,e,i,a,o)}function ft(t,e,n,r,i,a,o){return lt(n^(e|~r),t,e,i,a,o)}function dt(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)st(r,pt(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(st(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,st(r,i),r}function pt(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}rt=K.atob.bind(K),it=K.btoa.bind(K);var mt="0123456789abcdef".split("");function gt(t){for(var e="",n=0;n<4;n++)e+=mt[t>>8*n+4&15]+mt[t>>8*n&15];return e}function vt(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function bt(t){return dt(t).map(vt).join("")}var yt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function _t(t,e){var n,r,i,a;if(t!==n){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+o.charCodeAt(l))%256,s[l]=s[u],s[u]=c}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(l=0;l/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=bt(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=_t(this.encryptionKey,this.padding)}function At(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function Pt(t){if("object"!==r(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[n]){var o=e[n][a];try{o[0].apply(t,r)}catch(n){K.console&&Q.error("jsPDF PubSub Error",n.message,n)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Nt(t){if(!(this instanceof Nt))return new Nt(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Lt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Ct(t,e,n,r,i){if(!(this instanceof Ct))return new Ct(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,Lt.call(this,r,i)}function kt(t,e,n,r,i){if(!(this instanceof kt))return new kt(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Lt.call(this,r,i)}function Ot(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],s=[],l=1,u=16,c="S",h=null;"object"===r(t=t||{})&&(n=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,null!==(h=t.encryption||null)&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),c=t.defaultPathOperation||"S"),s=t.filters||(!0===o?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=Pt;var m="1.3",g=p.__private__.getPdfVersion=function(){return m};p.__private__.setPdfVersion=function(t){m=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return v};var b=p.__private__.getPageFormat=function(t){return v[t]};a=a||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},w=y.COMPAT;function _(){this.saveGraphicsState(),et(new $t(yt,0,0,-yt,0,qn()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),c="n",w=y.ADVANCED}function x(){this.restoreGraphicsState(),c="S",w=y.COMPAT}var S=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=w===y.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},p.compatAPI=function(t){var e=w===y.ADVANCED;return e&&x.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},p.isAdvancedAPI=function(){return w===y.ADVANCED};var A,P=function(t){if(w!==y.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},N=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};A=p.hpf=p.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,u)}:"smart"===u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return N(t,16)};var L=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return N(t,2)},C=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return N(t,3)},k=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===y.COMPAT?t*yt:w===y.ADVANCED?t:void 0},O=function(t){return w===y.COMPAT?qn()-t:w===y.ADVANCED?t:void 0},j=function(t){return k(O(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var F,E="00000000000000000000000000000000",I=p.__private__.getFileId=function(){return E},T=p.__private__.setFileId=function(t){return E=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():E.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==h&&(Ve=new St(h.userPermissions,h.userPassword,h.ownerPassword,E)),E};p.setFileId=function(t){return T(t),this},p.getFileId=function(){return I()};var R=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[n,z(r),"'",z(i),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),a].join("")},M=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,a,o,0)},D=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=R(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return F=e},B=p.__private__.getCreationDate=function(t){var e=F;return"jsDate"===t&&(e=M(F)),e};p.setCreationDate=function(t){return D(t),this},p.getCreationDate=function(t){return B(t)};var q,z=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},U=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},H=0,W=[],$=[],G=0,V=[],X=[],Y=!1,J=$,Z=function(){H=0,G=0,$=[],W=[],V=[],Qt=Jt(),te=Jt()};p.__private__.setCustomOutputDestination=function(t){Y=!0,J=t};var tt=function(t){Y||(J=t)};p.__private__.resetCustomOutputDestination=function(){Y=!1,J=$};var et=p.__private__.out=function(t){return t=t.toString(),G+=t.length+1,J.push(t),J},nt=p.__private__.write=function(t){return et(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},rt=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},st=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return st};var lt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return lt=w===y.ADVANCED?t/yt:t,this};var ut,ct=p.__private__.getFontSize=p.getFontSize=function(){return w===y.COMPAT?lt:lt*yt},ht=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return ht=t,this},p.__private__.getR2L=p.getR2L=function(){return ht};var ft,dt=p.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))ut=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');ut=t}else ut=parseInt(t,10)};p.__private__.getZoomMode=function(){return ut};var pt,mt=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ft=t};p.__private__.getPageMode=function(){return ft};var gt=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');pt=t};p.__private__.getLayoutMode=function(){return pt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return dt(t),gt(e),mt(n),this};var vt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return vt[t]},p.__private__.getDocumentProperties=function(){return vt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in vt)vt.hasOwnProperty(e)&&t[e]&&(vt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(vt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vt[t]=e};var bt,yt,wt,_t,xt,Lt={},jt={},Ft=[],Et={},It={},Tt={},Rt={},Mt=null,Dt=0,Bt=[],qt=new Pt(p),zt=t.hotfixes||[],Ut={},Ht={},Wt=[],$t=function t(e,n,r,i,a,o){if(!(this instanceof t))return new t(e,n,r,i,a,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,n,r,i,a,o]};Object.defineProperty($t.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty($t.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty($t.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty($t.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty($t.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty($t.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty($t.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty($t.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty($t.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty($t.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty($t.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty($t.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty($t.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty($t.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty($t.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty($t.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),$t.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(A).join(t)},$t.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new $t(e,n,r,i,a,o)},$t.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&n===i&&i===a)if("string"==typeof n)e=n+" "+s[0];else if(2===t.precision)e=L(n/255)+" "+s[0];else e=C(n/255)+" "+s[0];else if(void 0===o||"object"===r(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)e=[n,i,a,s[1]].join(" ");else if(2===t.precision)e=[L(n/255),L(i/255),L(a/255),s[1]].join(" ");else e=[C(n/255),C(i/255),C(a/255),s[1]].join(" ")}else if("string"==typeof n)e=[n,i,a,o,s[2]].join(" ");else if(2===t.precision)e=[L(n),L(i),L(a),L(o),s[2]].join(" ");else e=[C(n),C(i),C(a),C(o),s[2]].join(" ");return e},re=p.__private__.getFilters=function(){return s},ie=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==h&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==h&&(s=Ve.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],c=(l=void 0!==Ot.API.processDataByFilters?Ot.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var f=0;f>"),0!==l.data.length&&(et("stream"),et(s(l.data)),et("endstream"))},ae=p.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Kt(r,!0),et("<>"),et("endobj");var a=n.join("\n");return w===y.ADVANCED&&(a+="\nQ"),Kt(i,!0),ie({data:a,filters:re(),objectId:i}),et("endobj"),r},oe=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Dt;t++)Bt[t].objId=Jt(),Bt[t].contentsObjId=Jt();for(t=1;t<=Dt;t++)n.push(ae({number:t,data:X[t],objId:Bt[t].objId,contentsObjId:Bt[t].contentsObjId,mediaBox:Bt[t].mediaBox,cropBox:Bt[t].cropBox,bleedBox:Bt[t].bleedBox,trimBox:Bt[t].trimBox,artBox:Bt[t].artBox,userUnit:Bt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Kt(Qt,!0),et("<>"),et("endobj"),qt.publish("postPutPages")},se=function(t){qt.publish("putFont",{font:t,out:et,newObject:Yt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Yt(),et("<<"),et("/Type /Font"),et("/BaseFont /"+At(t.postScriptName)),et("/Subtype /Type1"),"string"==typeof t.encoding&&et("/Encoding /"+t.encoding),et("/FirstChar 32"),et("/LastChar 255"),et(">>"),et("endobj"))},le=function(){for(var t in Lt)Lt.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(Lt[t])},ue=function(t){t.objectNumber=Yt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[A(t.x),A(t.y),A(t.x+t.width),A(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),et("endobj")},ce=function(){for(var t in Ut)Ut.hasOwnProperty(t)&&ue(Ut[t])},he=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",l=0,u=0;ut[l+1].offset;)l++;var c=t[l].offset,h=(n-c)/(t[l+1].offset-c),f=t[l].color,d=t[l+1].color;s+=U(Math.round((1-h)*f[0]+h*d[0]).toString(16))+U(Math.round((1-h)*f[1]+h*d[1]).toString(16))+U(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var n=Yt(),r=he(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),et("endobj"),t.objectNumber=Yt(),et("<< /ShadingType "+t.type),et("/ColorSpace /DeviceRGB");var a="/Coords ["+A(parseFloat(t.coords[0]))+" "+A(parseFloat(t.coords[1]))+" ";2===t.type?a+=A(parseFloat(t.coords[2]))+" "+A(parseFloat(t.coords[3])):a+=A(parseFloat(t.coords[2]))+" "+A(parseFloat(t.coords[3]))+" "+A(parseFloat(t.coords[4]))+" "+A(parseFloat(t.coords[5])),et(a+="]"),t.matrix&&et("/Matrix ["+t.matrix.toString()+"]"),et("/Function "+n+" 0 R"),et("/Extend [true true]"),et(">>"),et("endobj")},de=function(t,e){var n=Jt(),r=Yt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(A).join(" ")+"]"}),i.push({key:"XStep",value:A(t.xStep)}),i.push({key:"YStep",value:A(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),et("endobj")},pe=function(t){var e;for(e in Et)Et.hasOwnProperty(e)&&(Et[e]instanceof Ct?fe(Et[e]):Et[e]instanceof kt&&de(Et[e],t))},me=function(t){for(var e in t.objectNumber=Yt(),et("<<"),t)switch(e){case"opacity":et("/ca "+L(t[e]));break;case"stroke-opacity":et("/CA "+L(t[e]))}et(">>"),et("endobj")},ge=function(){var t;for(t in Tt)Tt.hasOwnProperty(t)&&me(Tt[t])},ve=function(){for(var t in et("/XObject <<"),Ut)Ut.hasOwnProperty(t)&&Ut[t].objectNumber>=0&&et("/"+t+" "+Ut[t].objectNumber+" 0 R");qt.publish("putXobjectDict"),et(">>")},be=function(){Ve.oid=Yt(),et("<<"),et("/Filter /Standard"),et("/V "+Ve.v),et("/R "+Ve.r),et("/U <"+Ve.toHexString(Ve.U)+">"),et("/O <"+Ve.toHexString(Ve.O)+">"),et("/P "+Ve.P),et(">>"),et("endobj")},ye=function(){for(var t in et("/Font <<"),Lt)Lt.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&et("/"+t+" "+Lt[t].objectNumber+" 0 R");et(">>")},we=function(){if(Object.keys(Et).length>0){for(var t in et("/Shading <<"),Et)Et.hasOwnProperty(t)&&Et[t]instanceof Ct&&Et[t].objectNumber>=0&&et("/"+t+" "+Et[t].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),et(">>")}},_e=function(t){if(Object.keys(Et).length>0){for(var e in et("/Pattern <<"),Et)Et.hasOwnProperty(e)&&Et[e]instanceof p.TilingPattern&&Et[e].objectNumber>=0&&Et[e].objectNumber>")}},xe=function(){if(Object.keys(Tt).length>0){var t;for(t in et("/ExtGState <<"),Tt)Tt.hasOwnProperty(t)&&Tt[t].objectNumber>=0&&et("/"+t+" "+Tt[t].objectNumber+" 0 R");qt.publish("putGStateDict"),et(">>")}},Se=function(t){Kt(t.resourcesOid,!0),et("<<"),et("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),_e(t.objectOid),xe(),ve(),et(">>"),et("endobj")},Ae=function(){var t=[];le(),ge(),ce(),pe(t),qt.publish("putResources"),t.forEach(Se),Se({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources")},Pe=function(){qt.publish("putAdditionalObjects");for(var t=0;t>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(u-(c<<8))}return String.fromCharCode.apply(void 0,s)},je=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return Oe(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Fe=p.__private__.beginPage=function(t){X[++Dt]=[],Bt[Dt]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Te(Dt),tt(X[q])},Ee=function(t,e){var r,i,o;switch(n=e||n,"string"==typeof t&&(r=b(t.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(t)&&(i=t[0]*yt,o=t[1]*yt),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(Q.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),a=[i,o],n.substr(0,1)){case"l":o>i&&(a=[o,i]);break;case"p":i>o&&(a=[o,i])}Fe(a),mn(dn),et(Sn),0!==kn&&et(kn+" J"),0!==On&&et(On+" j"),qt.publish("addPage",{pageNumber:Dt})},Ie=function(t){t>0&&t<=Dt&&(X.splice(t,1),Bt.splice(t,1),Dt--,q>Dt&&(q=Dt),this.setPage(q))},Te=function(t){t>0&&t<=Dt&&(q=t)},Re=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return X.length-1},Me=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Lt[bt].fontName,e=void 0!==e?e:Lt[bt].fontStyle,r=t.toLowerCase(),void 0!==jt[r]&&void 0!==jt[r][e]?i=jt[r][e]:void 0!==jt[t]&&void 0!==jt[t][e]?i=jt[t][e]:!1===n.disableWarning&&Q.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=jt.times[e])&&(i=jt.times.normal),i},De=p.__private__.putInfo=function(){var t=Yt(),e=function(t){return t};for(var n in null!==h&&(e=Ve.encryptor(t,0)),et("<<"),et("/Producer ("+je(e("jsPDF "+Ot.version))+")"),vt)vt.hasOwnProperty(n)&&vt[n]&&et("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+je(e(vt[n]))+")");et("/CreationDate ("+je(e(F))+")"),et(">>"),et("endobj")},Be=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Yt(),et("<<"),et("/Type /Catalog"),et("/Pages "+e+" 0 R"),ut||(ut="fullwidth"),ut){case"fullwidth":et("/OpenAction [3 0 R /FitH null]");break;case"fullheight":et("/OpenAction [3 0 R /FitV null]");break;case"fullpage":et("/OpenAction [3 0 R /Fit]");break;case"original":et("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ut;"%"===n.substr(n.length-1)&&(ut=parseInt(ut)/100),"number"==typeof ut&&et("/OpenAction [3 0 R /XYZ null null "+L(ut)+"]")}switch(pt||(pt="continuous"),pt){case"continuous":et("/PageLayout /OneColumn");break;case"single":et("/PageLayout /SinglePage");break;case"two":case"twoleft":et("/PageLayout /TwoColumnLeft");break;case"tworight":et("/PageLayout /TwoColumnRight")}ft&&et("/PageMode /"+ft),qt.publish("putCatalog"),et(">>"),et("endobj")},qe=p.__private__.putTrailer=function(){et("trailer"),et("<<"),et("/Size "+(H+1)),et("/Root "+H+" 0 R"),et("/Info "+(H-1)+" 0 R"),null!==h&&et("/Encrypt "+Ve.oid+" 0 R"),et("/ID [ <"+E+"> <"+E+"> ]"),et(">>")},ze=p.__private__.putHeader=function(){et("%PDF-"+m),et("%ºß¬à")},Ue=p.__private__.putXRef=function(){var t="0000000000";et("xref"),et("0 "+(H+1)),et("0000000000 65535 f ");for(var e=1;e<=H;e++)"function"==typeof W[e]?et((t+W[e]()).slice(-10)+" 00000 n "):void 0!==W[e]?et((t+W[e]).slice(-10)+" 00000 n "):et("0000000000 00000 n ")},He=p.__private__.buildDocument=function(){Z(),tt($),qt.publish("buildDocument"),ze(),oe(),Pe(),Ae(),null!==h&&be(),De(),Be();var t=G;return Ue(),qe(),et("startxref"),et(""+t),et("%%EOF"),tt(X[q]),$.join("\n")},We=p.__private__.getBlob=function(t){return new Blob([rt(t)],{type:"application/pdf"})},$e=p.output=p.__private__.output=ke((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return He();case"save":p.save(e.filename);break;case"arraybuffer":return rt(He());case"blob":return We(He());case"bloburi":case"bloburl":if(void 0!==K.URL&&"function"==typeof K.URL.createObjectURL)return K.URL&&K.URL.createObjectURL(We(He()))||void 0;Q.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=He();try{n=it(r)}catch(t){n=it(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(K)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,a="");var o='