/*! For license information please see 15.5c955130.chunk.js.LICENSE.txt */ (this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[15,4,7],{1055:function(e,t,n){"use strict";var r=n(19),a=n(2),o=n(774),i=n(639),s=n(1269),c=n(596),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a=0;r(t.key,!a)},e.onItemRemove=function(t){var n=e.props.onItemRemove;null===n||void 0===n||n([t.key])},e.onPageChange=function(t){e.setState({current:t})},e.getItems=function(){var t=e.state.current,n=e.props,r=n.pagination,a=n.filteredRenderItems,o=L(r),i=a;return o&&(i=a.slice((t-1)*o.pageSize,t*o.pageSize)),i},e}return Object(s.a)(n,[{key:"render",value:function(){var e=this,t=this.state.current,n=this.props,a=n.prefixCls,o=n.onScroll,i=n.filteredRenderItems,s=n.selectedKeys,c=n.disabled,l=n.showRemove,u=L(n.pagination),h=null;return u&&(h=d.createElement(_.a,{simple:u.simple,showSizeChanger:u.showSizeChanger,showLessItems:u.showLessItems,size:"small",disabled:c,className:"".concat(a,"-pagination"),total:i.length,pageSize:u.pageSize,current:t,onChange:this.onPageChange})),d.createElement(d.Fragment,null,d.createElement("ul",{className:f()("".concat(a,"-content"),Object(r.a)({},"".concat(a,"-content-show-remove"),l)),onScroll:o},this.getItems().map((function(t){var n=t.renderedEl,r=t.renderedText,o=t.item,i=o.disabled,u=s.indexOf(o.key)>=0;return d.createElement(T,{disabled:c||i,key:o.key,item:o,renderedText:r,renderedEl:n,checked:u,prefixCls:a,onClick:e.onItemSelect,onRemove:e.onItemRemove,showRemove:l})}))),h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.filteredRenderItems,r=e.pagination,a=t.current,o=L(r);if(o){var i=Math.ceil(n.length/o.pageSize);if(a>i)return{current:i}}return null}}]),n}(d.Component),D=n(612),B=n(741);function R(e){var t=e.placeholder,n=void 0===t?"":t,r=e.value,a=e.prefixCls,o=e.disabled,i=e.onChange,s=e.handleClear,c=d.useCallback((function(e){null===i||void 0===i||i(e),""===e.target.value&&(null===s||void 0===s||s())}),[i]);return d.createElement(B.default,{placeholder:n,className:a,value:r,onChange:c,disabled:o,allowClear:!0,prefix:d.createElement(D.a,null)})}var F=function(){return null};function M(e){return e.filter((function(e){return!e.disabled})).map((function(e){return e.key}))}var z=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this,e)).defaultListBodyRef=d.createRef(),r.handleFilter=function(e){var t=r.props.handleFilter,n=e.target.value;r.setState({filterValue:n}),t(e)},r.handleClear=function(){var e=r.props.handleClear;r.setState({filterValue:""}),e()},r.matchFilter=function(e,t){var n=r.state.filterValue,a=r.props.filterOption;return a?a(n,t):e.indexOf(n)>=0},r.renderListBody=function(e,t){var n=e?e(t):null,a=!!n;return a||(n=d.createElement(I,Object(o.a)({ref:r.defaultListBodyRef},t))),{customize:a,bodyContent:n}},r.renderItem=function(e){var t,n=r.props.render,a=(void 0===n?F:n)(e),o=!(!(t=a)||Object(C.b)(t)||"[object Object]"!==Object.prototype.toString.call(t));return{renderedText:o?a.value:a,renderedEl:o?a.label:a,item:e}},r.getSelectAllLabel=function(e,t){var n=r.props,a=n.itemsUnit,o=n.itemUnit,i=n.selectAllLabel;if(i)return"function"===typeof i?i({selectedCount:e,totalCount:t}):i;var s=t>1?a:o;return d.createElement(d.Fragment,null,(e>0?"".concat(e,"/"):"")+t," ",s)},r.state={filterValue:""},r}return Object(s.a)(n,[{key:"componentWillUnmount",value:function(){clearTimeout(this.triggerScrollTimer)}},{key:"getCheckStatus",value:function(e){var t=this.props.checkedKeys;return 0===t.length?"none":e.every((function(e){return t.indexOf(e.key)>=0||!!e.disabled}))?"all":"part"}},{key:"getFilteredItems",value:function(e,t){var n=this,r=[],a=[];return e.forEach((function(e){var o=n.renderItem(e),i=o.renderedText;if(t&&!n.matchFilter(i,e))return null;r.push(e),a.push(o)})),{filteredItems:r,filteredRenderItems:a}}},{key:"getListBody",value:function(e,t,n,r,a,i,s,c,l,u){var h,p=this,m=l?d.createElement("div",{className:"".concat(e,"-body-search-wrapper")},d.createElement(R,{prefixCls:"".concat(e,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:t,value:n,disabled:u})):null,g=this.renderListBody(c,Object(o.a)(Object(o.a)({},Object(w.a)(this.props,P)),{filteredItems:r,filteredRenderItems:i,selectedKeys:s})),v=g.bodyContent;return h=g.customize?d.createElement("div",{className:"".concat(e,"-body-customize-wrapper")},v):r.length?v:d.createElement("div",{className:"".concat(e,"-body-not-found")},function(){var e="left"===p.props.direction?0:1;return Array.isArray(a)?a[e]:a}()),d.createElement("div",{className:f()(l?"".concat(e,"-body ").concat(e,"-body-with-search"):"".concat(e,"-body"))},m,h)}},{key:"getCheckBox",value:function(e){var t=e.filteredItems,n=e.onItemSelectAll,r=e.disabled,a=e.prefixCls,o=this.getCheckStatus(t),i="all"===o;return d.createElement(E.default,{disabled:r,checked:i,indeterminate:"part"===o,className:"".concat(a,"-checkbox"),onChange:function(){n(t.filter((function(e){return!e.disabled})).map((function(e){return e.key})),!i)}})}},{key:"render",value:function(){var e,t=this,n=this.state.filterValue,a=this.props,o=a.prefixCls,i=a.dataSource,s=a.titleText,c=a.checkedKeys,l=a.disabled,u=a.footer,h=a.showSearch,p=a.style,m=a.searchPlaceholder,g=a.notFoundContent,v=a.selectAll,b=a.selectCurrent,w=a.selectInvert,E=a.removeAll,C=a.removeCurrent,S=a.renderList,_=a.onItemSelectAll,k=a.onItemRemove,A=a.showSelectAll,N=void 0===A||A,j=a.showRemove,T=a.pagination,P=a.direction,L=u&&(u.length<2?u(this.props):u(this.props,{direction:P})),I=f()(o,(e={},Object(r.a)(e,"".concat(o,"-with-pagination"),!!T),Object(r.a)(e,"".concat(o,"-with-footer"),!!L),e)),D=this.getFilteredItems(i,n),B=D.filteredItems,R=D.filteredRenderItems,F=this.getListBody(o,m,n,B,g,R,c,S,h,l),z=L?d.createElement("div",{className:"".concat(o,"-footer")},L):null,U=!j&&!T&&this.getCheckBox({filteredItems:B,onItemSelectAll:_,disabled:l,prefixCls:o}),H=null;if(j){var W=[T?{key:"removeCurrent",onClick:function(){var e,n=M(((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})));null===k||void 0===k||k(n)},label:C}:null,{key:"removeAll",onClick:function(){null===k||void 0===k||k(M(B))},label:E}].filter((function(e){return e}));H=d.createElement(O.a,{items:W})}else{var V=[{key:"selectAll",onClick:function(){var e=M(B);_(e,e.length!==c.length)},label:v},T?{key:"selectCurrent",onClick:function(){var e,n=(null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[];_(M(n.map((function(e){return e.item}))),!0)},label:b}:null,{key:"selectInvert",onClick:function(){var e,n;n=M(T?((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})):B);var r=new Set(c),a=[],o=[];n.forEach((function(e){r.has(e)?o.push(e):a.push(e)})),_(a,!0),_(o,!1)},label:w}];H=d.createElement(O.a,{items:V})}var Y=d.createElement(x.default,{className:"".concat(o,"-header-dropdown"),overlay:H,disabled:l},d.createElement(y.a,null));return d.createElement("div",{className:I,style:p},d.createElement("div",{className:"".concat(o,"-header")},N?d.createElement(d.Fragment,null,U,Y):null,d.createElement("span",{className:"".concat(o,"-header-selected")},this.getSelectAllLabel(c.length,B.length)),d.createElement("span",{className:"".concat(o,"-header-title")},s)),F,z)}}]),n}(d.PureComponent);z.defaultProps={dataSource:[],titleText:"",showSearch:!1};var U=n(624),H=n(606),W=n(603),V=function(e){var t=e.disabled,n=e.moveToLeft,r=e.moveToRight,a=e.leftArrowText,o=void 0===a?"":a,i=e.rightArrowText,s=void 0===i?"":i,c=e.leftActive,l=e.rightActive,u=e.className,f=e.style,h=e.direction,p=e.oneWay;return d.createElement("div",{className:u,style:f},d.createElement(W.default,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:"rtl"!==h?d.createElement(H.a,null):d.createElement(U.a,null)},s),!p&&d.createElement(W.default,{type:"primary",size:"small",disabled:t||!c,onClick:n,icon:"rtl"!==h?d.createElement(U.a,null):d.createElement(H.a,null)},o))},Y=function(e){Object(c.a)(n,e);var t=Object(l.a)(n);function n(e){var s;Object(i.a)(this,n),(s=t.call(this,e)).separatedDataSource=null,s.setStateKeys=function(e,t){"left"===e?s.setState((function(e){var n=e.sourceSelectedKeys;return{sourceSelectedKeys:"function"===typeof t?t(n||[]):t}})):s.setState((function(e){var n=e.targetSelectedKeys;return{targetSelectedKeys:"function"===typeof t?t(n||[]):t}}))},s.getLocale=function(e,t){return Object(o.a)(Object(o.a)(Object(o.a)({},e),{notFoundContent:t("Transfer")}),s.props.locale)},s.moveTo=function(e){var t=s.props,n=t.targetKeys,r=void 0===n?[]:n,a=t.dataSource,o=void 0===a?[]:a,i=t.onChange,c=s.state,l=c.sourceSelectedKeys,u=c.targetSelectedKeys,f=("right"===e?l:u).filter((function(e){return!o.some((function(t){return!(e!==t.key||!t.disabled)}))})),d="right"===e?f.concat(r):r.filter((function(e){return-1===f.indexOf(e)})),h="right"===e?"left":"right";s.setStateKeys(h,[]),s.handleSelectChange(h,[]),null===i||void 0===i||i(d,e,f)},s.moveToLeft=function(){return s.moveTo("left")},s.moveToRight=function(){return s.moveTo("right")},s.onItemSelectAll=function(e,t,n){s.setStateKeys(e,(function(r){var o=[];return o=n?Array.from(new Set([].concat(Object(a.a)(r),Object(a.a)(t)))):r.filter((function(e){return-1===t.indexOf(e)})),s.handleSelectChange(e,o),o}))},s.onLeftItemSelectAll=function(e,t){return s.onItemSelectAll("left",e,t)},s.onRightItemSelectAll=function(e,t){return s.onItemSelectAll("right",e,t)},s.handleFilter=function(e,t){var n=s.props.onSearch,r=t.target.value;null===n||void 0===n||n(e,r)},s.handleLeftFilter=function(e){return s.handleFilter("left",e)},s.handleRightFilter=function(e){return s.handleFilter("right",e)},s.handleClear=function(e){var t=s.props.onSearch;null===t||void 0===t||t(e,"")},s.handleLeftClear=function(){return s.handleClear("left")},s.handleRightClear=function(){return s.handleClear("right")},s.onItemSelect=function(e,t,n){var r=s.state,o=r.sourceSelectedKeys,i=r.targetSelectedKeys,c="left"===e?Object(a.a)(o):Object(a.a)(i),l=c.indexOf(t);l>-1&&c.splice(l,1),n&&c.push(t),s.handleSelectChange(e,c),s.props.selectedKeys||s.setStateKeys(e,c)},s.onLeftItemSelect=function(e,t){return s.onItemSelect("left",e,t)},s.onRightItemSelect=function(e,t){return s.onItemSelect("right",e,t)},s.onRightItemRemove=function(e){var t=s.props,n=t.targetKeys,r=void 0===n?[]:n,o=t.onChange;s.setStateKeys("right",[]),null===o||void 0===o||o(r.filter((function(t){return!e.includes(t)})),"left",Object(a.a)(e))},s.handleScroll=function(e,t){var n=s.props.onScroll;null===n||void 0===n||n(e,t)},s.handleLeftScroll=function(e){return s.handleScroll("left",e)},s.handleRightScroll=function(e){return s.handleScroll("right",e)},s.handleListStyle=function(e,t){return"function"===typeof e?e({direction:t}):e},s.renderTransfer=function(e){return d.createElement(h.a,null,(function(t){var n=t.getPrefixCls,a=t.renderEmpty,i=t.direction;return d.createElement(m.b.Consumer,null,(function(t){var c,l=t.hasFeedback,u=t.status,h=s.props,m=h.prefixCls,g=h.className,v=h.disabled,y=h.operations,w=void 0===y?[]:y,E=h.showSearch,x=h.footer,O=h.style,C=h.listStyle,S=h.operationStyle,_=h.filterOption,k=h.render,A=h.children,N=h.showSelectAll,j=h.oneWay,T=h.pagination,P=h.status,L=n("transfer",m),I=s.getLocale(e,a||p.a),D=s.state,B=D.sourceSelectedKeys,R=D.targetSelectedKeys,F=Object(b.a)(u,P),M=!A&&T,U=s.separateDataSource(),H=U.leftDataSource,W=U.rightDataSource,Y=R.length>0,K=B.length>0,q=f()(L,(c={},Object(r.a)(c,"".concat(L,"-disabled"),v),Object(r.a)(c,"".concat(L,"-customize-list"),!!A),Object(r.a)(c,"".concat(L,"-rtl"),"rtl"===i),c),Object(b.b)(L,F,l),g),G=s.getTitles(I),X=s.props.selectAllLabels||[];return d.createElement("div",{className:q,style:O},d.createElement(z,Object(o.a)({prefixCls:"".concat(L,"-list"),titleText:G[0],dataSource:H,filterOption:_,style:s.handleListStyle(C,"left"),checkedKeys:B,handleFilter:s.handleLeftFilter,handleClear:s.handleLeftClear,onItemSelect:s.onLeftItemSelect,onItemSelectAll:s.onLeftItemSelectAll,render:k,showSearch:E,renderList:A,footer:x,onScroll:s.handleLeftScroll,disabled:v,direction:"rtl"===i?"right":"left",showSelectAll:N,selectAllLabel:X[0],pagination:M},I)),d.createElement(V,{className:"".concat(L,"-operation"),rightActive:K,rightArrowText:w[0],moveToRight:s.moveToRight,leftActive:Y,leftArrowText:w[1],moveToLeft:s.moveToLeft,style:S,disabled:v,direction:i,oneWay:j}),d.createElement(z,Object(o.a)({prefixCls:"".concat(L,"-list"),titleText:G[1],dataSource:W,filterOption:_,style:s.handleListStyle(C,"right"),checkedKeys:R,handleFilter:s.handleRightFilter,handleClear:s.handleRightClear,onItemSelect:s.onRightItemSelect,onItemSelectAll:s.onRightItemSelectAll,onItemRemove:s.onRightItemRemove,render:k,showSearch:E,renderList:A,footer:x,onScroll:s.handleRightScroll,disabled:v,direction:"rtl"===i?"left":"right",showSelectAll:N,selectAllLabel:X[1],showRemove:j,pagination:M},I)))}))}))};var c=e.selectedKeys,l=void 0===c?[]:c,u=e.targetKeys,g=void 0===u?[]:u;return s.state={sourceSelectedKeys:l.filter((function(e){return-1===g.indexOf(e)})),targetSelectedKeys:l.filter((function(e){return g.indexOf(e)>-1}))},s}return Object(s.a)(n,[{key:"getTitles",value:function(e){var t;return null!==(t=this.props.titles)&&void 0!==t?t:e.titles}},{key:"handleSelectChange",value:function(e,t){var n=this.state,r=n.sourceSelectedKeys,a=n.targetSelectedKeys,o=this.props.onSelectChange;o&&("left"===e?o(t,a):o(r,t))}},{key:"separateDataSource",value:function(){var e=this.props,t=e.dataSource,n=e.rowKey,r=e.targetKeys,a=void 0===r?[]:r,i=[],s=new Array(a.length);return t.forEach((function(e){n&&(e=Object(o.a)(Object(o.a)({},e),{key:n(e)}));var t=a.indexOf(e.key);-1!==t?s[t]=e:i.push(e)})),{leftDataSource:i,rightDataSource:s}}},{key:"render",value:function(){return d.createElement(g.a,{componentName:"Transfer",defaultLocale:v.a.Transfer},this.renderTransfer)}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.selectedKeys,n=e.targetKeys;e.pagination,e.children;if(t){var r=n||[];return{sourceSelectedKeys:t.filter((function(e){return!r.includes(e)})),targetSelectedKeys:t.filter((function(e){return r.includes(e)}))}}return null}}]),n}(d.Component);Y.List=z,Y.Operation=V,Y.Search=R,Y.defaultProps={dataSource:[],locale:{},showSearch:!1,listStyle:function(){}};t.a=Y},1269:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e?"function"===typeof e?e():e:null}},1410:function(e,t,n){"use strict";var r=n(558),a=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},i=n(560),s=function(e,t){return a.createElement(i.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:o}))};s.displayName="FileExcelOutlined";t.a=a.forwardRef(s)},1411:function(e,t,n){"use strict";var r=n(558),a=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},i=n(560),s=function(e,t){return a.createElement(i.a,Object(r.a)(Object(r.a)({},e),{},{ref:t,icon:o}))};s.displayName="FilePdfOutlined";t.a=a.forwardRef(s)},1653:function(e,t,n){(function(r){var a,o;a=function(){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){if("object"!==a(e.console)){e.console={};for(var t,n,r=e.console,o=function(){},i=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=i.pop();)r[t]||(r[t]={});for(;n=s.pop();)r[n]||(r[n]=o)}var c,l,u,f,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===e.btoa&&(e.btoa=function(e){var t,n,r,a,o,i=0,s=0,c="",l=[];if(!e)return e;for(;t=(o=e.charCodeAt(i++)<<16|e.charCodeAt(i++)<<8|e.charCodeAt(i++))>>18&63,n=o>>12&63,r=o>>6&63,a=63&o,l[s++]=d.charAt(t)+d.charAt(n)+d.charAt(r)+d.charAt(a),i>16&255,n=i>>8&255,r=255&i,l[c++]=64==a?String.fromCharCode(t):64==o?String.fromCharCode(t,n):String.fromCharCode(t,n,r),s>>0,r=new Array(n),a=1>>0,a=0;a>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],a=0;a>16&255,r=l>>8&255,o=255&l}if(void 0===r||void 0===i&&n===r&&r===o)if("string"==typeof n)t=n+" "+s[0];else switch(e.precision){case 2:t=y(n/255)+" "+s[0];break;case 3:default:t=w(n/255)+" "+s[0]}else if(void 0===i||"object"===a(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof n)t=[n,r,o,s[1]].join(" ");else switch(e.precision){case 2:t=[y(n/255),y(r/255),y(o/255),s[1]].join(" ");break;default:case 3:t=[w(n/255),w(r/255),w(o/255),s[1]].join(" ")}}else if("string"==typeof n)t=[n,r,o,i,s[2]].join(" ");else switch(e.precision){case 2:t=[y(n/255),y(r/255),y(o/255),y(i/255),s[2]].join(" ");break;case 3:default:t=[w(n/255),w(r/255),w(o/255),w(i/255),s[2]].join(" ")}return t},me=h.__private__.getFilters=function(){return l},ge=h.__private__.putStream=function(e){var t,n=(e=e||{}).data||"",r=e.filters||me(),a=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=n.length;!0===r&&(r=["FlateEncode"]);var c=e.additionalKeyValues||[],l=(t=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(n,r):{data:n,reverseChain:[]}).reverseChain+(Array.isArray(a)?a.join(" "):a.toString());0!==t.data.length&&(c.push({key:"Length",value:t.data.length}),!0===o&&c.push({key:"Length1",value:i})),0!=l.length&&(l.split("/").length-1==1?c.push({key:"Filter",value:l}):c.push({key:"Filter",value:"["+l+"]"})),U("<<");for(var u=0;u>"),0!==t.data.length&&(U("stream"),U(t.data),U("endstream"))},ve=h.__private__.putPage=function(e){e.mediaBox;var t=e.number,n=e.data,r=e.objId,a=e.contentsObjId;le(r,!0),re[A].mediaBox.topRightX,re[A].mediaBox.bottomLeftX,re[A].mediaBox.topRightY,re[A].mediaBox.bottomLeftY,U("<>"),U("endobj");var o=n.join("\n");return le(a,!0),ge({data:o,filters:me()}),U("endobj"),r},be=h.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=ne;e++)re[e].objId=ce(),re[e].contentsObjId=ce();for(e=1;e<=ne;e++)n.push(ve({number:e,data:F[e],objId:re[e].objId,contentsObjId:re[e].contentsObjId,mediaBox:re[e].mediaBox,cropBox:re[e].cropBox,bleedBox:re[e].bleedBox,trimBox:re[e].trimBox,artBox:re[e].artBox,userUnit:re[e].userUnit,rootDictionaryObjId:fe,resourceDictionaryObjId:de}));le(fe,!0),U("<>"),U("endobj"),oe.publish("postPutPages")},ye=function(e,t,n){te.hasOwnProperty(t)||(te[t]={}),te[t][n]=e},we=function(e,t,n,r,a){a=a||!1;var o="F"+(Object.keys(ee).length+1).toString(10),i={id:o,postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:a,metadata:{}};return oe.publish("addFont",{font:i,instance:this}),void 0!==o&&(ee[o]=i,ye(o,t,n)),o},Ee=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var n,r,a,o,i,s,c,l,u;if(a=(t=t||{}).sourceEncoding||"Unicode",i=t.outputEncoding,(t.autoencode||i)&&ee[L].metadata&&ee[L].metadata[a]&&ee[L].metadata[a].encoding&&(o=ee[L].metadata[a].encoding,!i&&ee[L].encoding&&(i=ee[L].encoding),!i&&o.codePages&&(i=o.codePages[0]),"string"==typeof i&&(i=o[i]),i)){for(c=!1,s=[],n=0,r=e.length;n>8&&(c=!0);e=s.join("")}for(n=e.length;void 0===c&&0!==n;)e.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return e;for(s=t.noBOM?[]:[254,255],n=0,r=e.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(l-(u<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xe=h.__private__.beginPage=function(e,t){var r,a="string"==typeof t&&t.toLowerCase();if("string"==typeof e&&(r=v(e.toLowerCase()))&&(e=r[0],t=r[1]),Array.isArray(e)&&(t=e[1],e=e[0]),(isNaN(e)||isNaN(t))&&(e=n[0],t=n[1]),a){switch(a.substr(0,1)){case"l":e>"),U("endobj")},Ae=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||fe;switch(se(),U("<<"),U("/Type /Catalog"),U("/Pages "+t+" 0 R"),j||(j="fullwidth"),j){case"fullwidth":U("/OpenAction [3 0 R /FitH null]");break;case"fullheight":U("/OpenAction [3 0 R /FitV null]");break;case"fullpage":U("/OpenAction [3 0 R /Fit]");break;case"original":U("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+j;"%"===n.substr(n.length-1)&&(j=parseInt(j)/100),"number"==typeof j&&U("/OpenAction [3 0 R /XYZ null null "+y(j)+"]")}switch(P||(P="continuous"),P){case"continuous":U("/PageLayout /OneColumn");break;case"single":U("/PageLayout /SinglePage");break;case"two":case"twoleft":U("/PageLayout /TwoColumnLeft");break;case"tworight":U("/PageLayout /TwoColumnRight")}T&&U("/PageMode /"+T),oe.publish("putCatalog"),U(">>"),U("endobj")},Ne=h.__private__.putTrailer=function(){U("trailer"),U("<<"),U("/Size "+(Z+1)),U("/Root "+Z+" 0 R"),U("/Info "+(Z-1)+" 0 R"),U("/ID [ <"+E+"> <"+E+"> ]"),U(">>")},Te=h.__private__.putHeader=function(){U("%PDF-"+p),U("%\xba\xdf\xac\xe0")},Pe=h.__private__.putXRef=function(){var e=1,t="0000000000";for(U("xref"),U("0 "+(Z+1)),U("0000000000 65535 f "),e=1;e<=Z;e++)"function"==typeof Q[e]?U((t+Q[e]()).slice(-10)+" 00000 n "):void 0!==Q[e]?U((t+Q[e]).slice(-10)+" 00000 n "):U("0000000000 00000 n ")},Le=h.__private__.buildDocument=function(){R=!1,z=Z=0,M=[],Q=[],ae=[],fe=ce(),de=ce(),oe.publish("buildDocument"),Te(),be(),function(){oe.publish("putAdditionalObjects");for(var e=0;e>"),U("endobj")));var t}(),oe.publish("putResources"),le(de,!0),U("<<"),function(){for(var e in U("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),U("/Font <<"),ee)ee.hasOwnProperty(e)&&(!1===f||!0===f&&d.hasOwnProperty(e))&&U("/"+e+" "+ee[e].objectNumber+" 0 R");U(">>"),U("/XObject <<"),oe.publish("putXobjectDict"),U(">>")}(),U(">>"),U("endobj"),oe.publish("postPutResources"),ke(),Ae();var e=z;return Pe(),Ne(),U("startxref"),U(""+e),U("%%EOF"),R=!0,M.join("\n")},Ie=h.__private__.getBlob=function(e){return new Blob([W(e)],{type:"application/pdf"})},De=h.output=h.__private__.output=((D=function(e,t){t=t||{};var n=Le();switch("string"==typeof t?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return n;case"save":h.save(t.filename);break;case"arraybuffer":return W(n);case"blob":return Ie(n);case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(Ie(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+t.filename+";base64,"+btoa(n);case"dataurlnewwindow":var a='',o=r.open();if(null!==o&&o.document.write(a),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return r.document.location.href="data:application/pdf;filename="+t.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return D.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!r.console)throw new Error(n);r.console.error(n,e),r.alert&&alert(n)}},(D.foo.bar=D).foo),Be=function(e){return!0===Array.isArray(ie)&&-1":")"),te=1):(J=Ge(t),Z=Xe(n),Q=(l?"<":"(")+x[$]+(l?">":")")),void 0!==W&&void 0!==W[$]&&(ne=W[$]+" Tw\n"),0!==N.length&&0===$?e.push(ne+N.join(" ")+" "+J.toFixed(2)+" "+Z.toFixed(2)+" Tm\n"+Q):1===te||0===te&&0===$?e.push(ne+J.toFixed(2)+" "+Z.toFixed(2)+" Td\n"+Q):e.push(ne+Q);e=0===te?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var re="BT\n/"+L+" "+Y+" Tf\n"+(Y*f).toFixed(2)+" TL\n"+et+"\n";return re+=u,re+=e,U(re+="ET"),d[L]=!0,h},h.__private__.lstext=h.lstext=function(e,t,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(e,t,n,{charSpace:r})},h.__private__.clip=h.clip=function(e){U("evenodd"===e?"W*":"W"),U("n")},h.__private__.clip_fixed=h.clip_fixed=function(e){console.log("clip_fixed is deprecated"),h.clip(e)};var ze=h.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(e)&&(t=!0),t},Ue=h.__private__.getStyle=function(e){var t="S";return"F"===e?t="f":"FD"===e||"DF"===e?t="B":"f"!==e&&"f*"!==e&&"B"!==e&&"B*"!==e||(t=e),t};h.__private__.line=h.line=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-e,r-t]],e,t)},h.__private__.lines=h.lines=function(e,t,n,r,a,o){var i,s,c,l,u,f,d,h,p,m,g,v;if("number"==typeof e&&(v=n,n=t,t=e,e=v),r=r||[1,1],o=o||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!ze(a)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(U(w(Ge(t))+" "+w(Xe(n))+" m "),i=r[0],s=r[1],l=e.length,m=t,g=n,c=0;c=i.length-1;if(C&&!S){y+=" ";continue}if(C||S){if(S)v=O;else if(e.multiline&&l<(d+2)*(w+2)+2)continue e}else{if(!e.multiline)continue e;if(l<(d+2)*(w+2)+2)continue e;v=O}for(var _="",k=g;k<=v;k++)_+=i[k]+" ";switch(_=" "==_.substr(_.length-1)?_.substr(0,_.length-1):_,b=x(_,e,c).width,e.textAlign){case"right":p=u-b-2;break;case"center":p=(u-b)/2;break;case"left":default:p=2}t+=s(p)+" "+s(m)+" Td\n",t+="("+o(_)+") Tj\n",t+=-s(p)+" 0 Td\n",m=-(c+2),b=0,g=v+1,w++,y=""}break}return a.text=t,a.fontSize=c,a},x=function(e,t,r){var a=n.internal.getFont(t.fontName,t.fontStyle),o=n.getStringUnitWidth(e,{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:n.getStringUnitWidth("3",{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},O={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},C=function(){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.objId=void 0,r.hasAnnotation&&S.call(n,r)}},S=function(e){var t={type:"reference",object:e};void 0===n.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===t.type&&e.object===t.object}))&&n.internal.getPageInfo(e.page).pageContext.annotations.push(t)},_=function(){if(void 0===n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},k=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},A=function(e){var t=!e;for(var r in e||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(r)){var o=e[r],i=[],s=o.Rect;if(o.Rect&&(o.Rect=y.call(this,o.Rect)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=G.createDefaultAppearanceStream(o),"object"===a(o)&&"function"==typeof o.getKeyValueListForStream&&(i=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var c=w.call(this,o);i.push({key:"AP",value:"<>"}),n.internal.acroformPlugin.xForms.push(c)}if(o.appearanceStreamContent){var l="";for(var u in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(u)){var f=o.appearanceStreamContent[u];if(l+="/"+u+" ",l+="<<",1<=Object.keys(f).length||Array.isArray(f))for(var r in f){var d;f.hasOwnProperty(r)&&("function"==typeof(d=f[r])&&(d=d.call(this,o)),l+="/"+r+" "+d+" ",0<=n.internal.acroformPlugin.xForms.indexOf(d)||n.internal.acroformPlugin.xForms.push(d))}else"function"==typeof(d=f)&&(d=d.call(this,o)),l+="/"+r+" "+d,0<=n.internal.acroformPlugin.xForms.indexOf(d)||n.internal.acroformPlugin.xForms.push(d);l+=">>"}i.push({key:"AP",value:"<<\n"+l+">>"})}n.internal.putStream({additionalKeyValues:i}),n.internal.out("endobj")}t&&N.call(this,n.internal.acroformPlugin.xForms)},N=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=t,o=e[t];n.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===a(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[r]}},j=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,B.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(O)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");r=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new D,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",k),n.internal.events.subscribe("buildDocument",C),n.internal.events.subscribe("putCatalog",_),n.internal.events.subscribe("postPutPages",A),n.internal.acroformPlugin.isInitialized=!0}},T=e.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var t="[",n=0;n>"),n.join("\n")}},set:function(e){"object"===a(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};l(U,B);var H=function(){U.call(this),this.pushButton=!0};l(H,U);var W=function(){U.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};l(W,U);var V=function(){var e,t;B.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e,t=[];for(e in t.push("<<"),r)t.push("/"+e+" ("+r[e]+")");return t.push(">>"),t.join("\n")},set:function(e){"object"===a(e)&&(r=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(e){"string"==typeof e&&(r.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=G.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};l(V,B),W.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},W.prototype.createOption=function(e){this.Kids.length;var t=new V;return t.Parent=this,t.optionName=e,this.Kids.push(t),X.call(this,t),t};var Y=function(){U.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=G.CheckBox.createAppearanceStream()};l(Y,U);var K=function(){B.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=v(this.Ff,13):this.Ff=b(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=v(this.Ff,21):this.Ff=b(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=v(this.Ff,23):this.Ff=b(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=v(this.Ff,24):this.Ff=b(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=v(this.Ff,25):this.Ff=b(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=v(this.Ff,26):this.Ff=b(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};l(K,B);var q=function(){K.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=v(this.Ff,14):this.Ff=b(this.Ff,14)}}),this.password=!0};l(q,K);var G={CheckBox:{createAppearanceStream:function(){return{N:{On:G.CheckBox.YesNormal},D:{On:G.CheckBox.YesPushDown,Off:G.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=d(e),r=[],a=n.internal.getFont(e.fontName,e.fontStyle).id,o=n.__private__.encodeColorString(e.color),i=E(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+s(G.internal.getWidth(e))+" "+s(G.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+a+" "+s(i.fontSize)+" Tf "+o),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(e){var t=d(e),r=n.internal.getFont(e.fontName,e.fontStyle).id,a=n.__private__.encodeColorString(e.color),o=[],i=G.internal.getHeight(e),c=G.internal.getWidth(e),l=E(e,e.caption);return o.push("1 g"),o.push("0 0 "+s(c)+" "+s(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(c-1)+" "+s(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+s(l.fontSize)+" Tf "+a),o.push(l.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=d(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(G.internal.getWidth(e))+" "+s(G.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:G.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=G.RadioButton.Circle.YesNormal,t.D[e]=G.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=d(e),n=[],r=G.internal.getWidth(e)<=G.internal.getHeight(e)?G.internal.getWidth(e)/4:G.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=G.internal.Bezier_C,o=Number((r*a).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+c(G.internal.getWidth(e)/2)+" "+c(G.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=d(e),n=[],r=G.internal.getWidth(e)<=G.internal.getHeight(e)?G.internal.getWidth(e)/4:G.internal.getHeight(e)/4,a=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((a*G.internal.Bezier_C).toFixed(5)),i=Number((r*G.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+c(G.internal.getWidth(e)/2)+" "+c(G.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+c(G.internal.getWidth(e)/2)+" "+c(G.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=d(e),n=[],r=G.internal.getWidth(e)<=G.internal.getHeight(e)?G.internal.getWidth(e)/4:G.internal.getHeight(e)/4,a=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((a*G.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+c(G.internal.getWidth(e)/2)+" "+c(G.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:G.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=G.RadioButton.Cross.YesNormal,t.D[e]=G.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=d(e),n=[],r=G.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+s(G.internal.getWidth(e)-2)+" "+s(G.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=d(e),n=G.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(G.internal.getWidth(e))+" "+s(G.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(G.internal.getWidth(e)-2)+" "+s(G.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=d(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(G.internal.getWidth(e))+" "+s(G.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=n.internal.getFont(e.fontName,e.fontStyle).id,r=n.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};G.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=G.internal.getWidth(e),n=G.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},G.internal.getWidth=function(e){var t=0;return"object"===a(e)&&(t=u(e.Rect[2])),t},G.internal.getHeight=function(e){var t=0;return"object"===a(e)&&(t=u(e.Rect[3])),t};var X=e.addField=function(e){if(j.call(this),!(e instanceof B))throw new Error("Invalid argument passed to jsPDF.addField.");return function(e){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||j.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e)}.call(this,e),e.page=n.internal.getCurrentPageInfo().pageNumber,this};e.addButton=function(e){if(e instanceof U==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return X.call(this,e)},e.addTextField=function(e){if(e instanceof K==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return X.call(this,e)},e.addChoiceField=function(e){if(e instanceof R==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return X.call(this,e)},"object"==a(t)&&void 0===t.ChoiceField&&void 0===t.ListBox&&void 0===t.ComboBox&&void 0===t.EditBox&&void 0===t.Button&&void 0===t.PushButton&&void 0===t.RadioButton&&void 0===t.CheckBox&&void 0===t.TextField&&void 0===t.PasswordField?(t.ChoiceField=R,t.ListBox=F,t.ComboBox=M,t.EditBox=z,t.Button=U,t.PushButton=H,t.RadioButton=W,t.CheckBox=Y,t.TextField=K,t.PasswordField=q,t.AcroForm={Appearance:G}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),e.AcroFormChoiceField=R,e.AcroFormListBox=F,e.AcroFormComboBox=M,e.AcroFormEditBox=z,e.AcroFormButton=U,e.AcroFormPushButton=H,e.AcroFormRadioButton=W,e.AcroFormCheckBox=Y,e.AcroFormTextField=K,e.AcroFormPasswordField=q,e.AcroFormAppearance=G,e.AcroForm={ChoiceField:R,ListBox:F,ComboBox:M,EditBox:z,Button:U,PushButton:H,RadioButton:W,CheckBox:Y,TextField:K,PasswordField:q,Appearance:G}})((window.tmp=pe).API,"undefined"!=typeof window&&window||"undefined"!=typeof r&&r),function(e){var t="addImage_",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.getImageFileTypeByImageData=function(t,r){var a,o;r=r||"UNKNOWN";var i,s,c,l="UNKNOWN";for(c in e.isArrayBufferView(t)&&(t=e.arrayBufferToBinaryString(t)),n)for(i=n[c],a=0;a>"}),"trns"in t&&t.trns.constructor==Array){for(var s="",c=0,l=t.trns.length;c>18]+r[(258048&t)>>12]+r[(4032&t)>>6]+r[63&t];return 1==i?n+=r[(252&(t=a[s]))>>2]+r[(3&t)<<4]+"==":2==i&&(n+=r[(64512&(t=a[s]<<8|a[s+1]))>>10]+r[(1008&t)>>4]+r[(15&t)<<2]+"="),n},e.createImageInfo=function(e,t,n,r,a,o,i,s,c,l,u,f,d){var h={alias:s,w:t,h:n,cs:r,bpc:a,i:i,data:e};return o&&(h.f=o),c&&(h.dp=c),l&&(h.trns=l),u&&(h.pal=u),f&&(h.smask=f),d&&(h.p=d),h},e.addImage=function(n,r,o,d,h,p,m,g,v){var b="";if("string"!=typeof r){var y=p;p=h,h=d,d=o,o=r,r=y}if("object"===a(n)&&!l(n)&&"imageData"in n){var w=n;n=w.imageData,r=w.format||r||"UNKNOWN",o=w.x||o||0,d=w.y||d||0,h=w.w||h,p=w.h||p,m=w.alias||m,g=w.compression||g,v=w.rotation||w.angle||v}var E=this.internal.getFilters();if(void 0===g&&-1!==E.indexOf("FlateEncode")&&(g="SLOW"),"string"==typeof n&&(n=unescape(n)),isNaN(o)||isNaN(d))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var x,O,C,S,_,k,A,N=function(){var e=this.internal.collections[t+"images"];return e||(this.internal.collections[t+"images"]=e={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",s)),e}.call(this);if(!((x=f(n,N))||(l(n)&&(n=u(n,r)),(null==(A=m)||0===A.length)&&(m="string"==typeof(k=n)?e.sHashCode(k):e.isArrayBufferView(k)?e.sHashCode(e.arrayBufferToBinaryString(k)):null),x=f(m,N)))){if(this.isString(n)&&(""!==(b=this.convertStringToImageData(n))||void 0!==(b=e.loadFile(n)))&&(n=b),r=this.getImageFileTypeByImageData(n,r),!c(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(O=n,n=this.binaryStringToUint8Array(n))),!(x=this["process"+r.toUpperCase()](n,(_=0,(S=N)&&(_=Object.keys?Object.keys(S).length:function(e){var t=0;for(var n in e)e.hasOwnProperty(n)&&t++;return t}(S)),_),m,((C=g)&&"string"==typeof C&&(C=C.toUpperCase()),C in e.image_compression?C:e.image_compression.NONE),O)))throw new Error("An unknown error occurred whilst processing the image")}return function(e,t,n,r,a,o,i,s){var c=function(e,t,n){return e||t||(t=e=-96),e<0&&(e=-1*n.w*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.h*72/t/this.internal.scaleFactor),0===e&&(e=t*n.w/n.h),0===t&&(t=e*n.h/n.w),[e,t]}.call(this,n,r,a),l=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;if(n=c[0],r=c[1],i[o]=a,s){s*=Math.PI/180;var f=Math.cos(s),d=Math.sin(s),h=function(e){return e.toFixed(4)},p=[h(f),h(d),h(-1*d),h(f),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,l(e),u(t+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([l(n),"0","0",l(r),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(r),l(e),u(t+r),"cm"].join(" ")),this.internal.write("/I"+a.i+" Do"),this.internal.write("Q")}.call(this,o,d,h,p,x,x.i,N,v),this},e.convertStringToImageData=function(t){var n,r="";if(this.isString(t)){var a;n=null!==(a=this.extractImageFromDataUrl(t))?a.data:t;try{r=atob(n)}catch(t){throw e.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var d=function(e,t){return e.subarray(t,t+5)};e.processJPEG=function(e,t,n,a,o,i){var s,c=this.decode.DCT_DECODE;if(!this.isString(e)&&!this.isArrayBuffer(e)&&!this.isArrayBufferView(e))return null;if(this.isString(e)&&(s=function(e){var t;if("JPEG"!==r(e))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*e.charCodeAt(4)+e.charCodeAt(5),a=4,o=e.length;a>",l.content=g;var d=l.objId+" 0 R";g="<>";else if(c.options.pageNumber)switch(g="<>",this.internal.write(g))}}this.internal.write("]")}}]),i.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},i.link=function(e,t,n,r,a){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:e,y:t,w:n,h:r,options:a,type:"link"})},i.textWithLink=function(e,t,n,r){var a=this.getTextWidth(e),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,n),n+=.2*o,this.link(t,n-o,a,o,r),a},i.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},i=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return i(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(e){return i(e)&&0<=a.indexOf(e.charCodeAt(0))},l=(e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return i(e)&&o(e)&&1<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasFinalForm=function(e){return i(e)&&o(e)&&2<=t[e.charCodeAt(0)].length}),u=(e.__arabicParser__.arabicLetterHasInitialForm=function(e){return i(e)&&o(e)&&3<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasMedialForm=function(e){return i(e)&&o(e)&&4==t[e.charCodeAt(0)].length}),f=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,a=0,o="",i=0;for(t=0;t>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},s=pe.API,(c=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},c.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},s.events.push(["initialized",function(){this.canvas=new c,this.canvas.pdf=this}]),l=pe.API,f={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},d=1,h=function(e,t,n,r,a){f={x:e,y:t,w:n,h:r,ln:a}},p=function(){return f},m={left:0,top:0,bottom:0},l.setHeaderFunction=function(e){u=e},l.getTextDimensions=function(e,t){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(t=t||{}).scaleFactor||this.internal.scaleFactor),a=0,o=0,i=0;if("string"==typeof e)0!=(a=this.getStringUnitWidth(e)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(e))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s=this.internal.pageSize.getHeight()-l.bottom&&(this.cellAddPage(),c=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),t=p().y+p().h,c&&(t=23)}if(void 0!==a[0])if(this.printingHeaderRow?this.rect(e,t,n,r,"FD"):this.rect(e,t,n,r),"right"===i){a instanceof Array||(a=[a]);for(var u=0;u=2*Math.PI&&(r=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:a,counterclockwise:o})},l.prototype.arcTo=function(e,t,n,r,a){throw new Error("arcTo not implemented.")},l.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},l.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},l.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");d.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},l.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},l.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n"},b=function(e){var t,n,r,a,o,i=String,s="length",c="charCodeAt",l="slice",u="replace";for(e[l](-2),e=e[l](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),r=[],a=0,o=(e+=t="uuuuu"[l](e[s]%5||5))[s];a>24,255&n>>16,255&n>>8,255&n);return function(e,n){for(var r=t[s];0"},w=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r>8&255,n>>16&255,n>>24&255]),e.length+2),String.fromCharCode.apply(null,a)},g.processDataByFilters=function(e,t){var n=0,r=e||"",a=[];for("string"==typeof(t=t||[])&&(t=[t]),n=0;n>"),this.internal.out("endobj"),N=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+j+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==A&&void 0!==N&&this.internal.out("/Names <>")})),this},(T=pe.API).events.push(["postPutResources",function(){var e=this,t=/^(\d+) 0 obj$/;if(0> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),r=0;r>","endobj"),e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),T.events.push(["putCatalog",function(){0> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n>>24&255,d[f++]=s>>>16&255,d[f++]=s>>>8&255,d[f++]=255&s,P.arrayBufferToBinaryString(d)},D=function(e,t){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(t-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},B=function(e,t){for(var n,r=1,a=0,o=e.length,i=0;0>>0},R=function(e,t,n,r){for(var a,o,i,s=e.length/t,c=new Uint8Array(e.length+s),l=V(),u=0;u>>1)&255;return o},H=function(e,t,n){var r,a,o,i,s=[],c=0,l=e.length;for(s[0]=4;c>>p&255,p+=o.bits;v[y]=E>>>p&255}if(16===o.bits){m=(_=new Uint32Array(o.decodePixels().buffer)).length,g=new Uint8Array(m*(32/o.pixelBitlength)*o.colors),v=new Uint8Array(m*(32/o.pixelBitlength));for(var E,x=1>>0&255,x&&(g[w++]=E>>>16&255,E=_[y++],g[w++]=E>>>0&255),v[O++]=E>>>16&255;h=8}r!==P.image_compression.NONE&&L()?(e=I(g,o.width*o.colors,o.colors,r),u=I(v,o.width,1,r)):(e=g,u=v,d=null)}if(3===o.colorType&&(f=this.color_spaces.INDEXED,l=o.palette,o.transparency.indexed)){var C=o.transparency.indexed,S=0;for(y=0,m=C.length;yr&&(a.push(e.slice(c,o)),s=0,c=o),s+=t[o],o++;return c!==o&&a.push(e.slice(c,o)),a},ee=function(e,t,n){n||(n={});var r,a,o,i,s,c,l=[],u=[l],f=n.textIndent||0,d=0,h=0,p=e.split(" "),m=$.apply(this,[" ",n])[0];if(c=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var g=Array(c).join(" "),v=[];p.map((function(e){1<(e=e.split(/\s*\n/)).length?v=v.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):v.push(e[0])})),p=v,c=Z.apply(this,[g,n])}for(o=0,i=p.length;o>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},ce=pe.API,fe=ue=le="",ce.addMetadata=function(e,t){return ue=t||"http://jspdf.default.namespaceuri/",le=e,this.internal.events.subscribe("postPutResources",(function(){if(le){var e='',t=unescape(encodeURIComponent('')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(le)),a=unescape(encodeURIComponent("")),o=unescape(encodeURIComponent("")),i=n.length+r.length+a.length+t.length+o.length;fe=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+i+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+a+o),this.internal.write("endstream"),this.internal.write("endobj")}else fe=""})),this.internal.events.subscribe("putCatalog",(function(){fe&&this.internal.write("/Metadata "+fe+" 0 R")})),this},function(e,t){var n=e.API,r=n.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,a=["","0","00","000","0000"],o=[""],i=0,s=e.length;i<"+a+">");return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};n.events.push(["putFont",function(t){!function(t,n,r,o){if(t.metadata instanceof e.API.TTFFont&&"Identity-H"===t.encoding){for(var i=t.metadata.Unicode.widths,s=t.metadata.subset.encode(t.metadata.glyIdsUsed,1),c="",l=0;l>"),n("endobj");var h=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+t.fontName),n("/FontDescriptor "+d+" 0 R"),n("/W "+e.API.PDFObject.convert(i)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+t.encoding+")"),n(">>"),n(">>"),n("endobj"),t.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+f+" 0 R"),n("/BaseFont /"+t.fontName),n("/Encoding /"+t.encoding),n("/DescendantFonts ["+h+" 0 R]"),n(">>"),n("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]),n.events.push(["putFont",function(t){!function(t,n,r,o){if(t.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var i=t.metadata.rawData,s="",c=0;c>"),n("endobj"),t.objectNumber=r(),c=0;c>"),n("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]);var o=function(e){var t,n,a=e.text||"",o=e.x,i=e.y,s=e.options||{},c=e.mutex||{},l=c.pdfEscape,u=c.activeFontKey,f=c.fonts,d=(c.activeFontSize,""),h=0,p="",m=f[n=u].encoding;if("Identity-H"!==f[n].encoding)return{text:a,x:o,y:i,options:s,mutex:c};for(p=a,n=u,"[object Array]"===Object.prototype.toString.call(a)&&(p=a[0]),h=0;hc-l.top-l.bottom&&r.pagesplit){var p=function(e,t,n,a,o){var i=document.createElement("canvas");i.height=o,i.width=a;var s=i.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,a,o),s.drawImage(e,t,n,a,o,0,0,a,o),i},m=function(){for(var r,o,u=0,m=0,g={},v=!1;;){var b;if(m=0,g.top=0!==u?l.top:n,g.left=0!==u?l.left:t,v=(s-l.left-l.right)*i=e.width)break;this.addPage()}else y=[b=p(e,0,u,r,o),g.left,g.top,b.width/i,b.height/i,d,null,h],this.addImage.apply(this,y);if((u+=o)>=e.height)break;this.addPage()}a(f,u,null,y)}.bind(this);if("CANVAS"===e.nodeName){var g=new Image;g.onload=m,g.src=e.toDataURL("image/png"),e=g}else m()}else{var v=Math.random().toString(35),b=[e,t,n,f,u,d,v,h];this.addImage.apply(this,b),a(f,u,v,b)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(e,r);if("undefined"==typeof rasterizeHTML)return null;var l="drawDocument";return"string"==typeof e&&(l=/^http/.test(e)?"drawURL":"drawHTML"),r.width=r.width||s*i,rasterizeHTML[l](e,void 0,r).then((function(e){r.onrendered(e.image)}),(function(e){a(null,e)}))},function(e){var t,n,r,o,i,s,c,l,u,f,d,h,p,m,g,v,b,y,w,E;t=function(){return function(t){return e.prototype=t,new e};function e(){}}(),f=function(e){var t,n,r,a,o,i,s;for(n=0,r=e.length,t=void 0,i=a=!1;!a&&n!==r;)(t=e[n]=e[n].trimLeft())&&(a=!0),n++;for(n=r-1;r&&!i&&-1!==n;)(t=e[n]=e[n].trimRight())&&(i=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=e[n]&&(t=e[n].replace(/\s+/g," "),s&&(t=t.trimLeft()),t&&(s=o.test(t)),e[n]=t),n++;return e},h=function(e){var t,n,a;for(t=void 0,n=(a=e.split(",")).shift();!t&&n;)t=r[n.trim().toLowerCase()],n=a.shift();return t},p=function(e){var t;return-1<(e="auto"===e?"0px":e).indexOf("em")&&!isNaN(Number(e.replace("em","")))&&(e=18.719*Number(e.replace("em",""))+"px"),-1r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(i));var N=u(i),j=r.x,T=12/r.pdf.internal.scaleFactor,P=(N["margin-left"]+N["padding-left"])*T,L=(N["margin-right"]+N["padding-right"])*T,I=(N["margin-top"]+N["padding-top"])*T,D=(N["margin-bottom"]+N["padding-bottom"])*T;void 0!==N.float&&"right"===N.float?j+=r.settings.width-i.width-L:j+=P,r.pdf.addImage(k,j,r.y+I,i.width,i.height),k=void 0,"right"===N.float||"left"===N.float?(r.watchFunctions.push(function(e,t,n,a){return r.y>=t?(r.x+=e,r.settings.width+=n,!0):!!(a&&1===a.nodeType&&!x[a.nodeName]&&r.x+a.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=e,r.y=t,r.settings.width+=n,!0)}.bind(this,"left"===N.float?-i.width-P-L:0,r.y+i.height+I+D,i.width)),r.watchFunctions.push(function(e,t,n){return!(r.y]*?>/gi,""),u="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(l=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",l.innerHTML='