74 lines
60 KiB
JavaScript
74 lines
60 KiB
JavaScript
|
|
/** @license
|
||
|
|
*
|
||
|
|
* jsPDF - PDF Document creation from JavaScript
|
||
|
|
* Version 2.5.2 Built on 2024-09-17T13:29:57.860Z
|
||
|
|
* CommitID 00000000
|
||
|
|
*
|
||
|
|
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
||
|
|
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
||
|
|
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
||
|
|
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
||
|
|
* 2010 Aaron Spike, https://github.com/acspike
|
||
|
|
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
||
|
|
* 2012 Pablo Hess, https://github.com/pablohess
|
||
|
|
* 2012 Florian Jenett, https://github.com/fjenett
|
||
|
|
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
||
|
|
* 2013 Youssef Beddad, https://github.com/lifof
|
||
|
|
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
||
|
|
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
||
|
|
* 2013 Jeremy Morel, https://github.com/jmorel
|
||
|
|
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
||
|
|
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
||
|
|
* 2014 James Makes, https://github.com/dollaruw
|
||
|
|
* 2014 Diego Casorran, https://github.com/diegocr
|
||
|
|
* 2014 Steven Spungin, https://github.com/Flamenco
|
||
|
|
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
||
|
|
*
|
||
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||
|
|
* a copy of this software and associated documentation files (the
|
||
|
|
* "Software"), to deal in the Software without restriction, including
|
||
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
||
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
||
|
|
* the following conditions:
|
||
|
|
*
|
||
|
|
* The above copyright notice and this permission notice shall be
|
||
|
|
* included in all copies or substantial portions of the Software.
|
||
|
|
*
|
||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
|
*
|
||
|
|
* Contributor(s):
|
||
|
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
||
|
|
* kim3er, mfo, alnorth, Flamenco
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Copyright (c) 2014-2023 Denis Pushkarev
|
||
|
|
*
|
||
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
|
* of this software and associated documentation files (the "Software"), to deal
|
||
|
|
* in the Software without restriction, including without limitation the rights
|
||
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
|
* copies of the Software, and to permit persons to whom the Software is
|
||
|
|
* furnished to do so, subject to the following conditions:
|
||
|
|
*
|
||
|
|
* The above copyright notice and this permission notice shall be included in
|
||
|
|
* all copies or substantial portions of the Software.
|
||
|
|
*
|
||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
|
|
* THE SOFTWARE.
|
||
|
|
*/
|
||
|
|
|
||
|
|
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,r){return t(r={exports:{}},r.exports),r.exports}var e,n,o=function(t){return t&&t.Math===Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,s=c?f.bind(f):function(){return f.apply(f,arguments)},l={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y={f:p&&!l.call({1:2},1)?function(t){var r=p(this,t);return!!r&&r.enumerable}:l},h=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},d=Function.prototype,v=d.call,g=c&&d.bind.bind(v,v),b=c?g:function(t){return function(){return v.apply(t,arguments)}},w=b({}.toString),m=b("".slice),A=function(t){return m(w(t),8,-1)},T=Object,E=b("".split),O=a((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"===A(t)?E(t,""):T(t)}:T,S=function(t){return null==t},j=TypeError,R=function(t){if(S(t))throw new j("Can't call method on "+t);return t},M=function(t){return O(R(t))},x="object"==typeof document&&document.all,I={all:x,IS_HTMLDDA:void 0===x&&void 0!==x},P=I.all,L=I.IS_HTMLDDA?function(t){return"function"==typeof t||t===P}:function(t){return"function"==typeof t},C=I.all,_=I.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===C}:function(t){return"object"==typeof t?null!==t:L(t)},B=function(t){return L(t)?t:void 0},F=function(t,r){return arguments.length<2?B(i[t]):i[t]&&i[t][r]},U=b({}.isPrototypeOf),D="undefined"!=typeof navigator&&String(navigator.userAgent)||"",N=i.process,k=i.Deno,W=N&&N.versions||k&&k.version,V=W&&W.v8;V&&(n=(e=V.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!n&&D&&(!(e=D.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=D.match(/Chrome\/(\d+)/))&&(n=+e[1]);var Y=n,G=i.String,z=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol("symbol detection");return!G(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),q=z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,X=q?function(t){return"symbol"==typeof t}:function(t){var r=F("Symbol");return L(r)&&U(r.prototype,H(t))},K=String,J=function(t){try{return K(t)}catch(t){return"Object"}},$=TypeError,Q=function(t){if(L(t))return t;throw new $(J(t)+" is not a function")},Z=function(t,r){var e=t[r];return S(e)?void 0:Q(e)},tt=TypeError,rt=Object.defineProperty,et=function(t,r){try{rt(i,t,{value:r,configurable:!0,writable:!0})}catch(e){i[t]=r}return r},nt=i["__core-js_shared__"]||et("__core-js_shared__",{}),ot=r((function(t){(t.exports=function(t,r){return nt[t]||(nt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),it=Object,at=function(t){return it(R(t))},ut=b({}.hasOwnProperty),ct=Object.hasOwn||function(t,r){return ut(at(t),r)},ft=0,st=Math.random(),lt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+lt(++ft+st,36)},yt=i.Symbol,ht=ot("wks"),dt=q?yt.for||yt:yt&&yt.withoutSetter||pt,vt=function(t){return ct(ht,t)||(ht[t]=z&&ct(yt,t)?yt[t]:dt("Symbol."+t)),ht[t]},gt=TypeError,bt=vt("toPrimitive"),wt=function(t,r){if(!_(t)||X(t))return t;var e,n=Z(t,bt);if(n){if(void 0===r&&(r="default"),e=s(n,t,r),!_(e)||X(e))return e;throw new gt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,n;if("string"===r&&L(e=t.toString)&&!_(n=s(e,t)))return n;if(L(e=t.valueOf)&&!_(n=s(e,t)))return n;if("string"!==r&&L(e=t.toString)&&!_(n=s(e,t)))ret
|