mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
b433b49469
Signed-off-by: snipe <[email protected]>
17 lines
494 KiB
JavaScript
17 lines
494 KiB
JavaScript
function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,t.BootstrapTable=e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}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})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function s(t,e){return u(t)||f(t,e)||p()}function l(t){return c(t)||h(t)||d()}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function u(t){if(Array.isArray(t))return t}function h(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function f(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t=t&&t.hasOwnProperty("default")?t.default:t;var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m=function(t){return t&&t.Math==Math&&t},v=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof g&&g)||Function("return this")(),y=function(t){try{return!!t()}catch(t){return!0}},b=!y(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),w={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,S=x&&!w.call({1:2},1),k=S?function(t){var e=x(this,t);return!!e&&e.enumerable}:w,C={f:k},O=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T={}.toString,_=function(t){return T.call(t).slice(8,-1)},A="".split,P=y(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==_(t)?A.call(t,""):Object(t)}:Object,E=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},I=function(t){return P(E(t))},j=function(t){return"object"==typeof t?null!==t:"function"==typeof t},R=function(t,e){if(!j(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!j(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!j(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!j(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},F={}.hasOwnProperty,N=function(t,e){return F.call(t,e)},q=v.document,B=j(q)&&j(q.createElement),D=function(t){return B?q.createElement(t):{}},L=!b&&!y(function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a}),M=Object.getOwnPropertyDescriptor,z=b?M:function(t,e){if(t=I(t),e=R(e,!0),L)try{return M(t,e)}catch(t){}if(N(t,e))return O(!C.f.call(t,e),t[e])},$={f:z},H=function(t){if(!j(t))throw TypeError(String(t)+" is not an object");return t},U=Object.defineProperty,W=b?U:function(t,e,n){if(H(t),e=R(e,!0),H(n),L)try{return U(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},V={f:W},G=b?function(t,e,n){return V.f(t,e,O(1,n))}:function(t,e,n){return t[e]=n,t},X=function(t,e){try{G(v,t,e)}catch(n){v[t]=e}return e},Y=v["__core-js_shared__"]||X("__core-js_shared__",{}),K=Y,J=Function.toString;"function"!=typeof K.inspectSource&&(K.inspectSource=function(t){return J.call(t)});var Q,Z,tt,et=K.inspectSource,nt=v.WeakMap,rt="function"==typeof nt&&/native code/.test(et(nt)),ot=e(function(t){(t.exports=function(t,e){return K[t]||(K[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),it=0,at=Math.random(),st=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++it+at).toString(36)},lt=ot("keys"),ct=function(t){return lt[t]||(lt[t]=st(t))},ut={},ht=v.WeakMap,ft=function(t){return tt(t)?Z(t):Q(t,{})},dt=function(t){return function(e){var n;if(!j(e)||(n=Z(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(rt){var pt=new ht,gt=pt.get,mt=pt.has,vt=pt.set;Q=function(t,e){return vt.call(pt,t,e),e},Z=function(t){return gt.call(pt,t)||{}},tt=function(t){return mt.call(pt,t)}}else{var yt=ct("state");ut[yt]=!0,Q=function(t,e){return G(t,yt,e),e},Z=function(t){return N(t,yt)?t[yt]:{}},tt=function(t){return N(t,yt)}}var bt,wt={set:Q,get:Z,has:tt,enforce:ft,getterFor:dt},xt=e(function(t){var e=wt.get,n=wt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;if("function"==typeof o&&("string"!=typeof e||N(o,"name")||G(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t===v)return void(s?t[e]=o:X(e,o));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=o:G(t,e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||et(this)})}),St=v,kt=function(t){return"function"==typeof t?t:void 0},Ct=function(t,e){return arguments.length<2?kt(St[t])||kt(v[t]):St[t]&&St[t][e]||v[t]&&v[t][e]},Ot=Math.ceil,Tt=Math.floor,_t=function(t){return isNaN(t=+t)?0:(t>0?Tt:Ot)(t)},At=Math.min,Pt=function(t){return t>0?At(_t(t),9007199254740991):0},Et=Math.max,It=Math.min,jt=function(t,e){var n=_t(t);return n<0?Et(n+e,0):It(n,e)},Rt=function(t){return function(e,n,r){var o,i=I(e),a=Pt(i.length),s=jt(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},Ft={includes:Rt(!0),indexOf:Rt(!1)},Nt=Ft.indexOf,qt=function(t,e){var n,r=I(t),o=0,i=[];for(n in r)!N(ut,n)&&N(r,n)&&i.push(n);for(;e.length>o;)N(r,n=e[o++])&&(~Nt(i,n)||i.push(n));return i},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dt=Bt.concat("length","prototype"),Lt=Object.getOwnPropertyNames||function(t){return qt(t,Dt)},Mt={f:Lt},zt=Object.getOwnPropertySymbols,$t={f:zt},Ht=Ct("Reflect","ownKeys")||function(t){var e=Mt.f(H(t)),n=$t.f;return n?e.concat(n(t)):e},Ut=function(t,e){for(var n=Ht(e),r=V.f,o=$.f,i=0;i<n.length;i++){var a=n[i];N(t,a)||r(t,a,o(e,a))}},Wt=/#|\.prototype\./,Vt=function(t,e){var n=Xt[Gt(t)];return n==Kt||n!=Yt&&("function"==typeof e?y(e):!!e)},Gt=Vt.normalize=function(t){return String(t).replace(Wt,".").toLowerCase()},Xt=Vt.data={},Yt=Vt.NATIVE="N",Kt=Vt.POLYFILL="P",Jt=Vt,Qt=$.f,Zt=function(t,e){var n,r,o,i,a,s=t.target,l=t.global,c=t.stat;if(n=l?v:c?v[s]||X(s,{}):(v[s]||{}).prototype)for(r in e){if(i=e[r],t.noTargetGet?(a=Qt(n,r),o=a&&a.value):o=n[r],!Jt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ut(i,o)}(t.sham||o&&o.sham)&&G(i,"sham",!0),xt(n,r,i,t)}},te=!!Object.getOwnPropertySymbols&&!y(function(){return!String(Symbol())}),ee=te&&!Symbol.sham&&"symbol"==typeof Symbol(),ne=Array.isArray||function(t){return"Array"==_(t)},re=function(t){return Object(E(t))},oe=Object.keys||function(t){return qt(t,Bt)},ie=b?Object.defineProperties:function(t,e){H(t);for(var n,r=oe(e),o=r.length,i=0;o>i;)V.f(t,n=r[i++],e[n]);return t},ae=Ct("document","documentElement"),se=ct("IE_PROTO"),le=function(){},ce=function(t){return"<script>"+t+"<\/script>"},ue=function(t){t.write(ce("")),t.close();var e=t.parentWindow.Object;return t=null,e},he=function(){var t,e=D("iframe");return e.style.display="none",ae.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(ce("document.F=Object")),t.close(),t.F},fe=function(){try{bt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}fe=bt?ue(bt):he();for(var t=Bt.length;t--;)delete fe.prototype[Bt[t]];return fe()};ut[se]=!0;var de=Object.create||function(t,e){var n;return null!==t?(le.prototype=H(t),n=new le,le.prototype=null,n[se]=t):n=fe(),void 0===e?n:ie(n,e)},pe=Mt.f,ge={}.toString,me="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ve=function(t){try{return pe(t)}catch(t){return me.slice()}},ye=function(t){return me&&"[object Window]"==ge.call(t)?ve(t):pe(I(t))},be={f:ye},we=ot("wks"),xe=v.Symbol,Se=ee?xe:st,ke=function(t){return N(we,t)||(te&&N(xe,t)?we[t]=xe[t]:we[t]=Se("Symbol."+t)),we[t]},Ce=ke,Oe={f:Ce},Te=V.f,_e=function(t){var e=St.Symbol||(St.Symbol={});N(e,t)||Te(e,t,{value:Oe.f(t)})},Ae=V.f,Pe=ke("toStringTag"),Ee=function(t,e,n){t&&!N(t=n?t:t.prototype,Pe)&&Ae(t,Pe,{configurable:!0,value:e})},Ie=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},je=function(t,e,n){if(Ie(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Re=ke("species"),Fe=function(t,e){var n;return ne(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!ne(n.prototype)?j(n)&&null===(n=n[Re])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ne=[].push,qe=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(s,l,c,u){for(var h,f,d=re(s),p=P(d),g=je(l,c,3),m=Pt(p.length),v=0,y=u||Fe,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=p[v],f=g(h,v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Ne.call(b,h)}else if(o)return!1;return i?-1:r||o?o:b}},Be={forEach:qe(0),map:qe(1),filter:qe(2),some:qe(3),every:qe(4),find:qe(5),findIndex:qe(6)},De=Be.forEach,Le=ct("hidden"),Me=ke("toPrimitive"),ze=wt.set,$e=wt.getterFor("Symbol"),He=Object.prototype,Ue=v.Symbol,We=Ct("JSON","stringify"),Ve=$.f,Ge=V.f,Xe=be.f,Ye=C.f,Ke=ot("symbols"),Je=ot("op-symbols"),Qe=ot("string-to-symbol-registry"),Ze=ot("symbol-to-string-registry"),tn=ot("wks"),en=v.QObject,nn=!en||!en.prototype||!en.prototype.findChild,rn=b&&y(function(){return 7!=de(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Ve(He,e);r&&delete He[e],Ge(t,e,n),r&&t!==He&&Ge(He,e,r)}:Ge,on=function(t,e){var n=Ke[t]=de(Ue.prototype);return ze(n,{type:"Symbol",tag:t,description:e}),b||(n.description=e),n},an=te&&"symbol"==typeof Ue.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ue},sn=function(t,e,n){t===He&&sn(Je,e,n),H(t);var r=R(e,!0);return H(n),N(Ke,r)?(n.enumerable?(N(t,Le)&&t[Le][r]&&(t[Le][r]=!1),n=de(n,{enumerable:O(0,!1)})):(N(t,Le)||Ge(t,Le,O(1,{})),t[Le][r]=!0),rn(t,r,n)):Ge(t,r,n)},ln=function(t,e){H(t);var n=I(e),r=oe(n).concat(dn(n));return De(r,function(e){b&&!un.call(n,e)||sn(t,e,n[e])}),t},cn=function(t,e){return void 0===e?de(t):ln(de(t),e)},un=function(t){var e=R(t,!0),n=Ye.call(this,e);return!(this===He&&N(Ke,e)&&!N(Je,e))&&(!(n||!N(this,e)||!N(Ke,e)||N(this,Le)&&this[Le][e])||n)},hn=function(t,e){var n=I(t),r=R(e,!0);if(n!==He||!N(Ke,r)||N(Je,r)){var o=Ve(n,r);return!o||!N(Ke,r)||N(n,Le)&&n[Le][r]||(o.enumerable=!0),o}},fn=function(t){var e=Xe(I(t)),n=[];return De(e,function(t){N(Ke,t)||N(ut,t)||n.push(t)}),n},dn=function(t){var e=t===He,n=Xe(e?Je:I(t)),r=[];return De(n,function(t){!N(Ke,t)||e&&!N(He,t)||r.push(Ke[t])}),r};if(te||(Ue=function(){if(this instanceof Ue)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=st(t),n=function(t){this===He&&n.call(Je,t),N(this,Le)&&N(this[Le],e)&&(this[Le][e]=!1),rn(this,e,O(1,t))};return b&&nn&&rn(He,e,{configurable:!0,set:n}),on(e,t)},xt(Ue.prototype,"toString",function(){return $e(this).tag}),C.f=un,V.f=sn,$.f=hn,Mt.f=be.f=fn,$t.f=dn,b&&(Ge(Ue.prototype,"description",{configurable:!0,get:function(){return $e(this).description}}),xt(He,"propertyIsEnumerable",un,{unsafe:!0}))),ee||(Oe.f=function(t){return on(ke(t),t)}),Zt({global:!0,wrap:!0,forced:!te,sham:!te},{Symbol:Ue}),De(oe(tn),function(t){_e(t)}),Zt({target:"Symbol",stat:!0,forced:!te},{for:function(t){var e=String(t);if(N(Qe,e))return Qe[e];var n=Ue(e);return Qe[e]=n,Ze[n]=e,n},keyFor:function(t){if(!an(t))throw TypeError(t+" is not a symbol");if(N(Ze,t))return Ze[t]},useSetter:function(){nn=!0},useSimple:function(){nn=!1}}),Zt({target:"Object",stat:!0,forced:!te,sham:!b},{create:cn,defineProperty:sn,defineProperties:ln,getOwnPropertyDescriptor:hn}),Zt({target:"Object",stat:!0,forced:!te},{getOwnPropertyNames:fn,getOwnPropertySymbols:dn}),Zt({target:"Object",stat:!0,forced:y(function(){$t.f(1)})},{getOwnPropertySymbols:function(t){return $t.f(re(t))}}),We){var pn=!te||y(function(){var t=Ue();return"[null]"!=We([t])||"{}"!=We({a:t})||"{}"!=We(Object(t))});Zt({target:"JSON",stat:!0,forced:pn},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(j(e)||void 0!==t)&&!an(t))return ne(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!an(e))return e}),o[1]=e,We.apply(null,o)}})}Ue.prototype[Me]||G(Ue.prototype,Me,Ue.prototype.valueOf),Ee(Ue,"Symbol"),ut[Le]=!0;var gn=V.f,mn=v.Symbol;if(b&&"function"==typeof mn&&(!("description"in mn.prototype)||void 0!==mn().description)){var vn={},yn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof yn?new mn(t):void 0===t?mn():mn(t);return""===t&&(vn[e]=!0),e};Ut(yn,mn);var bn=yn.prototype=mn.prototype;bn.constructor=yn;var wn=bn.toString,xn="Symbol(test)"==String(mn("test")),Sn=/^Symbol\((.*)\)[^)]+$/;gn(bn,"description",{configurable:!0,get:function(){var t=j(this)?this.valueOf():this,e=wn.call(t);if(N(vn,t))return"";var n=xn?e.slice(7,-1):e.replace(Sn,"$1");return""===n?void 0:n}}),Zt({global:!0,forced:!0},{Symbol:yn})}_e("iterator");var kn,Cn,On=function(t,e,n){var r=R(e);r in t?V.f(t,r,O(0,n)):t[r]=n},Tn=Ct("navigator","userAgent")||"",_n=v.process,An=_n&&_n.versions,Pn=An&&An.v8;Pn?(kn=Pn.split("."),Cn=kn[0]+kn[1]):Tn&&(!(kn=Tn.match(/Edge\/(\d+)/))||kn[1]>=74)&&(kn=Tn.match(/Chrome\/(\d+)/))&&(Cn=kn[1]);var En=Cn&&+Cn,In=ke("species"),jn=function(t){return En>=51||!y(function(){var e=[],n=e.constructor={};return n[In]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Rn=ke("isConcatSpreadable"),Fn=En>=51||!y(function(){var t=[];return t[Rn]=!1,t.concat()[0]!==t}),Nn=jn("concat"),qn=function(t){if(!j(t))return!1;var e=t[Rn];return void 0!==e?!!e:ne(t)};Zt({target:"Array",proto:!0,forced:!Fn||!Nn},{concat:function(t){var e,n,r,o,i,a=re(this),s=Fe(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],qn(i)){if(o=Pt(i.length),l+o>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&On(s,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");On(s,l++,i)}return s.length=l,s}});var Bn=Be.filter,Dn=jn("filter"),Ln=Dn&&!y(function(){[].filter.call({length:-1,0:1},function(t){throw t})});Zt({target:"Array",proto:!0,forced:!Dn||!Ln},{filter:function(t){return Bn(this,t,arguments.length>1?arguments[1]:void 0)}});var Mn=ke("unscopables"),zn=Array.prototype;void 0==zn[Mn]&&V.f(zn,Mn,{configurable:!0,value:de(null)});var $n=function(t){zn[Mn][t]=!0},Hn=Be.find,Un=!0;"find"in[]&&Array(1).find(function(){Un=!1}),Zt({target:"Array",proto:!0,forced:Un},{find:function(t){return Hn(this,t,arguments.length>1?arguments[1]:void 0)}}),$n("find");var Wn=Be.findIndex,Vn=!0;"findIndex"in[]&&Array(1).findIndex(function(){Vn=!1}),Zt({target:"Array",proto:!0,forced:Vn},{findIndex:function(t){return Wn(this,t,arguments.length>1?arguments[1]:void 0)}}),$n("findIndex");var Gn=Ft.includes;Zt({target:"Array",proto:!0},{includes:function(t){return Gn(this,t,arguments.length>1?arguments[1]:void 0)}}),$n("includes");var Xn=function(t,e){var n=[][t];return!n||!y(function(){n.call(null,e||function(){throw 1},1)})},Yn=Ft.indexOf,Kn=[].indexOf,Jn=!!Kn&&1/[1].indexOf(1,-0)<0,Qn=Xn("indexOf");Zt({target:"Array",proto:!0,forced:Jn||Qn},{indexOf:function(t){return Jn?Kn.apply(this,arguments)||0:Yn(this,t,arguments.length>1?arguments[1]:void 0)}});var Zn,tr,er,nr=!y(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),rr=ct("IE_PROTO"),or=Object.prototype,ir=nr?Object.getPrototypeOf:function(t){return t=re(t),N(t,rr)?t[rr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?or:null},ar=ke("iterator"),sr=!1,lr=function(){return this};[].keys&&(er=[].keys(),"next"in er?(tr=ir(ir(er)))!==Object.prototype&&(Zn=tr):sr=!0),void 0==Zn&&(Zn={}),N(Zn,ar)||G(Zn,ar,lr);var cr={IteratorPrototype:Zn,BUGGY_SAFARI_ITERATORS:sr},ur=cr.IteratorPrototype,hr=function(t,e,n){var r=e+" Iterator";return t.prototype=de(ur,{next:O(1,n)}),Ee(t,r,!1),t},fr=function(t){if(!j(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},dr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return H(n),fr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),pr=cr.IteratorPrototype,gr=cr.BUGGY_SAFARI_ITERATORS,mr=ke("iterator"),vr=function(){return this},yr=function(t,e,n,r,o,i,a){hr(n,e,r);var s,l,c,u=function(t){if(t===o&&g)return g;if(!gr&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,d=t.prototype,p=d[mr]||d["@@iterator"]||o&&d[o],g=!gr&&p||u(o),m="Array"==e?d.entries||p:p;if(m&&(s=ir(m.call(new t)),pr!==Object.prototype&&s.next&&(ir(s)!==pr&&(dr?dr(s,pr):"function"!=typeof s[mr]&&G(s,mr,vr)),Ee(s,h,!0))),"values"==o&&p&&"values"!==p.name&&(f=!0,g=function(){return p.call(this)}),d[mr]!==g&&G(d,mr,g),o)if(l={values:u("values"),keys:i?g:u("keys"),entries:u("entries")},a)for(c in l)!gr&&!f&&c in d||xt(d,c,l[c]);else Zt({target:e,proto:!0,forced:gr||f},l);return l},br=wt.set,wr=wt.getterFor("Array Iterator"),xr=yr(Array,"Array",function(t,e){br(this,{type:"Array Iterator",target:I(t),index:0,kind:e})},function(){var t=wr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");$n("keys"),$n("values"),$n("entries");var Sr=[].join,kr=P!=Object,Cr=Xn("join",",");Zt({target:"Array",proto:!0,forced:kr||Cr},{join:function(t){return Sr.call(I(this),void 0===t?",":t)}});var Or=Be.map,Tr=jn("map"),_r=Tr&&!y(function(){[].map.call({length:-1,0:1},function(t){throw t})});Zt({target:"Array",proto:!0,forced:!Tr||!_r},{map:function(t){return Or(this,t,arguments.length>1?arguments[1]:void 0)}});var Ar=[].reverse,Pr=[1,2];Zt({target:"Array",proto:!0,forced:String(Pr)===String(Pr.reverse())},{reverse:function(){return ne(this)&&(this.length=this.length),Ar.call(this)}});var Er=ke("species"),Ir=[].slice,jr=Math.max;Zt({target:"Array",proto:!0,forced:!jn("slice")},{slice:function(t,e){var n,r,o,i=I(this),a=Pt(i.length),s=jt(t,a),l=jt(void 0===e?a:e,a);if(ne(i)&&(n=i.constructor,"function"!=typeof n||n!==Array&&!ne(n.prototype)?j(n)&&null===(n=n[Er])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ir.call(i,s,l);for(r=new(void 0===n?Array:n)(jr(l-s,0)),o=0;s<l;s++,o++)s in i&&On(r,o,i[s]);return r.length=o,r}});var Rr=[],Fr=Rr.sort,Nr=y(function(){Rr.sort(void 0)}),qr=y(function(){Rr.sort(null)}),Br=Xn("sort");Zt({target:"Array",proto:!0,forced:Nr||!qr||Br},{sort:function(t){return void 0===t?Fr.call(re(this)):Fr.call(re(this),Ie(t))}});var Dr=Math.max,Lr=Math.min;Zt({target:"Array",proto:!0,forced:!jn("splice")},{splice:function(t,e){var n,r,o,i,a,s,l=re(this),c=Pt(l.length),u=jt(t,c),h=arguments.length;if(0===h?n=r=0:1===h?(n=0,r=c-u):(n=h-2,r=Lr(Dr(_t(e),0),c-u)),c+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Fe(l,r),i=0;i<r;i++)(a=u+i)in l&&On(o,i,l[a]);if(o.length=r,n<r){for(i=u;i<c-r;i++)a=i+r,s=i+n,a in l?l[s]=l[a]:delete l[s];for(i=c;i>c-r+n;i--)delete l[i-1]}else if(n>r)for(i=c-r;i>u;i--)a=i+r-1,s=i+n-1,a in l?l[s]=l[a]:delete l[s];for(i=0;i<n;i++)l[i+u]=arguments[i+2];return l.length=c-r+n,o}});var Mr=function(t,e,n){var r,o;return dr&&"function"==typeof(r=e.constructor)&&r!==n&&j(o=r.prototype)&&o!==n.prototype&&dr(t,o),t},zr="\t\n\v\f\r \u2028\u2029\ufeff",$r="["+zr+"]",Hr=RegExp("^"+$r+$r+"*"),Ur=RegExp($r+$r+"*$"),Wr=function(t){return function(e){var n=String(E(e));return 1&t&&(n=n.replace(Hr,"")),2&t&&(n=n.replace(Ur,"")),n}},Vr={start:Wr(1),end:Wr(2),trim:Wr(3)},Gr=Mt.f,Xr=$.f,Yr=V.f,Kr=Vr.trim,Jr=v.Number,Qr=Jr.prototype,Zr="Number"==_(de(Qr)),to=function(t){var e,n,r,o,i,a,s,l,c=R(t,!1);if("string"==typeof c&&c.length>2)if(c=Kr(c),43===(e=c.charCodeAt(0))||45===e){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(i=c.slice(2),a=i.length,s=0;s<a;s++)if((l=i.charCodeAt(s))<48||l>o)return NaN;return parseInt(i,r)}return+c};if(Jt("Number",!Jr(" 0o1")||!Jr("0b1")||Jr("+0x1"))){for(var eo,no=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof no&&(Zr?y(function(){Qr.valueOf.call(n)}):"Number"!=_(n))?Mr(new Jr(to(e)),n,no):to(e)},ro=b?Gr(Jr):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),oo=0;ro.length>oo;oo++)N(Jr,eo=ro[oo])&&!N(no,eo)&&Yr(no,eo,Xr(Jr,eo));no.prototype=Qr,Qr.constructor=no,xt(v,"Number",no)}var io=Object.assign,ao=Object.defineProperty,so=!io||y(function(){if(b&&1!==io({b:1},io(ao({},"a",{enumerable:!0,get:function(){ao(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=io({},t)[n]||oe(io({},e)).join("")!=r})?function(t,e){for(var n=re(t),r=arguments.length,o=1,i=$t.f,a=C.f;r>o;)for(var s,l=P(arguments[o++]),c=i?oe(l).concat(i(l)):oe(l),u=c.length,h=0;u>h;)s=c[h++],b&&!a.call(l,s)||(n[s]=l[s]);return n}:io;Zt({target:"Object",stat:!0,forced:Object.assign!==so},{assign:so});var lo=C.f,co=function(t){return function(e){for(var n,r=I(e),o=oe(r),i=o.length,a=0,s=[];i>a;)n=o[a++],b&&!lo.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},uo={entries:co(!0),values:co(!1)},ho=uo.entries;Zt({target:"Object",stat:!0},{entries:function(t){return ho(t)}});var fo=ke("toStringTag"),po={};po[fo]="z";var go="[object z]"===String(po),mo=ke("toStringTag"),vo="Arguments"==_(function(){return arguments}()),yo=function(t,e){try{return t[e]}catch(t){}},bo=go?_:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=yo(e=Object(t),mo))?n:vo?_(e):"Object"==(r=_(e))&&"function"==typeof e.callee?"Arguments":r},wo=go?{}.toString:function(){return"[object "+bo(this)+"]"};go||xt(Object.prototype,"toString",wo,{unsafe:!0});var xo=Vr.trim,So=v.parseFloat,ko=1/So(zr+"-0")!=-1/0,Co=ko?function(t){var e=xo(String(t)),n=So(e);return 0===n&&"-"==e.charAt(0)?-0:n}:So;Zt({global:!0,forced:parseFloat!=Co},{parseFloat:Co});var Oo=Vr.trim,To=v.parseInt,_o=/^[+-]?0[Xx]/,Ao=8!==To(zr+"08")||22!==To(zr+"0x16"),Po=Ao?function(t,e){var n=Oo(String(t));return To(n,e>>>0||(_o.test(n)?16:10))}:To;Zt({global:!0,forced:parseInt!=Po},{parseInt:Po});var Eo=function(){var t=H(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Io=y(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),jo=y(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),Ro={UNSUPPORTED_Y:Io,BROKEN_CARET:jo},Fo=RegExp.prototype.exec,No=String.prototype.replace,qo=Fo,Bo=function(){var t=/a/,e=/b*/g;return Fo.call(t,"a"),Fo.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Do=Ro.UNSUPPORTED_Y||Ro.BROKEN_CARET,Lo=void 0!==/()??/.exec("")[1];(Bo||Lo||Do)&&(qo=function(t){var e,n,r,o,i=this,a=Do&&i.sticky,s=Eo.call(i),l=i.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),Lo&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Bo&&(e=i.lastIndex),r=Fo.call(a?n:i,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Bo&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Lo&&r&&r.length>1&&No.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var Mo=qo;Zt({target:"RegExp",proto:!0,forced:/./.exec!==Mo},{exec:Mo});var zo=RegExp.prototype,$o=zo.toString,Ho=y(function(){return"/a/b"!=$o.call({source:"a",flags:"b"})}),Uo="toString"!=$o.name;(Ho||Uo)&&xt(RegExp.prototype,"toString",function(){var t=H(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in zo)?Eo.call(t):n)},{unsafe:!0});var Wo=ke("match"),Vo=function(t){var e;return j(t)&&(void 0!==(e=t[Wo])?!!e:"RegExp"==_(t))},Go=function(t){if(Vo(t))throw TypeError("The method doesn't accept regular expressions");return t},Xo=ke("match");Zt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Xo]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(E(this)).indexOf(Go(t),arguments.length>1?arguments[1]:void 0)}});var Yo=function(t){return function(e,n){var r,o,i=String(E(e)),a=_t(n),s=i.length;return a<0||a>=s?t?"":void 0:(r=i.charCodeAt(a),r<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536)}},Ko={codeAt:Yo(!1),charAt:Yo(!0)},Jo=Ko.charAt,Qo=wt.set,Zo=wt.getterFor("String Iterator");yr(String,"String",function(t){Qo(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Zo(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Jo(n,r),e.index+=t.length,{value:t,done:!1})});var ti=ke("species"),ei=!y(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),ni=function(){return"$0"==="a".replace(/./,"$0")}(),ri=!y(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),oi=function(t,e,n,r){var o=ke(t),i=!y(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)}),a=i&&!y(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[ti]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e});if(!i||!a||"replace"===t&&(!ei||!ni)||"split"===t&&!ri){var s=/./[o],l=n(o,""[t],function(t,e,n,r,o){return e.exec===Mo?i&&!o?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:ni}),c=l[0],u=l[1];xt(String.prototype,t,c),xt(RegExp.prototype,o,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&G(RegExp.prototype[o],"sham",!0)},ii=Ko.charAt,ai=function(t,e,n){return e+(n?ii(t,e).length:1)},si=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==_(t))throw TypeError("RegExp#exec called on incompatible receiver");return Mo.call(t,e)},li=Math.max,ci=Math.min,ui=Math.floor,hi=/\$([$&'`]|\d\d?|<[^>]*>)/g,fi=/\$([$&'`]|\d\d?)/g,di=function(t){return void 0===t?t:String(t)};oi("replace",2,function(t,e,n,r){function o(t,n,r,o,i,a){var s=r+t.length,l=o.length,c=fi;return void 0!==i&&(i=re(i),c=hi),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=i[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>l){var h=ui(u/10);return 0===h?e:h<=l?void 0===o[h-1]?a.charAt(1):o[h-1]+a.charAt(1):e}c=o[u-1]}return void 0===c?"":c})}return[function(n,r){var o=E(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,i){if(r.REPLACE_KEEPS_$0||"string"==typeof i&&-1===i.indexOf("$0")){var a=n(e,t,this,i);if(a.done)return a.value}var s=H(t),l=String(this),c="function"==typeof i;c||(i=String(i));var u=s.global;if(u){var h=s.unicode;s.lastIndex=0}for(var f=[];;){var d=si(s,l);if(null===d)break;if(f.push(d),!u)break;""===String(d[0])&&(s.lastIndex=ai(l,Pt(s.lastIndex),h))}for(var p="",g=0,m=0;m<f.length;m++){d=f[m];for(var v=String(d[0]),y=li(ci(_t(d.index),l.length),0),b=[],w=1;w<d.length;w++)b.push(di(d[w]));var x=d.groups;if(c){var S=[v].concat(b,y,l);void 0!==x&&S.push(x);var k=String(i.apply(void 0,S))}else k=o(v,l,y,b,x,i);y>=g&&(p+=l.slice(g,y)+k,g=y+v.length)}return p+l.slice(g)}]});var pi=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};oi("search",1,function(t,e,n){return[function(e){var n=E(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=H(t),i=String(this),a=o.lastIndex;pi(a,0)||(o.lastIndex=0);var s=si(o,i);return pi(o.lastIndex,a)||(o.lastIndex=a),null===s?-1:s.index}]});var gi=ke("species"),mi=function(t,e){var n,r=H(t).constructor;return void 0===r||void 0==(n=H(r)[gi])?e:Ie(n)},vi=[].push,yi=Math.min,bi=!y(function(){return!RegExp(4294967295,"y")});oi("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(E(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Vo(t))return e.call(r,t,o);for(var i,a,s,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,h=new RegExp(t.source,c+"g");(i=Mo.call(h,r))&&!((a=h.lastIndex)>u&&(l.push(r.slice(u,i.index)),i.length>1&&i.index<r.length&&vi.apply(l,i.slice(1)),s=i[0].length,u=a,l.length>=o));)h.lastIndex===i.index&&h.lastIndex++;return u===r.length?!s&&h.test("")||l.push(""):l.push(r.slice(u)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=E(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var a=H(t),s=String(this),l=mi(a,RegExp),c=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(bi?"y":"g"),h=new l(bi?a:"^(?:"+a.source+")",u),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===s.length)return null===si(h,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){h.lastIndex=bi?p:0;var m,v=si(h,bi?s:s.slice(p));if(null===v||(m=yi(Pt(h.lastIndex+(bi?0:p)),s.length))===d)p=ai(s,p,c);else{if(g.push(s.slice(d,p)),g.length===f)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===f)return g;p=d=m}}return g.push(s.slice(d)),g}]},!bi);var wi="
",xi=Vr.trim;Zt({target:"String",proto:!0,forced:function(t){return y(function(){return!!zr[t]()||wi[t]()!=wi||zr[t].name!==t})}("trim")},{trim:function(){return xi(this)}});var Si={CSSRuleList:0,
|
||
CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ki=Be.forEach,Ci=Xn("forEach")?function(t){return ki(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var Oi in Si){var Ti=v[Oi],_i=Ti&&Ti.prototype;if(_i&&_i.forEach!==Ci)try{G(_i,"forEach",Ci)}catch(t){_i.forEach=Ci}}var Ai=ke("iterator"),Pi=ke("toStringTag"),Ei=xr.values;for(var Ii in Si){var ji=v[Ii],Ri=ji&&ji.prototype;if(Ri){if(Ri[Ai]!==Ei)try{G(Ri,Ai,Ei)}catch(t){Ri[Ai]=Ei}if(Ri[Pi]||G(Ri,Pi,Ii),Si[Ii])for(var Fi in xr)if(Ri[Fi]!==xr[Fi])try{G(Ri,Fi,xr[Fi])}catch(t){Ri[Fi]=xr[Fi]}}}var Ni=4;try{var qi=t.fn.dropdown.Constructor.VERSION;void 0!==qi&&(Ni=parseInt(qi,10))}catch(t){}var Bi={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],toolbarDropdownItem:'<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>',toolbarDropdownSeparator:'<li class="divider"></li>',pageDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],pageDropdownItem:'<li role="menuitem" class="%s"><a href="#">%s</a></li>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<span class="input-group-btn">%s</span></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}}}[Ni],Di={height:void 0,classes:"table table-bordered table-hover",theadClasses:"",headerStyle:function(t){return{}},rowStyle:function(t,e){return{}},rowAttributes:function(t,e){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:"asc",sortStable:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",pagination:!1,onlyInfoPagination:!1,showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchOnEnterKey:!1,strictSearch:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(t){return{}},showColumns:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(t){return["A","BUTTON"].includes(t.tagName)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailFormatter:function(t,e){return""},detailFilter:function(t,e){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:Bi.classes.buttonsPrefix,buttonsClass:Bi.classes.buttons,icons:Bi.icons,html:Bi.html,iconSize:void 0,iconsPrefix:Bi.iconsPrefix,onAll:function(t,e){return!1},onClickCell:function(t,e,n,r){return!1},onDblClickCell:function(t,e,n,r){return!1},onClickRow:function(t,e){return!1},onDblClickRow:function(t,e){return!1},onSort:function(t,e){return!1},onCheck:function(t){return!1},onUncheck:function(t){return!1},onCheckAll:function(t){return!1},onUncheckAll:function(t){return!1},onCheckSome:function(t){return!1},onUncheckSome:function(t){return!1},onLoadSuccess:function(t){return!1},onLoadError:function(t){return!1},onColumnSwitch:function(t,e){return!1},onPageChange:function(t,e){return!1},onSearch:function(t){return!1},onToggle:function(t){return!1},onPreBody:function(t){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(t,e,n){return!1},onCollapseRow:function(t,e){return!1},onRefreshOptions:function(t){return!1},onRefresh:function(t){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},Li={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(t){return"".concat(t," rows per page")},formatShowingRows:function(t,e,n,r){return void 0!==r&&r>0&&r>n?"Showing ".concat(t," to ").concat(e," of ").concat(n," rows (filtered from ").concat(r," total rows)"):"Showing ".concat(t," to ").concat(e," of ").concat(n," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(t){return"to page ".concat(t)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(t){return"Showing ".concat(t," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},Mi={field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,escape:!1,events:void 0},zi=["getOptions","refreshOptions","getData","getSelections","getAllSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],$i={"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"};Object.assign(Di,Li);var Hi={VERSION:"1.16.0",THEME:"bootstrap".concat(Ni),CONSTANTS:Bi,DEFAULTS:Di,COLUMN_DEFAULTS:Mi,METHODS:zi,EVENTS:$i,LOCALES:{en:Li,"en-US":Li}},Ui=y(function(){oe(1)});Zt({target:"Object",stat:!0,forced:Ui},{keys:function(t){return oe(re(t))}});var Wi={sprintf:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=!0,i=0,a=t.replace(/%s/g,function(){var t=n[i++];return void 0===t?(o=!1,""):t});return o?a:""},isEmptyObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(t).length&&t.constructor===Object},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},getFieldTitle:function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;if(s.field===e)return s.title}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return""},setFieldIndex:function(t){var e=0,n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[0][Symbol.iterator]();!(r=(a=s.next()).done);r=!0){e+=a.value.colspan||1}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}for(var l=0;l<t.length;l++){n[l]=[];for(var c=0;c<e;c++)n[l][c]=!1}for(var u=0;u<t.length;u++){var h=!0,f=!1,d=void 0;try{for(var p,g=t[u][Symbol.iterator]();!(h=(p=g.next()).done);h=!0){var m=p.value,v=m.rowspan||1,y=m.colspan||1,b=n[u].indexOf(!1);m.colspanIndex=b,1===y?(m.fieldIndex=b,void 0===m.field&&(m.field=b)):m.colspanGroup=m.colspan;for(var w=0;w<v;w++)n[u+w][b]=!0;for(var x=0;x<y;x++)n[u][b+x]=!0}}catch(t){f=!0,d=t}finally{try{h||null==g.return||g.return()}finally{if(f)throw d}}}},updateFieldGroup:function(t){var e,n=(e=[]).concat.apply(e,l(t)),r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value,u=!0,h=!1,f=void 0;try{for(var d,p=c[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){var g=d.value;if(g.colspanGroup>1){for(var m=0,v=g.colspanIndex;v<g.colspanIndex+g.colspanGroup;v++)!function(t){n.find(function(e){return e.fieldIndex===t}).visible&&m++}(v);g.colspan=m,g.visible=m>0}}}catch(t){h=!0,f=t}finally{try{u||null==p.return||p.return()}finally{if(h)throw f}}}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}},getScrollBarWidth:function(){if(void 0===this.cachedWidth){var e=t("<div/>").addClass("fixed-table-scroll-inner"),n=t("<div/>").addClass("fixed-table-scroll-outer");n.append(e),t("body").append(n);var r=e[0].offsetWidth;n.css("overflow","scroll");var o=e[0].offsetWidth;r===o&&(o=n[0].clientWidth),n.remove(),this.cachedWidth=r-o}return this.cachedWidth},calculateObjectValue:function(t,e,n,o){var i=e;if("string"==typeof e){var a=e.split(".");if(a.length>1){i=window;var s=!0,c=!1,u=void 0;try{for(var h,f=a[Symbol.iterator]();!(s=(h=f.next()).done);s=!0){i=i[h.value]}}catch(t){c=!0,u=t}finally{try{s||null==f.return||f.return()}finally{if(c)throw u}}}else i=window[e]}return null!==i&&"object"===r(i)?i:"function"==typeof i?i.apply(t,n||[]):!i&&"string"==typeof e&&this.sprintf.apply(this,[e].concat(l(n)))?this.sprintf.apply(this,[e].concat(l(n))):o},compareObjects:function(t,e,n){var r=Object.keys(t),o=Object.keys(e);if(n&&r.length!==o.length)return!1;for(var i=0,a=r;i<a.length;i++){var s=a[i];if(o.includes(s)&&t[s]!==e[s])return!1}return!0},escapeHTML:function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):t},getRealDataAttr:function(t){for(var e=0,n=Object.entries(t);e<n.length;e++){var r=s(n[e],2),o=r[0],i=r[1],a=o.split(/(?=[A-Z])/).join("-").toLowerCase();a!==o&&(t[a]=i,delete t[o])}return t},getItemField:function(t,e,n){var r=t;if("string"!=typeof e||t.hasOwnProperty(e))return n?this.escapeHTML(t[e]):t[e];var o=e.split("."),i=!0,a=!1,s=void 0;try{for(var l,c=o[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;r=r&&r[u]}}catch(t){a=!0,s=t}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return n?this.escapeHTML(r):r},isIEBrowser:function(){return navigator.userAgent.includes("MSIE ")||/Trident.*rv:11\./.test(navigator.userAgent)},findIndex:function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;if(JSON.stringify(s)===JSON.stringify(e))return t.indexOf(s)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return-1},trToData:function(e,n){var r=this,o=[],i=[];return n.each(function(n,a){var s={};s._id=t(a).attr("id"),s._class=t(a).attr("class"),s._data=r.getRealDataAttr(t(a).data()),t(a).find(">td,>th").each(function(o,a){for(var l=+t(a).attr("colspan")||1,c=+t(a).attr("rowspan")||1,u=o;i[n]&&i[n][u];u++);for(var h=u;h<u+l;h++)for(var f=n;f<n+c;f++)i[f]||(i[f]=[]),i[f][h]=!0;var d=e[u].field;s[d]=t(a).html().trim(),s["_".concat(d,"_id")]=t(a).attr("id"),s["_".concat(d,"_class")]=t(a).attr("class"),s["_".concat(d,"_rowspan")]=t(a).attr("rowspan"),s["_".concat(d,"_colspan")]=t(a).attr("colspan"),s["_".concat(d,"_title")]=t(a).attr("title"),s["_".concat(d,"_data")]=r.getRealDataAttr(t(a).data())}),o.push(s)}),o},sort:function(t,e,n,r,o,i){return void 0!==t&&null!==t||(t=""),void 0!==e&&null!==e||(e=""),r&&t===e&&(t=o,e=i),this.isNumeric(t)&&this.isNumeric(e)?(t=parseFloat(t),e=parseFloat(e),t<e?-1*n:t>e?n:0):t===e?0:("string"!=typeof t&&(t=t.toString()),-1===t.localeCompare(e)?-1*n:n)},getResizeEventName:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=t||"".concat(+new Date).concat(~~(1e6*Math.random())),"resize.bootstrap-table-".concat(t)}},Vi=function(){function t(e){var n=this;o(this,t),this.rows=e.rows,this.scrollEl=e.scrollEl,this.contentEl=e.contentEl,this.callback=e.callback,this.itemHeight=e.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows,e.fixedScroll),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;var r=function(){n.lastCluster!==(n.lastCluster=n.getNum())&&(n.initDOM(n.rows),n.callback())};this.scrollEl.addEventListener("scroll",r,!1),this.destroy=function(){n.contentEl.innerHtml="",n.scrollEl.removeEventListener("scroll",r,!1)}}return a(t,[{key:"initDOM",value:function(t,e){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=t[0]+t[0]+t[0],this.getRowsHeight(t));var n=this.initData(t,this.getNum(e)),r=n.rows.join(""),o=this.checkChanges("data",r),i=this.checkChanges("top",n.topOffset),a=this.checkChanges("bottom",n.bottomOffset),s=[];o&&i?(n.topOffset&&s.push(this.getExtra("top",n.topOffset)),s.push(r),n.bottomOffset&&s.push(this.getExtra("bottom",n.bottomOffset)),this.contentEl.innerHTML=s.join(""),e&&(this.contentEl.scrollTop=this.cache.scrollTop)):a&&(this.contentEl.lastChild.style.height="".concat(n.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){if(void 0===this.itemHeight){var t=this.contentEl.children,e=t[Math.floor(t.length/2)];this.itemHeight=e.offsetHeight}this.blockHeight=50*this.itemHeight,this.clusterRows=200,this.clusterHeight=4*this.blockHeight}},{key:"getNum",value:function(t){return this.scrollTop=t?this.cache.scrollTop:this.scrollEl.scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(t,e){if(t.length<50)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:t};var n=Math.max((this.clusterRows-50)*e,0),r=n+this.clusterRows,o=Math.max(n*this.itemHeight,0),i=Math.max((t.length-r)*this.itemHeight,0),a=[],s=n;o<1&&s++;for(var l=n;l<r;l++)t[l]&&a.push(t[l]);return{topOffset:o,bottomOffset:i,rowsAbove:s,rows:a}}},{key:"checkChanges",value:function(t,e){var n=e!==this.cache[t];return this.cache[t]=e,n}},{key:"getExtra",value:function(t,e){var n=document.createElement("tr");return n.className="virtual-scroll-".concat(t),e&&(n.style.height="".concat(e,"px")),n.outerHTML}}]),t}(),Gi=function(){function e(n,r){o(this,e),this.options=r,this.$el=t(n),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()}return a(e,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var e=this.options;this.constants=Hi.CONSTANTS,this.constants.theme=t.fn.bootstrapTable.theme;var n=e.buttonsPrefix?"".concat(e.buttonsPrefix,"-"):"";this.constants.buttonsClass=[e.buttonsPrefix,n+e.buttonsClass,Wi.sprintf("".concat(n,"%s"),e.iconSize)].join(" ").trim()}},{key:"initLocale",value:function(){if(this.options.locale){var e=t.fn.bootstrapTable.locales,n=this.options.locale.split(/-|_/);n[0]=n[0].toLowerCase(),n[1]&&(n[1]=n[1].toUpperCase()),e[this.options.locale]?t.extend(this.options,e[this.options.locale]):e[n.join("-")]?t.extend(this.options,e[n.join("-")]):e[n[0]]&&t.extend(this.options,e[n[0]])}}},{key:"initContainer",value:function(){var e=["top","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination clearfix"></div>':"",n=["bottom","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination"></div>':"";this.$container=t('\n <div class="bootstrap-table '.concat(this.constants.theme,'">\n <div class="fixed-table-toolbar"></div>\n ').concat(e,'\n <div class="fixed-table-container">\n <div class="fixed-table-header"><table></table></div>\n <div class="fixed-table-body">\n <div class="fixed-table-loading">\n <span class="loading-wrap">\n <span class="loading-text">').concat(this.options.formatLoadingMessage(),'</span>\n <span class="animation-wrap"><span class="animation-dot"></span></span>\n </span>\n </div>\n </div>\n <div class="fixed-table-footer"><table><thead><tr></tr></thead></table></div>\n </div>\n ').concat(n,"\n </div>\n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=t("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('<div class="fixed-table-border"></div>'),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var n=this,r=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=t('<thead class="'.concat(this.options.theadClasses,'"></thead>')).appendTo(this.$el),this.$header.find("tr").each(function(e,n){var o=[];t(n).find("th").each(function(e,n){void 0!==t(n).data("field")&&t(n).data("field","".concat(t(n).data("field"))),o.push(t.extend({},{title:t(n).html(),class:t(n).attr("class"),titleTooltip:t(n).attr("title"),rowspan:t(n).attr("rowspan")?+t(n).attr("rowspan"):void 0,colspan:t(n).attr("colspan")?+t(n).attr("colspan"):void 0},t(n).data()))}),r.push(o)}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],r,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],Wi.setFieldIndex(this.options.columns),this.options.columns.forEach(function(r,o){r.forEach(function(r,i){var a=t.extend({},e.COLUMN_DEFAULTS,r);void 0!==a.fieldIndex&&(n.columns[a.fieldIndex]=a,n.fieldsColumnsIndex[a.field]=a.fieldIndex),n.options.columns[o][i]=a})}),this.options.data.length||(this.options.data=Wi.trToData(this.columns,this.$el.find(">tbody>tr")),this.options.data.length&&(this.fromHtml=!0)),this.footerData=Wi.trToData(this.columns,this.$el.find(">tfoot>tr")),this.footerData&&this.$el.find("tfoot").html("<tr></tr>"),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var e=this,n={},r=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},Wi.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(t,o){r.push("<tr>"),0===o&&!e.options.cardView&&e.options.detailView&&e.options.detailViewIcon&&r.push('<th class="detail" rowspan="'.concat(e.options.columns.length,'">\n <div class="fht-cell"></div>\n </th>\n ')),t.forEach(function(t,i){var a=Wi.sprintf(' class="%s"',t.class),l=t.widthUnit,c=parseFloat(t.width),u=Wi.sprintf("text-align: %s; ",t.halign?t.halign:t.align),h=Wi.sprintf("text-align: %s; ",t.align),f=Wi.sprintf("vertical-align: %s; ",t.valign);if(f+=Wi.sprintf("width: %s; ",!t.checkbox&&!t.radio||c?c?c+l:void 0:t.showSelectTitle?void 0:"36px"),void 0!==t.fieldIndex||t.visible){var d=Wi.calculateObjectValue(null,e.options.headerStyle,[t]),p=[],g="";if(d&&d.css)for(var m=0,v=Object.entries(d.css);m<v.length;m++){var y=s(v[m],2),b=y[0],w=y[1];p.push("".concat(b,": ").concat(w))}if(d&&d.classes&&(g=Wi.sprintf(' class="%s"',t.class?[t.class,d.classes].join(" "):d.classes)),void 0!==t.fieldIndex){if(e.header.fields[t.fieldIndex]=t.field,e.header.styles[t.fieldIndex]=h+f,e.header.classes[t.fieldIndex]=a,e.header.formatters[t.fieldIndex]=t.formatter,e.header.detailFormatters[t.fieldIndex]=t.detailFormatter,e.header.events[t.fieldIndex]=t.events,e.header.sorters[t.fieldIndex]=t.sorter,e.header.sortNames[t.fieldIndex]=t.sortName,e.header.cellStyles[t.fieldIndex]=t.cellStyle,e.header.searchables[t.fieldIndex]=t.searchable,!t.visible)return;if(e.options.cardView&&!t.cardVisible)return;n[t.field]=t}r.push("<th".concat(Wi.sprintf(' title="%s"',t.titleTooltip)),t.checkbox||t.radio?Wi.sprintf(' class="bs-checkbox %s"',t.class||""):g||a,Wi.sprintf(' style="%s"',u+f+p.join("; ")),Wi.sprintf(' rowspan="%s"',t.rowspan),Wi.sprintf(' colspan="%s"',t.colspan),Wi.sprintf(' data-field="%s"',t.field),0===i&&o>0?" data-not-first-th":"",">"),r.push(Wi.sprintf('<div class="th-inner %s">',e.options.sortable&&t.sortable?"sortable both":""));var x=e.options.escape?Wi.escapeHTML(t.title):t.title,S=x;t.checkbox&&(x="",!e.options.singleSelect&&e.options.checkboxHeader&&(x='<label><input name="btSelectAll" type="checkbox" /><span></span></label>'),e.header.stateField=t.field),t.radio&&(x="",e.header.stateField=t.field),!x&&t.showSelectTitle&&(x+=S),r.push(x),r.push("</div>"),r.push('<div class="fht-cell"></div>'),r.push("</div>"),r.push("</th>")}}),r.push("</tr>")}),this.$header.html(r.join("")),this.$header.find("th[data-field]").each(function(e,r){t(r).data(n[t(r).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(n){var r=t(n.currentTarget);if(e.options.detailView&&!r.parent().hasClass("bs-checkbox")&&r.closest(".bootstrap-table")[0]!==e.$container[0])return!1;e.options.sortable&&r.parent().data().sortable&&e.onSort(n)}),this.$header.children().children().off("keypress").on("keypress",function(n){if(e.options.sortable&&t(n.currentTarget).data().sortable){13===(n.keyCode||n.which)&&e.onSort(n)}});var o=Wi.getResizeEventName(this.$el.attr("id"));t(window).off(o),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on(o,function(){return e.resetView()})),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(n){n.stopPropagation();var r=t(n.currentTarget).prop("checked");e[r?"checkAll":"uncheckAll"](),e.updateSelected()})}},{key:"initData",value:function(t,e){this.options.data="append"===e?this.options.data.concat(t):"prepend"===e?[].concat(t).concat(this.options.data):t||this.options.data,this.data=this.options.data,"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var t=this,e=this.options.sortName,n="desc"===this.options.sortOrder?-1:1,r=this.header.fields.indexOf(this.options.sortName),o=0;-1!==r&&(this.options.sortStable&&this.data.forEach(function(t,e){t.hasOwnProperty("_position")||(t._position=e)}),this.options.customSort?Wi.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(o,i){t.header.sortNames[r]&&(e=t.header.sortNames[r]);var a=Wi.getItemField(o,e,t.options.escape),s=Wi.getItemField(i,e,t.options.escape),l=Wi.calculateObjectValue(t.header,t.header.sorters[r],[a,s,o,i]);return void 0!==l?t.options.sortStable&&0===l?n*(o._position-i._position):n*l:Wi.sort(a,s,n,t.options.sortStable,o._position,i._position)}),void 0!==this.options.sortClass&&(clearTimeout(o),o=setTimeout(function(){t.$el.removeClass(t.options.sortClass);var e=t.$header.find('[data-field="'.concat(t.options.sortName,'"]')).index();t.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(t.options.sortClass)},250)))}},{key:"onSort",value:function(e){var n=e.type,r=e.currentTarget,o="keypress"===n?t(r):t(r).parent(),i=this.$header.find("th").eq(o.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===o.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=o.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===o.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[o.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[o.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),o.add(i).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort)return this.options.pageNumber=1,void this.initServer(this.options.silentSort);this.initSort(),this.initBody()}},{key:"initToolbar",value:function(){var e,n=this,o=this.options,i=[],a=0,s=0;this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(o.toolbar)),this.$toolbar.html(""),"string"!=typeof o.toolbar&&"object"!==r(o.toolbar)||t(Wi.sprintf('<div class="bs-bars %s-%s"></div>',this.constants.classes.pull,o.toolbarAlign)).appendTo(this.$toolbar).append(t(o.toolbar)),i=['<div class="'.concat(["columns","columns-".concat(o.buttonsAlign),this.constants.classes.buttonsGroup,"".concat(this.constants.classes.pull,"-").concat(o.buttonsAlign)].join(" "),'">')],"string"==typeof o.icons&&(o.icons=Wi.calculateObjectValue(null,o.icons));var l={paginationSwitch:'<button class="'.concat(this.constants.buttonsClass,'" type="button" name="paginationSwitch"\n aria-label="Pagination Switch" title="').concat(o.formatPaginationSwitch(),'">\n ').concat(o.showButtonIcons?Wi.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.paginationSwitchDown):"","\n ").concat(o.showButtonText?o.formatPaginationSwitchUp():"","\n </button>"),refresh:'<button class="'.concat(this.constants.buttonsClass,'" type="button" name="refresh"\n aria-label="Refresh" title="').concat(o.formatRefresh(),'">\n ').concat(o.showButtonIcons?Wi.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.refresh):"","\n ").concat(o.showButtonText?o.formatRefresh():"","\n </button>"),toggle:'<button class="'.concat(this.constants.buttonsClass,'" type="button" name="toggle"\n aria-label="Toggle" title="').concat(o.formatToggle(),'">\n ').concat(o.showButtonIcons?Wi.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.toggleOff):"","\n ").concat(o.showButtonText?o.formatToggleOn():"","\n </button>"),
|
||
fullscreen:'<button class="'.concat(this.constants.buttonsClass,'" type="button" name="fullscreen"\n aria-label="Fullscreen" title="').concat(o.formatFullscreen(),'">\n ').concat(o.showButtonIcons?Wi.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.fullscreen):"","\n ").concat(o.showButtonText?o.formatFullscreen():"","\n </button>"),columns:function(){var t=[];if(t.push('<div class="keep-open '.concat(n.constants.classes.buttonsDropdown,'" title="').concat(o.formatColumns(),'">\n <button class="').concat(n.constants.buttonsClass,' dropdown-toggle" type="button" data-toggle="dropdown"\n aria-label="Columns" title="').concat(o.formatColumns(),'">\n ').concat(o.showButtonIcons?Wi.sprintf(n.constants.html.icon,o.iconsPrefix,o.icons.columns):"","\n ").concat(o.showButtonText?o.formatColumns():"","\n ").concat(n.constants.html.dropdownCaret,"\n </button>\n ").concat(n.constants.html.toolbarDropdown[0])),o.showColumnsSearch&&(t.push(Wi.sprintf(n.constants.html.toolbarDropdownItem,Wi.sprintf('<input type="text" class="%s" id="columnsSearch" placeholder="%s" autocomplete="off">',n.constants.classes.input,o.formatSearch()))),t.push(n.constants.html.toolbarDropdownSeparator)),o.showColumnsToggleAll){var e=n.getVisibleColumns().length===n.columns.filter(function(t){return!n.isSelectionColumn(t)}).length;t.push(Wi.sprintf(n.constants.html.toolbarDropdownItem,Wi.sprintf('<input type="checkbox" class="toggle-all" %s> <span>%s</span>',e?'checked="checked"':"",o.formatColumnsToggleAll()))),t.push(n.constants.html.toolbarDropdownSeparator)}var r=0;return n.columns.forEach(function(t,e){t.visible&&r++}),n.columns.forEach(function(e,i){if(!n.isSelectionColumn(e)&&(!o.cardView||e.cardVisible)){var a=e.visible?' checked="checked"':"",l=r<=n.options.minimumCountColumns&&a?' disabled="disabled"':"";e.switchable&&(t.push(Wi.sprintf(n.constants.html.toolbarDropdownItem,Wi.sprintf('<input type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>',e.field,i,a,l,e.title))),s++)}}),t.push(n.constants.html.toolbarDropdown[1],"</div>"),t.join("")}()};"string"==typeof o.buttonsOrder&&(o.buttonsOrder=o.buttonsOrder.replace(/\[|\]| |'/g,"").toLowerCase().split(","));var c=!0,u=!1,h=void 0;try{for(var f,d=o.buttonsOrder[Symbol.iterator]();!(c=(f=d.next()).done);c=!0){var p=f.value;o["show"+p.charAt(0).toUpperCase()+p.substring(1)]&&i.push(l[p])}}catch(t){u=!0,h=t}finally{try{c||null==d.return||d.return()}finally{if(u)throw h}}if(i.push("</div>"),(this.showToolbar||i.length>2)&&this.$toolbar.append(i.join("")),o.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",function(){return n.togglePagination()}),o.showFullscreen&&this.$toolbar.find('button[name="fullscreen"]').off("click").on("click",function(){return n.toggleFullscreen()}),o.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",function(){return n.refresh()}),o.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){n.toggleView()}),o.showColumns){e=this.$toolbar.find(".keep-open");var g=e.find('input[type="checkbox"]:not(".toggle-all")'),m=e.find('input[type="checkbox"].toggle-all');if(s<=o.minimumCountColumns&&e.find("input").prop("disabled",!0),e.find("li, label").off("click").on("click",function(t){t.stopImmediatePropagation()}),g.off("click").on("click",function(e){var r=e.currentTarget,o=t(r);n._toggleColumn(o.val(),o.prop("checked"),!1),n.trigger("column-switch",o.data("field"),o.prop("checked")),m.prop("checked",g.filter(":checked").length===n.columns.filter(function(t){return!n.isSelectionColumn(t)}).length)}),m.off("click").on("click",function(e){var r=e.currentTarget;n._toggleAllColumns(t(r).prop("checked"))}),o.showColumnsSearch){var v=e.find("#columnsSearch"),y=e.find(".dropdown-item-marker");v.on("keyup paste change",function(e){var n=e.currentTarget,r=t(n),o=r.val().toLowerCase();y.show(),g.each(function(e,n){var r=t(n),i=r.parents(".dropdown-item-marker");i.text().toLowerCase().includes(o)||i.hide()})})}}if(o.search||this.showSearchClearButton){i=[];var b=Wi.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,o.formatSearch(),o.showButtonIcons?Wi.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.search):"",o.showButtonText?o.formatSearch():""),w=Wi.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,o.formatClearSearch(),o.showButtonIcons?Wi.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.clearSearch):"",o.showButtonText?o.formatClearSearch():""),x='<input class="'.concat(this.constants.classes.input,"\n ").concat(Wi.sprintf(" %s%s",this.constants.classes.inputPrefix,o.iconSize),'\n search-input" type="text" placeholder="').concat(o.formatSearch(),'" autocomplete="off">'),S=x;if(o.showSearchButton||o.showSearchClearButton){var k=(o.showSearchButton?b:"")+(o.showSearchClearButton?w:"");S=o.search?Wi.sprintf(this.constants.html.inputGroup,x,k):k}i.push(Wi.sprintf('\n <div class="'.concat(this.constants.classes.pull,"-").concat(o.searchAlign," search ").concat(this.constants.classes.inputGroup,'">\n %s\n </div>\n '),S)),this.$toolbar.append(i.join(""));var C=this.$toolbar.find(".search input"),O=function(){var t="keyup drop blur ".concat(Wi.isIEBrowser()?"mouseup":"");C.off(t).on(t,function(t){o.searchOnEnterKey&&13!==t.keyCode||[37,38,39,40].includes(t.keyCode)||(clearTimeout(a),a=setTimeout(function(){n.onSearch({currentTarget:t.currentTarget})},o.searchTimeOut))})};o.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",function(t){clearTimeout(a),a=setTimeout(function(){n.onSearch({currentTarget:C})},o.searchTimeOut)}),o.searchOnEnterKey&&O()):O(),o.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){n.resetSearch()})}}},{key:"onSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.currentTarget,r=e.firedByInitSearchText,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0!==n&&t(n).length&&o){var i=t(n).val().trim();if(this.options.trimOnSearch&&t(n).val()!==i&&t(n).val(i),this.searchText===i&&i.length>0)return;t(n).hasClass("search-input")&&(this.searchText=i,this.options.searchText=i)}r||(this.options.pageNumber=1),this.initSearch(),r?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var t=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch)return void(this.data=Wi.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]));var e=this.searchText&&(this.fromHtml?Wi.escapeHTML(this.searchText):this.searchText).toLowerCase(),n=Wi.isEmptyObject(this.filterColumns)?null:this.filterColumns;"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter(function(e,r){return t.filterOptions.filterAlgorithm.apply(null,[e,n])}):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=n?this.options.data.filter(function(e,r){var o=t.filterOptions.filterAlgorithm;if("and"===o){for(var i in n)if(Array.isArray(n[i])&&!n[i].includes(e[i])||!Array.isArray(n[i])&&e[i]!==n[i])return!1}else if("or"===o){var a=!1;for(var s in n)(Array.isArray(n[s])&&n[s].includes(e[s])||!Array.isArray(n[s])&&e[s]===n[s])&&(a=!0);return a}return!0}):this.options.data);var r=this.getVisibleFields();this.data=e?this.data.filter(function(n,o){for(var i=0;i<t.header.fields.length;i++)if(t.header.searchables[i]&&(!t.options.visibleSearch||-1!==r.indexOf(t.header.fields[i]))){var a=Wi.isNumeric(t.header.fields[i])?parseInt(t.header.fields[i],10):t.header.fields[i],s=t.columns[t.fieldsColumnsIndex[a]],l=void 0;if("string"==typeof a){l=n;for(var c=a.split("."),u=0;u<c.length;u++)null!==l[c[u]]&&(l=l[c[u]])}else l=n[a];if(s&&s.searchFormatter&&(l=Wi.calculateObjectValue(s,t.header.formatters[i],[l,n,o,s.field],l)),"string"==typeof l||"number"==typeof l)if(t.options.strictSearch){if("".concat(l).toLowerCase()===e)return!0}else{var h=/(?:(<=|=>|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,f=h.exec(e),d=!1;if(f){var p=f[1]||"".concat(f[5],"l"),g=f[2]||f[3],m=parseInt(l,10),v=parseInt(g,10);switch(p){case">":case"<l":d=m>v;break;case"<":case">l":d=m<v;break;case"<=":case"=<":case">=l":case"=>l":d=m<=v;break;case">=":case"=>":case"<=l":case"=<l":d=m>=v}}if(d||"".concat(l).toLowerCase().includes(e))return!0}}return!1}):this.data}this.initSort()}},{key:"initPagination",value:function(){var t=this,e=this.options;if(!e.pagination)return void this.$pagination.hide();this.$pagination.show();var n,r,o,i,a,s,l,c=[],u=!1,h=this.getData({includeHiddenRows:!1}),f=e.pageList;"string"==typeof f&&(f=f.replace(/\[|\]| /g,"").toLowerCase().split(",")),f=f.map(function(t){return"string"==typeof t?t.toLowerCase()===e.formatAllRows().toLowerCase()||["all","unlimited"].includes(t.toLowerCase())?e.formatAllRows():+t:t}),"server"!==e.sidePagination&&(e.totalRows=h.length),this.totalPages=0,e.totalRows&&(e.pageSize===e.formatAllRows()&&(e.pageSize=e.totalRows,u=!0),this.totalPages=1+~~((e.totalRows-1)/e.pageSize),e.totalPages=this.totalPages),this.totalPages>0&&e.pageNumber>this.totalPages&&(e.pageNumber=this.totalPages),this.pageFrom=(e.pageNumber-1)*e.pageSize+1,this.pageTo=e.pageNumber*e.pageSize,this.pageTo>e.totalRows&&(this.pageTo=e.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0);var d=e.onlyInfoPagination?e.formatDetailPagination(e.totalRows):e.formatShowingRows(this.pageFrom,this.pageTo,e.totalRows,e.totalNotFiltered);if(c.push('<div class="'.concat(this.constants.classes.pull,"-").concat(e.paginationDetailHAlign,' pagination-detail">\n <span class="pagination-info">\n ').concat(d,"\n </span>")),!e.onlyInfoPagination){c.push('<span class="page-list">');var p=['<span class="'.concat(this.constants.classes.paginationDropdown,'">\n <button class="').concat(this.constants.buttonsClass,' dropdown-toggle" type="button" data-toggle="dropdown">\n <span class="page-size">\n ').concat(u?e.formatAllRows():e.pageSize,"\n </span>\n ").concat(this.constants.html.dropdownCaret,"\n </button>\n ").concat(this.constants.html.pageDropdown[0])];f.forEach(function(n,r){if(!e.smartDisplay||0===r||f[r-1]<e.totalRows){var o;o=u?n===e.formatAllRows()?t.constants.classes.dropdownActive:"":n===e.pageSize?t.constants.classes.dropdownActive:"",p.push(Wi.sprintf(t.constants.html.pageDropdownItem,o,n))}}),p.push("".concat(this.constants.html.pageDropdown[1],"</span>")),c.push(e.formatRecordsPerPage(p.join(""))),c.push("</span></div>"),c.push('<div class="'.concat(this.constants.classes.pull,"-").concat(e.paginationHAlign,' pagination">'),Wi.sprintf(this.constants.html.pagination[0],Wi.sprintf(" pagination-%s",e.iconSize)),Wi.sprintf(this.constants.html.paginationItem," page-pre",e.formatSRPaginationPreText(),e.paginationPreText)),this.totalPages<e.paginationSuccessivelySize?(r=1,o=this.totalPages):(r=e.pageNumber-e.paginationPagesBySide,o=r+2*e.paginationPagesBySide),e.pageNumber<e.paginationSuccessivelySize-1&&(o=e.paginationSuccessivelySize),e.paginationSuccessivelySize>this.totalPages-r&&(r=r-(e.paginationSuccessivelySize-(this.totalPages-r))+1),r<1&&(r=1),o>this.totalPages&&(o=this.totalPages);var g=Math.round(e.paginationPagesBySide/2),m=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Wi.sprintf(t.constants.html.paginationItem,r+(n===e.pageNumber?" ".concat(t.constants.classes.paginationActive):""),e.formatSRPaginationPageText(n),n)};if(r>1){var v=e.paginationPagesBySide;for(v>=r&&(v=r-1),n=1;n<=v;n++)c.push(m(n));r-1===v+1?(n=r-1,c.push(m(n))):r-1>v&&(r-2*e.paginationPagesBySide>e.paginationPagesBySide&&e.paginationUseIntermediate?(n=Math.round((r-g)/2+g),c.push(m(n," page-intermediate"))):c.push(Wi.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(n=r;n<=o;n++)c.push(m(n));if(this.totalPages>o){var y=this.totalPages-(e.paginationPagesBySide-1);for(o>=y&&(y=o+1),o+1===y-1?(n=o+1,c.push(m(n))):y>o+1&&(this.totalPages-o>2*e.paginationPagesBySide&&e.paginationUseIntermediate?(n=Math.round((this.totalPages-g-o)/2+o),c.push(m(n," page-intermediate"))):c.push(Wi.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),n=y;n<=this.totalPages;n++)c.push(m(n))}c.push(Wi.sprintf(this.constants.html.paginationItem," page-next",e.formatSRPaginationNextText(),e.paginationNextText)),c.push(this.constants.html.pagination[1],"</div>")}this.$pagination.html(c.join(""));var b=["bottom","both"].includes(e.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > span").addClass(b),e.onlyInfoPagination||(i=this.$pagination.find(".page-list a"),a=this.$pagination.find(".page-pre"),s=this.$pagination.find(".page-next"),l=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),e.smartDisplay&&(f.length<2||e.totalRows<=f[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),e.paginationLoop||(1===e.pageNumber&&a.addClass("disabled"),e.pageNumber===this.totalPages&&s.addClass("disabled")),u&&(e.pageSize=e.formatAllRows()),i.off("click").on("click",function(e){return t.onPageListChange(e)}),a.off("click").on("click",function(e){return t.onPagePre(e)}),s.off("click").on("click",function(e){return t.onPageNext(e)}),l.off("click").on("click",function(e){return t.onPageNumber(e)}))}},{key:"updatePagination",value:function(e){e&&t(e.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))}},{key:"onPageListChange",value:function(e){e.preventDefault();var n=t(e.currentTarget);return n.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=n.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+n.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(t){return t.preventDefault(),this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1}},{key:"onPageNext",value:function(t){return t.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+t(e.currentTarget).text())return this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function(t,e,n,o){var i=this,a=[],l={},c=[],u="",h={},f=[];if(!(Wi.findIndex(this.hiddenRows,t)>-1)){if((l=Wi.calculateObjectValue(this.options,this.options.rowStyle,[t,e],l))&&l.css)for(var d=0,p=Object.entries(l.css);d<p.length;d++){var g=s(p[d],2),m=g[0],v=g[1];c.push("".concat(m,": ").concat(v))}if(h=Wi.calculateObjectValue(this.options,this.options.rowAttributes,[t,e],h))for(var y=0,b=Object.entries(h);y<b.length;y++){var w=s(b[y],2),x=w[0],S=w[1];f.push("".concat(x,'="').concat(Wi.escapeHTML(S),'"'))}if(t._data&&!Wi.isEmptyObject(t._data))for(var k=0,C=Object.entries(t._data);k<C.length;k++){var O=s(C[k],2),T=O[0],_=O[1];if("index"===T)return;u+=" data-".concat(T,"='").concat("object"===r(_)?JSON.stringify(_):_,"'")}return a.push("<tr",Wi.sprintf(" %s",f.length?f.join(" "):void 0),Wi.sprintf(' id="%s"',Array.isArray(t)?void 0:t._id),Wi.sprintf(' class="%s"',l.classes||(Array.isArray(t)?void 0:t._class)),' data-index="'.concat(e,'"'),Wi.sprintf(' data-uniqueid="%s"',Wi.getItemField(t,this.options.uniqueId,!1)),Wi.sprintf(' data-has-detail-view="%s"',!this.options.cardView&&this.options.detailView&&Wi.calculateObjectValue(null,this.options.detailFilter,[e,t])?"true":void 0),Wi.sprintf("%s",u),">"),this.options.cardView&&a.push('<td colspan="'.concat(this.header.fields.length,'"><div class="card-views">')),!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&(a.push("<td>"),Wi.calculateObjectValue(null,this.options.detailFilter,[e,t])&&a.push('\n <a class="detail-icon" href="#">\n '.concat(Wi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n </a>\n ")),a.push("</td>")),this.header.fields.forEach(function(n,r){var o="",l=Wi.getItemField(t,n,i.options.escape),u="",h="",f={},d="",p=i.header.classes[r],g="",m="",v="",y="",b="",w=i.columns[r];if((!i.fromHtml||void 0!==l||w.checkbox||w.radio)&&w.visible&&(!i.options.cardView||w.cardVisible)){if(w.escape&&(l=Wi.escapeHTML(l)),c.concat([i.header.styles[r]]).length&&(g=' style="'.concat(c.concat([i.header.styles[r]]).join("; "),'"')),t["_".concat(n,"_id")]&&(d=Wi.sprintf(' id="%s"',t["_".concat(n,"_id")])),t["_".concat(n,"_class")]&&(p=Wi.sprintf(' class="%s"',t["_".concat(n,"_class")])),t["_".concat(n,"_rowspan")]&&(v=Wi.sprintf(' rowspan="%s"',t["_".concat(n,"_rowspan")])),t["_".concat(n,"_colspan")]&&(y=Wi.sprintf(' colspan="%s"',t["_".concat(n,"_colspan")])),t["_".concat(n,"_title")]&&(b=Wi.sprintf(' title="%s"',t["_".concat(n,"_title")])),f=Wi.calculateObjectValue(i.header,i.header.cellStyles[r],[l,t,e,n],f),f.classes&&(p=' class="'.concat(f.classes,'"')),f.css){for(var x=[],S=0,k=Object.entries(f.css);S<k.length;S++){var C=s(k[S],2),O=C[0],T=C[1];x.push("".concat(O,": ").concat(T))}g=' style="'.concat(x.concat(i.header.styles[r]).join("; "),'"')}if(u=Wi.calculateObjectValue(w,i.header.formatters[r],[l,t,e,n],l),t["_".concat(n,"_data")]&&!Wi.isEmptyObject(t["_".concat(n,"_data")]))for(var _=0,A=Object.entries(t["_".concat(n,"_data")]);_<A.length;_++){var P=s(A[_],2),E=P[0],I=P[1];if("index"===E)return;m+=" data-".concat(E,'="').concat(I,'"')}if(w.checkbox||w.radio){h=w.checkbox?"checkbox":h,h=w.radio?"radio":h;var j=w.class||"",R=(!0===u||l||u&&u.checked)&&!1!==u,F=!w.checkboxEnabled||u&&u.disabled;o=[i.options.cardView?'<div class="card-view '.concat(j,'">'):'<td class="bs-checkbox '.concat(j,'"').concat(p).concat(g,">"),'<label>\n <input\n data-index="'.concat(e,'"\n name="').concat(i.options.selectItemName,'"\n type="').concat(h,'"\n ').concat(Wi.sprintf('value="%s"',t[i.options.idField]),"\n ").concat(Wi.sprintf('checked="%s"',R?"checked":void 0),"\n ").concat(Wi.sprintf('disabled="%s"',F?"disabled":void 0)," />\n <span></span>\n </label>"),i.header.formatters[r]&&"string"==typeof u?u:"",i.options.cardView?"</div>":"</td>"].join(""),t[i.header.stateField]=!0===u||!!l||u&&u.checked}else if(u=void 0===u||null===u?i.options.undefinedText:u,i.options.cardView){var N=i.options.showHeader?'<span class="card-view-title"'.concat(g,">").concat(Wi.getFieldTitle(i.columns,n),"</span>"):"";o='<div class="card-view">'.concat(N,'<span class="card-view-value">').concat(u,"</span></div>"),i.options.smartDisplay&&""===u&&(o='<div class="card-view"></div>')}else o="<td".concat(d).concat(p).concat(g).concat(m).concat(v).concat(y).concat(b,">").concat(u,"</td>");a.push(o)}}),this.options.cardView&&a.push("</div></td>"),a.push("</tr>"),a.join("")}}},{key:"initBody",value:function(e){var n=this,r=this.getData();this.trigger("pre-body",r),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=r.length);for(var o=[],i=t(document.createDocumentFragment()),a=!1,s=this.pageFrom-1;s<this.pageTo;s++){var l=r[s],c=this.initRow(l,s,r,i);a=a||!!c,c&&"string"==typeof c&&(this.options.virtualScroll?o.push(c):i.append(c))}a?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new Vi({rows:o,fixedScroll:e,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(){n.fitHeader(),n.initBodyEvent()}})):this.$body.html(i):this.$body.html('<tr class="no-records-found">'.concat(Wi.sprintf('<td colspan="%s">%s</td>',this.$header.find("th").length,this.options.formatNoMatches()),"</tr>")),e||this.scrollTo(0),this.initBodyEvent(),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=r.length),this.trigger("post-body",r)}},{key:"initBodyEvent",value:function(){var e=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(n){var r=t(n.currentTarget),o=r.parent(),i=t(n.target).parents(".card-views").children(),a=t(n.target).parents(".card-view"),s=o.data("index"),l=e.data[s],c=e.options.cardView?i.index(a):r[0].cellIndex,u=e.getVisibleFields(),h=u[e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView?c-1:c],f=e.columns[e.fieldsColumnsIndex[h]],d=Wi.getItemField(l,h,e.options.escape);if(!r.find(".detail-icon").length){if(e.trigger("click"===n.type?"click-cell":"dbl-click-cell",h,d,l,r),e.trigger("click"===n.type?"click-row":"dbl-click-row",l,o,h),"click"===n.type&&e.options.clickToSelect&&f.clickToSelect&&!Wi.calculateObjectValue(e.options,e.options.ignoreClickToSelectOn,[n.target])){var p=o.find(Wi.sprintf('[name="%s"]',e.options.selectItemName));p.length&&p[0].click()}"click"===n.type&&e.options.detailViewByClick&&e.toggleDetailView(s,e.header.detailFormatters[e.fieldsColumnsIndex[h]])}}).off("mousedown").on("mousedown",function(t){e.multipleSelectRowCtrlKey=t.ctrlKey||t.metaKey,e.multipleSelectRowShiftKey=t.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(n){return n.preventDefault(),e.toggleDetailView(t(n.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(Wi.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(n){n.stopImmediatePropagation();var r=t(n.currentTarget);e._toggleCheck(r.prop("checked"),r.data("index"))}),this.header.events.forEach(function(n,r){var o=n;if(o){"string"==typeof o&&(o=Wi.calculateObjectValue(null,o));var i=e.header.fields[r],a=e.getVisibleFields().indexOf(i);if(-1!==a){e.options.detailView&&!e.options.cardView&&(a+=1);for(var s in o){(function(n){if(!o.hasOwnProperty(n))return"continue";var r=o[n];e.$body.find(">tr:not(.no-records-found)").each(function(o,s){var l=t(s),c=l.find(e.options.cardView?".card-views>.card-view":">td").eq(a),u=n.indexOf(" "),h=n.substring(0,u),f=n.substring(u+1);c.find(f).off(h).on(h,function(t){var n=l.data("index"),o=e.data[n],a=o[i];r.apply(e,[t,a,o,n])})})})(s)}}}})}},{key:"initServer",value:function(e,n,r){var o=this,i={},a=this.header.fields.indexOf(this.options.sortName),s={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[a]&&(s.sortName=this.header.sortNames[a]),this.options.pagination&&"server"===this.options.sidePagination&&(s.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,s.pageNumber=this.options.pageNumber),(r||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(s={search:s.searchText,sort:s.sortName,order:s.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(s.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),s.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===s.limit&&delete s.limit)),Wi.isEmptyObject(this.filterColumnsPartial)||(s.filter=JSON.stringify(this.filterColumnsPartial,null)),t.extend(s,n||{}),!1!==(i=Wi.calculateObjectValue(this.options,this.options.queryParams,[s],i)))){e||this.showLoading();var l=t.extend({},Wi.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:r||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t,n,r){var i=Wi.calculateObjectValue(o.options,o.options.responseHandler,[t,r],t);o.load(i),o.trigger("load-success",i,r&&r.status,r),e||o.hideLoading(),"server"===o.options.sidePagination&&i[o.options.totalField]>0&&!i[o.options.dataField].length&&o.updatePagination()},error:function(t){var n=[];"server"===o.options.sidePagination&&(n={},n[o.options.totalField]=0,n[o.options.dataField]=[]),o.load(n),o.trigger("load-error",t&&t.status,t),e||o.$tableLoading.hide()}});return this.options.ajax?Wi.calculateObjectValue(this,this.options.ajax,[l],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(l)),i}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var t=this.$toolbar.find(".search input");t.val(this.options.searchText),this.onSearch({currentTarget:t,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var e=this;this.$header.find("th").each(function(n,r){t(r).find(".sortable").removeClass("desc asc").addClass(t(r).data("field")===e.options.sortName?e.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,n){t(n).closest("tr")[t(n).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var e=this;this.$selectItem.each(function(n,r){e.data[t(r).data("index")][e.header.stateField]=t(r).prop("checked")})}},{key:"resetRows",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,o=this.data[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var i=r.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(i[this.header.stateField]=!1)}}catch(t){e=!0,n=t}finally{try{t||null==o.return||o.return()}finally{if(e)throw n}}this.initHiddenRows()}},{key:"trigger",value:function(n){for(var r,o="".concat(n,".bs.table"),i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];(r=this.options)[e.EVENTS[o]].apply(r,a),this.$el.trigger(t.Event(o),a),this.options.onAll(o,a),this.$el.trigger(t.Event("all.bs.table"),[o,a])}},{key:"resetHeader",value:function(){var t=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(function(){return t.fitHeader()},this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var e=this;if(this.$el.is(":hidden"))return void(this.timeoutId_=setTimeout(function(){return e.fitHeader()},100));var n=this.$tableBody.get(0),r=n.scrollWidth>n.clientWidth&&n.scrollHeight>n.clientHeight+this.$header.outerHeight()?Wi.getScrollBarWidth():0;this.$el.css("margin-top",-this.$header.outerHeight());var o=t(":focus");if(o.length>0){var i=o.parents("th");if(i.length>0){var a=i.attr("data-field");if(void 0!==a){var s=this.$header.find("[data-field='".concat(a,"']"));s.length>0&&s.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",r).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth());var l=t(".focus-temp:visible:eq(0)");l.length>0&&(l.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(n,r){e.$header_.find(Wi.sprintf('th[data-field="%s"]',t(r).data("field"))).data(t(r).data())});for(var c=this.getVisibleFields(),u=this.$header_.find("th"),h=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);h.length&&h.find('>td[colspan]:not([colspan="1"])').length;)h=h.next();h.find("> *").each(function(n,r){var o=t(r),i=n;if(e.options.detailView&&e.options.detailViewIcon&&!e.options.cardView){if(0===n){var a=u.filter(".detail"),s=a.innerWidth()-a.find(".fht-cell").width();a.find(".fht-cell").width(o.innerWidth()-s)}i=n-1}if(-1!==i){var l=e.$header_.find(Wi.sprintf('th[data-field="%s"]',c[i]));l.length>1&&(l=t(u[o[0].cellIndex]));var h=l.innerWidth()-l.find(".fht-cell").width();l.find(".fht-cell").width(o.innerWidth()-h)}}),this.horizontalScroll(),this.trigger("post-header")}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var t=this.getData(),e=[];!this.options.cardView&&this.options.detailView&&this.options.detailViewIcon&&e.push('<th class="detail"><div class="th-inner"></div><div class="fht-cell"></div></th>');var n=!0,r=!1,o=void 0;try{for(var i,a=this.columns[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var l=i.value,c="",u="",h=[],f={},d=Wi.sprintf(' class="%s"',l.class);if(l.visible){if(this.options.cardView&&!l.cardVisible)return;if(c=Wi.sprintf("text-align: %s; ",l.falign?l.falign:l.align),u=Wi.sprintf("vertical-align: %s; ",l.valign),(f=Wi.calculateObjectValue(null,this.options.footerStyle,[l]))&&f.css)for(var p=0,g=Object.entries(f.css);p<g.length;p++){var m=s(g[p],2),v=m[0],y=m[1];h.push("".concat(v,": ").concat(y))}f&&f.classes&&(d=Wi.sprintf(' class="%s"',l.class?[l.class,f.classes].join(" "):f.classes)),e.push("<th",d,Wi.sprintf(' style="%s"',c+u+h.concat().join("; ")),">"),e.push('<div class="th-inner">'),e.push(Wi.calculateObjectValue(l,l.footerFormatter,[t],this.footerData[0]&&this.footerData[0][l.field]||"")),e.push("</div>"),e.push('<div class="fht-cell"></div>'),e.push("</div>"),e.push("</th>")}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}this.options.height||this.$tableFooter.length||(this.$el.append("<tfoot><tr></tr></tfoot>"),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").html(e.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var e=this;if(this.$el.is(":hidden"))return void setTimeout(function(){return e.fitFooter()},100);var n=this.$tableBody.get(0),r=n.scrollWidth>n.clientWidth&&n.scrollHeight>n.clientHeight+this.$header.outerHeight()?Wi.getScrollBarWidth():0;this.$tableFooter.css("margin-right",r).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class"));for(var o=(this.getVisibleFields(),this.$tableFooter.find("th")),i=this.$body.find(">tr:first-child:not(.no-records-found)");i.length&&i.find('>td[colspan]:not([colspan="1"])').length;)i=i.next();i.find("> *").each(function(n,r){var i=t(r),a=n;if(e.options.detailView&&!e.options.cardView){if(0===n){var s=o.filter(".detail"),l=s.innerWidth()-s.find(".fht-cell").width();s.find(".fht-cell").width(i.innerWidth()-l)}a=n-1}if(-1!==a){var c=o.eq(n),u=c.innerWidth()-c.find(".fht-cell").width();c.find(".fht-cell").width(i.innerWidth()-u)}}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),
|
||
t.trigger("scroll-body",t.$tableBody)})}},{key:"getVisibleFields",value:function(){var t=[],e=!0,n=!1,r=void 0;try{for(var o,i=this.header.fields[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var a=o.value,s=this.columns[this.fieldsColumnsIndex[a]];s&&s.visible&&t.push(a)}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}return t}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=t.extend({},this.options);return delete e.data,t.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){Wi.compareObjects(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(t){var e=this.options.data;if(!(this.searchText||this.options.customSearch||this.options.sortName)&&Wi.isEmptyObject(this.filterColumns)&&Wi.isEmptyObject(this.filterColumnsPartial)||t&&t.unfiltered||(e=this.data),t&&t.useCurrentPage&&(e=e.slice(this.pageFrom-1,this.pageTo)),t&&!t.includeHiddenRows){var n=this.getHiddenRows();e=e.filter(function(t){return-1===Wi.findIndex(n,t)})}return e}},{key:"getSelections",value:function(){var t=this;return this.data.filter(function(e){return!0===e[t.header.stateField]})}},{key:"getAllSelections",value:function(){var t=this;return this.options.data.filter(function(e){return!0===e[t.header.stateField]})}},{key:"load",value:function(t){var e=!1,n=t;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=n[this.options.totalField]),this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalNotFiltered=n[this.options.totalNotFilteredField]),e=n.fixedScroll,n=Array.isArray(n)?n:n[this.options.dataField],this.initData(n),this.initSearch(),this.initPagination(),this.initBody(e)}},{key:"append",value:function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(t){var e,n,r=this.options.data.length;if(t.hasOwnProperty("field")&&t.hasOwnProperty("values")){for(e=r-1;e>=0;e--)n=this.options.data[e],n.hasOwnProperty(t.field)&&t.values.includes(n[t.field])&&(this.options.data.splice(e,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));r!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.options.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(e){var n=Array.isArray(e)?e:[e],r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;l.hasOwnProperty("index")&&l.hasOwnProperty("row")&&(t.extend(this.options.data[l.index],l.row),l.hasOwnProperty("replace")&&l.replace?this.options.data[l.index]=l.row:t.extend(this.options.data[l.index],l.row))}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(t){var e,n,r,o=this.options.uniqueId,i=this.options.data.length,a=t,s=null;for(e=i-1;e>=0;e--){if(n=this.options.data[e],n.hasOwnProperty(o))r=n[o];else{if(!n._data||!n._data.hasOwnProperty(o))continue;r=n._data[o]}if("string"==typeof r?a=a.toString():"number"==typeof r&&(Number(r)===r&&r%1==0?a=parseInt(a):r===Number(r)&&0!==r&&(a=parseFloat(a))),r===a){s=n;break}}return s}},{key:"updateByUniqueId",value:function(e){var n=Array.isArray(e)?e:[e],r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.hasOwnProperty("id")&&l.hasOwnProperty("row")){var c=this.options.data.indexOf(this.getRowByUniqueId(l.id));-1!==c&&(l.hasOwnProperty("replace")&&l.replace?this.options.data[c]=l.row:t.extend(this.options.data[c],l.row))}}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"removeByUniqueId",value:function(t){var e=this.options.data.length,n=this.getRowByUniqueId(t);n&&this.options.data.splice(this.options.data.indexOf(n),1),e!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,!1!==t.reinit&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(t){var e=this;if(t.hasOwnProperty("id")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")){(Array.isArray(t)?t:[t]).forEach(function(t){var n=t.id,r=t.field,o=t.value,i=e.options.data.indexOf(e.getRowByUniqueId(n));-1!==i&&(e.options.data[i][r]=o)}),!1!==t.reinit&&(this.initSort(),this.initBody(!0))}}},{key:"showRow",value:function(t){this._toggleRow(t,!0)}},{key:"hideRow",value:function(t){this._toggleRow(t,!1)}},{key:"_toggleRow",value:function(t,e){var n;if(t.hasOwnProperty("index")?n=this.getData()[t.index]:t.hasOwnProperty("uniqueId")&&(n=this.getRowByUniqueId(t.uniqueId)),n){var r=Wi.findIndex(this.hiddenRows,n);e||-1!==r?e&&r>-1&&this.hiddenRows.splice(r,1):this.hiddenRows.push(n),e?this.updatePagination():(this.initBody(!0),this.initPagination())}}},{key:"getHiddenRows",value:function(t){if(t)return this.initHiddenRows(),void this.initBody(!0);var e=this.getData(),n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;this.hiddenRows.includes(l)&&n.push(l)}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return this.hiddenRows=n,n}},{key:"showColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!0,!0)})}},{key:"hideColumn",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach(function(t){e._toggleColumn(e.fieldsColumnsIndex[t],!1,!0)})}},{key:"_toggleColumn",value:function(t,e,n){if(-1!==t&&this.columns[t].visible!==e&&(this.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var r=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);n&&r.filter(Wi.sprintf('[value="%s"]',t)).prop("checked",e),r.filter(":checked").length<=this.options.minimumCountColumns&&r.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter(function(e){return e.visible&&!t.isSelectionColumn(e)})}},{key:"getHiddenColumns",value:function(){return this.columns.filter(function(t){return!t.visible})}},{key:"isSelectionColumn",value:function(t){return t.radio||t.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(e){var n=this,r=!0,o=!1,i=void 0;try{for(var a,s=this.columns.slice().reverse()[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.switchable){if(!e&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns)continue;l.visible=e}}}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}if(this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var c=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1);e?c.prop("checked",e):c.get().reverse().forEach(function(r){c.filter(":checked").length>n.options.minimumCountColumns&&t(r).prop("checked",e)}),c.filter(":checked").length<=this.options.minimumCountColumns&&c.filter(":checked").prop("disabled",!0)}}},{key:"mergeCells",value:function(t){var e,n,r=t.index,o=this.getVisibleFields().indexOf(t.field),i=t.rowspan||1,a=t.colspan||1,s=this.$body.find(">tr");this.options.detailView&&!this.options.cardView&&(o+=1);var l=s.eq(r).find(">td").eq(o);if(!(r<0||o<0||r>=this.data.length)){for(e=r;e<r+i;e++)for(n=o;n<o+a;n++)s.eq(e).find(">td").eq(n).hide();l.attr("rowspan",i).attr("colspan",a).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(t){var e=this.getSelections();this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows();var n=this.getSelections();if(t)return void this.trigger("check-all",n,e);this.trigger("uncheck-all",n,e)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),n=e.filter(":checked");e.each(function(e,n){t(n).prop("checked",!t(n).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",n),n=this.getSelections(),this.trigger("check-some",n)}},{key:"check",value:function(t){this._toggleCheck(!0,t)}},{key:"uncheck",value:function(t){this._toggleCheck(!1,t)}},{key:"_toggleCheck",value:function(t,e){var n=this.$selectItem.filter('[data-index="'.concat(e,'"]')),r=this.data[e];if(n.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var o=!0,i=!1,a=void 0;try{for(var s,l=this.options.data[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){s.value[this.header.stateField]=!1}}catch(t){i=!0,a=t}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}this.$selectItem.filter(":checked").not(n).prop("checked",!1)}if(r[this.header.stateField]=t,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0)for(var c=[this.multipleSelectRowLastSelectedIndex,e].sort(),u=c[0]+1;u<c[1];u++)this.data[u][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(u,'"]')).prop("checked",!0);this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=t?e:-1}n.prop("checked",t),this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[e],n)}},{key:"checkBy",value:function(t){this._toggleCheckBy(!0,t)}},{key:"uncheckBy",value:function(t){this._toggleCheckBy(!1,t)}},{key:"_toggleCheckBy",value:function(t,e){var n=this;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){var r=[];this.data.forEach(function(o,i){if(!o.hasOwnProperty(e.field))return!1;if(e.values.includes(o[e.field])){var a=n.$selectItem.filter(":enabled").filter(Wi.sprintf('[data-index="%s"]',i));if(a=t?a.not(":checked"):a.filter(":checked"),!a.length)return;a.prop("checked",t),o[n.header.stateField]=t,r.push(o),n.trigger(t?"check":"uncheck",o,a)}}),this.updateSelected(),this.trigger(t?"check-some":"uncheck-some",r)}}},{key:"refresh",value:function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),this.trigger("refresh",this.initServer(t&&t.silent,t&&t.query,t&&t.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),t(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")}},{key:"resetView",value:function(t){var e=0;if(t&&t.height&&(this.options.height=t.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),e+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(e+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen"))this.$tableContainer.css("height",""),this.$tableContainer.css("width","");else if(this.options.height){var n=this.$toolbar.outerHeight(!0),r=this.$pagination.outerHeight(!0),o=this.options.height-n-r,i=this.$tableBody.find(">table"),a=i.outerHeight();if(this.$tableContainer.css("height","".concat(o,"px")),this.$tableBorder){var s=o-a-2;this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(s-=Wi.getScrollBarWidth()),this.$tableBorder.css("width","".concat(i.outerWidth(),"px")),this.$tableBorder.css("height","".concat(s,"px"))}}this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(e,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.css("display","flex")}},{key:"hideLoading",value:function(){this.$tableLoading.css("display","none")}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var t=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",e=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html(Wi.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)+" "+e),this.updatePagination()}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var t=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",e=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html(Wi.sprintf(this.constants.html.icon,this.options.iconsPrefix,t)+" "+e),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(t){var e=this.$toolbar.find(".search input");e.val(t||""),this.onSearch({currentTarget:e})}},{key:"filterBy",value:function(e,n){this.filterOptions=Wi.isEmptyObject(n)?this.options.filterOptions:t.extend(this.options.filterOptions,n),this.filterColumns=Wi.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function(e){if(void 0===e)return this.$tableBody.scrollTop();var n={unit:"px",value:0};"object"===r(e)?n=Object.assign(n,e):"string"==typeof e&&"bottom"===e?n.value=this.$tableBody[0].scrollHeight:"string"==typeof e&&(n.value=e);var o=n.value;"rows"===n.unit&&(o=0,this.$body.find("> tr:lt(".concat(n.value,")")).each(function(e,n){o+=t(n).outerHeight(!0)})),this.$tableBody.scrollTop(o)}},{key:"getScrollPosition",value:function(){return this.scrollTo()}},{key:"selectPage",value:function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())}},{key:"toggleDetailView",value:function(t,e){this.$body.find(Wi.sprintf('> tr[data-index="%s"]',t)).next().is("tr.detail-view")?this.collapseRow(t):this.expandRow(t,e),this.resetView()}},{key:"expandRow",value:function(t,e){var n=this.data[t],r=this.$body.find(Wi.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));if(!r.next().is("tr.detail-view")){this.options.detailViewIcon&&r.find("a.detail-icon").html(Wi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),r.after(Wi.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>',r.children("td").length));var o=r.next().find("td"),i=e||this.options.detailFormatter,a=Wi.calculateObjectValue(this.options,i,[t,n,o],"");1===o.length&&o.append(a),this.trigger("expand-row",t,n,o)}}},{key:"collapseRow",value:function(t){var e=this.data[t],n=this.$body.find(Wi.sprintf('> tr[data-index="%s"][data-has-detail-view]',t));n.next().is("tr.detail-view")&&(this.options.detailViewIcon&&n.find("a.detail-icon").html(Wi.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",t,e,n.next()),n.next().remove())}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),n=0;n<e.length;n++)this.expandRow(t(e[n]).data("index"))}},{key:"collapseAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),n=0;n<e.length;n++)this.collapseRow(t(e[n]).data("index"))}},{key:"updateColumnTitle",value:function(e){if(e.hasOwnProperty("field")&&e.hasOwnProperty("title")&&(this.columns[this.fieldsColumnsIndex[e.field]].title=this.options.escape?Wi.escapeHTML(e.title):e.title,this.columns[this.fieldsColumnsIndex[e.field]].visible)){(void 0!==this.options.height?this.$tableHeader:this.$header).find("th[data-field]").each(function(n,r){if(t(r).data("field")===e.field)return t(t(r).find(".th-inner")[0]).text(e.title),!1})}}},{key:"updateFormatText",value:function(t,e){/^format/.test(t)&&this.options[t]&&("string"==typeof e?this.options[t]=function(){return e}:"function"==typeof e&&(this.options[t]=e),this.initToolbar(),this.initPagination(),this.initBody())}}]),e}();return Gi.VERSION=Hi.VERSION,Gi.DEFAULTS=Hi.DEFAULTS,Gi.LOCALES=Hi.LOCALES,Gi.COLUMN_DEFAULTS=Hi.COLUMN_DEFAULTS,Gi.METHODS=Hi.METHODS,Gi.EVENTS=Hi.EVENTS,t.BootstrapTable=Gi,t.fn.bootstrapTable=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a;return this.each(function(n,i){var s=t(i).data("bootstrap.table"),l=t.extend({},Gi.DEFAULTS,t(i).data(),"object"===r(e)&&e);if("string"==typeof e){var c;if(!Hi.METHODS.includes(e))throw new Error("Unknown method: ".concat(e));if(!s)return;a=(c=s)[e].apply(c,o),"destroy"===e&&t(i).removeData("bootstrap.table")}s||t(i).data("bootstrap.table",s=new t.BootstrapTable(i,l))}),void 0===a?this:a},t.fn.bootstrapTable.Constructor=Gi,t.fn.bootstrapTable.theme=Hi.THEME,t.fn.bootstrapTable.VERSION=Hi.VERSION,t.fn.bootstrapTable.defaults=Gi.DEFAULTS,t.fn.bootstrapTable.columnDefaults=Gi.COLUMN_DEFAULTS,t.fn.bootstrapTable.events=Gi.EVENTS,t.fn.bootstrapTable.locales=Gi.LOCALES,t.fn.bootstrapTable.methods=Gi.METHODS,t.fn.bootstrapTable.utils=Wi,t(function(){t('[data-toggle="table"]').bootstrapTable()}),Gi}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?u(t):e}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}t=t&&t.hasOwnProperty("default")?t.default:t;var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g=function(t){return t&&t.Math==Math&&t},m=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof p&&p)||Function("return this")(),v=function(t){try{return!!t()}catch(t){return!0}},y=!v(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),b={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,x=w&&!b.call({1:2},1),S=x?function(t){var e=w(this,t);return!!e&&e.enumerable}:b,k={f:S},C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O={}.toString,T=function(t){return O.call(t).slice(8,-1)},_="".split,A=v(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==T(t)?_.call(t,""):Object(t)}:Object,P=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},E=function(t){return A(P(t))},I=function(t){return"object"==typeof t?null!==t:"function"==typeof t},j=function(t,e){if(!I(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!I(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!I(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!I(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},R={}.hasOwnProperty,F=function(t,e){return R.call(t,e)},N=m.document,q=I(N)&&I(N.createElement),B=function(t){return q?N.createElement(t):{}},D=!y&&!v(function(){return 7!=Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a}),L=Object.getOwnPropertyDescriptor,M=y?L:function(t,e){if(t=E(t),e=j(e,!0),D)try{return L(t,e)}catch(t){}if(F(t,e))return C(!k.f.call(t,e),t[e])},z={f:M},$=function(t){if(!I(t))throw TypeError(String(t)+" is not an object");return t},H=Object.defineProperty,U=y?H:function(t,e,n){if($(t),e=j(e,!0),$(n),D)try{return H(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},W={f:U},V=y?function(t,e,n){return W.f(t,e,C(1,n))}:function(t,e,n){return t[e]=n,t},G=function(t,e){try{V(m,t,e)}catch(n){m[t]=e}return e},X=m["__core-js_shared__"]||G("__core-js_shared__",{}),Y=X,K=Function.toString;"function"!=typeof Y.inspectSource&&(Y.inspectSource=function(t){return K.call(t)});var J,Q,Z,tt=Y.inspectSource,et=m.WeakMap,nt="function"==typeof et&&/native code/.test(tt(et)),rt=e(function(t){(t.exports=function(t,e){return Y[t]||(Y[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),ot=0,it=Math.random(),at=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ot+it).toString(36)},st=rt("keys"),lt=function(t){return st[t]||(st[t]=at(t))},ct={},ut=m.WeakMap,ht=function(t){return Z(t)?Q(t):J(t,{})},ft=function(t){return function(e){var n;if(!I(e)||(n=Q(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(nt){var dt=new ut,pt=dt.get,gt=dt.has,mt=dt.set;J=function(t,e){return mt.call(dt,t,e),e},Q=function(t){return pt.call(dt,t)||{}},Z=function(t){return gt.call(dt,t)}}else{var vt=lt("state");ct[vt]=!0,J=function(t,e){return V(t,vt,e),e},Q=function(t){return F(t,vt)?t[vt]:{}},Z=function(t){return F(t,vt)}}var yt,bt={set:J,get:Q,has:Z,enforce:ht,getterFor:ft},wt=e(function(t){var e=bt.get,n=bt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;if("function"==typeof o&&("string"!=typeof e||F(o,"name")||V(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t===m)return void(s?t[e]=o:G(e,o));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=o:V(t,e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||tt(this)})}),xt=m,St=function(t){return"function"==typeof t?t:void 0},kt=function(t,e){return arguments.length<2?St(xt[t])||St(m[t]):xt[t]&&xt[t][e]||m[t]&&m[t][e]},Ct=Math.ceil,Ot=Math.floor,Tt=function(t){return isNaN(t=+t)?0:(t>0?Ot:Ct)(t)},_t=Math.min,At=function(t){return t>0?_t(Tt(t),9007199254740991):0},Pt=Math.max,Et=Math.min,It=function(t,e){var n=Tt(t);return n<0?Pt(n+e,0):Et(n,e)},jt=function(t){return function(e,n,r){var o,i=E(e),a=At(i.length),s=It(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},Rt={includes:jt(!0),indexOf:jt(!1)},Ft=Rt.indexOf,Nt=function(t,e){var n,r=E(t),o=0,i=[];for(n in r)!F(ct,n)&&F(r,n)&&i.push(n);for(;e.length>o;)F(r,n=e[o++])&&(~Ft(i,n)||i.push(n));return i},qt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bt=qt.concat("length","prototype"),Dt=Object.getOwnPropertyNames||function(t){return Nt(t,Bt)},Lt={f:Dt},Mt=Object.getOwnPropertySymbols,zt={f:Mt},$t=kt("Reflect","ownKeys")||function(t){var e=Lt.f($(t)),n=zt.f;return n?e.concat(n(t)):e},Ht=function(t,e){for(var n=$t(e),r=W.f,o=z.f,i=0;i<n.length;i++){var a=n[i];F(t,a)||r(t,a,o(e,a))}},Ut=/#|\.prototype\./,Wt=function(t,e){var n=Gt[Vt(t)];return n==Yt||n!=Xt&&("function"==typeof e?v(e):!!e)},Vt=Wt.normalize=function(t){return String(t).replace(Ut,".").toLowerCase()},Gt=Wt.data={},Xt=Wt.NATIVE="N",Yt=Wt.POLYFILL="P",Kt=Wt,Jt=z.f,Qt=function(t,e){var n,r,o,i,a,s=t.target,l=t.global,c=t.stat;if(n=l?m:c?m[s]||G(s,{}):(m[s]||{}).prototype)for(r in e){if(i=e[r],t.noTargetGet?(a=Jt(n,r),o=a&&a.value):o=n[r],!Kt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ht(i,o)}(t.sham||o&&o.sham)&&V(i,"sham",!0),wt(n,r,i,t)}},Zt=!!Object.getOwnPropertySymbols&&!v(function(){return!String(Symbol())}),te=Zt&&!Symbol.sham&&"symbol"==typeof Symbol(),ee=Array.isArray||function(t){return"Array"==T(t)},ne=function(t){return Object(P(t))},re=Object.keys||function(t){return Nt(t,qt)},oe=y?Object.defineProperties:function(t,e){$(t);for(var n,r=re(e),o=r.length,i=0;o>i;)W.f(t,n=r[i++],e[n]);return t},ie=kt("document","documentElement"),ae=lt("IE_PROTO"),se=function(){},le=function(t){return"<script>"+t+"<\/script>"},ce=function(t){t.write(le("")),t.close();var e=t.parentWindow.Object;return t=null,e},ue=function(){var t,e=B("iframe");return e.style.display="none",ie.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(le("document.F=Object")),t.close(),t.F},he=function(){try{yt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}he=yt?ce(yt):ue();for(var t=qt.length;t--;)delete he.prototype[qt[t]];return he()};ct[ae]=!0;var fe=Object.create||function(t,e){var n;return null!==t?(se.prototype=$(t),n=new se,se.prototype=null,n[ae]=t):n=he(),void 0===e?n:oe(n,e)},de=Lt.f,pe={}.toString,ge="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],me=function(t){try{return de(t)}catch(t){return ge.slice()}},ve=function(t){return ge&&"[object Window]"==pe.call(t)?me(t):de(E(t))},ye={f:ve},be=rt("wks"),we=m.Symbol,xe=te?we:at,Se=function(t){return F(be,t)||(Zt&&F(we,t)?be[t]=we[t]:be[t]=xe("Symbol."+t)),be[t]},ke=Se,Ce={f:ke},Oe=W.f,Te=function(t){var e=xt.Symbol||(xt.Symbol={});F(e,t)||Oe(e,t,{value:Ce.f(t)})},_e=W.f,Ae=Se("toStringTag"),Pe=function(t,e,n){t&&!F(t=n?t:t.prototype,Ae)&&_e(t,Ae,{configurable:!0,value:e})},Ee=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ie=function(t,e,n){if(Ee(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},je=Se("species"),Re=function(t,e){var n;return ee(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!ee(n.prototype)?I(n)&&null===(n=n[je])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Fe=[].push,Ne=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(s,l,c,u){for(var h,f,d=ne(s),p=A(d),g=Ie(l,c,3),m=At(p.length),v=0,y=u||Re,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=p[v],f=g(h,v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Fe.call(b,h)}else if(o)return!1;return i?-1:r||o?o:b}},qe={forEach:Ne(0),map:Ne(1),filter:Ne(2),some:Ne(3),every:Ne(4),find:Ne(5),findIndex:Ne(6)},Be=qe.forEach,De=lt("hidden"),Le=Se("toPrimitive"),Me=bt.set,ze=bt.getterFor("Symbol"),$e=Object.prototype,He=m.Symbol,Ue=kt("JSON","stringify"),We=z.f,Ve=W.f,Ge=ye.f,Xe=k.f,Ye=rt("symbols"),Ke=rt("op-symbols"),Je=rt("string-to-symbol-registry"),Qe=rt("symbol-to-string-registry"),Ze=rt("wks"),tn=m.QObject,en=!tn||!tn.prototype||!tn.prototype.findChild,nn=y&&v(function(){return 7!=fe(Ve({},"a",{get:function(){return Ve(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=We($e,e);r&&delete $e[e],Ve(t,e,n),r&&t!==$e&&Ve($e,e,r)}:Ve,rn=function(t,e){var n=Ye[t]=fe(He.prototype);return Me(n,{type:"Symbol",tag:t,description:e}),y||(n.description=e),n},on=Zt&&"symbol"==typeof He.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof He},an=function(t,e,n){t===$e&&an(Ke,e,n),$(t);var r=j(e,!0);return $(n),F(Ye,r)?(n.enumerable?(F(t,De)&&t[De][r]&&(t[De][r]=!1),n=fe(n,{enumerable:C(0,!1)})):(F(t,De)||Ve(t,De,C(1,{})),t[De][r]=!0),nn(t,r,n)):Ve(t,r,n)},sn=function(t,e){$(t);var n=E(e),r=re(n).concat(fn(n));return Be(r,function(e){y&&!cn.call(n,e)||an(t,e,n[e])}),t},ln=function(t,e){return void 0===e?fe(t):sn(fe(t),e)},cn=function(t){var e=j(t,!0),n=Xe.call(this,e);return!(this===$e&&F(Ye,e)&&!F(Ke,e))&&(!(n||!F(this,e)||!F(Ye,e)||F(this,De)&&this[De][e])||n)},un=function(t,e){var n=E(t),r=j(e,!0);if(n!==$e||!F(Ye,r)||F(Ke,r)){var o=We(n,r);return!o||!F(Ye,r)||F(n,De)&&n[De][r]||(o.enumerable=!0),o}},hn=function(t){var e=Ge(E(t)),n=[];return Be(e,function(t){F(Ye,t)||F(ct,t)||n.push(t)}),n},fn=function(t){var e=t===$e,n=Ge(e?Ke:E(t)),r=[];return Be(n,function(t){!F(Ye,t)||e&&!F($e,t)||r.push(Ye[t])}),r};if(Zt||(He=function(){if(this instanceof He)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=at(t),n=function(t){this===$e&&n.call(Ke,t),F(this,De)&&F(this[De],e)&&(this[De][e]=!1),nn(this,e,C(1,t))};return y&&en&&nn($e,e,{configurable:!0,set:n}),rn(e,t)},wt(He.prototype,"toString",function(){return ze(this).tag}),k.f=cn,W.f=an,z.f=un,Lt.f=ye.f=hn,zt.f=fn,y&&(Ve(He.prototype,"description",{configurable:!0,get:function(){return ze(this).description}}),wt($e,"propertyIsEnumerable",cn,{unsafe:!0}))),te||(Ce.f=function(t){return rn(Se(t),t)}),Qt({global:!0,wrap:!0,forced:!Zt,sham:!Zt},{Symbol:He}),Be(re(Ze),function(t){Te(t)}),Qt({target:"Symbol",stat:!0,forced:!Zt},{for:function(t){var e=String(t);if(F(Je,e))return Je[e];var n=He(e);return Je[e]=n,Qe[n]=e,n},keyFor:function(t){if(!on(t))throw TypeError(t+" is not a symbol");if(F(Qe,t))return Qe[t]},useSetter:function(){en=!0},useSimple:function(){en=!1}}),Qt({target:"Object",stat:!0,forced:!Zt,sham:!y},{create:ln,defineProperty:an,defineProperties:sn,getOwnPropertyDescriptor:un}),Qt({target:"Object",stat:!0,forced:!Zt},{getOwnPropertyNames:hn,getOwnPropertySymbols:fn}),Qt({target:"Object",stat:!0,forced:v(function(){zt.f(1)})},{
|
||
getOwnPropertySymbols:function(t){return zt.f(ne(t))}}),Ue){var dn=!Zt||v(function(){var t=He();return"[null]"!=Ue([t])||"{}"!=Ue({a:t})||"{}"!=Ue(Object(t))});Qt({target:"JSON",stat:!0,forced:dn},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(I(e)||void 0!==t)&&!on(t))return ee(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!on(e))return e}),o[1]=e,Ue.apply(null,o)}})}He.prototype[Le]||V(He.prototype,Le,He.prototype.valueOf),Pe(He,"Symbol"),ct[De]=!0;var pn=W.f,gn=m.Symbol;if(y&&"function"==typeof gn&&(!("description"in gn.prototype)||void 0!==gn().description)){var mn={},vn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof vn?new gn(t):void 0===t?gn():gn(t);return""===t&&(mn[e]=!0),e};Ht(vn,gn);var yn=vn.prototype=gn.prototype;yn.constructor=vn;var bn=yn.toString,wn="Symbol(test)"==String(gn("test")),xn=/^Symbol\((.*)\)[^)]+$/;pn(yn,"description",{configurable:!0,get:function(){var t=I(this)?this.valueOf():this,e=bn.call(t);if(F(mn,t))return"";var n=wn?e.slice(7,-1):e.replace(xn,"$1");return""===n?void 0:n}}),Qt({global:!0,forced:!0},{Symbol:vn})}Te("iterator");var Sn,kn,Cn=function(t,e,n){var r=j(e);r in t?W.f(t,r,C(0,n)):t[r]=n},On=kt("navigator","userAgent")||"",Tn=m.process,_n=Tn&&Tn.versions,An=_n&&_n.v8;An?(Sn=An.split("."),kn=Sn[0]+Sn[1]):On&&(!(Sn=On.match(/Edge\/(\d+)/))||Sn[1]>=74)&&(Sn=On.match(/Chrome\/(\d+)/))&&(kn=Sn[1]);var Pn=kn&&+kn,En=Se("species"),In=function(t){return Pn>=51||!v(function(){var e=[],n=e.constructor={};return n[En]=function(){return{foo:1}},1!==e[t](Boolean).foo})},jn=Se("isConcatSpreadable"),Rn=Pn>=51||!v(function(){var t=[];return t[jn]=!1,t.concat()[0]!==t}),Fn=In("concat"),Nn=function(t){if(!I(t))return!1;var e=t[jn];return void 0!==e?!!e:ee(t)};Qt({target:"Array",proto:!0,forced:!Rn||!Fn},{concat:function(t){var e,n,r,o,i,a=ne(this),s=Re(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],Nn(i)){if(o=At(i.length),l+o>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&Cn(s,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Cn(s,l++,i)}return s.length=l,s}});var qn=Se("unscopables"),Bn=Array.prototype;void 0==Bn[qn]&&W.f(Bn,qn,{configurable:!0,value:fe(null)});var Dn=function(t){Bn[qn][t]=!0},Ln=qe.find,Mn=!0;"find"in[]&&Array(1).find(function(){Mn=!1}),Qt({target:"Array",proto:!0,forced:Mn},{find:function(t){return Ln(this,t,arguments.length>1?arguments[1]:void 0)}}),Dn("find");var zn,$n,Hn,Un=!v(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Wn=lt("IE_PROTO"),Vn=Object.prototype,Gn=Un?Object.getPrototypeOf:function(t){return t=ne(t),F(t,Wn)?t[Wn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Vn:null},Xn=Se("iterator"),Yn=!1,Kn=function(){return this};[].keys&&(Hn=[].keys(),"next"in Hn?($n=Gn(Gn(Hn)))!==Object.prototype&&(zn=$n):Yn=!0),void 0==zn&&(zn={}),F(zn,Xn)||V(zn,Xn,Kn);var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Yn},Qn=Jn.IteratorPrototype,Zn=function(t,e,n){var r=e+" Iterator";return t.prototype=fe(Qn,{next:C(1,n)}),Pe(t,r,!1),t},tr=function(t){if(!I(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},er=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return $(n),tr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),nr=Jn.IteratorPrototype,rr=Jn.BUGGY_SAFARI_ITERATORS,or=Se("iterator"),ir=function(){return this},ar=function(t,e,n,r,o,i,a){Zn(n,e,r);var s,l,c,u=function(t){if(t===o&&g)return g;if(!rr&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,d=t.prototype,p=d[or]||d["@@iterator"]||o&&d[o],g=!rr&&p||u(o),m="Array"==e?d.entries||p:p;if(m&&(s=Gn(m.call(new t)),nr!==Object.prototype&&s.next&&(Gn(s)!==nr&&(er?er(s,nr):"function"!=typeof s[or]&&V(s,or,ir)),Pe(s,h,!0))),"values"==o&&p&&"values"!==p.name&&(f=!0,g=function(){return p.call(this)}),d[or]!==g&&V(d,or,g),o)if(l={values:u("values"),keys:i?g:u("keys"),entries:u("entries")},a)for(c in l)!rr&&!f&&c in d||wt(d,c,l[c]);else Qt({target:e,proto:!0,forced:rr||f},l);return l},sr=bt.set,lr=bt.getterFor("Array Iterator"),cr=ar(Array,"Array",function(t,e){sr(this,{type:"Array Iterator",target:E(t),index:0,kind:e})},function(){var t=lr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Dn("keys"),Dn("values"),Dn("entries");var ur=function(t,e){var n=[][t];return!n||!v(function(){n.call(null,e||function(){throw 1},1)})},hr=[].join,fr=A!=Object,dr=ur("join",",");Qt({target:"Array",proto:!0,forced:fr||dr},{join:function(t){return hr.call(E(this),void 0===t?",":t)}});var pr=qe.map,gr=In("map"),mr=gr&&!v(function(){[].map.call({length:-1,0:1},function(t){throw t})});Qt({target:"Array",proto:!0,forced:!gr||!mr},{map:function(t){return pr(this,t,arguments.length>1?arguments[1]:void 0)}});var vr=Se("species"),yr=[].slice,br=Math.max;Qt({target:"Array",proto:!0,forced:!In("slice")},{slice:function(t,e){var n,r,o,i=E(this),a=At(i.length),s=It(t,a),l=It(void 0===e?a:e,a);if(ee(i)&&(n=i.constructor,"function"!=typeof n||n!==Array&&!ee(n.prototype)?I(n)&&null===(n=n[vr])&&(n=void 0):n=void 0,n===Array||void 0===n))return yr.call(i,s,l);for(r=new(void 0===n?Array:n)(br(l-s,0)),o=0;s<l;s++,o++)s in i&&Cn(r,o,i[s]);return r.length=o,r}});var wr=Se("toStringTag"),xr={};xr[wr]="z";var Sr="[object z]"===String(xr),kr=Se("toStringTag"),Cr="Arguments"==T(function(){return arguments}()),Or=function(t,e){try{return t[e]}catch(t){}},Tr=Sr?T:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=Or(e=Object(t),kr))?n:Cr?T(e):"Object"==(r=T(e))&&"function"==typeof e.callee?"Arguments":r},_r=Sr?{}.toString:function(){return"[object "+Tr(this)+"]"};Sr||wt(Object.prototype,"toString",_r,{unsafe:!0});var Ar=function(){var t=$(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Pr=v(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),Er=v(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),Ir={UNSUPPORTED_Y:Pr,BROKEN_CARET:Er},jr=RegExp.prototype.exec,Rr=String.prototype.replace,Fr=jr,Nr=function(){var t=/a/,e=/b*/g;return jr.call(t,"a"),jr.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),qr=Ir.UNSUPPORTED_Y||Ir.BROKEN_CARET,Br=void 0!==/()??/.exec("")[1];(Nr||Br||qr)&&(Fr=function(t){var e,n,r,o,i=this,a=qr&&i.sticky,s=Ar.call(i),l=i.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),Br&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Nr&&(e=i.lastIndex),r=jr.call(a?n:i,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Nr&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Br&&r&&r.length>1&&Rr.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var Dr=Fr;Qt({target:"RegExp",proto:!0,forced:/./.exec!==Dr},{exec:Dr});var Lr=function(t){return function(e,n){var r,o,i=String(P(e)),a=Tt(n),s=i.length;return a<0||a>=s?t?"":void 0:(r=i.charCodeAt(a),r<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536)}},Mr={codeAt:Lr(!1),charAt:Lr(!0)},zr=Mr.charAt,$r=bt.set,Hr=bt.getterFor("String Iterator");ar(String,"String",function(t){$r(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=Hr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=zr(n,r),e.index+=t.length,{value:t,done:!1})});var Ur=Se("species"),Wr=!v(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),Vr=function(){return"$0"==="a".replace(/./,"$0")}(),Gr=!v(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Xr=function(t,e,n,r){var o=Se(t),i=!v(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)}),a=i&&!v(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[Ur]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e});if(!i||!a||"replace"===t&&(!Wr||!Vr)||"split"===t&&!Gr){var s=/./[o],l=n(o,""[t],function(t,e,n,r,o){return e.exec===Dr?i&&!o?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:Vr}),c=l[0],u=l[1];wt(String.prototype,t,c),wt(RegExp.prototype,o,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&V(RegExp.prototype[o],"sham",!0)},Yr=Mr.charAt,Kr=function(t,e,n){return e+(n?Yr(t,e).length:1)},Jr=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==T(t))throw TypeError("RegExp#exec called on incompatible receiver");return Dr.call(t,e)},Qr=Math.max,Zr=Math.min,to=Math.floor,eo=/\$([$&'`]|\d\d?|<[^>]*>)/g,no=/\$([$&'`]|\d\d?)/g,ro=function(t){return void 0===t?t:String(t)};Xr("replace",2,function(t,e,n,r){function o(t,n,r,o,i,a){var s=r+t.length,l=o.length,c=no;return void 0!==i&&(i=ne(i),c=eo),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=i[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>l){var h=to(u/10);return 0===h?e:h<=l?void 0===o[h-1]?a.charAt(1):o[h-1]+a.charAt(1):e}c=o[u-1]}return void 0===c?"":c})}return[function(n,r){var o=P(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,i){if(r.REPLACE_KEEPS_$0||"string"==typeof i&&-1===i.indexOf("$0")){var a=n(e,t,this,i);if(a.done)return a.value}var s=$(t),l=String(this),c="function"==typeof i;c||(i=String(i));var u=s.global;if(u){var h=s.unicode;s.lastIndex=0}for(var f=[];;){var d=Jr(s,l);if(null===d)break;if(f.push(d),!u)break;""===String(d[0])&&(s.lastIndex=Kr(l,At(s.lastIndex),h))}for(var p="",g=0,m=0;m<f.length;m++){d=f[m];for(var v=String(d[0]),y=Qr(Zr(Tt(d.index),l.length),0),b=[],w=1;w<d.length;w++)b.push(ro(d[w]));var x=d.groups;if(c){var S=[v].concat(b,y,l);void 0!==x&&S.push(x);var k=String(i.apply(void 0,S))}else k=o(v,l,y,b,x,i);y>=g&&(p+=l.slice(g,y)+k,g=y+v.length)}return p+l.slice(g)}]});var oo=Se("match"),io=function(t){var e;return I(t)&&(void 0!==(e=t[oo])?!!e:"RegExp"==T(t))},ao=Se("species"),so=function(t,e){var n,r=$(t).constructor;return void 0===r||void 0==(n=$(r)[ao])?e:Ee(n)},lo=[].push,co=Math.min,uo=!v(function(){return!RegExp(4294967295,"y")});Xr("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(P(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!io(t))return e.call(r,t,o);for(var i,a,s,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,h=new RegExp(t.source,c+"g");(i=Dr.call(h,r))&&!((a=h.lastIndex)>u&&(l.push(r.slice(u,i.index)),i.length>1&&i.index<r.length&&lo.apply(l,i.slice(1)),s=i[0].length,u=a,l.length>=o));)h.lastIndex===i.index&&h.lastIndex++;return u===r.length?!s&&h.test("")||l.push(""):l.push(r.slice(u)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=P(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var a=$(t),s=String(this),l=so(a,RegExp),c=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(uo?"y":"g"),h=new l(uo?a:"^(?:"+a.source+")",u),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===s.length)return null===Jr(h,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){h.lastIndex=uo?p:0;var m,v=Jr(h,uo?s:s.slice(p));if(null===v||(m=co(At(h.lastIndex+(uo?0:p)),s.length))===d)p=Kr(s,p,c);else{if(g.push(s.slice(d,p)),g.length===f)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===f)return g;p=d=m}}return g.push(s.slice(d)),g}]},!uo);var ho={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},fo=qe.forEach,po=ur("forEach")?function(t){return fo(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var go in ho){var mo=m[go],vo=mo&&mo.prototype;if(vo&&vo.forEach!==po)try{V(vo,"forEach",po)}catch(t){vo.forEach=po}}var yo=Se("iterator"),bo=Se("toStringTag"),wo=cr.values;for(var xo in ho){var So=m[xo],ko=So&&So.prototype;if(ko){if(ko[yo]!==wo)try{V(ko,yo,wo)}catch(t){ko[yo]=wo}if(ko[bo]||V(ko,bo,xo),ho[xo])for(var Co in cr)if(ko[Co]!==cr[Co])try{V(ko,Co,cr[Co])}catch(t){ko[Co]=cr[Co]}}}var Oo=t.fn.bootstrapTable.utils,To={json:"JSON",xml:"XML",png:"PNG",csv:"CSV",txt:"TXT",sql:"SQL",doc:"MS-Word",excel:"MS-Excel",xlsx:"MS-Excel (OpenXML)",powerpoint:"MS-Powerpoint",pdf:"PDF"};t.extend(t.fn.bootstrapTable.defaults,{showExport:!1,exportDataType:"basic",exportTypes:["json","xml","csv","txt","sql","excel"],exportOptions:{onCellHtmlData:function(t,e,n,r){return t.is("th")?t.find(".th-inner").text():r}},exportFooter:!1}),t.extend(t.fn.bootstrapTable.columnDefaults,{forceExport:!1}),t.extend(t.fn.bootstrapTable.defaults.icons,{export:{bootstrap3:"glyphicon-export icon-share",materialize:"file_download"}[t.fn.bootstrapTable.theme]||"fa-download"}),t.extend(t.fn.bootstrapTable.locales,{formatExport:function(){return"Export data"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales),t.fn.bootstrapTable.methods.push("exportTable"),t.extend(t.fn.bootstrapTable.defaults,{onExportSaved:function(t){return!1}}),t.extend(t.fn.bootstrapTable.Constructor.EVENTS,{"export-saved.bs.table":"onExportSaved"}),t.BootstrapTable=function(e){function n(){return r(this,n),h(this,l(n).apply(this,arguments))}return s(n,e),i(n,[{key:"initToolbar",value:function(){var e,r=this,o=this.options;this.showToolbar=this.showToolbar||o.showExport;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];if((e=d(l(n.prototype),"initToolbar",this)).call.apply(e,[this].concat(a)),this.options.showExport){var c=this.$toolbar.find(">.columns");if(this.$export=c.find("div.export"),this.$export.length)return void this.updateExportButton();var u=t(this.constants.html.toolbarDropdown.join("")),h=o.exportTypes;if("string"==typeof h){h=h.slice(1,-1).replace(/ /g,"").split(",").map(function(t){return t.slice(1,-1)})}this.$export=t(1===h.length?'\n <div class="export '.concat(this.constants.classes.buttonsDropdown,'"\n data-type="').concat(h[0],'">\n <button class="').concat(this.constants.buttonsClass,'"\n aria-label="Export"\n type="button"\n title="').concat(o.formatExport(),'">\n ').concat(o.showButtonIcons?Oo.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.export):"","\n ").concat(o.showButtonText?o.formatExport():"","\n </button>\n </div>\n "):'\n <div class="export '.concat(this.constants.classes.buttonsDropdown,'">\n <button class="').concat(this.constants.buttonsClass,' dropdown-toggle"\n aria-label="Export"\n data-toggle="dropdown"\n type="button"\n title="').concat(o.formatExport(),'">\n ').concat(o.showButtonIcons?Oo.sprintf(this.constants.html.icon,o.iconsPrefix,o.icons.export):"","\n ").concat(o.showButtonText?o.formatExport():"","\n ").concat(this.constants.html.dropdownCaret,"\n </button>\n </div>\n ")).appendTo(c);var f=this.$export;if(h.length>1){this.$export.append(u),u.children().length&&(u=u.children().eq(0));var p=!0,g=!1,m=void 0;try{for(var v,y=h[Symbol.iterator]();!(p=(v=y.next()).done);p=!0){var b=v.value;if(To.hasOwnProperty(b)){var w=t(Oo.sprintf(this.constants.html.pageDropdownItem,"",To[b]));w.attr("data-type",b),u.append(w)}}}catch(t){g=!0,m=t}finally{try{p||null==y.return||y.return()}finally{if(g)throw m}}f=u.children()}this.updateExportButton(),f.click(function(e){e.preventDefault();var n=t(e.currentTarget).data("type"),o={type:n,escape:!1};r.exportTable(o)}),this.handleToolbar()}}},{key:"handleToolbar",value:function(){this.$export&&("foundation"===t.fn.bootstrapTable.theme?this.$export.find(".dropdown-pane").attr("id","toolbar-export-id"):"materialize"===t.fn.bootstrapTable.theme&&this.$export.find(".dropdown-content").attr("id","toolbar-export-id"),d(l(n.prototype),"handleToolbar",this)&&d(l(n.prototype),"handleToolbar",this).call(this))}},{key:"exportTable",value:function(e){var n=this,r=this.options,o=this.header.stateField,i=r.cardView,s=function(a){o&&n.hideColumn(o),i&&n.toggleView();var s=n.getData();if(r.exportFooter){var l=n.$tableFooter.find("tr").first(),c={},u=[];t.each(l.children(),function(e,r){var o=t(r).children(".th-inner").first().html();c[n.columns[e].field]=" "===o?null:o,u.push(o)}),n.$body.append(n.$body.children().last()[0].outerHTML);var h=n.$body.children().last();t.each(h.children(),function(e,n){t(n).html(u[e])})}var f=n.getHiddenColumns();f.forEach(function(t){t.forceExport&&n.showColumn(t.field)}),"function"==typeof r.exportOptions.fileName&&(e.fileName=r.exportOptions.fileName()),n.$el.tableExport(t.extend({onAfterSaveToFile:function(){r.exportFooter&&n.load(s),o&&n.showColumn(o),i&&n.toggleView(),f.forEach(function(t){t.forceExport&&n.hideColumn(t.field)}),a&&a()}},r.exportOptions,e))};if("all"===r.exportDataType&&r.pagination){var l="server"===r.sidePagination?"post-body.bs.table":"page-change.bs.table",c=this.options.virtualScroll;this.$el.one(l,function(){s(function(){n.options.virtualScroll=c,n.togglePagination()})}),this.options.virtualScroll=!1,this.togglePagination(),this.trigger("export-saved",this.getData())}else if("selected"===r.exportDataType){var u=this.getData(),h=this.getSelections();if(!h.length)return;"server"===r.sidePagination&&(u=a({total:r.totalRows},this.options.dataField,u),h=a({total:h.length},this.options.dataField,h)),this.load(h),s(function(){n.load(u)}),this.trigger("export-saved",h)}else s(),this.trigger("export-saved",this.getData(!0))}},{key:"updateSelected",value:function(){d(l(n.prototype),"updateSelected",this).call(this),this.updateExportButton()}},{key:"updateExportButton",value:function(){"selected"===this.options.exportDataType&&this.$export.find("> button").prop("disabled",!this.getSelections().length)}}]),n}(t.BootstrapTable)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?c(t):e}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}t=t&&t.hasOwnProperty("default")?t.default:t;var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(t){return t&&t.Math==Math&&t},g=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof d&&d)||Function("return this")(),m=function(t){try{return!!t()}catch(t){return!0}},v=!m(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),y={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w=b&&!y.call({1:2},1),x=w?function(t){var e=b(this,t);return!!e&&e.enumerable}:y,S={f:x},k=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},C={}.toString,O=function(t){return C.call(t).slice(8,-1)},T="".split,_=m(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==O(t)?T.call(t,""):Object(t)}:Object,A=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},P=function(t){return _(A(t))},E=function(t){return"object"==typeof t?null!==t:"function"==typeof t},I=function(t,e){if(!E(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!E(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!E(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!E(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},j={}.hasOwnProperty,R=function(t,e){return j.call(t,e)},F=g.document,N=E(F)&&E(F.createElement),q=function(t){return N?F.createElement(t):{}},B=!v&&!m(function(){return 7!=Object.defineProperty(q("div"),"a",{get:function(){return 7}}).a}),D=Object.getOwnPropertyDescriptor,L=v?D:function(t,e){if(t=P(t),e=I(e,!0),B)try{return D(t,e)}catch(t){}if(R(t,e))return k(!S.f.call(t,e),t[e])},M={f:L},z=function(t){if(!E(t))throw TypeError(String(t)+" is not an object");return t},$=Object.defineProperty,H=v?$:function(t,e,n){if(z(t),e=I(e,!0),z(n),B)try{return $(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},U={f:H},W=v?function(t,e,n){return U.f(t,e,k(1,n))}:function(t,e,n){return t[e]=n,t},V=function(t,e){try{W(g,t,e)}catch(n){g[t]=e}return e},G=g["__core-js_shared__"]||V("__core-js_shared__",{}),X=G,Y=Function.toString;"function"!=typeof X.inspectSource&&(X.inspectSource=function(t){return Y.call(t)});var K,J,Q,Z=X.inspectSource,tt=g.WeakMap,et="function"==typeof tt&&/native code/.test(Z(tt)),nt=e(function(t){(t.exports=function(t,e){return X[t]||(X[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),rt=0,ot=Math.random(),it=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++rt+ot).toString(36)},at=nt("keys"),st=function(t){return at[t]||(at[t]=it(t))},lt={},ct=g.WeakMap,ut=function(t){return Q(t)?J(t):K(t,{})},ht=function(t){return function(e){var n;if(!E(e)||(n=J(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(et){var ft=new ct,dt=ft.get,pt=ft.has,gt=ft.set;K=function(t,e){return gt.call(ft,t,e),e},J=function(t){return dt.call(ft,t)||{}},Q=function(t){return pt.call(ft,t)}}else{var mt=st("state");lt[mt]=!0,K=function(t,e){return W(t,mt,e),e},J=function(t){return R(t,mt)?t[mt]:{}},Q=function(t){return R(t,mt)}}var vt,yt,bt={set:K,get:J,has:Q,enforce:ut,getterFor:ht},wt=e(function(t){var e=bt.get,n=bt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;if("function"==typeof o&&("string"!=typeof e||R(o,"name")||W(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t===g)return void(s?t[e]=o:V(e,o));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=o:W(t,e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||Z(this)})}),xt=g,St=function(t){return"function"==typeof t?t:void 0},kt=function(t,e){return arguments.length<2?St(xt[t])||St(g[t]):xt[t]&&xt[t][e]||g[t]&&g[t][e]},Ct=Math.ceil,Ot=Math.floor,Tt=function(t){return isNaN(t=+t)?0:(t>0?Ot:Ct)(t)},_t=Math.min,At=function(t){return t>0?_t(Tt(t),9007199254740991):0},Pt=Math.max,Et=Math.min,It=function(t,e){var n=Tt(t);return n<0?Pt(n+e,0):Et(n,e)},jt=function(t){return function(e,n,r){var o,i=P(e),a=At(i.length),s=It(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},Rt={includes:jt(!0),indexOf:jt(!1)},Ft=Rt.indexOf,Nt=function(t,e){var n,r=P(t),o=0,i=[];for(n in r)!R(lt,n)&&R(r,n)&&i.push(n);for(;e.length>o;)R(r,n=e[o++])&&(~Ft(i,n)||i.push(n));return i},qt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bt=qt.concat("length","prototype"),Dt=Object.getOwnPropertyNames||function(t){return Nt(t,Bt)},Lt={f:Dt},Mt=Object.getOwnPropertySymbols,zt={f:Mt},$t=kt("Reflect","ownKeys")||function(t){var e=Lt.f(z(t)),n=zt.f;return n?e.concat(n(t)):e},Ht=function(t,e){for(var n=$t(e),r=U.f,o=M.f,i=0;i<n.length;i++){var a=n[i];R(t,a)||r(t,a,o(e,a))}},Ut=/#|\.prototype\./,Wt=function(t,e){var n=Gt[Vt(t)];return n==Yt||n!=Xt&&("function"==typeof e?m(e):!!e)},Vt=Wt.normalize=function(t){return String(t).replace(Ut,".").toLowerCase()},Gt=Wt.data={},Xt=Wt.NATIVE="N",Yt=Wt.POLYFILL="P",Kt=Wt,Jt=M.f,Qt=function(t,e){var n,r,o,i,a,s=t.target,l=t.global,c=t.stat;if(n=l?g:c?g[s]||V(s,{}):(g[s]||{}).prototype)for(r in e){if(i=e[r],t.noTargetGet?(a=Jt(n,r),o=a&&a.value):o=n[r],!Kt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ht(i,o)}(t.sham||o&&o.sham)&&W(i,"sham",!0),wt(n,r,i,t)}},Zt=Array.isArray||function(t){return"Array"==O(t)},te=function(t){return Object(A(t))},ee=function(t,e,n){var r=I(e);r in t?U.f(t,r,k(0,n)):t[r]=n},ne=!!Object.getOwnPropertySymbols&&!m(function(){return!String(Symbol())}),re=ne&&!Symbol.sham&&"symbol"==typeof Symbol(),oe=nt("wks"),ie=g.Symbol,ae=re?ie:it,se=function(t){return R(oe,t)||(ne&&R(ie,t)?oe[t]=ie[t]:oe[t]=ae("Symbol."+t)),oe[t]},le=se("species"),ce=function(t,e){var n;return Zt(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!Zt(n.prototype)?E(n)&&null===(n=n[le])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ue=kt("navigator","userAgent")||"",he=g.process,fe=he&&he.versions,de=fe&&fe.v8;de?(vt=de.split("."),yt=vt[0]+vt[1]):ue&&(!(vt=ue.match(/Edge\/(\d+)/))||vt[1]>=74)&&(vt=ue.match(/Chrome\/(\d+)/))&&(yt=vt[1]);var pe=yt&&+yt,ge=se("species"),me=function(t){return pe>=51||!m(function(){var e=[],n=e.constructor={};return n[ge]=function(){return{foo:1}},1!==e[t](Boolean).foo})},ve=se("isConcatSpreadable"),ye=pe>=51||!m(function(){var t=[];return t[ve]=!1,t.concat()[0]!==t}),be=me("concat"),we=function(t){if(!E(t))return!1;var e=t[ve];return void 0!==e?!!e:Zt(t)};Qt({target:"Array",proto:!0,forced:!ye||!be},{concat:function(t){var e,n,r,o,i,a=te(this),s=ce(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],we(i)){if(o=At(i.length),l+o>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&ee(s,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ee(s,l++,i)}return s.length=l,s}});var xe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Se=function(t,e,n){if(xe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ke=[].push,Ce=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(s,l,c,u){for(var h,f,d=te(s),p=_(d),g=Se(l,c,3),m=At(p.length),v=0,y=u||ce,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=p[v],f=g(h,v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:ke.call(b,h)}else if(o)return!1;return i?-1:r||o?o:b}},Oe={forEach:Ce(0),map:Ce(1),filter:Ce(2),some:Ce(3),every:Ce(4),find:Ce(5),findIndex:Ce(6)},Te=Oe.filter,_e=me("filter"),Ae=_e&&!m(function(){[].filter.call({length:-1,0:1},function(t){throw t})});Qt({target:"Array",proto:!0,forced:!_e||!Ae},{filter:function(t){return Te(this,t,arguments.length>1?arguments[1]:void 0)}});var Pe,Ee=Object.keys||function(t){return Nt(t,qt)},Ie=v?Object.defineProperties:function(t,e){z(t);for(var n,r=Ee(e),o=r.length,i=0;o>i;)U.f(t,n=r[i++],e[n]);return t},je=kt("document","documentElement"),Re=st("IE_PROTO"),Fe=function(){},Ne=function(t){return"<script>"+t+"<\/script>"},qe=function(t){t.write(Ne("")),t.close();var e=t.parentWindow.Object;return t=null,e},Be=function(){var t,e=q("iframe");return e.style.display="none",je.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(Ne("document.F=Object")),t.close(),t.F},De=function(){try{Pe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}De=Pe?qe(Pe):Be();for(var t=qt.length;t--;)delete De.prototype[qt[t]];return De()};lt[Re]=!0;var Le=Object.create||function(t,e){var n;return null!==t?(Fe.prototype=z(t),n=new Fe,Fe.prototype=null,n[Re]=t):n=De(),void 0===e?n:Ie(n,e)},Me=se("unscopables"),ze=Array.prototype;void 0==ze[Me]&&U.f(ze,Me,{configurable:!0,value:Le(null)});var $e=Oe.find,He=!0;"find"in[]&&Array(1).find(function(){He=!1}),Qt({target:"Array",proto:!0,forced:He},{find:function(t){return $e(this,t,arguments.length>1?arguments[1]:void 0)}}),function(t){ze[Me][t]=!0}("find");var Ue=function(t,e){var n=[][t];return!n||!m(function(){n.call(null,e||function(){throw 1},1)})},We=[].join,Ve=_!=Object,Ge=Ue("join",",");Qt({target:"Array",proto:!0,forced:Ve||Ge},{join:function(t){return We.call(P(this),void 0===t?",":t)}});var Xe=function(){var t=z(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Ye=m(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),Ke=m(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),Je={UNSUPPORTED_Y:Ye,BROKEN_CARET:Ke},Qe=RegExp.prototype.exec,Ze=String.prototype.replace,tn=Qe,en=function(){var t=/a/,e=/b*/g;return Qe.call(t,"a"),Qe.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),nn=Je.UNSUPPORTED_Y||Je.BROKEN_CARET,rn=void 0!==/()??/.exec("")[1];(en||rn||nn)&&(tn=function(t){var e,n,r,o,i=this,a=nn&&i.sticky,s=Xe.call(i),l=i.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),rn&&(n=new RegExp("^"+l+"$(?!\\s)",s)),en&&(e=i.lastIndex),r=Qe.call(a?n:i,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=i.lastIndex,
|
||
i.lastIndex+=r[0].length):i.lastIndex=0:en&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),rn&&r&&r.length>1&&Ze.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var on=tn;Qt({target:"RegExp",proto:!0,forced:/./.exec!==on},{exec:on});var an=se("species"),sn=!m(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),ln=function(){return"$0"==="a".replace(/./,"$0")}(),cn=!m(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),un=function(t,e,n,r){var o=se(t),i=!m(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)}),a=i&&!m(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[an]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e});if(!i||!a||"replace"===t&&(!sn||!ln)||"split"===t&&!cn){var s=/./[o],l=n(o,""[t],function(t,e,n,r,o){return e.exec===on?i&&!o?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:ln}),c=l[0],u=l[1];wt(String.prototype,t,c),wt(RegExp.prototype,o,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&W(RegExp.prototype[o],"sham",!0)},hn=function(t){return function(e,n){var r,o,i=String(A(e)),a=Tt(n),s=i.length;return a<0||a>=s?t?"":void 0:(r=i.charCodeAt(a),r<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536)}},fn={codeAt:hn(!1),charAt:hn(!0)},dn=fn.charAt,pn=function(t,e,n){return e+(n?dn(t,e).length:1)},gn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==O(t))throw TypeError("RegExp#exec called on incompatible receiver");return on.call(t,e)},mn=Math.max,vn=Math.min,yn=Math.floor,bn=/\$([$&'`]|\d\d?|<[^>]*>)/g,wn=/\$([$&'`]|\d\d?)/g,xn=function(t){return void 0===t?t:String(t)};un("replace",2,function(t,e,n,r){function o(t,n,r,o,i,a){var s=r+t.length,l=o.length,c=wn;return void 0!==i&&(i=te(i),c=bn),e.call(a,c,function(e,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=i[a.slice(1,-1)];break;default:var u=+a;if(0===u)return e;if(u>l){var h=yn(u/10);return 0===h?e:h<=l?void 0===o[h-1]?a.charAt(1):o[h-1]+a.charAt(1):e}c=o[u-1]}return void 0===c?"":c})}return[function(n,r){var o=A(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,i){if(r.REPLACE_KEEPS_$0||"string"==typeof i&&-1===i.indexOf("$0")){var a=n(e,t,this,i);if(a.done)return a.value}var s=z(t),l=String(this),c="function"==typeof i;c||(i=String(i));var u=s.global;if(u){var h=s.unicode;s.lastIndex=0}for(var f=[];;){var d=gn(s,l);if(null===d)break;if(f.push(d),!u)break;""===String(d[0])&&(s.lastIndex=pn(l,At(s.lastIndex),h))}for(var p="",g=0,m=0;m<f.length;m++){d=f[m];for(var v=String(d[0]),y=mn(vn(Tt(d.index),l.length),0),b=[],w=1;w<d.length;w++)b.push(xn(d[w]));var x=d.groups;if(c){var S=[v].concat(b,y,l);void 0!==x&&S.push(x);var k=String(i.apply(void 0,S))}else k=o(v,l,y,b,x,i);y>=g&&(p+=l.slice(g,y)+k,g=y+v.length)}return p+l.slice(g)}]});var Sn=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};un("search",1,function(t,e,n){return[function(e){var n=A(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=z(t),i=String(this),a=o.lastIndex;Sn(a,0)||(o.lastIndex=0);var s=gn(o,i);return Sn(o.lastIndex,a)||(o.lastIndex=a),null===s?-1:s.index}]});var kn=se("match"),Cn=function(t){var e;return E(t)&&(void 0!==(e=t[kn])?!!e:"RegExp"==O(t))},On=se("species"),Tn=function(t,e){var n,r=z(t).constructor;return void 0===r||void 0==(n=z(r)[On])?e:xe(n)},_n=[].push,An=Math.min,Pn=!m(function(){return!RegExp(4294967295,"y")});un("split",2,function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(A(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Cn(t))return e.call(r,t,o);for(var i,a,s,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,h=new RegExp(t.source,c+"g");(i=on.call(h,r))&&!((a=h.lastIndex)>u&&(l.push(r.slice(u,i.index)),i.length>1&&i.index<r.length&&_n.apply(l,i.slice(1)),s=i[0].length,u=a,l.length>=o));)h.lastIndex===i.index&&h.lastIndex++;return u===r.length?!s&&h.test("")||l.push(""):l.push(r.slice(u)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=A(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var a=z(t),s=String(this),l=Tn(a,RegExp),c=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Pn?"y":"g"),h=new l(Pn?a:"^(?:"+a.source+")",u),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===s.length)return null===gn(h,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){h.lastIndex=Pn?p:0;var m,v=gn(h,Pn?s:s.slice(p));if(null===v||(m=An(At(h.lastIndex+(Pn?0:p)),s.length))===d)p=pn(s,p,c);else{if(g.push(s.slice(d,p)),g.length===f)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===f)return g;p=d=m}}return g.push(s.slice(d)),g}]},!Pn);var En={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},In=Oe.forEach,jn=Ue("forEach")?function(t){return In(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;for(var Rn in En){var Fn=g[Rn],Nn=Fn&&Fn.prototype;if(Nn&&Nn.forEach!==jn)try{W(Nn,"forEach",jn)}catch(t){Nn.forEach=jn}}var qn=t.fn.bootstrapTable.utils,Bn={cookieIds:{sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",columns:"bs.table.columns",searchText:"bs.table.searchText",reorderColumns:"bs.table.reorderColumns",filterControl:"bs.table.filterControl",filterBy:"bs.table.filterBy"},getCurrentHeader:function(t){var e=t.$header;return t.options.height&&(e=t.$tableHeader),e},getCurrentSearchControls:function(t){var e="select, input";return t.options.height&&(e="table select, table input"),e},cookieEnabled:function(){return!!navigator.cookieEnabled},inArrayCookiesEnabled:function(t,e){for(var n=-1,r=0;r<e.length;r++)if(t.toLowerCase()===e[r].toLowerCase()){n=r;break}return n},setCookie:function(t,e,n){if(t.options.cookie&&Bn.cookieEnabled()&&""!==t.options.cookieIdTable&&-1!==Bn.inArrayCookiesEnabled(e,t.options.cookiesEnabled)){switch(e="".concat(t.options.cookieIdTable,".").concat(e),t.options.cookieStorage){case"cookieStorage":document.cookie=[e,"=",encodeURIComponent(n),"; expires=".concat(Bn.calculateExpiration(t.options.cookieExpire)),t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):"",t.options.cookieSecure?"; secure":""].join("");break;case"localStorage":localStorage.setItem(e,n);break;case"sessionStorage":sessionStorage.setItem(e,n);break;case"customStorage":if(!t.options.cookieCustomStorageSet||!t.options.cookieCustomStorageGet||!t.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");qn.calculateObjectValue(t.options,t.options.cookieCustomStorageSet,[e,n],"");break;default:return!1}return!0}},getCookie:function(t,e,n){if(!n)return null;if(-1===Bn.inArrayCookiesEnabled(n,t.options.cookiesEnabled))return null;switch(n="".concat(e,".").concat(n),t.options.cookieStorage){case"cookieStorage":var r="; ".concat(document.cookie),o=r.split("; ".concat(n,"="));return 2===o.length?decodeURIComponent(o.pop().split(";").shift()):null;case"localStorage":return localStorage.getItem(n);case"sessionStorage":return sessionStorage.getItem(n);case"customStorage":if(!t.options.cookieCustomStorageSet||!t.options.cookieCustomStorageGet||!t.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");return qn.calculateObjectValue(t.options,t.options.cookieCustomStorageGet,[n],"");default:return null}},deleteCookie:function(t,e,n){switch(n="".concat(e,".").concat(n),t.options.cookieStorage){case"cookieStorage":document.cookie=[encodeURIComponent(n),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):""].join("");break;case"localStorage":localStorage.removeItem(n);break;case"sessionStorage":sessionStorage.removeItem(n);break;case"customStorage":if(!t.options.cookieCustomStorageSet||!t.options.cookieCustomStorageGet||!t.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");qn.calculateObjectValue(t.options,t.options.cookieCustomStorageDelete,[n],"");break;default:return!1}return!0},calculateExpiration:function(t){var e=t.replace(/[0-9]*/,"");switch(t=t.replace(/[A-Za-z]{1,2}/,""),e.toLowerCase()){case"s":t=+t;break;case"mi":t*=60;break;case"h":t=60*t*60;break;case"d":t=24*t*60*60;break;case"m":t=30*t*24*60*60;break;case"y":t=365*t*24*60*60;break;default:t=void 0}if(!t)return"";var n=new Date;return n.setTime(n.getTime()+1e3*t),n.toGMTString()},initCookieFilters:function(e){setTimeout(function(){var n=JSON.parse(Bn.getCookie(e,e.options.cookieIdTable,Bn.cookieIds.filterControl));if(!e.options.filterControlValuesLoaded&&n){var r={},o=Bn.getCurrentHeader(e),i=Bn.getCurrentSearchControls(e),a=function(t,e){e.forEach(function(e){if(""!==e.text&&"INPUT"===t.tagName)t.value=e.text,r[e.field]=e.text;else if(""!==e.text&&"SELECT"===t.tagName){var n=document.createElement("option");n.value=e.text,n.text=e.text,t.add(n,t[1]),t.selectedIndex=1,r[e.field]=e.text}})};o.find(i).each(function(){var e=t(this).closest("[data-field]").data("field"),r=n.filter(function(t){return t.field===e});a(this,r)}),e.initColumnSearch(r),e.options.filterControlValuesLoaded=!0,e.initServer()}},250)}};t.extend(t.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:"2h",cookiePath:null,cookieDomain:null,cookieSecure:null,cookieIdTable:"",cookiesEnabled:["bs.table.sortOrder","bs.table.sortName","bs.table.pageNumber","bs.table.pageList","bs.table.columns","bs.table.searchText","bs.table.filterControl","bs.table.filterBy","bs.table.reorderColumns"],cookieStorage:"cookieStorage",filterControls:[],filterControlValuesLoaded:!1}),t.fn.bootstrapTable.methods.push("getCookies"),t.fn.bootstrapTable.methods.push("deleteCookie"),t.extend(t.fn.bootstrapTable.utils,{setCookie:Bn.setCookie,getCookie:Bn.getCookie}),t.BootstrapTable=function(e){function n(){return r(this,n),u(this,s(n).apply(this,arguments))}return a(n,e),i(n,[{key:"init",value:function(){if(this.options.cookie){var t=Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.filterBy);if("boolean"==typeof t&&!t)throw new Error("The cookie value of filterBy must be a json!");var e={};try{e=JSON.parse(t)}catch(t){throw new Error("Could not parse the json of the filterBy cookie!")}if(this.filterColumns=e||{},this.options.filterControls=[],this.options.filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/'/g,"").replace(/ /g,"").toLowerCase().split(","):this.options.cookiesEnabled,this.options.filterControl){var r=this;this.$el.on("column-search.bs.table",function(t,e,n){for(var o=!0,i=0;i<r.options.filterControls.length;i++)if(r.options.filterControls[i].field===e){r.options.filterControls[i].text=n,o=!1;break}o&&r.options.filterControls.push({field:e,text:n}),Bn.setCookie(r,Bn.cookieIds.filterControl,JSON.stringify(r.options.filterControls))}).on("created-controls.bs.table",Bn.initCookieFilters(r))}}f(s(n.prototype),"init",this).call(this)}},{key:"initServer",value:function(){var t;if(this.options.cookie&&this.options.filterControl&&!this.options.filterControlValuesLoaded){if(JSON.parse(Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.filterControl)))return}for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"initServer",this)).call.apply(t,[this].concat(r))}},{key:"initTable",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"initTable",this)).call.apply(t,[this].concat(r)),this.initCookie()}},{key:"onSort",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"onSort",this)).call.apply(t,[this].concat(r)),Bn.setCookie(this,Bn.cookieIds.sortOrder,this.options.sortOrder),Bn.setCookie(this,Bn.cookieIds.sortName,this.options.sortName)}},{key:"onPageNumber",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"onPageNumber",this)).call.apply(t,[this].concat(r)),Bn.setCookie(this,Bn.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageListChange",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"onPageListChange",this)).call.apply(t,[this].concat(r)),Bn.setCookie(this,Bn.cookieIds.pageList,this.options.pageSize),Bn.setCookie(this,Bn.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPagePre",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"onPagePre",this)).call.apply(t,[this].concat(r)),Bn.setCookie(this,Bn.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageNext",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"onPageNext",this)).call.apply(t,[this].concat(r)),Bn.setCookie(this,Bn.cookieIds.pageNumber,this.options.pageNumber)}},{key:"_toggleColumn",value:function(){for(var e,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];(e=f(s(n.prototype),"_toggleColumn",this)).call.apply(e,[this].concat(o));var a=[];t.each(this.columns,function(t,e){e.visible&&a.push(e.field)}),Bn.setCookie(this,Bn.cookieIds.columns,JSON.stringify(a))}},{key:"selectPage",value:function(t){f(s(n.prototype),"selectPage",this).call(this,t),Bn.setCookie(this,Bn.cookieIds.pageNumber,t)}},{key:"onSearch",value:function(t){f(s(n.prototype),"onSearch",this).call(this,t),this.options.search&&Bn.setCookie(this,Bn.cookieIds.searchText,this.searchText),Bn.setCookie(this,Bn.cookieIds.pageNumber,this.options.pageNumber)}},{key:"initHeader",value:function(){var t;this.options.reorderableColumns&&(this.columnsSortOrder=JSON.parse(Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.reorderColumns)));for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"initHeader",this)).call.apply(t,[this].concat(r))}},{key:"persistReorderColumnsState",value:function(t){Bn.setCookie(t,Bn.cookieIds.reorderColumns,JSON.stringify(t.columnsSortOrder))}},{key:"filterBy",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];(t=f(s(n.prototype),"filterBy",this)).call.apply(t,[this].concat(r)),Bn.setCookie(this,Bn.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:"initCookie",value:function(){if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire||!Bn.cookieEnabled())return console.error("Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies."),void(this.options.cookie=!1);var e=Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.sortOrder),n=Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.sortName),r=Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.pageNumber),o=Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.pageList),i=Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.searchText),a=Bn.getCookie(this,this.options.cookieIdTable,Bn.cookieIds.columns);if("boolean"==typeof a&&!a)throw new Error("The cookie value of filterBy must be a json!");var s={};try{s=JSON.parse(a)}catch(t){throw new Error("Could not parse the json of the columns cookie!",a)}this.options.sortOrder=e||this.options.sortOrder,this.options.sortName=n||this.options.sortName,this.options.pageNumber=r?+r:this.options.pageNumber,this.options.pageSize=o?o===this.options.formatAllRows()?o:+o:this.options.pageSize,this.options.searchText=i||"",s&&t.each(this.columns,function(e,n){n.visible=-1!==t.inArray(n.field,s)})}}},{key:"getCookies",value:function(){var e=this,n={};return t.each(Bn.cookieIds,function(t,r){n[t]=Bn.getCookie(e,e.options.cookieIdTable,r),"columns"===t&&(n[t]=JSON.parse(n[t]))}),n}},{key:"deleteCookie",value:function(t){""!==t&&Bn.cookieEnabled()&&Bn.deleteCookie(this,this.options.cookieIdTable,Bn.cookieIds[t])}}]),n}(t.BootstrapTable)}),jQuery.base64=function(t){function e(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}function n(t){var n,o,i,a,s,l,c,u="",h=0;for(t=e(t);h<t.length;)n=t.charCodeAt(h++),o=t.charCodeAt(h++),i=t.charCodeAt(h++),a=n>>2,s=(3&n)<<4|o>>4,l=(15&o)<<2|i>>6,c=63&i,isNaN(o)?l=c=64:isNaN(i)&&(c=64),u=u+r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(c);return u}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(t){return n(t)}}}(jQuery),function(t){t.fn.tableExport=function(e){function n(e){var n=[];return o(e,"thead").each(function(){n.push.apply(n,o(t(this),W.theadSelector).toArray())}),n}function r(e){var n=[];return o(e,"tbody").each(function(){n.push.apply(n,o(t(this),W.tbodySelector).toArray())}),W.tfootSelector.length&&o(e,"tfoot").each(function(){n.push.apply(n,o(t(this),W.tfootSelector).toArray())}),n}function o(e,n){var r=e[0].tagName,o=e.parents(r).length;return e.find(n).filter(function(){return o===t(this).closest(r).parents(r).length})}function i(e){var n=[];return t(e).find("thead").first().find("th").each(function(e,r){void 0!==t(r).attr("data-field")?n[e]=t(r).attr("data-field"):n[e]=e.toString()}),n}function a(e){var n=void 0!==e[0].rowIndex,r=!1===n&&void 0!==e[0].cellIndex,o=r||n?s(e):e.is(":visible"),i=e.attr("data-tableexport-display");return r&&"none"!==i&&"always"!==i&&(e=t(e[0].parentNode),n=void 0!==e[0].rowIndex,i=e.attr("data-tableexport-display")),n&&"none"!==i&&"always"!==i&&(i=e.closest("table").attr("data-tableexport-display")),"none"!==i&&(!0===o||"always"===i)}function s(t){var e=[];return rt&&(e=nt.filter(function(){var e=!1;return this.nodeType===t[0].nodeType&&(void 0!==this.rowIndex&&this.rowIndex===t[0].rowIndex?e=!0:void 0!==this.cellIndex&&this.cellIndex===t[0].cellIndex&&void 0!==this.parentNode.rowIndex&&void 0!==t[0].parentNode.rowIndex&&this.parentNode.rowIndex===t[0].parentNode.rowIndex&&(e=!0)),e})),!1===rt||0===e.length}function l(e,n,r){var o=!1;return a(e)?W.ignoreColumn.length>0&&(-1!==t.inArray(r,W.ignoreColumn)||-1!==t.inArray(r-n,W.ignoreColumn)||tt.length>r&&void 0!==tt[r]&&-1!==t.inArray(tt[r],W.ignoreColumn))&&(o=!0):o=!0,o}function c(e,n,r,i,s){if("function"==typeof s){var c=!1;if("function"==typeof W.onIgnoreRow&&(c=W.onIgnoreRow(t(e),r)),!1===c&&(0===W.ignoreRow.length||-1===t.inArray(r,W.ignoreRow)&&-1===t.inArray(r-i,W.ignoreRow))&&a(t(e))){var u=o(t(e),n),h=0;u.each(function(e){var n,o=t(this),i=A(this),a=P(this);if(t.each(et,function(){var t=this;if(r>=t.s.r&&r<=t.e.r&&h>=t.s.c&&h<=t.e.c)for(n=0;n<=t.e.c-t.s.c;++n)s(null,r,h++)}),!1===l(o,u.length,e)&&((a||i)&&(a=a||1,i=i||1,et.push({s:{r:r,c:h},e:{r:r+a-1,c:h+i-1}})),s(this,r,h++)),i)for(n=0;n<i-1;++n)s(null,r,h++)}),t.each(et,function(){var t=this;if(r>=t.s.r&&r<=t.e.r&&h>=t.s.c&&h<=t.e.c)for(Ot=0;Ot<=t.e.c-t.s.c;++Ot)s(null,r,h++)})}}}function u(t,e,n,r){if(void 0!==r.images){var o=r.images[n];if(void 0!==o){var i=e.getBoundingClientRect(),a=t.width/t.height,s=i.width/i.height,l=t.width,c=t.height,u=0;s<=a?(c=Math.min(t.height,i.height),l=i.width*c/i.height):s>a&&(l=Math.min(t.width,i.width),c=i.height*l/i.width),l*=19.049976/25.4,c*=19.049976/25.4,c<t.height&&(u=(t.height-c)/2);try{r.doc.addImage(o.src,t.textPos.x,t.y+u,l,c)}catch(t){}t.textPos.x+=l}}}function h(t,e){if("string"===W.outputMode)return t.output();if("base64"===W.outputMode)return H(t.output());if("window"===W.outputMode)return window.URL=window.URL||window.webkitURL,void window.open(window.URL.createObjectURL(t.output("blob")));try{var n=t.output("blob");saveAs(n,W.fileName+".pdf")}catch(n){z(W.fileName+".pdf","data:application/pdf"+(e?"":";base64")+",",e?t.output("blob"):t.output())}}function f(t,e,n){var r=0;if(void 0!==n&&(r=n.colspan),r>=0){for(var o=t.width,i=t.textPos.x,a=e.table.columns.indexOf(e.column),s=1;s<r;s++){o+=e.table.columns[a+s].width}if(r>1&&("right"===t.styles.halign?i=t.textPos.x+o-t.width:"center"===t.styles.halign&&(i=t.textPos.x+(o-t.width)/2)),t.width=o,t.textPos.x=i,void 0!==n&&n.rowspan>1&&(t.height=t.height*n.rowspan),"middle"===t.styles.valign||"bottom"===t.styles.valign){var l="string"==typeof t.text?t.text.split(/\r\n|\r|\n/g):t.text,c=l.length||1;c>2&&(t.textPos.y-=(2-G)/2*e.row.styles.fontSize*(c-2)/3)}return!0}return!1}function d(e,n,r){if(void 0!==e&&null!==e)if(e.hasAttribute("data-tableexport-canvas")){var o=(new Date).getTime();t(e).attr("data-tableexport-canvas",o),r.images[o]={url:'[data-tableexport-canvas="'+o+'"]',src:null}}else"undefined"!==n&&null!=n&&n.each(function(){if(t(this).is("img")){var n=L(this.src);r.images[n]={url:this.src,src:this.src}}d(e,t(this).children(),r)})}function p(e,n,r){n.each(function(){if(t(this).is("div")){var n=T(E(this,"background-color"),[255,255,255]),o=T(E(this,"border-top-color"),[0,0,0]),i=j(this,"border-top-width",W.jspdf.unit),a=this.getBoundingClientRect(),s=this.offsetLeft*r.wScaleFactor,l=this.offsetTop*r.hScaleFactor,c=a.width*r.wScaleFactor,h=a.height*r.hScaleFactor;r.doc.setDrawColor.apply(void 0,o),r.doc.setFillColor.apply(void 0,n),r.doc.setLineWidth(i),r.doc.rect(e.x+s,e.y+l,c,h,i?"FD":"F")}else if(t(this).is("img")){var f=L(this.src);u(e,this,f,r)}p(e,t(this).children(),r)})}function g(e,n,r){if("function"==typeof r.onAutotableText)r.onAutotableText(r.doc,e,n);else{var o=e.textPos.x,i=e.textPos.y,a={halign:e.styles.halign,valign:e.styles.valign};if(n.length){for(var s=n[0];s.previousSibling;)s=s.previousSibling;for(var l=!1,c=!1;s;){var u=s.innerText||s.textContent||"",h=u.length&&" "===u[0]?" ":"",f=u.length>1&&" "===u[u.length-1]?" ":"";!0!==W.preserve.leadingWS&&(u=h+y(u)),!0!==W.preserve.trailingWS&&(u=b(u)+f),t(s).is("br")&&(o=e.textPos.x,i+=r.doc.internal.getFontSize()),t(s).is("b")?l=!0:t(s).is("i")&&(c=!0),(l||c)&&r.doc.setFontType(l&&c?"bolditalic":l?"bold":"italic");var d=r.doc.getStringUnitWidth(u)*r.doc.internal.getFontSize();if(d){if("linebreak"===e.styles.overflow&&o>e.textPos.x&&o+d>e.textPos.x+e.width){if(".,!%*;:=-".indexOf(u.charAt(0))>=0){var p=u.charAt(0);d=r.doc.getStringUnitWidth(p)*r.doc.internal.getFontSize(),o+d<=e.textPos.x+e.width&&(r.doc.autoTableText(p,o,i,a),u=u.substring(1,u.length)),d=r.doc.getStringUnitWidth(u)*r.doc.internal.getFontSize()}o=e.textPos.x,i+=r.doc.internal.getFontSize()}if("visible"!==e.styles.overflow)for(;u.length&&o+d>e.textPos.x+e.width;)u=u.substring(0,u.length-1),d=r.doc.getStringUnitWidth(u)*r.doc.internal.getFontSize();r.doc.autoTableText(u,o,i,a),o+=d}(l||c)&&(t(s).is("b")?l=!1:t(s).is("i")&&(c=!1),r.doc.setFontType(l||c?l?"bold":"italic":"normal")),s=s.nextSibling}e.textPos.x=o,e.textPos.y=i}else r.doc.autoTableText(e.text,e.textPos.x,e.textPos.y,a)}}function m(t){return null==t?"":t.toString().replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")}function v(t,e,n){return null==t?"":t.toString().replace(new RegExp(m(e),"g"),n)}function y(t){return null==t?"":t.toString().replace(/^\s+/,"")}function b(t){return null==t?"":t.toString().replace(/\s+$/,"")}function w(t){W.date.pattern.lastIndex=0;var e=W.date.pattern.exec(t);if(null==e)return!1;var n=+e[W.date.match_y];if(n<0||n>8099)return!1;var r=1*e[W.date.match_m],o=1*e[W.date.match_d];if(!isFinite(o))return!1;var i=new Date(n,r-1,o,0,0,0);return i.getFullYear()===n&&i.getMonth()===r-1&&i.getDate()===o&&new Date(Date.UTC(n,r-1,o,0,0,0))}function x(t){return t=t||"0",""!==W.numbers.html.thousandsSeparator&&(t=v(t,W.numbers.html.thousandsSeparator,"")),"."!==W.numbers.html.decimalMark&&(t=v(t,W.numbers.html.decimalMark,".")),("number"==typeof t||!1!==jQuery.isNumeric(t))&&t}function S(t){return t.indexOf("%")>-1?!1!==(t=x(t.replace(/%/g,"")))&&(t/=100):t=!1,t}function k(e,n,r,o){var i="",a="text";if(null!==e){var s,l=t(e);if(l[0].hasAttribute("data-tableexport-canvas"))s="";else if(l[0].hasAttribute("data-tableexport-value"))s=l.attr("data-tableexport-value"),s=s?s+"":"";else if(s=l.html(),"function"==typeof W.onCellHtmlData)s=W.onCellHtmlData(l,n,r,s);else if(""!==s){var c=t.parseHTML(s),u=0,h=0;s="",t.each(c,function(){if(t(this).is("input"))s+=l.find("input").eq(u++).val();else if(t(this).is("select"))s+=l.find("select option:selected").eq(h++).text();else if(t(this).is("br"))s+="<br>";else if(void 0===t(this).html()?s+=t(this).text():(void 0===jQuery().bootstrapTable||!1===t(this).hasClass("fht-cell")&&!1===t(this).hasClass("filterControl")&&0===l.parents(".detail-view").length)&&(s+=t(this).html()),t(this).is("a")){var e=l.find("a").attr("href")||"";"function"==typeof W.onCellHtmlHyperlink?i+=W.onCellHtmlHyperlink(l,n,r,e,s):"href"===W.htmlHyperlink?i+=e:i+=s,s=""}})}if(s&&""!==s&&!0===W.htmlContent)i=t.trim(s);else if(s&&""!==s){var f=l.attr("data-tableexport-cellformat");if(""!==f){var d=s.replace(/\n/g,"\u2028").replace(/(<\s*br([^>]*)>)/gi,""),p=t("<div/>").html(d).contents(),g=!1;if(d="",t.each(p.text().split("\u2028"),function(t,e){t>0&&(d+=" "),!0!==W.preserve.leadingWS&&(e=y(e)),d+=!0!==W.preserve.trailingWS?b(e):e}),t.each(d.split(""),function(t,e){t>0&&(i+="\n"),!0!==W.preserve.leadingWS&&(e=y(e)),!0!==W.preserve.trailingWS&&(e=b(e)),i+=e.replace(/\u00AD/g,"")}),i=i.replace(/\u00A0/g," "),"json"===W.type||"excel"===W.type&&"xmlss"===W.mso.fileFormat||!1===W.numbers.output)!1!==(g=x(i))&&(a="number",i=Number(g));else if((W.numbers.html.decimalMark!==W.numbers.output.decimalMark||W.numbers.html.thousandsSeparator!==W.numbers.output.thousandsSeparator)&&!1!==(g=x(i))){var m=(""+g.substr(g<0?1:0)).split(".");1===m.length&&(m[1]="");var v=m[0].length>3?m[0].length%3:0;a="number",i=(g<0?"-":"")+(W.numbers.output.thousandsSeparator?(v?m[0].substr(0,v)+W.numbers.output.thousandsSeparator:"")+m[0].substr(v).replace(/(\d{3})(?=\d)/g,"$1"+W.numbers.output.thousandsSeparator):m[0])+(m[1].length?W.numbers.output.decimalMark+m[1]:"")}}else i=s}!0===W.escape&&(i=escape(i)),"function"==typeof W.onCellData&&(i=W.onCellData(l,n,r,i,a))}return void 0!==o&&(o.type=a),i}function C(t){if(t.length>0&&!0===W.preventInjection){if("=+-@".indexOf(t.charAt(0))>=0)return"'"+t}return t}function O(t,e,n){return e+"-"+n.toLowerCase()}function T(t,e){var n=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,r=n.exec(t),o=e;return r&&(o=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])]),o}function _(t){var e=E(t,"text-align"),n=E(t,"font-weight"),r=E(t,"font-style"),o="";"start"===e&&(e="rtl"===E(t,"direction")?"right":"left"),n>=700&&(o="bold"),"italic"===r&&(o+=r),""===o&&(o="normal");var i={style:{align:e,bcolor:T(E(t,"background-color"),[255,255,255]),color:T(E(t,"color"),[0,0,0]),fstyle:o},colspan:A(t),rowspan:P(t)};if(null!==t){var a=t.getBoundingClientRect();i.rect={width:a.width,height:a.height}}return i}function A(e){var n=t(e).attr("data-tableexport-colspan");return void 0===n&&t(e).is("[colspan]")&&(n=t(e).attr("colspan")),parseInt(n)||0}function P(e){var n=t(e).attr("data-tableexport-rowspan");return void 0===n&&t(e).is("[rowspan]")&&(n=t(e).attr("rowspan")),parseInt(n)||0}function E(t,e){try{return window.getComputedStyle?(e=e.replace(/([a-z])([A-Z])/,O),window.getComputedStyle(t,null).getPropertyValue(e)):t.currentStyle?t.currentStyle[e]:t.style[e]}catch(t){}return""}function I(t,e,n){var r=document.createElement("div");r.style.overflow="hidden",r.style.visibility="hidden",t.appendChild(r),r.style.width=100+n;var o=100/r.offsetWidth;return t.removeChild(r),e*o}function j(t,e,n){var r=E(t,e),o=r.match(/\d+/);return null!==o?(o=o[0],I(t.parentElement,o,n)):0}function R(e){for(var n,r,o,i,s,c={},u=e.getElementsByTagName("tr"),h={s:{r:0,c:0},e:{r:0,c:0}},f=[],d=0,p=[],g=0,m=0,v=XLSX.SSF.get_table();g<u.length&&m<1e7;++g){var y=u[g],b=!1;if("function"==typeof W.onIgnoreRow&&(b=W.onIgnoreRow(t(y),g)),!0!==b&&(0===W.ignoreRow.length||-1===t.inArray(g,W.ignoreRow)&&-1===t.inArray(g-u.length,W.ignoreRow))&&!1!==a(t(y))){var x=y.children,S=0;for(n=0;n<x.length;++n)s=x[n],i=+A(s)||1,S+=i;var C=0;for(n=r=0;n<x.length;++n){s=x[n],i=+A(s)||1;var O=n+C;if(!l(t(s),S,O+(O<r?r-O:0))){for(C+=i-1,d=0;d<f.length;++d){var T=f[d];T.s.c==r&&T.s.r<=m&&m<=T.e.r&&(r=T.e.c+1,d=-1)}((o=+P(s))>0||i>1)&&f.push({s:{r:m,c:r},e:{r:m+(o||1)-1,c:r+i-1}});var _={type:""},E=k(s,g,n+C,_),I={t:"s",v:E},j="";if(""!==t(s).attr("data-tableexport-cellformat")){var R=parseInt(t(s).attr("data-tableexport-xlsxformatid")||0);0===R&&"function"==typeof W.mso.xslx.formatId.numbers&&(R=W.mso.xslx.formatId.numbers(t(s),g,n+C)),0===R&&"function"==typeof W.mso.xslx.formatId.date&&(R=W.mso.xslx.formatId.date(t(s),g,n+C)),49===R||"@"===R?j="s":"number"===_.type||R>0&&R<14||R>36&&R<41||48===R?j="n":("date"===_.type||R>13&&R<37||R>44&&R<48||56===R)&&(j="d")}else j="s";if(null!=E){var F;if(0===E.length)I.t=j||"z";else if(0===E.trim().length||"s"===j);else if("function"===_.type)I={f:E};else if("TRUE"===E)I={t:"b",v:!0};else if("FALSE"===E)I={t:"b",v:!1};else if(""===j&&t(s).find("a").length)E="href"!==W.htmlHyperlink?E:"",I={f:'=HYPERLINK("'+t(s).find("a").attr("href")+(E.length?'","'+E:"")+'")'};else if("n"===j||isFinite(D(E,W.numbers.output))){var N=D(E,W.numbers.output);0===R&&"function"!=typeof W.mso.xslx.formatId.numbers&&(R=W.mso.xslx.formatId.numbers),(isFinite(N)||isFinite(E))&&(I={t:"n",v:isFinite(N)?N:E,z:"string"==typeof R?R:R in v?v[R]:"0.00"})}else!1===(F=w(E))&&"d"!==j||(0===R&&"function"!=typeof W.mso.xslx.formatId.date&&(R=W.mso.xslx.formatId.date),I={t:"d",v:!1!==F?F:E,z:"string"==typeof R?R:R in v?v[R]:"m/d/yy"})}c[q({c:r,r:m})]=I,h.e.c<r&&(h.e.c=r),r+=i}}++m}}return f.length&&(c["!merges"]=f),p.length&&(c["!rows"]=p),h.e.r=m-1,c["!ref"]=B(h),m>=1e7&&(c["!fullref"]=B((h.e.r=u.length-g+m-1,h))),c}function F(t){return""+(t+1)}function N(t){var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function q(t){return N(t.c)+F(t.r)}function B(t,e){return void 0===e||"number"==typeof e?B(t.s,t.e):("string"!=typeof t&&(t=q(t)),"string"!=typeof e&&(e=q(e)),t===e?t:t+":"+e)}function D(t,e){var n=Number(t);if(isFinite(n))return n
|
||
;var r=1,o=t;return""!==e.thousandsSeparator&&(o=o.replace(new RegExp("([\\d])"+e.thousandsSeparator+"([\\d])","g"),"$1$2")),"."!==e.decimalMark&&(o=o.replace(new RegExp("([\\d])"+e.decimalMark+"([\\d])","g"),"$1.$2")),o=o.replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""}),isFinite(n=Number(o))?n/r:(o=o.replace(/[(](.*)[)]/,function(t,e){return r=-r,e}),isFinite(n=Number(o))?n/r:n)}function L(t){var e,n,r,o=0;if(0===t.length)return o;for(e=0,r=t.length;e<r;e++)n=t.charCodeAt(e),o=(o<<5)-o+n,o|=0;return o}function M(t,e,n,r,o,i){var a=!0;if("function"==typeof W.onBeforeSaveToFile&&"boolean"!=typeof(a=W.onBeforeSaveToFile(t,e,n,r,o))&&(a=!0),a)try{U=new Blob([t],{type:n+";charset="+r}),saveAs(U,e,!1===i),"function"==typeof W.onAfterSaveToFile&&W.onAfterSaveToFile(t,e)}catch(a){z(e,"data:"+n+(r.length?";charset="+r:"")+(o.length?";"+o:"")+",",i?"\ufeff"+t:t)}}function z(t,e,n){var r=window.navigator.userAgent;if(!1!==t&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(new Blob([n]),t);else if(!1!==t&&(r.indexOf("MSIE ")>0||r.match(/Trident.*rv\:11\./))){var o=document.createElement("iframe");if(o){document.body.appendChild(o),o.setAttribute("style","display:none"),o.contentDocument.open("txt/plain","replace"),o.contentDocument.write(n),o.contentDocument.close(),o.contentWindow.focus();var i=t.substr(t.lastIndexOf(".")+1);switch(i){case"doc":case"json":case"png":case"pdf":case"xls":case"xlsx":t+=".txt"}o.contentDocument.execCommand("SaveAs",!0,t),document.body.removeChild(o)}}else{var a=document.createElement("a");if(a){var s=null;if(a.style.display="none",!1!==t?a.download=t:a.target="_blank","object"==typeof n){window.URL=window.URL||window.webkitURL;var l=[];l.push(n),s=window.URL.createObjectURL(new Blob(l,{type:e})),a.href=s}else e.toLowerCase().indexOf("base64,")>=0?a.href=e+H(n):a.href=e+encodeURIComponent(n);document.body.appendChild(a),document.createEvent?(null===Y&&(Y=document.createEvent("MouseEvents")),Y.initEvent("click",!0,!1),a.dispatchEvent(Y)):document.createEventObject?a.fireEvent("onclick"):"function"==typeof a.onclick&&a.onclick(),setTimeout(function(){s&&window.URL.revokeObjectURL(s),document.body.removeChild(a),"function"==typeof W.onAfterSaveToFile&&W.onAfterSaveToFile(n,t)},100)}}}function $(t){if("string"==typeof t){t=t.replace(/\x0d\x0a/g,"\n");for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e+=String.fromCharCode(r):r>127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}return t}function H(t){var e,n,r,o,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;for(t=$(t);u<t.length;)e=t.charCodeAt(u++),n=t.charCodeAt(u++),r=t.charCodeAt(u++),o=e>>2,i=(3&e)<<4|n>>4,a=(15&n)<<2|r>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),c=c+l.charAt(o)+l.charAt(i)+l.charAt(a)+l.charAt(s);return c}var U,W={csvEnclosure:'"',csvSeparator:",",csvUseBOM:!0,date:{html:"dd/mm/yyyy"},displayTableName:!1,escape:!1,exportHiddenCells:!1,fileName:"tableExport",htmlContent:!1,htmlHyperlink:"content",ignoreColumn:[],ignoreRow:[],jsonScope:"all",jspdf:{orientation:"p",unit:"pt",format:"a4",margins:{left:20,right:10,top:10,bottom:10},onDocCreated:null,autotable:{styles:{cellPadding:2,rowHeight:12,fontSize:8,fillColor:255,textColor:50,fontStyle:"normal",overflow:"ellipsize",halign:"inherit",valign:"middle"},headerStyles:{fillColor:[52,73,94],textColor:255,fontStyle:"bold",halign:"inherit",valign:"middle"},alternateRowStyles:{fillColor:245},tableExport:{doc:null,onAfterAutotable:null,onBeforeAutotable:null,onAutotableText:null,onTable:null,outputImages:!0}}},mso:{fileFormat:"xlshtml",onMsoNumberFormat:null,pageFormat:"a4",pageOrientation:"portrait",rtl:!1,styles:[],worksheetName:"",xslx:{formatId:{date:14,numbers:2}}},numbers:{html:{decimalMark:".",thousandsSeparator:","},output:{decimalMark:".",thousandsSeparator:","}},onAfterSaveToFile:null,onBeforeSaveToFile:null,onCellData:null,onCellHtmlData:null,onCellHtmlHyperlink:null,onIgnoreRow:null,onTableExportBegin:null,onTableExportEnd:null,outputMode:"file",pdfmake:{enabled:!1,docDefinition:{pageOrientation:"portrait",defaultStyle:{font:"Roboto"}},fonts:{}},preserve:{leadingWS:!1,trailingWS:!1},preventInjection:!0,sql:{tableEnclosure:"`",columnEnclosure:"`"},tbodySelector:"tr",tfootSelector:"tr",theadSelector:"tr",tableName:"Table",type:"csv"},V={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]},G=1.15,X=this,Y=null,K=[],J=[],Q=0,Z="",tt=[],et=[],nt=[],rt=!1;if(t.extend(!0,W,e),"xlsx"===W.type&&(W.mso.fileFormat=W.type,W.type="excel"),void 0!==W.excelFileFormat&&"undefined"===W.mso.fileFormat&&(W.mso.fileFormat=W.excelFileFormat),void 0!==W.excelPageFormat&&"undefined"===W.mso.pageFormat&&(W.mso.pageFormat=W.excelPageFormat),void 0!==W.excelPageOrientation&&"undefined"===W.mso.pageOrientation&&(W.mso.pageOrientation=W.excelPageOrientation),void 0!==W.excelRTL&&"undefined"===W.mso.rtl&&(W.mso.rtl=W.excelRTL),void 0!==W.excelstyles&&"undefined"===W.mso.styles&&(W.mso.styles=W.excelstyles),void 0!==W.onMsoNumberFormat&&"undefined"===W.mso.onMsoNumberFormat&&(W.mso.onMsoNumberFormat=W.onMsoNumberFormat),void 0!==W.worksheetName&&"undefined"===W.mso.worksheetName&&(W.mso.worksheetName=W.worksheetName),W.mso.pageOrientation="l"===W.mso.pageOrientation.substr(0,1)?"landscape":"portrait",W.date.html=W.date.html||"",W.date.html.length){var ot=[];ot.dd="(3[01]|[12][0-9]|0?[1-9])",ot.mm="(1[012]|0?[1-9])",ot.yyyy="((?:1[6-9]|2[0-2])\\d{2})",ot.yy="(\\d{2})";var it=W.date.html.match(/[^a-zA-Z0-9]/)[0],at=W.date.html.toLowerCase().split(it);W.date.regex="^\\s*",W.date.regex+=ot[at[0]],W.date.regex+="(.)",W.date.regex+=ot[at[1]],W.date.regex+="\\2",W.date.regex+=ot[at[2]],W.date.regex+="\\s*$",W.date.pattern=new RegExp(W.date.regex,"g");var st=at.indexOf("dd")+1;W.date.match_d=st+(st>1?1:0),st=at.indexOf("mm")+1,W.date.match_m=st+(st>1?1:0),st=(at.indexOf("yyyy")>=0?at.indexOf("yyyy"):at.indexOf("yy"))+1,W.date.match_y=st+(st>1?1:0)}if(tt=i(X),"function"==typeof W.onTableExportBegin&&W.onTableExportBegin(),"csv"===W.type||"tsv"===W.type||"txt"===W.type){var lt="",ct=0;et=[],Q=0;var ut=function(t,e,n){var r="";if(null!==t){var o=k(t,e,n),i=null===o||""===o?"":o.toString();"tsv"===W.type?(o instanceof Date&&o.toLocaleString(),r=v(i,"\t"," ")):o instanceof Date?r=W.csvEnclosure+o.toLocaleString()+W.csvEnclosure:(r=C(i),r=v(r,W.csvEnclosure,W.csvEnclosure+W.csvEnclosure),(r.indexOf(W.csvSeparator)>=0||/[\r\n ]/g.test(r))&&(r=W.csvEnclosure+r+W.csvEnclosure))}return r},ht=function(e,n,r){return e.each(function(){Z="",c(this,n,Q,r+e.length,function(t,e,n){Z+=ut(t,e,n)+("tsv"===W.type?"\t":W.csvSeparator)}),Z=t.trim(Z).substring(0,Z.length-1),Z.length>0&&(lt.length>0&&(lt+="\n"),lt+=Z),Q++}),e.length};if(ct+=ht(t(X).find("thead").first().find(W.theadSelector),"th,td",ct),o(t(X),"tbody").each(function(){ct+=ht(o(t(this),W.tbodySelector),"td,th",ct)}),W.tfootSelector.length&&ht(t(X).find("tfoot").first().find(W.tfootSelector),"td,th",ct),lt+="\n","string"===W.outputMode)return lt;if("base64"===W.outputMode)return H(lt);if("window"===W.outputMode)return void z(!1,"data:text/"+("csv"===W.type?"csv":"plain")+";charset=utf-8,",lt);M(lt,W.fileName+"."+W.type,"text/"+("csv"===W.type?"csv":"plain"),"utf-8","","csv"===W.type&&W.csvUseBOM)}else if("sql"===W.type){Q=0,et=[];var ft="INSERT INTO "+W.sql.tableEnclosure+W.tableName+W.sql.tableEnclosure+" (";if(K=n(t(X)),t(K).each(function(){c(this,"th,td",Q,K.length,function(t,e,n){var r=k(t,e,n)||"";r.indexOf(W.sql.columnEnclosure)>-1&&(r=v(r.toString(),W.sql.columnEnclosure,W.sql.columnEnclosure+W.sql.columnEnclosure)),ft+=W.sql.columnEnclosure+r+W.sql.columnEnclosure+","}),Q++,ft=t.trim(ft).substring(0,ft.length-1)}),ft+=") VALUES ",J=r(t(X)),t(J).each(function(){Z="",c(this,"td,th",Q,K.length+J.length,function(t,e,n){var r=k(t,e,n)||"";r.indexOf("'")>-1&&(r=v(r.toString(),"'","''")),Z+="'"+r+"',"}),Z.length>3&&(ft+="("+Z,ft=t.trim(ft).substring(0,ft.length-1),ft+="),"),Q++}),ft=t.trim(ft).substring(0,ft.length-1),ft+=";","string"===W.outputMode)return ft;if("base64"===W.outputMode)return H(ft);M(ft,W.fileName+".sql","application/sql","utf-8","",!1)}else if("json"===W.type){var dt=[];et=[],K=n(t(X)),t(K).each(function(){var t=[];c(this,"th,td",Q,K.length,function(e,n,r){t.push(k(e,n,r))}),dt.push(t)});var pt=[];J=r(t(X)),t(J).each(function(){var e={},n=0;c(this,"td,th",Q,K.length+J.length,function(t,r,o){dt.length?e[dt[dt.length-1][n]]=k(t,r,o):e[n]=k(t,r,o),n++}),!1===t.isEmptyObject(e)&&pt.push(e),Q++});var gt;if(gt="head"===W.jsonScope?JSON.stringify(dt):"data"===W.jsonScope?JSON.stringify(pt):JSON.stringify({header:dt,data:pt}),"string"===W.outputMode)return gt;if("base64"===W.outputMode)return H(gt);M(gt,W.fileName+".json","application/json","utf-8","base64",!1)}else if("xml"===W.type){Q=0,et=[];var mt='<?xml version="1.0" encoding="utf-8"?>';mt+="<tabledata><fields>",K=n(t(X)),t(K).each(function(){c(this,"th,td",Q,K.length,function(t,e,n){mt+="<field>"+k(t,e,n)+"</field>"}),Q++}),mt+="</fields><data>";var vt=1;if(J=r(t(X)),t(J).each(function(){var t=1;Z="",c(this,"td,th",Q,K.length+J.length,function(e,n,r){Z+="<column-"+t+">"+k(e,n,r)+"</column-"+t+">",t++}),Z.length>0&&"<column-1></column-1>"!==Z&&(mt+='<row id="'+vt+'">'+Z+"</row>",vt++),Q++}),mt+="</data></tabledata>","string"===W.outputMode)return mt;if("base64"===W.outputMode)return H(mt);M(mt,W.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===W.type&&"xmlss"===W.mso.fileFormat){var yt=[],bt=[];t(X).filter(function(){return a(t(this))}).each(function(){function e(e,n,r){var o=[];return t(e).each(function(){var n=0,i=0;Z="",c(this,"td,th",Q,r+e.length,function(e,r,a){if(null!==e){var s="",l=k(e,r,a),c="String";if(!1!==jQuery.isNumeric(l))c="Number";else{var u=S(l);!1!==u&&(l=u,c="Number",s+=' ss:StyleID="pct1"')}"Number"!==c&&(l=l.replace(/\n/g,"<br>"));var h=A(e),f=P(e);t.each(o,function(){var t=this;if(Q>=t.s.r&&Q<=t.e.r&&i>=t.s.c&&i<=t.e.c)for(var e=0;e<=t.e.c-t.s.c;++e)i++,n++}),(f||h)&&(f=f||1,h=h||1,o.push({s:{r:Q,c:i},e:{r:Q+f-1,c:i+h-1}})),h>1&&(s+=' ss:MergeAcross="'+(h-1)+'"',i+=h-1),f>1&&(s+=' ss:MergeDown="'+(f-1)+'" ss:StyleID="rsp1"'),n>0&&(s+=' ss:Index="'+(i+1)+'"',n=0),Z+="<Cell"+s+'><Data ss:Type="'+c+'">'+t("<div />").text(l).html()+"</Data></Cell>\r",i++}}),Z.length>0&&(Nt+='<Row ss:AutoFitHeight="0">\r'+Z+"</Row>\r"),Q++}),e.length}var o=t(this),a="";"string"==typeof W.mso.worksheetName&&W.mso.worksheetName.length?a=W.mso.worksheetName+" "+(bt.length+1):void 0!==W.mso.worksheetName[bt.length]&&(a=W.mso.worksheetName[bt.length]),a.length||(a=o.find("caption").text()||""),a.length||(a="Table "+(bt.length+1)),a=t.trim(a.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),bt.push(t("<div />").text(a).html()),!1===W.exportHiddenCells&&(nt=o.find("tr, th, td").filter(":hidden"),rt=nt.length>0),Q=0,tt=i(this),Nt="<Table>\r";var s=e(n(o),"th,td",0);e(r(o),"td,th",s),Nt+="</Table>\r",yt.push(Nt)});for(var wt,xt,St={},kt={},Ct=0,Ot=bt.length;Ct<Ot;Ct++)wt=bt[Ct],xt=St[wt],xt=St[wt]=null==xt?1:xt+1,2===xt&&(bt[kt[wt]]=bt[kt[wt]].substring(0,29)+"-1"),St[wt]>1?bt[Ct]=bt[Ct].substring(0,29)+"-"+St[wt]:kt[wt]=Ct;for(var Tt=(new Date).toISOString(),_t='<?xml version="1.0" encoding="UTF-8"?>\r<?mso-application progid="Excel.Sheet"?>\r<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:o="urn:schemas-microsoft-com:office:office"\r xmlns:x="urn:schemas-microsoft-com:office:excel"\r xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"\r xmlns:html="http://www.w3.org/TR/REC-html40">\r<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">\r <Created>'+Tt+'</Created>\r</DocumentProperties>\r<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">\r <AllowPNG/>\r</OfficeDocumentSettings>\r<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">\r <WindowHeight>9000</WindowHeight>\r <WindowWidth>13860</WindowWidth>\r <WindowTopX>0</WindowTopX>\r <WindowTopY>0</WindowTopY>\r <ProtectStructure>False</ProtectStructure>\r <ProtectWindows>False</ProtectWindows>\r</ExcelWorkbook>\r<Styles>\r <Style ss:ID="Default" ss:Name="Normal">\r <Alignment ss:Vertical="Bottom"/>\r <Borders/>\r <Font/>\r <Interior/>\r <NumberFormat/>\r <Protection/>\r </Style>\r <Style ss:ID="rsp1">\r <Alignment ss:Vertical="Center"/>\r </Style>\r <Style ss:ID="pct1">\r <NumberFormat ss:Format="Percent"/>\r </Style>\r</Styles>\r',At=0;At<yt.length;At++)_t+='<Worksheet ss:Name="'+bt[At]+'" ss:RightToLeft="'+(W.mso.rtl?"1":"0")+'">\r'+yt[At],W.mso.rtl?_t+='<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">\r<DisplayRightToLeft/>\r</WorksheetOptions>\r':_t+='<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"/>\r',_t+="</Worksheet>\r";if(_t+="</Workbook>\r","string"===W.outputMode)return _t;if("base64"===W.outputMode)return H(_t);M(_t,W.fileName+".xml","application/xml","utf-8","base64",!1)}else if("excel"===W.type&&"xlsx"===W.mso.fileFormat){var Pt=[],Et=XLSX.utils.book_new();t(X).filter(function(){return a(t(this))}).each(function(){var e=t(this),n=R(this),r="";"string"==typeof W.mso.worksheetName&&W.mso.worksheetName.length?r=W.mso.worksheetName+" "+(Pt.length+1):void 0!==W.mso.worksheetName[Pt.length]&&(r=W.mso.worksheetName[Pt.length]),r.length||(r=e.find("caption").text()||""),r.length||(r="Table "+(Pt.length+1)),r=t.trim(r.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31)),Pt.push(r),XLSX.utils.book_append_sheet(Et,n,r)});var It=XLSX.write(Et,{type:"binary",bookType:W.mso.fileFormat,bookSST:!1});M(function(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),r=0;r!==t.length;++r)n[r]=255&t.charCodeAt(r);return e}(It),W.fileName+"."+W.mso.fileFormat,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","UTF-8","",!1)}else if("excel"===W.type||"xls"===W.type||"word"===W.type||"doc"===W.type){var jt="excel"===W.type||"xls"===W.type?"excel":"word",Rt="excel"===jt?"xls":"doc",Ft='xmlns:x="urn:schemas-microsoft-com:office:'+jt+'"',Nt="",qt="";t(X).filter(function(){return a(t(this))}).each(function(){var e=t(this);""===qt&&(qt=W.mso.worksheetName||e.find("caption").text()||"Table",qt=t.trim(qt.replace(/[\\\/[\]*:?'"]/g,"").substring(0,31))),!1===W.exportHiddenCells&&(nt=e.find("tr, th, td").filter(":hidden"),rt=nt.length>0),Q=0,et=[],tt=i(this),Nt+="<table><thead>",K=n(e),t(K).each(function(){var e=t(this);Z="",c(this,"th,td",Q,K.length,function(t,n,r){if(null!==t){var o="";if(Z+="<th",W.mso.styles.length){var i=document.defaultView.getComputedStyle(t,null),a=document.defaultView.getComputedStyle(e[0],null);for(var s in W.mso.styles){var l=i[W.mso.styles[s]];""===l&&(l=a[W.mso.styles[s]]),""!==l&&"0px none rgb(0, 0, 0)"!==l&&"rgba(0, 0, 0, 0)"!==l&&(o+=""===o?'style="':";",o+=W.mso.styles[s]+":"+l)}}""!==o&&(Z+=" "+o+'"');var c=A(t);c>0&&(Z+=' colspan="'+c+'"');var u=P(t);u>0&&(Z+=' rowspan="'+u+'"'),Z+=">"+k(t,n,r)+"</th>"}}),Z.length>0&&(Nt+="<tr>"+Z+"</tr>"),Q++}),Nt+="</thead><tbody>",J=r(e),t(J).each(function(){var e=t(this);Z="",c(this,"td,th",Q,K.length+J.length,function(n,r,o){if(null!==n){var i=k(n,r,o),a="",s=t(n).attr("data-tableexport-msonumberformat");if(void 0===s&&"function"==typeof W.mso.onMsoNumberFormat&&(s=W.mso.onMsoNumberFormat(n,r,o)),void 0!==s&&""!==s&&(a="style=\"mso-number-format:'"+s+"'"),W.mso.styles.length){var l=document.defaultView.getComputedStyle(n,null),c=document.defaultView.getComputedStyle(e[0],null);for(var u in W.mso.styles)s=l[W.mso.styles[u]],""===s&&(s=c[W.mso.styles[u]]),""!==s&&"0px none rgb(0, 0, 0)"!==s&&"rgba(0, 0, 0, 0)"!==s&&(a+=""===a?'style="':";",a+=W.mso.styles[u]+":"+s)}Z+="<td",""!==a&&(Z+=" "+a+'"');var h=A(n);h>0&&(Z+=' colspan="'+h+'"');var f=P(n);f>0&&(Z+=' rowspan="'+f+'"'),"string"==typeof i&&""!==i&&(i=C(i),i=i.replace(/\n/g,"<br>")),Z+=">"+i+"</td>"}}),Z.length>0&&(Nt+="<tr>"+Z+"</tr>"),Q++}),W.displayTableName&&(Nt+="<tr><td></td></tr><tr><td></td></tr><tr><td>"+k(t("<p>"+W.tableName+"</p>"))+"</td></tr>"),Nt+="</tbody></table>"});var Bt='<html xmlns:o="urn:schemas-microsoft-com:office:office" '+Ft+' xmlns="http://www.w3.org/TR/REC-html40">';if(Bt+='<meta http-equiv="content-type" content="application/vnd.ms-'+jt+'; charset=UTF-8">',Bt+="<head>","excel"===jt&&(Bt+="\x3c!--[if gte mso 9]>",Bt+="<xml>",Bt+="<x:ExcelWorkbook>",Bt+="<x:ExcelWorksheets>",Bt+="<x:ExcelWorksheet>",Bt+="<x:Name>",Bt+=qt,Bt+="</x:Name>",Bt+="<x:WorksheetOptions>",Bt+="<x:DisplayGridlines/>",W.mso.rtl&&(Bt+="<x:DisplayRightToLeft/>"),Bt+="</x:WorksheetOptions>",Bt+="</x:ExcelWorksheet>",Bt+="</x:ExcelWorksheets>",Bt+="</x:ExcelWorkbook>",Bt+="</xml>",Bt+="<![endif]--\x3e"),Bt+="<style>",Bt+="@page { size:"+W.mso.pageOrientation+"; mso-page-orientation:"+W.mso.pageOrientation+"; }",Bt+="@page Section1 {size:"+V[W.mso.pageFormat][0]+"pt "+V[W.mso.pageFormat][1]+"pt",Bt+="; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",Bt+="div.Section1 {page:Section1;}",Bt+="@page Section2 {size:"+V[W.mso.pageFormat][1]+"pt "+V[W.mso.pageFormat][0]+"pt",Bt+=";mso-page-orientation:"+W.mso.pageOrientation+";margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}",Bt+="div.Section2 {page:Section2;}",Bt+="br {mso-data-placement:same-cell;}",Bt+="</style>",Bt+="</head>",Bt+="<body>",Bt+='<div class="Section'+("landscape"===W.mso.pageOrientation?"2":"1")+'">',Bt+=Nt,Bt+="</div>",Bt+="</body>",Bt+="</html>","string"===W.outputMode)return Bt;if("base64"===W.outputMode)return H(Bt);M(Bt,W.fileName+"."+Rt,"application/vnd.ms-"+jt,"","base64",!1)}else if("png"===W.type)html2canvas(t(X)[0]).then(function(t){for(var e=t.toDataURL(),n=atob(e.substring(22)),r=new ArrayBuffer(n.length),o=new Uint8Array(r),i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return"string"===W.outputMode?n:"base64"===W.outputMode?H(e):"window"===W.outputMode?void window.open(e):void M(r,W.fileName+".png","image/png","","",!1)});else if("pdf"===W.type)if(!0===W.pdfmake.enabled){var Dt=[],Lt=[];Q=0,et=[];var Mt=function(e,n,r){var o=0;return t(e).each(function(){var t=[];c(this,n,Q,r,function(e,n,r){if(void 0!==e&&null!==e){var o=A(e),i=P(e),a=k(e,n,r)||" ";o>1||i>1?(o=o||1,i=i||1,t.push({colSpan:o,rowSpan:i,text:a})):t.push(a)}else t.push(" ")}),t.length&&Lt.push(t),o<t.length&&(o=t.length),Q++}),o};K=n(t(this));for(var zt=Mt(K,"th,td",K.length),$t=Dt.length;$t<zt;$t++)Dt.push("*");J=r(t(this)),Mt(J,"th,td",K.length+J.length);var Ht={content:[{table:{headerRows:K.length,widths:Dt,body:Lt}}]};t.extend(!0,Ht,W.pdfmake.docDefinition),pdfMake.fonts={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}},t.extend(!0,pdfMake.fonts,W.pdfmake.fonts),pdfMake.createPdf(Ht).getBuffer(function(t){M(t,W.fileName+".pdf","application/pdf","","",!1)})}else if(!1===W.jspdf.autotable){var Ut={dim:{w:j(t(X).first().get(0),"width","mm"),h:j(t(X).first().get(0),"height","mm")},pagesplit:!1},Wt=new jsPDF(W.jspdf.orientation,W.jspdf.unit,W.jspdf.format);Wt.addHTML(t(X).first(),W.jspdf.margins.left,W.jspdf.margins.top,Ut,function(){h(Wt,!1)})}else{var Vt=W.jspdf.autotable.tableExport;if("string"==typeof W.jspdf.format&&"bestfit"===W.jspdf.format.toLowerCase()){var Gt="",Xt="",Yt=0;t(X).each(function(){if(a(t(this))){var e=j(t(this).get(0),"width","pt");if(e>Yt){e>V.a0[0]&&(Gt="a0",Xt="l");for(var n in V)V.hasOwnProperty(n)&&V[n][1]>e&&(Gt=n,Xt="l",V[n][0]>e&&(Xt="p"));Yt=e}}}),W.jspdf.format=""===Gt?"a4":Gt,W.jspdf.orientation=""===Xt?"w":Xt}null==Vt.doc&&(Vt.doc=new jsPDF(W.jspdf.orientation,W.jspdf.unit,W.jspdf.format),Vt.wScaleFactor=1,Vt.hScaleFactor=1,"function"==typeof W.jspdf.onDocCreated&&W.jspdf.onDocCreated(Vt.doc)),!0===Vt.outputImages&&(Vt.images={}),void 0!==Vt.images&&(t(X).filter(function(){return a(t(this))}).each(function(){var e=0;et=[],!1===W.exportHiddenCells&&(nt=t(this).find("tr, th, td").filter(":hidden"),rt=nt.length>0),K=n(t(this)),J=r(t(this)),t(J).each(function(){c(this,"td,th",K.length+e,K.length+J.length,function(e){d(e,t(e).children(),Vt)}),e++})}),K=[],J=[]),function(e,n){function r(){n(o)}var o=0,i=0;if(void 0!==e.images)for(var a in e.images)e.images.hasOwnProperty(a)&&function(e){if(e.url)if(e.src){var n=new Image;o=++i,n.crossOrigin="Anonymous",n.onerror=n.onload=function(){if(n.complete&&(0===n.src.indexOf("data:image/")&&(n.width=e.width||n.width||0,n.height=e.height||n.height||0),n.width+n.height)){var t=document.createElement("canvas"),o=t.getContext("2d");t.width=n.width,t.height=n.height,o.drawImage(n,0,0),e.src=t.toDataURL("image/png")}--i||r()},n.src=e.url}else{var a=t(e.url);a.length&&(o=++i,html2canvas(a[0]).then(function(t){e.src=t.toDataURL("image/png"),--i||r()}))}}(e.images[a]);i||r()}(Vt,function(){t(X).filter(function(){return a(t(this))}).each(function(){var e;if(Q=0,et=[],!1===W.exportHiddenCells&&(nt=t(this).find("tr, th, td").filter(":hidden"),rt=nt.length>0),tt=i(this),Vt.columns=[],Vt.rows=[],Vt.teCells={},"function"==typeof Vt.onTable&&!1===Vt.onTable(t(this),W))return!0;W.jspdf.autotable.tableExport=null;var o=t.extend(!0,{},W.jspdf.autotable);if(W.jspdf.autotable.tableExport=Vt,o.margin={},t.extend(!0,o.margin,W.jspdf.margins),o.tableExport=Vt,"function"!=typeof o.beforePageContent&&(o.beforePageContent=function(e){if(1===e.pageCount){var n=e.table.rows.concat(e.table.headerRow);t.each(n,function(){var t=this;t.height>0&&(t.height+=(2-G)/2*t.styles.fontSize,e.table.height+=(2-G)/2*t.styles.fontSize)})}}),"function"!=typeof o.createdHeaderCell&&(o.createdHeaderCell=function(e,n){if(e.styles=t.extend({},n.row.styles),void 0!==Vt.columns[n.column.dataKey]){var r=Vt.columns[n.column.dataKey];if(void 0!==r.rect){var i;e.contentWidth=r.rect.width,void 0!==Vt.heightRatio&&0!==Vt.heightRatio||(i=n.row.raw[n.column.dataKey].rowspan?n.row.raw[n.column.dataKey].rect.height/n.row.raw[n.column.dataKey].rowspan:n.row.raw[n.column.dataKey].rect.height,Vt.heightRatio=e.styles.rowHeight/i),i=n.row.raw[n.column.dataKey].rect.height*Vt.heightRatio,i>e.styles.rowHeight&&(e.styles.rowHeight=i)}e.styles.halign="inherit"===o.headerStyles.halign?"center":o.headerStyles.halign,e.styles.valign=o.headerStyles.valign,void 0!==r.style&&!0!==r.style.hidden&&("inherit"===o.headerStyles.halign&&(e.styles.halign=r.style.align),"inherit"===o.styles.fillColor&&(e.styles.fillColor=r.style.bcolor),"inherit"===o.styles.textColor&&(e.styles.textColor=r.style.color),"inherit"===o.styles.fontStyle&&(e.styles.fontStyle=r.style.fstyle))}}),"function"!=typeof o.createdCell&&(o.createdCell=function(t,e){var n=Vt.teCells[e.row.index+":"+e.column.dataKey];t.styles.halign="inherit"===o.styles.halign?"center":o.styles.halign,t.styles.valign=o.styles.valign,void 0!==n&&void 0!==n.style&&!0!==n.style.hidden&&("inherit"===o.styles.halign&&(t.styles.halign=n.style.align),"inherit"===o.styles.fillColor&&(t.styles.fillColor=n.style.bcolor),"inherit"===o.styles.textColor&&(t.styles.textColor=n.style.color),"inherit"===o.styles.fontStyle&&(t.styles.fontStyle=n.style.fstyle))}),"function"!=typeof o.drawHeaderCell&&(o.drawHeaderCell=function(t,e){var n=Vt.columns[e.column.dataKey];return(!0!==n.style.hasOwnProperty("hidden")||!0!==n.style.hidden)&&n.rowIndex>=0&&f(t,e,n)}),"function"!=typeof o.drawCell&&(o.drawCell=function(e,n){var r=Vt.teCells[n.row.index+":"+n.column.dataKey];if(!0!==(void 0!==r&&r.isCanvas)){if(f(e,n,r))if(Vt.doc.rect(e.x,e.y,e.width,e.height,e.styles.fillStyle),void 0!==r&&void 0!==r.elements&&r.elements.length){var o=e.height/r.rect.height;o>Vt.hScaleFactor&&(Vt.hScaleFactor=o),Vt.wScaleFactor=e.width/r.rect.width;var i=e.textPos.y;p(e,r.elements,Vt),e.textPos.y=i,g(e,r.elements,Vt)}else g(e,{},Vt)}else{var a=r.elements[0],s=t(a).attr("data-tableexport-canvas"),l=a.getBoundingClientRect();e.width=l.width*Vt.wScaleFactor,e.height=l.height*Vt.hScaleFactor,n.row.height=e.height,u(e,a,s,Vt)}return!1}),Vt.headerrows=[],K=n(t(this)),t(K).each(function(){e=0,Vt.headerrows[Q]=[],c(this,"th,td",Q,K.length,function(t,n,r){var o=_(t);o.title=k(t,n,r),o.key=e++,o.rowIndex=Q,Vt.headerrows[Q].push(o)}),Q++}),Q>0)for(var a=Q-1;a>=0;)t.each(Vt.headerrows[a],function(){var t=this;a>0&&null===this.rect&&(t=Vt.headerrows[a-1][this.key]),null!==t&&t.rowIndex>=0&&(!0!==t.style.hasOwnProperty("hidden")||!0!==t.style.hidden)&&Vt.columns.push(t)}),a=Vt.columns.length>0?-1:a-1;var s=0;J=[],J=r(t(this)),t(J).each(function(){var n=[];e=0,c(this,"td,th",Q,K.length+J.length,function(r,o,i){var a;void 0===Vt.columns[e]&&(a={title:"",key:e,style:{hidden:!0}},Vt.columns.push(a)),void 0!==r&&null!==r?(a=_(r),a.isCanvas=r.hasAttribute("data-tableexport-canvas"),a.elements=a.isCanvas?t(r):t(r).children(),Vt.teCells[s+":"+e++]=a):(a=t.extend(!0,{},Vt.teCells[s+":"+(e-1)]),a.colspan=-1,Vt.teCells[s+":"+e++]=a),n.push(k(r,o,i))}),n.length&&(Vt.rows.push(n),s++),Q++}),"function"==typeof Vt.onBeforeAutotable&&Vt.onBeforeAutotable(t(this),Vt.columns,Vt.rows,o),Vt.doc.autoTable(Vt.columns,Vt.rows,o),"function"==typeof Vt.onAfterAutotable&&Vt.onAfterAutotable(t(this),o),W.jspdf.autotable.startY=Vt.doc.autoTableEndPosY()+o.margin.top}),h(Vt.doc,void 0!==Vt.images&&!1===jQuery.isEmptyObject(Vt.images)),void 0!==Vt.headerrows&&(Vt.headerrows.length=0),void 0!==Vt.columns&&(Vt.columns.length=0),void 0!==Vt.rows&&(Vt.rows.length=0),delete Vt.doc,Vt.doc=null})}return"function"==typeof W.onTableExportEnd&&W.onTableExportEnd(),this}}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.jspdf=e()}(this,function(){"use strict";var t="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},e=(function(){function t(t){this.value=t}function e(e){function n(t,e){return new Promise(function(n,o){var s={key:t,arg:e,resolve:n,reject:o,next:null};a?a=a.next=s:(i=a=s,r(t,e))})}function r(n,i){try{var a=e[n](i),s=a.value;s instanceof t?Promise.resolve(s.value).then(function(t){r("next",t)},function(t){r("throw",t)}):o(a.done?"return":"normal",a.value)}catch(t){o("throw",t)}}function o(t,e){switch(t){case"return":i.resolve({value:e,done:!0});break;case"throw":i.reject(e);break;default:i.resolve({value:e,done:!1})}i=i.next,i?r(i.key,i.arg):a=null}var i,a;this._invoke=n,"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}(),function(e){function n(t){var n={};this.subscribe=function(t,e,r){if("function"!=typeof e)return!1;n.hasOwnProperty(t)||(n[t]={});var o=Math.random().toString(35);return n[t][o]=[e,!!r],o},this.unsubscribe=function(t){for(var e in n)if(n[e][t])return delete n[e][t],!0;return!1},this.publish=function(r){if(n.hasOwnProperty(r)){var o=Array.prototype.slice.call(arguments,1),i=[];for(var a in n[r]){var s=n[r][a];try{s[0].apply(t,o)}catch(t){e.console&&console.error("jsPDF PubSub Error",t.message,t)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}}}function r(l,c,u,h){var f={};"object"===(void 0===l?"undefined":t(l))&&(f=l,l=f.orientation,c=f.unit||c,u=f.format||u,h=f.compress||f.compressPdf||h),c=c||"mm",u=u||"a4",l=(""+(l||"P")).toLowerCase();var d,p,g,m,v,y,b,w,x,S=((""+u).toLowerCase(),!!h&&"function"==typeof Uint8Array),k=f.textColor||"0 g",C=f.drawColor||"0 G",O=f.fontSize||16,T=f.lineHeight||1.15,_=f.lineWidth||.200025,A=2,P=!1,E=[],I={},j={},R=0,F=[],N=[],q=[],B=[],D=[],L=0,M=0,z=0,$={title:"",subject:"",author:"",keywords:"",creator:""},H={},U=new n(H),W=function(t){return t.toFixed(2)},V=function(t){return t.toFixed(3)},G=function(t){return("0"+parseInt(t)).slice(-2)},X=function(t){P?F[m].push(t):(z+=t.length+1,B.push(t))},Y=function(){return A++,E[A]=z,X(A+" 0 obj"),A},K=function(){var t=2*F.length+1;t+=D.length;var e={objId:t,content:""};return D.push(e),e},J=function(){return A++,E[A]=function(){return z},A},Q=function(t){E[t]=z},Z=function(t){X("stream"),X(t),X("endstream")},tt=function(){var t,n,o,i,s,l,c,u,h,f=[];for(c=e.adler32cs||r.adler32cs,S&&void 0===c&&(S=!1),t=1;t<=R;t++){if(f.push(Y()),u=(v=q[t].width)*p,h=(y=q[t].height)*p,X("<</Type /Page"),X("/Parent 1 0 R"),X("/Resources 2 0 R"),X("/MediaBox [0 0 "+W(u)+" "+W(h)+"]"),U.publish("putPage",{pageNumber:t,page:F[t]}),X("/Contents "+(A+1)+" 0 R"),X(">>"),X("endobj"),n=F[t].join("\n"),Y(),S){for(o=[],i=n.length;i--;)o[i]=n.charCodeAt(i);l=c.from(n),s=new a(6),s.append(new Uint8Array(o)),n=s.flush(),o=new Uint8Array(n.length+6),o.set(new Uint8Array([120,156])),o.set(n,2),o.set(new Uint8Array([255&l,l>>8&255,l>>16&255,l>>24&255]),n.length+2),n=String.fromCharCode.apply(null,o),X("<</Length "+n.length+" /Filter [/FlateDecode]>>")}else X("<</Length "+n.length+">>");Z(n),X("endobj")}E[1]=z,X("1 0 obj"),X("<</Type /Pages");var d="/Kids [";for(i=0;i<R;i++)d+=f[i]+" 0 R ";X(d+"]"),X("/Count "+R),X(">>"),X("endobj"),U.publish("postPutPages")},et=function(t){t.objectNumber=Y(),X("<</BaseFont/"+t.PostScriptName+"/Type/Font"),"string"==typeof t.encoding&&X("/Encoding/"+t.encoding),X("/Subtype/Type1>>"),X("endobj")},nt=function(){for(var t in I)I.hasOwnProperty(t)&&et(I[t])},rt=function(){U.publish("putXobjectDict")},ot=function(){X("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),X("/Font <<");for(var t in I)I.hasOwnProperty(t)&&X("/"+t+" "+I[t].objectNumber+" 0 R");X(">>"),X("/XObject <<"),rt(),X(">>")},it=function(){nt(),U.publish("putResources"),E[2]=z,X("2 0 obj"),X("<<"),ot(),X(">>"),X("endobj"),U.publish("postPutResources")},at=function(){U.publish("putAdditionalObjects");for(var t=0;t<D.length;t++){var e=D[t];E[e.objId]=z,X(e.objId+" 0 obj"),X(e.content),X("endobj")}A+=D.length,U.publish("postPutAdditionalObjects")},st=function(t,e,n){j.hasOwnProperty(e)||(j[e]={}),j[e][n]=t},lt=function(t,e,n,r){var o="F"+(Object.keys(I).length+1).toString(10),i=I[o]={id:o,PostScriptName:t,fontName:e,fontStyle:n,encoding:r,metadata:{}};return st(o,e,n),U.publish("addFont",i),o},ct=function(t,e){var n,r,o,i,a,s,l,c,u;if(e=e||{},o=e.sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&I[d].metadata&&I[d].metadata[o]&&I[d].metadata[o].encoding&&(i=I[d].metadata[o].encoding,!a&&I[d].encoding&&(a=I[d].encoding),!a&&i.codePages&&(a=i.codePages[0]),"string"==typeof a&&(a=i[a]),a)){for(l=!1,s=[],n=0,r=t.length;n<r;n++)c=a[t.charCodeAt(n)],c?s.push(String.fromCharCode(c)):s.push(t[n]),s[n].charCodeAt(0)>>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<r;n++){if(c=t.charCodeAt(n),(u=c>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)},ut=function(t,e){
|
||
return ct(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ht=function(){X("/Producer (jsPDF "+r.version+")");for(var t in $)$.hasOwnProperty(t)&&$[t]&&X("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+ut($[t])+")");var e=new Date,n=e.getTimezoneOffset(),o=n<0?"+":"-",i=Math.floor(Math.abs(n/60)),a=Math.abs(n%60),s=[o,G(i),"'",G(a),"'"].join("");X(["/CreationDate (D:",e.getFullYear(),G(e.getMonth()+1),G(e.getDate()),G(e.getHours()),G(e.getMinutes()),G(e.getSeconds()),s,")"].join(""))},ft=function(){switch(X("/Type /Catalog"),X("/Pages 1 0 R"),w||(w="fullwidth"),w){case"fullwidth":X("/OpenAction [3 0 R /FitH null]");break;case"fullheight":X("/OpenAction [3 0 R /FitV null]");break;case"fullpage":X("/OpenAction [3 0 R /Fit]");break;case"original":X("/OpenAction [3 0 R /XYZ null null 1]");break;default:var t=""+w;"%"===t.substr(t.length-1)&&(w=parseInt(w)/100),"number"==typeof w&&X("/OpenAction [3 0 R /XYZ null null "+W(w)+"]")}switch(x||(x="continuous"),x){case"continuous":X("/PageLayout /OneColumn");break;case"single":X("/PageLayout /SinglePage");break;case"two":case"twoleft":X("/PageLayout /TwoColumnLeft");break;case"tworight":X("/PageLayout /TwoColumnRight")}b&&X("/PageMode /"+b),U.publish("putCatalog")},dt=function(){X("/Size "+(A+1)),X("/Root "+A+" 0 R"),X("/Info "+(A-1)+" 0 R")},pt=function(t,e){var n="string"==typeof e&&e.toLowerCase();if("string"==typeof t){var r=t.toLowerCase();s.hasOwnProperty(r)&&(t=s[r][0]/p,e=s[r][1]/p)}if(Array.isArray(t)&&(e=t[1],t=t[0]),n){switch(n.substr(0,1)){case"l":e>t&&(n="s");break;case"p":t>e&&(n="s")}"s"===n&&(g=t,t=e,e=g)}P=!0,F[++R]=[],q[R]={width:Number(t)||v,height:Number(e)||y},N[R]={},vt(R)},gt=function(){pt.apply(this,arguments),X(W(_*p)+" w"),X(C),0!==L&&X(L+" J"),0!==M&&X(M+" j"),U.publish("addPage",{pageNumber:R})},mt=function(t){t>0&&t<=R&&(F.splice(t,1),q.splice(t,1),R--,m>R&&(m=R),this.setPage(m))},vt=function(t){t>0&&t<=R&&(m=t,v=q[t].width,y=q[t].height)},yt=function(t,e){var n;switch(t=void 0!==t?t:I[d].fontName,e=void 0!==e?e:I[d].fontStyle,void 0!==t&&(t=t.toLowerCase()),t){case"sans-serif":case"verdana":case"arial":case"helvetica":t="helvetica";break;case"fixed":case"monospace":case"terminal":case"courier":t="courier";break;case"serif":case"cursive":case"fantasy":default:t="times"}try{n=j[t][e]}catch(t){}return n||null==(n=j.times[e])&&(n=j.times.normal),n},bt=function(){P=!1,A=2,z=0,B=[],E=[],D=[],U.publish("buildDocument"),X("%PDF-"+i),tt(),at(),it(),Y(),X("<<"),ht(),X(">>"),X("endobj"),Y(),X("<<"),ft(),X(">>"),X("endobj");var t,e=z,n="0000000000";for(X("xref"),X("0 "+(A+1)),X(n+" 65535 f "),t=1;t<=A;t++){var r=E[t];X("function"==typeof r?(n+E[t]()).slice(-10)+" 00000 n ":(n+E[t]).slice(-10)+" 00000 n ")}return X("trailer"),X("<<"),dt(),X(">>"),X("startxref"),X(""+e),X("%%EOF"),P=!0,B.join("\n")},wt=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e},xt=function(){for(var t=bt(),e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},St=function(){return new Blob([xt()],{type:"application/pdf"})},kt=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var n=t.stack||"";~n.indexOf(" at ")&&(n=n.split(" at ")[1]);var r="Error in function "+n.split("\n")[0].split("<")[0]+": "+t.message;if(!e.console)throw new Error(r);e.console.error(r,t),e.alert&&alert(r)}},t.foo.bar=t,t.foo}(function(t,n){var r="dataur"===(""+t).substr(0,6)?"data:application/pdf;base64,"+btoa(bt()):0;switch(t){case void 0:return bt();case"save":if(navigator.getUserMedia&&(void 0===e.URL||void 0===e.URL.createObjectURL))return H.output("dataurlnewwindow");o(St(),n),"function"==typeof o.unload&&e.setTimeout&&setTimeout(o.unload,911);break;case"arraybuffer":return xt();case"blob":return St();case"bloburi":case"bloburl":return e.URL&&e.URL.createObjectURL(St())||void 0;case"datauristring":case"dataurlstring":return r;case"dataurlnewwindow":var i=e.open(r);if(i||"undefined"==typeof safari)return i;case"datauri":case"dataurl":return e.document.location.href=r;default:throw new Error('Output type "'+t+'" is not supported.')}});switch(c){case"pt":p=1;break;case"mm":p=72/25.4000508;break;case"cm":p=72/2.54000508;break;case"in":p=72;break;case"px":p=96/72;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+c}H.internal={pdfEscape:ut,getStyle:wt,getFont:function(){return I[yt.apply(H,arguments)]},getFontSize:function(){return O},getLineHeight:function(){return O*T},write:function(t){X(1===arguments.length?t:Array.prototype.join.call(arguments," "))},getCoordinateString:function(t){return W(t*p)},getVerticalCoordinateString:function(t){return W((y-t)*p)},collections:{},newObject:Y,newAdditionalObject:K,newObjectDeferred:J,newObjectDeferredBegin:Q,putStream:Z,events:U,scaleFactor:p,pageSize:{get width(){return v},get height(){return y}},output:function(t,e){return kt(t,e)},getNumberOfPages:function(){return F.length-1},pages:F,out:X,f2:W,getPageInfo:function(t){return{objId:2*(t-1)+3,pageNumber:t,pageContext:N[t]}},getCurrentPageInfo:function(){return{objId:2*(m-1)+3,pageNumber:m,pageContext:N[m]}},getPDFVersion:function(){return i}},H.addPage=function(){return gt.apply(this,arguments),this},H.setPage=function(){return vt.apply(this,arguments),this},H.insertPage=function(t){return this.addPage(),this.movePage(m,t),this},H.movePage=function(t,e){if(t>e){for(var n=F[t],r=q[t],o=N[t],i=t;i>e;i--)F[i]=F[i-1],q[i]=q[i-1],N[i]=N[i-1];F[e]=n,q[e]=r,N[e]=o,this.setPage(e)}else if(t<e){for(var n=F[t],r=q[t],o=N[t],i=t;i<e;i++)F[i]=F[i+1],q[i]=q[i+1],N[i]=N[i+1];F[e]=n,q[e]=r,N[e]=o,this.setPage(e)}return this},H.deletePage=function(){return mt.apply(this,arguments),this},H.setDisplayMode=function(t,e,n){if(w=t,x=e,b=n,-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(n))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+n+'" is not recognized.');return this},H.text=function(t,e,n,r,o,i){function a(t){return t=t.split("\t").join(Array(f.TabLen||9).join(" ")),ut(t,r)}"number"==typeof t&&(g=n,n=e,e=t,t=g),"string"==typeof t&&(t=t.match(/[\n\r]/)?t.split(/\r\n|\r|\n/g):[t]),"string"==typeof o&&(i=o,o=null),"string"==typeof r&&(i=r,r=null),"number"==typeof r&&(o=r,r=null);var s="",l="Td";if(o){o*=Math.PI/180;var c=Math.cos(o),u=Math.sin(o);s=[W(c),W(u),W(-1*u),W(c),""].join(" "),l="Tm"}r=r||{},"noBOM"in r||(r.noBOM=!0),"autoencode"in r||(r.autoencode=!0);var h="",m=this.internal.getCurrentPageInfo().pageContext;if(!0===r.stroke?!0!==m.lastTextWasStroke&&(h="1 Tr\n",m.lastTextWasStroke=!0):(m.lastTextWasStroke&&(h="0 Tr\n"),m.lastTextWasStroke=!1),void 0===this._runningPageHeight&&(this._runningPageHeight=0),"string"==typeof t)t=a(t);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');for(var v=t.concat(),b=[],w=v.length;w--;)b.push(a(v.shift()));var x=Math.ceil((y-n-this._runningPageHeight)*p/(O*T));if(0<=x&&b.length,i){var S,C,_,A=O*T,P=t.map(function(t){return this.getStringUnitWidth(t)*O/p},this);if(_=Math.max.apply(Math,P),"center"===i)S=e-_/2,e-=P[0]/2;else{if("right"!==i)throw new Error('Unrecognized alignment option, use "center" or "right".');S=e-_,e-=P[0]}C=e,t=b[0];for(var E=1,w=b.length;E<w;E++){var I=_-P[E];"center"===i&&(I/=2),t+=") Tj\n"+(S-C+I)+" -"+A+" Td ("+b[E],C=S+I}}else t=b.join(") Tj\nT* (")}var j;return j=W((y-n)*p),X("BT\n/"+d+" "+O+" Tf\n"+O*T+" TL\n"+h+k+"\n"+s+W(e*p)+" "+j+" "+l+"\n("+t+") Tj\nET"),this},H.lstext=function(t,e,n,r){console.warn("jsPDF.lstext is deprecated");for(var o=0,i=t.length;o<i;o++,e+=r)this.text(t[o],e,n);return this},H.line=function(t,e,n,r){return this.lines([[n-t,r-e]],t,e)},H.clip=function(){X("W"),X("S")},H.clip_fixed=function(t){X("evenodd"===t?"W*":"W"),X("n")},H.lines=function(t,e,n,r,o,i){var a,s,l,c,u,h,f,d,m,v,b;for("number"==typeof t&&(g=n,n=e,e=t,t=g),r=r||[1,1],X(V(e*p)+" "+V((y-n)*p)+" m "),a=r[0],s=r[1],c=t.length,v=e,b=n,l=0;l<c;l++)u=t[l],2===u.length?(v=u[0]*a+v,b=u[1]*s+b,X(V(v*p)+" "+V((y-b)*p)+" l")):(h=u[0]*a+v,f=u[1]*s+b,d=u[2]*a+v,m=u[3]*s+b,v=u[4]*a+v,b=u[5]*s+b,X(V(h*p)+" "+V((y-f)*p)+" "+V(d*p)+" "+V((y-m)*p)+" "+V(v*p)+" "+V((y-b)*p)+" c"));return i&&X(" h"),null!==o&&X(wt(o)),this},H.rect=function(t,e,n,r,o){return wt(o),X([W(t*p),W((y-e)*p),W(n*p),W(-r*p),"re"].join(" ")),null!==o&&X(wt(o)),this},H.triangle=function(t,e,n,r,o,i,a){return this.lines([[n-t,r-e],[o-n,i-r],[t-o,e-i]],t,e,[1,1],a,!0),this},H.roundedRect=function(t,e,n,r,o,i,a){var s=4/3*(Math.SQRT2-1);return this.lines([[n-2*o,0],[o*s,0,o,i-i*s,o,i],[0,r-2*i],[0,i*s,-o*s,i,-o,i],[2*o-n,0],[-o*s,0,-o,-i*s,-o,-i],[0,2*i-r],[0,-i*s,o*s,-i,o,-i]],t+o,e,[1,1],a),this},H.ellipse=function(t,e,n,r,o){var i=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return X([W((t+n)*p),W((y-e)*p),"m",W((t+n)*p),W((y-(e-a))*p),W((t+i)*p),W((y-(e-r))*p),W(t*p),W((y-(e-r))*p),"c"].join(" ")),X([W((t-i)*p),W((y-(e-r))*p),W((t-n)*p),W((y-(e-a))*p),W((t-n)*p),W((y-e)*p),"c"].join(" ")),X([W((t-n)*p),W((y-(e+a))*p),W((t-i)*p),W((y-(e+r))*p),W(t*p),W((y-(e+r))*p),"c"].join(" ")),X([W((t+i)*p),W((y-(e+r))*p),W((t+n)*p),W((y-(e+a))*p),W((t+n)*p),W((y-e)*p),"c"].join(" ")),null!==o&&X(wt(o)),this},H.circle=function(t,e,n,r){return this.ellipse(t,e,n,n,r)},H.setProperties=function(t){for(var e in $)$.hasOwnProperty(e)&&t[e]&&($[e]=t[e]);return this},H.setFontSize=function(t){return O=t,this},H.setFont=function(t,e){return d=yt(t,e),this},H.setFontStyle=H.setFontType=function(t){return d=yt(void 0,t),this},H.getFontList=function(){var t,e,n,r={};for(t in j)if(j.hasOwnProperty(t)){r[t]=n=[];for(e in j[t])j[t].hasOwnProperty(e)&&n.push(e)}return r},H.addFont=function(t,e,n){lt(t,e,n,"StandardEncoding")},H.setLineWidth=function(t){return X((t*p).toFixed(2)+" w"),this},H.setDrawColor=function(t,e,n,r){var o;return o=void 0===e||void 0===r&&t===e===n?"string"==typeof t?t+" G":W(t/255)+" G":void 0===r?"string"==typeof t?[t,e,n,"RG"].join(" "):[W(t/255),W(e/255),W(n/255),"RG"].join(" "):"string"==typeof t?[t,e,n,r,"K"].join(" "):[W(t),W(e),W(n),W(r),"K"].join(" "),X(o),this},H.setFillColor=function(e,n,r,o){var i;return void 0===n||void 0===o&&e===n===r?i="string"==typeof e?e+" g":W(e/255)+" g":void 0===o||"object"===(void 0===o?"undefined":t(o))?(i="string"==typeof e?[e,n,r,"rg"].join(" "):[W(e/255),W(n/255),W(r/255),"rg"].join(" "),o&&0===o.a&&(i=["255","255","255","rg"].join(" "))):i="string"==typeof e?[e,n,r,o,"k"].join(" "):[W(e),W(n),W(r),W(o),"k"].join(" "),X(i),this},H.setTextColor=function(t,e,n){if("string"==typeof t&&/^#[0-9A-Fa-f]{6}$/.test(t)){var r=parseInt(t.substr(1),16);t=r>>16&255,e=r>>8&255,n=255&r}return k=0===t&&0===e&&0===n||void 0===e?V(t/255)+" g":[V(t/255),V(e/255),V(n/255),"rg"].join(" "),this},H.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},H.setLineCap=function(t){var e=this.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return L=e,X(e+" J"),this},H.setLineJoin=function(t){var e=this.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return M=e,X(e+" j"),this},H.output=kt,H.save=function(t){H.output("save",t)};for(var Ct in r.API)r.API.hasOwnProperty(Ct)&&("events"===Ct&&r.API.events.length?function(t,e){var n,r,o;for(o=e.length-1;-1!==o;o--)n=e[o][0],r=e[o][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(U,r.API.events):H[Ct]=r.API[Ct]);return function(){for(var t="helvetica",e="times",n="courier",r="normal",o="bold",i="italic",a="bolditalic",s=[["Helvetica",t,r],["Helvetica-Bold",t,o],["Helvetica-Oblique",t,i],["Helvetica-BoldOblique",t,a],["Courier",n,r],["Courier-Bold",n,o],["Courier-Oblique",n,i],["Courier-BoldOblique",n,a],["Times-Roman",e,r],["Times-Bold",e,o],["Times-Italic",e,i],["Times-BoldItalic",e,a],["ZapfDingbats","zapfdingbats"]],l=0,c=s.length;l<c;l++){var u=lt(s[l][0],s[l][1],s[l][2],"StandardEncoding"),h=s[l][0].split("-");st(u,h[0],h[1]||"")}U.publish("addFonts",{fonts:I,dictionary:j})}(),d="F1",gt(u,l),U.publish("initialized"),H}var i="1.3",s={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]};return r.API={events:[]},r.version="1.x-master","function"==typeof define&&define.amd?define("jsPDF",function(){return r}):"undefined"!=typeof module&&module.exports?module.exports=r:e.jsPDF=r,r}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0));(window.AcroForm=function(t){var n=window.AcroForm;n.scale=function(t){return t*(r.internal.scaleFactor/1)},n.antiScale=function(t){return 1/r.internal.scaleFactor*t};var r={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null};e.API.acroformPlugin=r;var o=function(){for(var t in this.acroformPlugin.acroFormDictionaryRoot.Fields){var e=this.acroformPlugin.acroFormDictionaryRoot.Fields[t];e.hasAnnotation&&a.call(this,e)}},i=function(){if(this.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");this.acroformPlugin.acroFormDictionaryRoot=new n.AcroFormDictionary,this.acroformPlugin.internal=this.internal,this.acroformPlugin.acroFormDictionaryRoot._eventID=this.internal.events.subscribe("postPutResources",c),this.internal.events.subscribe("buildDocument",o),this.internal.events.subscribe("putCatalog",l),this.internal.events.subscribe("postPutPages",u)},a=function(t){var n={type:"reference",object:t};e.API.annotationPlugin.annotations[this.internal.getPageInfo(t.page).pageNumber].push(n)},s=function(t){this.acroformPlugin.printedOut&&(this.acroformPlugin.printedOut=!1,this.acroformPlugin.acroFormDictionaryRoot=null),this.acroformPlugin.acroFormDictionaryRoot||i.call(this),this.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)},l=function(){void 0!==this.acroformPlugin.acroFormDictionaryRoot?this.internal.write("/AcroForm "+this.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")},c=function(){this.internal.events.unsubscribe(this.acroformPlugin.acroFormDictionaryRoot._eventID),delete this.acroformPlugin.acroFormDictionaryRoot._eventID,this.acroformPlugin.printedOut=!0},u=function(t){var e=!t;t||(this.internal.newObjectDeferredBegin(this.acroformPlugin.acroFormDictionaryRoot.objId),this.internal.out(this.acroformPlugin.acroFormDictionaryRoot.getString()));var t=t||this.acroformPlugin.acroFormDictionaryRoot.Kids;for(var r in t){var o=t[r],i=o.Rect;o.Rect&&(o.Rect=n.internal.calculateCoordinates.call(this,o.Rect)),this.internal.newObjectDeferredBegin(o.objId);var a="";if(a+=o.objId+" 0 obj\n",a+="<<\n"+o.getContent(),o.Rect=i,o.hasAppearanceStream&&!o.appearanceStreamContent){var s=n.internal.calculateAppearanceStream.call(this,o);a+="/AP << /N "+s+" >>\n",this.acroformPlugin.xForms.push(s)}if(o.appearanceStreamContent){a+="/AP << ";for(var l in o.appearanceStreamContent){var c=o.appearanceStreamContent[l];if(a+="/"+l+" ",a+="<< ",Object.keys(c).length>=1||Array.isArray(c))for(var r in c){var u=c[r];"function"==typeof u&&(u=u.call(this,o)),a+="/"+r+" "+u+" ",this.acroformPlugin.xForms.indexOf(u)>=0||this.acroformPlugin.xForms.push(u)}else{var u=c;"function"==typeof u&&(u=u.call(this,o)),a+="/"+r+" "+u+" \n",this.acroformPlugin.xForms.indexOf(u)>=0||this.acroformPlugin.xForms.push(u)}a+=" >>\n"}a+=">>\n"}a+=">>\nendobj\n",this.internal.out(a)}e&&h.call(this,this.acroformPlugin.xForms)},h=function(t){for(var e in t){var n=e,r=t[e];this.internal.newObjectDeferredBegin(r&&r.objId);var o="";o+=r?r.getString():"",this.internal.out(o),delete t[n]}};t.addField=function(t){return t instanceof n.TextField?d.call(this,t):t instanceof n.ChoiceField?p.call(this,t):t instanceof n.Button?f.call(this,t):t instanceof n.ChildClass?s.call(this,t):t&&s.call(this,t),t.page=this.acroformPlugin.internal.getCurrentPageInfo().pageNumber,this};var f=function(t){var t=t||new n.Field;t.FT="/Btn";var e=t.Ff||0;t.pushbutton&&(e=n.internal.setBitPosition(e,17),delete t.pushbutton),t.radio&&(e=n.internal.setBitPosition(e,16),delete t.radio),t.noToggleToOff&&(e=n.internal.setBitPosition(e,15)),t.Ff=e,s.call(this,t)},d=function(t){var t=t||new n.Field;t.FT="/Tx";var e=t.Ff||0;t.multiline&&(e|=4096),t.password&&(e|=8192),t.fileSelect&&(e|=1<<20),t.doNotSpellCheck&&(e|=1<<22),t.doNotScroll&&(e|=1<<23),t.Ff=t.Ff||e,s.call(this,t)},p=function(t){var e=t||new n.Field;e.FT="/Ch";var r=e.Ff||0;e.combo&&(r=n.internal.setBitPosition(r,18),delete e.combo),e.edit&&(r=n.internal.setBitPosition(r,19),delete e.edit),e.sort&&(r=n.internal.setBitPosition(r,20),delete e.sort),e.multiSelect&&this.internal.getPDFVersion()>=1.4&&(r=n.internal.setBitPosition(r,22),delete e.multiSelect),e.doNotSpellCheck&&this.internal.getPDFVersion()>=1.4&&(r=n.internal.setBitPosition(r,23),delete e.doNotSpellCheck),e.Ff=r,s.call(this,e)}})(e.API);var n=window.AcroForm;n.internal={},n.createFormXObject=function(t){var e=new n.FormXObject,r=n.Appearance.internal.getHeight(t)||0,o=n.Appearance.internal.getWidth(t)||0;return e.BBox=[0,0,o,r],e},n.Appearance={CheckBox:{createAppearanceStream:function(){return{N:{On:n.Appearance.CheckBox.YesNormal},D:{On:n.Appearance.CheckBox.YesPushDown,Off:n.Appearance.CheckBox.OffPushDown}}},createMK:function(){return"<< /CA (3)>>"},YesPushDown:function(t){var e=n.createFormXObject(t),r="";t.Q=1;var o=n.internal.calculateX(t,"3","ZapfDingbats",50);return r+="0.749023 g\n 0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n f\n BMC\n q\n 0 0 1 rg\n /F13 "+o.fontSize+" Tf 0 g\n BT\n",r+=o.text,r+="ET\n Q\n EMC\n",e.stream=r,e},YesNormal:function(t){var e=n.createFormXObject(t),r="";t.Q=1;var o=n.internal.calculateX(t,"3","ZapfDingbats",.9*n.Appearance.internal.getHeight(t));return r+="1 g\n0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\nf\nq\n0 0 1 rg\n0 0 "+(n.Appearance.internal.getWidth(t)-1)+" "+(n.Appearance.internal.getHeight(t)-1)+" re\nW\nn\n0 g\nBT\n/F13 "+o.fontSize+" Tf 0 g\n",r+=o.text,r+="ET\n Q\n",e.stream=r,e},OffPushDown:function(t){var e=n.createFormXObject(t),r="";return r+="0.749023 g\n 0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n f\n",e.stream=r,e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:n.Appearance.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=n.Appearance.RadioButton.Circle.YesNormal,e.D[t]=n.Appearance.RadioButton.Circle.YesPushDown,e},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(t){var e=n.createFormXObject(t),r="",o=n.Appearance.internal.getWidth(t)<=n.Appearance.internal.getHeight(t)?n.Appearance.internal.getWidth(t)/4:n.Appearance.internal.getHeight(t)/4;o*=.9;var i=n.Appearance.internal.Bezier_C;return r+="q\n1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+o+" 0 m\n"+o+" "+o*i+" "+o*i+" "+o+" 0 "+o+" c\n-"+o*i+" "+o+" -"+o+" "+o*i+" -"+o+" 0 c\n-"+o+" -"+o*i+" -"+o*i+" -"+o+" 0 -"+o+" c\n"+o*i+" -"+o+" "+o+" -"+o*i+" "+o+" 0 c\nf\nQ\n",e.stream=r,e},YesPushDown:function(t){var e=n.createFormXObject(t),r="",o=n.Appearance.internal.getWidth(t)<=n.Appearance.internal.getHeight(t)?n.Appearance.internal.getWidth(t)/4:n.Appearance.internal.getHeight(t)/4;o*=.9;var i=2*o,a=i*n.Appearance.internal.Bezier_C,s=o*n.Appearance.internal.Bezier_C;return r+="0.749023 g\n q\n 1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+i+" 0 m\n"+i+" "+a+" "+a+" "+i+" 0 "+i+" c\n-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c\n-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c\n"+a+" -"+i+" "+i+" -"+a+" "+i+" 0 c\n f\n Q\n 0 g\n q\n 1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+o+" 0 m\n"+o+" "+s+" "+s+" "+o+" 0 "+o+" c\n-"+s+" "+o+" -"+o+" "+s+" -"+o+" 0 c\n-"+o+" -"+s+" -"+s+" -"+o+" 0 -"+o+" c\n"+s+" -"+o+" "+o+" -"+s+" "+o+" 0 c\n f\n Q\n",e.stream=r,e},OffPushDown:function(t){var e=n.createFormXObject(t),r="",o=n.Appearance.internal.getWidth(t)<=n.Appearance.internal.getHeight(t)?n.Appearance.internal.getWidth(t)/4:n.Appearance.internal.getHeight(t)/4;o*=.9;var i=2*o,a=i*n.Appearance.internal.Bezier_C;return r+="0.749023 g\n q\n 1 0 0 1 "+n.Appearance.internal.getWidth(t)/2+" "+n.Appearance.internal.getHeight(t)/2+" cm\n"+i+" 0 m\n"+i+" "+a+" "+a+" "+i+" 0 "+i+" c\n-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c\n-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c\n"+a+" -"+i+" "+i+" -"+a+" "+i+" 0 c\n f\n Q\n",e.stream=r,e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:n.Appearance.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=n.Appearance.RadioButton.Cross.YesNormal,e.D[t]=n.Appearance.RadioButton.Cross.YesPushDown,e},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(t){var e=n.createFormXObject(t),r="",o=n.Appearance.internal.calculateCross(t);return r+="q\n 1 1 "+(n.Appearance.internal.getWidth(t)-2)+" "+(n.Appearance.internal.getHeight(t)-2)+" re\n W\n n\n "+o.x1.x+" "+o.x1.y+" m\n "+o.x2.x+" "+o.x2.y+" l\n "+o.x4.x+" "+o.x4.y+" m\n "+o.x3.x+" "+o.x3.y+" l\n s\n Q\n",e.stream=r,e},YesPushDown:function(t){var e=n.createFormXObject(t),r=n.Appearance.internal.calculateCross(t),o="";return o+="0.749023 g\n 0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n f\n q\n 1 1 "+(n.Appearance.internal.getWidth(t)-2)+" "+(n.Appearance.internal.getHeight(t)-2)+" re\n W\n n\n "+r.x1.x+" "+r.x1.y+" m\n "+r.x2.x+" "+r.x2.y+" l\n "+r.x4.x+" "+r.x4.y+" m\n "+r.x3.x+" "+r.x3.y+" l\n s\n Q\n",e.stream=o,e},OffPushDown:function(t){var e=n.createFormXObject(t),r="";return r+="0.749023 g\n 0 0 "+n.Appearance.internal.getWidth(t)+" "+n.Appearance.internal.getHeight(t)+" re\n f\n",e.stream=r,e}}},createDefaultAppearanceStream:function(t){var e="";return e+="/Helv 0 Tf 0 g"}},n.Appearance.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=n.Appearance.internal.getWidth(t),r=n.Appearance.internal.getHeight(t),o=function(t,e){return t>e?e:t}(e,r);return{x1:{x:(e-o)/2,y:(r-o)/2+o},x2:{x:(e-o)/2+o,y:(r-o)/2},x3:{x:(e-o)/2,y:(r-o)/2},x4:{x:(e-o)/2+o,y:(r-o)/2+o}}}},n.Appearance.internal.getWidth=function(t){return t.Rect[2]},n.Appearance.internal.getHeight=function(t){return t.Rect[3]},n.internal.inherit=function(t,e){Object.create,t.prototype=Object.create(e.prototype),t.prototype.constructor=t},n.internal.arrayToPdfArray=function(t){if(Array.isArray(t)){var e=" [";for(var n in t){e+=t[n].toString(),e+=n<t.length-1?" ":""}return e+="]"}},n.internal.toPdfString=function(t){return t=t||"",0!==t.indexOf("(")&&(t="("+t),")"!=t.substring(t.length-1)&&(t+="("),t},n.PDFObject=function(){var t;Object.defineProperty(this,"objId",{get:function(){return t||(this.internal?t=this.internal.newObjectDeferred():e.API.acroformPlugin.internal&&(t=e.API.acroformPlugin.internal.newObjectDeferred())),t||console.log("Couldn't create Object ID"),t},configurable:!1})},n.PDFObject.prototype.toString=function(){return this.objId+" 0 R"},n.PDFObject.prototype.getString=function(){var t=this.objId+" 0 obj\n<<";return t+=this.getContent()+">>\n",this.stream&&(t+="stream\n",t+=this.stream,t+="endstream\n"),t+="endobj\n"},n.PDFObject.prototype.getContent=function(){var t="";return t+=function(t){var e="",r=Object.keys(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var o in r){var i=r[o],a=t[i];a&&(e+=Array.isArray(a)?"/"+i+" "+n.internal.arrayToPdfArray(a)+"\n":a instanceof n.PDFObject?"/"+i+" "+a.objId+" 0 R\n":"/"+i+" "+a+"\n")}return e}(this)},n.FormXObject=function(){n.PDFObject.call(this),this.Type="/XObject",this.Subtype="/Form",this.FormType=1,this.BBox,this.Matrix,this.Resources="2 0 R",this.PieceInfo;var t;Object.defineProperty(this,"Length",{enumerable:!0,get:function(){return void 0!==t?t.length:0}}),Object.defineProperty(this,"stream",{enumerable:!1,set:function(e){t=e},get:function(){return t||null}})},n.internal.inherit(n.FormXObject,n.PDFObject),n.AcroFormDictionary=function(){n.PDFObject.call(this);var t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!0,configurable:!0,get:function(){return t}}),this.DA},n.internal.inherit(n.AcroFormDictionary,n.PDFObject),n.Field=function(){n.PDFObject.call(this);var t;Object.defineProperty(this,"Rect",{enumerable:!0,configurable:!1,get:function(){if(t){return t}},set:function(e){t=e}});var e="";Object.defineProperty(this,"FT",{enumerable:!0,set:function(t){e=t},get:function(){return e}});var r;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,set:function(t){r=t},get:function(){if(!r||r.length<1){if(this instanceof n.ChildClass)return;return"(FieldObject"+n.Field.FieldNum+++")"}return"("==r.substring(0,1)&&r.substring(r.length-1)?r:"("+r+")"}});var o;Object.defineProperty(this,"DA",{enumerable:!0,get:function(){if(o)return"("+o+")"},set:function(t){o=t}});var i;Object.defineProperty(this,"DV",{enumerable:!0,configurable:!0,get:function(){if(i)return i},set:function(t){i=t}}),Object.defineProperty(this,"Type",{enumerable:!0,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,get:function(){return this.hasAnnotation?"/Widget":null}}),this.BG,Object.defineProperty(this,"hasAnnotation",{enumerable:!1,get:function(){return!!(this.Rect||this.BC||this.BG)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(this,"page",{enumerable:!1,configurable:!0,writable:!0})},n.Field.FieldNum=0,n.internal.inherit(n.Field,n.PDFObject),n.ChoiceField=function(){n.Field.call(this),this.FT="/Ch",this.Opt=[],this.V="()",this.TI=0,this.combo=!1,Object.defineProperty(this,"edit",{enumerable:!0,set:function(t){1==t?(this._edit=!0,this.combo=!0):this._edit=!1},get:function(){return!!this._edit&&this._edit},configurable:!1}),this.hasAppearanceStream=!0,Object.defineProperty(this,"V",{get:function(){n.internal.toPdfString()}})},n.internal.inherit(n.ChoiceField,n.Field),window.ChoiceField=n.ChoiceField,n.ListBox=function(){n.ChoiceField.call(this)},n.internal.inherit(n.ListBox,n.ChoiceField),window.ListBox=n.ListBox,n.ComboBox=function(){n.ListBox.call(this),this.combo=!0},n.internal.inherit(n.ComboBox,n.ListBox),window.ComboBox=n.ComboBox,n.EditBox=function(){n.ComboBox.call(this),this.edit=!0},n.internal.inherit(n.EditBox,n.ComboBox),window.EditBox=n.EditBox,n.Button=function(){n.Field.call(this),this.FT="/Btn"},n.internal.inherit(n.Button,n.Field),window.Button=n.Button,n.PushButton=function(){n.Button.call(this),this.pushbutton=!0},n.internal.inherit(n.PushButton,n.Button),window.PushButton=n.PushButton,n.RadioButton=function(){n.Button.call(this),this.radio=!0;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,get:function(){if(t.length>0)return t}}),Object.defineProperty(this,"__Kids",{get:function(){return t}});var e;Object.defineProperty(this,"noToggleToOff",{enumerable:!1,get:function(){return e},set:function(t){e=t}})},n.internal.inherit(n.RadioButton,n.Button),window.RadioButton=n.RadioButton,n.ChildClass=function(t,e){n.Field.call(this),this.Parent=t,this._AppearanceType=n.Appearance.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(e),this.F=n.internal.setBitPosition(this.F,3,1),this.MK=this._AppearanceType.createMK(),this.AS="/Off",this._Name=e},n.internal.inherit(n.ChildClass,n.Field),n.RadioButton.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t&&"createMK"in t))return void console.log("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.__Kids){var n=this.__Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n._Name),n.MK=t.createMK()}},n.RadioButton.prototype.createOption=function(t){var r=this,o=(this.__Kids.length,new n.ChildClass(r,t));return this.__Kids.push(o),e.API.addField(o),o},n.CheckBox=function(){Button.call(this),this.appearanceStreamContent=n.Appearance.CheckBox.createAppearanceStream(),this.MK=n.Appearance.CheckBox.createMK(),this.AS="/On",this.V="/On"},n.internal.inherit(n.CheckBox,n.Button),window.CheckBox=n.CheckBox,n.TextField=function(){n.Field.call(this),this.DA=n.Appearance.createDefaultAppearanceStream(),this.F=4;var t;Object.defineProperty(this,"V",{get:function(){return t?"("+t+")":t},enumerable:!0,set:function(e){t=e}});var e;Object.defineProperty(this,"DV",{get:function(){return e?"("+e+")":e},enumerable:!0,set:function(t){e=t}});var r=!1;Object.defineProperty(this,"multiline",{enumerable:!1,get:function(){return r},set:function(t){r=t}});var o=!1;Object.defineProperty(this,"MaxLen",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,get:function(){return this.V||this.DV}})},n.internal.inherit(n.TextField,n.Field),window.TextField=n.TextField,n.PasswordField=function(){TextField.call(this),Object.defineProperty(this,"password",{value:!0,enumerable:!1,configurable:!1,writable:!1})},n.internal.inherit(n.PasswordField,n.TextField),window.PasswordField=n.PasswordField,n.internal.calculateFontSpace=function(t,e,r){var r=r||"helvetica",o=n.internal.calculateFontSpace.canvas||(n.internal.calculateFontSpace.canvas=document.createElement("canvas")),i=o.getContext("2d");i.save();var a=e+" "+r;i.font=a;var s=i.measureText(t);i.fontcolor="black";var i=o.getContext("2d");return s.height=1.5*i.measureText("3").width,i.restore(),s.width,s},n.internal.calculateX=function(t,e,r,o){var o=o||12,r=r||"helvetica",i={text:"",fontSize:""};e="("==e.substr(0,1)?e.substr(1):e,e=")"==e.substr(e.length-1)?e.substr(0,e.length-1):e;var a=e.split(" "),s=o,l=n.Appearance.internal.getHeight(t)||0;l=l<0?-l:l;var c=n.Appearance.internal.getWidth(t)||0;c=c<0?-c:c;s++;t:for(;;){var e="";s--;var u=n.internal.calculateFontSpace("3",s+"px",r).height,h=t.multiline?l-s:(l-u)/2;h+=2;var f=-2,d=h,p=0,g=0,m=0;if(0==s){s=12,e="(...) Tj\n",e+="% Width of Text: "+n.internal.calculateFontSpace(e,"1px").width+", FieldWidth:"+c+"\n";break}m=n.internal.calculateFontSpace(a[0]+" ",s+"px",r).width;var v="",y=0;for(var b in a){v+=a[b]+" ",v=" "==v.substr(v.length-1)?v.substr(0,v.length-1):v;var w=parseInt(b);m=n.internal.calculateFontSpace(v+" ",s+"px",r).width;var x=function(t,e,o){if(t+1<a.length){var i=e+" "+a[t+1];return n.internal.calculateFontSpace(i,o+"px",r).width<=c-4}return!1}(w,v,s),S=b>=a.length-1;if(!x||S){if(x||S){
|
||
if(S)g=w;else if(t.multiline&&(u+2)*(y+2)+2>l)continue t}else{if(!t.multiline)continue t;if((u+2)*(y+2)+2>l)continue t;g=w}for(var k="",C=p;C<=g;C++)k+=a[C]+" ";switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,m=n.internal.calculateFontSpace(k,s+"px",r).width,t.Q){case 2:f=c-m-2;break;case 1:f=(c-m)/2;break;case 0:default:f=2}e+=f+" "+d+" Td\n",e+="("+k+") Tj\n",e+=-f+" 0 Td\n",d=-(s+2),f,m=0,p=g+1,y++,v=""}else v+=" "}break}return i.text=e,i.fontSize=s,i},n.internal.calculateAppearanceStream=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e="",r=t.V||t.DV,o=n.internal.calculateX(t,r);e+="/Tx BMC\nq\n/F1 "+o.fontSize+" Tf\n1 0 0 1 0 0 Tm\n",e+="BT\n",e+=o.text,e+="ET\n",e+="Q\nEMC\n";var i=new n.createFormXObject(t);return i.stream=e,i}},n.internal.calculateCoordinates=function(t,e,r,o){var i={};if(this.internal){var a=function(t){return t*this.internal.scaleFactor};Array.isArray(t)?(t[0]=n.scale(t[0]),t[1]=n.scale(t[1]),t[2]=n.scale(t[2]),t[3]=n.scale(t[3]),i.lowerLeft_X=t[0]||0,i.lowerLeft_Y=a.call(this,this.internal.pageSize.height)-t[3]-t[1]||0,i.upperRight_X=t[0]+t[2]||0,i.upperRight_Y=a.call(this,this.internal.pageSize.height)-t[1]||0):(t=n.scale(t),e=n.scale(e),r=n.scale(r),o=n.scale(o),i.lowerLeft_X=t||0,i.lowerLeft_Y=this.internal.pageSize.height-e||0,i.upperRight_X=t+r||0,i.upperRight_Y=this.internal.pageSize.height-e+o||0)}else Array.isArray(t)?(i.lowerLeft_X=t[0]||0,i.lowerLeft_Y=t[1]||0,i.upperRight_X=t[0]+t[2]||0,i.upperRight_Y=t[1]+t[3]||0):(i.lowerLeft_X=t||0,i.lowerLeft_Y=e||0,i.upperRight_X=t+r||0,i.upperRight_Y=e+o||0);return[i.lowerLeft_X,i.lowerLeft_Y,i.upperRight_X,i.upperRight_Y]},n.internal.calculateColor=function(t,e,n){var r=new Array(3);return r.r=0|t,r.g=0|e,r.b=0|n,r},n.internal.getBitPosition=function(t,e){t=t||0;var n=1;return n<<=e-1,t|n},n.internal.setBitPosition=function(t,e,n){t=t||0,n=n||1;var r=1;if(r<<=e-1,1==n)var t=t|r;else var t=t&~r;return t},function(t){t.addHTML=function(t,e,n,r,o){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,o=n),"function"==typeof r&&(o=r,r=null);var i=this.internal,a=i.scaleFactor,s=i.pageSize.width,l=i.pageSize.height;if(r=r||{},r.onrendered=function(t){e=parseInt(e)||0,n=parseInt(n)||0;var i=r.dim||{},c=i.h||0,u=i.w||Math.min(s,t.width/a)-e,h="JPEG";if(r.format&&(h=r.format),t.height>l&&r.pagesplit){var f=function(){for(var r=0;;){var i=document.createElement("canvas");i.width=Math.min(s*a,t.width),i.height=Math.min(l*a,t.height-r);i.getContext("2d").drawImage(t,0,r,t.width,i.height,0,0,i.width,i.height);var c=[i,e,r?0:n,i.width/a,i.height/a,h,null,"SLOW"];if(this.addImage.apply(this,c),(r+=i.height)>=t.height)break;this.addPage()}o(u,r,null,c)}.bind(this);if("CANVAS"===t.nodeName){var d=new Image;d.onload=f,d.src=t.toDataURL("image/png"),t=d}else f()}else{var p=Math.random().toString(35),g=[t,e,n,u,c,h,p,"SLOW"];this.addImage.apply(this,g),o(u,c,p,g)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"!=typeof rasterizeHTML){var c="drawDocument";return"string"==typeof t&&(c=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[c](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){o(null,t)})}return null}}(e.API),function(e){var n="addImage_",r=["jpeg","jpg","png"],o=function t(e){var n=this.internal.newObject(),r=this.internal.write,o=this.internal.putStream;if(e.n=n,r("<</Type /XObject"),r("/Subtype /Image"),r("/Width "+e.w),r("/Height "+e.h),e.cs===this.color_spaces.INDEXED?r("/ColorSpace [/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?n+2:n+1)+" 0 R]"):(r("/ColorSpace /"+e.cs),e.cs===this.color_spaces.DEVICE_CMYK&&r("/Decode [1 0 1 0 1 0 1 0]")),r("/BitsPerComponent "+e.bpc),"f"in e&&r("/Filter /"+e.f),"dp"in e&&r("/DecodeParms <<"+e.dp+">>"),"trns"in e&&e.trns.constructor==Array){for(var i="",a=0,s=e.trns.length;a<s;a++)i+=e.trns[a]+" "+e.trns[a]+" ";r("/Mask ["+i+"]")}if("smask"in e&&r("/SMask "+(n+1)+" 0 R"),r("/Length "+e.data.length+">>"),o(e.data),r("endobj"),"smask"in e){var l="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,c={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:l,data:e.smask};"f"in e&&(c.f=e.f),t.call(this,c)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),r("<< /Length "+e.pal.length+">>"),o(this.arrayBufferToBinaryString(new Uint8Array(e.pal))),r("endobj"))},i=function(){var t=this.internal.collections[n+"images"];for(var e in t)o.call(this,t[e])},a=function(){var t,e=this.internal.collections[n+"images"],r=this.internal.write;for(var o in e)t=e[o],r("/I"+t.i,t.n,"0","R")},s=function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:e.image_compression.NONE},l=function(){var t=this.internal.collections[n+"images"];return t||(this.internal.collections[n+"images"]=t={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a)),t},c=function(t){var e=0;return t&&(e=Object.keys?Object.keys(t).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(t)),e},u=function(t){return void 0===t||null===t},h=function(t){return"string"==typeof t&&e.sHashCode(t)},f=function(t){return-1===r.indexOf(t)},d=function(t){return"function"!=typeof e["process"+t.toUpperCase()]},p=function(e){return"object"===(void 0===e?"undefined":t(e))&&1===e.nodeType},g=function(e,n,r){if("IMG"===e.nodeName&&e.hasAttribute("src")){var o=""+e.getAttribute("src");if(!r&&0===o.indexOf("data:image/"))return o;!n&&/\.png(?:[?#].*)?$/i.test(o)&&(n="png")}if("CANVAS"===e.nodeName)var i=e;else{var i=document.createElement("canvas");i.width=e.clientWidth||e.width,i.height=e.clientHeight||e.height;var a=i.getContext("2d");if(!a)throw"addImage requires canvas to be supported by browser.";if(r){var s,l,c,u,h,f,d,p,g=Math.PI/180;"object"===(void 0===r?"undefined":t(r))&&(s=r.x,l=r.y,c=r.bg,r=r.angle),p=r*g,u=Math.abs(Math.cos(p)),h=Math.abs(Math.sin(p)),f=i.width,d=i.height,i.width=d*h+f*u,i.height=d*u+f*h,isNaN(s)&&(s=i.width/2),isNaN(l)&&(l=i.height/2),a.clearRect(0,0,i.width,i.height),a.fillStyle=c||"white",a.fillRect(0,0,i.width,i.height),a.save(),a.translate(s,l),a.rotate(p),a.drawImage(e,-f/2,-d/2),a.rotate(-p),a.translate(-s,-l),a.restore()}else a.drawImage(e,0,0,i.width,i.height)}return i.toDataURL("png"==(""+n).toLowerCase()?"image/png":"image/jpeg")},m=function(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n},v=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]},y=function(t,e,n,r,o,i,a){var s=v.call(this,n,r,o),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;n=s[0],r=s[1],a[i]=o,this.internal.write("q",l(n),"0 0",l(r),l(t),c(e+r),"cm /I"+o.i,"Do Q")};e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},e.sHashCode=function(t){return Array.prototype.reduce&&t.split("").reduce(function(t,e){return(t=(t<<5)-t+e.charCodeAt(0))&t},0)},e.isString=function(t){return"string"==typeof t},e.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));base64,(.+?)$/g.exec(t)},e.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},e.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},e.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},e.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},e.arrayBufferToBinaryString=function(t){this.isArrayBuffer(t)&&(t=new Uint8Array(t));for(var e="",n=t.byteLength,r=0;r<n;r++)e+=String.fromCharCode(t[r]);return e},e.arrayBufferToBase64=function(t){for(var e,n,r,o,i,a="",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=new Uint8Array(t),c=l.byteLength,u=c%3,h=c-u,f=0;f<h;f+=3)i=l[f]<<16|l[f+1]<<8|l[f+2],e=(16515072&i)>>18,n=(258048&i)>>12,r=(4032&i)>>6,o=63&i,a+=s[e]+s[n]+s[r]+s[o];return 1==u?(i=l[h],e=(252&i)>>2,n=(3&i)<<4,a+=s[e]+s[n]+"=="):2==u&&(i=l[h]<<8|l[h+1],e=(64512&i)>>10,n=(1008&i)>>4,r=(15&i)<<2,a+=s[e]+s[n]+s[r]+"="),a},e.createImageInfo=function(t,e,n,r,o,i,a,s,l,c,u,h,f){var d={alias:s,w:e,h:n,cs:r,bpc:o,i:a,data:t};return i&&(d.f=i),l&&(d.dp=l),c&&(d.trns=c),u&&(d.pal=u),h&&(d.smask=h),f&&(d.p=f),d},e.addImage=function(e,n,o,i,a,v,b,w,x){if("string"!=typeof n){var S=v;v=a,a=i,i=o,o=n,n=S}if("object"===(void 0===e?"undefined":t(e))&&!p(e)&&"imageData"in e){var k=e;e=k.imageData,n=k.format||n,o=k.x||o||0,i=k.y||i||0,a=k.w||a,v=k.h||v,b=k.alias||b,w=k.compression||w,x=k.rotation||k.angle||x}if(isNaN(o)||isNaN(i))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var C,O=l.call(this);if(!(C=m(e,O))){var T;if(p(e)&&(e=g(e,n,x)),u(b)&&(b=h(e)),!(C=m(b,O))){if(this.isString(e)){var _=this.extractInfoFromBase64DataURI(e);_?(n=_[2],e=atob(_[3])):137===e.charCodeAt(0)&&80===e.charCodeAt(1)&&78===e.charCodeAt(2)&&71===e.charCodeAt(3)&&(n="png")}if(n=(n||"JPEG").toLowerCase(),f(n))throw new Error("addImage currently only supports formats "+r+", not '"+n+"'");if(d(n))throw new Error("please ensure that the plugin for '"+n+"' support is added");if(this.supportsArrayBuffer()&&(e instanceof Uint8Array||(T=e,e=this.binaryStringToUint8Array(e))),!(C=this["process"+n.toUpperCase()](e,c(O),b,s(w),T)))throw new Error("An unkwown error occurred whilst processing the image")}}return y.call(this,o,i,a,v,C,C.i,O),this};var b=function(t){var e,n,r;if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var o=256*t.charCodeAt(4)+t.charCodeAt(5),i=4,a=t.length;i<a;){if(i+=o,255!==t.charCodeAt(i))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(i+1)||193===t.charCodeAt(i+1)||194===t.charCodeAt(i+1)||195===t.charCodeAt(i+1)||196===t.charCodeAt(i+1)||197===t.charCodeAt(i+1)||198===t.charCodeAt(i+1)||199===t.charCodeAt(i+1))return n=256*t.charCodeAt(i+5)+t.charCodeAt(i+6),e=256*t.charCodeAt(i+7)+t.charCodeAt(i+8),r=t.charCodeAt(i+9),[e,n,r];i+=2,o=256*t.charCodeAt(i)+t.charCodeAt(i+1)}},w=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,n,r,o,i=t.length,a=(t[4]<<8)+t[5],s=4;s<i;){if(s+=a,e=x(t,s),a=(e[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&a>7)return e=x(t,s+5),n=(e[2]<<8)+e[3],r=(e[0]<<8)+e[1],o=e[4],{width:n,height:r,numcomponents:o};s+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")},x=function(t,e){return t.subarray(e,e+5)};e.processJPEG=function(t,e,n,r,o){var i,a=this.color_spaces.DEVICE_RGB,s=this.decode.DCT_DECODE;return this.isString(t)?(i=b(t),this.createImageInfo(t,i[0],i[1],1==i[3]?this.color_spaces.DEVICE_GRAY:a,8,s,e,n)):(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)?(i=w(t),t=o||this.arrayBufferToBinaryString(t),this.createImageInfo(t,i.width,i.height,1==i.numcomponents?this.color_spaces.DEVICE_GRAY:a,8,s,e,n)):null)},e.processJPG=function(){return this.processJPEG.apply(this,arguments)}}(e.API),function(t){var n={annotations:[],f2:function(t){return t.toFixed(2)},notEmpty:function(t){if(void 0!==t&&""!=t)return!0}};e.API.annotationPlugin=n,e.API.events.push(["addPage",function(t){this.annotationPlugin.annotations[t.pageNumber]=[]}]),t.events.push(["putPage",function(t){for(var e=this.annotationPlugin.annotations[t.pageNumber],r=!1,o=0;o<e.length&&!r;o++){var i=e[o];switch(i.type){case"link":if(n.notEmpty(i.options.url)||n.notEmpty(i.options.pageNumber)){r=!0;break}case"reference":case"text":case"freetext":r=!0}}if(0!=r){this.internal.write("/Annots [");for(var a=this.annotationPlugin.f2,s=this.internal.scaleFactor,l=this.internal.pageSize.height,c=this.internal.getPageInfo(t.pageNumber),o=0;o<e.length;o++){var i=e[o];switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var u=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),f=i.title||"Note",d="/Rect ["+a(i.bounds.x*s)+" "+a(l-(i.bounds.y+i.bounds.h)*s)+" "+a((i.bounds.x+i.bounds.w)*s)+" "+a((l-i.bounds.y)*s)+"] ";v="<</Type /Annot /Subtype /Text "+d+"/Contents ("+i.contents+")",v+=" /Popup "+h.objId+" 0 R",v+=" /P "+c.objId+" 0 R",v+=" /T ("+f+") >>",u.content=v;var p=u.objId+" 0 R",d="/Rect ["+a((i.bounds.x+30)*s)+" "+a(l-(i.bounds.y+i.bounds.h)*s)+" "+a((i.bounds.x+i.bounds.w+30)*s)+" "+a((l-i.bounds.y)*s)+"] ";v="<</Type /Annot /Subtype /Popup "+d+" /Parent "+p,i.open&&(v+=" /Open true"),v+=" >>",h.content=v,this.internal.write(u.objId,"0 R",h.objId,"0 R");break;case"freetext":var d="/Rect ["+a(i.bounds.x*s)+" "+a((l-i.bounds.y)*s)+" "+a(i.bounds.x+i.bounds.w*s)+" "+a(l-(i.bounds.y+i.bounds.h)*s)+"] ",g=i.color||"#000000";v="<</Type /Annot /Subtype /FreeText "+d+"/Contents ("+i.contents+")",v+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+g+")",v+=" /Border [0 0 0]",v+=" >>",this.internal.write(v);break;case"link":if(i.options.name){var m=this.annotations._nameMap[i.options.name];i.options.pageNumber=m.page,i.options.top=m.y}else i.options.top||(i.options.top=0);var d="/Rect ["+a(i.x*s)+" "+a((l-i.y)*s)+" "+a(i.x+i.w*s)+" "+a(l-(i.y+i.h)*s)+"] ",v="";if(i.options.url)v="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /A <</S /URI /URI ("+i.options.url+") >>";else if(i.options.pageNumber){var t=this.internal.getPageInfo(i.options.pageNumber);switch(v="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /Dest ["+t.objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":v+=" /Fit]";break;case"FitH":v+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,v+=" /FitV "+i.options.left+"]";break;case"XYZ":default:var y=a((l-i.options.top)*s);i.options.left=i.options.left||0,void 0===i.options.zoom&&(i.options.zoom=0),v+=" /XYZ "+i.options.left+" "+y+" "+i.options.zoom+"]"}}""!=v&&(v+=" >>",this.internal.write(v))}}this.internal.write("]")}}]),t.createAnnotation=function(t){switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(t)}},t.link=function(t,e,n,r,o){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:n,h:r,options:o,type:"link"})},t.link=function(t,e,n,r,o){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:n,h:r,options:o,type:"link"})},t.textWithLink=function(t,e,n,r){var o=this.getTextWidth(t),i=this.internal.getLineHeight();return this.text(t,e,n),n+=.2*i,this.link(e,n-i,o,i,r),o},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},t.getLineHeight=function(){return this.internal.getLineHeight()}}(e.API),function(t){t.autoPrint=function(){var t;return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.write("<< /S/Named /Type/Action /N/Print >>","endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.write("/OpenAction "+t+" 0 R")}),this}}(e.API),function(t){t.events.push(["initialized",function(){this.canvas.pdf=this}]),t.canvas={getContext:function(t){return this.pdf.context2d._canvas=this,this.pdf.context2d},style:{}},Object.defineProperty(t.canvas,"width",{get:function(){return this._width},set:function(t){this._width=t,this.getContext("2d").pageWrapX=t+1}}),Object.defineProperty(t.canvas,"height",{get:function(){return this._height},set:function(t){this._height=t,this.getContext("2d").pageWrapY=t+1}})}(e.API),function(t){var e,n,r,o,i={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},a=1,s=function(t,e,n,r,o){i={x:t,y:e,w:n,h:r,ln:o}},l=function(){return i},c={left:0,top:0,bottom:0};t.setHeaderFunction=function(t){o=t},t.getTextDimensions=function(t){e=this.internal.getFont().fontName,n=this.table_font_size||this.internal.getFontSize(),r=this.internal.getFont().fontStyle;var o,i,a=19.049976/25.4;i=document.createElement("font"),i.id="jsPDFCell";try{i.style.fontStyle=r}catch(t){i.style.fontWeight=r}i.style.fontName=e,i.style.fontSize=n+"pt";try{i.textContent=t}catch(e){i.innerText=t}return document.body.appendChild(i),o={w:(i.offsetWidth+1)*a,h:(i.offsetHeight+1)*a},document.body.removeChild(i),o},t.cellAddPage=function(){var t=this.margins||c;this.addPage(),s(t.left,t.top,void 0,void 0),a+=1},t.cellInitialize=function(){i={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},a=1},t.cell=function(t,e,n,r,o,i,a){var u=l(),h=!1;if(void 0!==u.ln)if(u.ln===i)t=u.x+u.w,e=u.y;else{var f=this.margins||c;u.y+u.h+r+13>=this.internal.pageSize.height-f.bottom&&(this.cellAddPage(),h=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(i,!0)),e=l().y+l().h,h&&(e=23)}if(void 0!==o[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){o instanceof Array||(o=[o]);for(var d=0;d<o.length;d++){var p=o[d],g=this.getStringUnitWidth(p)*this.internal.getFontSize();this.text(p,t+n-g-3,e+this.internal.getLineHeight()*(d+1))}}else this.text(o,t+3,e+this.internal.getLineHeight());return s(t,e,n,r,i),this},t.arrayMax=function(t,e){var n,r,o,i=t[0];for(n=0,r=t.length;n<r;n+=1)o=t[n],e?-1===e(i,o)&&(i=o):o>i&&(i=o);return i},t.table=function(e,n,r,o,s){if(!r)throw"No data for PDF table";var l,u,h,f,d,p,g,m,v,y,b=[],w=[],x={},S={},k=[],C=[],O=!1,T=!0,_=12,A=c;if(A.width=this.internal.pageSize.width,s&&(!0===s.autoSize&&(O=!0),!1===s.printHeaders&&(T=!1),s.fontSize&&(_=s.fontSize),s.css&&void 0!==s.css["font-size"]&&(_=16*s.css["font-size"]),s.margins&&(A=s.margins)),this.lnMod=0,i={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},a=1,this.printHeaders=T,this.margins=A,this.setFontSize(_),this.table_font_size=_,void 0===o||null===o)b=Object.keys(r[0]);else if(o[0]&&"string"!=typeof o[0]){for(u=0,h=o.length;u<h;u+=1)l=o[u],b.push(l.name),w.push(l.prompt),S[l.name]=l.width*(19.049976/25.4)}else b=o;if(O)for(y=function(t){return t[l]},u=0,h=b.length;u<h;u+=1){for(l=b[u],x[l]=r.map(y),k.push(this.getTextDimensions(w[u]||l).w),p=x[l],g=0,f=p.length;g<f;g+=1)d=p[g],k.push(this.getTextDimensions(d).w);S[l]=t.arrayMax(k),k=[]}if(T){var P=this.calculateLineHeight(b,S,w.length?w:b);for(u=0,h=b.length;u<h;u+=1)l=b[u],C.push([e,n,S[l],P,String(w.length?w[u]:l)]);this.setTableHeaderRow(C),this.printHeaderRow(1,!1)}for(u=0,h=r.length;u<h;u+=1){var P;for(m=r[u],P=this.calculateLineHeight(b,S,m),g=0,v=b.length;g<v;g+=1)l=b[g],this.cell(e,n,S[l],P,m[l],u+2,l.align)}return this.lastCellPos=i,this.table_x=e,this.table_y=n,this},t.calculateLineHeight=function(t,e,n){for(var r,o=0,i=0;i<t.length;i++){r=t[i],n[r]=this.splitTextToSize(String(n[r]),e[r]-3);var a=this.internal.getLineHeight()*n[r].length+3;a>o&&(o=a)}return o},t.setTableHeaderRow=function(t){this.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,r,i,l;if(this.printingHeaderRow=!0,void 0!==o){var c=o(this,a);s(c[0],c[1],c[2],c[3],-1)}this.setFontStyle("bold");var u=[];for(i=0,l=this.tableHeaderRow.length;i<l;i+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[i],e&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,u.push(n)),r=[].concat(n),this.cell.apply(this,r.concat(t));u.length>0&&this.setTableHeaderRow(u),this.setFontStyle("normal"),this.printingHeaderRow=!1}}(e.API),function(t){function e(){this._isStrokeTransparent=!1,this._strokeOpacity=1,this.strokeStyle="#000000",this.fillStyle="#000000",this._isFillTransparent=!1,this._fillOpacity=1,this.font="12pt times",this.textBaseline="alphabetic",this.textAlign="start",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this._transform=[1,0,0,1,0,0],this.globalCompositeOperation="normal",this.globalAlpha=1,this._clip_path=[],this.ignoreClearRect=!1,this.copy=function(t){this._isStrokeTransparent=t._isStrokeTransparent,this._strokeOpacity=t._strokeOpacity,this.strokeStyle=t.strokeStyle,this._isFillTransparent=t._isFillTransparent,this._fillOpacity=t._fillOpacity,this.fillStyle=t.fillStyle,this.font=t.font,this.lineWidth=t.lineWidth,this.lineJoin=t.lineJoin,this.lineCap=t.lineCap,this.textBaseline=t.textBaseline,this.textAlign=t.textAlign,this._fontSize=t._fontSize,this._transform=t._transform.slice(0),this.globalCompositeOperation=t.globalCompositeOperation,this.globalAlpha=t.globalAlpha,this._clip_path=t._clip_path.slice(0),this.ignoreClearRect=t.ignoreClearRect}}t.events.push(["initialized",function(){this.context2d.pdf=this,this.context2d.internal.pdf=this,this.context2d.ctx=new e,this.context2d.ctxStack=[],this.context2d.path=[]}]),t.context2d={pageWrapXEnabled:!1,pageWrapYEnabled:!1,pageWrapX:9999999,pageWrapY:9999999,ctx:new e,f2:function(t){return t.toFixed(2)},fillRect:function(t,e,n,r){if(!this._isFillTransparent()){t=this._wrapX(t),e=this._wrapY(e);var o=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:n,h:r});this.pdf.rect(o.x,o.y,o.w,o.h,"f")}},strokeRect:function(t,e,n,r){if(!this._isStrokeTransparent()){t=this._wrapX(t),e=this._wrapY(e);var o=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:n,h:r});this.pdf.rect(o.x,o.y,o.w,o.h,"s")}},clearRect:function(t,e,n,r){if(!this.ctx.ignoreClearRect){t=this._wrapX(t),e=this._wrapY(e);var o=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:n,h:r});this.save(),this.setFillStyle("#ffffff"),this.pdf.rect(o.x,o.y,o.w,o.h,"f"),this.restore()}},save:function(){this.ctx._fontSize=this.pdf.internal.getFontSize();var t=new e;t.copy(this.ctx),this.ctxStack.push(this.ctx),this.ctx=t},restore:function(){this.ctx=this.ctxStack.pop(),this.setFillStyle(this.ctx.fillStyle),this.setStrokeStyle(this.ctx.strokeStyle),this.setFont(this.ctx.font),this.pdf.setFontSize(this.ctx._fontSize),this.setLineCap(this.ctx.lineCap),this.setLineWidth(this.ctx.lineWidth),this.setLineJoin(this.ctx.lineJoin)},rect:function(t,e,n,r){this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()},beginPath:function(){this.path=[]},closePath:function(){this.path.push({type:"close"})},_getRgba:function(t){var e={};if(this.internal.rxTransparent.test(t))e.r=0,e.g=0,e.b=0,e.a=0;else{var n=this.internal.rxRgb.exec(t);null!=n?(e.r=parseInt(n[1]),e.g=parseInt(n[2]),e.b=parseInt(n[3]),e.a=1):(n=this.internal.rxRgba.exec(t),null!=n?(e.r=parseInt(n[1]),e.g=parseInt(n[2]),e.b=parseInt(n[3]),e.a=parseFloat(n[4])):(e.a=1,"#"!=t.charAt(0)&&((t=i.colorNameToHex(t))||(t="#000000")),4===t.length?(e.r=t.substring(1,2),e.r+=r,e.g=t.substring(2,3),e.g+=g,e.b=t.substring(3,4),e.b+=b):(e.r=t.substring(1,3),e.g=t.substring(3,5),e.b=t.substring(5,7)),e.r=parseInt(e.r,16),e.g=parseInt(e.g,16),e.b=parseInt(e.b,16)))}return e.style=t,e},setFillStyle:function(t){var e,n,r,o;if(this.internal.rxTransparent.test(t))e=0,n=0,r=0,o=0;else{var a=this.internal.rxRgb.exec(t);null!=a?(e=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),o=1):(a=this.internal.rxRgba.exec(t),null!=a?(e=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),o=parseFloat(a[4])):(o=1,"#"!=t.charAt(0)&&((t=i.colorNameToHex(t))||(t="#000000")),4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)))}this.ctx.fillStyle=t,this.ctx._isFillTransparent=0==o,this.ctx._fillOpacity=o,this.pdf.setFillColor(e,n,r,{a:o}),this.pdf.setTextColor(e,n,r,{a:o})},setStrokeStyle:function(t){var e=this._getRgba(t);this.ctx.strokeStyle=e.style,this.ctx._isStrokeTransparent=0==e.a,this.ctx._strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))},fillText:function(t,e,n,r){if(!this._isFillTransparent()){e=this._wrapX(e),n=this._wrapY(n);var o=this._matrix_map_point(this.ctx._transform,[e,n]);e=o[0],n=o[1];var i=this._matrix_rotation(this.ctx._transform),a=57.2958*i;if(this.ctx._clip_path.length>0){var s;s=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),s.push("q");var l=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=l}var c;if((c=this.pdf.hotfix&&this.pdf.hotfix.scale_text?this._getTransform()[0]:1)<.01)this.pdf.text(t,e,this._getBaseline(n),null,a);else{var u=this.pdf.internal.getFontSize();this.pdf.setFontSize(u*c),this.pdf.text(t,e,this._getBaseline(n),null,a),this.pdf.setFontSize(u)}this.ctx._clip_path.length>0&&s.push("Q")}},strokeText:function(t,e,n,r){if(!this._isStrokeTransparent()){e=this._wrapX(e),n=this._wrapY(n);var o=this._matrix_map_point(this.ctx._transform,[e,n]);e=o[0],n=o[1];var i=this._matrix_rotation(this.ctx._transform),a=57.2958*i;if(this.ctx._clip_path.length>0){var s;s=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),s.push("q");var l=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=l}var c;if(1===(c=this.pdf.hotfix&&this.pdf.hotfix.scale_text?this._getTransform()[0]:1))this.pdf.text(t,e,this._getBaseline(n),{stroke:!0},a);else{var u=this.pdf.internal.getFontSize();this.pdf.setFontSize(u*c),this.pdf.text(t,e,this._getBaseline(n),{stroke:!0},a),this.pdf.setFontSize(u)}this.ctx._clip_path.length>0&&s.push("Q")}},setFont:function(t){this.ctx.font=t;var e=/\s*(\w+)\s+(\w+)\s+(\w+)\s+([\d\.]+)(px|pt|em)\s+(.*)?/;if(null!=(h=e.exec(t))){var n=h[1],r=(h[2],h[3]),o=h[4],i=h[5],a=h[6];o="px"===i?Math.floor(parseFloat(o)):"em"===i?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(o)),this.pdf.setFontSize(o),"bold"===r||"700"===r?this.pdf.setFontStyle("bold"):"italic"===n?this.pdf.setFontStyle("italic"):this.pdf.setFontStyle("normal");var s,l=a,c=l.toLowerCase().split(/\s*,\s*/);s=-1!=c.indexOf("arial")?"Arial":-1!=c.indexOf("verdana")?"Verdana":-1!=c.indexOf("helvetica")?"Helvetica":-1!=c.indexOf("sans-serif")?"sans-serif":-1!=c.indexOf("fixed")?"Fixed":-1!=c.indexOf("monospace")?"Monospace":-1!=c.indexOf("terminal")?"Terminal":-1!=c.indexOf("courier")?"Courier":-1!=c.indexOf("times")?"Times":-1!=c.indexOf("cursive")?"Cursive":-1!=c.indexOf("fantasy")?"Fantasy":(c.indexOf("serif"),"Serif");var u;u="bold"===r?"bold":"normal",this.pdf.setFont(s,u)}else{var e=/(\d+)(pt|px|em)\s+(\w+)\s*(\w+)?/,h=e.exec(t);if(null!=h){var f=h[1],l=(h[2],h[3]),u=h[4];u||(u="normal"),f="em"===i?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(f)),this.pdf.setFontSize(f),this.pdf.setFont(l,u)}}},setTextBaseline:function(t){this.ctx.textBaseline=t},getTextBaseline:function(){return this.ctx.textBaseline},setTextAlign:function(t){this.ctx.textAlign=t},getTextAlign:function(){return this.ctx.textAlign},setLineWidth:function(t){this.ctx.lineWidth=t,this.pdf.setLineWidth(t)},setLineCap:function(t){this.ctx.lineCap=t,this.pdf.setLineCap(t)},setLineJoin:function(t){this.ctx.lineJoin=t,this.pdf.setLineJoin(t)},moveTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_point(this.ctx._transform,[t,e]);t=n[0],e=n[1];var r={type:"mt",x:t,y:e};this.path.push(r)},_wrapX:function(t){return this.pageWrapXEnabled?t%this.pageWrapX:t},_wrapY:function(t){return this.pageWrapYEnabled?(this._gotoPage(this._page(t)),(t-this.lastBreak)%this.pageWrapY):t},transform:function(t,e,n,r,o,i){this.ctx._transform=[t,e,n,r,o,i]},setTransform:function(t,e,n,r,o,i){this.ctx._transform=[t,e,n,r,o,i]},_getTransform:function(){return this.ctx._transform},lastBreak:0,pageBreaks:[],_page:function(t){if(this.pageWrapYEnabled){this.lastBreak=0;for(var e=0,n=0,r=0;r<this.pageBreaks.length;r++)if(t>=this.pageBreaks[r]){e++,0===this.lastBreak&&n++;var o=this.pageBreaks[r]-this.lastBreak;this.lastBreak=this.pageBreaks[r];var i=Math.floor(o/this.pageWrapY);n+=i}if(0===this.lastBreak){var i=Math.floor(t/this.pageWrapY)+1;n+=i}return n+e}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(t){},lineTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_point(this.ctx._transform,[t,e]);t=n[0],e=n[1];var r={type:"lt",x:t,y:e};this.path.push(r)},bezierCurveTo:function(t,e,n,r,o,i){t=this._wrapX(t),e=this._wrapY(e),n=this._wrapX(n),r=this._wrapY(r),o=this._wrapX(o),i=this._wrapY(i);var a;a=this._matrix_map_point(this.ctx._transform,[o,i]),o=a[0],i=a[1],a=this._matrix_map_point(this.ctx._transform,[t,e]),t=a[0],e=a[1],a=this._matrix_map_point(this.ctx._transform,[n,r]),n=a[0],r=a[1];var s={type:"bct",x1:t,y1:e,x2:n,y2:r,x:o,y:i};this.path.push(s)},quadraticCurveTo:function(t,e,n,r){t=this._wrapX(t),e=this._wrapY(e),n=this._wrapX(n),r=this._wrapY(r);var o;o=this._matrix_map_point(this.ctx._transform,[n,r]),n=o[0],r=o[1],o=this._matrix_map_point(this.ctx._transform,[t,e]),t=o[0],e=o[1];var i={type:"qct",x1:t,y1:e,x:n,y:r};this.path.push(i)},arc:function(t,e,n,r,o,i){if(t=this._wrapX(t),e=this._wrapY(e),!this._matrix_is_identity(this.ctx._transform)){var a=this._matrix_map_point(this.ctx._transform,[t,e]);t=a[0],e=a[1];var s=this._matrix_map_point(this.ctx._transform,[0,0]),l=this._matrix_map_point(this.ctx._transform,[0,n]);n=Math.sqrt(Math.pow(l[0]-s[0],2)+Math.pow(l[1]-s[1],2))}var c={type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:o,anticlockwise:i};this.path.push(c)},drawImage:function(t,e,n,r,o,i,a,s,l){void 0!==i&&(e=i,n=a,r=s,o=l),e=this._wrapX(e),n=this._wrapY(n);var c,u=this._matrix_map_rect(this.ctx._transform,{x:e,y:n,w:r,h:o}),h=(this._matrix_map_rect(this.ctx._transform,{x:i,y:a,w:s,h:l}),/data:image\/(\w+).*/i),f=h.exec(t);c=null!=f?f[1]:"png",this.pdf.addImage(t,c,u.x,u.y,u.w,u.h)},_matrix_multiply:function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=n*t[0]+r*t[2],c=o*t[0]+i*t[2],u=a*t[0]+s*t[2]+t[4];return r=n*t[1]+r*t[3],i=o*t[1]+i*t[3],s=a*t[1]+s*t[3]+t[5],n=l,o=c,a=u,[n,r,o,i,a,s]},_matrix_rotation:function(t){return Math.atan2(t[2],t[0])},_matrix_decompose:function(t){var e=t[0],n=t[1],r=t[2],o=t[3],i=Math.sqrt(e*e+n*n);e/=i,n/=i;var a=e*r+n*o;r-=e*a,o-=n*a;var s=Math.sqrt(r*r+o*o);return r/=s,o/=s,a/=s,e*o<n*r&&(e=-e,n=-n,a=-a,i=-i),{scale:[i,0,0,s,0,0],translate:[1,0,0,1,t[4],t[5]],rotate:[e,n,-n,e,0,0],skew:[1,0,a,1,0,0]}},_matrix_map_point:function(t,e){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=e[0],c=e[1];return[l*n+c*o+a,l*r+c*i+s]},_matrix_map_point_obj:function(t,e){var n=this._matrix_map_point(t,[e.x,e.y]);return{x:n[0],y:n[1]}},_matrix_map_rect:function(t,e){
|
||
var n=this._matrix_map_point(t,[e.x,e.y]),r=this._matrix_map_point(t,[e.x+e.w,e.y+e.h]);return{x:n[0],y:n[1],w:r[0]-n[0],h:r[1]-n[1]}},_matrix_is_identity:function(t){return 1==t[0]&&0==t[1]&&0==t[2]&&1==t[3]&&0==t[4]&&0==t[5]},rotate:function(t){var e=[Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,e)},scale:function(t,e){var n=[t,0,0,e,0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,n)},translate:function(t,e){var n=[1,0,0,1,t,e];this.ctx._transform=this._matrix_multiply(this.ctx._transform,n)},stroke:function(){if(this.ctx._clip_path.length>0){var t;t=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),t.push("q");var e=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._stroke(!0),this.ctx._clip_path=this.path,this.path=e,this._stroke(!1),t.push("Q")}else this._stroke(!1)},_stroke:function(t){if(t||!this._isStrokeTransparent()){for(var e=[],n=this.path,r=0;r<n.length;r++){var o=n[r];switch(o.type){case"mt":e.push({start:o,deltas:[],abs:[]});break;case"lt":var i=[o.x-n[r-1].x,o.y-n[r-1].y];e[e.length-1].deltas.push(i),e[e.length-1].abs.push(o);break;case"bct":var i=[o.x1-n[r-1].x,o.y1-n[r-1].y,o.x2-n[r-1].x,o.y2-n[r-1].y,o.x-n[r-1].x,o.y-n[r-1].y];e[e.length-1].deltas.push(i);break;case"qct":var a=n[r-1].x+2/3*(o.x1-n[r-1].x),s=n[r-1].y+2/3*(o.y1-n[r-1].y),l=o.x+2/3*(o.x1-o.x),c=o.y+2/3*(o.y1-o.y),u=o.x,h=o.y,i=[a-n[r-1].x,s-n[r-1].y,l-n[r-1].x,c-n[r-1].y,u-n[r-1].x,h-n[r-1].y];e[e.length-1].deltas.push(i);break;case"arc":0==e.length&&e.push({start:{x:0,y:0},deltas:[],abs:[]}),e[e.length-1].arc=!0,e[e.length-1].abs.push(o);break;case"close":!0}}for(var r=0;r<e.length;r++){var f;if(f=r==e.length-1?"s":null,e[r].arc)for(var d=e[r].abs,p=0;p<d.length;p++){var g=d[p],m=360*g.startAngle/(2*Math.PI),v=360*g.endAngle/(2*Math.PI),y=g.x,b=g.y;this.internal.arc2(this,y,b,g.radius,m,v,g.anticlockwise,f,t)}else{var y=e[r].start.x,b=e[r].start.y;t?(this.pdf.lines(e[r].deltas,y,b,null,null),this.pdf.clip_fixed()):this.pdf.lines(e[r].deltas,y,b,null,f)}}}},_isFillTransparent:function(){return this.ctx._isFillTransparent||0==this.globalAlpha},_isStrokeTransparent:function(){return this.ctx._isStrokeTransparent||0==this.globalAlpha},fill:function(t){if(this.ctx._clip_path.length>0){var e;e=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage(),e.push("q");var n=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(t,!0),this.ctx._clip_path=this.path,this.path=n,this._fill(t,!1),e.push("Q")}else this._fill(t,!1)},_fill:function(t,e){if(!this._isFillTransparent()){var r,o="function"==typeof this.pdf.internal.newObject2;r=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage();var i=[],a=window.outIntercept;if(o)switch(this.ctx.globalCompositeOperation){case"normal":case"source-over":break;case"destination-in":case"destination-out":var s=this.pdf.internal.newStreamObject(),l=this.pdf.internal.newObject2();l.push("<</Type /ExtGState"),l.push("/SMask <</S /Alpha /G "+s.objId+" 0 R>>"),l.push(">>");var c="MASK"+l.objId;this.pdf.internal.addGraphicsState(c,l.objId);var u="/"+c+" gs";r.splice(0,0,"q"),r.splice(1,0,u),r.push("Q"),window.outIntercept=s;break;default:var h="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];h&&this.pdf.internal.out(h+" gs")}var f=this.ctx.globalAlpha;if(this.ctx._fillOpacity<1&&(f=this.ctx._fillOpacity),o){var d=this.pdf.internal.newObject2();d.push("<</Type /ExtGState"),d.push("/CA "+f),d.push("/ca "+f),d.push(">>");var c="GS_O_"+d.objId;this.pdf.internal.addGraphicsState(c,d.objId),this.pdf.internal.out("/"+c+" gs")}for(var p=this.path,g=0;g<p.length;g++){var m=p[g];switch(m.type){case"mt":i.push({start:m,deltas:[],abs:[]});break;case"lt":var v=[m.x-p[g-1].x,m.y-p[g-1].y];i[i.length-1].deltas.push(v),i[i.length-1].abs.push(m);break;case"bct":var v=[m.x1-p[g-1].x,m.y1-p[g-1].y,m.x2-p[g-1].x,m.y2-p[g-1].y,m.x-p[g-1].x,m.y-p[g-1].y];i[i.length-1].deltas.push(v);break;case"qct":var y=p[g-1].x+2/3*(m.x1-p[g-1].x),b=p[g-1].y+2/3*(m.y1-p[g-1].y),w=m.x+2/3*(m.x1-m.x),x=m.y+2/3*(m.y1-m.y),S=m.x,k=m.y,v=[y-p[g-1].x,b-p[g-1].y,w-p[g-1].x,x-p[g-1].y,S-p[g-1].x,k-p[g-1].y];i[i.length-1].deltas.push(v);break;case"arc":0===i.length&&i.push({deltas:[],abs:[]}),i[i.length-1].arc=!0,i[i.length-1].abs.push(m);break;case"close":i.push({close:!0})}}for(var g=0;g<i.length;g++){var C;if(g==i.length-1?(C="f","evenodd"===t&&(C+="*")):C=null,i[g].close)this.pdf.internal.out("h"),this.pdf.internal.out("f");else if(i[g].arc){i[g].start&&this.internal.move2(this,i[g].start.x,i[g].start.y);for(var O=i[g].abs,T=0;T<O.length;T++){var _=O[T];if(void 0!==_.startAngle){var A=360*_.startAngle/(2*Math.PI),P=360*_.endAngle/(2*Math.PI),E=_.x,I=_.y;if(0===T&&this.internal.move2(this,E,I),this.internal.arc2(this,E,I,_.radius,A,P,_.anticlockwise,null,e),T===O.length-1&&i[g].start){var E=i[g].start.x,I=i[g].start.y;this.internal.line2(n,E,I)}}else this.internal.line2(n,_.x,_.y)}}else{var E=i[g].start.x,I=i[g].start.y;e?(this.pdf.lines(i[g].deltas,E,I,null,null),this.pdf.clip_fixed()):this.pdf.lines(i[g].deltas,E,I,null,C)}}window.outIntercept=a}},pushMask:function(){if("function"!=typeof this.pdf.internal.newObject2)return void console.log("jsPDF v2 not enabled");var t=this.pdf.internal.newStreamObject(),e=this.pdf.internal.newObject2();e.push("<</Type /ExtGState"),e.push("/SMask <</S /Alpha /G "+t.objId+" 0 R>>"),e.push(">>");var n="MASK"+e.objId;this.pdf.internal.addGraphicsState(n,e.objId);var r="/"+n+" gs";this.pdf.internal.out(r)},clip:function(){if(this.ctx._clip_path.length>0)for(var t=0;t<this.path.length;t++)this.ctx._clip_path.push(this.path[t]);else this.ctx._clip_path=this.path;this.path=[]},measureText:function(t){var e=this.pdf;return{getWidth:function(){var n=e.internal.getFontSize(),r=e.getStringUnitWidth(t)*n/e.internal.scaleFactor;return r*=1.3333},get width(){return this.getWidth(t)}}},_getBaseline:function(t){var e=parseInt(this.pdf.internal.getFontSize()),n=.25*e;switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e;case"hanging":return t+e-n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}}};var n=t.context2d;Object.defineProperty(n,"fillStyle",{set:function(t){this.setFillStyle(t)},get:function(){return this.ctx.fillStyle}}),Object.defineProperty(n,"strokeStyle",{set:function(t){this.setStrokeStyle(t)},get:function(){return this.ctx.strokeStyle}}),Object.defineProperty(n,"lineWidth",{set:function(t){this.setLineWidth(t)},get:function(){return this.ctx.lineWidth}}),Object.defineProperty(n,"lineCap",{set:function(t){this.setLineCap(t)},get:function(){return this.ctx.lineCap}}),Object.defineProperty(n,"lineJoin",{set:function(t){this.setLineJoin(t)},get:function(){return this.ctx.lineJoin}}),Object.defineProperty(n,"miterLimit",{set:function(t){this.ctx.miterLimit=t},get:function(){return this.ctx.miterLimit}}),Object.defineProperty(n,"textBaseline",{set:function(t){this.setTextBaseline(t)},get:function(){return this.getTextBaseline()}}),Object.defineProperty(n,"textAlign",{set:function(t){this.setTextAlign(t)},get:function(){return this.getTextAlign()}}),Object.defineProperty(n,"font",{set:function(t){this.setFont(t)},get:function(){return this.ctx.font}}),Object.defineProperty(n,"globalCompositeOperation",{set:function(t){this.ctx.globalCompositeOperation=t},get:function(){return this.ctx.globalCompositeOperation}}),Object.defineProperty(n,"globalAlpha",{set:function(t){this.ctx.globalAlpha=t},get:function(){return this.ctx.globalAlpha}}),Object.defineProperty(n,"ignoreClearRect",{set:function(t){this.ctx.ignoreClearRect=t},get:function(){return this.ctx.ignoreClearRect}}),n.internal={},n.internal.rxRgb=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,n.internal.rxRgba=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/,n.internal.rxTransparent=/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/,n.internal.arc=function(t,e,n,r,o,i,a,s){for(var l=this.pdf.internal.scaleFactor,c=this.pdf.internal.pageSize.height,u=this.pdf.internal.f2,h=o*(Math.PI/180),f=i*(Math.PI/180),d=this.createArc(r,h,f,a),p=0;p<d.length;p++){var g=d[p];0===p?this.pdf.internal.out([u((g.x1+e)*l),u((c-(g.y1+n))*l),"m",u((g.x2+e)*l),u((c-(g.y2+n))*l),u((g.x3+e)*l),u((c-(g.y3+n))*l),u((g.x4+e)*l),u((c-(g.y4+n))*l),"c"].join(" ")):this.pdf.internal.out([u((g.x2+e)*l),u((c-(g.y2+n))*l),u((g.x3+e)*l),u((c-(g.y3+n))*l),u((g.x4+e)*l),u((c-(g.y4+n))*l),"c"].join(" ")),t._lastPoint={x:e,y:n}}null!==s&&this.pdf.internal.out(this.pdf.internal.getStyle(s))},n.internal.arc2=function(t,e,n,r,o,i,a,s,l){var c=e,u=n;l?(this.arc(t,c,u,r,o,i,a,null),this.pdf.clip_fixed()):this.arc(t,c,u,r,o,i,a,s)},n.internal.move2=function(t,e,n){var r=this.pdf.internal.scaleFactor,o=this.pdf.internal.pageSize.height,i=this.pdf.internal.f2;this.pdf.internal.out([i(e*r),i((o-n)*r),"m"].join(" ")),t._lastPoint={x:e,y:n}},n.internal.line2=function(t,e,n){var r=this.pdf.internal.scaleFactor,o=this.pdf.internal.pageSize.height,i=this.pdf.internal.f2,a={x:e,y:n};this.pdf.internal.out([i(a.x*r),i((o-a.y)*r),"l"].join(" ")),t._lastPoint=a},n.internal.createArc=function(t,e,n,r){var o=2*Math.PI,i=Math.PI/2,a=e;for((a<o||a>o)&&(a%=o),a<0&&(a=o+a);e>n;)e-=o;var s=Math.abs(n-e);s<o&&r&&(s=o-s);for(var l=[],c=r?-1:1,u=a;s>1e-5;){var h=c*Math.min(s,i),f=u+h;l.push(this.createSmallArc(t,u,f)),s-=Math.abs(f-u),u=f}return l},n.internal.getCurrentPage=function(){return this.pdf.internal.pages[this.pdf.internal.getCurrentPageInfo().pageNumber]},n.internal.createSmallArc=function(t,e,n){var r=(n-e)/2,o=t*Math.cos(r),i=t*Math.sin(r),a=o,s=-i,l=a*a+s*s,c=l+a*o+s*i,u=4/3*(Math.sqrt(2*l*c)-c)/(a*i-s*o),h=a-u*s,f=s+u*a,d=h,p=-f,g=r+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*m-f*v,y2:h*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}}}(e.API),function(e){var n,r,o,a,s,l,c,u,h,f,d,p,g,m,v,y,b,w,x,S;n=function(){function t(){}return function(e){return t.prototype=e,new t}}(),f=function(t){var e,n,r,o,i,a,s;for(n=0,r=t.length,e=void 0,o=!1,a=!1;!o&&n!==r;)e=t[n]=t[n].trimLeft(),e&&(o=!0),n++;for(n=r-1;r&&!a&&-1!==n;)e=t[n]=t[n].trimRight(),e&&(a=!0),n--;for(i=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=i.test(e)),t[n]=e),n++;return t},d=function(t,e,n,r){return this.pdf=t,this.x=e,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this},p=function(t){var e,n,r;for(e=void 0,r=t.split(","),n=r.shift();!e&&n;)e=o[n.trim().toLowerCase()],n=r.shift();return e},g=function(t){t="auto"===t?"0px":t,t.indexOf("em")>-1&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),t.indexOf("pt")>-1&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px");var e,n,r;return n=void 0,e=16,(r=m[t])?r:(r={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[{css_line_height_string:t}],r!==n?m[t]=r/e:(r=parseFloat(t))?m[t]=r/e:(r=t.match(/([\d\.]+)(px)/),3===r.length?m[t]=parseFloat(r[1])/e:m[t]=1))},h=function(t){var e,n,r;return r=function(t){var e;return e=function(t){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(t,null):t.currentStyle?t.currentStyle:t.style}(t),function(t){return t=t.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()}),e[t]}}(t),e={},n=void 0,e["font-family"]=p(r("font-family"))||"times",e["font-style"]=a[r("font-style")]||"normal",e["text-align"]=s[r("text-align")]||"left",n=l[r("font-weight")]||"normal","bold"===n&&("normal"===e["font-style"]?e["font-style"]=n:e["font-style"]=n+e["font-style"]),e["font-size"]=g(r("font-size"))||1,e["line-height"]=g(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",n="block"===e.display,e["margin-top"]=n&&g(r("margin-top"))||0,e["margin-bottom"]=n&&g(r("margin-bottom"))||0,e["padding-top"]=n&&g(r("padding-top"))||0,e["padding-bottom"]=n&&g(r("padding-bottom"))||0,e["margin-left"]=n&&g(r("margin-left"))||0,e["margin-right"]=n&&g(r("margin-right"))||0,e["padding-left"]=n&&g(r("padding-left"))||0,e["padding-right"]=n&&g(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e.float=c[r("cssFloat")]||"none",e.clear=u[r("clear")]||"none",e.color=r("color"),e},v=function(t,e,n){var r,o,i,a;if(i=!1,o=void 0,a=void 0,void 0,r=n["#"+t.id])if("function"==typeof r)i=r(t,e);else for(o=0,a=r.length;!i&&o!==a;)i=r[o](t,e),o++;if(r=n[t.nodeName],!i&&r)if("function"==typeof r)i=r(t,e);else for(o=0,a=r.length;!i&&o!==a;)i=r[o](t,e),o++;return i},S=function(t,e){var n,r,o,i,a,s,l,c,u;for(n=[],r=[],o=0,u=t.rows[0].cells.length,l=t.clientWidth;o<u;)c=t.rows[0].cells[o],r[o]={name:c.textContent.toLowerCase().replace(/\s+/g,""),prompt:c.textContent.replace(/\r?\n/g,""),width:c.clientWidth/l*e.pdf.internal.pageSize.width},o++;for(o=1;o<t.rows.length;){for(s=t.rows[o],a={},i=0;i<s.cells.length;)a[r[i].name]=s.cells[i].textContent.replace(/\r?\n/g,""),i++;n.push(a),o++}return{rows:n,headers:r}};var k={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},C=1;r=function(e,o,i){var a,s,l,c,u,f,d,p;for(s=e.childNodes,a=void 0,l=h(e),u="block"===l.display,u&&(o.setBlockBoundary(),o.setBlockStyle(l)),19.049976/25.4,c=0,f=s.length;c<f;){if(a=s[c],"object"===(void 0===a?"undefined":t(a))){if(o.executeWatchFunctions(a),1===a.nodeType&&"HEADER"===a.nodeName){var g=a,m=o.pdf.margins_doc.top;o.pdf.internal.events.subscribe("addPage",function(t){o.y=m,r(g,o,i),o.pdf.margins_doc.top=o.y+10,o.y+=10},!1)}if(8===a.nodeType&&"#comment"===a.nodeName)~a.textContent.indexOf("ADD_PAGE")&&(o.pdf.addPage(),o.y=o.pdf.margins_doc.top);else if(1!==a.nodeType||k[a.nodeName])if(3===a.nodeType){var b=a.nodeValue;if(a.nodeValue&&"LI"===a.parentNode.nodeName)if("OL"===a.parentNode.parentNode.nodeName)b=C+++". "+b;else{var w=l["font-size"],x=(3-.75*w)*o.pdf.internal.scaleFactor,O=.75*w*o.pdf.internal.scaleFactor,T=1.74*w/o.pdf.internal.scaleFactor;p=function(t,e){this.pdf.circle(t+x,e+O,T,"FD")}}16&a.ownerDocument.body.compareDocumentPosition(a)&&o.addText(b,l)}else"string"==typeof a&&o.addText(a,l);else{var _;if("IMG"===a.nodeName){var A=a.getAttribute("src");_=y[o.pdf.sHashCode(A)||A]}if(_){o.pdf.internal.pageSize.height-o.pdf.margins_doc.bottom<o.y+a.height&&o.y>o.pdf.margins_doc.top&&(o.pdf.addPage(),o.y=o.pdf.margins_doc.top,o.executeWatchFunctions(a));var P=h(a),E=o.x,I=12/o.pdf.internal.scaleFactor,j=(P["margin-left"]+P["padding-left"])*I,R=(P["margin-right"]+P["padding-right"])*I,F=(P["margin-top"]+P["padding-top"])*I,N=(P["margin-bottom"]+P["padding-bottom"])*I;E+=void 0!==P.float&&"right"===P.float?o.settings.width-a.width-R:j,o.pdf.addImage(_,E,o.y+F,a.width,a.height),_=void 0,"right"===P.float||"left"===P.float?(o.watchFunctions.push(function(t,e,n,r){return o.y>=e?(o.x+=t,o.settings.width+=n,!0):!!(r&&1===r.nodeType&&!k[r.nodeName]&&o.x+r.width>o.pdf.margins_doc.left+o.pdf.margins_doc.width)&&(o.x+=t,o.y=e,o.settings.width+=n,!0)}.bind(this,"left"===P.float?-a.width-j-R:0,o.y+a.height+F+N,a.width)),o.watchFunctions.push(function(t,e,n){return!(o.y<t&&e===o.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===h(n).clear&&(o.y=t,!0)}.bind(this,o.y+a.height,o.pdf.internal.getNumberOfPages())),o.settings.width-=a.width+j+R,"left"===P.float&&(o.x+=a.width+j+R)):o.y+=a.height+F+N}else if("TABLE"===a.nodeName)d=S(a,o),o.y+=10,o.pdf.table(o.x,o.y,d.rows,d.headers,{autoSize:!1,printHeaders:i.printHeaders,margins:o.pdf.margins_doc,css:h(a)}),o.y=o.pdf.lastCellPos.y+o.pdf.lastCellPos.h+20;else if("OL"===a.nodeName||"UL"===a.nodeName)C=1,v(a,o,i)||r(a,o,i),o.y+=10;else if("LI"===a.nodeName){var q=o.x;o.x+=20/o.pdf.internal.scaleFactor,o.y+=3,v(a,o,i)||r(a,o,i),o.x=q}else"BR"===a.nodeName?(o.y+=l["font-size"]*o.pdf.internal.scaleFactor,o.addText("\u2028",n(l))):v(a,o,i)||r(a,o,i)}}c++}if(i.outY=o.y,u)return o.setBlockBoundary(p)},y={},b=function(t,e,n,r){function o(){e.pdf.internal.events.publish("imagesLoaded"),r(i)}for(var i,a=t.getElementsByTagName("img"),s=a.length,l=0;s--;)!function(t,n,r){if(t){var a=new Image;i=++l,a.crossOrigin="",a.onerror=a.onload=function(){if(a.complete&&(0===a.src.indexOf("data:image/")&&(a.width=n||a.width||0,a.height=r||a.height||0),a.width+a.height)){var i=e.pdf.sHashCode(t)||t;y[i]=y[i]||a}--l||o()},a.src=t}}(a[s].getAttribute("src"),a[s].width,a[s].height);return l||o()},w=function(t,e,n){var o=t.getElementsByTagName("footer");if(o.length>0){o=o[0];var i=e.pdf.internal.write,a=e.y;e.pdf.internal.write=function(){},r(o,e,n);var s=Math.ceil(e.y-a)+5;e.y=a,e.pdf.internal.write=i,e.pdf.margins_doc.bottom+=s;for(var l=function(t){var i=void 0!==t?t.pageNumber:1,a=e.y;e.y=e.pdf.internal.pageSize.height-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=s;for(var l=o.getElementsByTagName("span"),c=0;c<l.length;++c)(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")>-1&&(l[c].innerHTML=i),(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1&&(l[c].innerHTML="###jsPDFVarTotalPages###");r(o,e,n),e.pdf.margins_doc.bottom+=s,e.y=a},c=o.getElementsByTagName("span"),u=0;u<c.length;++u)(" "+c[u].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1&&e.pdf.internal.events.subscribe("htmlRenderingFinished",e.pdf.putTotalPages.bind(e.pdf,"###jsPDFVarTotalPages###"),!0);e.pdf.internal.events.subscribe("addPage",l,!1),l(),k.FOOTER=1}},x=function(t,e,n,o,i,a){if(!e)return!1;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(e=function(t){var e,n,r,o;return r="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),o="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;",n=document.createElement("div"),n.style.cssText=o,n.innerHTML='<iframe style="height:1px;width:1px" name="'+r+'" />',document.body.appendChild(n),e=window.frames[r],e.document.open(),e.document.writeln(t),e.document.close(),e.document.body}(e.replace(/<\/?script[^>]*?>/gi,"")));var s,l=new d(t,n,o,i);return b.call(this,e,l,i.elementHandlers,function(t){w(e,l,i.elementHandlers),r(e,l,i.elementHandlers),l.pdf.internal.events.publish("htmlRenderingFinished"),s=l.dispose(),"function"==typeof a?a(s):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),s||{x:l.x,y:l.y}},d.prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},d.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},d.prototype.executeWatchFunctions=function(t){var e=!1,n=[];if(this.watchFunctions.length>0){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](t)?e=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return e},d.prototype.splitFragmentsIntoLines=function(t,e){var r,o,i,a,s,l,c,u,h,f,d,p,g,m,v;for(o=12,d=this.pdf.internal.scaleFactor,s={},i=void 0,f=void 0,a=void 0,l=void 0,v=void 0,h=void 0,u=void 0,c=void 0,p=[],g=[p],r=0,m=this.settings.width;t.length;)if(l=t.shift(),v=e.shift(),l)if(i=v["font-family"],f=v["font-style"],a=s[i+f],a||(a=this.pdf.internal.getFont(i,f).metadata.Unicode,s[i+f]=a),h={widths:a.widths,kerning:a.kerning,fontSize:v["font-size"]*o,textIndent:r},u=this.pdf.getStringUnitWidth(l,h)*h.fontSize/d,"\u2028"==l)p=[],g.push(p);else if(r+u>m){for(c=this.pdf.splitTextToSize(l,m,h),p.push([c.shift(),v]);c.length;)p=[[c.shift(),v]],g.push(p);r=this.pdf.getStringUnitWidth(p[0][0],h)*h.fontSize/d}else p.push([l,v]),r+=u;if(void 0!==v["text-align"]&&("center"===v["text-align"]||"right"===v["text-align"]||"justify"===v["text-align"]))for(var y=0;y<g.length;++y){var b=this.pdf.getStringUnitWidth(g[y][0][0],h)*h.fontSize/d;y>0&&(g[y][0][1]=n(g[y][0][1]));var w=m-b;if("right"===v["text-align"])g[y][0][1]["margin-left"]=w;else if("center"===v["text-align"])g[y][0][1]["margin-left"]=w/2;else if("justify"===v["text-align"]){var x=g[y][0][0].split(" ").length-1;g[y][0][1]["word-spacing"]=w/x,y===g.length-1&&(g[y][0][1]["word-spacing"]=0)}}return g},d.prototype.RenderTextFragment=function(t,e){var n,r,o;o=0,n=12,this.pdf.internal.pageSize.height-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),e.color,"Td"),o=Math.max(o,e["line-height"],e["font-size"]),this.pdf.internal.write(0,(-1*n*o).toFixed(2),"Td")),r=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var i=this.getPdfColor(e.color);i!==this.lastTextColor&&(this.pdf.internal.write(i),this.lastTextColor=i),void 0!==e["word-spacing"]&&e["word-spacing"]>0&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+r.id,(n*e["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(t)+") Tj"),void 0!==e["word-spacing"]&&this.pdf.internal.write(0,"Tw")},d.prototype.getPdfColor=function(t){var e,n,r,o=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/,a=o.exec(t);if(null!=a?(e=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3])):("#"!=t.charAt(0)&&((t=i.colorNameToHex(t))||(t="#000000")),e=t.substring(1,3),e=parseInt(e,16),n=t.substring(3,5),n=parseInt(n,16),r=t.substring(5,7),r=parseInt(r,16)),"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var s=parseInt(e.substr(1),16);e=s>>16&255,n=s>>8&255,r=255&s}var l=this.f3;return 0===e&&0===n&&0===r||void 0===n?l(e/255)+" g":[l(e/255),l(n/255),l(r/255),"rg"].join(" ")},d.prototype.f3=function(t){return t.toFixed(3)},d.prototype.renderParagraph=function(t){var e,n,r,o,i,a,s,l,c,u,h,d,p,g;if(o=f(this.paragraph.text),p=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle||{},this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},o.join("").trim()){l=this.splitFragmentsIntoLines(o,p),s=void 0,c=void 0,n=12,r=n/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,d=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*r,h=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*r,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,d=((e["margin-top"]||0)+(e["padding-top"]||0))*r),u=this.pdf.internal.write,i=void 0,a=void 0,this.y+=d,u("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var m=0;l.length;){for(s=l.shift(),c=0,i=0,a=s.length;i!==a;)s[i][0].trim()&&(c=Math.max(c,s[i][1]["line-height"],s[i][1]["font-size"]),g=7*s[i][1]["font-size"]),i++;var v=0,y=0;void 0!==s[0][1]["margin-left"]&&s[0][1]["margin-left"]>0&&(y=this.pdf.internal.getCoordinateString(s[0][1]["margin-left"]),v=y-m,m=y);var b=Math.max(e["margin-left"]||0,0)*r;for(u(v+b,(-1*n*c).toFixed(2),"Td"),i=0,a=s.length;i!==a;)s[i][0]&&this.RenderTextFragment(s[i][0],s[i][1]),i++;if(this.y+=c*r,this.executeWatchFunctions(s[0][1])&&l.length>0){var w=[],x=[];l.forEach(function(t){for(var e=0,n=t.length;e!==n;)t[e][0]&&(w.push(t[e][0]+" "),x.push(t[e][1])),++e}),l=this.splitFragmentsIntoLines(f(w),x),u("ET","Q"),u("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return t&&"function"==typeof t&&t.call(this,this.x-9,this.y-g/2),u("ET","Q"),this.y+=h}},d.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},d.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},d.prototype.addText=function(t,e){return this.paragraph.text.push(t),this.paragraph.style.push(e)},o={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},l={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},a={normal:"normal",italic:"italic",oblique:"italic"},s={left:"left",right:"right",center:"center",justify:"justify"},c={none:"none",right:"right",left:"left"},u={none:"none",both:"both"},m={normal:1},e.fromHTML=function(t,e,n,r,o,i){return this.margins_doc=i||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),x(this,t,isNaN(e)?4:e,isNaN(n)?4:n,r,o)}}(e.API),function(t){var e,n,r;t.addJS=function(t){return r=t,this.internal.events.subscribe("postPutResources",function(t){e=this.internal.newObject(),this.internal.write("<< /Names [(EmbeddedJS) "+(e+1)+" 0 R] >>","endobj"),n=this.internal.newObject(),this.internal.write("<< /S /JavaScript /JS (",r,") >>","endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==e&&void 0!==n&&this.internal.write("/Names <</JavaScript "+e+" 0 R>>")}),this}}(e.API),function(t){t.events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),r=0;r<n.length;r++){var o=n[r],i=e.exec(o);if(null!=i){var a=i[1];t.internal.newObjectDeferredBegin(a)}t.internal.write(o)}if(this.outline.createNamedDestinations){for(var s=this.internal.pages.length,l=[],r=0;r<s;r++){var c=t.internal.newObject();l.push(c);var u=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();t.internal.write("<< /Names [ ");for(var r=0;r<l.length;r++)t.internal.write("(page_"+(r+1)+")"+l[r]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+namesOid+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=0;n<e.children.length;n++){var r=e.children[n];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(e)),n>0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[n+1])),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var o=this.count=this.count_r({count:0},r);if(o>0&&this.line("/Count "+o),r.options&&r.options.pageNumber){var i=t.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+i.objId+" 0 R /XYZ 0 "+this.ctx.pdf.internal.pageSize.height+" 0]")}this.objEnd()}for(var n=0;n<e.children.length;n++){var r=e.children[n];this.renderItems(r)}},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(t){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(e.API),function(t){var e=function(){return"function"!=typeof PNG||"function"!=typeof l},n=function(e){return e!==t.image_compression.NONE&&r()},r=function(){var t="function"==typeof a;if(!t)throw new Error("requires deflate.js for compression");return t},o=function(e,n,r,o){var l=5,u=f;switch(o){case t.image_compression.FAST:l=3,u=h;break;case t.image_compression.MEDIUM:l=6,u=d;break;case t.image_compression.SLOW:l=9,u=p}e=c(e,n,r,u);var g=new Uint8Array(i(l)),m=s(e),v=new a(l),y=v.append(e),b=v.flush(),w=g.length+y.length+b.length,x=new Uint8Array(w+4);return x.set(g),x.set(y,g.length),x.set(b,g.length+y.length),x[w++]=m>>>24&255,x[w++]=m>>>16&255,x[w++]=m>>>8&255,x[w++]=255&m,t.arrayBufferToBinaryString(x)},i=function(t,e){var n=Math.LOG2E*Math.log(32768)-8,r=n<<4|8,o=r<<8;return o|=Math.min(3,(e-1&255)>>1)<<6,o|=0,o+=31-o%31,[r,255&o]},s=function(t,e){for(var n,r=1,o=0,i=t.length,a=0;i>0;){n=i>e?e:i,i-=n;do{r+=t[a++],o+=r}while(--n);r%=65521,o%=65521}return(o<<16|r)>>>0},c=function(t,e,n,r){for(var o,i,a,s=t.length/e,l=new Uint8Array(t.length+s),c=m(),u=0;u<s;u++){if(a=u*e,o=t.subarray(a,a+e),r)l.set(r(o,n,i),a+u);else{for(var h=0,f=c.length,d=[];h<f;h++)d[h]=c[h](o,n,i);var p=v(d.concat());l.set(d[p],a+u)}i=o}return l},u=function(t,e,n){var r=Array.apply([],t);return r.unshift(0),r},h=function(t,e,n){var r,o=[],i=0,a=t.length;for(o[0]=1;i<a;i++)r=t[i-e]||0,o[i+1]=t[i]-r+256&255;return o},f=function(t,e,n){var r,o=[],i=0,a=t.length;for(o[0]=2;i<a;i++)r=n&&n[i]||0,o[i+1]=t[i]-r+256&255;return o},d=function(t,e,n){var r,o,i=[],a=0,s=t.length;for(i[0]=3;a<s;a++)r=t[a-e]||0,o=n&&n[a]||0,i[a+1]=t[a]+256-(r+o>>>1)&255;return i},p=function(t,e,n){var r,o,i,a,s=[],l=0,c=t.length;for(s[0]=4;l<c;l++)r=t[l-e]||0,o=n&&n[l]||0,i=n&&n[l-e]||0,a=g(r,o,i),s[l+1]=t[l]-a+256&255;return s},g=function(t,e,n){var r=t+e-n,o=Math.abs(r-t),i=Math.abs(r-e),a=Math.abs(r-n);return o<=i&&o<=a?t:i<=a?e:n},m=function(){return[u,h,f,d,p]},v=function(t){for(var e,n,r,o=0,i=t.length;o<i;)e=y(t[o].slice(1)),(e<n||!n)&&(n=e,r=o),o++;return r},y=function(t){for(var e=0,n=t.length,r=0;e<n;)r+=Math.abs(t[e++]);return r},b=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n};t.processPNG=function(t,r,i,a,s){var l,c,u,h,f,d,p=this.color_spaces.DEVICE_RGB,g=this.decode.FLATE_DECODE,m=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if(e())throw new Error("PNG support requires png.js and zlib.js");if(l=new PNG(t),t=l.imgData,m=l.bits,p=l.colorSpace,h=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits)for(var v,y,w=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer),x=w.length,S=new Uint8Array(x*l.colors),k=new Uint8Array(x),C=l.pixelBitlength-l.bits,O=0,T=0;O<x;O++){for(v=w[O],y=0;y<C;)S[T++]=v>>>y&255,y+=l.bits;k[O]=v>>>y&255}if(16===l.bits){for(var v,w=new Uint32Array(l.decodePixels().buffer),x=w.length,S=new Uint8Array(x*(32/l.pixelBitlength)*l.colors),k=new Uint8Array(x*(32/l.pixelBitlength)),_=l.colors>1,O=0,T=0,A=0;O<x;)v=w[O++],S[T++]=v>>>0&255,_&&(S[T++]=v>>>16&255,v=w[O++],S[T++]=v>>>0&255),k[A++]=v>>>16&255;m=8}n(a)?(t=o(S,l.width*l.colors,l.colors,a),d=o(k,l.width,1,a)):(t=S,d=k,g=null)}if(3===l.colorType&&(p=this.color_spaces.INDEXED,f=l.palette,l.transparency.indexed)){for(var P=l.transparency.indexed,E=0,O=0,x=P.length;O<x;++O)E+=P[O];if((E/=255)===x-1&&-1!==P.indexOf(0))u=[P.indexOf(0)];else if(E!==x){for(var w=l.decodePixels(),k=new Uint8Array(w.length),O=0,x=w.length;O<x;O++)k[O]=P[w[O]]
|
||
;d=o(k,l.width,1)}}var I=b(a);return c=g===this.decode.FLATE_DECODE?"/Predictor "+I+" /Colors "+h+" /BitsPerComponent "+m+" /Columns "+l.width:"/Colors "+h+" /BitsPerComponent "+m+" /Columns "+l.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(d&&this.isArrayBuffer(d)||this.isArrayBufferView(d))&&(d=this.arrayBufferToBinaryString(d)),this.createImageInfo(t,l.width,l.height,p,m,g,r,i,c,u,f,d,I)}throw new Error("Unsupported PNG image data, try using JPEG instead.")}}(e.API),function(t){t.autoPrint=function(){var t;return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.write("<< /S/Named /Type/Action /N/Print >>","endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.write("/OpenAction "+t+" 0 R")}),this}}(e.API),function(t){var e=t.getCharWidthsArray=function(t,e){e||(e={});var n,r,o,i=e.widths?e.widths:this.internal.getFont().metadata.Unicode.widths,a=i.fof?i.fof:1,s=e.kerning?e.kerning:this.internal.getFont().metadata.Unicode.kerning,l=s.fof?s.fof:1,c=0,u=i[0]||a,h=[];for(n=0,r=t.length;n<r;n++)o=t.charCodeAt(n),h.push((i[o]||u)/a+(s[o]&&s[o][c]||0)/l),c=o;return h},n=function(t){for(var e=t.length,n=0;e;)e--,n+=t[e];return n},r=t.getStringUnitWidth=function(t,r){return n(e.call(this,t,r))},o=function(t,e,n,r){for(var o=[],i=0,a=t.length,s=0;i!==a&&s+e[i]<n;)s+=e[i],i++;o.push(t.slice(0,i));var l=i;for(s=0;i!==a;)s+e[i]>r&&(o.push(t.slice(l,i)),s=0,l=i),s+=e[i],i++;return l!==i&&o.push(t.slice(l,i)),o},i=function(t,i,a){a||(a={});var s,l,c,u,h,f,d=[],p=[d],g=a.textIndent||0,m=0,v=0,y=t.split(" "),b=e(" ",a)[0];if(f=-1===a.lineIndent?y[0].length+2:a.lineIndent||0){var w=Array(f).join(" "),x=[];y.map(function(t){t=t.split(/\s*\n/),t.length>1?x=x.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):x.push(t[0])}),y=x,f=r(w,a)}for(c=0,u=y.length;c<u;c++){var S=0;if(s=y[c],f&&"\n"==s[0]&&(s=s.substr(1),S=1),l=e(s,a),v=n(l),g+m+v>i||S){if(v>i){for(h=o(s,l,i-(g+m),i),d.push(h.shift()),d=[h.pop()];h.length;)p.push([h.shift()]);v=n(l.slice(s.length-d[0].length))}else d=[s];p.push(d),g=v+f,m=b}else d.push(s),g+=m+v,m=b}if(f)var k=function(t,e){return(e?w:"")+t.join(" ")};else var k=function(t){return t.join(" ")};return p.map(k)};t.splitTextToSize=function(t,e,n){n||(n={});var r,o=n.fontSize||this.internal.getFontSize(),a=function(t){var e={0:1},n={};if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var r=this.internal.getFont(t.fontName,t.fontStyle),o="Unicode";return r.metadata[o]?{widths:r.metadata[o].widths||e,kerning:r.metadata[o].kerning||n}:{widths:e,kerning:n}}.call(this,n);r=Array.isArray(t)?t:t.split(/\r?\n/);var s=1*this.internal.scaleFactor*e/o;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,a.lineIndent=n.lineIndent;var l,c,u=[];for(l=0,c=r.length;l<c;l++)u=u.concat(i(r[l],s,a));return u}}(e.API),function(t){var e=function(t){for(var e="klmnopqrstuvwxyz",n={},r=0;r<e.length;r++)n[e[r]]="0123456789abcdef"[r];var o,i,a,s,l,c={},u=1,h=c,f=[],d="",p="",g=t.length-1;for(r=1;r!=g;)l=t[r],r+=1,"'"==l?i?(s=i.join(""),i=o):i=[]:i?i.push(l):"{"==l?(f.push([h,s]),h={},s=o):"}"==l?(a=f.pop(),a[0][a[1]]=h,s=o,h=a[0]):"-"==l?u=-1:s===o?n.hasOwnProperty(l)?(d+=n[l],s=parseInt(d,16)*u,u=1,d=""):d+=l:n.hasOwnProperty(l)?(p+=n[l],h[s]=parseInt(p,16)*u,u=1,s=o,p=""):p+=l;return c},n={codePages:["WinAnsiEncoding"],WinAnsiEncoding:e("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},r={Unicode:{Courier:n,"Courier-Bold":n,"Courier-BoldOblique":n,"Courier-Oblique":n,Helvetica:n,"Helvetica-Bold":n,"Helvetica-BoldOblique":n,"Helvetica-Oblique":n,"Times-Roman":n,"Times-Bold":n,"Times-BoldItalic":n,"Times-Italic":n}},o={Unicode:{"Courier-Oblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":e("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":e("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Helvetica:e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),"Courier-Bold":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":e("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":e("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e,n,i,a="Unicode";e=o[a][t.PostScriptName],e&&(n=t.metadata[a]?t.metadata[a]:t.metadata[a]={},n.widths=e.widths,n.kerning=e.kerning),(i=r[a][t.PostScriptName])&&(n=t.metadata[a]?t.metadata[a]:t.metadata[a]={},n.encoding=i,i.codePages&&i.codePages.length&&(t.encoding=i.codePages[0]))}])}(e.API),function(t){t.addSVG=function(t,e,n,r,o){function i(t,e){var n=e.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=t:n.appendChild(e.createTextNode(t)),e.getElementsByTagName("head")[0].appendChild(n)}var a;if(e===a||n===a)throw new Error("addSVG needs values for 'x' and 'y'");var s=function(t){var e=t.createElement("iframe");return i(".jsPDF_sillysvg_iframe {display:none;position:absolute;}",t),e.name="childframe",e.setAttribute("width",0),e.setAttribute("height",0),e.setAttribute("frameborder","0"),e.setAttribute("scrolling","no"),e.setAttribute("seamless","seamless"),e.setAttribute("class","jsPDF_sillysvg_iframe"),t.body.appendChild(e),e}(document),l=function(t,e){var n=(e.contentWindow||e.contentDocument).document;return n.write(t),n.close(),n.getElementsByTagName("svg")[0]}(t,s),c=[1,1],u=parseFloat(l.getAttribute("width")),h=parseFloat(l.getAttribute("height"));u&&h&&(r&&o?c=[r/u,o/h]:r?c=[r/u,r/u]:o&&(c=[o/h,o/h]));var f,d,p,g,m=l.childNodes;for(f=0,d=m.length;f<d;f++)p=m[f],p.tagName&&"PATH"===p.tagName.toUpperCase()&&(g=function(t){for(var e=parseFloat(t[1]),n=parseFloat(t[2]),r=[],o=3,i=t.length;o<i;)"c"===t[o]?(r.push([parseFloat(t[o+1]),parseFloat(t[o+2]),parseFloat(t[o+3]),parseFloat(t[o+4]),parseFloat(t[o+5]),parseFloat(t[o+6])]),o+=7):"l"===t[o]?(r.push([parseFloat(t[o+1]),parseFloat(t[o+2])]),o+=3):o+=1;return[e,n,r]}(p.getAttribute("d").split(" ")),g[0]=g[0]*c[0]+e,g[1]=g[1]*c[1]+n,this.lines.call(this,g[2],g[0],g[1],c));return this}}(e.API),function(t){t.putTotalPages=function(t){for(var e=new RegExp(t,"g"),n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(e,this.internal.getNumberOfPages());return this}}(e.API),function(t){var e="",n="",r="";t.addMetadata=function(t,o){return n=o||"http://jspdf.default.namespaceuri/",e=t,this.internal.events.subscribe("postPutResources",function(){if(e){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+n+'"><jspdf:metadata>',o=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(t)),a=unescape(encodeURIComponent(e)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=i.length+a.length+s.length+o.length+l.length;r=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(o+i+a+s+l),this.internal.write("endstream"),this.internal.write("endobj")}else r=""}),this.internal.events.subscribe("putCatalog",function(){r&&this.internal.write("/Metadata "+r+" 0 R")}),this}}(e.API),function(t){if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},o=n.prototype,i=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=l.length,u=t.URL||t.webkitURL||t,h=u.createObjectURL,f=u.revokeObjectURL,d=u,p=t.btoa,g=t.atob,m=t.ArrayBuffer,v=t.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=i.fake=!0;c--;)s.prototype[l[c]]=c+1;return u.createObjectURL||(d=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(y),n.origin=e&&e[1])),n}),d.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):p?e+";base64,"+p(t.data):e+","+encodeURIComponent(t.data)):h?h.call(u,t):void 0},d.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&f&&f.call(u,t)},o.append=function(t){var n=this.data;if(v&&(t instanceof m||t instanceof v)){for(var o="",i=new v(t),l=0,c=i.length;l<c;l++)o+=String.fromCharCode(i[l]);n.push(o)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var u=new a;n.push(u.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&g?n.push(g(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},o.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},o.toString=function(){return"[object BlobBuilder]"},i.slice=function(t,e,n){var o=arguments.length;return o<3&&(n=null),new r(this.data.slice(t,o>1?e:this.data.length),n,this.encoding)},i.toString=function(){return"[object Blob]"},i.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,n){var r=n?n.type||"":"",o=new e;if(t)for(var i=0,a=t.length;i<a;i++)Uint8Array&&t[i]instanceof Uint8Array?o.append(t[i].buffer):o.append(t[i]);var s=o.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content||void 0);var o=o||function(t){if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=function(t){var e=new MouseEvent("click");t.dispatchEvent(e)},a=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),s=t.webkitRequestFileSystem,l=t.requestFileSystem||s||t.mozRequestFileSystem,c=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},u="application/octet-stream",h=0,f=function(e){var r=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};t.chrome?r():setTimeout(r,500)},d=function(t,e,n){e=[].concat(e);for(var r=e.length;r--;){var o=t["on"+e[r]];if("function"==typeof o)try{o.call(t,n||t)}catch(t){c(t)}}},p=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},g=function(e,c,g){g||(e=p(e));var m,v,y,b=this,w=e.type,x=!1,S=function(){d(b,"writestart progress write writeend".split(" "))},k=function(){if(v&&a&&"undefined"!=typeof FileReader){var r=new FileReader;return r.onloadend=function(){var t=r.result;v.location.href="data:attachment/file"+t.slice(t.search(/[,;]/)),b.readyState=b.DONE,S()},r.readAsDataURL(e),void(b.readyState=b.INIT)}if(!x&&m||(m=n().createObjectURL(e)),v)v.location.href=m;else{void 0==t.open(m,"_blank")&&a&&(t.location.href=m)}b.readyState=b.DONE,S(),f(m)},C=function(t){return function(){if(b.readyState!==b.DONE)return t.apply(this,arguments)}},O={create:!0,exclusive:!1};return b.readyState=b.INIT,c||(c="download"),o?(m=n().createObjectURL(e),void setTimeout(function(){r.href=m,r.download=c,i(r),S(),f(m),b.readyState=b.DONE})):(t.chrome&&w&&w!==u&&(y=e.slice||e.webkitSlice,e=y.call(e,0,e.size,u),x=!0),s&&"download"!==c&&(c+=".download"),(w===u||s)&&(v=t),l?(h+=e.size,void l(t.TEMPORARY,h,C(function(t){t.root.getDirectory("saved",O,C(function(t){var n=function(){t.getFile(c,O,C(function(t){t.createWriter(C(function(n){n.onwriteend=function(e){v.location.href=t.toURL(),b.readyState=b.DONE,d(b,"writeend",e),f(t)},n.onerror=function(){var t=n.error;t.code!==t.ABORT_ERR&&k()},"writestart progress write abort".split(" ").forEach(function(t){n["on"+t]=b["on"+t]}),n.write(e),b.abort=function(){n.abort(),b.readyState=b.DONE},b.readyState=b.WRITING}),k)}),k)};t.getFile(c,{create:!1},C(function(t){t.remove(),n()}),C(function(t){t.code===t.NOT_FOUND_ERR?n():k()}))}),k)}),k)):void k())},m=g.prototype,v=function(t,e,n){return new g(t,e,n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return n||(t=p(t)),navigator.msSaveOrOpenBlob(t,e||"download")}:(m.abort=function(){var t=this;t.readyState=t.DONE,d(t,"abort")},m.readyState=m.INIT=0,m.WRITING=1,m.DONE=2,m.error=m.onwritestart=m.onprogress=m.onwrite=m.onabort=m.onerror=m.onwriteend=null,v)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=o:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return o}),function(t,e){"object"==typeof module?module.exports=e():"function"==typeof define?define(e):t.adler32cs=e()}(e,function(){var t="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,e=null,n=function(){if(!t)return function(){return!1};try{var n={};"function"==typeof n.Buffer&&(e=n.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==e&&t instanceof e}}(),r=function(){return null!==e?function(t){return new e(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))}}(),o=65521,i=function(t,e){for(var n=65535&t,r=t>>>16,i=0,a=e.length;i<a;i++)n=(n+(255&e.charCodeAt(i)))%o,r=(r+n)%o;return(r<<16|n)>>>0},a=function(t,e){for(var n=65535&t,r=t>>>16,i=0,a=e.length;i<a;i++)n=(n+e[i])%o,r=(r+n)%o;return(r<<16|n)>>>0},s={},l=s.Adler32=function(){var e=function(t){if(!(this instanceof e))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null==t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0},o=e.prototype={};return o.constructor=e,e.from=function(t){return t.prototype=o,t}(function(t){if(!(this instanceof e))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");this.checksum=i(1,t.toString())}),e.fromUtf8=function(t){return t.prototype=o,t}(function(t){if(!(this instanceof e))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");var n=r(t.toString());this.checksum=i(1,n)}),t&&(e.fromBuffer=function(t){return t.prototype=o,t}(function(t){if(!(this instanceof e))throw new TypeError("Constructor cannot called be as a function.");if(!n(t))throw new Error("First argument needs to be ArrayBuffer.");var r=new Uint8Array(t);return this.checksum=a(1,r)})),o.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=i(this.checksum,t)},o.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=r(t.toString());return this.checksum=i(this.checksum,e)},t&&(o.updateBuffer=function(t){if(!n(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=a(this.checksum,e)}),o.clone=function(){return new l(this.checksum)},e}();return s.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return i(1,t.toString())},s.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=r(t.toString());return i(1,e)},t&&(s.fromBuffer=function(t){if(!n(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return a(1,e)}),s});var i={};i._colorsTable={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",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",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",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},i.colorNameToHex=function(t){return t=t.toLowerCase(),void 0!==this._colorsTable[t]&&this._colorsTable[t]};var a=function(t){function e(){function t(t){var e,n,o,i,a,l,c=r.dyn_tree,u=r.stat_desc.static_tree,h=r.stat_desc.extra_bits,d=r.stat_desc.extra_base,p=r.stat_desc.max_length,g=0;for(i=0;i<=s;i++)t.bl_count[i]=0;for(c[2*t.heap[t.heap_max]+1]=0,e=t.heap_max+1;e<f;e++)n=t.heap[e],i=c[2*c[2*n+1]+1]+1,i>p&&(i=p,g++),c[2*n+1]=i,n>r.max_code||(t.bl_count[i]++,a=0,n>=d&&(a=h[n-d]),l=c[2*n],t.opt_len+=l*(i+a),u&&(t.static_len+=l*(u[2*n+1]+a)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(o=t.heap[--e])>r.max_code||(c[2*o+1]!=i&&(t.opt_len+=(i-c[2*o+1])*c[2*o],c[2*o+1]=i),n--)}}function e(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function n(t,n,r){var o,i,a,l=[],c=0;for(o=1;o<=s;o++)l[o]=c=c+r[o-1]<<1;for(i=0;i<=n;i++)0!==(a=t[2*i+1])&&(t[2*i]=e(l[a]++,a))}var r=this;r.build_tree=function(e){var o,i,a,s=r.dyn_tree,l=r.stat_desc.static_tree,c=r.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=f,o=0;o<c;o++)0!==s[2*o]?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):s[2*o+1]=0;for(;e.heap_len<2;)a=e.heap[++e.heap_len]=u<2?++u:0,s[2*a]=1,e.depth[a]=0,e.opt_len--,l&&(e.static_len-=l[2*a+1]);for(r.max_code=u,o=Math.floor(e.heap_len/2);o>=1;o--)e.pqdownheap(s,o);a=c;do{o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],e.pqdownheap(s,1),i=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=i,s[2*a]=s[2*o]+s[2*i],e.depth[a]=Math.max(e.depth[o],e.depth[i])+1,s[2*o+1]=s[2*i+1]=a,e.heap[1]=a++,e.pqdownheap(s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],t(e),n(s,r.max_code,e.bl_count)}}function n(t,e,n,r,o){var i=this;i.static_tree=t,i.extra_bits=e,i.extra_base=n,i.elems=r,i.max_length=o}function r(t,e,n,r,o){var i=this;i.good_length=t,i.max_lazy=e,i.nice_length=n,i.max_chain=r,i.func=o}function o(t,e,n,r){var o=t[2*e],i=t[2*n];return o<i||o==i&&r[e]<=r[n]}function i(){function t(){var t;for(Et=2*Tt,jt[Ft-1]=0,t=0;t<Ft-1;t++)jt[t]=0;Gt=D[Xt].max_lazy,Kt=D[Xt].good_length,Jt=D[Xt].nice_length,Vt=D[Xt].max_chain,$t=0,Dt=0,Ut=0,Lt=Wt=Q-1,zt=0,Rt=0}function r(){var t;for(t=0;t<h;t++)Qt[2*t]=0;for(t=0;t<l;t++)Zt[2*t]=0;for(t=0;t<c;t++)te[2*t]=0;Qt[2*d]=1,ee.opt_len=ee.static_len=0,se=ce=0}function i(){ne.dyn_tree=Qt,ne.stat_desc=n.static_l_desc,re.dyn_tree=Zt,re.stat_desc=n.static_d_desc,oe.dyn_tree=te,oe.stat_desc=n.static_bl_desc,he=0,fe=0,ue=8,r()}function a(t,e){var n,r,o=-1,i=t[1],a=0,s=7,l=4;for(0===i&&(s=138,l=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=i,i=t[2*(n+1)+1],++a<s&&r==i||(a<l?te[2*r]+=a:0!==r?(r!=o&&te[2*r]++,te[2*p]++):a<=10?te[2*g]++:te[2*m]++,a=0,o=r,0===i?(s=138,l=3):r==i?(s=6,l=3):(s=7,l=4))}function s(){var t;for(a(Qt,ne.max_code),a(Zt,re.max_code),oe.build_tree(ee),t=c-1;t>=3&&0===te[2*e.bl_order[t]+1];t--);return ee.opt_len+=3*(t+1)+5+5+4,t}function f(t){ee.pending_buf[ee.pending++]=t}function j(t){f(255&t),f(t>>>8&255)}function et(t){f(t>>8&255),f(255&t)}function nt(t,e){var n,r=e;fe>v-r?(n=t,he|=n<<fe&65535,j(he),he=n>>>v-fe,fe+=r-v):(he|=t<<fe&65535,fe+=r)}function rt(t,e){var n=2*t;nt(65535&e[n],65535&e[n+1])}function ot(t,e){var n,r,o=-1,i=t[1],a=0,s=7,l=4;for(0===i&&(s=138,l=3),n=0;n<=e;n++)if(r=i,i=t[2*(n+1)+1],!(++a<s&&r==i)){if(a<l)do{rt(r,te)}while(0!=--a);else 0!==r?(r!=o&&(rt(r,te),a--),rt(p,te),nt(a-3,2)):a<=10?(rt(g,te),nt(a-3,3)):(rt(m,te),nt(a-11,7));a=0,o=r,0===i?(s=138,l=3):r==i?(s=6,l=3):(s=7,l=4)}}function it(t,n,r){var o;for(nt(t-257,5),nt(n-1,5),nt(r-4,4),o=0;o<r;o++)nt(te[2*e.bl_order[o]+1],3);ot(Qt,t-1),ot(Zt,n-1)}function at(){16==fe?(j(he),he=0,fe=0):fe>=8&&(f(255&he),he>>>=8,fe-=8)}function st(){nt(K<<1,3),rt(d,n.static_ltree),at(),1+ue+10-fe<9&&(nt(K<<1,3),rt(d,n.static_ltree),at()),ue=7}function lt(t,n){var r,o,i;if(ee.pending_buf[le+2*se]=t>>>8&255,ee.pending_buf[le+2*se+1]=255&t,ee.pending_buf[ie+se]=255&n,se++,0===t?Qt[2*n]++:(ce++,t--,Qt[2*(e._length_code[n]+u+1)]++,Zt[2*e.d_code(t)]++),0==(8191&se)&&Xt>2){for(r=8*se,o=$t-Dt,i=0;i<l;i++)r+=Zt[2*i]*(5+e.extra_dbits[i]);if(r>>>=3,ce<Math.floor(se/2)&&r<Math.floor(o/2))return!0}return se==ae-1}function ct(t,n){var r,o,i,a,s=0;if(0!==se)do{r=ee.pending_buf[le+2*s]<<8&65280|255&ee.pending_buf[le+2*s+1],o=255&ee.pending_buf[ie+s],s++,0===r?rt(o,t):(i=e._length_code[o],rt(i+u+1,t),a=e.extra_lbits[i],0!==a&&(o-=e.base_length[i],nt(o,a)),r--,i=e.d_code(r),rt(i,n),0!==(a=e.extra_dbits[i])&&(r-=e.base_dist[i],nt(r,a)))}while(s<se);rt(d,t),ue=t[2*d+1]}function ut(){fe>8?j(he):fe>0&&f(255&he),he=0,fe=0}function ht(t,e,n){ut(),ue=8,n&&(j(e),j(~e)),ee.pending_buf.set(Pt.subarray(t,t+e),ee.pending),ee.pending+=e}function ft(t,e,n){nt((Y<<1)+(n?1:0),3),ht(t,e,!0)}function dt(t,e,o){var i,a,l=0;Xt>0?(ne.build_tree(ee),re.build_tree(ee),l=s(),i=ee.opt_len+3+7>>>3,(a=ee.static_len+3+7>>>3)<=i&&(i=a)):i=a=e+5,e+4<=i&&-1!=t?ft(t,e,o):a==i?(nt((K<<1)+(o?1:0),3),ct(n.static_ltree,n.static_dtree)):(nt((J<<1)+(o?1:0),3),it(ne.max_code+1,re.max_code+1,l+1),ct(Qt,Zt)),r(),o&&ut()}function pt(t){dt(Dt>=0?Dt:-1,$t-Dt,t),Dt=$t,xt.flush_pending()}function gt(){var t,e,n,r;do{if(0===(r=Et-Ut-$t)&&0===$t&&0===Ut)r=Tt;else if(-1==r)r--;else if($t>=Tt+Tt-tt){Pt.set(Pt.subarray(Tt,Tt+Tt),0),Ht-=Tt,$t-=Tt,Dt-=Tt,t=Ft,n=t;do{e=65535&jt[--n],jt[n]=e>=Tt?e-Tt:0}while(0!=--t);t=Tt,n=t;do{e=65535&It[--n],It[n]=e>=Tt?e-Tt:0}while(0!=--t);r+=Tt}if(0===xt.avail_in)return;t=xt.read_buf(Pt,$t+Ut,r),(Ut+=t)>=Q&&(Rt=255&Pt[$t],Rt=(Rt<<Bt^255&Pt[$t+1])&qt)}while(Ut<tt&&0!==xt.avail_in)}function mt(t){var e,n=65535;for(n>kt-5&&(n=kt-5);;){if(Ut<=1){if(gt(),0===Ut&&t==S)return M;if(0===Ut)break}if($t+=Ut,Ut=0,e=Dt+n,(0===$t||$t>=e)&&(Ut=$t-e,$t=e,pt(!1),0===xt.avail_out))return M;if($t-Dt>=Tt-tt&&(pt(!1),0===xt.avail_out))return M}return pt(t==O),0===xt.avail_out?t==O?$:M:t==O?H:z}function vt(t){var e,n,r=Vt,o=$t,i=Wt,a=$t>Tt-tt?$t-(Tt-tt):0,s=Jt,l=At,c=$t+Z,u=Pt[o+i-1],h=Pt[o+i];Wt>=Kt&&(r>>=2),s>Ut&&(s=Ut);do{if(e=t,Pt[e+i]==h&&Pt[e+i-1]==u&&Pt[e]==Pt[o]&&Pt[++e]==Pt[o+1]){o+=2,e++;do{}while(Pt[++o]==Pt[++e]&&Pt[++o]==Pt[++e]&&Pt[++o]==Pt[++e]&&Pt[++o]==Pt[++e]&&Pt[++o]==Pt[++e]&&Pt[++o]==Pt[++e]&&Pt[++o]==Pt[++e]&&Pt[++o]==Pt[++e]&&o<c);if(n=Z-(c-o),o=c-Z,n>i){if(Ht=t,i=n,n>=s)break;u=Pt[o+i-1],h=Pt[o+i]}}}while((t=65535&It[t&l])>a&&0!=--r);return i<=Ut?i:Ut}function yt(t){for(var e,n=0;;){if(Ut<tt){if(gt(),Ut<tt&&t==S)return M;if(0===Ut)break}if(Ut>=Q&&(Rt=(Rt<<Bt^255&Pt[$t+(Q-1)])&qt,n=65535&jt[Rt],It[$t&At]=jt[Rt],jt[Rt]=$t),0!==n&&($t-n&65535)<=Tt-tt&&Yt!=w&&(Lt=vt(n)),Lt>=Q)if(e=lt($t-Ht,Lt-Q),Ut-=Lt,Lt<=Gt&&Ut>=Q){Lt--;do{$t++,Rt=(Rt<<Bt^255&Pt[$t+(Q-1)])&qt,n=65535&jt[Rt],It[$t&At]=jt[Rt],jt[Rt]=$t}while(0!=--Lt);$t++}else $t+=Lt,Lt=0,Rt=255&Pt[$t],Rt=(Rt<<Bt^255&Pt[$t+1])&qt;else e=lt(0,255&Pt[$t]),Ut--,$t++;if(e&&(pt(!1),0===xt.avail_out))return M}return pt(t==O),0===xt.avail_out?t==O?$:M:t==O?H:z}function bt(t){for(var e,n,r=0;;){if(Ut<tt){if(gt(),Ut<tt&&t==S)return M;if(0===Ut)break}if(Ut>=Q&&(Rt=(Rt<<Bt^255&Pt[$t+(Q-1)])&qt,r=65535&jt[Rt],It[$t&At]=jt[Rt],jt[Rt]=$t),Wt=Lt,Mt=Ht,Lt=Q-1,0!==r&&Wt<Gt&&($t-r&65535)<=Tt-tt&&(Yt!=w&&(Lt=vt(r)),Lt<=5&&(Yt==b||Lt==Q&&$t-Ht>4096)&&(Lt=Q-1)),Wt>=Q&&Lt<=Wt){n=$t+Ut-Q,e=lt($t-1-Mt,Wt-Q),Ut-=Wt-1,Wt-=2;do{++$t<=n&&(Rt=(Rt<<Bt^255&Pt[$t+(Q-1)])&qt,r=65535&jt[Rt],It[$t&At]=jt[Rt],jt[Rt]=$t)}while(0!=--Wt);if(zt=0,Lt=Q-1,$t++,e&&(pt(!1),0===xt.avail_out))return M}else if(0!==zt){if(e=lt(0,255&Pt[$t-1]),e&&pt(!1),$t++,Ut--,0===xt.avail_out)return M}else zt=1,$t++,Ut--}return 0!==zt&&(e=lt(0,255&Pt[$t-1]),zt=0),pt(t==O),0===xt.avail_out?t==O?$:M:t==O?H:z}function wt(e){return e.total_in=e.total_out=0,e.msg=null,ee.pending=0,ee.pending_out=0,St=V,Ot=S,i(),t(),T}var xt,St,kt,Ct,Ot,Tt,_t,At,Pt,Et,It,jt,Rt,Ft,Nt,qt,Bt,Dt,Lt,Mt,zt,$t,Ht,Ut,Wt,Vt,Gt,Xt,Yt,Kt,Jt,Qt,Zt,te,ee=this,ne=new e,re=new e,oe=new e;ee.depth=[];var ie,ae,se,le,ce,ue,he,fe;ee.bl_count=[],ee.heap=[],Qt=[],Zt=[],te=[],ee.pqdownheap=function(t,e){for(var n=ee.heap,r=n[e],i=e<<1;i<=ee.heap_len&&(i<ee.heap_len&&o(t,n[i+1],n[i],ee.depth)&&i++,!o(t,r,n[i],ee.depth));)n[e]=n[i],e=i,i<<=1;n[e]=r},ee.deflateInit=function(t,e,n,r,o,i){return r||(r=X),o||(o=F),i||(i=x),t.msg=null,e==y&&(e=6),o<1||o>R||r!=X||n<9||n>15||e<0||e>9||i<0||i>w?P:(t.dstate=ee,_t=n,Tt=1<<_t,At=Tt-1,Nt=o+7,Ft=1<<Nt,qt=Ft-1,Bt=Math.floor((Nt+Q-1)/Q),Pt=new Uint8Array(2*Tt),It=[],jt=[],ae=1<<o+6,ee.pending_buf=new Uint8Array(4*ae),kt=4*ae,le=Math.floor(ae/2),ie=3*ae,Xt=e,Yt=i,Ct=255&r,wt(t))},ee.deflateEnd=function(){return St!=W&&St!=V&&St!=G?P:(ee.pending_buf=null,jt=null,It=null,Pt=null,ee.dstate=null,St==V?E:T)},ee.deflateParams=function(t,e,n){var r=T;return e==y&&(e=6),e<0||e>9||n<0||n>w?P:(D[Xt].func!=D[e].func&&0!==t.total_in&&(r=t.deflate(k)),Xt!=e&&(Xt=e,Gt=D[Xt].max_lazy,Kt=D[Xt].good_length,Jt=D[Xt].nice_length,Vt=D[Xt].max_chain),Yt=n,r)},ee.deflateSetDictionary=function(t,e,n){var r,o=n,i=0;if(!e||St!=W)return P;if(o<Q)return T;for(o>Tt-tt&&(o=Tt-tt,i=n-o),Pt.set(e.subarray(i,i+o),0),$t=o,Dt=o,Rt=255&Pt[0],Rt=(Rt<<Bt^255&Pt[1])&qt,r=0;r<=o-Q;r++)Rt=(Rt<<Bt^255&Pt[r+(Q-1)])&qt,It[r&At]=jt[Rt],jt[Rt]=r;return T},ee.deflate=function(t,e){var n,r,o,i,a;if(e>O||e<0)return P;if(!t.next_out||!t.next_in&&0!==t.avail_in||St==G&&e!=O)return t.msg=L[A-P],P;if(0===t.avail_out)return t.msg=L[A-I],I;if(xt=t,i=Ot,Ot=e,St==W&&(r=X+(_t-8<<4)<<8,o=(Xt-1&255)>>1,o>3&&(o=3),r|=o<<6,0!==$t&&(r|=U),r+=31-r%31,St=V,et(r)),0!==ee.pending){if(xt.flush_pending(),0===xt.avail_out)return Ot=-1,T}else if(0===xt.avail_in&&e<=i&&e!=O)return xt.msg=L[A-I],I;if(St==G&&0!==xt.avail_in)return t.msg=L[A-I],I;if(0!==xt.avail_in||0!==Ut||e!=S&&St!=G){switch(a=-1,D[Xt].func){case N:a=mt(e);break;case q:a=yt(e);break;case B:a=bt(e)}if(a!=$&&a!=H||(St=G),a==M||a==$)return 0===xt.avail_out&&(Ot=-1),T;if(a==z){if(e==k)st();else if(ft(0,0,!1),e==C)for(n=0;n<Ft;n++)jt[n]=0;if(xt.flush_pending(),0===xt.avail_out)return Ot=-1,T}}return e!=O?T:_}}function a(){var t=this;t.next_in_index=0,t.next_out_index=0,t.avail_in=0,t.total_in=0,t.avail_out=0,t.total_out=0}var s=15,l=30,c=19,u=256,h=u+1+29,f=2*h+1,d=256,p=16,g=17,m=18,v=16,y=-1,b=1,w=2,x=0,S=0,k=1,C=3,O=4,T=0,_=1,A=2,P=-2,E=-3,I=-5,j=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];e._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],e.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],e.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],e.d_code=function(t){return t<256?j[t]:j[256+(t>>>7)]},e.extra_lbits=[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],e.extra_dbits=[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],e.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],e.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],n.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],n.static_l_desc=new n(n.static_ltree,e.extra_lbits,u+1,h,s),n.static_d_desc=new n(n.static_dtree,e.extra_dbits,0,l,s),n.static_bl_desc=new n(null,e.extra_blbits,0,c,7);var R=9,F=8,N=0,q=1,B=2,D=[new r(0,0,0,0,N),new r(4,4,8,4,q),new r(4,5,16,8,q),new r(4,6,32,32,q),new r(4,4,16,16,B),new r(8,16,32,32,B),new r(8,16,128,128,B),new r(8,32,128,256,B),new r(32,128,258,1024,B),new r(32,258,258,4096,B)],L=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],M=0,z=1,$=2,H=3,U=32,W=42,V=113,G=666,X=8,Y=0,K=1,J=2,Q=3,Z=258,tt=Z+Q+1;return a.prototype={deflateInit:function(t,e){var n=this;return n.dstate=new i,e||(e=s),n.dstate.deflateInit(n,t,e)},deflate:function(t){var e=this;return e.dstate?e.dstate.deflate(e,t):P},deflateEnd:function(){var t=this;if(!t.dstate)return P;var e=t.dstate.deflateEnd();return t.dstate=null,e},deflateParams:function(t,e){var n=this;return n.dstate?n.dstate.deflateParams(n,t,e):P},deflateSetDictionary:function(t,e){var n=this;return n.dstate?n.dstate.deflateSetDictionary(n,t,e):P},read_buf:function(t,e,n){var r=this,o=r.avail_in;return o>n&&(o=n),0===o?0:(r.avail_in-=o,t.set(r.next_in.subarray(r.next_in_index,r.next_in_index+o),e),r.next_in_index+=o,r.total_in+=o,o)},flush_pending:function(){var t=this,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}},function(t){var e=this,n=new a,r=512,o=S,i=new Uint8Array(r);void 0===t&&(t=y),n.deflateInit(t),n.next_out=i,e.append=function(t,e){var a,s=[],l=0,c=0,u=0;if(t.length){n.next_in_index=0,n.next_in=t,n.avail_in=t.length;do{if(n.next_out_index=0,n.avail_out=r,n.deflate(o)!=T)throw"deflating: "+n.msg;n.next_out_index&&(n.next_out_index==r?s.push(new Uint8Array(i)):s.push(new Uint8Array(i.subarray(0,n.next_out_index)))),u+=n.next_out_index,e&&n.next_in_index>0&&n.next_in_index!=l&&(e(n.next_in_index),l=n.next_in_index)}while(n.avail_in>0||0===n.avail_out);return a=new Uint8Array(u),s.forEach(function(t){a.set(t,c),c+=t.length}),a}},e.flush=function(){var t,e,o=[],a=0,s=0;do{if(n.next_out_index=0,n.avail_out=r,(t=n.deflate(O))!=_&&t!=T)throw"deflating: "+n.msg;r-n.avail_out>0&&o.push(new Uint8Array(i.subarray(0,n.next_out_index))),s+=n.next_out_index}while(n.avail_in>0||0===n.avail_out);return n.deflateEnd(),e=new Uint8Array(s),o.forEach(function(t){e.set(t,a),a+=t.length}),e}}}();!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.html2canvas=t()}}(function(){var t;return function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return o(n||t)},u,u.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,n,r){(function(e){!function(o){function i(t){throw RangeError(F[t])}function a(t,e){for(var n=t.length;n--;)t[n]=e(t[n]);return t}function s(t,e){return a(t.split(R),e).join(".")}function l(t){for(var e,n,r=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<i?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function c(t){return a(t,function(t){var e="";return t>65535&&(t-=65536,e+=B(t>>>10&1023|55296),t=56320|1023&t),e+=B(t)}).join("")}function u(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:k}function h(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function f(t,e,n){var r=0;for(t=n?q(t/_):t>>1,t+=q(t/e);t>N*O>>1;r+=k)t=q(t/N);return q(r+(N+1)*t/(t+T))}function d(t){var e,n,r,o,a,s,l,h,d,p,g=[],m=t.length,v=0,y=P,b=A;for(n=t.lastIndexOf(E),n<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&i("not-basic"),g.push(t.charCodeAt(r));for(o=n>0?n+1:0;o<m;){for(a=v,s=1,l=k;o>=m&&i("invalid-input"),h=u(t.charCodeAt(o++)),(h>=k||h>q((S-v)/s))&&i("overflow"),v+=h*s,d=l<=b?C:l>=b+O?O:l-b,!(h<d);l+=k)p=k-d,s>q(S/p)&&i("overflow"),s*=p;e=g.length+1,b=f(v-a,e,0==a),q(v/e)>S-y&&i("overflow"),y+=q(v/e),v%=e,g.splice(v++,0,y)}return c(g)}function p(t){var e,n,r,o,a,s,c,u,d,p,g,m,v,y,b,w=[];for(t=l(t),m=t.length,e=P,n=0,a=A,s=0;s<m;++s)(g=t[s])<128&&w.push(B(g));for(r=o=w.length,o&&w.push(E);r<m;){for(c=S,s=0;s<m;++s)(g=t[s])>=e&&g<c&&(c=g);for(v=r+1,c-e>q((S-n)/v)&&i("overflow"),n+=(c-e)*v,e=c,s=0;s<m;++s)if(g=t[s],g<e&&++n>S&&i("overflow"),g==e){for(u=n,d=k;p=d<=a?C:d>=a+O?O:d-a,!(u<p);d+=k)b=u-p,y=k-p,w.push(B(h(p+b%y,0))),u=q(b/y);w.push(B(h(u,0))),a=f(n,v,r==o),n=0,++r}++n,++e}return w.join("")}function g(t){return s(t,function(t){return I.test(t)?d(t.slice(4).toLowerCase()):t})}function m(t){return s(t,function(t){return j.test(t)?"xn--"+p(t):t})}var v="object"==typeof r&&r,y="object"==typeof n&&n&&n.exports==v&&n,b="object"==typeof e&&e;b.global!==b&&b.window!==b||(o=b);var w,x,S=2147483647,k=36,C=1,O=26,T=38,_=700,A=72,P=128,E="-",I=/^xn--/,j=/[^ -~]/,R=/\x2E|\u3002|\uFF0E|\uFF61/g,F={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=k-C,q=Math.floor,B=String.fromCharCode;if(w={version:"1.2.4",ucs2:{decode:l,encode:c},decode:d,encode:p,toASCII:m,toUnicode:g},"function"==typeof t&&"object"==typeof t.amd&&t.amd)t("punycode",function(){return w});else if(v&&!v.nodeType)if(y)y.exports=w;else for(x in w)w.hasOwnProperty(x)&&(v[x]=w[x]);else o.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){function r(t,e,n){!t.defaultView||e===t.defaultView.pageXOffset&&n===t.defaultView.pageYOffset||t.defaultView.scrollTo(e,n)}function o(t,e){try{e&&(e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0))}catch(e){s("Unable to copy canvas content from",t,e)}}function i(t,e){for(var n=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),r=t.firstChild;r;)!0!==e&&1===r.nodeType&&"SCRIPT"===r.nodeName||n.appendChild(i(r,e)),r=r.nextSibling;return 1===t.nodeType&&(n._scrollTop=t.scrollTop,n._scrollLeft=t.scrollLeft,"CANVAS"===t.nodeName?o(t,n):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(n.value=t.value)),n}function a(t){if(1===t.nodeType){t.scrollTop=t._scrollTop,t.scrollLeft=t._scrollLeft;for(var e=t.firstChild;e;)a(e),e=e.nextSibling}}var s=t("./log");e.exports=function(t,e,n,o,s,l,c){var u=i(t.documentElement,s.javascriptEnabled),h=e.createElement("iframe");return h.className="html2canvas-container",h.style.visibility="hidden",h.style.position="fixed",h.style.left="-10000px",h.style.top="0px",h.style.border="0",h.width=n,h.height=o,h.scrolling="no",e.body.appendChild(h),new Promise(function(e){var n=h.contentWindow.document;h.contentWindow.onload=h.onload=function(){var t=setInterval(function(){n.body.childNodes.length>0&&(a(n.documentElement),clearInterval(t),"view"===s.type&&(h.contentWindow.scrollTo(l,c),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||h.contentWindow.scrollY===c&&h.contentWindow.scrollX===l||(n.documentElement.style.top=-c+"px",n.documentElement.style.left=-l+"px",n.documentElement.style.position="absolute")),e(h))},50)},n.open(),n.write("<!DOCTYPE html><html></html>"),r(t,l,c),n.replaceChild(n.adoptNode(u),n.documentElement),n.close()})}},{"./log":13}],3:[function(t,e,n){function r(t){this.r=0,this.g=0,this.b=0,this.a=null,this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}r.prototype.darken=function(t){var e=1-t;return new r([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])},r.prototype.isTransparent=function(){return 0===this.a},r.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},r.prototype.fromArray=function(t){return Array.isArray(t)&&(this.r=Math.min(t[0],255),this.g=Math.min(t[1],255),this.b=Math.min(t[2],255),t.length>3&&(this.a=t[3])),Array.isArray(t)};var o=/^#([a-f0-9]{3})$/i;r.prototype.hex3=function(t){var e=null;return null!==(e=t.match(o))&&(this.r=parseInt(e[1][0]+e[1][0],16),this.g=parseInt(e[1][1]+e[1][1],16),this.b=parseInt(e[1][2]+e[1][2],16)),null!==e};var i=/^#([a-f0-9]{6})$/i;r.prototype.hex6=function(t){var e=null;return null!==(e=t.match(i))&&(this.r=parseInt(e[1].substring(0,2),16),this.g=parseInt(e[1].substring(2,4),16),this.b=parseInt(e[1].substring(4,6),16)),null!==e};var a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;r.prototype.rgb=function(t){var e=null;return null!==(e=t.match(a))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3])),null!==e};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;r.prototype.rgba=function(t){var e=null;return null!==(e=t.match(s))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3]),this.a=Number(e[4])),null!==e},r.prototype.toString=function(){return null!==this.a&&1!==this.a?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"},r.prototype.namedColor=function(t){t=t.toLowerCase();var e=l[t];if(e)this.r=e[0],this.g=e[1],this.b=e[2];else if("transparent"===t)return this.r=this.g=this.b=this.a=0,!0;return!!e},r.prototype.isColor=!0;var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.exports=r},{}],4:[function(e,n,r){function o(t,e){var n=k++;if(e=e||{},e.logging&&(v.options.logging=!0,v.options.start=Date.now()),e.async=void 0===e.async||e.async,e.allowTaint=void 0!==e.allowTaint&&e.allowTaint,e.removeContainer=void 0===e.removeContainer||e.removeContainer,e.javascriptEnabled=void 0!==e.javascriptEnabled&&e.javascriptEnabled,e.imageTimeout=void 0===e.imageTimeout?1e4:e.imageTimeout,e.renderer="function"==typeof e.renderer?e.renderer:d,e.strict=!!e.strict,"string"==typeof t){if("string"!=typeof e.proxy)return Promise.reject("Proxy must be used when rendering url");var r=null!=e.width?e.width:window.innerWidth,o=null!=e.height?e.height:window.innerHeight;return w(h(t),e.proxy,document,r,o,e).then(function(t){return a(t.contentWindow.document.documentElement,t,e,r,o)})}var s=(void 0===t?[document.documentElement]:t.length?t:[t])[0];return s.setAttribute(S+n,n),i(s.ownerDocument,e,s.ownerDocument.defaultView.innerWidth,s.ownerDocument.defaultView.innerHeight,n).then(function(t){return"function"==typeof e.onrendered&&(v("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),e.onrendered(t)),t})}function i(t,e,n,r,o){return b(t,t,n,r,e,t.defaultView.pageXOffset,t.defaultView.pageYOffset).then(function(i){v("Document cloned");var s=S+o,l="["+s+"='"+o+"']";t.querySelector(l).removeAttribute(s);var c=i.contentWindow,u=c.document.querySelector(l);return("function"==typeof e.onclone?Promise.resolve(e.onclone(c.document)):Promise.resolve(!0)).then(function(){return a(u,i,e,n,r)})})}function a(t,e,n,r,o){var i=e.contentWindow,a=new f(i.document),h=new p(n,a),d=x(t),m="view"===n.type?r:c(i.document),y="view"===n.type?o:u(i.document),b=new n.renderer(m,y,h,n,document);return new g(t,b,a,h,n).ready.then(function(){v("Finished rendering");var r;return r="view"===n.type?l(b.canvas,{width:b.canvas.width,height:b.canvas.height,top:0,left:0,x:0,y:0}):t===i.document.body||t===i.document.documentElement||null!=n.canvas?b.canvas:l(b.canvas,{width:null!=n.width?n.width:d.width,height:null!=n.height?n.height:d.height,top:d.top,left:d.left,x:0,y:0}),s(e,n),r})}function s(t,e){e.removeContainer&&(t.parentNode.removeChild(t),v("Cleaned up container"))}function l(t,e){var n=document.createElement("canvas"),r=Math.min(t.width-1,Math.max(0,e.left)),o=Math.min(t.width,Math.max(1,e.left+e.width)),i=Math.min(t.height-1,Math.max(0,e.top)),a=Math.min(t.height,Math.max(1,e.top+e.height));n.width=e.width,n.height=e.height;var s=o-r,l=a-i;return v("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",s,"height:",l),v("Resulting crop with width",e.width,"and height",e.height,"with x",r,"and y",i),n.getContext("2d").drawImage(t,r,i,s,l,e.x,e.y,s,l),n}function c(t){return Math.max(Math.max(t.body.scrollWidth,t.documentElement.scrollWidth),Math.max(t.body.offsetWidth,t.documentElement.offsetWidth),Math.max(t.body.clientWidth,t.documentElement.clientWidth))}function u(t){return Math.max(Math.max(t.body.scrollHeight,t.documentElement.scrollHeight),Math.max(t.body.offsetHeight,t.documentElement.offsetHeight),Math.max(t.body.clientHeight,t.documentElement.clientHeight))}function h(t){var e=document.createElement("a");return e.href=t,e.href=e.href,e}
|
||
var f=e("./support"),d=e("./renderers/canvas"),p=e("./imageloader"),g=e("./nodeparser"),m=e("./nodecontainer"),v=e("./log"),y=e("./utils"),b=e("./clone"),w=e("./proxy").loadUrlDocument,x=y.getBounds,S="data-html2canvas-node",k=0;o.CanvasRenderer=d,o.NodeContainer=m,o.log=v,o.utils=y;var C="undefined"==typeof document||"function"!=typeof Object.create||"function"!=typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:o;n.exports=C,"function"==typeof t&&t.amd&&t("html2canvas",[],function(){return C})},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,n){function r(t){if(this.src=t,o("DummyImageContainer for",t),!this.promise||!this.image){o("Initiating DummyImageContainer"),r.prototype.image=new Image;var e=this.image;r.prototype.promise=new Promise(function(t,n){e.onload=t,e.onerror=n,e.src=i(),!0===e.complete&&t(e)})}}var o=t("./log"),i=t("./utils").smallImage;e.exports=r},{"./log":13,"./utils":26}],6:[function(t,e,n){function r(t,e){var n,r,i=document.createElement("div"),a=document.createElement("img"),s=document.createElement("span"),l="Hidden Text";i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin=0,i.style.padding=0,document.body.appendChild(i),a.src=o(),a.width=1,a.height=1,a.style.margin=0,a.style.padding=0,a.style.verticalAlign="baseline",s.style.fontFamily=t,s.style.fontSize=e,s.style.margin=0,s.style.padding=0,s.appendChild(document.createTextNode(l)),i.appendChild(s),i.appendChild(a),n=a.offsetTop-s.offsetTop+1,i.removeChild(s),i.appendChild(document.createTextNode(l)),i.style.lineHeight="normal",a.style.verticalAlign="super",r=a.offsetTop-i.offsetTop+1,document.body.removeChild(i),this.baseline=n,this.lineWidth=1,this.middle=r}var o=t("./utils").smallImage;e.exports=r},{"./utils":26}],7:[function(t,e,n){function r(){this.data={}}var o=t("./font");r.prototype.getMetrics=function(t,e){return void 0===this.data[t+"-"+e]&&(this.data[t+"-"+e]=new o(t,e)),this.data[t+"-"+e]},e.exports=r},{"./font":6}],8:[function(t,e,n){function r(e,n,r){this.image=null,this.src=e;var o=this,a=i(e);this.promise=(n?new Promise(function(t){"about:blank"===e.contentWindow.document.URL||null==e.contentWindow.document.documentElement?e.contentWindow.onload=e.onload=function(){t(e)}:t(e)}):this.proxyLoad(r.proxy,a,r)).then(function(e){return t("./core")(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:r.proxy,javascriptEnabled:r.javascriptEnabled,removeContainer:r.removeContainer,allowTaint:r.allowTaint,imageTimeout:r.imageTimeout/2})}).then(function(t){return o.image=t})}var o=t("./utils"),i=o.getBounds,a=t("./proxy").loadUrlDocument;r.prototype.proxyLoad=function(t,e,n){var r=this.src;return a(r.src,t,r.ownerDocument,e.width,e.height,n)},e.exports=r},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,n){function r(t){this.src=t.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}r.TYPES={LINEAR:1,RADIAL:2},r.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,e.exports=r},{}],10:[function(t,e,n){function r(t,e){this.src=t,this.image=new Image;var n=this;this.tainted=null,this.promise=new Promise(function(r,o){n.image.onload=r,n.image.onerror=o,e&&(n.image.crossOrigin="anonymous"),n.image.src=t,!0===n.image.complete&&r(n.image)})}e.exports=r},{}],11:[function(t,e,n){function r(t,e){this.link=null,this.options=t,this.support=e,this.origin=this.getOrigin(window.location.href)}var o=t("./log"),i=t("./imagecontainer"),a=t("./dummyimagecontainer"),s=t("./proxyimagecontainer"),l=t("./framecontainer"),c=t("./svgcontainer"),u=t("./svgnodecontainer"),h=t("./lineargradientcontainer"),f=t("./webkitgradientcontainer"),d=t("./utils").bind;r.prototype.findImages=function(t){var e=[];return t.reduce(function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t},[]).forEach(this.addImage(e,this.loadImage),this),e},r.prototype.findBackgroundImage=function(t,e){return e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this),t},r.prototype.addImage=function(t,e){return function(n){n.args.forEach(function(r){this.imageExists(t,r)||(t.splice(0,0,e.call(this,n)),o("Added image #"+t.length,"string"==typeof r?r.substring(0,100):r))},this)}},r.prototype.hasImageBackground=function(t){return"none"!==t.method},r.prototype.loadImage=function(t){if("url"===t.method){var e=t.args[0];return!this.isSVG(e)||this.support.svg||this.options.allowTaint?e.match(/data:image\/.*;base64,/i)?new i(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(e)||!0===this.options.allowTaint||this.isSVG(e)?new i(e,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new i(e,!0):this.options.proxy?new s(e,this.options.proxy):new a(e):new c(e)}return"linear-gradient"===t.method?new h(t):"gradient"===t.method?new f(t):"svg"===t.method?new u(t.args[0],this.support.svg):"IFRAME"===t.method?new l(t.args[0],this.isSameOrigin(t.args[0].src),this.options):new a(t)},r.prototype.isSVG=function(t){return"svg"===t.substring(t.length-3).toLowerCase()||c.prototype.isInline(t)},r.prototype.imageExists=function(t,e){return t.some(function(t){return t.src===e})},r.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin},r.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));return e.href=t,e.href=e.href,e.protocol+e.hostname+e.port},r.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout).catch(function(){return new a(t.src).promise.then(function(e){t.image=e})})},r.prototype.get=function(t){var e=null;return this.images.some(function(n){return(e=n).src===t})?e:null},r.prototype.fetch=function(t){return this.images=t.reduce(d(this.findBackgroundImage,this),this.findImages(t)),this.images.forEach(function(t,e){t.promise.then(function(){o("Succesfully loaded image #"+(e+1),t)},function(n){o("Failed loading image #"+(e+1),t,n)})}),this.ready=Promise.all(this.images.map(this.getPromise,this)),o("Finished searching images"),this},r.prototype.timeout=function(t,e){var n,r=Promise.race([t.promise,new Promise(function(r,i){n=setTimeout(function(){o("Timed out loading image",t),i(t)},e)})]).then(function(t){return clearTimeout(n),t});return r.catch(function(){clearTimeout(n)}),r},e.exports=r},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,n){function r(t){o.apply(this,arguments),this.type=o.TYPES.LINEAR;var e=r.REGEXP_DIRECTION.test(t.args[0])||!o.REGEXP_COLORSTOP.test(t.args[0]);e?t.args[0].split(/\s+/).reverse().forEach(function(t,e){switch(t){case"left":this.x0=0,this.x1=1;break;case"top":this.y0=0,this.y1=1;break;case"right":this.x0=1,this.x1=0;break;case"bottom":this.y0=1,this.y1=0;break;case"to":var n=this.y0,r=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=r,this.y1=n;break;case"center":break;default:var o=.01*parseFloat(t,10);if(isNaN(o))break;0===e?(this.y0=o,this.y1=1-this.y0):(this.x0=o,this.x1=1-this.x0)}},this):(this.y0=0,this.y1=1),this.colorStops=t.args.slice(e?1:0).map(function(t){var e=t.match(o.REGEXP_COLORSTOP),n=+e[2],r=0===n?"%":e[3];return{color:new i(e[1]),stop:"%"===r?n/100:null}}),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach(function(t,e){null===t.stop&&this.colorStops.slice(e).some(function(n,r){return null!==n.stop&&(t.stop=(n.stop-this.colorStops[e-1].stop)/(r+1)+this.colorStops[e-1].stop,!0)},this)},this)}var o=t("./gradientcontainer"),i=t("./color");r.prototype=Object.create(o.prototype),r.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i,e.exports=r},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,n){var r=function(){r.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-r.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};r.options={logging:!1},e.exports=r},{}],14:[function(t,e,n){function r(t,e){this.node=t,this.parent=e,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.colors={},this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null}function o(t){var e=t.options[t.selectedIndex||0];return e?e.text||"":""}function i(t){if(t&&"matrix"===t[1])return t[2].split(",").map(function(t){return parseFloat(t.trim())});if(t&&"matrix3d"===t[1]){var e=t[2].split(",").map(function(t){return parseFloat(t.trim())});return[e[0],e[1],e[4],e[5],e[12],e[13]]}}function a(t){return-1!==t.toString().indexOf("%")}function s(t){return t.replace("px","")}function l(t){return parseFloat(t)}var c=t("./color"),u=t("./utils"),h=u.getBounds,f=u.parseBackgrounds,d=u.offsetBounds;r.prototype.cloneTo=function(t){t.visible=this.visible,t.borders=this.borders,t.bounds=this.bounds,t.clip=this.clip,t.backgroundClip=this.backgroundClip,t.computedStyles=this.computedStyles,t.styles=this.styles,t.backgroundImages=this.backgroundImages,t.opacity=this.opacity},r.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},r.prototype.assignStack=function(t){this.stack=t,t.children.push(this)},r.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},r.prototype.css=function(t){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[t]||(this.styles[t]=this.computedStyles[t])},r.prototype.prefixedCss=function(t){var e=["webkit","moz","ms","o"],n=this.css(t);return void 0===n&&e.some(function(e){return void 0!==(n=this.css(e+t.substr(0,1).toUpperCase()+t.substr(1)))},this),void 0===n?null:n},r.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)},r.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e},r.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new c(this.css(t)))},r.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e},r.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal"}return t},r.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);return t?{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}:null},r.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=f(this.css("backgroundImage")))},r.prototype.cssList=function(t,e){var n=(this.css(t)||"").split(",");return n=n[e||0]||n[0]||"auto",n=n.trim().split(" "),1===n.length&&(n=[n[0],a(n[0])?"auto":n[0]]),n},r.prototype.parseBackgroundSize=function(t,e,n){var r,o,i=this.cssList("backgroundSize",n);if(a(i[0]))r=t.width*parseFloat(i[0])/100;else{if(/contain|cover/.test(i[0])){var s=t.width/t.height,l=e.width/e.height;return s<l^"contain"===i[0]?{width:t.height*l,height:t.height}:{width:t.width,height:t.width/l}}r=parseInt(i[0],10)}return o="auto"===i[0]&&"auto"===i[1]?e.height:"auto"===i[1]?r/e.width*e.height:a(i[1])?t.height*parseFloat(i[1])/100:parseInt(i[1],10),"auto"===i[0]&&(r=o/e.height*e.width),{width:r,height:o}},r.prototype.parseBackgroundPosition=function(t,e,n,r){var o,i,s=this.cssList("backgroundPosition",n);return o=a(s[0])?(t.width-(r||e).width)*(parseFloat(s[0])/100):parseInt(s[0],10),i="auto"===s[1]?o/e.width*e.height:a(s[1])?(t.height-(r||e).height)*parseFloat(s[1])/100:parseInt(s[1],10),"auto"===s[0]&&(o=i/e.height*e.width),{left:o,top:i}},r.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]},r.prototype.parseTextShadows=function(){var t=this.css("textShadow"),e=[];if(t&&"none"!==t)for(var n=t.match(this.TEXT_SHADOW_PROPERTY),r=0;n&&r<n.length;r++){var o=n[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new c(o[0]),offsetX:o[1]?parseFloat(o[1].replace("px","")):0,offsetY:o[2]?parseFloat(o[2].replace("px","")):0,blur:o[3]?o[3].replace("px",""):0})}return e},r.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),e=this.prefixedCss("transformOrigin").split(" ").map(s).map(l);e[0]+=t.left,e[1]+=t.top,this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData},r.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform"),e=t?i(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e||[1,0,0,1,0,0]}return this.transformMatrix},r.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?d(this.node):h(this.node))},r.prototype.hasTransform=function(){return"1,0,0,1,0,0"!==this.parseTransformMatrix().join(",")||this.parent&&this.parent.hasTransform()},r.prototype.getValue=function(){var t=this.node.value||"";return"SELECT"===this.node.tagName?t=o(this.node):"password"===this.node.type&&(t=Array(t.length+1).join("•")),0===t.length?this.node.placeholder||"":t},r.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/,r.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,r.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g,r.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/,e.exports=r},{"./color":3,"./utils":26}],15:[function(t,e,n){function r(t,e,n,r,o){M("Starting NodeParser"),this.renderer=e,this.options=o,this.range=null,this.support=n,this.renderQueue=[],this.stack=new G(!0,1,t.ownerDocument,null);var i=new $(t,null);if(o.background&&e.rectangle(0,0,e.width,e.height,new V(o.background)),t===t.ownerDocument.documentElement){var a=new $(i.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,a.color("backgroundColor"))}i.visibile=i.isElementVisible(),this.createPseudoHideStyles(t.ownerDocument),this.disableAnimations(t.ownerDocument),this.nodes=N([i].concat(this.getChildren(i)).filter(function(t){return t.visible=t.isElementVisible()}).map(this.getPseudoElements,this)),this.fontMetrics=new W,M("Fetched nodes, total:",this.nodes.length),M("Calculate overflow clips"),this.calculateOverflowClips(),M("Start fetching images"),this.images=r.fetch(this.nodes.filter(_)),this.ready=this.images.ready.then(Y(function(){return M("Images loaded, starting parsing"),M("Creating stacking contexts"),this.createStackingContexts(),M("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),M("Render queue created with "+this.renderQueue.length+" items"),new Promise(Y(function(t){o.async?"function"==typeof o.async?o.async.call(this,this.renderQueue,t):this.renderQueue.length>0?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,t)):t():(this.renderQueue.forEach(this.paint,this),t())},this))},this))}function o(t){return t.parent&&t.parent.clip.length}function i(t){return t.replace(/(\-[a-z])/g,function(t){return t.toUpperCase().replace("-","")})}function a(){}function s(t,e,n,r){return t.map(function(o,i){if(o.width>0){var a=e.left,s=e.top,l=e.width,c=e.height-t[2].width;switch(i){case 0:c=t[0].width,o.args=h({c1:[a,s],c2:[a+l,s],c3:[a+l-t[1].width,s+c],c4:[a+t[3].width,s+c]},r[0],r[1],n.topLeftOuter,n.topLeftInner,n.topRightOuter,n.topRightInner);break;case 1:a=e.left+e.width-t[1].width,l=t[1].width,o.args=h({c1:[a+l,s],c2:[a+l,s+c+t[2].width],c3:[a,s+c],c4:[a,s+t[0].width]},r[1],r[2],n.topRightOuter,n.topRightInner,n.bottomRightOuter,n.bottomRightInner);break;case 2:s=s+e.height-t[2].width,c=t[2].width,o.args=h({c1:[a+l,s+c],c2:[a,s+c],c3:[a+t[3].width,s],c4:[a+l-t[3].width,s]},r[2],r[3],n.bottomRightOuter,n.bottomRightInner,n.bottomLeftOuter,n.bottomLeftInner);break;case 3:l=t[3].width,o.args=h({c1:[a,s+c+t[2].width],c2:[a,s],c3:[a+l,s+t[0].width],c4:[a+l,s+c]},r[3],r[0],n.bottomLeftOuter,n.bottomLeftInner,n.topLeftOuter,n.topLeftInner)}}return o})}function l(t,e,n,r){var o=(Math.sqrt(2)-1)/3*4,i=n*o,a=r*o,s=t+n,l=e+r;return{topLeft:u({x:t,y:l},{x:t,y:l-a},{x:s-i,y:e},{x:s,y:e}),topRight:u({x:t,y:e},{x:t+i,y:e},{x:s,y:l-a},{x:s,y:l}),bottomRight:u({x:s,y:e},{x:s,y:e+a},{x:t+i,y:l},{x:t,y:l}),bottomLeft:u({x:s,y:l},{x:s-i,y:l},{x:t,y:e+a},{x:t,y:e})}}function c(t,e,n){var r=t.left,o=t.top,i=t.width,a=t.height,s=e[0][0]<i/2?e[0][0]:i/2,c=e[0][1]<a/2?e[0][1]:a/2,u=e[1][0]<i/2?e[1][0]:i/2,h=e[1][1]<a/2?e[1][1]:a/2,f=e[2][0]<i/2?e[2][0]:i/2,d=e[2][1]<a/2?e[2][1]:a/2,p=e[3][0]<i/2?e[3][0]:i/2,g=e[3][1]<a/2?e[3][1]:a/2,m=i-u,v=a-d,y=i-f,b=a-g;return{topLeftOuter:l(r,o,s,c).topLeft.subdivide(.5),topLeftInner:l(r+n[3].width,o+n[0].width,Math.max(0,s-n[3].width),Math.max(0,c-n[0].width)).topLeft.subdivide(.5),topRightOuter:l(r+m,o,u,h).topRight.subdivide(.5),topRightInner:l(r+Math.min(m,i+n[3].width),o+n[0].width,m>i+n[3].width?0:u-n[3].width,h-n[0].width).topRight.subdivide(.5),bottomRightOuter:l(r+y,o+v,f,d).bottomRight.subdivide(.5),bottomRightInner:l(r+Math.min(y,i-n[3].width),o+Math.min(v,a+n[0].width),Math.max(0,f-n[1].width),d-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:l(r,o+b,p,g).bottomLeft.subdivide(.5),bottomLeftInner:l(r+n[3].width,o+b,Math.max(0,p-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function u(t,e,n,r){var o=function(t,e,n){return{x:t.x+(e.x-t.x)*n,y:t.y+(e.y-t.y)*n}};return{start:t,startControl:e,endControl:n,end:r,subdivide:function(i){var a=o(t,e,i),s=o(e,n,i),l=o(n,r,i),c=o(a,s,i),h=o(s,l,i),f=o(c,h,i);return[u(t,a,c,f),u(f,h,l,r)]},curveTo:function(t){t.push(["bezierCurve",e.x,e.y,n.x,n.y,r.x,r.y])},curveToReversed:function(r){r.push(["bezierCurve",n.x,n.y,e.x,e.y,t.x,t.y])}}}function h(t,e,n,r,o,i,a){var s=[];return e[0]>0||e[1]>0?(s.push(["line",r[1].start.x,r[1].start.y]),r[1].curveTo(s)):s.push(["line",t.c1[0],t.c1[1]]),n[0]>0||n[1]>0?(s.push(["line",i[0].start.x,i[0].start.y]),i[0].curveTo(s),s.push(["line",a[0].end.x,a[0].end.y]),a[0].curveToReversed(s)):(s.push(["line",t.c2[0],t.c2[1]]),s.push(["line",t.c3[0],t.c3[1]])),e[0]>0||e[1]>0?(s.push(["line",o[1].end.x,o[1].end.y]),o[1].curveToReversed(s)):s.push(["line",t.c4[0],t.c4[1]]),s}function f(t,e,n,r,o,i,a){e[0]>0||e[1]>0?(t.push(["line",r[0].start.x,r[0].start.y]),r[0].curveTo(t),r[1].curveTo(t)):t.push(["line",i,a]),(n[0]>0||n[1]>0)&&t.push(["line",o[0].start.x,o[0].start.y])}function d(t){return t.cssInt("zIndex")<0}function p(t){return t.cssInt("zIndex")>0}function g(t){return 0===t.cssInt("zIndex")}function m(t){return-1!==["inline","inline-block","inline-table"].indexOf(t.css("display"))}function v(t){return t instanceof G}function y(t){return t.node.data.trim().length>0}function b(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))}function w(t){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(e){var n=t.css("border"+e+"Radius"),r=n.split(" ");return r.length<=1&&(r[1]=r[0]),r.map(j)})}function x(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function S(t){return"auto"!==(-1!==["absolute","relative","fixed"].indexOf(t.css("position"))?t.css("zIndex"):"auto")}function k(t){return"static"!==t.css("position")}function C(t){return"none"!==t.css("float")}function O(t){return-1!==["inline-block","inline-table"].indexOf(t.css("display"))}function T(t){var e=this;return function(){return!t.apply(e,arguments)}}function _(t){return t.node.nodeType===Node.ELEMENT_NODE}function A(t){return!0===t.isPseudoElement}function P(t){return t.node.nodeType===Node.TEXT_NODE}function E(t){return function(e,n){return e.cssInt("zIndex")+t.indexOf(e)/t.length-(n.cssInt("zIndex")+t.indexOf(n)/t.length)}}function I(t){return t.getOpacity()<1}function j(t){return parseInt(t,10)}function R(t){return t.width}function F(t){return t.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)}function N(t){return[].concat.apply([],t)}function q(t){var e=t.substr(0,1);return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t}function B(t){for(var e,n=[],r=0,o=!1;t.length;)D(t[r])===o?(e=t.splice(0,r),e.length&&n.push(z.ucs2.encode(e)),o=!o,r=0):r++,r>=t.length&&(e=t.splice(0,r),e.length&&n.push(z.ucs2.encode(e)));return n}function D(t){return-1!==[32,13,10,9,45].indexOf(t)}function L(t){return/[^\u0000-\u00ff]/.test(t)}var M=t("./log"),z=t("punycode"),$=t("./nodecontainer"),H=t("./textcontainer"),U=t("./pseudoelementcontainer"),W=t("./fontmetrics"),V=t("./color"),G=t("./stackingcontext"),X=t("./utils"),Y=X.bind,K=X.getBounds,J=X.parseBackgrounds,Q=X.offsetBounds;r.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(t){if(_(t)){A(t)&&t.appendToDOM(),t.borders=this.parseBorders(t);var e="hidden"===t.css("overflow")?[t.borders.clip]:[],n=t.parseClip();n&&-1!==["absolute","fixed"].indexOf(t.css("position"))&&e.push([["rect",t.bounds.left+n.left,t.bounds.top+n.top,n.right-n.left,n.bottom-n.top]]),t.clip=o(t)?t.parent.clip.concat(e):e,t.backgroundClip="hidden"!==t.css("overflow")?t.clip.concat([t.borders.clip]):t.clip,A(t)&&t.cleanDOM()}else P(t)&&(t.clip=o(t)?t.parent.clip:[]);A(t)||(t.bounds=null)},this)},r.prototype.asyncRenderer=function(t,e,n){n=n||Date.now(),this.paint(t[this.renderIndex++]),t.length===this.renderIndex?e():n+20>Date.now()?this.asyncRenderer(t,e,n):setTimeout(Y(function(){this.asyncRenderer(t,e)},this),0)},r.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+U.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+U.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},r.prototype.disableAnimations=function(t){this.createStyles(t,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},r.prototype.createStyles=function(t,e){var n=t.createElement("style");n.innerHTML=e,t.body.appendChild(n)},r.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(t,":before"),r=this.getPseudoElement(t,":after");n&&e.push(n),r&&e.push(r)}return N(e)},r.prototype.getPseudoElement=function(t,e){var n=t.computedStyle(e);if(!n||!n.content||"none"===n.content||"-moz-alt-content"===n.content||"none"===n.display)return null;for(var r=q(n.content),o="url"===r.substr(0,3),a=document.createElement(o?"img":"html2canvaspseudoelement"),s=new U(a,t,e),l=n.length-1;l>=0;l--){var c=i(n.item(l));a.style[c]=n[c]}if(a.className=U.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+U.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,o)return a.src=J(r)[0].args[0],[s];var u=document.createTextNode(r);return a.appendChild(u),[s,new H(u,s)]},r.prototype.getChildren=function(t){return N([].filter.call(t.node.childNodes,x).map(function(e){var n=[e.nodeType===Node.TEXT_NODE?new H(e,t):new $(e,t)].filter(F);return e.nodeType===Node.ELEMENT_NODE&&n.length&&"TEXTAREA"!==e.tagName?n[0].isElementVisible()?n.concat(this.getChildren(n[0])):[]:n},this))},r.prototype.newStackingContext=function(t,e){var n=new G(e,t.getOpacity(),t.node,t.parent);t.cloneTo(n),(e?n.getParentStack(this):n.parent.stack).contexts.push(n),t.stack=n},r.prototype.createStackingContexts=function(){this.nodes.forEach(function(t){_(t)&&(this.isRootElement(t)||I(t)||S(t)||this.isBodyWithTransparentRoot(t)||t.hasTransform())?this.newStackingContext(t,!0):_(t)&&(k(t)&&g(t)||O(t)||C(t))?this.newStackingContext(t,!1):t.assignStack(t.parent.stack)},this)},r.prototype.isBodyWithTransparentRoot=function(t){return"BODY"===t.node.nodeName&&t.parent.color("backgroundColor").isTransparent()},r.prototype.isRootElement=function(t){return null===t.parent},r.prototype.sortStackingContexts=function(t){t.contexts.sort(E(t.contexts.slice(0))),t.contexts.forEach(this.sortStackingContexts,this)},r.prototype.parseTextBounds=function(t){return function(e,n,r){if("none"!==t.parent.css("textDecoration").substr(0,4)||0!==e.trim().length){if(this.support.rangeBounds&&!t.parent.hasTransform()){var o=r.slice(0,n).join("").length;return this.getRangeBounds(t.node,o,e.length)}if(t.node&&"string"==typeof t.node.data){var i=t.node.splitText(e.length),a=this.getWrapperBounds(t.node,t.parent.hasTransform());return t.node=i,a}}else this.support.rangeBounds&&!t.parent.hasTransform()||(t.node=t.node.splitText(e.length));return{}}},r.prototype.getWrapperBounds=function(t,e){var n=t.ownerDocument.createElement("html2canvaswrapper"),r=t.parentNode,o=t.cloneNode(!0);n.appendChild(t.cloneNode(!0)),r.replaceChild(n,t);var i=e?Q(n):K(n);return r.replaceChild(o,n),i},r.prototype.getRangeBounds=function(t,e,n){var r=this.range||(this.range=t.ownerDocument.createRange());return r.setStart(t,e),r.setEnd(t,e+n),r.getBoundingClientRect()},r.prototype.parse=function(t){var e=t.contexts.filter(d),n=t.children.filter(_),r=n.filter(T(C)),o=r.filter(T(k)).filter(T(m)),i=n.filter(T(k)).filter(C),s=r.filter(T(k)).filter(m),l=t.contexts.concat(r.filter(k)).filter(g),c=t.children.filter(P).filter(y),u=t.contexts.filter(p);e.concat(o).concat(i).concat(s).concat(l).concat(c).concat(u).forEach(function(t){this.renderQueue.push(t),v(t)&&(this.parse(t),this.renderQueue.push(new a))},this)},r.prototype.paint=function(t){try{t instanceof a?this.renderer.ctx.restore():P(t)?(A(t.parent)&&t.parent.appendToDOM(),this.paintText(t),A(t.parent)&&t.parent.cleanDOM()):this.paintNode(t)}catch(t){if(M(t),this.options.strict)throw t}},r.prototype.paintNode=function(t){v(t)&&(this.renderer.setOpacity(t.opacity),this.renderer.ctx.save(),t.hasTransform()&&this.renderer.setTransform(t.parseTransform())),"INPUT"===t.node.nodeName&&"checkbox"===t.node.type?this.paintCheckbox(t):"INPUT"===t.node.nodeName&&"radio"===t.node.type?this.paintRadio(t):this.paintElement(t)},r.prototype.paintElement=function(t){var e=t.parseBounds();this.renderer.clip(t.backgroundClip,function(){this.renderer.renderBackground(t,e,t.borders.borders.map(R))},this),this.renderer.clip(t.clip,function(){this.renderer.renderBorders(t.borders.borders)},this),this.renderer.clip(t.backgroundClip,function(){switch(t.node.nodeName){case"svg":case"IFRAME":var n=this.images.get(t.node);n?this.renderer.renderImage(t,e,t.borders,n):M("Error loading <"+t.node.nodeName+">",t.node);break;case"IMG":var r=this.images.get(t.node.src);r?this.renderer.renderImage(t,e,t.borders,r):M("Error loading <img>",t.node.src);break;case"CANVAS":this.renderer.renderImage(t,e,t.borders,{image:t.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(t)}},this)},r.prototype.paintCheckbox=function(t){var e=t.parseBounds(),n=Math.min(e.width,e.height),r={width:n-1,height:n-1,top:e.top,left:e.left},o=[3,3],i=[o,o,o,o],a=[1,1,1,1].map(function(t){return{color:new V("#A5A5A5"),width:t}}),l=c(r,i,a);this.renderer.clip(t.backgroundClip,function(){this.renderer.rectangle(r.left+1,r.top+1,r.width-2,r.height-2,new V("#DEDEDE")),this.renderer.renderBorders(s(a,r,l,i)),t.node.checked&&(this.renderer.font(new V("#424242"),"normal","normal","bold",n-3+"px","arial"),this.renderer.text("✔",r.left+n/6,r.top+n-1))},this)},r.prototype.paintRadio=function(t){var e=t.parseBounds(),n=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,function(){this.renderer.circleStroke(e.left+1,e.top+1,n,new V("#DEDEDE"),1,new V("#A5A5A5")),t.node.checked&&this.renderer.circle(Math.ceil(e.left+n/4)+1,Math.ceil(e.top+n/4)+1,Math.floor(n/2),new V("#424242"))},this)},r.prototype.paintFormValue=function(t){var e=t.getValue();if(e.length>0){var n=t.node.ownerDocument,r=n.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach(function(e){try{r.style[e]=t.css(e)}catch(t){M("html2canvas: Parse: Exception caught in renderFormValue: "+t.message)}});var o=t.parseBounds();r.style.position="fixed",r.style.left=o.left+"px",r.style.top=o.top+"px",r.textContent=e,n.body.appendChild(r),this.paintText(new H(r.firstChild,t)),n.body.removeChild(r)}},r.prototype.paintText=function(t){t.applyTextTransform();var e=z.ucs2.decode(t.node.data),n=this.options.letterRendering&&!b(t)||L(t.node.data)?e.map(function(t){return z.ucs2.encode([t])}):B(e),r=t.parent.fontWeight(),o=t.parent.css("fontSize"),i=t.parent.css("fontFamily"),a=t.parent.parseTextShadows();this.renderer.font(t.parent.color("color"),t.parent.css("fontStyle"),t.parent.css("fontVariant"),r,o,i),a.length?this.renderer.fontShadow(a[0].color,a[0].offsetX,a[0].offsetY,a[0].blur):this.renderer.clearShadow(),this.renderer.clip(t.parent.clip,function(){n.map(this.parseTextBounds(t),this).forEach(function(e,r){e&&(this.renderer.text(n[r],e.left,e.bottom),this.renderTextDecoration(t.parent,e,this.fontMetrics.getMetrics(i,o)))},this)},this)},r.prototype.renderTextDecoration=function(t,e,n){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+n.baseline+n.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+n.middle+n.lineWidth),e.width,1,t.color("color"))}};var Z={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};r.prototype.parseBorders=function(t){var e=t.parseBounds(),n=w(t),r=["Top","Right","Bottom","Left"].map(function(e,n){var r=t.css("border"+e+"Style"),o=t.color("border"+e+"Color");"inset"===r&&o.isBlack()&&(o=new V([255,255,255,o.a]));var i=Z[r]?Z[r][n]:null;return{width:t.cssInt("border"+e+"Width"),color:i?o[i[0]](i[1]):o,args:null}}),o=c(e,n,r);return{clip:this.parseBackgroundClip(t,o,r,n,e),borders:s(r,e,o,n)}},r.prototype.parseBackgroundClip=function(t,e,n,r,o){var i=t.css("backgroundClip"),a=[];switch(i){case"content-box":case"padding-box":f(a,r[0],r[1],e.topLeftInner,e.topRightInner,o.left+n[3].width,o.top+n[0].width),f(a,r[1],r[2],e.topRightInner,e.bottomRightInner,o.left+o.width-n[1].width,o.top+n[0].width),f(a,r[2],r[3],e.bottomRightInner,e.bottomLeftInner,o.left+o.width-n[1].width,o.top+o.height-n[2].width),f(a,r[3],r[0],e.bottomLeftInner,e.topLeftInner,o.left+n[3].width,o.top+o.height-n[2].width);break;default:f(a,r[0],r[1],e.topLeftOuter,e.topRightOuter,o.left,o.top),f(a,r[1],r[2],e.topRightOuter,e.bottomRightOuter,o.left+o.width,o.top),f(a,r[2],r[3],e.bottomRightOuter,e.bottomLeftOuter,o.left+o.width,o.top+o.height),f(a,r[3],r[0],e.bottomLeftOuter,e.topLeftOuter,o.left,o.top+o.height)}return a},e.exports=r},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],
|
||
16:[function(t,e,n){function r(t,e,n){var r="withCredentials"in new XMLHttpRequest;if(!e)return Promise.reject("No proxy configured");var o=a(r),l=s(e,t,o);return r?u(l):i(n,l,o).then(function(t){return p(t.content)})}function o(t,e,n){var r="crossOrigin"in new Image,o=a(r),l=s(e,t,o);return r?Promise.resolve(l):i(n,l,o).then(function(t){return"data:"+t.type+";base64,"+t.content})}function i(t,e,n){return new Promise(function(r,o){var i=t.createElement("script"),a=function(){delete window.html2canvas.proxy[n],t.body.removeChild(i)};window.html2canvas.proxy[n]=function(t){a(),r(t)},i.src=e,i.onerror=function(t){a(),o(t)},t.body.appendChild(i)})}function a(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++g+"_"+Math.round(1e5*Math.random())}function s(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function l(t){return function(e){var n,r=new DOMParser;try{n=r.parseFromString(e,"text/html")}catch(t){f("DOMParser not supported, falling back to createHTMLDocument"),n=document.implementation.createHTMLDocument("");try{n.open(),n.write(e),n.close()}catch(t){f("createHTMLDocument write not supported, falling back to document.body.innerHTML"),n.body.innerHTML=e}}var o=n.querySelector("base");if(!o||!o.href.host){var i=n.createElement("base");i.href=t,n.head.insertBefore(i,n.head.firstChild)}return n}}function c(t,e,n,o,i,a){return new r(t,e,window.document).then(l(t)).then(function(t){return d(t,n,o,i,a,0,0)})}var u=t("./xhr"),h=t("./utils"),f=t("./log"),d=t("./clone"),p=h.decode64,g=0;n.Proxy=r,n.ProxyURL=o,n.loadUrlDocument=c},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,n){function r(t,e){var n=document.createElement("a");n.href=t,t=n.href,this.src=t,this.image=new Image;var r=this;this.promise=new Promise(function(n,i){r.image.crossOrigin="Anonymous",r.image.onload=n,r.image.onerror=i,new o(t,e,document).then(function(t){r.image.src=t}).catch(i)})}var o=t("./proxy").ProxyURL;e.exports=r},{"./proxy":16}],18:[function(t,e,n){function r(t,e,n){o.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===n}var o=t("./nodecontainer");r.prototype.cloneTo=function(t){r.prototype.cloneTo.call(this,t),t.isPseudoElement=!0,t.before=this.before},r.prototype=Object.create(o.prototype),r.prototype.appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",e.exports=r},{"./nodecontainer":14}],19:[function(t,e,n){function r(t,e,n,r,o){this.width=t,this.height=e,this.images=n,this.options=r,this.document=o}var o=t("./log");r.prototype.renderImage=function(t,e,n,r){var o=t.cssInt("paddingLeft"),i=t.cssInt("paddingTop"),a=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),l=n.borders,c=e.width-(l[1].width+l[3].width+o+a),u=e.height-(l[0].width+l[2].width+i+s);this.drawImage(r,0,0,r.image.width||c,r.image.height||u,e.left+o+l[3].width,e.top+i+l[0].width,c,u)},r.prototype.renderBackground=function(t,e,n){e.height>0&&e.width>0&&(this.renderBackgroundColor(t,e),this.renderBackgroundImage(t,e,n))},r.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");n.isTransparent()||this.rectangle(e.left,e.top,e.width,e.height,n)},r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)},r.prototype.renderBorder=function(t){t.color.isTransparent()||null===t.args||this.drawShape(t.args,t.color)},r.prototype.renderBackgroundImage=function(t,e,n){t.parseBackgroundImages().reverse().forEach(function(r,i,a){switch(r.method){case"url":var s=this.images.get(r.args[0]);s?this.renderBackgroundRepeating(t,e,s,a.length-(i+1),n):o("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":var l=this.images.get(r.value);l?this.renderBackgroundGradient(l,e,n):o("Error loading background-image",r.args[0]);break;case"none":break;default:o("Unknown background-image type",r.args[0])}},this)},r.prototype.renderBackgroundRepeating=function(t,e,n,r,o){var i=t.parseBackgroundSize(e,n.image,r),a=t.parseBackgroundPosition(e,n.image,r,i);switch(t.parseBackgroundRepeat(r)){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,a,i,e,e.left+o[3],e.top+a.top+o[0],99999,i.height,o);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,a,i,e,e.left+a.left+o[3],e.top+o[0],i.width,99999,o);break;case"no-repeat":this.backgroundRepeatShape(n,a,i,e,e.left+a.left+o[3],e.top+a.top+o[0],i.width,i.height,o);break;default:this.renderBackgroundRepeat(n,a,i,{top:e.top,left:e.left},o[3],o[0])}},e.exports=r},{"./log":13}],20:[function(t,e,n){function r(t,e){i.apply(this,arguments),this.canvas=this.options.canvas||this.document.createElement("canvas"),this.options.canvas||(this.canvas.width=t,this.canvas.height=e),this.ctx=this.canvas.getContext("2d"),this.taintCtx=this.document.createElement("canvas").getContext("2d"),this.ctx.textBaseline="bottom",this.variables={},s("Initialized CanvasRenderer with size",t,"x",e)}function o(t){return t.length>0}var i=t("../renderer"),a=t("../lineargradientcontainer"),s=t("../log");r.prototype=Object.create(i.prototype),r.prototype.setFillStyle=function(t){return this.ctx.fillStyle="object"==typeof t&&t.isColor?t.toString():t,this.ctx},r.prototype.rectangle=function(t,e,n,r,o){this.setFillStyle(o).fillRect(t,e,n,r)},r.prototype.circle=function(t,e,n,r){this.setFillStyle(r),this.ctx.beginPath(),this.ctx.arc(t+n/2,e+n/2,n/2,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill()},r.prototype.circleStroke=function(t,e,n,r,o,i){this.circle(t,e,n,r),this.ctx.strokeStyle=i.toString(),this.ctx.stroke()},r.prototype.drawShape=function(t,e){this.shape(t),this.setFillStyle(e).fill()},r.prototype.taints=function(t){if(null===t.tainted){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1),t.tainted=!1}catch(e){this.taintCtx=document.createElement("canvas").getContext("2d"),t.tainted=!0}}return t.tainted},r.prototype.drawImage=function(t,e,n,r,o,i,a,s,l){this.taints(t)&&!this.options.allowTaint||this.ctx.drawImage(t.image,e,n,r,o,i,a,s,l)},r.prototype.clip=function(t,e,n){this.ctx.save(),t.filter(o).forEach(function(t){this.shape(t).clip()},this),e.call(n),this.ctx.restore()},r.prototype.shape=function(t){return this.ctx.beginPath(),t.forEach(function(t,e){"rect"===t[0]?this.ctx.rect.apply(this.ctx,t.slice(1)):this.ctx[0===e?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))},this),this.ctx.closePath(),this.ctx},r.prototype.font=function(t,e,n,r,o,i){this.setFillStyle(t).font=[e,n,r,o,i].join(" ").split(",")[0]},r.prototype.fontShadow=function(t,e,n,r){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",n).setVariable("shadowBlur",r)},r.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},r.prototype.setOpacity=function(t){this.ctx.globalAlpha=t},r.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]),this.ctx.transform.apply(this.ctx,t.matrix),this.ctx.translate(-t.origin[0],-t.origin[1])},r.prototype.setVariable=function(t,e){return this.variables[t]!==e&&(this.variables[t]=this.ctx[t]=e),this},r.prototype.text=function(t,e,n){this.ctx.fillText(t,e,n)},r.prototype.backgroundRepeatShape=function(t,e,n,r,o,i,a,s,l){var c=[["line",Math.round(o),Math.round(i)],["line",Math.round(o+a),Math.round(i)],["line",Math.round(o+a),Math.round(s+i)],["line",Math.round(o),Math.round(s+i)]];this.clip([c],function(){this.renderBackgroundRepeat(t,e,n,r,l[3],l[0])},this)},r.prototype.renderBackgroundRepeat=function(t,e,n,r,o,i){var a=Math.round(r.left+e.left+o),s=Math.round(r.top+e.top+i);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,n),"repeat")),this.ctx.translate(a,s),this.ctx.fill(),this.ctx.translate(-a,-s)},r.prototype.renderBackgroundGradient=function(t,e){if(t instanceof a){var n=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach(function(t){n.addColorStop(t.stop,t.color.toString())}),this.rectangle(e.left,e.top,e.width,e.height,n)}},r.prototype.resizeImage=function(t,e){var n=t.image;if(n.width===e.width&&n.height===e.height)return n;var r,o=document.createElement("canvas");return o.width=e.width,o.height=e.height,r=o.getContext("2d"),r.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height),o},e.exports=r},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,n){function r(t,e,n,r){o.call(this,n,r),this.ownStacking=t,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*e}var o=t("./nodecontainer");r.prototype=Object.create(o.prototype),r.prototype.getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack},e.exports=r},{"./nodecontainer":14}],22:[function(t,e,n){function r(t){this.rangeBounds=this.testRangeBounds(t),this.cors=this.testCORS(),this.svg=this.testSVG()}r.prototype.testRangeBounds=function(t){var e,n,r,o,i=!1;return t.createRange&&(e=t.createRange(),e.getBoundingClientRect&&(n=t.createElement("boundtest"),n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n),r=e.getBoundingClientRect(),o=r.height,123===o&&(i=!0),t.body.removeChild(n))),i},r.prototype.testCORS=function(){return void 0!==(new Image).crossOrigin},r.prototype.testSVG=function(){var t=new Image,e=document.createElement("canvas"),n=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),e.toDataURL()}catch(t){return!1}return!0},e.exports=r},{}],23:[function(t,e,n){function r(t){this.src=t,this.image=null;var e=this;this.promise=this.hasFabric().then(function(){return e.isInline(t)?Promise.resolve(e.inlineFormatting(t)):o(t)}).then(function(t){return new Promise(function(n){window.html2canvas.svg.fabric.loadSVGFromString(t,e.createCanvas.call(e,n))})})}var o=t("./xhr"),i=t("./utils").decode64;r.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},r.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)},r.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")},r.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)},r.prototype.createCanvas=function(t){var e=this;return function(n,r){var o=new window.html2canvas.svg.fabric.StaticCanvas("c");e.image=o.lowerCanvasEl,o.setWidth(r.width).setHeight(r.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(n,r)).renderAll(),t(o.lowerCanvasEl)}},r.prototype.decode64=function(t){return"function"==typeof window.atob?window.atob(t):i(t)},e.exports=r},{"./utils":26,"./xhr":28}],24:[function(t,e,n){function r(t,e){this.src=t,this.image=null;var n=this;this.promise=e?new Promise(function(e,r){n.image=new Image,n.image.onload=e,n.image.onerror=r,n.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(t),!0===n.image.complete&&e(n.image)}):this.hasFabric().then(function(){return new Promise(function(e){window.html2canvas.svg.fabric.parseSVGDocument(t,n.createCanvas.call(n,e))})})}var o=t("./svgcontainer");r.prototype=Object.create(o.prototype),e.exports=r},{"./svgcontainer":23}],25:[function(t,e,n){function r(t,e){i.call(this,t,e)}function o(t,e,n){if(t.length>0)return e+n.toUpperCase()}var i=t("./nodecontainer");r.prototype=Object.create(i.prototype),r.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},r.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,o);case"uppercase":return e.toUpperCase();default:return e}},e.exports=r},{"./nodecontainer":14}],26:[function(t,e,n){n.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},n.bind=function(t,e){return function(){return t.apply(e,arguments)}},n.decode64=function(t){var e,n,r,o,i,a,s,l,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=t.length,h="";for(e=0;e<u;e+=4)n=c.indexOf(t[e]),r=c.indexOf(t[e+1]),o=c.indexOf(t[e+2]),i=c.indexOf(t[e+3]),a=n<<2|r>>4,s=(15&r)<<4|o>>2,l=(3&o)<<6|i,h+=64===o?String.fromCharCode(a):64===i||-1===i?String.fromCharCode(a,s):String.fromCharCode(a,s,l);return h},n.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect(),n=null==t.offsetWidth?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+n,left:e.left,width:n,height:null==t.offsetHeight?e.height:t.offsetHeight}}return{}},n.offsetBounds=function(t){var e=t.offsetParent?n.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}},n.parseBackgrounds=function(t){var e,n,r,o,i,a,s,l=[],c=0,u=0,h=function(){e&&('"'===n.substr(0,1)&&(n=n.substr(1,n.length-2)),n&&s.push(n),"-"===e.substr(0,1)&&(o=e.indexOf("-",1)+1)>0&&(r=e.substr(0,o),e=e.substr(o)),l.push({prefix:r,method:e.toLowerCase(),value:i,args:s,image:null})),s=[],e=r=n=i=""};return s=[],e=r=n=i="",t.split("").forEach(function(t){if(!(0===c&&" \r\n\t".indexOf(t)>-1)){switch(t){case'"':a?a===t&&(a=null):a=t;break;case"(":if(a)break;if(0===c)return c=1,void(i+=t);u++;break;case")":if(a)break;if(1===c){if(0===u)return c=0,i+=t,void h();u--}break;case",":if(a)break;if(0===c)return void h();if(1===c&&0===u&&!e.match(/^url$/i))return s.push(n),n="",void(i+=t)}i+=t,0===c?e+=t:n+=t}}),h(),l}},{}],27:[function(t,e,n){function r(t){o.apply(this,arguments),this.type="linear"===t.args[0]?o.TYPES.LINEAR:o.TYPES.RADIAL}var o=t("./gradientcontainer");r.prototype=Object.create(o.prototype),e.exports=r},{"./gradientcontainer":9}],28:[function(t,e,n){function r(t){return new Promise(function(e,n){var r=new XMLHttpRequest;r.open("GET",t),r.onload=function(){200===r.status?e(r.responseText):n(new Error(r.statusText))},r.onerror=function(){n(new Error("Network Error"))},r.send()})}e.exports=r},{}]},{},[4])(4)}),function(t){var e;e=function(){function e(t){var e,n,r,o,i,a,s,l,c,u,h,f,d,p,g;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],s=t=0;t<4;s=++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),o=this.readUInt16()||100,a.delay=1e3*i/o,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,s=d=0;0<=e?d<e:d>e;s=0<=e?++d:--d)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((h=r-this.transparency.indexed.length)>0)for(s=p=0;0<=h?p<h:p>h;s=0<=h?++p:--p)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":f=this.read(e),l=f.indexOf(0),c=String.fromCharCode.apply(String,f.slice(0,l)),this.text[c]=String.fromCharCode.apply(String,f.slice(l+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(g=this.colorType)||6===g,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}var n,r,o,i,a,s;e.load=function(t,n,r){var o;return"function"==typeof n&&(r=n),o=new XMLHttpRequest,o.open("GET",t,!0),o.responseType="arraybuffer",o.onload=function(){var t,i;return t=new Uint8Array(o.response||o.mozResponseArrayBuffer),i=new e(t),"function"==typeof(null!=n?n.getContext:void 0)&&i.render(n),"function"==typeof r?r(i):void 0},o.send(null)},0,r=1,o=2,n=0,1,e.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},e.prototype.readUInt32=function(){var t,e,n,r;return t=this.data[this.pos++]<<24,e=this.data[this.pos++]<<16,n=this.data[this.pos++]<<8,r=this.data[this.pos++],t|e|n|r},e.prototype.readUInt16=function(){var t,e;return t=this.data[this.pos++]<<8,e=this.data[this.pos++],t|e},e.prototype.decodePixels=function(t){var e,n,r,o,i,a,s,c,u,h,f,d,p,g,m,v,y,b,w,x,S,k,C;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);for(t=new l(t),t=t.getBytes(),d=this.pixelBitlength/8,v=d*this.width,p=new Uint8Array(v*this.height),a=t.length,m=0,g=0,n=0;g<a;){switch(t[g++]){case 0:for(o=w=0;w<v;o=w+=1)p[n++]=t[g++];break;case 1:for(o=x=0;x<v;o=x+=1)e=t[g++],i=o<d?0:p[n-d],p[n++]=(e+i)%256;break;case 2:for(o=S=0;S<v;o=S+=1)e=t[g++],r=(o-o%d)/d,y=m&&p[(m-1)*v+r*d+o%d],p[n++]=(y+e)%256;break;case 3:for(o=k=0;k<v;o=k+=1)e=t[g++],r=(o-o%d)/d,i=o<d?0:p[n-d],y=m&&p[(m-1)*v+r*d+o%d],p[n++]=(e+Math.floor((i+y)/2))%256;break;case 4:for(o=C=0;C<v;o=C+=1)e=t[g++],r=(o-o%d)/d,i=o<d?0:p[n-d],0===m?y=b=0:(y=p[(m-1)*v+r*d+o%d],b=r&&p[(m-1)*v+(r-1)*d+o%d]),s=i+y-b,c=Math.abs(s-i),h=Math.abs(s-y),f=Math.abs(s-b),u=c<=h&&c<=f?i:h<=f?y:b,p[n++]=(e+u)%256;break;default:throw new Error("Invalid filter algorithm: "+t[g-1])}m++}return p},e.prototype.decodePalette=function(){var t,e,n,r,o,i,a,s,l;for(n=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+n.length),r=0,n.length,t=0,e=a=0,s=n.length;a<s;e=a+=3)o[r++]=n[e],o[r++]=n[e+1],o[r++]=n[e+2],o[r++]=null!=(l=i[t++])?l:255;return o},e.prototype.copyToImageData=function(t,e){var n,r,o,i,a,s,l,c,u,h,f;if(r=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),o=t.data||t,c=o.length,a=u||e,i=s=0,1===r)for(;i<c;)l=u?4*e[i/4]:s,h=a[l++],o[i++]=h,o[i++]=h,o[i++]=h,o[i++]=n?a[l++]:255,s=l;else for(;i<c;)l=u?4*e[i/4]:s,o[i++]=a[l++],o[i++]=a[l++],o[i++]=a[l++],o[i++]=n?a[l++]:255,s=l},e.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{a=t.document.createElement("canvas"),s=a.getContext("2d")}catch(t){return-1}return i=function(t){var e;return s.width=t.width,s.height=t.height,s.clearRect(0,0,t.width,t.height),s.putImageData(t,0,0),e=new Image,e.src=a.toDataURL(),e},e.prototype.decodeFrames=function(t){var e,n,r,o,a,s,l,c;if(this.animation){for(l=this.animation.frames,c=[],n=a=0,s=l.length;a<s;n=++a)e=l[n],r=t.createImageData(e.width,e.height),o=this.decodePixels(new Uint8Array(e.data)),this.copyToImageData(r,o),e.imageData=r,c.push(e.image=i(r));return c}},e.prototype.renderFrame=function(t,e){var i,a,s;return a=this.animation.frames,i=a[e],s=a[e-1],0===e&&t.clearRect(0,0,this.width,this.height),(null!=s?s.disposeOp:void 0)===r?t.clearRect(s.xOffset,s.yOffset,s.width,s.height):(null!=s?s.disposeOp:void 0)===o&&t.putImageData(s.imageData,s.xOffset,s.yOffset),i.blendOp===n&&t.clearRect(i.xOffset,i.yOffset,i.width,i.height),t.drawImage(i.image,i.xOffset,i.yOffset)},e.prototype.animate=function(t){var e,n,r,o,i,a,s=this;return n=0,a=this.animation,o=a.numFrames,r=a.frames,i=a.numPlays,(e=function(){var a,l;if(a=n++%o,l=r[a],s.renderFrame(t,a),o>1&&n/o<i)return s.animation._timeout=setTimeout(e,l.delay)})()},e.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},e.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},e}(),t.PNG=e}("undefined"!=typeof window&&window||void 0);var s=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,n=e?e.byteLength:0;if(t<n)return e;for(var r=512;r<t;)r<<=1;for(var o=new Uint8Array(r),i=0;i<n;++i)o[i]=e[i];return this.buffer=o},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var n=e+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;n>r&&(n=r)}else{for(;!this.eof;)this.readBlock();var n=this.bufferLength}return this.pos=n,this.buffer.subarray(e,n)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,n){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,n)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),l=function(){function t(t){throw new Error(t)}function e(e){var n=0,r=e[n++],o=e[n++];-1!=r&&-1!=o||t("Invalid header in flate stream"),8!=(15&r)&&t("Unknown compression method in flate stream"),((r<<8)+o)%31!=0&&t("Bad FCHECK in flate stream"),32&o&&t("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=n,this.codeSize=0,this.codeBuf=0,s.call(this)}if("undefined"!=typeof Uint32Array){var n=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),o=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),i=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],a=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return e.prototype=Object.create(s.prototype),e.prototype.getBits=function(e){for(var n,r=this.codeSize,o=this.codeBuf,i=this.bytes,a=this.bytesPos;r<e;)void 0===(n=i[a++])&&t("Bad encoding in flate stream"),o|=n<<r,r+=8;return n=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=r-=e,this.bytesPos=a,n},e.prototype.getCode=function(e){for(var n=e[0],r=e[1],o=this.codeSize,i=this.codeBuf,a=this.bytes,s=this.bytesPos;o<r;){var l;void 0===(l=a[s++])&&t("Bad encoding in flate stream"),i|=l<<o,o+=8}var c=n[i&(1<<r)-1],u=c>>16,h=65535&c;return(0==o||o<u||0==u)&&t("Bad encoding in flate stream"),this.codeBuf=i>>u,this.codeSize=o-u,this.bytesPos=s,h},e.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;r<e;++r)t[r]>n&&(n=t[r]);for(var o=1<<n,i=new Uint32Array(o),a=1,s=0,l=2;a<=n;++a,s<<=1,l<<=1)for(var c=0;c<e;++c)if(t[c]==a){for(var u=0,h=s,r=0;r<a;++r)u=u<<1|1&h,h>>=1;for(var r=u;r<o;r+=l)i[r]=a<<16|c;++s}return[i,n]},e.prototype.readBlock=function(){function e(t,e,n,r,o){for(var i=t.getBits(n)+r;i-- >0;)e[k++]=o}var s=this.getBits(3);if(1&s&&(this.eof=!0),0==(s>>=1)){var l,c=this.bytes,u=this.bytesPos;void 0===(l=c[u++])&&t("Bad block header in flate stream");var h=l;void 0===(l=c[u++])&&t("Bad block header in flate stream"),h|=l<<8,void 0===(l=c[u++])&&t("Bad block header in flate stream");var f=l;void 0===(l=c[u++])&&t("Bad block header in flate stream"),f|=l<<8,f!=(65535&~h)&&t("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var d=this.bufferLength,p=this.ensureBuffer(d+h),g=d+h;this.bufferLength=g;for(var m=d;m<g;++m){if(void 0===(l=c[u++])){this.eof=!0;break}p[m]=l}return void(this.bytesPos=u)}var v,y;if(1==s)v=i,y=a;else if(2==s){for(var b=this.getBits(5)+257,w=this.getBits(5)+1,x=this.getBits(4)+4,S=Array(n.length),k=0;k<x;)S[n[k++]]=this.getBits(3);for(var C=this.generateHuffmanTable(S),O=0,k=0,T=b+w,_=new Array(T);k<T;){var A=this.getCode(C);16==A?e(this,_,2,3,O):17==A?e(this,_,3,3,O=0):18==A?e(this,_,7,11,O=0):_[k++]=O=A}v=this.generateHuffmanTable(_.slice(0,b)),y=this.generateHuffmanTable(_.slice(b,T))}else t("Unknown block type in flate stream");for(var p=this.buffer,P=p?p.length:0,E=this.bufferLength;;){var I=this.getCode(v);if(I<256)E+1>=P&&(p=this.ensureBuffer(E+1),P=p.length),p[E++]=I;else{if(256==I)return void(this.bufferLength=E);I-=257,I=r[I];var j=I>>16;j>0&&(j=this.getBits(j));var O=(65535&I)+j;I=this.getCode(y),I=o[I],(j=I>>16)>0&&(j=this.getBits(j));var R=(65535&I)+j;E+O>=P&&(p=this.ensureBuffer(E+O),P=p.length);for(var F=0;F<O;++F,++E)p[E]=p[E-R]}}},e}}();return function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===t.btoa&&(t.btoa=function(t){var n,r,o,i,a,s,l,c,u=0,h=0,f="",d=[];if(!t)return t;do{n=t.charCodeAt(u++),r=t.charCodeAt(u++),o=t.charCodeAt(u++),c=n<<16|r<<8|o,i=c>>18&63,a=c>>12&63,s=c>>6&63,l=63&c,d[h++]=e.charAt(i)+e.charAt(a)+e.charAt(s)+e.charAt(l)}while(u<t.length);f=d.join("");var p=t.length%3;return(p?f.slice(0,p-3):f)+"===".slice(p||3)}),void 0===t.atob&&(t.atob=function(t){var n,r,o,i,a,s,l,c,u=0,h=0,f=[];if(!t)return t;t+="";do{i=e.indexOf(t.charAt(u++)),a=e.indexOf(t.charAt(u++)),s=e.indexOf(t.charAt(u++)),l=e.indexOf(t.charAt(u++)),c=i<<18|a<<12|s<<6|l,n=c>>16&255,r=c>>8&255,o=255&c,f[h++]=64==s?String.fromCharCode(n):64==l?String.fromCharCode(n,r):String.fromCharCode(n,r,o)}while(u<t.length);return f.join("")}),Array.prototype.map||(Array.prototype.map=function(t){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,r=new Array(n),o=arguments.length>1?arguments[1]:void 0,i=0;i<n;i++)i in e&&(r[i]=t.call(o,e[i],i,e));return r}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;for(var n=Object(this),r=n.length>>>0,o=0;o<r;o++)o in n&&t.call(e,n[o],o,n)}),Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(o){if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError;var i,a,s=[];for(i in o)t.call(o,i)&&s.push(i);if(e)for(a=0;a<r;a++)t.call(o,n[a])&&s.push(n[a]);return s}}()),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),
|
||
String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")})}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0),e}),function(t){"use strict";function e(t){var e=d(S(),t);void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==e.margins&&(void 0===e.margin&&(e.margin=e.margins),console.error("Use of deprecated option: margins, use margin instead.")),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(t){var n="string"==typeof t?t:t[0],r="string"==typeof t?t:t[1];void 0!==e[n]&&(void 0===e.styles[r]&&(e.styles[r]=e[n]),console.error("Use of deprecated option: "+n+", use the style "+r+" instead."))});var n=e.margin;return e.margin={},"number"==typeof n.horizontal&&(n.right=n.horizontal,n.left=n.horizontal),"number"==typeof n.vertical&&(n.top=n.vertical,n.bottom=n.vertical),["top","right","bottom","left"].forEach(function(t,r){if("number"==typeof n)e.margin[t]=n;else{var o=Array.isArray(n)?r:t;e.margin[t]="number"==typeof n[o]?n[o]:40}}),e}function n(t,e){y=new Table,y.x=m.margin.left;var n=/\r\n|\r|\n/g,r=new Row(t);r.index=-1;var o=d(w,x[m.theme].table,x[m.theme].header);r.styles=d(o,m.styles,m.headerStyles),t.forEach(function(t,e){"object"==typeof t&&(e=void 0!==t.dataKey?t.dataKey:t.key),void 0!==t.width&&console.error("Use of deprecated option: column.width, use column.styles.columnWidth instead.");var o=new Column(e);o.styles=m.columnStyles[o.dataKey]||{},y.columns.push(o);var i=new Cell;i.raw="object"==typeof t?t.title:t,i.styles=r.styles,i.text=""+i.raw,i.contentWidth=2*i.styles.cellPadding+f(i.text,i.styles),i.text=i.text.split(n),r.cells[e]=i,m.createdHeaderCell(i,{column:o,row:r,settings:m})}),y.headerRow=r,e.forEach(function(t,e){var r=new Row(t),o=e%2==0,i=d(w,x[m.theme].table,o?x[m.theme].alternateRow:{}),a=d(m.styles,m.bodyStyles,o?m.alternateRowStyles:{});r.styles=d(i,a),r.index=e,y.columns.forEach(function(e){var o=new Cell;o.raw=t[e.dataKey],o.styles=d(r.styles,e.styles),o.text=void 0!==o.raw?""+o.raw:"",r.cells[e.dataKey]=o,m.createdCell(o,u({column:e,row:r})),o.contentWidth=2*o.styles.cellPadding+f(o.text,o.styles),o.text=o.text.split(n)}),y.rows.push(r)})}function r(){var t=0;y.columns.forEach(function(e){e.contentWidth=y.headerRow.cells[e.dataKey].contentWidth,y.rows.forEach(function(t){var n=t.cells[e.dataKey].contentWidth;n>e.contentWidth&&(e.contentWidth=n)}),e.width=e.contentWidth,t+=e.contentWidth}),y.contentWidth=t;var e=p.internal.pageSize.width-m.margin.left-m.margin.right,n=e;"number"==typeof m.tableWidth?n=m.tableWidth:"wrap"===m.tableWidth&&(n=y.contentWidth),y.width=n<e?n:e;var r=[],i=0,a=y.width/y.columns.length,s=0;y.columns.forEach(function(t){var e=d(w,x[m.theme].table,m.styles,t.styles);"wrap"===e.columnWidth?t.width=t.contentWidth:"number"==typeof e.columnWidth?t.width=e.columnWidth:(e.columnWidth,t.contentWidth<=a&&y.contentWidth>y.width?t.width=t.contentWidth:(r.push(t),i+=t.contentWidth,t.width=0)),s+=t.width}),o(r,s,i,a),y.height=0,y.rows.concat(y.headerRow).forEach(function(t,e){var n=0,r=y.x;y.columns.forEach(function(e){var o=t.cells[e.dataKey];e.x=r,c(o.styles);var i=e.width-2*o.styles.cellPadding;"linebreak"===o.styles.overflow?o.text=p.splitTextToSize(o.text,i+1,{fontSize:o.styles.fontSize}):"ellipsize"===o.styles.overflow?o.text=h(o.text,i,o.styles):"visible"===o.styles.overflow||("hidden"===o.styles.overflow?o.text=h(o.text,i,o.styles,""):"function"==typeof o.styles.overflow?o.text=o.styles.overflow(o.text,i):console.error("Unrecognized overflow type: "+o.styles.overflow));var a=Array.isArray(o.text)?o.text.length-1:0;a>n&&(n=a),r+=e.width}),t.heightStyle=t.styles.rowHeight,t.height=t.heightStyle+n*t.styles.fontSize*b,y.height+=t.height})}function o(t,e,n,r){for(var i=y.width-e-n,a=0;a<t.length;a++){var s=t[a],l=s.contentWidth/n,c=s.contentWidth+i*l<r;if(i<0&&c){t.splice(a,1),n-=s.contentWidth,s.width=r,e+=s.width,o(t,e,n,r);break}s.width=s.contentWidth+i*l}}function i(){y.rows.forEach(function(t,e){if(s(t.height)){a()}t.y=g.y,!1!==m.drawRow(t,u({row:t}))&&l(t,m.drawCell)})}function a(){m.afterPageContent(u()),p.addPage(),v++,g={x:m.margin.left,y:m.margin.top},m.beforePageContent(u()),!1!==m.drawHeaderRow(y.headerRow,u({row:y.headerRow}))&&l(y.headerRow,m.drawHeaderCell)}function s(t){return g.y+t+m.margin.bottom>=p.internal.pageSize.height}function l(t,e){for(var n=0;n<y.columns.length;n++){var r=y.columns[n],o=t.cells[r.dataKey];if(o){c(o.styles),o.x=r.x,o.y=g.y,o.height=t.height,o.width=r.width,"top"===o.styles.valign?o.textPos.y=g.y+o.styles.cellPadding:"bottom"===o.styles.valign?o.textPos.y=g.y+t.height-o.styles.cellPadding:o.textPos.y=g.y+t.height/2,"right"===o.styles.halign?o.textPos.x=o.x+o.width-o.styles.cellPadding:"center"===o.styles.halign?o.textPos.x=o.x+o.width/2:o.textPos.x=o.x+o.styles.cellPadding;!1!==e(o,u({column:r,row:t}))&&(p.rect(o.x,o.y,o.width,o.height,o.styles.fillStyle),p.autoTableText(o.text,o.textPos.x,o.textPos.y,{halign:o.styles.halign,valign:o.styles.valign}))}}g.y+=t.height}function c(t){[{func:p.setFillColor,value:t.fillColor},{func:p.setTextColor,value:t.textColor},{func:p.setFontStyle,value:t.fontStyle},{func:p.setDrawColor,value:t.lineColor},{func:p.setLineWidth,value:t.lineWidth},{func:p.setFont,value:t.font},{func:p.setFontSize,value:t.fontSize}].forEach(function(t){void 0!==t.value&&(t.value.constructor===Array?t.func.apply(this,t.value):t.func(t.value))})}function u(t){t=t||{};var e={pageCount:v,settings:m,table:y,cursor:g};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function h(t,e,n,r){if(r=void 0!==r?r:"...",Array.isArray(t))return t.forEach(function(o,i){t[i]=h(o,e,n,r)}),t;if(e>=f(t,n))return t;for(;e<f(t+r,n)&&!(t.length<2);)t=t.substring(0,t.length-1);return t.trim()+r}function f(t,e){return c(e),p.getStringUnitWidth(t)*e.fontSize}function d(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);for(var r=1;r<arguments.length;r++){var o=arguments[r];for(e in o)o.hasOwnProperty(e)&&("object"!=typeof o[e]||Array.isArray(o[e]),n[e]=o[e])}return n}var p,g,m,v,y,b=1.15,w={cellPadding:5,fontSize:10,font:"helvetica",lineColor:200,lineWidth:.1,fontStyle:"normal",overflow:"ellipsize",fillColor:255,textColor:20,halign:"left",valign:"top",fillStyle:"F",rowHeight:20,columnWidth:"auto"},x={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal",fillStyle:"F"},header:{textColor:255,fillColor:[41,128,185],rowHeight:23,fontStyle:"bold"},body:{},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1,fillStyle:"DF"},header:{textColor:255,fillColor:[26,188,156],rowHeight:23,fillStyle:"F",fontStyle:"bold"},body:{},alternateRow:{}},plain:{header:{fontStyle:"bold"}}},S=function(){return{theme:"striped",styles:{},headerStyles:{},bodyStyles:{},alternateRowStyles:{},columnStyles:{},startY:!1,margin:40,pageBreak:"auto",tableWidth:"auto",createdHeaderCell:function(t,e){},createdCell:function(t,e){},drawHeaderRow:function(t,e){},drawRow:function(t,e){},drawHeaderCell:function(t,e){},drawCell:function(t,e){},beforePageContent:function(t){},afterPageContent:function(t){}}};t.autoTable=function(t,o,a){p=this,m=e(a||{}),v=1,g={y:!1===m.startY?m.margin.top:m.startY};var s={textColor:30,fontSize:p.internal.getFontSize(),fontStyle:p.internal.getFont().fontStyle};n(t,o),r();var h=y.rows[0]&&"auto"===m.pageBreak?y.rows[0].height:0,f=m.startY+m.margin.bottom+y.headerRow.height+h;return"avoid"===m.pageBreak&&(f+=y.height),("always"===m.pageBreak&&!1!==m.startY||!1!==m.startY&&f>p.internal.pageSize.height)&&(p.addPage(),g.y=m.margin.top),c(s),m.beforePageContent(u()),!1!==m.drawHeaderRow(y.headerRow,u({row:y.headerRow}))&&l(y.headerRow,m.drawHeaderCell),c(s),i(),m.afterPageContent(u()),c(s),this},t.autoTableEndPosY=function(){return void 0===g||void 0===g.y?0:g.y},t.autoTableHtmlToJson=function(t){var e,n,r,o,i=[],a=[],s=t.rows[0];for(r=0;r<s.cells.length;r++)a.push(void 0!==s.cells[r]?s.cells[r].textContent:"");for(r=1;r<t.rows.length;r++){for(e=t.rows[r],n=[],o=0;o<s.cells.length;o++)n.push(void 0!==e.cells[o]?e.cells[o].textContent:"");i.push(n)}return{columns:a,data:i,rows:i}},t.autoTableText=function(t,e,n,r){"number"==typeof e&&"number"==typeof n||console.error("The x and y parameters are required. Missing for the text: ",t);var o=p.internal.getFontSize()/p.internal.scaleFactor,i=b,a=/\r\n|\r|\n/g,s=null,l=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(s="string"==typeof t?t.split(a):t,l=s.length||1),n+=o*(2-i),"middle"===r.valign?n-=l/2*o:"bottom"===r.valign&&(n-=l*o),"center"===r.halign||"right"===r.halign){var c=o;if("center"===r.halign&&(c*=.5),l>=1){for(var u=0;u<s.length;u++)p.text(s[u],e-p.getStringUnitWidth(s[u])*c,n),n+=o;return p}e-=p.getStringUnitWidth(t)*c}return p.text(t,e,n),p}}(jsPDF.API);var Table=function t(){_classCallCheck(this,t),this.height=0,this.width=0,this.x=0,this.y=0,this.contentWidth=0,this.rows=[],this.columns=[],this.headerRow=null,this.settings={}},Row=function t(e){_classCallCheck(this,t),this.raw=e||{},this.index=0,this.styles={},this.cells={},this.height=0,this.y=0},Cell=function t(e){_classCallCheck(this,t),this.raw=e,this.styles={},this.text="",this.contentWidth=0,this.textPos={},this.height=0,this.width=0,this.x=0,this.y=0},Column=function t(e){_classCallCheck(this,t),this.dataKey=e,this.options={},this.styles={},this.contentWidth=0,this.width=0,this.x=0};!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?l(t):e}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}t=t&&t.hasOwnProperty("default")?t.default:t;var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(t){return t&&t.Math==Math&&t},p=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof f&&f)||Function("return this")(),g=function(t){try{return!!t()}catch(t){return!0}},m=!g(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),v={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!v.call({1:2},1),w=b?function(t){var e=y(this,t);return!!e&&e.enumerable}:v,x={f:w},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},k={}.toString,C=function(t){return k.call(t).slice(8,-1)},O="".split,T=g(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==C(t)?O.call(t,""):Object(t)}:Object,_=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},A=function(t){return T(_(t))},P=function(t){return"object"==typeof t?null!==t:"function"==typeof t},E=function(t,e){if(!P(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!P(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!P(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!P(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},I={}.hasOwnProperty,j=function(t,e){return I.call(t,e)},R=p.document,F=P(R)&&P(R.createElement),N=function(t){return F?R.createElement(t):{}},q=!m&&!g(function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a}),B=Object.getOwnPropertyDescriptor,D=m?B:function(t,e){if(t=A(t),e=E(e,!0),q)try{return B(t,e)}catch(t){}if(j(t,e))return S(!x.f.call(t,e),t[e])},L={f:D},M=function(t){if(!P(t))throw TypeError(String(t)+" is not an object");return t},z=Object.defineProperty,$=m?z:function(t,e,n){if(M(t),e=E(e,!0),M(n),q)try{return z(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},H={f:$},U=m?function(t,e,n){return H.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},W=function(t,e){try{U(p,t,e)}catch(n){p[t]=e}return e},V=p["__core-js_shared__"]||W("__core-js_shared__",{}),G=V,X=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return X.call(t)});var Y,K,J,Q=G.inspectSource,Z=p.WeakMap,tt="function"==typeof Z&&/native code/.test(Q(Z)),et=e(function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),nt=0,rt=Math.random(),ot=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++nt+rt).toString(36)},it=et("keys"),at=function(t){return it[t]||(it[t]=ot(t))},st={},lt=p.WeakMap,ct=function(t){return J(t)?K(t):Y(t,{})},ut=function(t){return function(e){var n;if(!P(e)||(n=K(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(tt){var ht=new lt,ft=ht.get,dt=ht.has,pt=ht.set;Y=function(t,e){return pt.call(ht,t,e),e},K=function(t){return ft.call(ht,t)||{}},J=function(t){return dt.call(ht,t)}}else{var gt=at("state");st[gt]=!0,Y=function(t,e){return U(t,gt,e),e},K=function(t){return j(t,gt)?t[gt]:{}},J=function(t){return j(t,gt)}}var mt,vt,yt={set:Y,get:K,has:J,enforce:ct,getterFor:ut},bt=e(function(t){var e=yt.get,n=yt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;if("function"==typeof o&&("string"!=typeof e||j(o,"name")||U(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t===p)return void(s?t[e]=o:W(e,o));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=o:U(t,e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||Q(this)})}),wt=p,xt=function(t){return"function"==typeof t?t:void 0},St=function(t,e){return arguments.length<2?xt(wt[t])||xt(p[t]):wt[t]&&wt[t][e]||p[t]&&p[t][e]},kt=Math.ceil,Ct=Math.floor,Ot=function(t){return isNaN(t=+t)?0:(t>0?Ct:kt)(t)},Tt=Math.min,_t=function(t){return t>0?Tt(Ot(t),9007199254740991):0},At=Math.max,Pt=Math.min,Et=function(t,e){var n=Ot(t);return n<0?At(n+e,0):Pt(n,e)},It=function(t){return function(e,n,r){var o,i=A(e),a=_t(i.length),s=Et(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},jt={includes:It(!0),indexOf:It(!1)},Rt=jt.indexOf,Ft=function(t,e){var n,r=A(t),o=0,i=[];for(n in r)!j(st,n)&&j(r,n)&&i.push(n);for(;e.length>o;)j(r,n=e[o++])&&(~Rt(i,n)||i.push(n));return i},Nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qt=Nt.concat("length","prototype"),Bt=Object.getOwnPropertyNames||function(t){return Ft(t,qt)},Dt={f:Bt},Lt=Object.getOwnPropertySymbols,Mt={f:Lt},zt=St("Reflect","ownKeys")||function(t){var e=Dt.f(M(t)),n=Mt.f;return n?e.concat(n(t)):e},$t=function(t,e){for(var n=zt(e),r=H.f,o=L.f,i=0;i<n.length;i++){var a=n[i];j(t,a)||r(t,a,o(e,a))}},Ht=/#|\.prototype\./,Ut=function(t,e){var n=Vt[Wt(t)];return n==Xt||n!=Gt&&("function"==typeof e?g(e):!!e)},Wt=Ut.normalize=function(t){return String(t).replace(Ht,".").toLowerCase()},Vt=Ut.data={},Gt=Ut.NATIVE="N",Xt=Ut.POLYFILL="P",Yt=Ut,Kt=L.f,Jt=function(t,e){var n,r,o,i,a,s=t.target,l=t.global,c=t.stat;if(n=l?p:c?p[s]||W(s,{}):(p[s]||{}).prototype)for(r in e){if(i=e[r],t.noTargetGet?(a=Kt(n,r),o=a&&a.value):o=n[r],!Yt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;$t(i,o)}(t.sham||o&&o.sham)&&U(i,"sham",!0),bt(n,r,i,t)}},Qt=Array.isArray||function(t){return"Array"==C(t)},Zt=function(t){return Object(_(t))},te=function(t,e,n){var r=E(e);r in t?H.f(t,r,S(0,n)):t[r]=n},ee=!!Object.getOwnPropertySymbols&&!g(function(){return!String(Symbol())}),ne=ee&&!Symbol.sham&&"symbol"==typeof Symbol(),re=et("wks"),oe=p.Symbol,ie=ne?oe:ot,ae=function(t){return j(re,t)||(ee&&j(oe,t)?re[t]=oe[t]:re[t]=ie("Symbol."+t)),re[t]},se=ae("species"),le=function(t,e){var n;return Qt(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!Qt(n.prototype)?P(n)&&null===(n=n[se])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ce=St("navigator","userAgent")||"",ue=p.process,he=ue&&ue.versions,fe=he&&he.v8;fe?(mt=fe.split("."),vt=mt[0]+mt[1]):ce&&(!(mt=ce.match(/Edge\/(\d+)/))||mt[1]>=74)&&(mt=ce.match(/Chrome\/(\d+)/))&&(vt=mt[1]);var de=vt&&+vt,pe=ae("species"),ge=ae("isConcatSpreadable"),me=de>=51||!g(function(){var t=[];return t[ge]=!1,t.concat()[0]!==t}),ve=function(t){return de>=51||!g(function(){var e=[],n=e.constructor={};return n[pe]=function(){return{foo:1}},1!==e[t](Boolean).foo})}("concat"),ye=function(t){if(!P(t))return!1;var e=t[ge];return void 0!==e?!!e:Qt(t)};Jt({target:"Array",proto:!0,forced:!me||!ve},{concat:function(t){var e,n,r,o,i,a=Zt(this),s=le(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],ye(i)){if(o=_t(i.length),l+o>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&te(s,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");te(s,l++,i)}return s.length=l,s}});var be,we=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},xe=function(t,e,n){if(we(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Se=[].push,ke=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(s,l,c,u){for(var h,f,d=Zt(s),p=T(d),g=xe(l,c,3),m=_t(p.length),v=0,y=u||le,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=p[v],f=g(h,v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Se.call(b,h)}else if(o)return!1;return i?-1:r||o?o:b}},Ce={forEach:ke(0),map:ke(1),filter:ke(2),some:ke(3),every:ke(4),find:ke(5),findIndex:ke(6)},Oe=Object.keys||function(t){return Ft(t,Nt)},Te=m?Object.defineProperties:function(t,e){M(t);for(var n,r=Oe(e),o=r.length,i=0;o>i;)H.f(t,n=r[i++],e[n]);return t},_e=St("document","documentElement"),Ae=at("IE_PROTO"),Pe=function(){},Ee=function(t){return"<script>"+t+"<\/script>"},Ie=function(t){t.write(Ee("")),t.close();var e=t.parentWindow.Object;return t=null,e},je=function(){var t,e=N("iframe");return e.style.display="none",_e.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(Ee("document.F=Object")),t.close(),t.F},Re=function(){try{be=document.domain&&new ActiveXObject("htmlfile")}catch(t){}Re=be?Ie(be):je();for(var t=Nt.length;t--;)delete Re.prototype[Nt[t]];return Re()};st[Ae]=!0;var Fe=Object.create||function(t,e){var n;return null!==t?(Pe.prototype=M(t),n=new Pe,Pe.prototype=null,n[Ae]=t):n=Re(),void 0===e?n:Te(n,e)},Ne=ae("unscopables"),qe=Array.prototype;void 0==qe[Ne]&&H.f(qe,Ne,{configurable:!0,value:Fe(null)});var Be=Ce.find,De=!0;"find"in[]&&Array(1).find(function(){De=!1}),Jt({target:"Array",proto:!0,forced:De},{find:function(t){return Be(this,t,arguments.length>1?arguments[1]:void 0)}}),function(t){qe[Ne][t]=!0}("find");t.fn.bootstrapTable.utils;t.extend(t.fn.bootstrapTable.defaults,{stickyHeader:!1,stickyHeaderOffsetY:0,stickyHeaderOffsetLeft:0,stickyHeaderOffsetRight:0}),t.BootstrapTable=function(e){function r(){return n(this,r),c(this,a(r).apply(this,arguments))}return i(r,e),o(r,[{key:"initHeader",value:function(){for(var e,n=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(e=h(a(r.prototype),"initHeader",this)).call.apply(e,[this].concat(i)),this.options.stickyHeader&&(this.$el.before('<div class="sticky-header-container"></div>'),this.$el.before('<div class="sticky_anchor_begin"></div>'),this.$el.after('<div class="sticky_anchor_end"></div>'),this.$header.addClass("sticky-header"),this.$stickyContainer=this.$tableBody.find(".sticky-header-container"),this.$stickyBegin=this.$tableBody.find(".sticky_anchor_begin"),this.$stickyEnd=this.$tableBody.find(".sticky_anchor_end"),this.$stickyHeader=this.$header.clone(!0,!0),t(window).off("resize.sticky-header-table").on("resize.sticky-header-table",function(){return n.renderStickyHeader()}),t(window).off("scroll.sticky-header-table").on("scroll.sticky-header-table",function(){return n.renderStickyHeader()}),this.$tableBody.off("scroll").on("scroll",function(){return n.matchPositionX()}))}},{key:"onColumnSearch",value:function(t){var e=t.currentTarget,n=t.keyCode;h(a(r.prototype),"onColumnSearch",this).call(this,{currentTarget:e,keyCode:n}),this.renderStickyHeader()}},{key:"resetView",value:function(){for(var e,n=this,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(e=h(a(r.prototype),"resetView",this)).call.apply(e,[this].concat(i)),t(".bootstrap-table.fullscreen").off("scroll").on("scroll",function(){return n.renderStickyHeader()})}},{key:"renderStickyHeader",value:function(){var e=this,n=this;this.$stickyHeader=this.$header.clone(!0,!0),this.options.filterControl&&t(this.$stickyHeader).off("keyup change mouseup").on("keyup change mouse",function(e){var r=t(e.target),o=r.val(),i=r.parents("th").data("field"),a=n.$header.find('th[data-field="'+i+'"]');if(r.is("input"))a.find("input").val(o);else if(r.is("select")){var s=a.find("select");s.find("option[selected]").removeAttr("selected"),s.find('option[value="'+o+'"]').attr("selected",!0)}n.triggerSearch()});var r=t(window).scrollTop(),o=this.$stickyBegin.offset().top-this.options.stickyHeaderOffsetY,i=this.$stickyEnd.offset().top-this.options.stickyHeaderOffsetY-this.$header.height();if(r>o&&r<=i){this.$stickyHeader.find("tr:eq(0)").find("th").each(function(n,r){t(r).css("min-width",e.$header.find("tr:eq(0)").find("th").eq(n).css("width"))}),this.$stickyContainer.show().addClass("fix-sticky fixed-table-container");var a=this.options.stickyHeaderOffsetLeft,s=this.options.stickyHeaderOffsetRight;this.$el.closest(".bootstrap-table").hasClass("fullscreen")&&(a=0,s=0),this.$stickyContainer.css("top","".concat(this.options.stickyHeaderOffsetY)),this.$stickyContainer.css("left","".concat(a)),this.$stickyContainer.css("right","".concat(s)),this.$stickyTable=t("<table/>"),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()}else this.$stickyContainer.removeClass("fix-sticky").hide()}},{key:"matchPositionX",value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}]),r}(t.BootstrapTable)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self,e(t.jQuery))}(this,function(t){"use strict";function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}function n(t,e){return RegExp(t,e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?c(t):e}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return p(t)||g(t,e)||m()}function p(t){if(Array.isArray(t))return t}function g(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t=t&&t.hasOwnProperty("default")?t.default:t;var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(t){return t&&t.Math==Math&&t},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof v&&v)||Function("return this")(),w=function(t){try{return!!t()}catch(t){return!0}},x=!w(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),S={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,C=k&&!S.call({1:2},1),O=C?function(t){var e=k(this,t);return!!e&&e.enumerable}:S,T={f:O},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A={}.toString,P=function(t){return A.call(t).slice(8,-1)},E="".split,I=w(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==P(t)?E.call(t,""):Object(t)}:Object,j=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},R=function(t){return I(j(t))},F=function(t){return"object"==typeof t?null!==t:"function"==typeof t},N=function(t,e){if(!F(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!F(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!F(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!F(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},q={}.hasOwnProperty,B=function(t,e){return q.call(t,e)},D=b.document,L=F(D)&&F(D.createElement),M=function(t){return L?D.createElement(t):{}},z=!x&&!w(function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a}),$=Object.getOwnPropertyDescriptor,H=x?$:function(t,e){if(t=R(t),e=N(e,!0),z)try{return $(t,e)}catch(t){}if(B(t,e))return _(!T.f.call(t,e),t[e])},U={f:H},W=function(t){if(!F(t))throw TypeError(String(t)+" is not an object");return t},V=Object.defineProperty,G=x?V:function(t,e,n){if(W(t),e=N(e,!0),W(n),z)try{return V(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t},X={f:G},Y=x?function(t,e,n){return X.f(t,e,_(1,n))}:function(t,e,n){return t[e]=n,t},K=function(t,e){try{Y(b,t,e)}catch(n){b[t]=e}return e},J=b["__core-js_shared__"]||K("__core-js_shared__",{}),Q=J,Z=Function.toString;"function"!=typeof Q.inspectSource&&(Q.inspectSource=function(t){return Z.call(t)});var tt,et,nt,rt=Q.inspectSource,ot=b.WeakMap,it="function"==typeof ot&&/native code/.test(rt(ot)),at=e(function(t){(t.exports=function(t,e){return Q[t]||(Q[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),st=0,lt=Math.random(),ct=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++st+lt).toString(36)},ut=at("keys"),ht=function(t){return ut[t]||(ut[t]=ct(t))},ft={},dt=b.WeakMap,pt=function(t){return nt(t)?et(t):tt(t,{})},gt=function(t){return function(e){var n;if(!F(e)||(n=et(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(it){var mt=new dt,vt=mt.get,yt=mt.has,bt=mt.set;tt=function(t,e){return bt.call(mt,t,e),e},et=function(t){return vt.call(mt,t)||{}},nt=function(t){return yt.call(mt,t)}}else{var wt=ht("state");ft[wt]=!0,tt=function(t,e){return Y(t,wt,e),e},et=function(t){return B(t,wt)?t[wt]:{}},nt=function(t){return B(t,wt)}}var xt,St={set:tt,get:et,has:nt,enforce:pt,getterFor:gt},kt=e(function(t){var e=St.get,n=St.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;if("function"==typeof o&&("string"!=typeof e||B(o,"name")||Y(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t===b)return void(s?t[e]=o:K(e,o));a?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=o:Y(t,e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||rt(this)})}),Ct=b,Ot=function(t){return"function"==typeof t?t:void 0},Tt=function(t,e){return arguments.length<2?Ot(Ct[t])||Ot(b[t]):Ct[t]&&Ct[t][e]||b[t]&&b[t][e]},_t=Math.ceil,At=Math.floor,Pt=function(t){return isNaN(t=+t)?0:(t>0?At:_t)(t)},Et=Math.min,It=function(t){return t>0?Et(Pt(t),9007199254740991):0},jt=Math.max,Rt=Math.min,Ft=function(t,e){var n=Pt(t);return n<0?jt(n+e,0):Rt(n,e)},Nt=function(t){return function(e,n,r){var o,i=R(e),a=It(i.length),s=Ft(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},qt={includes:Nt(!0),indexOf:Nt(!1)},Bt=qt.indexOf,Dt=function(t,e){var n,r=R(t),o=0,i=[];for(n in r)!B(ft,n)&&B(r,n)&&i.push(n);for(;e.length>o;)B(r,n=e[o++])&&(~Bt(i,n)||i.push(n));return i},Lt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=Lt.concat("length","prototype"),zt=Object.getOwnPropertyNames||function(t){return Dt(t,Mt)},$t={f:zt},Ht=Object.getOwnPropertySymbols,Ut={f:Ht},Wt=Tt("Reflect","ownKeys")||function(t){var e=$t.f(W(t)),n=Ut.f;return n?e.concat(n(t)):e},Vt=function(t,e){for(var n=Wt(e),r=X.f,o=U.f,i=0;i<n.length;i++){var a=n[i];B(t,a)||r(t,a,o(e,a))}},Gt=/#|\.prototype\./,Xt=function(t,e){var n=Kt[Yt(t)];return n==Qt||n!=Jt&&("function"==typeof e?w(e):!!e)},Yt=Xt.normalize=function(t){return String(t).replace(Gt,".").toLowerCase()},Kt=Xt.data={},Jt=Xt.NATIVE="N",Qt=Xt.POLYFILL="P",Zt=Xt,te=U.f,ee=function(t,e){var n,r,o,i,a,s=t.target,l=t.global,c=t.stat;if(n=l?b:c?b[s]||K(s,{}):(b[s]||{}).prototype)for(r in e){if(i=e[r],t.noTargetGet?(a=te(n,r),o=a&&a.value):o=n[r],!Zt(l?r:s+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vt(i,o)}(t.sham||o&&o.sham)&&Y(i,"sham",!0),kt(n,r,i,t)}},ne=!!Object.getOwnPropertySymbols&&!w(function(){return!String(Symbol())}),re=ne&&!Symbol.sham&&"symbol"==typeof Symbol(),oe=Array.isArray||function(t){return"Array"==P(t)},ie=function(t){return Object(j(t))},ae=Object.keys||function(t){return Dt(t,Lt)},se=x?Object.defineProperties:function(t,e){W(t);for(var n,r=ae(e),o=r.length,i=0;o>i;)X.f(t,n=r[i++],e[n]);return t
|
||
},le=Tt("document","documentElement"),ce=ht("IE_PROTO"),ue=function(){},he=function(t){return"<script>"+t+"<\/script>"},fe=function(t){t.write(he("")),t.close();var e=t.parentWindow.Object;return t=null,e},de=function(){var t,e=M("iframe");return e.style.display="none",le.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(he("document.F=Object")),t.close(),t.F},pe=function(){try{xt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}pe=xt?fe(xt):de();for(var t=Lt.length;t--;)delete pe.prototype[Lt[t]];return pe()};ft[ce]=!0;var ge=Object.create||function(t,e){var n;return null!==t?(ue.prototype=W(t),n=new ue,ue.prototype=null,n[ce]=t):n=pe(),void 0===e?n:se(n,e)},me=$t.f,ve={}.toString,ye="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],be=function(t){try{return me(t)}catch(t){return ye.slice()}},we=function(t){return ye&&"[object Window]"==ve.call(t)?be(t):me(R(t))},xe={f:we},Se=at("wks"),ke=b.Symbol,Ce=re?ke:ct,Oe=function(t){return B(Se,t)||(ne&&B(ke,t)?Se[t]=ke[t]:Se[t]=Ce("Symbol."+t)),Se[t]},Te=Oe,_e={f:Te},Ae=X.f,Pe=function(t){var e=Ct.Symbol||(Ct.Symbol={});B(e,t)||Ae(e,t,{value:_e.f(t)})},Ee=X.f,Ie=Oe("toStringTag"),je=function(t,e,n){t&&!B(t=n?t:t.prototype,Ie)&&Ee(t,Ie,{configurable:!0,value:e})},Re=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Fe=function(t,e,n){if(Re(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ne=Oe("species"),qe=function(t,e){var n;return oe(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!oe(n.prototype)?F(n)&&null===(n=n[Ne])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Be=[].push,De=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(s,l,c,u){for(var h,f,d=ie(s),p=I(d),g=Fe(l,c,3),m=It(p.length),v=0,y=u||qe,b=e?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=p[v],f=g(h,v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Be.call(b,h)}else if(o)return!1;return i?-1:r||o?o:b}},Le={forEach:De(0),map:De(1),filter:De(2),some:De(3),every:De(4),find:De(5),findIndex:De(6)},Me=Le.forEach,ze=ht("hidden"),$e=Oe("toPrimitive"),He=St.set,Ue=St.getterFor("Symbol"),We=Object.prototype,Ve=b.Symbol,Ge=Tt("JSON","stringify"),Xe=U.f,Ye=X.f,Ke=xe.f,Je=T.f,Qe=at("symbols"),Ze=at("op-symbols"),tn=at("string-to-symbol-registry"),en=at("symbol-to-string-registry"),nn=at("wks"),rn=b.QObject,on=!rn||!rn.prototype||!rn.prototype.findChild,an=x&&w(function(){return 7!=ge(Ye({},"a",{get:function(){return Ye(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Xe(We,e);r&&delete We[e],Ye(t,e,n),r&&t!==We&&Ye(We,e,r)}:Ye,sn=function(t,e){var n=Qe[t]=ge(Ve.prototype);return He(n,{type:"Symbol",tag:t,description:e}),x||(n.description=e),n},ln=ne&&"symbol"==typeof Ve.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ve},cn=function(t,e,n){t===We&&cn(Ze,e,n),W(t);var r=N(e,!0);return W(n),B(Qe,r)?(n.enumerable?(B(t,ze)&&t[ze][r]&&(t[ze][r]=!1),n=ge(n,{enumerable:_(0,!1)})):(B(t,ze)||Ye(t,ze,_(1,{})),t[ze][r]=!0),an(t,r,n)):Ye(t,r,n)},un=function(t,e){W(t);var n=R(e),r=ae(n).concat(gn(n));return Me(r,function(e){x&&!fn.call(n,e)||cn(t,e,n[e])}),t},hn=function(t,e){return void 0===e?ge(t):un(ge(t),e)},fn=function(t){var e=N(t,!0),n=Je.call(this,e);return!(this===We&&B(Qe,e)&&!B(Ze,e))&&(!(n||!B(this,e)||!B(Qe,e)||B(this,ze)&&this[ze][e])||n)},dn=function(t,e){var n=R(t),r=N(e,!0);if(n!==We||!B(Qe,r)||B(Ze,r)){var o=Xe(n,r);return!o||!B(Qe,r)||B(n,ze)&&n[ze][r]||(o.enumerable=!0),o}},pn=function(t){var e=Ke(R(t)),n=[];return Me(e,function(t){B(Qe,t)||B(ft,t)||n.push(t)}),n},gn=function(t){var e=t===We,n=Ke(e?Ze:R(t)),r=[];return Me(n,function(t){!B(Qe,t)||e&&!B(We,t)||r.push(Qe[t])}),r};if(ne||(Ve=function(){if(this instanceof Ve)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=ct(t),n=function(t){this===We&&n.call(Ze,t),B(this,ze)&&B(this[ze],e)&&(this[ze][e]=!1),an(this,e,_(1,t))};return x&&on&&an(We,e,{configurable:!0,set:n}),sn(e,t)},kt(Ve.prototype,"toString",function(){return Ue(this).tag}),T.f=fn,X.f=cn,U.f=dn,$t.f=xe.f=pn,Ut.f=gn,x&&(Ye(Ve.prototype,"description",{configurable:!0,get:function(){return Ue(this).description}}),kt(We,"propertyIsEnumerable",fn,{unsafe:!0}))),re||(_e.f=function(t){return sn(Oe(t),t)}),ee({global:!0,wrap:!0,forced:!ne,sham:!ne},{Symbol:Ve}),Me(ae(nn),function(t){Pe(t)}),ee({target:"Symbol",stat:!0,forced:!ne},{for:function(t){var e=String(t);if(B(tn,e))return tn[e];var n=Ve(e);return tn[e]=n,en[n]=e,n},keyFor:function(t){if(!ln(t))throw TypeError(t+" is not a symbol");if(B(en,t))return en[t]},useSetter:function(){on=!0},useSimple:function(){on=!1}}),ee({target:"Object",stat:!0,forced:!ne,sham:!x},{create:hn,defineProperty:cn,defineProperties:un,getOwnPropertyDescriptor:dn}),ee({target:"Object",stat:!0,forced:!ne},{getOwnPropertyNames:pn,getOwnPropertySymbols:gn}),ee({target:"Object",stat:!0,forced:w(function(){Ut.f(1)})},{getOwnPropertySymbols:function(t){return Ut.f(ie(t))}}),Ge){var mn=!ne||w(function(){var t=Ve();return"[null]"!=Ge([t])||"{}"!=Ge({a:t})||"{}"!=Ge(Object(t))});ee({target:"JSON",stat:!0,forced:mn},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(F(e)||void 0!==t)&&!ln(t))return oe(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ln(e))return e}),o[1]=e,Ge.apply(null,o)}})}Ve.prototype[$e]||Y(Ve.prototype,$e,Ve.prototype.valueOf),je(Ve,"Symbol"),ft[ze]=!0;var vn=X.f,yn=b.Symbol;if(x&&"function"==typeof yn&&(!("description"in yn.prototype)||void 0!==yn().description)){var bn={},wn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof wn?new yn(t):void 0===t?yn():yn(t);return""===t&&(bn[e]=!0),e};Vt(wn,yn);var xn=wn.prototype=yn.prototype;xn.constructor=wn;var Sn=xn.toString,kn="Symbol(test)"==String(yn("test")),Cn=/^Symbol\((.*)\)[^)]+$/;vn(xn,"description",{configurable:!0,get:function(){var t=F(this)?this.valueOf():this,e=Sn.call(t);if(B(bn,t))return"";var n=kn?e.slice(7,-1):e.replace(Cn,"$1");return""===n?void 0:n}}),ee({global:!0,forced:!0},{Symbol:wn})}Pe("iterator");var On,Tn,_n=function(t,e,n){var r=N(e);r in t?X.f(t,r,_(0,n)):t[r]=n},An=Tt("navigator","userAgent")||"",Pn=b.process,En=Pn&&Pn.versions,In=En&&En.v8;In?(On=In.split("."),Tn=On[0]+On[1]):An&&(!(On=An.match(/Edge\/(\d+)/))||On[1]>=74)&&(On=An.match(/Chrome\/(\d+)/))&&(Tn=On[1]);var jn=Tn&&+Tn,Rn=Oe("species"),Fn=function(t){return jn>=51||!w(function(){var e=[],n=e.constructor={};return n[Rn]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Nn=Oe("isConcatSpreadable"),qn=jn>=51||!w(function(){var t=[];return t[Nn]=!1,t.concat()[0]!==t}),Bn=Fn("concat"),Dn=function(t){if(!F(t))return!1;var e=t[Nn];return void 0!==e?!!e:oe(t)};ee({target:"Array",proto:!0,forced:!qn||!Bn},{concat:function(t){var e,n,r,o,i,a=ie(this),s=qe(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],Dn(i)){if(o=It(i.length),l+o>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&_n(s,l,i[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");_n(s,l++,i)}return s.length=l,s}});var Ln=Le.filter,Mn=Fn("filter"),zn=Mn&&!w(function(){[].filter.call({length:-1,0:1},function(t){throw t})});ee({target:"Array",proto:!0,forced:!Mn||!zn},{filter:function(t){return Ln(this,t,arguments.length>1?arguments[1]:void 0)}});var $n=Oe("unscopables"),Hn=Array.prototype;void 0==Hn[$n]&&X.f(Hn,$n,{configurable:!0,value:ge(null)});var Un=function(t){Hn[$n][t]=!0},Wn=Le.find,Vn=!0;"find"in[]&&Array(1).find(function(){Vn=!1}),ee({target:"Array",proto:!0,forced:Vn},{find:function(t){return Wn(this,t,arguments.length>1?arguments[1]:void 0)}}),Un("find");var Gn=qt.includes;ee({target:"Array",proto:!0},{includes:function(t){return Gn(this,t,arguments.length>1?arguments[1]:void 0)}}),Un("includes");var Xn=function(t,e){var n=[][t];return!n||!w(function(){n.call(null,e||function(){throw 1},1)})},Yn=qt.indexOf,Kn=[].indexOf,Jn=!!Kn&&1/[1].indexOf(1,-0)<0,Qn=Xn("indexOf");ee({target:"Array",proto:!0,forced:Jn||Qn},{indexOf:function(t){return Jn?Kn.apply(this,arguments)||0:Yn(this,t,arguments.length>1?arguments[1]:void 0)}});var Zn,tr,er,nr=!w(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),rr=ht("IE_PROTO"),or=Object.prototype,ir=nr?Object.getPrototypeOf:function(t){return t=ie(t),B(t,rr)?t[rr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?or:null},ar=Oe("iterator"),sr=!1,lr=function(){return this};[].keys&&(er=[].keys(),"next"in er?(tr=ir(ir(er)))!==Object.prototype&&(Zn=tr):sr=!0),void 0==Zn&&(Zn={}),B(Zn,ar)||Y(Zn,ar,lr);var cr={IteratorPrototype:Zn,BUGGY_SAFARI_ITERATORS:sr},ur=cr.IteratorPrototype,hr=function(t,e,n){var r=e+" Iterator";return t.prototype=ge(ur,{next:_(1,n)}),je(t,r,!1),t},fr=function(t){if(!F(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},dr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return W(n),fr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),pr=cr.IteratorPrototype,gr=cr.BUGGY_SAFARI_ITERATORS,mr=Oe("iterator"),vr=function(){return this},yr=function(t,e,n,r,o,i,a){hr(n,e,r);var s,l,c,u=function(t){if(t===o&&g)return g;if(!gr&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,d=t.prototype,p=d[mr]||d["@@iterator"]||o&&d[o],g=!gr&&p||u(o),m="Array"==e?d.entries||p:p;if(m&&(s=ir(m.call(new t)),pr!==Object.prototype&&s.next&&(ir(s)!==pr&&(dr?dr(s,pr):"function"!=typeof s[mr]&&Y(s,mr,vr)),je(s,h,!0))),"values"==o&&p&&"values"!==p.name&&(f=!0,g=function(){return p.call(this)}),d[mr]!==g&&Y(d,mr,g),o)if(l={values:u("values"),keys:i?g:u("keys"),entries:u("entries")},a)for(c in l)!gr&&!f&&c in d||kt(d,c,l[c]);else ee({target:e,proto:!0,forced:gr||f},l);return l},br=St.set,wr=St.getterFor("Array Iterator"),xr=yr(Array,"Array",function(t,e){br(this,{type:"Array Iterator",target:R(t),index:0,kind:e})},function(){var t=wr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Un("keys"),Un("values"),Un("entries");var Sr=[].join,kr=I!=Object,Cr=Xn("join",",");ee({target:"Array",proto:!0,forced:kr||Cr},{join:function(t){return Sr.call(R(this),void 0===t?",":t)}});var Or=T.f,Tr=function(t){return function(e){for(var n,r=R(e),o=ae(r),i=o.length,a=0,s=[];i>a;)n=o[a++],x&&!Or.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}},_r={entries:Tr(!0),values:Tr(!1)},Ar=_r.entries;ee({target:"Object",stat:!0},{entries:function(t){return Ar(t)}});var Pr=Oe("toStringTag"),Er={};Er[Pr]="z";var Ir="[object z]"===String(Er),jr=Oe("toStringTag"),Rr="Arguments"==P(function(){return arguments}()),Fr=function(t,e){try{return t[e]}catch(t){}},Nr=Ir?P:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=Fr(e=Object(t),jr))?n:Rr?P(e):"Object"==(r=P(e))&&"function"==typeof e.callee?"Arguments":r},qr=Ir?{}.toString:function(){return"[object "+Nr(this)+"]"};Ir||kt(Object.prototype,"toString",qr,{unsafe:!0});var Br=function(){var t=W(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Dr=w(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),Lr=w(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),Mr={UNSUPPORTED_Y:Dr,BROKEN_CARET:Lr},zr=RegExp.prototype.exec,$r=String.prototype.replace,Hr=zr,Ur=function(){var t=/a/,e=/b*/g;return zr.call(t,"a"),zr.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Wr=Mr.UNSUPPORTED_Y||Mr.BROKEN_CARET,Vr=void 0!==/()??/.exec("")[1];(Ur||Vr||Wr)&&(Hr=function(t){var e,n,r,o,i=this,a=Wr&&i.sticky,s=Br.call(i),l=i.source,c=0,u=t;return a&&(s=s.replace("y",""),-1===s.indexOf("g")&&(s+="g"),u=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",s)),Vr&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Ur&&(e=i.lastIndex),r=zr.call(a?n:i,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Ur&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Vr&&r&&r.length>1&&$r.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});var Gr=Hr;ee({target:"RegExp",proto:!0,forced:/./.exec!==Gr},{exec:Gr});var Xr=Oe("match"),Yr=function(t){var e;return F(t)&&(void 0!==(e=t[Xr])?!!e:"RegExp"==P(t))},Kr=function(t){if(Yr(t))throw TypeError("The method doesn't accept regular expressions");return t},Jr=Oe("match");ee({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Jr]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(j(this)).indexOf(Kr(t),arguments.length>1?arguments[1]:void 0)}});var Qr=function(t){return function(e,n){var r,o,i=String(j(e)),a=Pt(n),s=i.length;return a<0||a>=s?t?"":void 0:(r=i.charCodeAt(a),r<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536)}},Zr={codeAt:Qr(!1),charAt:Qr(!0)},to=Zr.charAt,eo=St.set,no=St.getterFor("String Iterator");yr(String,"String",function(t){eo(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=no(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=to(n,r),e.index+=t.length,{value:t,done:!1})});var ro=Oe("species"),oo=!w(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),io=function(){return"$0"==="a".replace(/./,"$0")}(),ao=!w(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),so=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},lo=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==P(t))throw TypeError("RegExp#exec called on incompatible receiver");return Gr.call(t,e)};!function(t,e,n,r){var o=Oe(t),i=!w(function(){var e={};return e[o]=function(){return 7},7!=""[t](e)}),a=i&&!w(function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[ro]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e});if(!i||!a||"replace"===t&&(!oo||!io)||"split"===t&&!ao){var s=/./[o],l=n(o,""[t],function(t,e,n,r,o){return e.exec===Gr?i&&!o?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}},{REPLACE_KEEPS_$0:io}),c=l[0],u=l[1];kt(String.prototype,t,c),kt(RegExp.prototype,o,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}r&&Y(RegExp.prototype[o],"sham",!0)}("search",1,function(t,e,n){return[function(e){var n=j(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=W(t),i=String(this),a=o.lastIndex;so(a,0)||(o.lastIndex=0);var s=lo(o,i);return so(o.lastIndex,a)||(o.lastIndex=a),null===s?-1:s.index}]});var co="\t\n\v\f\r \u2028\u2029\ufeff",uo="["+co+"]",ho=RegExp("^"+uo+uo+"*"),fo=RegExp(uo+uo+"*$"),po=function(t){return function(e){var n=String(j(e));return 1&t&&(n=n.replace(ho,"")),2&t&&(n=n.replace(fo,"")),n}},go={start:po(1),end:po(2),trim:po(3)},mo="
",vo=go.trim;ee({target:"String",proto:!0,forced:function(t){return w(function(){return!!co[t]()||mo[t]()!=mo||co[t].name!==t})}("trim")},{trim:function(){return vo(this)}});var yo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},bo=Oe("iterator"),wo=Oe("toStringTag"),xo=xr.values;for(var So in yo){var ko=b[So],Co=ko&&ko.prototype;if(Co){if(Co[bo]!==xo)try{Y(Co,bo,xo)}catch(t){Co[bo]=xo}if(Co[wo]||Y(Co,wo,So),yo[So])for(var Oo in xr)if(Co[Oo]!==xr[Oo])try{Y(Co,Oo,xr[Oo])}catch(t){Co[Oo]=xr[Oo]}}}var To=t.fn.bootstrapTable.utils,_o={bootstrap3:{icons:{advancedSearchIcon:"glyphicon-chevron-down"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title">%s</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0px; padding-left: 0px;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bootstrap4:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">\n <div class="modal-dialog modal-xs">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title">%s</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body modal-body-custom">\n <div class="container-fluid" id="avdSearchModalContent_%s"\n style="padding-right: 0px; padding-left: 0px;" >\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" id="btnCloseAvd_%s" class="btn btn-%s">%s</button>\n </div>\n </div>\n </div>\n </div>\n '}},bulma:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div class="modal" id="avdSearchModal_%s">\n <div class="modal-background"></div>\n <div class="modal-card">\n <header class="modal-card-head">\n <p class="modal-card-title">%s</p>\n <button class="delete" aria-label="close"></button>\n </header>\n <section class="modal-card-body" id="avdSearchModalContent_%s"></section>\n <footer class="modal-card-foot">\n <button class="button" id="btnCloseAvd_%s" data-close="btn btn-%s">%s</button>\n </footer>\n </div>\n </div>\n '}},foundation:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div class="reveal" id="avdSearchModal_%s" data-reveal>\n <h1>%s</h1>\n <div id="avdSearchModalContent_%s">\n \n </div>\n <button class="close-button" data-close aria-label="Close modal" type="button">\n <span aria-hidden="true">×</span>\n </button>\n \n <button id="btnCloseAvd_%s" class="%s" type="button">%s</button>\n </div>\n '}},materialize:{icons:{advancedSearchIcon:"expand_more"},html:{modal:'\n <div id="avdSearchModal_%s" class="modal">\n <div class="modal-content">\n <h4>%s</h4>\n <div id="avdSearchModalContent_%s">\n \n </div>\n </div>\n <div class="modal-footer">\n <a href="javascript:void(0)"" id="btnCloseAvd_%s" class="modal-close waves-effect waves-green btn-flat %s">%s</a>\n </div>\n </div>\n '}},semantic:{icons:{advancedSearchIcon:"fa-chevron-down"},html:{modal:'\n <div class="ui modal" id="avdSearchModal_%s">\n <i class="close icon"></i>\n <div class="header">\n %s\n </div>\n <div class="image content ui form" id="avdSearchModalContent_%s"></div>\n <div class="actions">\n <div id="btnCloseAvd_%s" class="ui black deny button %s">%s</div>\n </div>\n </div>\n '}}}[t.fn.bootstrapTable.theme];t.extend(t.fn.bootstrapTable.defaults,{advancedSearch:!1,idForm:"advancedSearch",actionForm:"",idTable:void 0,onColumnAdvancedSearch:function(t,e){return!1}}),t.extend(t.fn.bootstrapTable.defaults.icons,{advancedSearchIcon:_o.icons.advancedSearchIcon}),t.extend(t.fn.bootstrapTable.Constructor.EVENTS,{"column-advanced-search.bs.table":"onColumnAdvancedSearch"}),t.extend(t.fn.bootstrapTable.locales,{formatAdvancedSearch:function(){return"Advanced search"},formatAdvancedCloseButton:function(){return"Close"}}),t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales),t.BootstrapTable=function(e){function n(){return r(this,n),u(this,s(n).apply(this,arguments))}return a(n,e),i(n,[{key:"initToolbar",value:function(){var t=this,e=this.options;this.showToolbar=this.showToolbar||e.search&&e.advancedSearch&&e.idTable,f(s(n.prototype),"initToolbar",this).call(this),e.search&&e.advancedSearch&&e.idTable&&(this.$toolbar.find(">.columns").append('\n <button class="'.concat(this.constants.buttonsClass,' "\n type="button"\n name="advancedSearch"\n aria-label="advanced search"\n title="').concat(e.formatAdvancedSearch(),'">\n ').concat(this.options.showButtonIcons?To.sprintf(this.constants.html.icon,e.iconsPrefix,e.icons.advancedSearchIcon):"","\n ").concat(this.options.showButtonText?this.options.formatAdvancedSearch():"","\n </button>\n ")),this.$toolbar.find('button[name="advancedSearch"]').off("click").on("click",function(){return t.showAvdSearch()}))}},{key:"showAvdSearch",value:function(){var e=this,n=this.options,r="#avdSearchModal_"+n.idTable;if(t(r).length<=0){t("body").append(To.sprintf(_o.html.modal,n.idTable,n.formatAdvancedSearch(),n.idTable,n.idTable,n.buttonsClass,n.formatAdvancedCloseButton()));var o=0;t("#avdSearchModalContent_".concat(n.idTable)).append(this.createFormAvd().join("")),t("#".concat(n.idForm)).off("keyup blur","input").on("keyup blur","input",function(t){"server"===n.sidePagination?e.onColumnAdvancedSearch(t):(clearTimeout(o),o=setTimeout(function(){e.onColumnAdvancedSearch(t)},n.searchTimeOut))}),t("#btnCloseAvd_".concat(n.idTable)).click(function(){return e.hideModal()}),"bulma"===t.fn.bootstrapTable.theme&&t(r).find(".delete").off("click").on("click",function(){return e.hideModal()}),this.showModal()}else this.showModal()}},{key:"showModal",value:function(){var e="#avdSearchModal_"+this.options.idTable;-1!==t.inArray(t.fn.bootstrapTable.theme,["bootstrap3","bootstrap4"])?t(e).modal():"bulma"===t.fn.bootstrapTable.theme?t(e).toggleClass("is-active"):"foundation"===t.fn.bootstrapTable.theme?(this.toolbarModal||(this.toolbarModal=new Foundation.Reveal(t(e))),this.toolbarModal.open()):"materialize"===t.fn.bootstrapTable.theme?(t(e).modal(),t(e).modal("open")):"semantic"===t.fn.bootstrapTable.theme&&t(e).modal("show")}},{key:"hideModal",value:function(){var e=t("#avdSearchModal_".concat(this.options.idTable)),n="#avdSearchModal_"+this.options.idTable;-1!==t.inArray(t.fn.bootstrapTable.theme,["bootstrap3","bootstrap4"])?e.modal("hide"):"bulma"===t.fn.bootstrapTable.theme?(t("html").toggleClass("is-clipped"),t(n).toggleClass("is-active")):"foundation"===t.fn.bootstrapTable.theme?this.toolbarModal.close():"materialize"===t.fn.bootstrapTable.theme?t(n).modal("open"):"semantic"===t.fn.bootstrapTable.theme&&t(n).modal("close"),"server"===this.options.sidePagination&&(this.options.pageNumber=1,this.updatePagination(),this.trigger("column-advanced-search",this.filterColumnsPartial))}},{key:"createFormAvd",value:function(){var t=this.options,e=['<form class="form-horizontal" id="'.concat(t.idForm,'" action="').concat(t.actionForm,'">')],n=!0,r=!1,o=void 0;try{for(var i,a=this.columns[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;!s.checkbox&&s.visible&&s.searchable&&e.push('\n <div class="form-group row">\n <label class="col-sm-4 control-label">'.concat(s.title,'</label>\n <div class="col-sm-6">\n <input type="text" class="form-control ').concat(this.constants.classes.input,'" name="').concat(s.field,'" placeholder="').concat(s.title,'" id="').concat(s.field,'">\n </div>\n </div>\n '))}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e.push("</form>"),e}},{key:"initSearch",value:function(){var e=this;if(f(s(n.prototype),"initSearch",this).call(this),this.options.advancedSearch&&"server"!==this.options.sidePagination){var r=t.isEmptyObject(this.filterColumnsPartial)?null:this.filterColumnsPartial;this.data=r?this.data.filter(function(t,n){for(var o=0,i=Object.entries(r);o<i.length;o++){var a=d(i[o],2),s=a[0],l=a[1],c=l.toLowerCase(),u=t[s],h=e.header.fields.indexOf(s);if(u=To.calculateObjectValue(e.header,e.header.formatters[h],[u,t,n],u),-1===h||"string"!=typeof u&&"number"!=typeof u||!"".concat(u).toLowerCase().includes(c))return!1}return!0}):this.data}}},{key:"onColumnAdvancedSearch",value:function(e){var n=t.trim(t(e.currentTarget).val()),r=t(e.currentTarget)[0].id;t.isEmptyObject(this.filterColumnsPartial)&&(this.filterColumnsPartial={}),n?this.filterColumnsPartial[r]=n:delete this.filterColumnsPartial[r],"server"!==this.options.sidePagination&&(this.options.pageNumber=1,this.onSearch(e),this.updatePagination(),this.trigger("column-advanced-search",r,n))}}]),n}(t.BootstrapTable)});
|