/*! For license information please see widget.js.LICENSE.txt */ System.register(["jimu-core/react","esri/layers/FeatureLayer","jimu-arcgis","esri/layers/GroupLayer"],(function(t,e){var n={},r={},i={},o={};return{setters:[function(t){n.default=t.default,n.useEffect=t.useEffect,n.useState=t.useState},function(t){r.default=t.default},function(t){i.JimuMapViewComponent=t.JimuMapViewComponent},function(t){o.default=t.default}],execute:function(){t((()=>{var t,e,a={32200:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(31601),i=n.n(r),o=n(76314),a=n.n(o)()(i());a.push([t.id,'.property-widget-parent{padding:.7rem;font-family:"Arial",sans-serif;height:100%;overflow:hidden}.property-widget{background:#fff;border-radius:6px;padding:.7rem;box-shadow:0 0 3px rgba(0,0,0,.08);height:100%;max-height:100%;overflow-y:auto;box-sizing:border-box}.widget-title{font-size:1rem;font-weight:bold;margin-bottom:.7rem}#countDiv{background:#f7f7f7;border-radius:4px;padding:4px 8px;margin-bottom:.3rem;font-size:.75rem;color:#333;line-height:1.2;display:inline-block}.property_form{display:flex;flex-direction:column;margin-bottom:.7rem}.property_form label{font-weight:600;margin-bottom:2px;font-size:.7rem}.property_form select{padding:4px 6px;border:1px solid #ccc;border-radius:4px;font-size:.7rem}button{width:100%;padding:6px 8px;margin-top:.3rem;border-radius:4px;font-weight:bold;font-size:.7rem;border:none;cursor:pointer}button.property_form{background-color:#0078d4;color:#fff}button[property_form]:hover{background-color:#005ea0}button[variant=outlined]{background-color:#fff;color:#0078d4;border:1px solid #0078d4}button[variant=outlined]:hover{background-color:#f0f0f0}.attribute-table{margin-top:.7rem;overflow-x:auto}.attribute-table table{table-layout:fixed;width:100%;border-collapse:collapse}.attribute-table th,.attribute-table td{max-width:150px;padding:6px;border:1px solid #ddd;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;font-size:.7rem}.attribute-table th{background-color:#f2f2f2;font-weight:bold;position:sticky;top:0;z-index:10;text-align:left;border-bottom:1px solid #ccc;box-shadow:0 2px 2px -1px rgba(0,0,0,.1)}.attribute-table tr:hover{background-color:#f9f9f9;cursor:pointer}',""]);const s=a},76314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),e.push(c))}},e}},31601:t=>{"use strict";t.exports=function(t){return t[1]}},85072:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},10540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},55056:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},97825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},41113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},774:t=>{t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBVcGxvYWRlZCB0bzogU1ZHIFJlcG8sIHd3dy5zdmdyZXBvLmNvbSwgR2VuZXJhdG9yOiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4NCjxzdmcgaGVpZ2h0PSI4MDBweCIgd2lkdGg9IjgwMHB4IiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiANCgkgdmlld0JveD0iMCAwIDQ4OC40MDkgNDg4LjQwOSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Y2lyY2xlIHN0eWxlPSJmaWxsOiM5MUM3Qzk7IiBjeD0iMTYwLjI5NiIgY3k9IjMyOC40MDkiIHI9IjEzNi44Ii8+DQo8Y2lyY2xlIHN0eWxlPSJmaWxsOiNCM0RFRTA7IiBjeD0iMTc3Ljg5NiIgY3k9IjM0Ni4wMDkiIHI9IjExOS4yIi8+DQo8cGF0aCBzdHlsZT0iZmlsbDojMTNCQ0NFOyIgZD0iTTQ3OC42OTYsMTAuMDA5YzE2LDE2LjgsMTYsNDMuMi0zNS4yLDk0LjRzLTE2OC44LDE0Mi40LTE4NC44LDEyNS42czc0LjQtMTMzLjYsMTI1LjYtMTg1LjYNCglDNDM1LjQ5Ni02Ljc5MSw0NjIuNjk2LTYuNzkxLDQ3OC42OTYsMTAuMDA5eiIvPg0KPHBhdGggc3R5bGU9ImZpbGw6IzBFOTRBQTsiIGQ9Ik00NzguNjk2LDEwLjAwOWMxNiwxNi44LDE2LDQzLjItMzUuMiw5NC40cy0xNjguOCwxNDIuNC0xODQuOCwxMjUuNnM4MC44LTEyNC44LDEzMi44LTE3Ni44DQoJQzQ0Mi42OTYsMi4wMDksNDYyLjY5Ni02Ljc5MSw0NzguNjk2LDEwLjAwOXoiLz4NCjxwYXRoIHN0eWxlPSJmaWxsOiMwOTZFODk7IiBkPSJNNDc4LjY5NiwxMC4wMDljMTYsMTYuOCwxNiw0My4yLTM1LjIsOTQuNHMtMTY4LjgsMTQyLjQtMTg0LjgsMTI1LjYiLz4NCjxwYXRoIHN0eWxlPSJmaWxsOiNGOThBQzE7IiBkPSJNMTY0LjI5Niw0ODguNDA5Yy05MS4yLDAtMTY0LTcyLjgtMTY0LTE2NGMwLTkwLjQsNzMuNi0xNjQsMTY0LTE2NHMxNjQsNzMuNiwxNjQsMTY0DQoJQzMyOC4yOTYsNDE1LjYwOSwyNTQuNjk2LDQ4OC40MDksMTY0LjI5Niw0ODguNDA5eiBNMTY0LjI5NiwyMDAuNDA5Yy02OCwwLTEyNCw1Ni0xMjQsMTI0czU2LDEyNCwxMjQsMTI0czEyNC01NiwxMjQtMTI0DQoJUzIzMi4yOTYsMjAwLjQwOSwxNjQuMjk2LDIwMC40MDl6Ii8+DQo8cGF0aCBzdHlsZT0iZmlsbDojRUYzMzg4OyIgZD0iTTE2NC4yOTYsNDg4LjQwOWMtOTAuNCwwLTE1Ni02OS42LTE1Ni0xNjBzNzIuOC0xNjMuMiwxNjMuMi0xNjMuMnMxNTYuOCw2OC44LDE1Ni44LDE1OS4yDQoJQzMyOC4yOTYsNDE1LjYwOSwyNTQuNjk2LDQ4OC40MDksMTY0LjI5Niw0ODguNDA5eiBNMTY0LjI5NiwyMDAuNDA5Yy02OCwwLTEyNCw1Ni0xMjQsMTI0czU2LDEyNCwxMjQsMTI0czEyNC01NiwxMjQtMTI0DQoJUzIzMi4yOTYsMjAwLjQwOSwxNjQuMjk2LDIwMC40MDl6Ii8+DQo8cGF0aCBzdHlsZT0iZmlsbDojQkMwODZCOyIgZD0iTTMwNi42OTYsMjQwLjQwOWMtMy4yLDIxLjYtMTEuMiw0My4yLTIwLjgsNjIuNGMxLjYsNy4yLDEuNiwxNC40LDEuNiwyMS42YzAsNjgtNTYsMTI0LTEyNCwxMjQNCgljLTIwLjgsMC00MC00LjgtNTcuNi0xNC40Yy0xMS4yLDEuNi0yMi40LDIuNC0zMy42LDIuNGMtMTAuNCwwLTIwLTAuOC0zMC40LTEuNmMzMC40LDMyLjgsNzIuOCw1My42LDEyMC44LDUzLjYNCgljOTAuNCwwLDE2NS42LTczLjYsMTY1LjYtMTY0QzMyOS44OTYsMjk0LjAwOSwzMjEuMDk2LDI2NS4yMDksMzA2LjY5NiwyNDAuNDA5eiIvPg0KPHBhdGggc3R5bGU9ImZpbGw6I0VGMzM4ODsiIGQ9Ik0yMjkuMDk2LDMwOC40MDloLTQ4Ljh2LTQ4LjhjMC04LTgtMTMuNi0xNi0xMy42cy0xNiw2LjQtMTYsMTMuNnY0OC44aC00OS42Yy04LDAtMTQuNCw4LTE0LjQsMTYNCglzNi40LDE2LDE0LjQsMTZoNDkuNnY0OS42YzAsOCw4LDE0LjQsMTYsMTQuNHMxNi02LjQsMTYtMTQuNHYtNDkuNmg0OC44YzgsMCwxNC40LTgsMTQuNC0xNlMyMzcuMDk2LDMwOC40MDksMjI5LjA5NiwzMDguNDA5eiIvPg0KPHBhdGggc3R5bGU9ImZpbGw6I0JDMDg2QjsiIGQ9Ik0yMjkuMDk2LDMwOC40MDloLTQ4LjhsMCwwbC0zMiwzMmwwLDB2NDkuNmMwLDgsOCwxNC40LDE2LDE0LjRzMTYtNi40LDE2LTE0LjR2LTQ5LjZoNDguOA0KCWM4LDAsMTQuNC04LDE0LjQtMTZTMjM3LjA5NiwzMDguNDA5LDIyOS4wOTYsMzA4LjQwOXoiLz4NCjwvc3ZnPg=="},85633:t=>{"use strict";t.exports=r},27750:t=>{"use strict";t.exports=o},62686:t=>{"use strict";t.exports=i},68972:t=>{"use strict";t.exports=n},82284:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})}},s={};function l(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={id:t,exports:{}};return a[t].call(n.exports,n,n.exports,l),n.exports}l.m=a,l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},l.d=(t,e)=>{for(var n in e)l.o(e,n)&&!l.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},l.f={},l.e=t=>Promise.all(Object.keys(l.f).reduce(((e,n)=>(l.f[n](t,e),e)),[])),l.u=t=>"vendors-node_modules_html2canvas_dist_html2canvas_esm_js"===t?"widgets/chunks/vendors-node_modules_html2canvas_dist_html2canvas_esm_js.js":"vendors-node_modules_dompurify_dist_purify_es_mjs"===t?"widgets/chunks/vendors-node_modules_dompurify_dist_purify_es_mjs.js":"vendors-node_modules_canvg_lib_index_es_js"===t?"widgets/chunks/vendors-node_modules_canvg_lib_index_es_js.js":void 0,l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="exb-client:",l.l=(n,r,i,o)=>{if(t[n])t[n].push(r);else{var a,s;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(d);var i=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((t=>t(r))),e)return e(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.p="",(()=>{var t={"widgets/FilterAsset_Road_Dept_Table/dist/runtime/widget":0};l.f.j=(e,n)=>{var r=l.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=t[e]=[n,i]));n.push(r[2]=i);var o=l.p+l.u(e),a=new Error;l.l(o,(n=>{if(l.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,i,[o,a,s]=n,u=0;if(o.some((e=>0!==t[e]))){for(r in a)l.o(a,r)&&(l.m[r]=a[r]);if(s)s(l)}for(e&&e(n);u{"use strict";l.r(u),l.d(u,{__set_webpack_public_path__:()=>Or,default:()=>Er});var t=l(68972),e=l(85633),n=l(85072),r=l.n(n),i=l(97825),o=l.n(i),a=l(77659),s=l.n(a),c=l(55056),h=l.n(c),f=l(10540),d=l.n(f),p=l(41113),g=l.n(p),m=l(32200),v={};v.styleTagTransform=g(),v.setAttributes=h(),v.insert=s().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=d();r()(m.A,v);m.A&&m.A.locals&&m.A.locals;var y=l(62686);class b{constructor(){this.mapView=null}static getInstance(){return b.instance||(b.instance=new b),b.instance}setMapView(t){this.mapView=t}getMapView(){return this.mapView}}const w=b.getInstance();var N=l(27750),x=l(774),L=l.n(x),A=l(82284),S=Uint8Array,_=Uint16Array,P=Int32Array,k=new S([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),C=new S([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),j=new S([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),I=function(t,e){for(var n=new _(31),r=0;r<31;++r)n[r]=e+=1<>1|(21845&R)<<1;q=(61680&(q=(52428&q)>>2|(13107&q)<<2))>>4|(3855&q)<<4,B[R]=((65280&q)>>8|(255&q)<<8)>>1}var z=function(t,e,n){for(var r=t.length,i=0,o=new _(e);i>l]=u}else for(a=new _(r),i=0;i>15-t[i]);return a},U=new S(288);for(R=0;R<144;++R)U[R]=8;for(R=144;R<256;++R)U[R]=9;for(R=256;R<280;++R)U[R]=7;for(R=280;R<288;++R)U[R]=8;var W=new S(32);for(R=0;R<32;++R)W[R]=5;var H=z(U,9,0),G=z(U,9,1),V=z(W,5,0),Y=z(W,5,1),J=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},Q=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(7&e)&n},X=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(7&e)},K=function(t){return(t+7)/8|0},$=function(t,e,n){return(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length),new S(t.subarray(e,n))},Z=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],tt=function(t,e,n){var r=new Error(e||Z[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,tt),!n)throw r;return r},et=function(t,e,n,r){var i=t.length,o=r?r.length:0;if(!i||e.f&&!e.l)return n||new S(0);var a=!n,s=a||2!=e.i,l=e.i;a&&(n=new S(3*i));var u=function(t){var e=n.length;if(t>e){var r=new S(Math.max(2*e,t));r.set(n),n=r}},c=e.f||0,h=e.p||0,f=e.b||0,d=e.l,p=e.d,g=e.m,m=e.n,v=8*i;do{if(!d){c=Q(t,h,1);var y=Q(t,h+1,3);if(h+=3,!y){var b=t[(E=K(h)+4)-4]|t[E-3]<<8,w=E+b;if(w>i){l&&tt(0);break}s&&u(f+b),n.set(t.subarray(E,w),f),e.b=f+=b,e.p=h=8*w,e.f=c;continue}if(1==y)d=G,p=Y,g=9,m=5;else if(2==y){var N=Q(t,h,31)+257,x=Q(t,h+10,15)+4,L=N+Q(t,h+5,31)+1;h+=14;for(var A=new S(L),_=new S(19),P=0;P>4)<16)A[P++]=E;else{var B=0,R=0;for(16==E?(R=3+Q(t,h,3),h+=2,B=A[P-1]):17==E?(R=3+Q(t,h,7),h+=3):18==E&&(R=11+Q(t,h,127),h+=7);R--;)A[P++]=B}}var q=A.subarray(0,N),U=A.subarray(N);g=J(q),m=J(U),d=z(q,g,1),p=z(U,m,1)}else tt(1);if(h>v){l&&tt(0);break}}s&&u(f+131072);for(var W=(1<>4;if((h+=15&B)>v){l&&tt(0);break}if(B||tt(2),Z<256)n[f++]=Z;else{if(256==Z){V=h,d=null;break}var et=Z-254;if(Z>264){var nt=k[P=Z-257];et=Q(t,h,(1<>4;rt||tt(3),h+=15&rt;U=O[it];if(it>3){nt=C[it];U+=X(t,h)&(1<v){l&&tt(0);break}s&&u(f+131072);var ot=f+et;if(f>8},rt=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>8,t[r+2]|=n>>16},it=function(t,e){for(var n=[],r=0;rf&&(f=o[r].s);var d=new _(f+1),p=ot(n[c-1],d,0);if(p>e){r=0;var g=0,m=p-e,v=1<e))break;g+=v-(1<>=m;g>0;){var b=o[r].s;d[b]=0&&g;--r){var w=o[r].s;d[w]==e&&(--d[w],++g)}p=e}return{t:new S(d),l:p}},ot=function(t,e,n){return-1==t.s?Math.max(ot(t.l,e,n+1),ot(t.r,e,n+1)):e[t.s]=n},at=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new _(++e),r=0,i=t[0],o=1,a=function(t){n[r++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=t[s]}return{c:n.subarray(0,r),n:e}},st=function(t,e){for(var n=0,r=0;r>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o4&&!P[j[F-1]];--F);var M,D,E,O,T=u+5<<3,B=st(i,U)+st(o,W)+a,R=st(i,f)+st(o,g)+a+14+3*F+st(L,P)+2*L[16]+3*L[17]+7*L[18];if(l>=0&&T<=B&&T<=R)return lt(e,c,t.subarray(l,l+u));if(nt(e,c,1+(R15&&(nt(e,c,J[A]>>5&127),c+=J[A]>>12)}}}else M=H,D=U,E=V,O=W;for(A=0;A255){rt(e,c,M[(Q=X>>18&31)+257]),c+=D[Q+257],Q>7&&(nt(e,c,X>>23&31),c+=k[Q]);var K=31&X;rt(e,c,E[K]),c+=O[K],K>3&&(rt(e,c,X>>5&8191),c+=C[K])}else rt(e,c,M[X]),c+=D[X]}return rt(e,c,M[256]),c+D[256]},ct=new P([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ht=new S(0),ft=function(t,e,n,r,i,o){var a=o.z||t.length,s=new S(r+a+5*(1+Math.ceil(a/7e3))+i),l=s.subarray(r,s.length-i),u=o.l,c=7&(o.r||0);if(e){c&&(l[0]=o.r>>3);for(var h=ct[e-1],f=h>>13,d=8191&h,p=(1<7e3||I>24576)&&(R>423||!u)){c=ut(t,l,0,w,N,x,A,I,M,j-M,c),I=L=A=0,M=j;for(var q=0;q<286;++q)N[q]=0;for(q=0;q<30;++q)x[q]=0}var z=2,U=0,W=d,H=O-B&32767;if(R>2&&E==b(j-H))for(var G=Math.min(f,R)-1,V=Math.min(32767,j),Y=Math.min(258,R);H<=V&&--W&&O!=B;){if(t[j+z]==t[j+z-H]){for(var J=0;Jz){if(z=J,U=H,J>G)break;var Q=Math.min(H,J-2),X=0;for(q=0;qX&&(X=tt,B=Z)}}}H+=(O=B)-(B=g[O])&32767}if(U){w[I++]=268435456|D[z]<<18|T[U];var et=31&D[z],nt=31&T[U];A+=k[et]+C[nt],++N[257+et],++x[nt],F=j+z,++L}else w[I++]=t[j],++N[t[j]]}}for(j=Math.max(j,F);j=a&&(l[c/8|0]=u,rt=a),c=lt(l,c+1,t.subarray(j,rt))}o.i=a}return $(s,0,r+K(c)+i)},dt=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=0|n.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a>16),i=(65535&i)+15*(i>>16)}t=r,e=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(e%=65521))<<8|e>>8}}},pt=function(t,e,n,r,i){if(!i&&(i={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),a=new S(o.length+t.length);a.set(o),a.set(t,o.length),t=a,i.w=o.length}return ft(t,null==e.level?6:e.level,null==e.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,n,r,i)},gt=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},mt=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;if(t[0]=120,t[1]=r<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var i=dt();i.p(e.dictionary),gt(t,2,i.d())}},vt=function(t,e){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&tt(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&tt(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),2+(t[1]>>3&4)};function yt(t,e){e||(e={});var n=dt();n.p(t);var r=pt(t,e,e.dictionary?6:2,4);return mt(r,e),gt(r,r.length-4,n.d()),r}function bt(t,e){return et(t.subarray(vt(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}var wt="undefined"!=typeof TextDecoder&&new TextDecoder;try{wt.decode(ht,{stream:!0}),1}catch(We){}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;var Nt=function(){return"undefined"!=typeof window?window:void 0!==l.g?l.g:"undefined"!=typeof self?self:this}();function xt(){Nt.console&&"function"==typeof Nt.console.log&&Nt.console.log.apply(Nt.console,arguments)}var Lt={log:xt,warn:function(t){Nt.console&&("function"==typeof Nt.console.warn?Nt.console.warn.apply(Nt.console,arguments):xt.call(null,arguments))},error:function(t){Nt.console&&("function"==typeof Nt.console.error?Nt.console.error.apply(Nt.console,arguments):xt(t))}};function At(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Ct(r.response,e,n)},r.onerror=function(){Lt.error("could not download file")},r.send()}function St(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function _t(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Pt,kt,Ct=Nt.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,A.A)(window))||window!==Nt?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=Nt.URL||Nt.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?St(i.href)?At(t,e,n):_t(i,i.target="_blank"):_t(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){_t(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(St(t))At(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){_t(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,A.A)(e)&&(Lt.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return At(t,e,n);var i="application/octet-stream"===t.type,o=/constructor/i.test(Nt.HTMLElement)||Nt.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,A.A)(FileReader))){var s=new FileReader;s.onloadend=function(){var t=s.result;t=a?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},s.readAsDataURL(t)}else{var l=Nt.URL||Nt.webkitURL,u=l.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout((function(){l.revokeObjectURL(u)}),4e4)}});function jt(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function It(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=Mt(n,r,i,o,e[0],7,-680876936),o=Mt(o,n,r,i,e[1],12,-389564586),i=Mt(i,o,n,r,e[2],17,606105819),r=Mt(r,i,o,n,e[3],22,-1044525330),n=Mt(n,r,i,o,e[4],7,-176418897),o=Mt(o,n,r,i,e[5],12,1200080426),i=Mt(i,o,n,r,e[6],17,-1473231341),r=Mt(r,i,o,n,e[7],22,-45705983),n=Mt(n,r,i,o,e[8],7,1770035416),o=Mt(o,n,r,i,e[9],12,-1958414417),i=Mt(i,o,n,r,e[10],17,-42063),r=Mt(r,i,o,n,e[11],22,-1990404162),n=Mt(n,r,i,o,e[12],7,1804603682),o=Mt(o,n,r,i,e[13],12,-40341101),i=Mt(i,o,n,r,e[14],17,-1502002290),n=Dt(n,r=Mt(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=Dt(o,n,r,i,e[6],9,-1069501632),i=Dt(i,o,n,r,e[11],14,643717713),r=Dt(r,i,o,n,e[0],20,-373897302),n=Dt(n,r,i,o,e[5],5,-701558691),o=Dt(o,n,r,i,e[10],9,38016083),i=Dt(i,o,n,r,e[15],14,-660478335),r=Dt(r,i,o,n,e[4],20,-405537848),n=Dt(n,r,i,o,e[9],5,568446438),o=Dt(o,n,r,i,e[14],9,-1019803690),i=Dt(i,o,n,r,e[3],14,-187363961),r=Dt(r,i,o,n,e[8],20,1163531501),n=Dt(n,r,i,o,e[13],5,-1444681467),o=Dt(o,n,r,i,e[2],9,-51403784),i=Dt(i,o,n,r,e[7],14,1735328473),n=Et(n,r=Dt(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=Et(o,n,r,i,e[8],11,-2022574463),i=Et(i,o,n,r,e[11],16,1839030562),r=Et(r,i,o,n,e[14],23,-35309556),n=Et(n,r,i,o,e[1],4,-1530992060),o=Et(o,n,r,i,e[4],11,1272893353),i=Et(i,o,n,r,e[7],16,-155497632),r=Et(r,i,o,n,e[10],23,-1094730640),n=Et(n,r,i,o,e[13],4,681279174),o=Et(o,n,r,i,e[0],11,-358537222),i=Et(i,o,n,r,e[3],16,-722521979),r=Et(r,i,o,n,e[6],23,76029189),n=Et(n,r,i,o,e[9],4,-640364487),o=Et(o,n,r,i,e[12],11,-421815835),i=Et(i,o,n,r,e[15],16,530742520),n=Ot(n,r=Et(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=Ot(o,n,r,i,e[7],10,1126891415),i=Ot(i,o,n,r,e[14],15,-1416354905),r=Ot(r,i,o,n,e[5],21,-57434055),n=Ot(n,r,i,o,e[12],6,1700485571),o=Ot(o,n,r,i,e[3],10,-1894986606),i=Ot(i,o,n,r,e[10],15,-1051523),r=Ot(r,i,o,n,e[1],21,-2054922799),n=Ot(n,r,i,o,e[8],6,1873313359),o=Ot(o,n,r,i,e[15],10,-30611744),i=Ot(i,o,n,r,e[6],15,-1560198380),r=Ot(r,i,o,n,e[13],21,1309151649),n=Ot(n,r,i,o,e[4],6,-145523070),o=Ot(o,n,r,i,e[11],10,-1120210379),i=Ot(i,o,n,r,e[2],15,718787259),r=Ot(r,i,o,n,e[9],21,-343485551),t[0]=Ht(n,t[0]),t[1]=Ht(r,t[1]),t[2]=Ht(i,t[2]),t[3]=Ht(o,t[3])}function Ft(t,e,n,r,i,o){return e=Ht(Ht(e,t),Ht(r,o)),Ht(e<>>32-i,n)}function Mt(t,e,n,r,i,o,a){return Ft(e&n|~e&r,t,e,i,o,a)}function Dt(t,e,n,r,i,o,a){return Ft(e&r|n&~r,t,e,i,o,a)}function Et(t,e,n,r,i,o,a){return Ft(e^n^r,t,e,i,o,a)}function Ot(t,e,n,r,i,o,a){return Ft(n^(e|~r),t,e,i,o,a)}function Tt(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)It(r,Bt(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(It(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,It(r,i),r}function Bt(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}Pt=Nt.atob.bind(Nt),kt=Nt.btoa.bind(Nt);var Rt="0123456789abcdef".split("");function qt(t){for(var e="",n=0;n<4;n++)e+=Rt[t>>8*n+4&15]+Rt[t>>8*n&15];return e}function zt(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Ut(t){return Tt(t).map(zt).join("")}var Wt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function Gt(t,e){var n,r,i,o;if(t!==n){for(var a=(i=t,o=1+(256/t.length|0),new Array(o+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+a.charCodeAt(l))%256,s[l]=s[u],s[u]=c}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(l=0;l\x80/\f\xa9\xfedSiz";var o=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=Ut(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Gt(this.encryptionKey,this.padding)}function Jt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function Qt(t){if("object"!==(0,A.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var a=e[n][o];try{a[0].apply(t,r)}catch(n){Nt.console&&Lt.error("jsPDF PubSub Error",n.message,n)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Xt(t){if(!(this instanceof Xt))return new Xt(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Kt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function $t(t,e,n,r,i){if(!(this instanceof $t))return new $t(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,Kt.call(this,r,i)}function Zt(t,e,n,r,i){if(!(this instanceof Zt))return new Zt(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Kt.call(this,r,i)}function te(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],a=[],s=1,l=16,u="S",c=null;"object"===(0,A.A)(t=t||{})&&(n=t.orientation,r=t.unit||r,i=t.format||i,o=t.compress||t.compressPdf||o,null!==(c=t.encryption||null)&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),s="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(l=t.floatPrecision),u=t.defaultPathOperation||"S"),a=t.filters||(!0===o?["FlateEncode"]:a),r=r||"mm",n=(""+(n||"P")).toLowerCase();var h=t.putOnlyUsedFonts||!1,f={},d={internal:{},__private__:{}};d.__private__.PubSub=Qt;var p="1.3",g=d.__private__.getPdfVersion=function(){return p};d.__private__.setPdfVersion=function(t){p=t};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return m};var v=d.__private__.getPageFormat=function(t){return m[t]};i=i||"a4";var y="compat",b="advanced",w=y;function N(){this.saveGraphicsState(),$(new Tt(dt,0,0,-dt,0,Ln()*dt).toString()+" cm"),this.setFontSize(this.getFontSize()/dt),u="n",w=b}function x(){this.restoreGraphicsState(),u="S",w=y}var L=d.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};d.advancedAPI=function(t){var e=w===y;return e&&N.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},d.compatAPI=function(t){var e=w===b;return e&&x.call(this),"function"!=typeof t||(t(this),e&&N.call(this)),this},d.isAdvancedAPI=function(){return w===b};var S,_=function(t){if(w!==b)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},P=d.roundToPrecision=d.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};S=d.hpf=d.__private__.hpf="number"==typeof l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,l)}:"smart"===l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,16)};var k=d.f2=d.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return P(t,2)},C=d.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return P(t,3)},j=d.scale=d.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===y?t*dt:w===b?t:void 0},I=function(t){return j(function(t){return w===y?Ln()-t:w===b?t:void 0}(t))};d.__private__.setPrecision=d.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var F,M="00000000000000000000000000000000",D=d.__private__.getFileId=function(){return M},E=d.__private__.setFileId=function(t){return M=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():M.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==c&&(Fe=new Yt(c.userPermissions,c.userPassword,c.ownerPassword,M)),M};d.setFileId=function(t){return E(t),this},d.getFileId=function(){return D()};var O=d.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,z(r),"'",z(i),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),o].join("")},T=d.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,a,0)},B=d.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=O(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return F=e},R=d.__private__.getCreationDate=function(t){var e=F;return"jsDate"===t&&(e=T(F)),e};d.setCreationDate=function(t){return B(t),this},d.getCreationDate=function(t){return R(t)};var q,z=d.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},U=d.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},W=0,H=[],G=[],V=0,Y=[],J=[],Q=!1,X=G;d.__private__.setCustomOutputDestination=function(t){Q=!0,X=t};var K=function(t){Q||(X=t)};d.__private__.resetCustomOutputDestination=function(){Q=!1,X=G};var $=d.__private__.out=function(t){return t=t.toString(),V+=t.length+1,X.push(t),X},Z=d.__private__.write=function(t){return $(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},tt=d.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},et=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return et};var nt=t.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(t){return nt=w===b?t/dt:t,this};var rt,it=d.__private__.getFontSize=d.getFontSize=function(){return w===y?nt:nt*dt},ot=t.R2L||!1;d.__private__.setR2L=d.setR2L=function(t){return ot=t,this},d.__private__.getR2L=d.getR2L=function(){return ot};var at,st=d.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))rt=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');rt=t}else rt=parseInt(t,10)};d.__private__.getZoomMode=function(){return rt};var lt,ut=d.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');at=t};d.__private__.getPageMode=function(){return at};var ct=d.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');lt=t};d.__private__.getLayoutMode=function(){return lt},d.__private__.setDisplayMode=d.setDisplayMode=function(t,e,n){return st(t),ct(e),ut(n),this};var ht={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(t){if(-1===Object.keys(ht).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ht[t]},d.__private__.getDocumentProperties=function(){return ht},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(t){for(var e in ht)ht.hasOwnProperty(e)&&t[e]&&(ht[e]=t[e]);return this},d.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(ht).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ht[t]=e};var ft,dt,pt,gt,mt,vt={},yt={},bt=[],wt={},xt={},At={},St={},_t=null,Pt=0,It=[],Ft=new Qt(d),Mt=t.hotfixes||[],Dt={},Et={},Ot=[],Tt=function t(e,n,r,i,o,a){if(!(this instanceof t))return new t(e,n,r,i,o,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[e,n,r,i,o,a]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Tt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(t)},Tt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new Tt(e,n,r,i,o,a)},Tt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)>16&255,r=l>>8&255,i=255&l}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)e=n+" "+a[0];else if(2===t.precision)e=k(n/255)+" "+a[0];else e=C(n/255)+" "+a[0];else if(void 0===o||"object"===(0,A.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");if("string"==typeof n)e=[n,r,i,a[1]].join(" ");else if(2===t.precision)e=[k(n/255),k(r/255),k(i/255),a[1]].join(" ");else e=[C(n/255),C(r/255),C(i/255),a[1]].join(" ")}else if("string"==typeof n)e=[n,r,i,o,a[2]].join(" ");else if(2===t.precision)e=[k(n),k(r),k(i),k(o),a[2]].join(" ");else e=[C(n),C(r),C(i),C(o),a[2]].join(" ");return e},re=d.__private__.getFilters=function(){return a},ie=d.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==c&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==c&&(s=Fe.encryptor(a,0));var l={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],h=(l=void 0!==te.API.processDataByFilters?te.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=h.length)if(h.split("/").length-1==1)u.push({key:"Filter",value:h});else{u.push({key:"Filter",value:"["+h+"]"});for(var f=0;f>"),0!==l.data.length&&($("stream"),$(s(l.data)),$("endstream"))},oe=d.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Ht(r,!0),$("<>"),$("endobj");var o=n.join("\n");return w===b&&(o+="\nQ"),Ht(i,!0),ie({data:o,filters:re(),objectId:i}),$("endobj"),r},ae=d.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Pt;t++)It[t].objId=Wt(),It[t].contentsObjId=Wt();for(t=1;t<=Pt;t++)n.push(oe({number:t,data:J[t],objId:It[t].objId,contentsObjId:It[t].contentsObjId,mediaBox:It[t].mediaBox,cropBox:It[t].cropBox,bleedBox:It[t].bleedBox,trimBox:It[t].trimBox,artBox:It[t].artBox,userUnit:It[t].userUnit,rootDictionaryObjId:Vt,resourceDictionaryObjId:Kt}));Ht(Vt,!0),$("<>"),$("endobj"),Ft.publish("postPutPages")},se=function(t){Ft.publish("putFont",{font:t,out:$,newObject:Ut,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Ut(),$("<<"),$("/Type /Font"),$("/BaseFont /"+Jt(t.postScriptName)),$("/Subtype /Type1"),"string"==typeof t.encoding&&$("/Encoding /"+t.encoding),$("/FirstChar 32"),$("/LastChar 255"),$(">>"),$("endobj"))},le=function(t){t.objectNumber=Ut();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[S(t.x),S(t.y),S(t.x+t.width),S(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),$("endobj")},ue=function(t,e){e||(e=21);var n=Ut(),r=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",l=0,u=0;ut[l+1].offset;)l++;var c=t[l].offset,h=(n-c)/(t[l+1].offset-c),f=t[l].color,d=t[l+1].color;s+=U(Math.round((1-h)*f[0]+h*d[0]).toString(16))+U(Math.round((1-h)*f[1]+h*d[1]).toString(16))+U(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()}(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),$("endobj"),t.objectNumber=Ut(),$("<< /ShadingType "+t.type),$("/ColorSpace /DeviceRGB");var o="/Coords ["+S(parseFloat(t.coords[0]))+" "+S(parseFloat(t.coords[1]))+" ";2===t.type?o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3])):o+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3]))+" "+S(parseFloat(t.coords[4]))+" "+S(parseFloat(t.coords[5])),$(o+="]"),t.matrix&&$("/Matrix ["+t.matrix.toString()+"]"),$("/Function "+n+" 0 R"),$("/Extend [true true]"),$(">>"),$("endobj")},ce=function(t,e){var n=Wt(),r=Ut();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(S).join(" ")+"]"}),i.push({key:"XStep",value:S(t.xStep)}),i.push({key:"YStep",value:S(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),$("endobj")},he=function(t){for(var e in t.objectNumber=Ut(),$("<<"),t)switch(e){case"opacity":$("/ca "+k(t[e]));break;case"stroke-opacity":$("/CA "+k(t[e]))}$(">>"),$("endobj")},fe=function(t){Ht(t.resourcesOid,!0),$("<<"),$("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in $("/Font <<"),vt)vt.hasOwnProperty(t)&&(!1===h||!0===h&&f.hasOwnProperty(t))&&$("/"+t+" "+vt[t].objectNumber+" 0 R");$(">>")}(),function(){if(Object.keys(wt).length>0){for(var t in $("/Shading <<"),wt)wt.hasOwnProperty(t)&&wt[t]instanceof $t&&wt[t].objectNumber>=0&&$("/"+t+" "+wt[t].objectNumber+" 0 R");Ft.publish("putShadingPatternDict"),$(">>")}}(),function(t){if(Object.keys(wt).length>0){for(var e in $("/Pattern <<"),wt)wt.hasOwnProperty(e)&&wt[e]instanceof d.TilingPattern&&wt[e].objectNumber>=0&&wt[e].objectNumber>")}}(t.objectOid),function(){if(Object.keys(At).length>0){var t;for(t in $("/ExtGState <<"),At)At.hasOwnProperty(t)&&At[t].objectNumber>=0&&$("/"+t+" "+At[t].objectNumber+" 0 R");Ft.publish("putGStateDict"),$(">>")}}(),function(){for(var t in $("/XObject <<"),Dt)Dt.hasOwnProperty(t)&&Dt[t].objectNumber>=0&&$("/"+t+" "+Dt[t].objectNumber+" 0 R");Ft.publish("putXobjectDict"),$(">>")}(),$(">>"),$("endobj")},de=function(){var t=[];(function(){for(var t in vt)vt.hasOwnProperty(t)&&(!1===h||!0===h&&f.hasOwnProperty(t))&&se(vt[t])})(),function(){var t;for(t in At)At.hasOwnProperty(t)&&he(At[t])}(),function(){for(var t in Dt)Dt.hasOwnProperty(t)&&le(Dt[t])}(),function(t){var e;for(e in wt)wt.hasOwnProperty(e)&&(wt[e]instanceof $t?ue(wt[e]):wt[e]instanceof Zt&&ce(wt[e],t))}(t),Ft.publish("putResources"),t.forEach(fe),fe({resourcesOid:Kt,objectOid:Number.MAX_SAFE_INTEGER}),Ft.publish("postPutResources")},pe=function(t){yt[t.fontName]=yt[t.fontName]||{},yt[t.fontName][t.fontStyle]=t.id},ge=function(t,e,n,r,i){var o={id:"F"+(Object.keys(vt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Ft.publish("addFont",{font:o,instance:this}),vt[o.id]=o,pe(o),o.id},me=d.__private__.pdfEscape=d.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,l,u,c;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&vt[ft].metadata&&vt[ft].metadata[i]&&vt[ft].metadata[i].encoding&&(o=vt[ft].metadata[i].encoding,!a&&vt[ft].encoding&&(a=vt[ft].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(l=!1,s=[],n=0,r=t.length;n>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(u-(c<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ve=d.__private__.beginPage=function(t){J[++Pt]=[],It[Pt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},we(Pt),K(J[q])},ye=function(t,e){var r,o,a;switch(n=e||n,"string"==typeof t&&(r=v(t.toLowerCase()),Array.isArray(r)&&(o=r[0],a=r[1])),Array.isArray(t)&&(o=t[0]*dt,a=t[1]*dt),isNaN(o)&&(o=i[0],a=i[1]),(o>14400||a>14400)&&(Lt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),a=Math.min(14400,a)),i=[o,a],n.substr(0,1)){case"l":a>o&&(i=[a,o]);break;case"p":o>a&&(i=[a,o])}ve(i),$e(Xe),$(sn),0!==dn&&$(dn+" J"),0!==pn&&$(pn+" j"),Ft.publish("addPage",{pageNumber:Pt})},be=function(t){t>0&&t<=Pt&&(J.splice(t,1),It.splice(t,1),Pt--,q>Pt&&(q=Pt),this.setPage(q))},we=function(t){t>0&&t<=Pt&&(q=t)},Ne=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return J.length-1},xe=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:vt[ft].fontName,e=void 0!==e?e:vt[ft].fontStyle,r=t.toLowerCase(),void 0!==yt[r]&&void 0!==yt[r][e]?i=yt[r][e]:void 0!==yt[t]&&void 0!==yt[t][e]?i=yt[t][e]:!1===n.disableWarning&&Lt.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=yt.times[e])&&(i=yt.times.normal),i},Le=d.__private__.putInfo=function(){var t=Ut(),e=function(t){return t};for(var n in null!==c&&(e=Fe.encryptor(t,0)),$("<<"),$("/Producer ("+me(e("jsPDF "+te.version))+")"),ht)ht.hasOwnProperty(n)&&ht[n]&&$("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+me(e(ht[n]))+")");$("/CreationDate ("+me(e(F))+")"),$(">>"),$("endobj")},Ae=d.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Vt;switch(Ut(),$("<<"),$("/Type /Catalog"),$("/Pages "+e+" 0 R"),rt||(rt="fullwidth"),rt){case"fullwidth":$("/OpenAction [3 0 R /FitH null]");break;case"fullheight":$("/OpenAction [3 0 R /FitV null]");break;case"fullpage":$("/OpenAction [3 0 R /Fit]");break;case"original":$("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+rt;"%"===n.substr(n.length-1)&&(rt=parseInt(rt)/100),"number"==typeof rt&&$("/OpenAction [3 0 R /XYZ null null "+k(rt)+"]")}switch(lt||(lt="continuous"),lt){case"continuous":$("/PageLayout /OneColumn");break;case"single":$("/PageLayout /SinglePage");break;case"two":case"twoleft":$("/PageLayout /TwoColumnLeft");break;case"tworight":$("/PageLayout /TwoColumnRight")}at&&$("/PageMode /"+at),Ft.publish("putCatalog"),$(">>"),$("endobj")},Se=d.__private__.putTrailer=function(){$("trailer"),$("<<"),$("/Size "+(W+1)),$("/Root "+W+" 0 R"),$("/Info "+(W-1)+" 0 R"),null!==c&&$("/Encrypt "+Fe.oid+" 0 R"),$("/ID [ <"+M+"> <"+M+"> ]"),$(">>")},_e=d.__private__.putHeader=function(){$("%PDF-"+p),$("%\xba\xdf\xac\xe0")},Pe=d.__private__.putXRef=function(){var t="0000000000";$("xref"),$("0 "+(W+1)),$("0000000000 65535 f ");for(var e=1;e<=W;e++)"function"==typeof H[e]?$((t+H[e]()).slice(-10)+" 00000 n "):void 0!==H[e]?$((t+H[e]).slice(-10)+" 00000 n "):$("0000000000 00000 n ")},ke=d.__private__.buildDocument=function(){W=0,V=0,G=[],H=[],Y=[],Vt=Wt(),Kt=Wt(),K(G),Ft.publish("buildDocument"),_e(),ae(),function(){Ft.publish("putAdditionalObjects");for(var t=0;t"),$("/O <"+Fe.toHexString(Fe.O)+">"),$("/P "+Fe.P),$(">>"),$("endobj")),Le(),Ae();var t=V;return Pe(),Se(),$("startxref"),$(""+t),$("%%EOF"),K(J[q]),G.join("\n")},Ce=d.__private__.getBlob=function(t){return new Blob([tt(t)],{type:"application/pdf"})},je=d.output=d.__private__.output=(zt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return ke();case"save":d.save(e.filename);break;case"arraybuffer":return tt(ke());case"blob":return Ce(ke());case"bloburi":case"bloburl":if(void 0!==Nt.URL&&"function"==typeof Nt.URL.createObjectURL)return Nt.URL&&Nt.URL.createObjectURL(Ce(ke()))||void 0;Lt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=ke();try{n=kt(r)}catch(t){n=kt(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Nt)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",o=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,o="");var a='