You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
469 KiB
7 lines
469 KiB
|
6 months ago
|
/**
|
||
|
|
* html2pdf.js v0.9.1
|
||
|
|
* Copyright (c) 2018 Erik Koopmans
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/
|
||
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.html2pdf=e()}(this,function(){"use strict";function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function A(t,e){return e={exports:{}},t(e,e.exports),e.exports}var r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(A(function(e,A){e.exports=function(){function e(t){return"function"==typeof t}function A(){var t=setTimeout;return function(){return t(n,1)}}function n(){for(var t=0;t<y;t+=2){var e=H[t],A=H[t+1];e(A),H[t]=void 0,H[t+1]=void 0}y=0}function i(t,e){var A=this,r=new this.constructor(a);void 0===r[S]&&B(r);var n=A._state;if(n){var i=arguments[n-1];C(function(){return g(n,r,i,A._result)})}else f(A,r,t,e);return r}function o(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(a);return l(e,t),e}function a(){}function s(t){try{return t.then}catch(t){return k.error=t,k}}function c(t,A,r){A.constructor===t.constructor&&r===i&&A.constructor.resolve===o?function(t,e){e._state===T?h(t,e._result):e._state===N?d(t,e._result):f(e,void 0,function(e){return l(t,e)},function(e){return d(t,e)})}(t,A):r===k?(d(t,k.error),k.error=null):void 0===r?h(t,A):e(r)?function(t,e,A){C(function(t){var r=!1,n=function(t,e,A,r){try{t.call(e,A,r)}catch(t){return t}}(A,e,function(A){r||(r=!0,e!==A?l(t,A):h(t,A))},function(e){r||(r=!0,d(t,e))},t._label);!r&&n&&(r=!0,d(t,n))},t)}(t,A,r):h(t,A)}function l(t,e){t===e?d(t,new TypeError("You cannot resolve a promise with itself")):!function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}(e)?h(t,e):c(t,e,s(e))}function u(t){t._onerror&&t._onerror(t._result),p(t)}function h(t,e){t._state===_&&(t._result=e,t._state=T,0!==t._subscribers.length&&C(p,t))}function d(t,e){t._state===_&&(t._state=N,t._result=e,C(u,t))}function f(t,e,A,r){var n=t._subscribers,i=n.length;t._onerror=null,n[i]=e,n[i+T]=A,n[i+N]=r,0===i&&t._state&&C(p,t)}function p(t){var e=t._subscribers,A=t._state;if(0!==e.length){for(var r=void 0,n=void 0,i=t._result,o=0;o<e.length;o+=3)r=e[o],n=e[o+A],r?g(A,r,n,i):n(i);t._subscribers.length=0}}function g(t,A,r,n){var i=e(r),o=void 0,a=void 0,s=void 0,c=void 0;if(i){if((o=function(t,e){try{return t(e)}catch(t){return k.error=t,k}}(r,n))===k?(c=!0,a=o.error,o.error=null):s=!0,A===o)return void d(A,new TypeError("A promises callback cannot return that same promise."))}else o=n,s=!0;A._state!==_||(i&&s?l(A,o):c?d(A,a):t===T?h(A,o):t===N&&d(A,o))}function B(t){t[S]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var w=void 0;w=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var m=w,y=0,v=void 0,Q=void 0,C=function(t,e){H[y]=t,H[y+1]=e,2===(y+=2)&&(Q?Q(n):I())};var U="undefined"!=typeof window?window:void 0,b=U||{},F=b.MutationObserver||b.WebKitMutationObserver,E="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),x="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var H=new Array(1e3);var I=void 0;I=E?function(){return process.nextTick(n)}:F?function(){var t=0,e=new F(n),A=document.createTextNode("");return e.observe(A,{characterData:!0}),function(){A.data=t=++t%2}}():x?function(){var t=new MessageChannel;return t.port1.onmessage=n,function(){return t.port2.postMessage(0)}}():void 0===U&&"function"==typeof t?function(){try{var t=Function("return this")().require("vertx");return v=t.runOnLoop||t.runOnContext,function(){if(void 0!==v)return function(){v(n)};return A()}()}catch(t){return A()}}():A();var S=Math.random().toString(36).substring(2);var _=void 0,T=1,N=2,k={error:null};var O=0;var P=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(a),this.promise[S]||B(this.promise),m(e)?(this.length=e.length,this._remaining=e.length,this._re
|