/*! For license information please see 15.c0743c09.chunk.js.LICENSE.txt */ (this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[15,4,5,8,73],{1021:function(e,t,r){var n=r(930);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},1022:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},1058:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(this.props,[]);return function(e){l.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=r,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",n({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(o.Component);d.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},d.defaultProps={minWidth:1,injectStyles:!0},t.default=d},1079:function(e,t,r){var n=r(1166);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},1081:function(e,t,r){"use strict";r.d(t,"a",(function(){return B}));var n=r(850),a=r.n(n),o=r(636),i=r.n(o),s=r(905),A=r.n(s),c=r(736),l=r.n(c),u=r(677),f=r.n(u),h=r(886),d=r.n(h),p=r(2),g=r(900),m=r(918),v=r(851),b={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},w={},y=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a=0;n(t.key,!a)},e.onItemRemove=function(t){var r=e.props.onItemRemove;null===r||void 0===r||r([t.key])},e.onPageChange=function(t){e.setState({current:t})},e.getItems=function(){var t=e.state.current,r=e.props,n=r.pagination,a=r.filteredRenderItems,o=T(n),i=a;return o&&(i=a.slice((t-1)*o.pageSize,t*o.pageSize)),i},e}return Object(s.a)(r,[{key:"render",value:function(){var e=this,t=this.state.current,r=this.props,a=r.prefixCls,o=r.onScroll,i=r.filteredRenderItems,s=r.selectedKeys,A=r.disabled,c=r.showRemove,l=T(r.pagination),h=null;return l&&(h=f.createElement(x.a,{simple:l.simple,showSizeChanger:l.showSizeChanger,showLessItems:l.showLessItems,size:"small",disabled:A,className:"".concat(a,"-pagination"),total:i.length,pageSize:l.pageSize,current:t,onChange:this.onPageChange})),f.createElement(f.Fragment,null,f.createElement("ul",{className:u()("".concat(a,"-content"),Object(n.a)({},"".concat(a,"-content-show-remove"),c)),onScroll:o},this.getItems().map((function(t){var r=t.renderedEl,n=t.renderedText,o=t.item,i=o.disabled,l=s.indexOf(o.key)>=0;return f.createElement(k,{disabled:A||i,key:o.key,item:o,renderedText:n,renderedEl:r,checked:l,prefixCls:a,onClick:e.onItemSelect,onRemove:e.onItemRemove,showRemove:c})}))),h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.filteredRenderItems,n=e.pagination,a=t.current,o=T(n);if(o){var i=Math.ceil(r.length/o.pageSize);if(a>i)return{current:i}}return null}}]),r}(f.Component),L=r(615),P=r(751);function D(e){var t=e.placeholder,r=void 0===t?"":t,n=e.value,a=e.prefixCls,o=e.disabled,i=e.onChange,s=e.handleClear,A=f.useCallback((function(e){null===i||void 0===i||i(e),""===e.target.value&&(null===s||void 0===s||s())}),[i]);return f.createElement(P.default,{placeholder:r,className:a,value:n,onChange:A,disabled:o,allowClear:!0,prefix:f.createElement(L.a,null)})}var Q=function(){return null};function R(e){return e.filter((function(e){return!e.disabled})).map((function(e){return e.key}))}var M=function(e){Object(A.a)(r,e);var t=Object(c.a)(r);function r(e){var n;return Object(i.a)(this,r),(n=t.call(this,e)).defaultListBodyRef=f.createRef(),n.handleFilter=function(e){var t=n.props.handleFilter,r=e.target.value;n.setState({filterValue:r}),t(e)},n.handleClear=function(){var e=n.props.handleClear;n.setState({filterValue:""}),e()},n.matchFilter=function(e,t){var r=n.state.filterValue,a=n.props.filterOption;return a?a(r,t):e.indexOf(r)>=0},n.renderListBody=function(e,t){var r=e?e(t):null,a=!!r;return a||(r=f.createElement(U,Object(o.a)({ref:n.defaultListBodyRef},t))),{customize:a,bodyContent:r}},n.renderItem=function(e){var t,r=n.props.render,a=(void 0===r?Q:r)(e),o=!(!(t=a)||Object(E.b)(t)||"[object Object]"!==Object.prototype.toString.call(t));return{renderedText:o?a.value:a,renderedEl:o?a.label:a,item:e}},n.getSelectAllLabel=function(e,t){var r=n.props,a=r.itemsUnit,o=r.itemUnit,i=r.selectAllLabel;if(i)return"function"===typeof i?i({selectedCount:e,totalCount:t}):i;var s=t>1?a:o;return f.createElement(f.Fragment,null,(e>0?"".concat(e,"/"):"")+t," ",s)},n.state={filterValue:""},n}return Object(s.a)(r,[{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 r=this,n=[],a=[];return e.forEach((function(e){var o=r.renderItem(e),i=o.renderedText;if(t&&!r.matchFilter(i,e))return null;n.push(e),a.push(o)})),{filteredItems:n,filteredRenderItems:a}}},{key:"getListBody",value:function(e,t,r,n,a,i,s,A,c,l){var h,d=this,p=c?f.createElement("div",{className:"".concat(e,"-body-search-wrapper")},f.createElement(D,{prefixCls:"".concat(e,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:t,value:r,disabled:l})):null,g=this.renderListBody(A,Object(o.a)(Object(o.a)({},Object(w.a)(this.props,N)),{filteredItems:n,filteredRenderItems:i,selectedKeys:s})),m=g.bodyContent;return h=g.customize?f.createElement("div",{className:"".concat(e,"-body-customize-wrapper")},m):n.length?m:f.createElement("div",{className:"".concat(e,"-body-not-found")},function(){var e="left"===d.props.direction?0:1;return Array.isArray(a)?a[e]:a}()),f.createElement("div",{className:u()(c?"".concat(e,"-body ").concat(e,"-body-with-search"):"".concat(e,"-body"))},p,h)}},{key:"getCheckBox",value:function(e){var t=e.filteredItems,r=e.onItemSelectAll,n=e.disabled,a=e.prefixCls,o=this.getCheckStatus(t),i="all"===o;return f.createElement(y.default,{disabled:n,checked:i,indeterminate:"part"===o,className:"".concat(a,"-checkbox"),onChange:function(){r(t.filter((function(e){return!e.disabled})).map((function(e){return e.key})),!i)}})}},{key:"render",value:function(){var e,t=this,r=this.state.filterValue,a=this.props,o=a.prefixCls,i=a.dataSource,s=a.titleText,A=a.checkedKeys,c=a.disabled,l=a.footer,h=a.showSearch,d=a.style,p=a.searchPlaceholder,g=a.notFoundContent,m=a.selectAll,v=a.selectCurrent,w=a.selectInvert,y=a.removeAll,E=a.removeCurrent,S=a.renderList,x=a.onItemSelectAll,F=a.onItemRemove,O=a.showSelectAll,_=void 0===O||O,I=a.showRemove,k=a.pagination,N=a.direction,T=l&&(l.length<2?l(this.props):l(this.props,{direction:N})),U=u()(o,(e={},Object(n.a)(e,"".concat(o,"-with-pagination"),!!k),Object(n.a)(e,"".concat(o,"-with-footer"),!!T),e)),L=this.getFilteredItems(i,r),P=L.filteredItems,D=L.filteredRenderItems,Q=this.getListBody(o,p,r,P,g,D,A,S,h,c),M=T?f.createElement("div",{className:"".concat(o,"-footer")},T):null,j=!I&&!k&&this.getCheckBox({filteredItems:P,onItemSelectAll:x,disabled:c,prefixCls:o}),H=null;if(I){var V=[k?{key:"removeCurrent",onClick:function(){var e,r=R(((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})));null===F||void 0===F||F(r)},label:E}:null,{key:"removeAll",onClick:function(){null===F||void 0===F||F(R(P))},label:y}].filter((function(e){return e}));H=f.createElement(C.a,{items:V})}else{var K=[{key:"selectAll",onClick:function(){var e=R(P);x(e,e.length!==A.length)},label:m},k?{key:"selectCurrent",onClick:function(){var e,r=(null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[];x(R(r.map((function(e){return e.item}))),!0)},label:v}:null,{key:"selectInvert",onClick:function(){var e,r;r=R(k?((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})):P);var n=new Set(A),a=[],o=[];r.forEach((function(e){n.has(e)?o.push(e):a.push(e)})),x(a,!0),x(o,!1)},label:w}];H=f.createElement(C.a,{items:K})}var z=f.createElement(B.default,{className:"".concat(o,"-header-dropdown"),overlay:H,disabled:c},f.createElement(b.a,null));return f.createElement("div",{className:U,style:d},f.createElement("div",{className:"".concat(o,"-header")},_?f.createElement(f.Fragment,null,j,z):null,f.createElement("span",{className:"".concat(o,"-header-selected")},this.getSelectAllLabel(A.length,P.length)),f.createElement("span",{className:"".concat(o,"-header-title")},s)),Q,M)}}]),r}(f.PureComponent);M.defaultProps={dataSource:[],titleText:"",showSearch:!1};var j=r(628),H=r(608),V=r(605),K=function(e){var t=e.disabled,r=e.moveToLeft,n=e.moveToRight,a=e.leftArrowText,o=void 0===a?"":a,i=e.rightArrowText,s=void 0===i?"":i,A=e.leftActive,c=e.rightActive,l=e.className,u=e.style,h=e.direction,d=e.oneWay;return f.createElement("div",{className:l,style:u},f.createElement(V.default,{type:"primary",size:"small",disabled:t||!c,onClick:n,icon:"rtl"!==h?f.createElement(H.a,null):f.createElement(j.a,null)},s),!d&&f.createElement(V.default,{type:"primary",size:"small",disabled:t||!A,onClick:r,icon:"rtl"!==h?f.createElement(j.a,null):f.createElement(H.a,null)},o))},z=function(e){Object(A.a)(r,e);var t=Object(c.a)(r);function r(e){var s;Object(i.a)(this,r),(s=t.call(this,e)).separatedDataSource=null,s.setStateKeys=function(e,t){"left"===e?s.setState((function(e){var r=e.sourceSelectedKeys;return{sourceSelectedKeys:"function"===typeof t?t(r||[]):t}})):s.setState((function(e){var r=e.targetSelectedKeys;return{targetSelectedKeys:"function"===typeof t?t(r||[]):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,r=t.targetKeys,n=void 0===r?[]:r,a=t.dataSource,o=void 0===a?[]:a,i=t.onChange,A=s.state,c=A.sourceSelectedKeys,l=A.targetSelectedKeys,u=("right"===e?c:l).filter((function(e){return!o.some((function(t){return!(e!==t.key||!t.disabled)}))})),f="right"===e?u.concat(n):n.filter((function(e){return-1===u.indexOf(e)})),h="right"===e?"left":"right";s.setStateKeys(h,[]),s.handleSelectChange(h,[]),null===i||void 0===i||i(f,e,u)},s.moveToLeft=function(){return s.moveTo("left")},s.moveToRight=function(){return s.moveTo("right")},s.onItemSelectAll=function(e,t,r){s.setStateKeys(e,(function(n){var o=[];return o=r?Array.from(new Set([].concat(Object(a.a)(n),Object(a.a)(t)))):n.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 r=s.props.onSearch,n=t.target.value;null===r||void 0===r||r(e,n)},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,r){var n=s.state,o=n.sourceSelectedKeys,i=n.targetSelectedKeys,A="left"===e?Object(a.a)(o):Object(a.a)(i),c=A.indexOf(t);c>-1&&A.splice(c,1),r&&A.push(t),s.handleSelectChange(e,A),s.props.selectedKeys||s.setStateKeys(e,A)},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,r=t.targetKeys,n=void 0===r?[]:r,o=t.onChange;s.setStateKeys("right",[]),null===o||void 0===o||o(n.filter((function(t){return!e.includes(t)})),"left",Object(a.a)(e))},s.handleScroll=function(e,t){var r=s.props.onScroll;null===r||void 0===r||r(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 f.createElement(h.a,null,(function(t){var r=t.getPrefixCls,a=t.renderEmpty,i=t.direction;return f.createElement(p.b.Consumer,null,(function(t){var A,c=t.hasFeedback,l=t.status,h=s.props,p=h.prefixCls,g=h.className,m=h.disabled,b=h.operations,w=void 0===b?[]:b,y=h.showSearch,B=h.footer,C=h.style,E=h.listStyle,S=h.operationStyle,x=h.filterOption,F=h.render,O=h.children,_=h.showSelectAll,I=h.oneWay,k=h.pagination,N=h.status,T=r("transfer",p),U=s.getLocale(e,a||d.a),L=s.state,P=L.sourceSelectedKeys,D=L.targetSelectedKeys,Q=Object(v.a)(l,N),R=!O&&k,j=s.separateDataSource(),H=j.leftDataSource,V=j.rightDataSource,z=D.length>0,G=P.length>0,W=u()(T,(A={},Object(n.a)(A,"".concat(T,"-disabled"),m),Object(n.a)(A,"".concat(T,"-customize-list"),!!O),Object(n.a)(A,"".concat(T,"-rtl"),"rtl"===i),A),Object(v.b)(T,Q,c),g),Y=s.getTitles(U),X=s.props.selectAllLabels||[];return f.createElement("div",{className:W,style:C},f.createElement(M,Object(o.a)({prefixCls:"".concat(T,"-list"),titleText:Y[0],dataSource:H,filterOption:x,style:s.handleListStyle(E,"left"),checkedKeys:P,handleFilter:s.handleLeftFilter,handleClear:s.handleLeftClear,onItemSelect:s.onLeftItemSelect,onItemSelectAll:s.onLeftItemSelectAll,render:F,showSearch:y,renderList:O,footer:B,onScroll:s.handleLeftScroll,disabled:m,direction:"rtl"===i?"right":"left",showSelectAll:_,selectAllLabel:X[0],pagination:R},U)),f.createElement(K,{className:"".concat(T,"-operation"),rightActive:G,rightArrowText:w[0],moveToRight:s.moveToRight,leftActive:z,leftArrowText:w[1],moveToLeft:s.moveToLeft,style:S,disabled:m,direction:i,oneWay:I}),f.createElement(M,Object(o.a)({prefixCls:"".concat(T,"-list"),titleText:Y[1],dataSource:V,filterOption:x,style:s.handleListStyle(E,"right"),checkedKeys:D,handleFilter:s.handleRightFilter,handleClear:s.handleRightClear,onItemSelect:s.onRightItemSelect,onItemSelectAll:s.onRightItemSelectAll,onItemRemove:s.onRightItemRemove,render:F,showSearch:y,renderList:O,footer:B,onScroll:s.handleRightScroll,disabled:m,direction:"rtl"===i?"left":"right",showSelectAll:_,selectAllLabel:X[1],showRemove:I,pagination:R},U)))}))}))};var A=e.selectedKeys,c=void 0===A?[]:A,l=e.targetKeys,g=void 0===l?[]:l;return s.state={sourceSelectedKeys:c.filter((function(e){return-1===g.indexOf(e)})),targetSelectedKeys:c.filter((function(e){return g.indexOf(e)>-1}))},s}return Object(s.a)(r,[{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 r=this.state,n=r.sourceSelectedKeys,a=r.targetSelectedKeys,o=this.props.onSelectChange;o&&("left"===e?o(t,a):o(n,t))}},{key:"separateDataSource",value:function(){var e=this.props,t=e.dataSource,r=e.rowKey,n=e.targetKeys,a=void 0===n?[]:n,i=[],s=new Array(a.length);return t.forEach((function(e){r&&(e=Object(o.a)(Object(o.a)({},e),{key:r(e)}));var t=a.indexOf(e.key);-1!==t?s[t]=e:i.push(e)})),{leftDataSource:i,rightDataSource:s}}},{key:"render",value:function(){return f.createElement(g.a,{componentName:"Transfer",defaultLocale:m.a.Transfer},this.renderTransfer)}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.selectedKeys,r=e.targetKeys;e.pagination,e.children;if(t){var n=r||[];return{sourceSelectedKeys:t.filter((function(e){return!n.includes(e)})),targetSelectedKeys:t.filter((function(e){return n.includes(e)}))}}return null}}]),r}(f.Component);z.List=M,z.Operation=K,z.Search=D,z.defaultProps={dataSource:[],locale:{},showSearch:!1,listStyle:function(){}};t.a=z},1166:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o,i=!0,s=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==a.return||a.return()}finally{if(s)throw o}}}}},1531:function(e,t,r){var n=r(1532),a=r(1533),o=r(1079),i=r(1534);e.exports=function(e){return n(e)||a(e)||o(e)||i()}},1532:function(e,t,r){var n=r(1166);e.exports=function(e){if(Array.isArray(e))return n(e)}},1533:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},1534:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},1603:function(e,t){function r(e,t,r,n,a,o,i){try{var s=e[o](i),A=s.value}catch(c){return void r(c)}s.done?t(A):Promise.resolve(A).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function s(e){r(i,a,o,s,A,"next",e)}function A(e){r(i,a,o,s,A,"throw",e)}s(void 0)}))}}},1610:function(e,t,r){"use strict";var n=r(23),a=r(563),o=r(59),i=r(33),s=r(2),A=r.n(s),c=r(80),l=r.n(c),u=r(183),f=r.n(u),h=r(562),d=r.n(h),p=r(1081),g=r(876),m=r(569),v=["className","cssModule","right","tag","flip","modifiers","persist","positionFixed","container"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t-1?this.getRole():void 0,r=Object(d.q)(this.props,["toggle"]),o=r.className,i=r.cssModule,s=r.divider,c=r.tag,l=r.header,u=r.active,h=r.text,g=Object(a.a)(r,p),m=Object(d.p)(f()(o,{disabled:g.disabled,"dropdown-item":!s&&!l&&!h,active:u,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":h}),i);return"button"===c&&(l?c="h6":s?c="div":g.href?c="a":h&&(c="span")),A.a.createElement(c,Object(n.a)({type:"button"===c&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:e,role:t,className:m,onClick:this.onClick}))},t}(A.a.Component);m.propTypes=g,m.defaultProps={tag:"button",toggle:!0},m.contextType=h.a,t.a=m},1669:function(e,t,r){"use strict";var n=r(23),a=r(59),o=r(583),i=r(33),s=r(2),A=r.n(s),c=r(80),l=r.n(c),u=r(562),f=r.n(u),h=r(636),d=r.n(h),p=r(905),g=r.n(p),m=r(736),v=r.n(m),b=r(677),w=r.n(b),y=r(976),B=r.n(y),C=r(918),E=r(851),S=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),a=0;a0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=55296&&a<=56319&&r>10),i%1024+56320)),(a+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"===typeof Uint8Array?[]:new Uint8Array(256),f=0;f=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"===typeof Uint8Array?[]:new Uint8Array(256),w=0;w>4,l[A++]=(15&n)<<4|a>>2,l[A++]=(3&a)<<6|63&o;return c}(e),i=Array.isArray(o)?function(e){for(var t=e.length,r=[],n=0;n0;){var i=n[--o];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var s=r;s<=n.length;){var A;if((A=n[++s])===t)return!0;if(A!==y)break}if(i!==y)break}return!1},te=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n!==y)return n;r--}return 0},re=function(e,t,r,n,a){if(0===r[n])return"\xd7";var o=n-1;if(Array.isArray(a)&&!0===a[o])return"\xd7";var i=o-1,s=o+1,A=t[o],c=i>=0?t[i]:0,l=t[s];if(2===A&&3===l)return"\xd7";if(-1!==Y.indexOf(A))return"!";if(-1!==Y.indexOf(l))return"\xd7";if(-1!==X.indexOf(l))return"\xd7";if(8===te(o,t))return"\xf7";if(11===G.get(e[o]))return"\xd7";if((A===P||A===D)&&11===G.get(e[s]))return"\xd7";if(7===A||7===l)return"\xd7";if(9===A)return"\xd7";if(-1===[y,B,C].indexOf(A)&&9===l)return"\xd7";if(-1!==[E,S,x,I,U].indexOf(l))return"\xd7";if(te(o,t)===_)return"\xd7";if(ee(23,_,o,t))return"\xd7";if(ee([E,S],O,o,t))return"\xd7";if(ee(12,12,o,t))return"\xd7";if(A===y)return"\xf7";if(23===A||23===l)return"\xd7";if(16===l||16===A)return"\xf7";if(-1!==[B,C,O].indexOf(l)||14===A)return"\xd7";if(36===c&&-1!==$.indexOf(A))return"\xd7";if(A===U&&36===l)return"\xd7";if(l===F)return"\xd7";if(-1!==W.indexOf(l)&&A===k||-1!==W.indexOf(A)&&l===k)return"\xd7";if(A===T&&-1!==[M,P,D].indexOf(l)||-1!==[M,P,D].indexOf(A)&&l===N)return"\xd7";if(-1!==W.indexOf(A)&&-1!==q.indexOf(l)||-1!==q.indexOf(A)&&-1!==W.indexOf(l))return"\xd7";if(-1!==[T,N].indexOf(A)&&(l===k||-1!==[_,C].indexOf(l)&&t[s+1]===k)||-1!==[_,C].indexOf(A)&&l===k||A===k&&-1!==[k,U,I].indexOf(l))return"\xd7";if(-1!==[k,U,I,E,S].indexOf(l))for(var u=o;u>=0;){if((f=t[u])===k)return"\xd7";if(-1===[U,I].indexOf(f))break;u--}if(-1!==[T,N].indexOf(l))for(u=-1!==[E,S].indexOf(A)?i:o;u>=0;){var f;if((f=t[u])===k)return"\xd7";if(-1===[U,I].indexOf(f))break;u--}if(j===A&&-1!==[j,H,Q,R].indexOf(l)||-1!==[H,Q].indexOf(A)&&-1!==[H,V].indexOf(l)||-1!==[V,R].indexOf(A)&&l===V)return"\xd7";if(-1!==Z.indexOf(A)&&-1!==[F,N].indexOf(l)||-1!==Z.indexOf(l)&&A===T)return"\xd7";if(-1!==W.indexOf(A)&&-1!==W.indexOf(l))return"\xd7";if(A===I&&-1!==W.indexOf(l))return"\xd7";if(-1!==W.concat(k).indexOf(A)&&l===_&&-1===z.indexOf(e[s])||-1!==W.concat(k).indexOf(l)&&A===S)return"\xd7";if(41===A&&41===l){for(var h=r[o],d=1;h>0&&41===t[--h];)d++;if(d%2!==0)return"\xd7"}return A===P&&l===D?"\xd7":"\xf7"},ne=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=function(e,t){void 0===t&&(t="strict");var r=[],n=[],a=[];return e.forEach((function(e,o){var i=G.get(e);if(i>50?(a.push(!0),i-=50):a.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return n.push(o),r.push(16);if(4===i||11===i){if(0===o)return n.push(o),r.push(L);var s=r[o-1];return-1===J.indexOf(s)?(n.push(n[o-1]),r.push(s)):(n.push(o),r.push(L))}return n.push(o),31===i?r.push("strict"===t?O:M):i===K||29===i?r.push(L):43===i?e>=131072&&e<=196605||e>=196608&&e<=262141?r.push(M):r.push(L):void r.push(i)})),[n,r,a]}(e,t.lineBreak),n=r[0],a=r[1],o=r[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(a=a.map((function(e){return-1!==[k,L,K].indexOf(e)?M:e}))),[n,a,"keep-all"===t.wordBreak?o.map((function(t,r){return t&&e[r]>=19968&&e[r]<=40959})):void 0]},ae=function(){function e(e,t,r,n){this.codePoints=e,this.required="!"===t,this.start=r,this.end=n}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),oe=function(e){return e>=48&&e<=57},ie=function(e){return oe(e)||e>=65&&e<=70||e>=97&&e<=102},se=function(e){return 10===e||9===e||32===e},Ae=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ce=function(e){return Ae(e)||oe(e)||45===e},le=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ue=function(e,t){return 92===e&&10!==t},fe=function(e,t,r){return 45===e?Ae(t)||ue(t,r):!!Ae(e)||!(92!==e||!ue(e,t))},he=function(e,t,r){return 43===e||45===e?!!oe(t)||46===t&&oe(r):oe(46===e?t:e)},de=function(e){var t=0,r=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(r=-1),t++);for(var n=[];oe(e[t]);)n.push(e[t++]);var a=n.length?parseInt(c.apply(void 0,n),10):0;46===e[t]&&t++;for(var o=[];oe(e[t]);)o.push(e[t++]);var i=o.length,s=i?parseInt(c.apply(void 0,o),10):0;69!==e[t]&&101!==e[t]||t++;var A=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(A=-1),t++);for(var l=[];oe(e[t]);)l.push(e[t++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return r*(a+s*Math.pow(10,-i))*Math.pow(10,A*u)},pe={type:2},ge={type:3},me={type:4},ve={type:13},be={type:8},we={type:21},ye={type:9},Be={type:10},Ce={type:11},Ee={type:12},Se={type:14},xe={type:23},Fe={type:1},Oe={type:25},_e={type:24},Ie={type:26},ke={type:27},Ne={type:28},Te={type:29},Ue={type:31},Le={type:32},Pe=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(A(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Le;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ce(t)||ue(r,n)){var a=fe(t,r,n)?2:1;return{type:5,value:this.consumeName(),flags:a}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ve;break;case 39:return this.consumeStringToken(39);case 40:return pe;case 41:return ge;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Se;break;case 43:if(he(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return me;case 45:var o=e,i=this.peekCodePoint(0),s=this.peekCodePoint(1);if(he(o,i,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fe(o,i,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===i&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),_e;break;case 46:if(he(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var A=this.consumeCodePoint();if(42===A&&47===(A=this.consumeCodePoint()))return this.consumeToken();if(-1===A)return this.consumeToken()}break;case 58:return Ie;case 59:return ke;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),Oe;break;case 64:var l=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(fe(l,u,f))return{type:7,value:this.consumeName()};break;case 91:return Ne;case 92:if(ue(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Te;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),be;break;case 123:return Ce;case 125:return Ee;case 117:case 85:var h=this.peekCodePoint(0),d=this.peekCodePoint(1);return 43!==h||!ie(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ye;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),we;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Be;break;case-1:return Le}return se(e)?(this.consumeWhiteSpace(),Ue):oe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Ae(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();ie(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r)return{type:30,start:parseInt(c.apply(void 0,e.map((function(e){return 63===e?48:e}))),16),end:parseInt(c.apply(void 0,e.map((function(e){return 63===e?70:e}))),16)};var n=parseInt(c.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&ie(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var a=[];ie(t)&&a.length<6;)a.push(t),t=this.consumeCodePoint();return{type:30,start:n,end:parseInt(c.apply(void 0,a),16)}}return{type:30,start:n,end:n}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var r=this.consumeStringToken(this.consumeCodePoint());return 0===r.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),xe)}for(;;){var n=this.consumeCodePoint();if(-1===n||41===n)return{type:22,value:c.apply(void 0,e)};if(se(n))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),xe);if(34===n||39===n||40===n||le(n))return this.consumeBadUrlRemnants(),xe;if(92===n){if(!ue(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xe;e.push(this.consumeEscapedCodePoint())}else e.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;se(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;ue(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var r=Math.min(5e4,e);t+=c.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",r=0;;){var n=this._value[r];if(-1===n||void 0===n||n===e)return{type:0,value:t+=this.consumeStringSlice(r)};if(10===n)return this._value.splice(0,r),Fe;if(92===n){var a=this._value[r+1];-1!==a&&void 0!==a&&(10===a?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):ue(n,a)&&(t+=this.consumeStringSlice(r),t+=c(this.consumeEscapedCodePoint()),r=-1))}r++}},e.prototype.consumeNumber=function(){var e=[],t=4,r=this.peekCodePoint(0);for(43!==r&&45!==r||e.push(this.consumeCodePoint());oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===r&&oe(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((69===r||101===r)&&((43===n||45===n)&&oe(a)||oe(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[de(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);return fe(n,a,o)?{type:15,number:t,flags:r,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ie(e)){for(var t=c(e);ie(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());se(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return 0===r||function(e){return e>=55296&&e<=57343}(r)||r>1114111?65533:r}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ce(t))e+=c(t);else{if(!ue(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),De=function(){function e(e){this._tokens=e}return e.create=function(t){var r=new Pe;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(32===r.type||Ge(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(32===r.type||3===r.type)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?Le:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Qe=function(e){return 15===e.type},Re=function(e){return 17===e.type},Me=function(e){return 20===e.type},je=function(e){return 0===e.type},He=function(e,t){return Me(e)&&e.value===t},Ve=function(e){return 31!==e.type},Ke=function(e){return 31!==e.type&&4!==e.type},ze=function(e){var t=[],r=[];return e.forEach((function(e){if(4===e.type){if(0===r.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(r),void(r=[])}31!==e.type&&r.push(e)})),r.length&&t.push(r),t},Ge=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},We=function(e){return 17===e.type||15===e.type},Ye=function(e){return 16===e.type||We(e)},Xe=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},qe={type:17,number:0,flags:4},Je={type:16,number:50,flags:4},Ze={type:16,number:100,flags:4},$e=function(e,t,r){var n=e[0],a=e[1];return[et(n,t),et("undefined"!==typeof a?a:n,r)]},et=function(e,t){if(16===e.type)return e.number/100*t;if(Qe(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},tt=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case"grad":return Math.PI/200*t.number;case"rad":return t.number;case"turn":return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},rt=function(e){return 15===e.type&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},nt=function(e){switch(e.filter(Me).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qe,qe];case"to top":case"bottom":return at(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qe,Ze];case"to right":case"left":return at(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ze,Ze];case"to bottom":case"top":return at(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ze,qe];case"to left":case"right":return at(270)}return 0},at=function(e){return Math.PI*e/180},ot=function(e,t){if(18===t.type){var r=dt[t.name];if("undefined"===typeof r)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(5===t.type){if(3===t.value.length){var n=t.value.substring(0,1),a=t.value.substring(1,2),o=t.value.substring(2,3);return At(parseInt(n+n,16),parseInt(a+a,16),parseInt(o+o,16),1)}if(4===t.value.length){n=t.value.substring(0,1),a=t.value.substring(1,2),o=t.value.substring(2,3);var i=t.value.substring(3,4);return At(parseInt(n+n,16),parseInt(a+a,16),parseInt(o+o,16),parseInt(i+i,16)/255)}if(6===t.value.length)return n=t.value.substring(0,2),a=t.value.substring(2,4),o=t.value.substring(4,6),At(parseInt(n,16),parseInt(a,16),parseInt(o,16),1);if(8===t.value.length)return n=t.value.substring(0,2),a=t.value.substring(2,4),o=t.value.substring(4,6),i=t.value.substring(6,8),At(parseInt(n,16),parseInt(a,16),parseInt(o,16),parseInt(i,16)/255)}if(20===t.type){var s=gt[t.value.toUpperCase()];if("undefined"!==typeof s)return s}return gt.TRANSPARENT},it=function(e){return 0===(255&e)},st=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,a=255&e>>24;return t<255?"rgba("+a+","+n+","+r+","+t/255+")":"rgb("+a+","+n+","+r+")"},At=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(255*n)<<0)>>>0},ct=function(e,t){if(17===e.type)return e.number;if(16===e.type){var r=3===t?1:255;return 3===t?e.number/100*r:Math.round(e.number/100*r)}return 0},lt=function(e,t){var r=t.filter(Ke);if(3===r.length){var n=r.map(ct),a=n[0],o=n[1],i=n[2];return At(a,o,i,1)}if(4===r.length){var s=r.map(ct),A=(a=s[0],o=s[1],i=s[2],s[3]);return At(a,o,i,A)}return 0};function ut(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<.5?t:r<2/3?6*(t-e)*(2/3-r)+e:e}var ft,ht=function(e,t){var r=t.filter(Ke),n=r[0],a=r[1],o=r[2],i=r[3],s=(17===n.type?at(n.number):tt(e,n))/(2*Math.PI),A=Ye(a)?a.number/100:0,c=Ye(o)?o.number/100:0,l="undefined"!==typeof i&&Ye(i)?et(i,1):1;if(0===A)return At(255*c,255*c,255*c,1);var u=c<=.5?c*(A+1):c+A-c*A,f=2*c-u,h=ut(f,u,s+1/3),d=ut(f,u,s),p=ut(f,u,s-1/3);return At(255*h,255*d,255*p,l)},dt={hsl:ht,hsla:ht,rgb:lt,rgba:lt},pt=function(e,t){return ot(e,De.create(t).parseComponentValue())},gt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},mt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Me(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},vt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bt=function(e,t){var r=ot(e,t[0]),n=t[1];return n&&Ye(n)?{color:r,stop:n}:{color:r,stop:null}},wt=function(e,t){var r=e[0],n=e[e.length-1];null===r.stop&&(r.stop=qe),null===n.stop&&(n.stop=Ze);for(var a=[],o=0,i=0;io?a.push(A):a.push(o),o=A}else a.push(null)}var c=null;for(i=0;ie.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e}),{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},Et=function(e,t){var r=at(180),n=[];return ze(t).forEach((function(t,a){if(0===a){var o=t[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(r=nt(t));if(rt(o))return void(r=(tt(e,o)+at(270))%at(360))}var i=bt(e,t);n.push(i)})),{angle:r,stops:n,type:1}},St=function(e,t){var r=0,n=3,a=[],o=[];return ze(t).forEach((function(t,i){var s=!0;if(0===i?s=t.reduce((function(e,t){if(Me(t))switch(t.value){case"center":return o.push(Je),!1;case"top":case"left":return o.push(qe),!1;case"right":case"bottom":return o.push(Ze),!1}else if(Ye(t)||We(t))return o.push(t),!1;return e}),s):1===i&&(s=t.reduce((function(e,t){if(Me(t))switch(t.value){case"circle":return r=0,!1;case"ellipse":return r=1,!1;case"contain":case"closest-side":return n=0,!1;case"farthest-side":return n=1,!1;case"closest-corner":return n=2,!1;case"cover":case"farthest-corner":return n=3,!1}else if(We(t)||Ye(t))return Array.isArray(n)||(n=[]),n.push(t),!1;return e}),s)),s){var A=bt(e,t);a.push(A)}})),{size:n,shape:r,stops:a,position:o,type:2}},xt=function(e,t){if(22===t.type){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(18===t.type){var n=Ft[t.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)},Ft={"linear-gradient":function(e,t){var r=at(180),n=[];return ze(t).forEach((function(t,a){if(0===a){var o=t[0];if(20===o.type&&"to"===o.value)return void(r=nt(t));if(rt(o))return void(r=tt(e,o))}var i=bt(e,t);n.push(i)})),{angle:r,stops:n,type:1}},"-moz-linear-gradient":Et,"-ms-linear-gradient":Et,"-o-linear-gradient":Et,"-webkit-linear-gradient":Et,"radial-gradient":function(e,t){var r=0,n=3,a=[],o=[];return ze(t).forEach((function(t,i){var s=!0;if(0===i){var A=!1;s=t.reduce((function(e,t){if(A)if(Me(t))switch(t.value){case"center":return o.push(Je),e;case"top":case"left":return o.push(qe),e;case"right":case"bottom":return o.push(Ze),e}else(Ye(t)||We(t))&&o.push(t);else if(Me(t))switch(t.value){case"circle":return r=0,!1;case"ellipse":return r=1,!1;case"at":return A=!0,!1;case"closest-side":return n=0,!1;case"cover":case"farthest-side":return n=1,!1;case"contain":case"closest-corner":return n=2,!1;case"farthest-corner":return n=3,!1}else if(We(t)||Ye(t))return Array.isArray(n)||(n=[]),n.push(t),!1;return e}),s)}if(s){var c=bt(e,t);a.push(c)}})),{size:n,shape:r,stops:a,position:o,type:2}},"-moz-radial-gradient":St,"-ms-radial-gradient":St,"-o-radial-gradient":St,"-webkit-radial-gradient":St,"-webkit-gradient":function(e,t){var r=at(180),n=[],a=1;return ze(t).forEach((function(t,r){var o=t[0];if(0===r){if(Me(o)&&"linear"===o.value)return void(a=1);if(Me(o)&&"radial"===o.value)return void(a=2)}if(18===o.type)if("from"===o.name){var i=ot(e,o.values[0]);n.push({stop:qe,color:i})}else if("to"===o.name)i=ot(e,o.values[0]),n.push({stop:Ze,color:i});else if("color-stop"===o.name){var s=o.values.filter(Ke);if(2===s.length){i=ot(e,s[1]);var A=s[0];Re(A)&&n.push({stop:{type:16,number:100*A.number,flags:A.flags},color:i})}}})),1===a?{angle:(r+at(180))%at(360),stops:n,type:a}:{size:3,shape:0,stops:n,position:[],type:a}}},Ot={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var r=t[0];return 20===r.type&&"none"===r.value?[]:t.filter((function(e){return Ke(e)&&function(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!Ft[e.name])}(e)})).map((function(t){return xt(e,t)}))}},_t={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Me(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},It={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return ze(t).map((function(e){return e.filter(Ye)})).map(Xe)}},kt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return ze(t).map((function(e){return e.filter(Me).map((function(e){return e.value})).join(" ")})).map(Nt)}},Nt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(ft||(ft={}));var Tt,Ut={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return ze(t).map((function(e){return e.filter(Lt)}))}},Lt=function(e){return Me(e)||Ye(e)},Pt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Dt=Pt("top"),Qt=Pt("right"),Rt=Pt("bottom"),Mt=Pt("left"),jt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Xe(t.filter(Ye))}}},Ht=jt("top-left"),Vt=jt("top-right"),Kt=jt("bottom-right"),zt=jt("bottom-left"),Gt=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Wt=Gt("top"),Yt=Gt("right"),Xt=Gt("bottom"),qt=Gt("left"),Jt=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Qe(t)?t.number:0}}},Zt=Jt("top"),$t=Jt("right"),er=Jt("bottom"),tr=Jt("left"),rr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nr={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},ar={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Me).reduce((function(e,t){return e|or(t.value)}),0)}},or=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ir={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},sr={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Tt||(Tt={}));var Ar,cr={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Tt.STRICT;case"normal":default:return Tt.NORMAL}}},lr={name:"line-height",initialValue:"normal",prefix:!1,type:4},ur=function(e,t){return Me(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Ye(e)?et(e,t):t},fr={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:xt(e,t)}},hr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},dr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},pr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},gr=pr("top"),mr=pr("right"),vr=pr("bottom"),br=pr("left"),wr={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Me).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},yr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Br=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cr=Br("top"),Er=Br("right"),Sr=Br("bottom"),xr=Br("left"),Fr={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Or={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},_r={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&He(t[0],"none")?[]:ze(t).map((function(t){for(var r={color:gt.TRANSPARENT,offsetX:qe,offsetY:qe,blur:qe},n=0,a=0;a1?1:0],this.overflowWrap=cn(e,yr,t.overflowWrap),this.paddingTop=cn(e,Cr,t.paddingTop),this.paddingRight=cn(e,Er,t.paddingRight),this.paddingBottom=cn(e,Sr,t.paddingBottom),this.paddingLeft=cn(e,xr,t.paddingLeft),this.paintOrder=cn(e,rn,t.paintOrder),this.position=cn(e,Or,t.position),this.textAlign=cn(e,Fr,t.textAlign),this.textDecorationColor=cn(e,jr,null!==(r=t.textDecorationColor)&&void 0!==r?r:t.color),this.textDecorationLine=cn(e,Hr,null!==(n=t.textDecorationLine)&&void 0!==n?n:t.textDecoration),this.textShadow=cn(e,_r,t.textShadow),this.textTransform=cn(e,Ir,t.textTransform),this.transform=cn(e,kr,t.transform),this.transformOrigin=cn(e,Lr,t.transformOrigin),this.visibility=cn(e,Pr,t.visibility),this.webkitTextStrokeColor=cn(e,nn,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=cn(e,an,t.webkitTextStrokeWidth),this.wordBreak=cn(e,Dr,t.wordBreak),this.zIndex=cn(e,Qr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return it(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return Yr(this.display,4)||Yr(this.display,33554432)||Yr(this.display,268435456)||Yr(this.display,536870912)||Yr(this.display,67108864)||Yr(this.display,134217728)},e}(),sn=function(e,t){this.content=cn(e,Xr,t.content),this.quotes=cn(e,$r,t.quotes)},An=function(e,t){this.counterIncrement=cn(e,qr,t.counterIncrement),this.counterReset=cn(e,Jr,t.counterReset)},cn=function(e,t,r){var n=new Pe,a=null!==r&&"undefined"!==typeof r?r.toString():t.initialValue;n.write(a);var o=new De(n.read());switch(t.type){case 2:var i=o.parseComponentValue();return t.parse(e,Me(i)?i.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return tt(e,o.parseComponentValue());case"color":return ot(e,o.parseComponentValue());case"image":return xt(e,o.parseComponentValue());case"length":var s=o.parseComponentValue();return We(s)?s:qe;case"length-percentage":var A=o.parseComponentValue();return Ye(A)?A:qe;case"time":return Rr(e,o.parseComponentValue())}}},ln=function(e,t){var r=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===r||t===r},un=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ln(t,3),this.styles=new on(e,window.getComputedStyle(t,null)),la(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),ln(t,4)&&(this.flags|=16)},fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),dn=0;dn=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),bn=0;bn>10),i%1024+56320)),(a+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},xn=function(e,t){var r,n,a,o=function(e){var t,r,n,a,o,i=.75*e.length,s=e.length,A=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),l=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t>4,l[A++]=(15&n)<<4|a>>2,l[A++]=(3&a)<<6|63&o;return c}(e),i=Array.isArray(o)?function(e){for(var t=e.length,r=[],n=0;n=55296&&a<=56319&&r=r)return{done:!0,value:null};for(var e="\xd7";ni.x||a.y>i.y;return i=a,0===t||s}));return e.body.removeChild(t),s}(document);return Object.defineProperty(Tn,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),r.toDataURL()}catch(a){return!1}return!0}(document);return Object.defineProperty(Tn,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,100,100);var n=new Image,a=t.toDataURL();n.src=a;var o=kn(100,100,0,0,n);return r.fillStyle="red",r.fillRect(0,0,100,100),Nn(o).then((function(t){r.drawImage(t,0,0);var n=r.getImageData(0,0,100,100).data;r.fillStyle="red",r.fillRect(0,0,100,100);var o=e.createElement("div");return o.style.backgroundImage="url("+a+")",o.style.height="100px",In(n)?Nn(kn(100,100,0,0,o)):Promise.reject(!1)})).then((function(e){return r.drawImage(e,0,0),In(r.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Tn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e="undefined"!==typeof(new Image).crossOrigin;return Object.defineProperty(Tn,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"===typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Tn,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Tn,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Tn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Un=function(e,t){this.text=e,this.bounds=t},Ln=function(e,t){var r=t.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var o=s(e,n);return n.firstChild&&a.replaceChild(n.firstChild,n),o}}return i.EMPTY},Pn=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(e,t),a.setEnd(e,t+r),a},Dn=function(e){if(Tn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return function(e){for(var t,r=_n(e),n=[];!(t=r.next()).done;)t.value&&n.push(t.value.slice());return n}(e)},Qn=function(e,t){return 0!==t.letterSpacing?Dn(e):function(e,t){if(Tn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map((function(e){return e.segment}))}return Mn(e,t)}(e,t)},Rn=[32,160,4961,65792,65793,4153,4241],Mn=function(e,t){for(var r,n=function(e,t){var r=A(e),n=ne(r,t),a=n[0],o=n[1],i=n[2],s=r.length,c=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var e="\xd7";l0)if(Tn.SUPPORT_RANGE_BOUNDS){var a=Pn(n,s,t.length).getClientRects();if(a.length>1){var A=Dn(t),c=0;A.forEach((function(t){o.push(new Un(t,i.fromDOMRectList(e,Pn(n,c+s,t.length).getClientRects()))),c+=t.length}))}else o.push(new Un(t,i.fromDOMRectList(e,a)))}else{var l=n.splitText(t.length);o.push(new Un(t,Ln(e,n))),n=l}else Tn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(t.length));s+=t.length})),o}(e,this.text,r,t)},Hn=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Vn,Kn);case 2:return e.toUpperCase();default:return e}},Vn=/(^|\s|:|-|\(|\))([a-z])/g,Kn=function(e,t,r){return e.length>0?t+r.toUpperCase():e},zn=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return t(r,e),r}(un),Gn=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return t(r,e),r}(un),Wn=function(e){function r(t,r){var n=e.call(this,t,r)||this,a=new XMLSerializer,o=s(t,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return t(r,e),r}(un),Yn=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return t(r,e),r}(un),Xn=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.start=r.start,n.reversed="boolean"===typeof r.reversed&&!0===r.reversed,n}return t(r,e),r}(un),qn=[{type:15,flags:0,unit:"px",number:3}],Jn=[{type:16,flags:0,number:50}],Zn="password",$n=function(e){function r(t,r){var n,a=e.call(this,t,r)||this;switch(a.type=r.type.toLowerCase(),a.checked=r.checked,a.value=function(e){var t=e.type===Zn?new Array(e.value.length+1).join("\u2022"):e.value;return 0===t.length?e.placeholder||"":t}(r),"checkbox"!==a.type&&"radio"!==a.type||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=(n=a.bounds).width>n.height?new i(n.left+(n.width-n.height)/2,n.top,n.height,n.height):n.width0)n.textNodes.push(new jn(t,o,n.styles));else if(ca(o))if(Ea(o)&&o.assignedNodes)o.assignedNodes().forEach((function(r){return e(t,r,n,a)}));else{var s=aa(t,o);s.styles.isVisible()&&(ia(o,s,a)?s.flags|=4:sa(s.styles)&&(s.flags|=2),-1!==na.indexOf(o.tagName)&&(s.flags|=8),n.elements.push(s),o.slot,o.shadowRoot?e(t,o.shadowRoot,s,a):Ba(o)||pa(o)||Ca(o)||e(t,o,s,a))}}(e,t,r,r),r},ia=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||ga(e)&&r.styles.isTransparent()},sa=function(e){return e.isPositioned()||e.isFloating()},Aa=function(e){return e.nodeType===Node.TEXT_NODE},ca=function(e){return e.nodeType===Node.ELEMENT_NODE},la=function(e){return ca(e)&&"undefined"!==typeof e.style&&!ua(e)},ua=function(e){return"object"===typeof e.className},fa=function(e){return"LI"===e.tagName},ha=function(e){return"OL"===e.tagName},da=function(e){return"INPUT"===e.tagName},pa=function(e){return"svg"===e.tagName},ga=function(e){return"BODY"===e.tagName},ma=function(e){return"CANVAS"===e.tagName},va=function(e){return"VIDEO"===e.tagName},ba=function(e){return"IMG"===e.tagName},wa=function(e){return"IFRAME"===e.tagName},ya=function(e){return"STYLE"===e.tagName},Ba=function(e){return"TEXTAREA"===e.tagName},Ca=function(e){return"SELECT"===e.tagName},Ea=function(e){return"SLOT"===e.tagName},Sa=function(e){return e.tagName.indexOf("-")>0},xa=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,a=!0;null!==r&&r.forEach((function(e){var r=t.counters[e.counter];r&&0!==e.increment&&(a=!1,r.length||r.push(1),r[Math.max(0,r.length-1)]+=e.increment)}));var o=[];return a&&n.forEach((function(e){var r=t.counters[e.counter];o.push(e.counter),r||(r=t.counters[e.counter]=[]),r.push(e.reset)})),o},e}(),Fa={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Oa={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},_a={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Ia={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},ka=function(e,t,r,n,a,o){return er?Pa(e,a,o.length>0):n.integers.reduce((function(t,r,a){for(;e>=r;)e-=r,t+=n.values[a];return t}),"")+o},Na=function(e,t,r,n){var a="";do{r||e--,a=n(e)+a,e/=t}while(e*t>=t);return a},Ta=function(e,t,r,n,a){var o=r-t+1;return(e<0?"-":"")+(Na(Math.abs(e),o,n,(function(e){return c(Math.floor(e%o)+t)}))+a)},Ua=function(e,t,r){void 0===r&&(r=". ");var n=t.length;return Na(Math.abs(e),n,!1,(function(e){return t[Math.floor(e%n)]}))+r},La=function(e,t,r,n,a,o){if(e<-9999||e>9999)return Pa(e,4,a.length>0);var i=Math.abs(e),s=a;if(0===i)return t[0]+s;for(var A=0;i>0&&A<=4;A++){var c=i%10;0===c&&Yr(o,1)&&""!==s?s=t[c]+s:c>1||1===c&&0===A||1===c&&1===A&&Yr(o,2)||1===c&&1===A&&Yr(o,4)&&e>100||1===c&&A>1&&Yr(o,8)?s=t[c]+(A>0?r[A-1]:"")+s:1===c&&A>0&&(s=r[A-1]+s),i=Math.floor(i/10)}return(e<0?n:"")+s},Pa=function(e,t,r){var n=r?". ":"",a=r?"\u3001":"",o=r?", ":"",i=r?" ":"";switch(t){case 0:return"\u2022"+i;case 1:return"\u25e6"+i;case 2:return"\u25fe"+i;case 5:var s=Ta(e,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return Ua(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",a);case 6:return ka(e,1,3999,Fa,3,n).toLowerCase();case 7:return ka(e,1,3999,Fa,3,n);case 8:return Ta(e,945,969,!1,n);case 9:return Ta(e,97,122,!1,n);case 10:return Ta(e,65,90,!1,n);case 11:return Ta(e,1632,1641,!0,n);case 12:case 49:return ka(e,1,9999,Oa,3,n);case 35:return ka(e,1,9999,Oa,3,n).toLowerCase();case 13:return Ta(e,2534,2543,!0,n);case 14:case 30:return Ta(e,6112,6121,!0,n);case 15:return Ua(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",a);case 16:return Ua(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",a);case 17:case 48:return La(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8ca0",a,14);case 47:return La(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8ca0",a,15);case 42:return La(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8d1f",a,14);case 41:return La(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8d1f",a,15);case 26:return La(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",a,0);case 25:return La(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",a,7);case 31:return La(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc","\ub9c8\uc774\ub108\uc2a4",o,7);case 33:return La(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\ub9c8\uc774\ub108\uc2a4",o,0);case 32:return La(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343","\ub9c8\uc774\ub108\uc2a4",o,7);case 18:return Ta(e,2406,2415,!0,n);case 20:return ka(e,1,19999,Ia,3,n);case 21:return Ta(e,2790,2799,!0,n);case 22:return Ta(e,2662,2671,!0,n);case 22:return ka(e,1,10999,_a,3,n);case 23:return Ua(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case 24:return Ua(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case 27:return Ta(e,3302,3311,!0,n);case 28:return Ua(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",a);case 29:return Ua(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",a);case 34:return Ta(e,3792,3801,!0,n);case 37:return Ta(e,6160,6169,!0,n);case 38:return Ta(e,4160,4169,!0,n);case 39:return Ta(e,2918,2927,!0,n);case 40:return Ta(e,1776,1785,!0,n);case 43:return Ta(e,3046,3055,!0,n);case 44:return Ta(e,3174,3183,!0,n);case 45:return Ta(e,3664,3673,!0,n);case 46:return Ta(e,3872,3881,!0,n);case 3:default:return Ta(e,48,57,!0,n)}},Da=function(){function e(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new xa,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var r=this,o=Ra(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,A=o.contentWindow,c=A.document,l=Ha(o).then((function(){return n(r,void 0,void 0,(function(){var e,r;return a(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Wa),A&&(A.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||A.scrollY===t.top&&A.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(A.scrollX-t.left,A.scrollY-t.top,0,0))),e=this.options.onclone,"undefined"===typeof(r=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ja(c)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(c,r)})).then((function(){return o}))]:[2,o]}}))}))}));return c.open(),c.write(za(document.doctype)+""),Ga(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},e.prototype.createElementClone=function(e){if(ln(e,2),ma(e))return this.createCanvasClone(e);if(va(e))return this.createVideoClone(e);if(ya(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return ba(t)&&(ba(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Sa(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Ka(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),n=e.cloneNode(!1);return n.textContent=r,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),"SecurityError"!==a.name)throw a}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var a=e.getContext("2d"),o=n.getContext("2d");if(o)if(!this.options.allowTaint&&a)o.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var i=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(i){var s=i.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return n}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch(a){this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},e.prototype.appendChildNode=function(e,t,r){ca(t)&&("SCRIPT"===t.tagName||t.hasAttribute("data-html2canvas-ignore")||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&ca(t)&&ya(t)||e.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(e,t,r){for(var n=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(ca(a)&&Ea(a)&&"function"===typeof a.assignedNodes){var o=a.assignedNodes();o.length&&o.forEach((function(e){return n.appendChildNode(t,e,r)}))}else this.appendChildNode(t,a,r)},e.prototype.cloneNode=function(e,t){if(Aa(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&ca(e)&&(la(e)||ua(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var a=r.getComputedStyle(e),o=r.getComputedStyle(e,":before"),i=r.getComputedStyle(e,":after");this.referenceElement===e&&la(n)&&(this.clonedReferenceElement=n),ga(n)&&qa(n);var s=this.counters.parse(new An(this.context,a)),A=this.resolvePseudoContent(e,n,o,wn.BEFORE);Sa(e)&&(t=!0),va(e)||this.cloneChildNodes(e,n,t),A&&n.insertBefore(A,n.firstChild);var c=this.resolvePseudoContent(e,n,i,wn.AFTER);return c&&n.appendChild(c),this.counters.pop(s),(a&&(this.options.copyStyles||ua(e))&&!wa(e)||t)&&Ka(a,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Ba(e)||Ca(e))&&(Ba(n)||Ca(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,r,n){var a=this;if(r){var o=r.content,i=t.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==r.display){this.counters.parse(new An(this.context,r));var s=new sn(this.context,r),A=i.createElement("html2canvaspseudoelement");Ka(r,A),s.content.forEach((function(t){if(0===t.type)A.appendChild(i.createTextNode(t.value));else if(22===t.type){var r=i.createElement("img");r.src=t.value,r.style.opacity="1",A.appendChild(r)}else if(18===t.type){if("attr"===t.name){var n=t.values.filter(Me);n.length&&A.appendChild(i.createTextNode(e.getAttribute(n[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Ke),c=o[0],l=o[1];if(c&&Me(c)){var u=a.counters.getCounterValue(c.value),f=l&&Me(l)?dr.parse(a.context,l.value):3;A.appendChild(i.createTextNode(Pa(u,f,!1)))}}else if("counters"===t.name){var h=t.values.filter(Ke),d=(c=h[0],h[1]);if(l=h[2],c&&Me(c)){var p=a.counters.getCounterValues(c.value),g=l&&Me(l)?dr.parse(a.context,l.value):3,m=d&&0===d.type?d.value:"",v=p.map((function(e){return Pa(e,g,!1)})).join(m);A.appendChild(i.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":A.appendChild(i.createTextNode(en(s.quotes,a.quoteDepth++,!0)));break;case"close-quote":A.appendChild(i.createTextNode(en(s.quotes,--a.quoteDepth,!1)));break;default:A.appendChild(i.createTextNode(t.value))}})),A.className=Ya+" "+Xa;var c=n===wn.BEFORE?" "+Ya:" "+Xa;return ua(t)?t.className.baseValue+=c:t.className+=c,A}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(wn||(wn={}));var Qa,Ra=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(r),r},Ma=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},ja=function(e){return Promise.all([].slice.call(e.images,0).map(Ma))},Ha=function(e){return new Promise((function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var a=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var r=setInterval((function(){a.body.childNodes.length>0&&"complete"===a.readyState&&(clearInterval(r),t(e))}),50)}}))},Va=["all","d","content"],Ka=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);-1===Va.indexOf(n)&&t.style.setProperty(n,e.getPropertyValue(n))}return t},za=function(e){var t="";return e&&(t+=""),t},Ga=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},Wa=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},Ya="___html2canvas___pseudoelement_before",Xa="___html2canvas___pseudoelement_after",qa=function(e){Ja(e,"."+Ya+':before{\n content: "" !important;\n display: none !important;\n}\n .'+Xa+':after{\n content: "" !important;\n display: none !important;\n}')},Ja=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}},Za=function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),$a=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:io(e)||no(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return n(this,void 0,void 0,(function(){var t,r,n,o,i=this;return a(this,(function(a){switch(a.label){case 0:return t=Za.isSameOrigin(e),r=!ao(e)&&!0===this._options.useCORS&&Tn.SUPPORT_CORS_IMAGES&&!t,n=!ao(e)&&!t&&!io(e)&&"string"===typeof this._options.proxy&&Tn.SUPPORT_CORS_XHR&&!r,t||!1!==this._options.allowTaint||ao(e)||io(e)||n||r?(o=e,n?[4,this.proxy(o)]:[3,2]):[2];case 1:o=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,(oo(o)||r)&&(n.crossOrigin="anonymous"),n.src=o,!0===n.complete&&setTimeout((function(){return e(n)}),500),i._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,a.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise((function(a,o){var i=Tn.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===i)a(s.response);else{var e=new FileReader;e.addEventListener("load",(function(){return a(e.result)}),!1),e.addEventListener("error",(function(e){return o(e)}),!1),e.readAsDataURL(s.response)}else o("Failed to proxy resource "+n+" with status code "+s.status)},s.onerror=o;var A=r.indexOf("?")>-1?"&":"?";if(s.open("GET",""+r+A+"url="+encodeURIComponent(e)+"&responseType="+i),"text"!==i&&s instanceof XMLHttpRequest&&(s.responseType=i),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+n)}}s.send()}))},e}(),eo=/^data:image\/svg\+xml/i,to=/^data:image\/.*;base64,/i,ro=/^data:image\/.*/i,no=function(e){return Tn.SUPPORT_SVG_DRAWING||!so(e)},ao=function(e){return ro.test(e)},oo=function(e){return to.test(e)},io=function(e){return"blob"===e.substr(0,4)},so=function(e){return"svg"===e.substr(-3).toLowerCase()||eo.test(e)},Ao=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e}(),co=function(e,t,r){return new Ao(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},lo=function(){function e(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(t,r){var n=co(this.start,this.startControl,t),a=co(this.startControl,this.endControl,t),o=co(this.endControl,this.end,t),i=co(n,a,t),s=co(a,o,t),A=co(i,s,t);return r?new e(this.start,n,i,A):new e(A,s,o,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),uo=function(e){return 1===e.type},fo=function(e){var t=e.styles,r=e.bounds,n=$e(t.borderTopLeftRadius,r.width,r.height),a=n[0],o=n[1],i=$e(t.borderTopRightRadius,r.width,r.height),s=i[0],A=i[1],c=$e(t.borderBottomRightRadius,r.width,r.height),l=c[0],u=c[1],f=$e(t.borderBottomLeftRadius,r.width,r.height),h=f[0],d=f[1],p=[];p.push((a+s)/r.width),p.push((h+l)/r.width),p.push((o+d)/r.height),p.push((A+u)/r.height);var g=Math.max.apply(Math,p);g>1&&(a/=g,o/=g,s/=g,A/=g,l/=g,u/=g,h/=g,d/=g);var m=r.width-s,v=r.height-u,b=r.width-l,w=r.height-d,y=t.borderTopWidth,B=t.borderRightWidth,C=t.borderBottomWidth,E=t.borderLeftWidth,S=et(t.paddingTop,e.bounds.width),x=et(t.paddingRight,e.bounds.width),F=et(t.paddingBottom,e.bounds.width),O=et(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||o>0?ho(r.left+E/3,r.top+y/3,a-E/3,o-y/3,Qa.TOP_LEFT):new Ao(r.left+E/3,r.top+y/3),this.topRightBorderDoubleOuterBox=a>0||o>0?ho(r.left+m,r.top+y/3,s-B/3,A-y/3,Qa.TOP_RIGHT):new Ao(r.left+r.width-B/3,r.top+y/3),this.bottomRightBorderDoubleOuterBox=l>0||u>0?ho(r.left+b,r.top+v,l-B/3,u-C/3,Qa.BOTTOM_RIGHT):new Ao(r.left+r.width-B/3,r.top+r.height-C/3),this.bottomLeftBorderDoubleOuterBox=h>0||d>0?ho(r.left+E/3,r.top+w,h-E/3,d-C/3,Qa.BOTTOM_LEFT):new Ao(r.left+E/3,r.top+r.height-C/3),this.topLeftBorderDoubleInnerBox=a>0||o>0?ho(r.left+2*E/3,r.top+2*y/3,a-2*E/3,o-2*y/3,Qa.TOP_LEFT):new Ao(r.left+2*E/3,r.top+2*y/3),this.topRightBorderDoubleInnerBox=a>0||o>0?ho(r.left+m,r.top+2*y/3,s-2*B/3,A-2*y/3,Qa.TOP_RIGHT):new Ao(r.left+r.width-2*B/3,r.top+2*y/3),this.bottomRightBorderDoubleInnerBox=l>0||u>0?ho(r.left+b,r.top+v,l-2*B/3,u-2*C/3,Qa.BOTTOM_RIGHT):new Ao(r.left+r.width-2*B/3,r.top+r.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=h>0||d>0?ho(r.left+2*E/3,r.top+w,h-2*E/3,d-2*C/3,Qa.BOTTOM_LEFT):new Ao(r.left+2*E/3,r.top+r.height-2*C/3),this.topLeftBorderStroke=a>0||o>0?ho(r.left+E/2,r.top+y/2,a-E/2,o-y/2,Qa.TOP_LEFT):new Ao(r.left+E/2,r.top+y/2),this.topRightBorderStroke=a>0||o>0?ho(r.left+m,r.top+y/2,s-B/2,A-y/2,Qa.TOP_RIGHT):new Ao(r.left+r.width-B/2,r.top+y/2),this.bottomRightBorderStroke=l>0||u>0?ho(r.left+b,r.top+v,l-B/2,u-C/2,Qa.BOTTOM_RIGHT):new Ao(r.left+r.width-B/2,r.top+r.height-C/2),this.bottomLeftBorderStroke=h>0||d>0?ho(r.left+E/2,r.top+w,h-E/2,d-C/2,Qa.BOTTOM_LEFT):new Ao(r.left+E/2,r.top+r.height-C/2),this.topLeftBorderBox=a>0||o>0?ho(r.left,r.top,a,o,Qa.TOP_LEFT):new Ao(r.left,r.top),this.topRightBorderBox=s>0||A>0?ho(r.left+m,r.top,s,A,Qa.TOP_RIGHT):new Ao(r.left+r.width,r.top),this.bottomRightBorderBox=l>0||u>0?ho(r.left+b,r.top+v,l,u,Qa.BOTTOM_RIGHT):new Ao(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=h>0||d>0?ho(r.left,r.top+w,h,d,Qa.BOTTOM_LEFT):new Ao(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||o>0?ho(r.left+E,r.top+y,Math.max(0,a-E),Math.max(0,o-y),Qa.TOP_LEFT):new Ao(r.left+E,r.top+y),this.topRightPaddingBox=s>0||A>0?ho(r.left+Math.min(m,r.width-B),r.top+y,m>r.width+B?0:Math.max(0,s-B),Math.max(0,A-y),Qa.TOP_RIGHT):new Ao(r.left+r.width-B,r.top+y),this.bottomRightPaddingBox=l>0||u>0?ho(r.left+Math.min(b,r.width-E),r.top+Math.min(v,r.height-C),Math.max(0,l-B),Math.max(0,u-C),Qa.BOTTOM_RIGHT):new Ao(r.left+r.width-B,r.top+r.height-C),this.bottomLeftPaddingBox=h>0||d>0?ho(r.left+E,r.top+Math.min(w,r.height-C),Math.max(0,h-E),Math.max(0,d-C),Qa.BOTTOM_LEFT):new Ao(r.left+E,r.top+r.height-C),this.topLeftContentBox=a>0||o>0?ho(r.left+E+O,r.top+y+S,Math.max(0,a-(E+O)),Math.max(0,o-(y+S)),Qa.TOP_LEFT):new Ao(r.left+E+O,r.top+y+S),this.topRightContentBox=s>0||A>0?ho(r.left+Math.min(m,r.width+E+O),r.top+y+S,m>r.width+E+O?0:s-E+O,A-(y+S),Qa.TOP_RIGHT):new Ao(r.left+r.width-(B+x),r.top+y+S),this.bottomRightContentBox=l>0||u>0?ho(r.left+Math.min(b,r.width-(E+O)),r.top+Math.min(v,r.height+y+S),Math.max(0,l-(B+x)),u-(C+F),Qa.BOTTOM_RIGHT):new Ao(r.left+r.width-(B+x),r.top+r.height-(C+F)),this.bottomLeftContentBox=h>0||d>0?ho(r.left+E+O,r.top+w,Math.max(0,h-(E+O)),d-(C+F),Qa.BOTTOM_LEFT):new Ao(r.left+E+O,r.top+r.height-(C+F))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Qa||(Qa={}));var ho=function(e,t,r,n,a){var o=(Math.sqrt(2)-1)/3*4,i=r*o,s=n*o,A=e+r,c=t+n;switch(a){case Qa.TOP_LEFT:return new lo(new Ao(e,c),new Ao(e,c-s),new Ao(A-i,t),new Ao(A,t));case Qa.TOP_RIGHT:return new lo(new Ao(e,t),new Ao(e+i,t),new Ao(A,c-s),new Ao(A,c));case Qa.BOTTOM_RIGHT:return new lo(new Ao(A,t),new Ao(A,t+s),new Ao(e+i,c),new Ao(e,c));case Qa.BOTTOM_LEFT:default:return new lo(new Ao(A,c),new Ao(A-i,c),new Ao(e,t+s),new Ao(e,t))}},po=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},go=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},mo=function(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6},vo=function(e,t){this.path=e,this.target=t,this.type=1},bo=function(e){this.opacity=e,this.type=2,this.target=6},wo=function(e){return 1===e.type},yo=function(e,t){return e.length===t.length&&e.some((function(e,r){return e===t[r]}))},Bo=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Co=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new fo(this.container),this.container.styles.opacity<1&&this.effects.push(new bo(this.container.styles.opacity)),null!==this.container.styles.transform){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new mo(r,n,a))}if(0!==this.container.styles.overflowX){var o=po(this.curves),i=go(this.curves);yo(o,i)?this.effects.push(new vo(o,6)):(this.effects.push(new vo(o,2)),this.effects.push(new vo(i,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),r=this.parent,n=this.effects.slice(0);r;){var a=r.effects.filter((function(e){return!wo(e)}));if(t||0!==r.container.styles.position||!r.parent){if(n.unshift.apply(n,a),t=-1===[2,3].indexOf(r.container.styles.position),0!==r.container.styles.overflowX){var o=po(r.curves),i=go(r.curves);yo(o,i)||n.unshift(new vo(i,6))}}else n.unshift.apply(n,a);r=r.parent}return n.filter((function(t){return Yr(t.target,e)}))},e}(),Eo=function(e,t){for(var r=e instanceof Xn?e.start:1,n=e instanceof Xn&&e.reversed,a=0;ae.element.container.styles.zIndex.order?(h=t,!1):h>0})),l.negativeZIndex.splice(h,0,u)}else if(f>0){var d=0;l.positiveZIndex.some((function(e,t){return f>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0})),l.positiveZIndex.splice(d,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else o.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);e(A,u,i?u:n,c)}else o.styles.isInlineLevel()?r.inlineLevel.push(A):r.nonInlineLevel.push(A),e(A,r,n,c);Yr(o.flags,8)&&Eo(o,c)}))}(t,r,r,n),Eo(t.container,n),r},xo=function(e,t){switch(t){case 0:return Oo(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Oo(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Oo(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Oo(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Fo=function(e,t){var r=[];return uo(e)?r.push(e.subdivide(.5,!1)):r.push(e),uo(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Oo=function(e,t,r,n){var a=[];return uo(e)?a.push(e.subdivide(.5,!1)):a.push(e),uo(r)?a.push(r.subdivide(.5,!0)):a.push(r),uo(n)?a.push(n.subdivide(.5,!0).reverse()):a.push(n),uo(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},_o=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Io=function(e){var t=e.styles,r=e.bounds,n=et(t.paddingLeft,r.width),a=et(t.paddingRight,r.width),o=et(t.paddingTop,r.width),i=et(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+a),-(t.borderTopWidth+t.borderBottomWidth+o+i))},ko=function(e,t,r){var n=function(e,t){return 0===e?t.bounds:2===e?Io(t):_o(t)}(Lo(e.styles.backgroundOrigin,t),e),a=function(e,t){return 0===e?t.bounds:2===e?Io(t):_o(t)}(Lo(e.styles.backgroundClip,t),e),o=Uo(Lo(e.styles.backgroundSize,t),r,n),i=o[0],s=o[1],A=$e(Lo(e.styles.backgroundPosition,t),n.width-i,n.height-s);return[Po(Lo(e.styles.backgroundRepeat,t),A,o,n,a),Math.round(n.left+A[0]),Math.round(n.top+A[1]),i,s]},No=function(e){return Me(e)&&e.value===ft.AUTO},To=function(e){return"number"===typeof e},Uo=function(e,t,r){var n=t[0],a=t[1],o=t[2],i=e[0],s=e[1];if(!i)return[0,0];if(Ye(i)&&s&&Ye(s))return[et(i,r.width),et(s,r.height)];var A=To(o);if(Me(i)&&(i.value===ft.CONTAIN||i.value===ft.COVER))return To(o)?r.width/r.height0&&e.intrinsicHeight>0){var n=Io(e),a=go(t);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},r.prototype.renderNodeContent=function(e){return n(this,void 0,void 0,(function(){var t,n,o,s,A,c,l,u,f,h,d,p,g,m,v,b,w,y;return a(this,(function(a){switch(a.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,n=e.curves,o=t.styles,s=0,A=t.textNodes,a.label=1;case 1:return s0&&E>0&&(v=n.ctx.createPattern(p,"repeat"),n.renderRepeat(w,v,x,F))):function(e){return 2===e.type}(r)&&(b=ko(e,t,[null,null,null]),w=b[0],y=b[1],B=b[2],C=b[3],E=b[4],S=0===r.position.length?[Je]:r.position,x=et(S[0],C),F=et(S[S.length-1],E),O=function(e,t,r,n,a){var o=0,i=0;switch(e.size){case 0:0===e.shape?o=i=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-a)):1===e.shape&&(o=Math.min(Math.abs(t),Math.abs(t-n)),i=Math.min(Math.abs(r),Math.abs(r-a)));break;case 2:if(0===e.shape)o=i=Math.min(Bt(t,r),Bt(t,r-a),Bt(t-n,r),Bt(t-n,r-a));else if(1===e.shape){var s=Math.min(Math.abs(r),Math.abs(r-a))/Math.min(Math.abs(t),Math.abs(t-n)),A=Ct(n,a,t,r,!0),c=A[0],l=A[1];i=s*(o=Bt(c-t,(l-r)/s))}break;case 1:0===e.shape?o=i=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-a)):1===e.shape&&(o=Math.max(Math.abs(t),Math.abs(t-n)),i=Math.max(Math.abs(r),Math.abs(r-a)));break;case 3:if(0===e.shape)o=i=Math.max(Bt(t,r),Bt(t,r-a),Bt(t-n,r),Bt(t-n,r-a));else if(1===e.shape){s=Math.max(Math.abs(r),Math.abs(r-a))/Math.max(Math.abs(t),Math.abs(t-n));var u=Ct(n,a,t,r,!1);c=u[0],l=u[1],i=s*(o=Bt(c-t,(l-r)/s))}}return Array.isArray(e.size)&&(o=et(e.size[0],n),i=2===e.size.length?et(e.size[1],a):o),[o,i]}(r,x,F,C,E),_=O[0],I=O[1],_>0&&I>0&&(k=n.ctx.createRadialGradient(y+x,B+F,0,y+x,B+F,_),wt(r.stops,2*_).forEach((function(e){return k.addColorStop(e.stop,st(e.color))})),n.path(w),n.ctx.fillStyle=k,_!==I?(N=e.bounds.left+.5*e.bounds.width,T=e.bounds.top+.5*e.bounds.height,L=1/(U=I/_),n.ctx.save(),n.ctx.translate(N,T),n.ctx.transform(1,0,0,U,0,0),n.ctx.translate(-N,-T),n.ctx.fillRect(y,L*(B-T)+T,C,E*L),n.ctx.restore()):n.ctx.fill())),a.label=6;case 6:return t--,[2]}}))},n=this,o=0,i=e.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return o0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,i,e.curves,2)]:[3,11]:[3,13];case 4:return a.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,i,e.curves,3)];case 6:return a.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,i,e.curves)];case 8:return a.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,i,e.curves)];case 10:a.sent(),a.label=11;case 11:i++,a.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},r.prototype.renderDashedDottedBorder=function(e,t,r,o,i){return n(this,void 0,void 0,(function(){var n,s,A,c,l,u,f,h,d,p,g,m,v,b,w,y;return a(this,(function(a){return this.ctx.save(),n=function(e,t){switch(t){case 0:return Fo(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Fo(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Fo(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Fo(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(o,r),s=xo(o,r),2===i&&(this.path(s),this.ctx.clip()),uo(s[0])?(A=s[0].start.x,c=s[0].start.y):(A=s[0].x,c=s[0].y),uo(s[1])?(l=s[1].end.x,u=s[1].end.y):(l=s[1].x,u=s[1].y),f=0===r||2===r?Math.abs(A-l):Math.abs(c-u),this.ctx.beginPath(),3===i?this.formatPath(n):this.formatPath(s.slice(0,2)),h=t<3?3*t:2*t,d=t<3?2*t:t,3===i&&(h=t,d=t),p=!0,f<=2*h?p=!1:f<=2*h+d?(h*=g=f/(2*h+d),d*=g):(m=Math.floor((f+d)/(h+d)),v=(f-m*h)/(m-1),d=(b=(f-(m+1)*h)/m)<=0||Math.abs(d-v)=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),A=r.call(o,"finallyLoc");if(s&&A){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!==typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r(2)),i=f(r(80)),s=r(2164),A=f(r(2276)),c=f(r(2136)),l=f(r(2279)),u=f(r(2280));function f(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;tn?new l.default({orientation:"landscape",unit:"px",format:[r,n]}):new l.default({orientation:"portrait",unit:"px",format:[n,r]});a.addImage(e.toDataURL("image/jpeg",1),"JPEG",0,0),a.save(t+".pdf")}(a,e):function(e,t){var r="WebkitAppearance"in document.documentElement.style,n=!!window.sidebar,a="Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&navigator.appVersion.indexOf("Edge")>-1;!r&&!n||a?window.navigator.msSaveBlob(e.msToBlob(),t+".png"):(Y(e.toDataURL()),J(t+".png"),F.current.click())}(a,e),z(!1),S.current.scrollLeft=r,S.current.scrollTop=n}),(function(){z(!1),S.current.scrollLeft=r,S.current.scrollTop=n}))},expandAllNodes:function(){x.current.querySelectorAll(".oc-node.hidden, .oc-hierarchy.hidden, .isSiblingsCollapsed, .isAncestorsCollapsed").forEach((function(e){e.classList.remove("hidden","isSiblingsCollapsed","isAncestorsCollapsed")}))}}})),o.default.createElement("div",{ref:S,className:"orgchart-container "+d,onWheel:i?function(e){!function(e){var t=[],r=1;""===L?P("matrix("+e+", 0, 0, "+e+", 0, 0)"):(t=L.split(","),-1===L.indexOf("3d")?(r=Math.abs(window.parseFloat(t[3])*e))>f&&rf&&r0?-.2:.2))}:void 0,onMouseUp:a&&Q?function(){R(!1),H("default")}:void 0},o.default.createElement("div",{ref:x,className:"orgchart "+g,style:{transform:L,cursor:j},onClick:function(e){e.target.closest(".oc-node")||(E&&E(),s.selectNodeService.clearSelectedNodeInfo())},onMouseDown:a?function(e){if(e.target.closest(".oc-node"))R(!1);else{R(!0),H("move");var t=0,r=0;if(""!==L){var n=L.split(",");-1===L.indexOf("3d")?(t=parseInt(n[4]),r=parseInt(n[5])):(t=parseInt(n[12]),r=parseInt(n[13]))}if(e.targetTouches){if(1===e.targetTouches.length)I(e.targetTouches[0].pageX-t),T(e.targetTouches[0].pageY-r);else if(e.targetTouches.length>1)return}else I(e.pageX-t),T(e.pageY-r)}}:void 0,onMouseMove:a&&Q?function(e){var t=0,r=0;if(e.targetTouches){if(1===e.targetTouches.length)t=e.targetTouches[0].pageX-_,r=e.targetTouches[0].pageY-N;else if(e.targetTouches.length>1)return}else t=e.pageX-_,r=e.pageY-N;if(""===L)-1===L.indexOf("3d")?P("matrix(1,0,0,1,"+t+","+r+")"):P("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+t+", "+r+",0,1)");else{var n=L.split(",");-1===L.indexOf("3d")?(n[4]=t,n[5]=r+")"):(n[12]=t,n[13]=r),P(n.join(","))}}:void 0},o.default.createElement("ul",null,o.default.createElement(u.default,{datasource:function e(t,r){return t.relationship=r+(t.children&&t.children.length>0?1:0),t.children&&t.children.forEach((function(r){e(r,"1"+(t.children.length>1?1:0))})),t}($,"00"),NodeTemplate:b,draggable:w,collapsible:y,multipleSelect:B,changeHierarchy:re,onClickNode:C}))),o.default.createElement("a",{className:"oc-download-btn hidden",ref:F,href:W,download:q},"\xa0"),o.default.createElement("div",{className:"oc-mask ".concat(K?"":"hidden")},o.default.createElement("i",{className:"oci oci-spinner spinner"})))}));w.propTypes=b,w.defaultProps={pan:!1,zoom:!1,zoomoutLimit:.5,zoominLimit:7,containerClass:"",chartClass:"",draggable:!1,collapsible:!0,multipleSelect:!1};var y=w;t.default=y},2276:function(e,t,r){"use strict";var n=r(1530),a=r(1531),o=r(1603),i=r(2277),s=r(2278);function A(){A=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(F){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof f?t:f,o=Object.create(a.prototype),i=new E(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return x()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var s=y(i,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var A=l(e,t,r);if("normal"===A.type){if(n=r.done?"completed":"suspendedYield",A.arg===u)continue;return{value:A.arg,done:r.done}}"throw"===A.type&&(n="completed",r.method="throw",r.arg=A.arg)}}}(e,r,i),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(F){return{type:"throw",arg:F}}}e.wrap=c;var u={};function f(){}function h(){}function d(){}var p={};s(p,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==t&&r.call(m,a)&&(p=m);var v=d.prototype=f.prototype=Object.create(p);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var n;this._invoke=function(a,o){function i(){return new t((function(n,i){!function n(a,o,i,s){var A=l(e[a],e,o);if("throw"!==A.type){var c=A.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,s)}))}s(A.arg)}(a,o,n,i)}))}return n=n?n.then(i,i):i()}}function y(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function B(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),A=r.call(o,"finallyLoc");if(s&&A){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=function(){function e(t,r,n){i(this,e),this.ds=t,this.id=r,this.children=n,this.count=0}return s(e,[{key:"countNodes",value:function(e){var t=this;if(this.count++,!e||!Object.keys(e).length)return!1;e[this.children]&&e[this.children].forEach((function(e){t.countNodes(e)}))}},{key:"findNodeById",value:function(e){var t=this,r=this;return this.countNodes(this.ds),new Promise((function(n,a){if(!e)return a(new Error("Parameter id is invalid."));!function e(t,n,a){r.count&&(t[r.id]===n?(r.count=0,a(null,t)):(1===r.count&&(r.count=0,a("The node doesn't exist.",null)),r.count--,t[r.children]&&t[r.children].forEach((function(t){e(t,n,a)}))))}(t.ds,e,(function(e,t){e?a(new Error(e)):n(t)}))}))}},{key:"matchConditions",value:function(e,t){var r=!0;return Object.keys(t).some((function(n){if("string"===typeof t[n]||"number"===typeof t[n]||"boolean"===typeof t[n]){if(e[n]!==t[n])return r=!1,!0}else if(t[n]instanceof RegExp){if(!t[n].test(e[n]))return r=!1,!0}else if("object"===typeof t[n]&&(Object.keys(t[n]).some((function(a){switch(a){case">":if(!(e[n]>t[n][a]))return r=!1,!0;break;case"<":if(!(e[n]=":if(!(e[n]>=t[n][a]))return r=!1,!0;break;case"<=":if(!(e[n]<=t[n][a]))return r=!1,!0;break;case"!==":if(e[n]===t[n][a])return r=!1,!0}})),!r))return!1})),r}},{key:"findChildren",value:function(){var e=o(A().mark((function e(t){var r;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this,t){e.next=3;break}throw new Error("Parameter id is invalid.");case 3:return e.prev=3,e.next=6,this.findParent(t);case 6:return r=e.sent,e.abrupt("return",r[this.children]);case 10:throw e.prev=10,e.t0=e.catch(3),new Error("The child nodes don't exist.");case 13:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(t){return e.apply(this,arguments)}}()},{key:"findNodes",value:function(e){var t=this,r=this;return this.countNodes(this.ds),new Promise(function(){var n=o(A().mark((function n(a,o){var i,s;return A().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=function(e,t,n){r.count&&(r.matchConditions(e,t)?(i.push(e),1===r.count&&(r.count=0,n(i.length?null:"The nodes don't exist.",i.slice(0)))):1===r.count&&(r.count=0,n(i.length?null:"The nodes don't exist.",i.slice(0))),r.count--,e[r.children]&&e[r.children].forEach((function(e){s(e,t,n)})))},e&&Object.keys(e).length){n.next=3;break}return n.abrupt("return",o(new Error("Parameter conditions are invalid.")));case 3:i=[],s(t.ds,e,(function(e,t){e?o(new Error(e)):a(t)}));case 5:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"findParent",value:function(e){var t=this,r=this;return this.countNodes(this.ds),new Promise((function(n,a){if(!e)return a(new Error("Parameter id is invalid."));!function e(t,n,a){1===r.count?(r.count=0,a("The parent node doesn't exist.",null)):(r.count--,"undefined"!==typeof t[r.children]&&(t[r.children].forEach((function(e){e[r.id]===n&&(r.count=0,a(null,t))})),t[r.children].forEach((function(t){e(t,n,a)}))))}(t.ds,e,(function(e,t){e?a(new Error(e)):n(t)}))}))}},{key:"findSiblings",value:function(){var e=o(A().mark((function e(t){var r,n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this,t){e.next=3;break}throw new Error("Parameter id is invalid.");case 3:return e.prev=3,e.next=6,this.findParent(t);case 6:return n=e.sent,e.abrupt("return",n[this.children].filter((function(e){return e[r.id]!==t})));case 10:throw e.prev=10,e.t0=e.catch(3),new Error("The sibling nodes don't exist.");case 13:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(t){return e.apply(this,arguments)}}()},{key:"findAncestors",value:function(e){var t=this;return new Promise(function(){var r=o(A().mark((function r(n,a){var i,s,c,l;return A().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(c=function(){return(c=o(A().mark((function e(r){var n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r!==t.ds[t.id]){e.next=7;break}if(i.length){e.next=4;break}throw new Error("The ancestor nodes don't exist.");case 4:return e.abrupt("return",i.slice(0));case 7:return e.next=9,t.findParent(r);case 9:return n=e.sent,i.push(n),e.abrupt("return",s(n[t.id]));case 12:e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(0),new Error("The ancestor nodes don't exist.");case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)},s=function(e){return c.apply(this,arguments)},e){r.next=4;break}return r.abrupt("return",a(new Error("Parameter id is invalid.")));case 4:return i=[],r.prev=5,r.next=8,s(e);case 8:l=r.sent,n(l),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(5),a(r.t0);case 15:case"end":return r.stop()}}),r,null,[[5,12]])})));return function(e,t){return r.apply(this,arguments)}}())}},{key:"validateParams",value:function(e,t){if(!e)throw new Error("Parameter id is invalid.");if(!t||t.constructor!==Object&&t.constructor!==Array||t.constructor===Object&&!Object.keys(t).length||t.constructor===Array&&!t.length||t.constructor===Array&&t.length&&!t.every((function(e){return e&&e.constructor===Object&&Object.keys(e).length})))throw new Error("Parameter data is invalid.")}},{key:"addChildren",value:function(){var e=o(A().mark((function e(t,r){var n,o;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateParams(t,r),e.prev=1,e.next=4,this.findNodeById(t);case 4:n=e.sent,r.constructor===Object?n[this.children]?n[this.children].push(r):n[this.children]=[r]:n[this.children]?(o=n[this.children]).push.apply(o,a(r)):n[this.children]=r,e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(1),new Error("Failed to add child nodes.");case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"addSiblings",value:function(){var e=o(A().mark((function e(t,r){var n,o;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateParams(t,r),e.prev=1,e.next=4,this.findParent(t);case 4:n=e.sent,r.constructor===Object?n[this.children].push(r):(o=n[this.children]).push.apply(o,a(r)),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(1),new Error("Failed to add sibling nodes.");case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"addRoot",value:function(e){var t=this;if(!e||e.constructor!==Object||e.constructor===Object&&!Object.keys(e).length)throw new Error("Parameter data is invalid.");try{this.ds[this.children]=[Object.assign({},this.ds)],delete e[this.children],Object.keys(this.ds).filter((function(e){return e!==t.children})).forEach((function(r){e[r]||delete t.ds[r]})),Object.assign(this.ds,e)}catch(r){throw new Error("Failed to add root node.")}}},{key:"updateNode",value:function(){var e=o(A().mark((function e(t){var r;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.constructor===Object&&(t.constructor!==Object||Object.keys(t).length)&&(t.constructor!==Object||!Object.keys(t).length||t[this.id])){e.next=2;break}throw new Error("Parameter data is invalid.");case 2:return e.prev=2,e.next=5,this.findNodeById(t[this.id]);case 5:r=e.sent,Object.assign(r,t),e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(2),new Error("Failed to update node.");case 12:case"end":return e.stop()}}),e,this,[[2,9]])})));return function(t){return e.apply(this,arguments)}}()},{key:"updateNodes",value:function(){var e=o(A().mark((function e(t,r){var a,o,i,s;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this,t&&(t.constructor!==Array||t.length)&&r){e.next=3;break}throw new Error("Input parameter is invalid.");case 3:e.prev=3,o=n(t),e.prev=5,o.s();case 7:if((i=o.n()).done){e.next=14;break}return s=i.value,r[a.id]=s,e.next=12,this.updateNode(r);case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),o.e(e.t0);case 19:return e.prev=19,o.f(),e.finish(19);case 22:e.next=27;break;case 24:throw e.prev=24,e.t1=e.catch(3),e.t1;case 27:case"end":return e.stop()}}),e,this,[[3,24],[5,16,19,22]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"removeNode",value:function(){var e=o(A().mark((function e(t){var r,n,a;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this,t!==this.ds[this.id]){e.next=3;break}throw new Error("Input parameter is invalid.");case 3:return e.next=5,this.findParent(t);case 5:n=e.sent,a=n[this.children].map((function(e){return e[r.id]})).indexOf(t),n[this.children].splice(a,1),this.count=0;case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"removeNodes",value:function(){var e=o(A().mark((function e(t){var r,a,o,i,s,c,l,u,f;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this,t&&(t.constructor!==Array||t.length)&&(t.constructor!==Object||Object.keys(t).length)){e.next=3;break}throw new Error("Input parameter is invalid.");case 3:if(e.prev=3,t.constructor!==String&&t.constructor!==Number){e.next=9;break}return e.next=7,this.removeNode(t);case 7:e.next=50;break;case 9:if(t.constructor!==Array){e.next=29;break}a=n(t),e.prev=11,a.s();case 13:if((o=a.n()).done){e.next=19;break}return i=o.value,e.next=17,this.removeNode(i);case 17:e.next=13;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(11),a.e(e.t0);case 24:return e.prev=24,a.f(),e.finish(24);case 27:e.next=50;break;case 29:return e.next=31,this.findNodes(t);case 31:s=e.sent,c=s.map((function(e){return e[r.id]})),l=n(c),e.prev=34,l.s();case 36:if((u=l.n()).done){e.next=42;break}return f=u.value,e.next=40,this.removeNode(f);case 40:e.next=36;break;case 42:e.next=47;break;case 44:e.prev=44,e.t1=e.catch(34),l.e(e.t1);case 47:return e.prev=47,l.f(),e.finish(47);case 50:e.next=55;break;case 52:throw e.prev=52,e.t2=e.catch(3),new Error("Failed to remove nodes.");case 55:case"end":return e.stop()}}),e,this,[[3,52],[11,21,24,27],[34,44,47,50]])})));return function(t){return e.apply(this,arguments)}}()}]),e}();t.default=c},2277:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},2278:function(e,t){function r(e,t){for(var r=0;r>18&63,r=o>>12&63,n=o>>6&63,a=63&o,c[s++]=f.charAt(t)+f.charAt(r)+f.charAt(n)+f.charAt(a),i>16&255,r=i>>8&255,n=255&i,c[A++]=64==a?String.fromCharCode(t):64==o?String.fromCharCode(t,r):String.fromCharCode(t,r,n),s>>0,n=new Array(r),a=1>>0,a=0;a>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n=arguments[1],a=0;a>16&255,n=c>>8&255,o=255&c}if(void 0===n||void 0===i&&r===n&&n===o)if("string"==typeof r)t=r+" "+s[0];else switch(e.precision){case 2:t=b(r/255)+" "+s[0];break;case 3:default:t=w(r/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 r)t=[r,n,o,s[1]].join(" ");else switch(e.precision){case 2:t=[b(r/255),b(n/255),b(o/255),s[1]].join(" ");break;default:case 3:t=[w(r/255),w(n/255),w(o/255),s[1]].join(" ")}}else if("string"==typeof r)t=[r,n,o,i,s[2]].join(" ");else switch(e.precision){case 2:t=[b(r/255),b(n/255),b(o/255),b(i/255),s[2]].join(" ");break;case 3:default:t=[w(r/255),w(n/255),w(o/255),w(i/255),s[2]].join(" ")}return t},pe=h.__private__.getFilters=function(){return c},ge=h.__private__.putStream=function(e){var t,r=(e=e||{}).data||"",n=e.filters||pe(),a=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=r.length;!0===n&&(n=["FlateEncode"]);var A=e.additionalKeyValues||[],c=(t=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(r,n):{data:r,reverseChain:[]}).reverseChain+(Array.isArray(a)?a.join(" "):a.toString());0!==t.data.length&&(A.push({key:"Length",value:t.data.length}),!0===o&&A.push({key:"Length1",value:i})),0!=c.length&&(c.split("/").length-1==1?A.push({key:"Filter",value:c}):A.push({key:"Filter",value:"["+c+"]"})),j("<<");for(var l=0;l>"),0!==t.data.length&&(j("stream"),j(t.data),j("endstream"))},me=h.__private__.putPage=function(e){e.mediaBox;var t=e.number,r=e.data,n=e.objId,a=e.contentsObjId;ce(n,!0),ne[O].mediaBox.topRightX,ne[O].mediaBox.bottomLeftX,ne[O].mediaBox.topRightY,ne[O].mediaBox.bottomLeftY,j("<>"),j("endobj");var o=r.join("\n");return ce(a,!0),ge({data:o,filters:pe()}),j("endobj"),n},ve=h.__private__.putPages=function(){var e,t,r=[];for(e=1;e<=re;e++)ne[e].objId=Ae(),ne[e].contentsObjId=Ae();for(e=1;e<=re;e++)r.push(me({number:e,data:Q[e],objId:ne[e].objId,contentsObjId:ne[e].contentsObjId,mediaBox:ne[e].mediaBox,cropBox:ne[e].cropBox,bleedBox:ne[e].bleedBox,trimBox:ne[e].trimBox,artBox:ne[e].artBox,userUnit:ne[e].userUnit,rootDictionaryObjId:ue,resourceDictionaryObjId:fe}));ce(ue,!0),j("<>"),j("endobj"),oe.publish("postPutPages")},be=function(e,t,r){te.hasOwnProperty(t)||(te[t]={}),te[t][r]=e},we=function(e,t,r,n,a){a=a||!1;var o="F"+(Object.keys(ee).length+1).toString(10),i={id:o,postScriptName:e,fontName:t,fontStyle:r,encoding:n,isStandardFont:a,metadata:{}};return oe.publish("addFont",{font:i,instance:this}),void 0!==o&&(ee[o]=i,be(o,t,r)),o},ye=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var r,n,a,o,i,s,A,c,l;if(a=(t=t||{}).sourceEncoding||"Unicode",i=t.outputEncoding,(t.autoencode||i)&&ee[T].metadata&&ee[T].metadata[a]&&ee[T].metadata[a].encoding&&(o=ee[T].metadata[a].encoding,!i&&ee[T].encoding&&(i=ee[T].encoding),!i&&o.codePages&&(i=o.codePages[0]),"string"==typeof i&&(i=o[i]),i)){for(A=!1,s=[],r=0,n=e.length;r>8&&(A=!0);e=s.join("")}for(r=e.length;void 0===A&&0!==r;)e.charCodeAt(r-1)>>8&&(A=!0),r--;if(!A)return e;for(s=t.noBOM?[]:[254,255],r=0,n=e.length;r>8)>>8)throw new Error("Character at position "+r+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(c-(l<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Be=h.__private__.beginPage=function(e,t){var n,a="string"==typeof t&&t.toLowerCase();if("string"==typeof e&&(n=m(e.toLowerCase()))&&(e=n[0],t=n[1]),Array.isArray(e)&&(t=e[1],e=e[0]),(isNaN(e)||isNaN(t))&&(e=r[0],t=r[1]),a){switch(a.substr(0,1)){case"l":e>"),j("endobj")},Oe=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||ue;switch(se(),j("<<"),j("/Type /Catalog"),j("/Pages "+t+" 0 R"),I||(I="fullwidth"),I){case"fullwidth":j("/OpenAction [3 0 R /FitH null]");break;case"fullheight":j("/OpenAction [3 0 R /FitV null]");break;case"fullpage":j("/OpenAction [3 0 R /Fit]");break;case"original":j("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+I;"%"===r.substr(r.length-1)&&(I=parseInt(I)/100),"number"==typeof I&&j("/OpenAction [3 0 R /XYZ null null "+b(I)+"]")}switch(N||(N="continuous"),N){case"continuous":j("/PageLayout /OneColumn");break;case"single":j("/PageLayout /SinglePage");break;case"two":case"twoleft":j("/PageLayout /TwoColumnLeft");break;case"tworight":j("/PageLayout /TwoColumnRight")}k&&j("/PageMode /"+k),oe.publish("putCatalog"),j(">>"),j("endobj")},_e=h.__private__.putTrailer=function(){j("trailer"),j("<<"),j("/Size "+(Z+1)),j("/Root "+Z+" 0 R"),j("/Info "+(Z-1)+" 0 R"),j("/ID [ <"+y+"> <"+y+"> ]"),j(">>")},ke=h.__private__.putHeader=function(){j("%PDF-"+d),j("%\xba\xdf\xac\xe0")},Ne=h.__private__.putXRef=function(){var e=1,t="0000000000";for(j("xref"),j("0 "+(Z+1)),j("0000000000 65535 f "),e=1;e<=Z;e++)"function"==typeof $[e]?j((t+$[e]()).slice(-10)+" 00000 n "):void 0!==$[e]?j((t+$[e]).slice(-10)+" 00000 n "):j("0000000000 00000 n ")},Te=h.__private__.buildDocument=function(){D=!1,M=Z=0,R=[],$=[],ae=[],ue=Ae(),fe=Ae(),oe.publish("buildDocument"),ke(),ve(),function(){oe.publish("putAdditionalObjects");for(var e=0;e>"),j("endobj")));var t}(),oe.publish("putResources"),ce(fe,!0),j("<<"),function(){for(var e in j("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),j("/Font <<"),ee)ee.hasOwnProperty(e)&&(!1===u||!0===u&&f.hasOwnProperty(e))&&j("/"+e+" "+ee[e].objectNumber+" 0 R");j(">>"),j("/XObject <<"),oe.publish("putXobjectDict"),j(">>")}(),j(">>"),j("endobj"),oe.publish("postPutResources"),Fe(),Oe();var e=M;return Ne(),_e(),j("startxref"),j(""+e),j("%%EOF"),D=!0,R.join("\n")},Ue=h.__private__.getBlob=function(e){return new Blob([V(e)],{type:"application/pdf"})},Le=h.output=h.__private__.output=((L=function(e,t){t=t||{};var r=Te();switch("string"==typeof t?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return r;case"save":h.save(t.filename);break;case"arraybuffer":return V(r);case"blob":return Ue(r);case"bloburi":case"bloburl":if(void 0!==n.URL&&"function"==typeof n.URL.createObjectURL)return n.URL&&n.URL.createObjectURL(Ue(r))||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(r);case"dataurlnewwindow":var a='',o=n.open();if(null!==o&&o.document.write(a),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return n.document.location.href="data:application/pdf;filename="+t.filename+";base64,"+btoa(r);default:return null}}).foo=function(){try{return L.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var r="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!n.console)throw new Error(r);n.console.error(r,e),n.alert&&alert(r)}},(L.foo.bar=L).foo),Pe=function(e){return!0===Array.isArray(ie)&&-1":")"),te=1):(J=Ye(t),Z=Xe(r),$=(c?"<":"(")+B[q]+(c?">":")")),void 0!==V&&void 0!==V[q]&&(re=V[q]+" Tw\n"),0!==_.length&&0===q?e.push(re+_.join(" ")+" "+J.toFixed(2)+" "+Z.toFixed(2)+" Tm\n"+$):1===te||0===te&&0===q?e.push(re+J.toFixed(2)+" "+Z.toFixed(2)+" Td\n"+$):e.push(re+$);e=0===te?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var ne="BT\n/"+T+" "+z+" Tf\n"+(z*u).toFixed(2)+" TL\n"+et+"\n";return ne+=l,ne+=e,j(ne+="ET"),f[T]=!0,h},h.__private__.lstext=h.lstext=function(e,t,r,n){return console.warn("jsPDF.lstext is deprecated"),this.text(e,t,r,{charSpace:n})},h.__private__.clip=h.clip=function(e){j("evenodd"===e?"W*":"W"),j("n")},h.__private__.clip_fixed=h.clip_fixed=function(e){console.log("clip_fixed is deprecated"),h.clip(e)};var Me=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},je=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,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[r-e,n-t]],e,t)},h.__private__.lines=h.lines=function(e,t,r,n,a,o){var i,s,A,c,l,u,f,h,d,p,g,m;if("number"==typeof e&&(m=r,r=t,t=e,e=m),n=n||[1,1],o=o||!1,isNaN(t)||isNaN(r)||!Array.isArray(e)||!Array.isArray(n)||!Me(a)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(j(w(Ye(t))+" "+w(Xe(r))+" m "),i=n[0],s=n[1],c=e.length,p=t,g=r,A=0;A=i.length-1;if(E&&!S){b+=" ";continue}if(E||S){if(S)m=C;else if(e.multiline&&c<(f+2)*(w+2)+2)continue e}else{if(!e.multiline)continue e;if(c<(f+2)*(w+2)+2)continue e;m=C}for(var x="",F=g;F<=m;F++)x+=i[F]+" ";switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,v=B(x,e,A).width,e.textAlign){case"right":d=l-v-2;break;case"center":d=(l-v)/2;break;case"left":default:d=2}t+=s(d)+" "+s(p)+" Td\n",t+="("+o(x)+") Tj\n",t+=-s(d)+" 0 Td\n",p=-(A+2),v=0,g=m+1,w++,b=""}break}return a.text=t,a.fontSize=A,a},B=function(e,t,n){var a=r.internal.getFont(t.fontName,t.fontStyle),o=r.getStringUnitWidth(e,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:r.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},C={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},E=function(){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];n.objId=void 0,n.hasAnnotation&&S.call(r,n)}},S=function(e){var t={type:"reference",object:e};void 0===r.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===t.type&&e.object===t.object}))&&r.internal.getPageInfo(e.page).pageContext.annotations.push(t)},x=function(){if(void 0===r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},F=function(){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0},O=function(e){var t=!e;for(var n in e||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(n)){var o=e[n],i=[],s=o.Rect;if(o.Rect&&(o.Rect=b.call(this,o.Rect)),r.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Y.createDefaultAppearanceStream(o),"object"===a(o)&&"function"==typeof o.getKeyValueListForStream&&(i=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var A=w.call(this,o);i.push({key:"AP",value:"<>"}),r.internal.acroformPlugin.xForms.push(A)}if(o.appearanceStreamContent){var c="";for(var l in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(l)){var u=o.appearanceStreamContent[l];if(c+="/"+l+" ",c+="<<",1<=Object.keys(u).length||Array.isArray(u))for(var n in u){var f;u.hasOwnProperty(n)&&("function"==typeof(f=u[n])&&(f=f.call(this,o)),c+="/"+n+" "+f+" ",0<=r.internal.acroformPlugin.xForms.indexOf(f)||r.internal.acroformPlugin.xForms.push(f))}else"function"==typeof(f=u)&&(f=f.call(this,o)),c+="/"+n+" "+f,0<=r.internal.acroformPlugin.xForms.indexOf(f)||r.internal.acroformPlugin.xForms.push(f);c+=">>"}i.push({key:"AP",value:"<<\n"+c+">>"})}r.internal.putStream({additionalKeyValues:i}),r.internal.out("endobj")}t&&_.call(this,r.internal.acroformPlugin.xForms)},_=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=t,o=e[t];r.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===a(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[n]}},I=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(r=this,P.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(C)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");n=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new L,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",F),r.internal.events.subscribe("buildDocument",E),r.internal.events.subscribe("putCatalog",x),r.internal.events.subscribe("postPutPages",O),r.internal.acroformPlugin.isInitialized=!0}},k=e.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var t="[",r=0;r>"),r.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}})};c(j,P);var H=function(){j.call(this),this.pushButton=!0};c(H,j);var V=function(){j.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:[]}})};c(V,j);var K=function(){var e,t;P.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 r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e,t=[];for(e in t.push("<<"),n)t.push("/"+e+" ("+n[e]+")");return t.push(">>"),t.join("\n")},set:function(e){"object"===a(e)&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){"string"==typeof e&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=Y.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};c(K,P),V.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 r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},V.prototype.createOption=function(e){this.Kids.length;var t=new K;return t.Parent=this,t.optionName=e,this.Kids.push(t),X.call(this,t),t};var z=function(){j.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Y.CheckBox.createAppearanceStream()};c(z,j);var G=function(){P.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=m(this.Ff,13):this.Ff=v(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=m(this.Ff,21):this.Ff=v(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=m(this.Ff,23):this.Ff=v(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=m(this.Ff,24):this.Ff=v(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=m(this.Ff,25):this.Ff=v(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=m(this.Ff,26):this.Ff=v(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}})};c(G,P);var W=function(){G.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=m(this.Ff,14):this.Ff=v(this.Ff,14)}}),this.password=!0};c(W,G);var Y={CheckBox:{createAppearanceStream:function(){return{N:{On:Y.CheckBox.YesNormal},D:{On:Y.CheckBox.YesPushDown,Off:Y.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=f(e),n=[],a=r.internal.getFont(e.fontName,e.fontStyle).id,o=r.__private__.encodeColorString(e.color),i=y(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+s(i.fontSize)+" Tf "+o),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=f(e),n=r.internal.getFont(e.fontName,e.fontStyle).id,a=r.__private__.encodeColorString(e.color),o=[],i=Y.internal.getHeight(e),A=Y.internal.getWidth(e),c=y(e,e.caption);return o.push("1 g"),o.push("0 0 "+s(A)+" "+s(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(A-1)+" "+s(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+s(c.fontSize)+" Tf "+a),o.push(c.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=f(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Y.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Y.RadioButton.Circle.YesNormal,t.D[e]=Y.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=f(e),r=[],n=Y.internal.getWidth(e)<=Y.internal.getHeight(e)?Y.internal.getWidth(e)/4:Y.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Y.internal.Bezier_C,o=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=f(e),r=[],n=Y.internal.getWidth(e)<=Y.internal.getHeight(e)?Y.internal.getWidth(e)/4:Y.internal.getHeight(e)/4,a=(n=Number((.9*n).toFixed(5)),Number((2*n).toFixed(5))),o=Number((a*Y.internal.Bezier_C).toFixed(5)),i=Number((n*Y.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),r.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),r.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),r.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=f(e),r=[],n=Y.internal.getWidth(e)<=Y.internal.getHeight(e)?Y.internal.getWidth(e)/4:Y.internal.getHeight(e)/4,a=(n=Number((.9*n).toFixed(5)),Number((2*n).toFixed(5))),o=Number((a*Y.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+A(Y.internal.getWidth(e)/2)+" "+A(Y.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),r.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),r.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),r.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Y.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Y.RadioButton.Cross.YesNormal,t.D[e]=Y.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=f(e),r=[],n=Y.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+s(Y.internal.getWidth(e)-2)+" "+s(Y.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},YesPushDown:function(e){var t=f(e),r=Y.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+s(Y.internal.getWidth(e)-2)+" "+s(Y.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},OffPushDown:function(e){var t=f(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(Y.internal.getWidth(e))+" "+s(Y.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=r.internal.getFont(e.fontName,e.fontStyle).id,n=r.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Y.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Y.internal.getWidth(e),r=Y.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},Y.internal.getWidth=function(e){var t=0;return"object"===a(e)&&(t=l(e.Rect[2])),t},Y.internal.getHeight=function(e){var t=0;return"object"===a(e)&&(t=l(e.Rect[3])),t};var X=e.addField=function(e){if(I.call(this),!(e instanceof P))throw new Error("Invalid argument passed to jsPDF.addField.");return function(e){r.internal.acroformPlugin.printedOut&&(r.internal.acroformPlugin.printedOut=!1,r.internal.acroformPlugin.acroFormDictionaryRoot=null),r.internal.acroformPlugin.acroFormDictionaryRoot||I.call(r),r.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e)}.call(this,e),e.page=r.internal.getCurrentPageInfo().pageNumber,this};e.addButton=function(e){if(e instanceof j==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return X.call(this,e)},e.addTextField=function(e){if(e instanceof G==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return X.call(this,e)},e.addChoiceField=function(e){if(e instanceof D==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=D,t.ListBox=Q,t.ComboBox=R,t.EditBox=M,t.Button=j,t.PushButton=H,t.RadioButton=V,t.CheckBox=z,t.TextField=G,t.PasswordField=W,t.AcroForm={Appearance:Y}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),e.AcroFormChoiceField=D,e.AcroFormListBox=Q,e.AcroFormComboBox=R,e.AcroFormEditBox=M,e.AcroFormButton=j,e.AcroFormPushButton=H,e.AcroFormRadioButton=V,e.AcroFormCheckBox=z,e.AcroFormTextField=G,e.AcroFormPasswordField=W,e.AcroFormAppearance=Y,e.AcroForm={ChoiceField:D,ListBox:Q,ComboBox:R,EditBox:M,Button:j,PushButton:H,RadioButton:V,CheckBox:z,TextField:G,PasswordField:W,Appearance:Y}})((window.tmp=de).API,"undefined"!=typeof window&&window||"undefined"!=typeof n&&n),function(e){var t="addImage_",r={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]]},n=e.getImageFileTypeByImageData=function(t,n){var a,o;n=n||"UNKNOWN";var i,s,A,c="UNKNOWN";for(A in e.isArrayBufferView(t)&&(t=e.arrayBufferToBinaryString(t)),r)for(i=r[A],a=0;a>"}),"trns"in t&&t.trns.constructor==Array){for(var s="",A=0,c=t.trns.length;A>18]+n[(258048&t)>>12]+n[(4032&t)>>6]+n[63&t];return 1==i?r+=n[(252&(t=a[s]))>>2]+n[(3&t)<<4]+"==":2==i&&(r+=n[(64512&(t=a[s]<<8|a[s+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),r},e.createImageInfo=function(e,t,r,n,a,o,i,s,A,c,l,u,f){var h={alias:s,w:t,h:r,cs:n,bpc:a,i:i,data:e};return o&&(h.f=o),A&&(h.dp=A),c&&(h.trns=c),l&&(h.pal=l),u&&(h.smask=u),f&&(h.p=f),h},e.addImage=function(r,n,o,f,h,d,p,g,m){var v="";if("string"!=typeof n){var b=d;d=h,h=f,f=o,o=n,n=b}if("object"===a(r)&&!c(r)&&"imageData"in r){var w=r;r=w.imageData,n=w.format||n||"UNKNOWN",o=w.x||o||0,f=w.y||f||0,h=w.w||h,d=w.h||d,p=w.alias||p,g=w.compression||g,m=w.rotation||w.angle||m}var y=this.internal.getFilters();if(void 0===g&&-1!==y.indexOf("FlateEncode")&&(g="SLOW"),"string"==typeof r&&(r=unescape(r)),isNaN(o)||isNaN(f))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var B,C,E,S,x,F,O,_=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(!((B=u(r,_))||(c(r)&&(r=l(r,n)),(null==(O=p)||0===O.length)&&(p="string"==typeof(F=r)?e.sHashCode(F):e.isArrayBufferView(F)?e.sHashCode(e.arrayBufferToBinaryString(F)):null),B=u(p,_)))){if(this.isString(r)&&(""!==(v=this.convertStringToImageData(r))||void 0!==(v=e.loadFile(r)))&&(r=v),n=this.getImageFileTypeByImageData(r,n),!A(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if(this.supportsArrayBuffer()&&(r instanceof Uint8Array||(C=r,r=this.binaryStringToUint8Array(r))),!(B=this["process"+n.toUpperCase()](r,(x=0,(S=_)&&(x=Object.keys?Object.keys(S).length:function(e){var t=0;for(var r in e)e.hasOwnProperty(r)&&t++;return t}(S)),x),p,((E=g)&&"string"==typeof E&&(E=E.toUpperCase()),E in e.image_compression?E:e.image_compression.NONE),C)))throw new Error("An unknown error occurred whilst processing the image")}return function(e,t,r,n,a,o,i,s){var A=function(e,t,r){return e||t||(t=e=-96),e<0&&(e=-1*r.w*72/e/this.internal.scaleFactor),t<0&&(t=-1*r.h*72/t/this.internal.scaleFactor),0===e&&(e=t*r.w/r.h),0===t&&(t=e*r.h/r.w),[e,t]}.call(this,r,n,a),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(r=A[0],n=A[1],i[o]=a,s){s*=Math.PI/180;var u=Math.cos(s),f=Math.sin(s),h=function(e){return e.toFixed(4)},d=[h(u),h(f),h(-1*f),h(u),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,c(e),l(t+n),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([c(r),"0","0",c(n),"0","0","cm"].join(" "))):this.internal.write([c(r),"0","0",c(n),c(e),l(t+n),"cm"].join(" ")),this.internal.write("/I"+a.i+" Do"),this.internal.write("Q")}.call(this,o,f,h,d,B,B.i,_,m),this},e.convertStringToImageData=function(t){var r,n="";if(this.isString(t)){var a;r=null!==(a=this.extractImageFromDataUrl(t))?a.data:t;try{n=atob(r)}catch(t){throw e.validateStringAsBase64(r)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return n};var f=function(e,t){return e.subarray(t,t+5)};e.processJPEG=function(e,t,r,a,o,i){var s,A=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"!==n(e))throw new Error("getJpegSize requires a binary string jpeg file");for(var r=256*e.charCodeAt(4)+e.charCodeAt(5),a=4,o=e.length;a>",c.content=g;var f=c.objId+" 0 R";g="<>";else if(A.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,r,n,a){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:e,y:t,w:r,h:n,options:a,type:"link"})},i.textWithLink=function(e,t,r,n){var a=this.getTextWidth(e),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,r),r+=.2*o,this.link(t,r-o,a,o,n),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]},r={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}},n={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},A=e.__arabicParser__.isArabicAlfLetter=function(e){return i(e)&&0<=a.indexOf(e.charCodeAt(0))},c=(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}),l=(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}),u=e.__arabicParser__.resolveLigatures=function(e){var t=0,n=r,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=de.API,(A=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 r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(e){r=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(e){n=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 r;if("2d"!==(e=e||"2d"))return null;for(r in t)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=t[r]);return(this.pdf.context2d._canvas=this).pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},s.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}]),c=de.API,u={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,h=function(e,t,r,n,a){u={x:e,y:t,w:r,h:n,ln:a}},d=function(){return u},p={left:0,top:0,bottom:0},c.setHeaderFunction=function(e){l=e},c.getTextDimensions=function(e,t){var r=this.table_font_size||this.internal.getFontSize(),n=(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)*r)&&(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()-c.bottom&&(this.cellAddPage(),A=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),t=d().y+d().h,A&&(t=23)}if(void 0!==a[0])if(this.printingHeaderRow?this.rect(e,t,r,n,"FD"):this.rect(e,t,r,n),"right"===i){a instanceof Array||(a=[a]);for(var l=0;l=2*Math.PI&&(n=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:r,startAngle:n,endAngle:a,counterclockwise:o})},c.prototype.arcTo=function(e,t,r,n,a){throw new Error("arcTo not implemented.")},c.prototype.rect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))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+r,t),this.lineTo(e+r,t+n),this.lineTo(e,t+n),this.lineTo(e,t),this.lineTo(e+r,t),this.lineTo(e,t)},c.prototype.fillRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!u.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,r,n),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},c.prototype.strokeRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(e,t,r,n),this.stroke())},c.prototype.clearRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))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,r,n))},c.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r"},v=function(e){var t,r,n,a,o,i=String,s="length",A="charCodeAt",c="slice",l="replace";for(e[c](-2),e=e[c](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),n=[],a=0,o=(e+=t="uuuuu"[c](e[s]%5||5))[s];a>24,255&r>>16,255&r>>8,255&r);return function(e,r){for(var n=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 r="",n=0;n>8&255,r>>16&255,r>>24&255]),e.length+2),String.fromCharCode.apply(null,a)},g.processDataByFilters=function(e,t){var r=0,n=e||"",a=[];for("string"==typeof(t=t||[])&&(t=[t]),r=0;r>"),this.internal.out("endobj"),_=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+I+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==O&&void 0!==_&&this.internal.out("/Names <>")})),this},(k=de.API).events.push(["postPutResources",function(){var e=this,t=/^(\d+) 0 obj$/;if(0> endobj")}var u=e.internal.newObject();for(e.internal.write("<< /Names [ "),n=0;n>","endobj"),e.internal.newObject(),e.internal.write("<< /Dests "+u+" 0 R"),e.internal.write(">>","endobj")}}]),k.events.push(["putCatalog",function(){0> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var r=0;r>>24&255,f[u++]=s>>>16&255,f[u++]=s>>>8&255,f[u++]=255&s,N.arrayBufferToBinaryString(f)},L=function(e,t){var r=Math.LOG2E*Math.log(32768)-8<<4|8,n=r<<8;return n|=Math.min(3,(t-1&255)>>1)<<6,n|=0,[r,255&(n+=31-n%31)]},P=function(e,t){for(var r,n=1,a=0,o=e.length,i=0;0>>0},D=function(e,t,r,n){for(var a,o,i,s=e.length/t,A=new Uint8Array(e.length+s),c=K(),l=0;l>>1)&255;return o},H=function(e,t,r){var n,a,o,i,s=[],A=0,c=e.length;for(s[0]=4;A>>d&255,d+=o.bits;m[b]=y>>>d&255}if(16===o.bits){p=(x=new Uint32Array(o.decodePixels().buffer)).length,g=new Uint8Array(p*(32/o.pixelBitlength)*o.colors),m=new Uint8Array(p*(32/o.pixelBitlength));for(var y,B=1>>0&255,B&&(g[w++]=y>>>16&255,y=x[b++],g[w++]=y>>>0&255),m[C++]=y>>>16&255;h=8}n!==N.image_compression.NONE&&T()?(e=U(g,o.width*o.colors,o.colors,n),l=U(m,o.width,1,n)):(e=g,l=m,f=null)}if(3===o.colorType&&(u=this.color_spaces.INDEXED,c=o.palette,o.transparency.indexed)){var E=o.transparency.indexed,S=0;for(b=0,p=E.length;bn&&(a.push(e.slice(A,o)),s=0,A=o),s+=t[o],o++;return A!==o&&a.push(e.slice(A,o)),a},ee=function(e,t,r){r||(r={});var n,a,o,i,s,A,c=[],l=[c],u=r.textIndent||0,f=0,h=0,d=e.split(" "),p=q.apply(this,[" ",r])[0];if(A=-1===r.lineIndent?d[0].length+2:r.lineIndent||0){var g=Array(A).join(" "),m=[];d.map((function(e){1<(e=e.split(/\s*\n/)).length?m=m.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):m.push(e[0])})),d=m,A=Z.apply(this,[g,r])}for(o=0,i=d.length;o>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},Ae=de.API,ue=le=ce="",Ae.addMetadata=function(e,t){return le=t||"http://jspdf.default.namespaceuri/",ce=e,this.internal.events.subscribe("postPutResources",(function(){if(ce){var e='',t=unescape(encodeURIComponent('')),r=unescape(encodeURIComponent(e)),n=unescape(encodeURIComponent(ce)),a=unescape(encodeURIComponent("")),o=unescape(encodeURIComponent("")),i=r.length+n.length+a.length+t.length+o.length;ue=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+i+" >>"),this.internal.write("stream"),this.internal.write(t+r+n+a+o),this.internal.write("endstream"),this.internal.write("endobj")}else ue=""})),this.internal.events.subscribe("putCatalog",(function(){ue&&this.internal.write("/Metadata "+ue+" 0 R")})),this},function(e,t){var r=e.API,n=r.pdfEscape16=function(e,t){for(var r,n=t.metadata.Unicode.widths,a=["","0","00","000","0000"],o=[""],i=0,s=e.length;i<"+a+">");return n.length&&(o+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};r.events.push(["putFont",function(t){!function(t,r,n,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),A="",c=0;c>"),r("endobj");var h=n();r("<<"),r("/Type /Font"),r("/BaseFont /"+t.fontName),r("/FontDescriptor "+f+" 0 R"),r("/W "+e.API.PDFObject.convert(i)),r("/CIDToGIDMap /Identity"),r("/DW 1000"),r("/Subtype /CIDFontType2"),r("/CIDSystemInfo"),r("<<"),r("/Supplement 0"),r("/Registry (Adobe)"),r("/Ordering ("+t.encoding+")"),r(">>"),r(">>"),r("endobj"),t.objectNumber=n(),r("<<"),r("/Type /Font"),r("/Subtype /Type0"),r("/ToUnicode "+u+" 0 R"),r("/BaseFont /"+t.fontName),r("/Encoding /"+t.encoding),r("/DescendantFonts ["+h+" 0 R]"),r(">>"),r("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]),r.events.push(["putFont",function(t){!function(t,r,n,o){if(t.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var i=t.metadata.rawData,s="",A=0;A>"),r("endobj"),t.objectNumber=n(),A=0;A>"),r("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]);var o=function(e){var t,r,a=e.text||"",o=e.x,i=e.y,s=e.options||{},A=e.mutex||{},c=A.pdfEscape,l=A.activeFontKey,u=A.fonts,f=(A.activeFontSize,""),h=0,d="",p=u[r=l].encoding;if("Identity-H"!==u[r].encoding)return{text:a,x:o,y:i,options:s,mutex:A};for(d=a,r=l,"[object Array]"===Object.prototype.toString.call(a)&&(d=a[0]),h=0;hA-c.top-c.bottom&&n.pagesplit){var d=function(e,t,r,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=n.backgroundColor||"#ffffff",s.fillRect(0,0,a,o),s.drawImage(e,t,r,a,o,0,0,a,o),i},p=function(){for(var n,o,l=0,p=0,g={},m=!1;;){var v;if(p=0,g.top=0!==l?c.top:r,g.left=0!==l?c.left:t,m=(s-c.left-c.right)*i=e.width)break;this.addPage()}else b=[v=d(e,0,l,n,o),g.left,g.top,v.width/i,v.height/i,f,null,h],this.addImage.apply(this,b);if((l+=o)>=e.height)break;this.addPage()}a(u,l,null,b)}.bind(this);if("CANVAS"===e.nodeName){var g=new Image;g.onload=p,g.src=e.toDataURL("image/png"),e=g}else p()}else{var m=Math.random().toString(35),v=[e,t,r,u,l,f,m,h];this.addImage.apply(this,v),a(u,l,m,v)}}.bind(this),"undefined"!=typeof html2canvas&&!n.rstz)return html2canvas(e,n);if("undefined"==typeof rasterizeHTML)return null;var c="drawDocument";return"string"==typeof e&&(c=/^http/.test(e)?"drawURL":"drawHTML"),n.width=n.width||s*i,rasterizeHTML[c](e,void 0,n).then((function(e){n.onrendered(e.image)}),(function(e){a(null,e)}))},function(e){var t,r,n,o,i,s,A,c,l,u,f,h,d,p,g,m,v,b,w,y;t=function(){return function(t){return e.prototype=t,new e};function e(){}}(),u=function(e){var t,r,n,a,o,i,s;for(r=0,n=e.length,t=void 0,i=a=!1;!a&&r!==n;)(t=e[r]=e[r].trimLeft())&&(a=!0),r++;for(r=n-1;n&&!i&&-1!==r;)(t=e[r]=e[r].trimRight())&&(i=!0),r--;for(o=/\s+$/g,s=!0,r=0;r!==n;)"\u2028"!=e[r]&&(t=e[r].replace(/\s+/g," "),s&&(t=t.trimLeft()),t&&(s=o.test(t)),e[r]=t),r++;return e},h=function(e){var t,r,a;for(t=void 0,r=(a=e.split(",")).shift();!t&&r;)t=n[r.trim().toLowerCase()],r=a.shift();return t},d=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"),-1n.pdf.margins_doc.top&&(n.pdf.addPage(),n.y=n.pdf.margins_doc.top,n.executeWatchFunctions(i));var _=l(i),I=n.x,k=12/n.pdf.internal.scaleFactor,N=(_["margin-left"]+_["padding-left"])*k,T=(_["margin-right"]+_["padding-right"])*k,U=(_["margin-top"]+_["padding-top"])*k,L=(_["margin-bottom"]+_["padding-bottom"])*k;void 0!==_.float&&"right"===_.float?I+=n.settings.width-i.width-T:I+=N,n.pdf.addImage(F,I,n.y+U,i.width,i.height),F=void 0,"right"===_.float||"left"===_.float?(n.watchFunctions.push(function(e,t,r,a){return n.y>=t?(n.x+=e,n.settings.width+=r,!0):!!(a&&1===a.nodeType&&!B[a.nodeName]&&n.x+a.width>n.pdf.margins_doc.left+n.pdf.margins_doc.width)&&(n.x+=e,n.y=t,n.settings.width+=r,!0)}.bind(this,"left"===_.float?-i.width-N-T:0,n.y+i.height+U+L,i.width)),n.watchFunctions.push(function(e,t,r){return!(n.y]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=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;",c.innerHTML='