svgedit/dist/editor/index.js

557 lines
1.8 MiB
JavaScript
Raw Normal View History

2020-09-08 23:35:47 +00:00
var er="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(er,tr,rr){return er(rr={path:tr,exports:{},require:function(er,tr){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==tr&&rr.path)}},rr.exports),rr.exports}var check=function(er){return er&&er.Math==Math&&er},tr=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof er&&er)||Function("return this")(),fails=function(er){try{return!!er()}catch(er){return!0}},rr=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nr={}.propertyIsEnumerable,ar=Object.getOwnPropertyDescriptor,ir={f:ar&&!nr.call({1:2},1)?function propertyIsEnumerable(er){var tr=ar(this,er);return!!tr&&tr.enumerable}:nr},createPropertyDescriptor=function(er,tr){return{enumerable:!(1&er),configurable:!(2&er),writable:!(4&er),value:tr}},or={}.toString,classofRaw=function(er){return or.call(er).slice(8,-1)},sr="".split,lr=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(er){return"String"==classofRaw(er)?sr.call(er,""):Object(er)}:Object,requireObjectCoercible=function(er){if(null==er)throw TypeError("Can't call method on "+er);return er},toIndexedObject=function(er){return lr(requireObjectCoercible(er))},isObject=function(er){return"object"==typeof er?null!==er:"function"==typeof er},toPrimitive=function(er,tr){if(!isObject(er))return er;var rr,nr;if(tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;if("function"==typeof(rr=er.valueOf)&&!isObject(nr=rr.call(er)))return nr;if(!tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;throw TypeError("Can't convert object to primitive value")},cr={}.hasOwnProperty,has=function(er,tr){return cr.call(er,tr)},ur=tr.document,dr=isObject(ur)&&isObject(ur.createElement),documentCreateElement=function(er){return dr?ur.createElement(er):{}},hr=!rr&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),pr=Object.getOwnPropertyDescriptor,Ar={f:rr?pr:function getOwnPropertyDescriptor(er,tr){if(er=toIndexedObject(er),tr=toPrimitive(tr,!0),hr)try{return pr(er,tr)}catch(er){}if(has(er,tr))return createPropertyDescriptor(!ir.f.call(er,tr),er[tr])}},anObject=function(er){if(!isObject(er))throw TypeError(String(er)+" is not an object");return er},fr=Object.defineProperty,gr={f:rr?fr:function defineProperty(er,tr,rr){if(anObject(er),tr=toPrimitive(tr,!0),anObject(rr),hr)try{return fr(er,tr,rr)}catch(er){}if("get"in rr||"set"in rr)throw TypeError("Accessors not supported");return"value"in rr&&(er[tr]=rr.value),er}},mr=rr?function(er,tr,rr){return gr.f(er,tr,createPropertyDescriptor(1,rr))}:function(er,tr,rr){return er[tr]=rr,er},setGlobal=function(er,rr){try{mr(tr,er,rr)}catch(nr){tr[er]=rr}return rr},_r=tr["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),vr=Function.toString;"function"!=typeof _r.inspectSource&&(_r.inspectSource=function(er){return vr.call(er)});var yr,br,wr,kr=_r.inspectSource,xr=tr.WeakMap,Sr="function"==typeof xr&&/native code/.test(kr(xr)),Cr=createCommonjsModule((function(er){(er.exports=function(er,tr){return _r[er]||(_r[er]=void 0!==tr?tr:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Br=0,Er=Math.random(),uid=function(er){return"Symbol("+String(void 0===er?"":er)+")_"+(++Br+Er).toString(36)},Nr=Cr("keys"),sharedKey=function(er){return Nr[er]||(Nr[er]=uid(er))},Lr={},Pr=tr.WeakMap;if(Sr){var Tr=new Pr,Fr=Tr.get,Ur=Tr.has,Ir=Tr.set;yr=function(er,tr){return Ir.call(Tr,er,tr),tr},br=function(er){return Fr.call(Tr,er)||{}},wr=function(er){return Ur.call(Tr,er)}}else{var Rr=sharedKey("state");Lr[Rr]=!0,yr=function(er,tr){return mr(er,Rr,tr),tr},br=function(er){return has(er,Rr)?er[Rr]:{}},wr=function(er){return has(er,Rr)}}var
2020-09-04 20:34:30 +00:00
/**
* Namespaces or tools therefor.
* @module namespaces
* @license MIT
*/
2020-09-08 23:35:47 +00:00
var Yu={HTML:"http://www.w3.org/1999/xhtml",MATH:"http://www.w3.org/1998/Math/MathML",SE:"http://svg-edit.googlecode.com",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},Ju=function getReverseNS(){var er={};return Object.entries(Yu).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ar=rr[1];er[ar]=nr.toLowerCase()})),er},$u=arrayMethodHasSpeciesSupport("splice"),Zu=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),ed=Math.max,td=Math.min;_export({target:"Array",proto:!0,forced:!$u||!Zu},{splice:function splice(er,tr){var rr,nr,ar,ir,or,sr,lr=toObject(this),cr=toLength(lr.length),ur=toAbsoluteIndex(er,cr),dr=arguments.length;if(0===dr?rr=nr=0:1===dr?(rr=0,nr=cr-ur):(rr=dr-2,nr=td(ed(toInteger(tr),0),cr-ur)),cr+rr-nr>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(ar=arraySpeciesCreate(lr,nr),ir=0;ir<nr;ir++)(or=ur+ir)in lr&&createProperty(ar,ir,lr[or]);if(ar.length=nr,rr<nr){for(ir=ur;ir<cr-nr;ir++)sr=ir+rr,(or=ir+nr)in lr?lr[sr]=lr[or]:delete lr[sr];for(ir=cr;ir>cr-nr+rr;ir--)delete lr[ir-1]}else if(rr>nr)for(ir=cr-nr;ir>ur;ir--)sr=ir+rr-1,(or=ir+nr-1)in lr?lr[sr]=lr[or]:delete lr[sr];for(ir=0;ir<rr;ir++)lr[ir+ur]=arguments[ir+2];return lr.length=cr-nr+rr,ar}}),_export({target:"Object",stat:!0,forced:!rr,sham:!rr},{defineProperties:ma}),function(){if(!("SVGPathSeg"in window)){var er=function(){function _SVGPathSeg(er,tr,rr){_classCallCheck(this,_SVGPathSeg),this.pathSegType=er,this.pathSegTypeAsLetter=tr,this._owningPathSegList=rr}return _createClass(_SVGPathSeg,[{key:"_segmentChanged",value:function _segmentChanged(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)}}]),_SVGPathSeg}();er.prototype.classname="SVGPathSeg",er.PATHSEG_UNKNOWN=0,er.PATHSEG_CLOSEPATH=1,er.PATHSEG_MOVETO_ABS=2,er.PATHSEG_MOVETO_REL=3,er.PATHSEG_LINETO_ABS=4,er.PATHSEG_LINETO_REL=5,er.PATHSEG_CURVETO_CUBIC_ABS=6,er.PATHSEG_CURVETO_CUBIC_REL=7,er.PATHSEG_CURVETO_QUADRATIC_ABS=8,er.PATHSEG_CURVETO_QUADRATIC_REL=9,er.PATHSEG_ARC_ABS=10,er.PATHSEG_ARC_REL=11,er.PATHSEG_LINETO_HORIZONTAL_ABS=12,er.PATHSEG_LINETO_HORIZONTAL_REL=13,er.PATHSEG_LINETO_VERTICAL_ABS=14,er.PATHSEG_LINETO_VERTICAL_REL=15,er.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,er.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,er.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,er.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19;var tr=function(tr){_inherits(_SVGPathSegClosePath,tr);var rr=_createSuper(_SVGPathSegClosePath);function _SVGPathSegClosePath(tr){return _classCallCheck(this,_SVGPathSegClosePath),rr.call(this,er.PATHSEG_CLOSEPATH,"z",tr)}return _createClass(_SVGPathSegClosePath,[{key:"toString",value:function toString(){return"[object SVGPathSegClosePath]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter}},{key:"clone",value:function clone(){return new _SVGPathSegClosePath(void 0)}}]),_SVGPathSegClosePath}(er),rr=function(tr){_inherits(_SVGPathSegMovetoAbs,tr);var rr=_createSuper(_SVGPathSegMovetoAbs);function _SVGPathSegMovetoAbs(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegMovetoAbs),(ir=rr.call(this,er.PATHSEG_MOVETO_ABS,"M",tr))._x=nr,ir._y=ar,ir}return _createClass(_SVGPathSegMovetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){return new _SVGPathSegMovetoAbs(void 0,this._x,this._y)}}]),_SVGPathSegMovetoAbs}(er);Object.defineProperties(rr.prototype,{x:{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0},y:{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}});var nr=function(tr){_inherits(_SVGPathSegMovetoRel,tr);var rr=_createSuper(_SVGPathSegMovetoRel);function _SVGPathSegMovetoRel(tr,nr,ar){var ir;return _classCallCheck(this,_SVGPathSegMovetoRel),(ir=rr.call(this,er.PATHSEG_MOVETO_REL,"m",tr))._x=nr,ir._y=a
2020-09-04 20:34:30 +00:00
/**
* A jQuery module to work with SVG attributes.
* @module jQueryAttr
* @license MIT
*/
2020-09-08 23:35:47 +00:00
function jQueryPluginSVG(er){var tr=er.fn.attr;return er.fn.attr=function(er,rr){var nr=this.length;if(!nr)return tr.call(this,er,rr);for(var ar=0;ar<nr;++ar){var ir=this[ar];if("http://www.w3.org/2000/svg"!==ir.namespaceURI)return tr.call(this,er,rr);if(void 0!==rr)ir.setAttribute(er,rr);else if(Array.isArray(er)){for(var or={},sr=er.length;sr--;){var lr=er[sr],cr=ir.getAttribute(lr);(cr||"0"===cr)&&(cr=isNaN(cr)?cr:cr-0),or[lr]=cr}return or}if("object"!==_typeof(er)){var ur=ir.getAttribute(er);return(ur||"0"===ur)&&(ur=isNaN(ur)?ur:ur-0),ur}for(var dr=0,hr=Object.entries(er);dr<hr.length;dr++){var pr=_slicedToArray(hr[dr],2),Ar=pr[0],fr=pr[1];ir.setAttribute(Ar,fr)}}return this},er}jp("toString",Vp,Kp);var qp=document.createElementNS(Yu.SVG,"svg");function transformToString(er){var tr=er.matrix,rr="";switch(er.type){case 1:rr="matrix("+[tr.a,tr.b,tr.c,tr.d,tr.e,tr.f].join(",")+")";break;case 2:rr="translate("+tr.e+","+tr.f+")";break;case 3:rr=tr.a===tr.d?"scale("+tr.a+")":"scale("+tr.a+","+tr.d+")";break;case 4:var nr=0,ar=0;if(0!==er.angle){var ir=1-tr.a;ar=(ir*tr.f+tr.b*tr.e)/(ir*ir+tr.b*tr.b),nr=(tr.e-tr.b*ar)/ir}rr="rotate("+er.angle+" "+nr+","+ar+")"}return rr}var Wp,Xp={},Yp=function(){function SVGTransformList(er){_classCallCheck(this,SVGTransformList),this._elem=er||null,this._xforms=[],this._update=function(){for(var er="",tr=0;tr<this.numberOfItems;++tr){er+=transformToString(this._list.getItem(tr))+" "}this._elem.setAttribute("transform",er)},this._list=this,this._init=function(){var er=this,tr=this._elem.getAttribute("transform");if(tr)for(var rr=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,nr=!0;nr;)nr=tr.match(rr),tr=tr.replace(rr,""),nr&&nr[1]&&function(){var tr=nr[1].split(/\s*\(/),rr=tr[0],ar=tr[1].match(/\s*(.*?)\s*\)/);ar[1]=ar[1].replace(/(\d)-/g,"$1 -");var ir=ar[1].split(/[, ]+/),or="abcdef".split(""),sr=qp.createSVGMatrix();Object.values(ir).forEach((function(er,tr){ir[tr]=Number.parseFloat(er),"matrix"===rr&&(sr[or[tr]]=ir[tr])}));var lr=qp.createSVGTransform(),cr="set"+rr.charAt(0).toUpperCase()+rr.slice(1),ur="matrix"===rr?[sr]:ir;"scale"===rr&&1===ur.length?ur.push(ur[0]):"translate"===rr&&1===ur.length?ur.push(0):"rotate"===rr&&1===ur.length&&ur.push(0,0),lr[cr].apply(lr,_toConsumableArray(ur)),er._list.appendItem(lr)}()},this._removeFromOtherLists=function(er){er&&Object.values(Xp).some((function(tr){for(var rr=0,nr=tr._xforms.length;rr<nr;++rr)if(tr._xforms[rr]===er)return tr.removeItem(rr),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(er){this.numberOfItems=1,this._removeFromOtherLists(er),this._xforms=[er]}},{key:"getItem",value:function getItem(er){if(er<this.numberOfItems&&er>=0)return this._xforms[er];var tr=new Error("DOMException with code=INDEX_SIZE_ERR");throw tr.code=1,tr}},{key:"insertItemBefore",value:function insertItemBefore(er,tr){var rr=null;if(tr>=0)if(tr<this.numberOfItems){this._removeFromOtherLists(er);var nr,ar=new Array(this.numberOfItems+1);for(nr=0;nr<tr;++nr)ar[nr]=this._xforms[nr];ar[nr]=er;for(var ir=nr+1;nr<this.numberOfItems;++ir,++nr)ar[ir]=this._xforms[nr];this.numberOfItems++,this._xforms=ar,rr=er,this._list._update()}else rr=this._list.appendItem(er);return rr}},{key:"replaceItem",value:function replaceItem(er,tr){var rr=null;return tr<this.numberOfItems&&tr>=0&&(this._removeFromOtherLists(er),this._xforms[tr]=er,rr=er,this._list._update()),rr}},{key:"removeItem",value:function removeItem(er){if(er<this.numberOfItems&&er>=0){var tr,rr=this._xforms[er],nr=new Array(this.numberOfItems-1);for(tr=0;tr<er;++tr)nr[tr]=this._xforms[tr];for(var ar=tr;ar<this.numberOfItems-1;++ar,++tr)nr[ar]=this._xforms[tr+1];return this.numberOfItems--,this._xforms=nr,this._list._update(),rr}var ir=new Error("DOMException with code=INDEX_SIZE_ERR");throw ir.code=1,ir}},{key:"appendItem",value:function appendItem(er){return this._removeFromOtherLists(er),this._xforms.push(er),this.numberOfItems++,this._list._update(),er}}])
2020-09-04 20:34:30 +00:00
/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.1.1 Built on 2020-09-07T12:58:19.950Z
2020-09-04 20:34:30 +00:00
* CommitID 00000000
*
* Copyright (c) 2010-2020 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2020 yWorks GmbH, http://www.yworks.com
* 2015-2020 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, willow-systems.com
* 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
2020-09-08 23:35:47 +00:00
*/
var Cf=function(){return"undefined"!=typeof window?window:void 0!==gf?gf:"undefined"!=typeof self?self:this}();function e(){Cf.console&&"function"==typeof Cf.console.log&&Cf.console.log.apply(Cf.console,arguments)}var Bf={log:e,warn:function warn(er){Cf.console&&("function"==typeof Cf.console.warn?Cf.console.warn.apply(Cf.console,arguments):e.call(null,arguments))},error:function error(er){Cf.console&&("function"==typeof Cf.console.error?Cf.console.error.apply(Cf.console,arguments):e(er))}};
2020-09-04 20:34:30 +00:00
/**
* @license
* FileSaver.js
* A saveAs() FileSaver implementation.
*
* By Eli Grey, http://eligrey.com
*
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
* source : http://purl.eligrey.com/github/FileSaver.js
2020-09-08 23:35:47 +00:00
*/function r(er,tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er),nr.responseType="blob",nr.onload=function(){Lf(nr.response,tr,rr)},nr.onerror=function(){Bf.error("could not download file")},nr.send()}function i(er){var tr=new XMLHttpRequest;tr.open("HEAD",er,!1);try{tr.send()}catch(er){}return tr.status>=200&&tr.status<=299}function a(er){try{er.dispatchEvent(new MouseEvent("click"))}catch(rr){var tr=document.createEvent("MouseEvents");tr.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),er.dispatchEvent(tr)}}var Ef,Nf,Lf=Cf.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==Cf?function(){}:"download"in HTMLAnchorElement.prototype?function(er,tr,rr){var nr=Cf.URL||Cf.webkitURL,ar=document.createElement("a");tr=tr||er.name||"download",ar.download=tr,ar.rel="noopener","string"==typeof er?(ar.href=er,ar.origin!==location.origin?i(ar.href)?r(er,tr,rr):a(ar,ar.target="_blank"):a(ar)):(ar.href=nr.createObjectURL(er),setTimeout((function(){nr.revokeObjectURL(ar.href)}),4e4),setTimeout((function(){a(ar)}),0))}:"msSaveOrOpenBlob"in navigator?function(er,tr,rr){if(tr=tr||er.name||"download","string"==typeof er)if(i(er))r(er,tr,rr);else{var nr=document.createElement("a");nr.href=er,nr.target="_blank",setTimeout((function(){a(nr)}))}else navigator.msSaveOrOpenBlob(function(er,tr){return void 0===tr?tr={autoBom:!1}:"object"!=_typeof(tr)&&(Bf.warn("Deprecated: Expected third argument to be a object"),tr={autoBom:!tr}),tr.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(er.type)?new Blob([String.fromCharCode(65279),er],{type:er.type}):er}(er,rr),tr)}:function(er,tr,rr,nr){if((nr=nr||open("","_blank"))&&(nr.document.title=nr.document.body.innerText="downloading..."),"string"==typeof er)return r(er,tr,rr);var ar="application/octet-stream"===er.type,ir=/constructor/i.test(Cf.HTMLElement)||Cf.safari,or=/CriOS\/[\d]+/.test(navigator.userAgent);if((or||ar&&ir)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var sr=new FileReader;sr.onloadend=function(){var er=sr.result;er=or?er:er.replace(/^data:[^;]*;/,"data:attachment/file;"),nr?nr.location.href=er:location=er,nr=null},sr.readAsDataURL(er)}else{var lr=Cf.URL||Cf.webkitURL,cr=lr.createObjectURL(er);nr?nr.location=cr:location.href=cr,nr=null,setTimeout((function(){lr.revokeObjectURL(cr)}),4e4)}});
2020-09-04 20:34:30 +00:00
/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function c(er){var tr;er=er||"",this.ok=!1,"#"==er.charAt(0)&&(er=er.substr(1,6)),er={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[er=(er=er.replace(/ /g,"")).toLowerCase()]||er;for(var rr=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}],nr=0;nr<rr.length;nr++){var ar=rr[nr].re,ir=rr[nr].process,or=ar.exec(er);or&&(tr=ir(or),this.r=tr[0],this.g=tr[1],this.b=tr[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr}}function h(er){if("object"!=_typeof(er))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var tr={};this.subscribe=function(er,rr,nr
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(er){var tr=function e(er){if(void 0!==er&&""!=er)return!0};g.API.events.push(["addPage",function(er){this.internal.getPageInfo(er.pageNumber).pageContext.annotations=[]}]),er.events.push(["putPage",function(er){for(var rr,nr,ar,ir=this.internal.getCoordinateString,or=this.internal.getVerticalCoordinateString,sr=this.internal.getPageInfoByObjId(er.objId),lr=er.pageContext.annotations,cr=!1,ur=0;ur<lr.length&&!cr;ur++)switch((rr=lr[ur]).type){case"link":(tr(rr.options.url)||tr(rr.options.pageNumber))&&(cr=!0);break;case"reference":case"text":case"freetext":cr=!0}if(0!=cr){this.internal.write("/Annots [");for(var dr=0;dr<lr.length;dr++)switch((rr=lr[dr]).type){case"reference":this.internal.write(" "+rr.object.objId+" 0 R ");break;case"text":var hr=this.internal.newAdditionalObject(),pr=this.internal.newAdditionalObject(),Ar=rr.title||"Note";ar="<</Type /Annot /Subtype /Text "+(nr="/Rect ["+ir(rr.bounds.x)+" "+or(rr.bounds.y+rr.bounds.h)+" "+ir(rr.bounds.x+rr.bounds.w)+" "+or(rr.bounds.y)+"] ")+"/Contents ("+rr.contents+")",ar+=" /Popup "+pr.objId+" 0 R",ar+=" /P "+sr.objId+" 0 R",ar+=" /T ("+Ar+") >>",hr.content=ar;var fr=hr.objId+" 0 R";ar="<</Type /Annot /Subtype /Popup "+(nr="/Rect ["+ir(rr.bounds.x+30)+" "+or(rr.bounds.y+rr.bounds.h)+" "+ir(rr.bounds.x+rr.bounds.w+30)+" "+or(rr.bounds.y)+"] ")+" /Parent "+fr,rr.open&&(ar+=" /Open true"),ar+=" >>",pr.content=ar,this.internal.write(hr.objId,"0 R",pr.objId,"0 R");break;case"freetext":nr="/Rect ["+ir(rr.bounds.x)+" "+or(rr.bounds.y)+" "+ir(rr.bounds.x+rr.bounds.w)+" "+or(rr.bounds.y+rr.bounds.h)+"] ";var gr=rr.color||"#000000";ar="<</Type /Annot /Subtype /FreeText "+nr+"/Contents ("+rr.contents+")",ar+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+gr+")",ar+=" /Border [0 0 0]",ar+=" >>",this.internal.write(ar);break;case"link":if(rr.options.name){var mr=this.annotations._nameMap[rr.options.name];rr.options.pageNumber=mr.page,rr.options.top=mr.y}else rr.options.top||(rr.options.top=0);if(nr="/Rect ["+ir(rr.x)+" "+or(rr.y)+" "+ir(rr.x+rr.w)+" "+or(rr.y+rr.h)+"] ",ar="",rr.options.url)ar="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /A <</S /URI /URI ("+rr.options.url+") >>";else if(rr.options.pageNumber)switch(ar="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(rr.options.pageNumber).objId+" 0 R",rr.options.magFactor=rr.options.magFactor||"XYZ",rr.options.magFactor){case"Fit":ar+=" /Fit]";break;case"FitH":ar+=" /FitH "+rr.options.top+"]";break;case"FitV":rr.options.left=rr.options.left||0,ar+=" /FitV "+rr.options.left+"]";break;case"XYZ":default:var _r=or(rr.options.top);rr.options.left=rr.options.left||0,void 0===rr.options.zoom&&(rr.options.zoom=0),ar+=" /XYZ "+rr.options.left+" "+_r+" "+rr.options.zoom+"]"}""!=ar&&(ar+=" >>",this.internal.write(ar))}this.internal.write("]")}}]),er.createAnnotation=function(er){var tr=this.internal.getCurrentPageInfo();switch(er.type){case"link":this.link(er.bounds.x,er.bounds.y,er.bounds.w,er.bounds.h,er);break;case"text":case"freetext":tr.pageContext.annotations.push(er)}},er.link=function(er,tr,rr,nr,ar){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:er,y:tr,w:rr,h:nr,options:ar,type:"link"})},er.textWithLink=function(er,tr,rr,nr){var ar=this.getTextWidth(er),ir=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(er,tr,rr,nr),rr+=.2*ir,this.link(tr,rr-ir,ar,ir,nr),ar},er.getTextWidth=function(er){var tr=this.internal.getFontSize();return this.getStringUnitWidth(er)*tr/this.internal.scaleFactor}}(g.API),
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(er){var tr={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},rr={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},nr={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ar=[1570,1571,1573,1575];er.__arabicParser__={};var ir=er.__arabicParser__.isInArabicSubstitutionA=function(er){return void 0!==tr[er.charCodeAt(0)]},or=er.__arabicParser__.isArabicLetter=function(er){return"string"==typeof er&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(er)},sr=er.__arabicParser__.isArabicEndLetter=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length<=2},lr=er.__arabicParser__.isArabicAlfLetter=function(er){return or(er)&&ar.indexOf(er.charCodeAt(0))>=0};er.__arabicParser__.arabicLetterHasIsolatedForm=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length>=1};var cr=er.__arabicParser__.arabicLetterHasFinalForm=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length>=2};er.__arabicParser__.arabicLetterHasInitialForm=function(er){return or(er)&&ir(er)&&tr[er.charCodeAt(0)].length>=3};var ur=er.__arabicParser__.arabicLetterHasMedialForm=function(er){return or(er)&&ir(er)&&4==tr[er.charCodeAt(0)].length},dr=er.__arabicParser__.resolveLigatures=function(er){var tr=0,nr=rr,ar="",ir=0;for(tr=0;tr<er.length;tr+=1)void 0!==nr[er.charCodeAt(tr)]?(ir++,"number"==typeof(nr=nr[er.charCodeAt(tr)])&&(ar+=String.fromCharCode(nr),nr=rr,ir=0),tr===er.length-1&&(nr=rr,ar+=er.charAt(tr-(ir-1)),tr-=ir-1,ir=0)):(nr=rr,ar+=er.charAt(tr-ir),tr-=ir,ir=0);return ar};er.__arabicParser__.isArabicDiacritic=function(er){return void 0!==er&&void 0!==nr[er.charCodeAt(0)]};var hr=er.__arabicParser__.getCorrectForm=function(er,tr,rr){return or(er)?!1===ir(er)?-1:!cr(er)||!or(tr)&&!or(rr)||!or(rr)&&sr(tr)||sr(er)&&!or(tr)||sr(er)&&lr(tr)||sr(er)&&sr(tr)?0:ur(er)&&or(tr)&&!sr(tr)&&or(rr)&&cr(rr)?3:sr(er)||!or(rr)?1:2:-1},pr=function d(er){var rr=0,nr=0,ar=0,ir="",sr="",lr="",cr=(er=er||"").split("\\s+"),ur=[];for(rr=0;rr<cr.length;rr+=1){fo
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(er){var tr=function e(){var er=void 0;Object.defineProperty(this,"pdf",{get:function get(){return er},set:function set(tr){er=tr}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(er){e=isNaN(er)||!1===Number.isInteger(er)||er<0?150:er,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var tr=300;Object.defineProperty(this,"height",{get:function get(){return tr},set:function set(er){tr=isNaN(er)||!1===Number.isInteger(er)||er<0?300:er,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=tr+1)}});var rr=[];Object.defineProperty(this,"childNodes",{get:function get(){return rr},set:function set(er){rr=er}});var nr={};Object.defineProperty(this,"style",{get:function get(){return nr},set:function set(er){nr=er}}),Object.defineProperty(this,"parentNode",{})};tr.prototype.getContext=function(er,tr){var rr;if("2d"!==(er=er||"2d"))return null;for(rr in tr)this.pdf.context2d.hasOwnProperty(rr)&&(this.pdf.context2d[rr]=tr[rr]);return this.pdf.context2d._canvas=this,this.pdf.context2d},tr.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},er.events.push(["initialized",function(){this.canvas=new tr,this.canvas.pdf=this}])}(g.API),
/**
* @license
* ====================================================================
* Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
* 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Hall, james@parall.ax
* 2014 Diego Casorran, https://github.com/diegocr
*
* 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.
* ====================================================================
*/
2020-09-08 23:35:47 +00:00
function(er){var tr={left:0,top:0,bottom:0,right:0},rr=!1,nr=function r(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},tr),this.internal.__cell__.margins.width=this.getPageWidth(),ar.call(this))},ar=function i(){this.internal.__cell__.lastCell=new ir,this.internal.__cell__.pages=1},ir=function a(){var er=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return er},set:function set(tr){er=tr}});var tr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return tr},set:function set(er){tr=er}});var rr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return rr},set:function set(er){rr=er}});var nr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return nr},set:function set(er){nr=er}});var ar=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return ar},set:function set(er){ar=er}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(er){a=er}});var ir=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return ir},set:function set(er){ir=er}}),this};ir.prototype.clone=function(){return new ir(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ir.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},er.setHeaderFunction=function(er){return nr.call(this),this.internal.__cell__.headerFunction="function"==typeof er?er:void 0,this},er.getTextDimensions=function(er,tr){nr.call(this);var rr=(tr=tr||{}).fontSize||this.getFontSize(),ar=tr.font||this.getFont(),ir=tr.scaleFactor||this.internal.scaleFactor,or=0,sr=0,lr=0;if(!Array.isArray(er)&&"string"!=typeof er){if("number"!=typeof er)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");er=String(er)}var cr=tr.maxWidth;cr>0?"string"==typeof er?er=this.splitTextToSize(er,cr):"[object Array]"===Object.prototype.toString.call(er)&&(er=this.splitTextToSize(er.join(" "),cr)):er=Array.isArray(er)?er:[er];for(var ur=0;ur<er.length;ur++)or<(lr=this.getStringUnitWidth(er[ur],{font:ar})*rr)&&(or=lr);return 0!==or&&(sr=er.length),{w:or/=ir,h:Math.max((sr*rr*this.getLineHeightFactor()-rr*(this.getLineHeightFactor()-1))/ir,0)}},er.cellAddPage=function(){nr.call(this),this.addPage();var er=this.internal.__cell__.margins||tr;return this.internal.__cell__.lastCell=new ir(er.left,er.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var or=er.cell=function(){var er;er=arguments[0]instanceof ir?arguments[0]:new ir(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),nr.call(this);var ar=this.internal.__cell__.lastCell,or=this.internal.__cell__.padding,sr=this.internal.__cell__.margins||tr,lr=this.internal.__cell__.tableHeaderRow,cr=this.internal.__cell__.printHeaders;return void 0!==ar.lineNumber&&(ar.lineNumber===er.lineNumber?(er.x=(ar.x||0)+(ar.width||0),er.y=ar.y||0):ar.y+ar.height+er.height+sr.bottom>this.getPageHeight()?(this.cellAddPage(),er.y=sr.top,cr&&lr&&(this.printHeaderRow(er.lineNumber,!0),er.y+=lr[0].height)):er.y=ar.y+ar.height||er.y),void 0!==er.text[0]&&(this.rect(er.x,er.y,er.width,er.height,!0===rr?"FD":void 0),"right"===er.align?this.text(er.text,er.x+er.width-or,er.y+or,{align:"right",baseline:"top"}):"center"===er.align?this.text(er.text,er.x+er.width/2,er.y+or,{align:"center",baseline:"top",maxWidth:er.width-or-or}):this.text(er.text,er.x+or,er.y+or,{align:"left",baseline:"top",maxWidth:er.width-or-or})),this.internal.__cell__.lastCell=er,this};er.table=function(er,rr,lr,cr,ur){if(nr.call(this),!lr)throw new Error("No data for PDF table.");var dr,hr,pr,Ar,fr=[],gr=[],mr=[],_r={},vr={},yr=[],br=[],wr=(ur=ur||{}).autoSize||!1,kr=!1!==ur.printHeaders,xr=ur.css&&void 0!==ur.css["font-size"]?16*ur.css["font-size"]:
2020-09-04 20:34:30 +00:00
/**
* @license
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
3. The names of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
2020-09-08 23:35:47 +00:00
var Sg=[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];function ft(){var er=this;function e(er,tr){var rr=0;do{rr|=1&er,er>>>=1,rr<<=1}while(--tr>0);return rr>>>1}er.build_tree=function(tr){var rr,nr,ar,ir=er.dyn_tree,or=er.stat_desc.static_tree,sr=er.stat_desc.elems,lr=-1;for(tr.heap_len=0,tr.heap_max=573,rr=0;rr<sr;rr++)0!==ir[2*rr]?(tr.heap[++tr.heap_len]=lr=rr,tr.depth[rr]=0):ir[2*rr+1]=0;for(;tr.heap_len<2;)ir[2*(ar=tr.heap[++tr.heap_len]=lr<2?++lr:0)]=1,tr.depth[ar]=0,tr.opt_len--,or&&(tr.static_len-=or[2*ar+1]);for(er.max_code=lr,rr=Math.floor(tr.heap_len/2);rr>=1;rr--)tr.pqdownheap(ir,rr);ar=sr;do{rr=tr.heap[1],tr.heap[1]=tr.heap[tr.heap_len--],tr.pqdownheap(ir,1),nr=tr.heap[1],tr.heap[--tr.heap_max]=rr,tr.heap[--tr.heap_max]=nr,ir[2*ar]=ir[2*rr]+ir[2*nr],tr.depth[ar]=Math.max(tr.depth[rr],tr.depth[nr])+1,ir[2*rr+1]=ir[2*nr+1]=ar,tr.heap[1]=ar++,tr.pqdownheap(ir,1)}while(tr.heap_len>=2);tr.heap[--tr.heap_max]=tr.heap[1],function(tr){var rr,nr,ar,ir,or,sr,lr=er.dyn_tree,cr=er.stat_desc.static_tree,ur=er.stat_desc.extra_bits,dr=er.stat_desc.extra_base,hr=er.stat_desc.max_length,pr=0;for(ir=0;ir<=15;ir++)tr.bl_count[ir]=0;for(lr[2*tr.heap[tr.heap_max]+1]=0,rr=tr.heap_max+1;rr<573;rr++)(ir=lr[2*lr[2*(nr=tr.heap[rr])+1]+1]+1)>hr&&(ir=hr,pr++),lr[2*nr+1]=ir,nr>er.max_code||(tr.bl_count[ir]++,or=0,nr>=dr&&(or=ur[nr-dr]),sr=lr[2*nr],tr.opt_len+=sr*(ir+or),cr&&(tr.static_len+=sr*(cr[2*nr+1]+or)));if(0!==pr){do{for(ir=hr-1;0===tr.bl_count[ir];)ir--;tr.bl_count[ir]--,tr.bl_count[ir+1]+=2,tr.bl_count[hr]--,pr-=2}while(pr>0);for(ir=hr;0!==ir;ir--)for(nr=tr.bl_count[ir];0!==nr;)(ar=tr.heap[--rr])>er.max_code||(lr[2*ar+1]!==ir&&(tr.opt_len+=(ir-lr[2*ar+1])*lr[2*ar],lr[2*ar+1]=ir),nr--)}}(tr),function(er,tr,rr){var nr,ar,ir,or=[],sr=0;for(nr=1;nr<=15;nr++)or[nr]=sr=sr+rr[nr-1]<<1;for(ar=0;ar<=tr;ar++)0!==(ir=er[2*ar+1])&&(er[2*ar]=e(or[ir]++,ir))}(ir,er.max_code,tr.bl_count)}}function dt(er,tr,rr,nr,ar){this.static_tree=er,this.extra_bits=tr,this.extra_base=rr,this.elems=nr,this.max_length=ar}function pt(er,tr,rr,nr,ar){this.good_length=er,this.max_lazy=tr,this.nice_length=rr,this.max_chain=nr,this.func=ar}ft._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,
2020-09-04 20:34:30 +00:00
/**
* @license
* jsPDF filters PlugIn
* Copyright (c) 2014 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/Lt.prototype={deflateInit:function deflateInit(er,tr){return this.dstate=new Nt,tr||(tr=15),this.dstate.deflateInit(this,er,tr)},deflate:function deflate(er){return this.dstate?this.dstate.deflate(this,er):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var er=this.dstate.deflateEnd();return this.dstate=null,er},deflateParams:function deflateParams(er,tr){return this.dstate?this.dstate.deflateParams(this,er,tr):-2},deflateSetDictionary:function deflateSetDictionary(er,tr){return this.dstate?this.dstate.deflateSetDictionary(this,er,tr):-2},read_buf:function read_buf(er,tr,rr){var nr=this.avail_in;return nr>rr&&(nr=rr),0===nr?0:(this.avail_in-=nr,er.set(this.next_in.subarray(this.next_in_index,this.next_in_index+nr),tr),this.next_in_index+=nr,this.total_in+=nr,nr)},flush_pending:function flush_pending(){var er=this.dstate.pending;er>this.avail_out&&(er=this.avail_out),0!==er&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+er),this.next_out_index),this.next_out_index+=er,this.dstate.pending_out+=er,this.total_out+=er,this.avail_out-=er,this.dstate.pending-=er,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(er){var tr=function e(er){var e,tr,rr,nr,ar,ir,or,sr,lr,cr;for(/[^\x00-\xFF]/.test(er),tr=[],rr=0,nr=(er+=e="\0\0\0\0".slice(er.length%4||4)).length;nr>rr;rr+=4)0!==(ar=(er.charCodeAt(rr)<<24)+(er.charCodeAt(rr+1)<<16)+(er.charCodeAt(rr+2)<<8)+er.charCodeAt(rr+3))?(ir=(ar=((ar=((ar=((ar=(ar-(cr=ar%85))/85)-(lr=ar%85))/85)-(sr=ar%85))/85)-(or=ar%85))/85)%85,tr.push(ir+33,or+33,sr+33,lr+33,cr+33)):tr.push(122);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(tr,e.length),String.fromCharCode.apply(String,tr)+"~>"},rr=function n(er){var tr,n,rr,nr,ar,ir=String,or="length",sr=255,lr="charCodeAt",cr="slice",ur="replace";for(er[cr](-2),er=er[cr](0,-2)[ur](/\s/g,"")[ur]("z","!!!!!"),rr=[],nr=0,ar=(er+=tr="uuuuu"[cr](er[or]%5||5))[or];ar>nr;nr+=5)n=52200625*(er[lr](nr)-33)+614125*(er[lr](nr+1)-33)+7225*(er[lr](nr+2)-33)+85*(er[lr](nr+3)-33)+(er[lr](nr+4)-33),rr.push(sr&n>>24,sr&n>>16,sr&n>>8,sr&n);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(rr,tr[or]),ir.fromCharCode.apply(ir,rr)},nr=function r(er){var tr=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(er=er.replace(/\s/g,"")).indexOf(">")&&(er=er.substr(0,er.indexOf(">"))),er.length%2&&(er+="0"),!1===tr.test(er))return"";for(var rr="",r=0;r<er.length;r+=2)rr+=String.fromCharCode("0x"+(er[r]+er[r+1]));return rr},ar=function i(tr){for(var rr,nr,i,ar,ir,or=[],sr=tr.length;sr--;)or[sr]=tr.charCodeAt(sr);return rr=er.adler32cs.from(tr),i=tr=(nr=new xt(6)).append(new Uint8Array(or)),ar=nr.flush(),(ir=new Uint8Array(i.byteLength+ar.byteLength)).set(new Uint8Array(i),0),ir.set(new Uint8Array(ar),i.byteLength),tr=ir,(or=new Uint8Array(tr.byteLength+6)).set(new Uint8Array([120,156])),or.set(tr,2),or.set(new Uint8Array([255&rr,rr>>8&255,rr>>16&255,rr>>24&255]),tr.byteLength+2),or.reduce((function(er,tr){return er+String.fromCharCode(tr)}),"")};er.processDataByFilters=function(er,ir){var or=0,sr=er||"",lr=[];for("string"==typeof(ir=ir||[])&&(ir=[ir]),or=0;or<ir.length;or+=1)switch(ir[or]){case"ASCII85Decode":case"/ASCII85Decode":sr=rr(sr),lr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":sr=tr(sr),lr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":sr=nr(sr),lr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":sr=sr.split("").map((function(er){return("0"+er.charCodeAt().toString(16)).slice(-2)})).join("")+">",lr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":sr=ar(sr),lr.push("/FlateDecode");break;default:throw new Error('The filter: "'+ir[or]+'" is not implemented')}return{data:sr,reverseChain:lr.reverse().join(" ")}}}(g.API),
/**
* @license
* jsPDF fileloading PlugIn
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(er){er.loadFile=function(er,tr,rr){return function(er,tr,rr){tr=!1!==tr,rr="function"==typeof rr?rr:function(){};var nr=void 0;try{nr=function(er,tr,rr){var nr=new XMLHttpRequest,ar=0,ir=function a(er){var tr=er.length,rr=[],nr=String.fromCharCode;for(ar=0;ar<tr;ar+=1)rr.push(nr(255&er.charCodeAt(ar)));return rr.join("")};if(nr.open("GET",er,!tr),nr.overrideMimeType("text/plain; charset=x-user-defined"),!1===tr&&(nr.onload=function(){200===nr.status?rr(ir(this.responseText)):rr(void 0)}),nr.send(null),tr&&200===nr.status)return ir(nr.responseText)}(er,tr,rr)}catch(er){}return nr}(er,tr,rr)},er.loadImageFile=er.loadFile}(g.API),
/**
* @license
* Copyright (c) 2018 Erik Koopmans
* Released under the MIT License.
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-09-08 23:35:47 +00:00
function(er){function n(){return(Cf.html2canvas?Promise.resolve(Cf.html2canvas):Promise.resolve().then((function(){return fb}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}function r(){return(Cf.DOMPurify?Promise.resolve(Cf.DOMPurify):Promise.resolve().then((function(){return Ub}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}var tr=function i(er){var tr=_typeof(er);return"undefined"===tr?"undefined":"string"===tr||er instanceof String?"string":"number"===tr||er instanceof Number?"number":"function"===tr||er instanceof Function?"function":er&&er.constructor===Array?"array":er&&1===er.nodeType?"element":"object"===tr?"object":"unknown"},rr=function a(er,tr){var rr=document.createElement(er);for(var nr in tr.className&&(rr.className=tr.className),tr.innerHTML&&tr.dompurify&&(rr.innerHTML=tr.dompurify.sanitize(tr.innerHTML)),tr.style)rr.style[nr]=tr.style[nr];return rr},nr=function t(er){var tr=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),rr=t.convert(Promise.resolve(),tr);return(rr=rr.setProgress(1,t,1,[t])).set(er)};(nr.prototype=Object.create(Promise.prototype)).constructor=nr,nr.convert=function(er,tr){return er.__proto__=tr||nr.prototype,er},nr.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function callback(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},nr.prototype.from=function(er,nr){return this.then((function(){switch(nr=nr||function(er){switch(tr(er)){case"string":return"string";case"element":return"canvas"===er.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(er)){case"string":return this.then(r).then((function(tr){return this.set({src:rr("div",{innerHTML:er,dompurify:tr})})}));case"element":return this.set({src:er});case"canvas":return this.set({canvas:er});case"img":return this.set({img:er});default:return this.error("Unknown source type.")}}))},nr.prototype.to=function(er){switch(er){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},nr.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var er={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},tr=function o(er,tr){for(var rr=3===er.nodeType?document.createTextNode(er.nodeValue):er.cloneNode(!1),nr=er.firstChild;nr;nr=nr.nextSibling)!0!==tr&&1===nr.nodeType&&"SCRIPT"===nr.nodeName||rr.appendChild(o(nr,tr));return 1===er.nodeType&&("CANVAS"===er.nodeName?(rr.width=er.width,rr.height=er.height,rr.getContext("2d").drawImage(er,0,0)):"TEXTAREA"!==er.nodeName&&"SELECT"!==er.nodeName||(rr.value=er.value),rr.addEventListener("load",(function(){rr.scrollTop=er.scrollTop,rr.scrollLeft=er.scrollLeft}),!0)),rr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===tr.tagName&&(er.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=rr("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=rr("div",{className:"html2pdf__container",style:er}),this.prop.container.appendChild(tr),this.prop.container.firstChild.appendChild(rr("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.sty
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(er){var tr;er.events.push(["postPutResources",function(){var er=this,rr=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var nr=er.outline.render().split(/\r\n/),ar=0;ar<nr.length;ar++){var ir=nr[ar],or=rr.exec(ir);if(null!=or){var sr=or[1];er.internal.newObjectDeferredBegin(sr,!1)}er.internal.write(ir)}if(this.outline.createNamedDestinations){var lr=this.internal.pages.length,cr=[];for(ar=0;ar<lr;ar++){var ur=er.internal.newObject();cr.push(ur);var dr=er.internal.getPageInfo(ar+1);er.internal.write("<< /D["+dr.objId+" 0 R /XYZ null null null]>> endobj")}var hr=er.internal.newObject();for(er.internal.write("<< /Names [ "),ar=0;ar<cr.length;ar++)er.internal.write("(page_"+(ar+1)+")"+cr[ar]+" 0 R");er.internal.write(" ] >>","endobj"),tr=er.internal.newObject(),er.internal.write("<< /Dests "+hr+" 0 R"),er.internal.write(">>","endobj")}}]),er.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+tr+" 0 R"))}]),er.events.push(["initialized",function(){var er=this;er.outline={createNamedDestinations:!1,root:{children:[]}},er.outline.add=function(er,tr,rr){var nr={title:tr,options:rr,children:[]};return null==er&&(er=this.root),er.children.push(nr),nr},er.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=er,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},er.outline.genIds_r=function(tr){tr.id=er.internal.newObjectDeferred();for(var rr=0;rr<tr.children.length;rr++)this.genIds_r(tr.children[rr])},er.outline.renderRoot=function(er){this.objStart(er),this.line("/Type /Outlines"),er.children.length>0&&(this.line("/First "+this.makeRef(er.children[0])),this.line("/Last "+this.makeRef(er.children[er.children.length-1]))),this.line("/Count "+this.count_r({count:0},er)),this.objEnd()},er.outline.renderItems=function(tr){for(var rr=this.ctx.pdf.internal.getVerticalCoordinateString,nr=0;nr<tr.children.length;nr++){var ar=tr.children[nr];this.objStart(ar),this.line("/Title "+this.makeString(ar.title)),this.line("/Parent "+this.makeRef(tr)),nr>0&&this.line("/Prev "+this.makeRef(tr.children[nr-1])),nr<tr.children.length-1&&this.line("/Next "+this.makeRef(tr.children[nr+1])),ar.children.length>0&&(this.line("/First "+this.makeRef(ar.children[0])),this.line("/Last "+this.makeRef(ar.children[ar.children.length-1])));var ir=this.count=this.count_r({count:0},ar);if(ir>0&&this.line("/Count "+ir),ar.options&&ar.options.pageNumber){var or=er.internal.getPageInfo(ar.options.pageNumber);this.line("/Dest ["+or.objId+" 0 R /XYZ 0 "+rr(0)+" 0]")}this.objEnd()}for(var sr=0;sr<tr.children.length;sr++)this.renderItems(tr.children[sr])},er.outline.line=function(er){this.ctx.val+=er+"\r\n"},er.outline.makeRef=function(er){return er.id+" 0 R"},er.outline.makeString=function(tr){return"("+er.internal.pdfEscape(tr)+")"},er.outline.objStart=function(er){this.ctx.val+="\r\n"+er.id+" 0 obj\r\n<<\r\n"},er.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},er.outline.count_r=function(er,tr){for(var rr=0;rr<tr.children.length;rr++)er.count++,this.count_r(er,tr.children[rr]);return er.count}}])}(g.API),
/**
* @license
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(er){var tr=[192,193,194,195,196,197,198,199];er.processJPEG=function(er,rr,nr,ar,ir,or){var sr,lr=this.decode.DCT_DECODE,cr=null;if("string"==typeof er||this.__addimage__.isArrayBuffer(er)||this.__addimage__.isArrayBufferView(er)){switch(er=ir||er,er=this.__addimage__.isArrayBuffer(er)?new Uint8Array(er):er,(sr=function(er){for(var rr,nr=256*er.charCodeAt(4)+er.charCodeAt(5),ar=er.length,ir={width:0,height:0,numcomponents:1},or=4;or<ar;or+=2){if(or+=nr,-1!==tr.indexOf(er.charCodeAt(or+1))){rr=256*er.charCodeAt(or+5)+er.charCodeAt(or+6),ir={width:256*er.charCodeAt(or+7)+er.charCodeAt(or+8),height:rr,numcomponents:er.charCodeAt(or+9)};break}nr=256*er.charCodeAt(or+2)+er.charCodeAt(or+3)}return ir}(er=this.__addimage__.isArrayBufferView(er)?this.__addimage__.arrayBufferToBinaryString(er):er)).numcomponents){case 1:or=this.color_spaces.DEVICE_GRAY;break;case 4:or=this.color_spaces.DEVICE_CMYK;break;case 3:or=this.color_spaces.DEVICE_RGB}cr={data:er,width:sr.width,height:sr.height,colorSpace:or,bitsPerComponent:8,filter:lr,index:rr,alias:nr}}return cr}}(g.API);
/**
* @license
* Extracted from pdf.js
* https://github.com/andreasgal/pdf.js
*
* Copyright (c) 2011 Mozilla Foundation
*
* Contributors: Andreas Gal <gal@mozilla.com>
* Chris G Jones <cjones@mozilla.com>
* Shaon Barman <shaon.barman@gmail.com>
* Vivien Nicolas <21@vingtetun.org>
* Justin D'Arcangelo <justindarc@gmail.com>
* Yury Delendik
*
* 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.
*/
2020-09-08 23:35:47 +00:00
var Pg,Tg,Fg,Ug,Ig,Rg=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function ensureBuffer(er){var tr=this.buffer,rr=tr?tr.byteLength:0;if(er<rr)return tr;for(var nr=512;nr<er;)nr<<=1;for(var ar=new Uint8Array(nr),ir=0;ir<rr;++ir)ar[ir]=tr[ir];return this.buffer=ar},getByte:function getByte(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function getBytes(er){var tr=this.pos;if(er){this.ensureBuffer(tr+er);for(var rr=tr+er;!this.eof&&this.bufferLength<rr;)this.readBlock();var nr=this.bufferLength;rr>nr&&(rr=nr)}else{for(;!this.eof;)this.readBlock();rr=this.bufferLength}return this.pos=rr,this.buffer.subarray(tr,rr)},lookChar:function lookChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function getChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function makeSubStream(er,tr,rr){for(var nr=er+tr;this.bufferLength<=nr&&!this.eof;)this.readBlock();return new Stream(this.buffer,er,tr,rr)},skip:function skip(er){er||(er=1),this.pos+=er},reset:function reset(){this.pos=0}},t}(),Mg=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==gf&&gf||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var er=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tr=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]),rr=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]),nr=[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,459
2020-09-04 20:34:30 +00:00
/**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* 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.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
2020-09-08 23:35:47 +00:00
*/function jt(er){var tr=0;if(71!==er[tr++]||73!==er[tr++]||70!==er[tr++]||56!==er[tr++]||56!=(er[tr++]+1&253)||97!==er[tr++])throw new Error("Invalid GIF 87a/89a header.");var rr=er[tr++]|er[tr++]<<8,nr=er[tr++]|er[tr++]<<8,ar=er[tr++],ir=ar>>7,or=1<<1+(7&ar);er[tr++],er[tr++];var sr=null,lr=null;ir&&(sr=tr,lr=or,tr+=3*or);var cr=!0,ur=[],dr=0,hr=null,pr=0,Ar=null;for(this.width=rr,this.height=nr;cr&&tr<er.length;)switch(er[tr++]){case 33:switch(er[tr++]){case 255:if(11!==er[tr]||78==er[tr+1]&&69==er[tr+2]&&84==er[tr+3]&&83==er[tr+4]&&67==er[tr+5]&&65==er[tr+6]&&80==er[tr+7]&&69==er[tr+8]&&50==er[tr+9]&&46==er[tr+10]&&48==er[tr+11]&&3==er[tr+12]&&1==er[tr+13]&&0==er[tr+16])tr+=14,Ar=er[tr++]|er[tr++]<<8,tr++;else for(tr+=12;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;case 249:if(4!==er[tr++]||0!==er[tr+4])throw new Error("Invalid graphics extension block.");var fr=er[tr++];dr=er[tr++]|er[tr++]<<8,hr=er[tr++],0==(1&fr)&&(hr=null),pr=fr>>2&7,tr++;break;case 254:for(;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;default:throw new Error("Unknown graphic control label: 0x"+er[tr-1].toString(16))}break;case 44:var gr=er[tr++]|er[tr++]<<8,mr=er[tr++]|er[tr++]<<8,_r=er[tr++]|er[tr++]<<8,vr=er[tr++]|er[tr++]<<8,yr=er[tr++],br=yr>>6&1,wr=1<<1+(7&yr),kr=sr,xr=lr,Sr=!1;yr>>7&&(Sr=!0,kr=tr,xr=wr,tr+=3*wr);var Cr=tr;for(tr++;;){var Br;if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}ur.push({x:gr,y:mr,width:_r,height:vr,has_local_palette:Sr,palette_offset:kr,palette_size:xr,data_offset:Cr,data_length:tr-Cr,transparent_index:hr,interlaced:!!br,delay:dr,disposal:pr});break;case 59:cr=!1;break;default:throw new Error("Unknown gif block: 0x"+er[tr-1].toString(16))}this.numFrames=function(){return ur.length},this.loopCount=function(){return Ar},this.frameInfo=function(er){if(er<0||er>=ur.length)throw new Error("Frame index out of range.");return ur[er]},this.decodeAndBlitFrameBGRA=function(tr,nr){var ar=this.frameInfo(tr),ir=ar.width*ar.height,or=new Uint8Array(ir);Bt(er,ar.data_offset,or,ir);var sr=ar.palette_offset,lr=ar.transparent_index;null===lr&&(lr=256);var cr=ar.width,ur=rr-cr,dr=cr,hr=4*(ar.y*rr+ar.x),pr=4*((ar.y+ar.height)*rr+ar.x),Ar=hr,fr=4*ur;!0===ar.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=or.length;mr<_r;++mr){var vr=or[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=wr,nr[Ar++]=br,nr[Ar++]=yr,nr[Ar++]=255}--dr}},this.decodeAndBlitFrameRGBA=function(tr,nr){var ar=this.frameInfo(tr),ir=ar.width*ar.height,or=new Uint8Array(ir);Bt(er,ar.data_offset,or,ir);var sr=ar.palette_offset,lr=ar.transparent_index;null===lr&&(lr=256);var cr=ar.width,ur=rr-cr,dr=cr,hr=4*(ar.y*rr+ar.x),pr=4*((ar.y+ar.height)*rr+ar.x),Ar=hr,fr=4*ur;!0===ar.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=or.length;mr<_r;++mr){var vr=or[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=yr,nr[Ar++]=br,nr[Ar++]=wr,nr[Ar++]=255}--dr}}}function Bt(er,tr,rr,nr){for(var ar=er[tr++],ir=1<<ar,or=ir+1,sr=or+1,lr=ar+1,cr=(1<<lr)-1,ur=0,dr=0,hr=0,pr=er[tr++],Ar=new Int32Array(4096),fr=null;;){for(;ur<16&&0!==pr;)dr|=er[tr++]<<ur,ur+=8,1===pr?pr=er[tr++]:--pr;if(ur<lr)break;var gr=dr&cr;if(dr>>=lr,ur-=lr,gr!==ir){if(gr===or)break;for(var mr=gr<sr?gr:fr,_r=0,vr=mr;vr>ir;)vr=Ar[vr]>>8,++_r;var yr=vr;if(hr+_r+(mr!==gr?1:0)>nr)return void Bf.log("Warning, gif stream longer than expected.");rr[hr++]=yr;var br=hr+=_r;for(mr!==gr&&(rr[hr++]=yr),vr=mr;_r--;)vr=Ar[vr],rr[--br]=255&vr,vr>>=8;null!==fr&&sr<4096&&(Ar[sr++]=fr<<8|yr,sr>=cr+1&&lr<12&&(++lr,cr=cr<<1|1)),fr=gr}else sr=or+1,cr=(1<<(lr=ar+1))-1,fr=null}return hr!==nr&&Bf.log("Warning, gif stream shorter than expected."),rr
2020-09-04 20:34:30 +00:00
/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
2020-08-28 22:07:07 +00:00
2020-09-04 20:34:30 +00:00
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2020-09-08 23:35:47 +00:00
*/}function Ot(er){var tr,rr,nr,ar,ir,or=Math.floor,sr=new Array(64),lr=new Array(64),cr=new Array(64),ur=new Array(64),dr=new Array(65535),hr=new Array(65535),pr=new Array(64),Ar=new Array(64),fr=[],gr=0,mr=7,_r=new Array(64),vr=new Array(64),yr=new Array(64),br=new Array(256),wr=new Array(2048),kr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],xr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Sr=[0,1,2,3,4,5,6,7,8,9,10,11],Cr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Br=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Er=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Nr=[0,1,2,3,4,5,6,7,8,9,10,11],Lr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Pr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function j(er,tr){for(var rr=0,nr=0,ar=new Array,ir=1;ir<=16;ir++){for(var or=1;or<=er[ir];or++)ar[tr[nr]]=[],ar[tr[nr]][0]=rr,ar[tr[nr]][1]=ir,nr++,rr++;rr*=2}return ar}function B(er){for(var tr=er[0],rr=er[1]-1;rr>=0;)tr&1<<rr&&(gr|=1<<mr),rr--,--mr<0&&(255==gr?(O(255),O(0)):O(gr),mr=7,gr=0)}function O(er){fr.push(er)}function M(er){O(er>>8&255),O(255&er)}function E(er,tr,rr,nr,ar){for(var ir,or=ar[0],sr=ar[240],lr=function(er,tr){var rr,nr,ar,ir,or,sr,lr,cr,ur,dr,hr=0;for(ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+1],ar=er[hr+2],ir=er[hr+3],or=er[hr+4],sr=er[hr+5],lr=er[hr+6];var Ar=rr+(cr=er[hr+7]),fr=rr-cr,gr=nr+lr,mr=nr-lr,_r=ar+sr,vr=ar-sr,yr=ir+or,br=ir-or,wr=Ar+yr,kr=Ar-yr,xr=gr+_r,Sr=gr-_r;er[hr]=wr+xr,er[hr+4]=wr-xr;var Cr=.707106781*(Sr+kr);er[hr+2]=kr+Cr,er[hr+6]=kr-Cr;var Br=.382683433*((wr=br+vr)-(Sr=mr+fr)),Er=.5411961*wr+Br,Nr=1.306562965*Sr+Br,Lr=.707106781*(xr=vr+mr),Pr=fr+Lr,Tr=fr-Lr;er[hr+5]=Tr+Er,er[hr+3]=Tr-Er,er[hr+1]=Pr+Nr,er[hr+7]=Pr-Nr,hr+=8}for(hr=0,ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+8],ar=er[hr+16],ir=er[hr+24],or=er[hr+32],sr=er[hr+40],lr=er[hr+48];var Fr=rr+(cr=er[hr+56]),Ur=rr-cr,Ir=nr+lr,Rr=nr-lr,Mr=ar+sr,Qr=ar-sr,Or=ir+or,Dr=ir-or,jr=Fr+Or,Hr=Fr-Or,Gr=Ir+Mr,Vr=Ir-Mr;er[hr]=jr+Gr,er[hr+32]=jr-Gr;var zr=.707106781*(Vr+Hr);er[hr+16]=Hr+zr,er[hr+48]=Hr-zr;var Kr=.382683433*((jr=Dr+Qr)-(Vr=Rr+Ur)),qr=.5411961*jr+Kr,Wr=1.306562965*Vr+Kr,Xr=.707106781*(Gr=Qr+Rr),Yr=Ur+Xr,Jr=Ur-Xr;er[hr+40]=Jr+qr,er[hr+24]=Jr-qr,er[hr+8]=Yr+Wr,er[hr+56]=Yr-Wr,hr++}for(ur=0;ur<64;++ur)dr=er[ur]*tr[ur],pr[ur]=dr>0?dr+.5|0:dr-.5|0;return pr}(er,tr),cr=0;cr<64;++cr)Ar[kr[cr]]=lr[cr];var ur=Ar[0]-rr;rr=Ar[0],0==ur?B(nr[0]):(B(nr[hr[ir=32767+ur]]),B(dr[ir]));for(var fr=63;fr>0&&0==Ar[fr];)fr--;if(0==fr)return B(or),rr;for(var gr,mr=1;mr<=fr;){for(var _r=mr;0==Ar[mr]&&mr<=fr;)++mr;var vr=mr-_r;if(vr>=16){gr=vr>>4;for(var yr=1;yr<=gr;++yr)B(sr);vr&=15}ir=32767+Ar[mr],B(ar[(vr<<4)+hr[ir]]),B(dr[ir]),mr++}return 63!=fr&&B(or),rr}function q(er){er=Math.min(Math.max(er,1),100),ir!=er&&(function(er){for(var tr=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
2020-09-08 23:35:47 +00:00
*/function Mt(er,tr){if(this.pos=0,this.buffer=er,this.datav=new DataView(er.buffer),this.is_with_alpha=!!tr,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Et(er){function e(er){if(!er)throw Error("assert :P")}function n(er,tr,rr){for(var nr=0;4>nr;nr++)if(er[tr+nr]!=rr.charCodeAt(nr))return!0;return!1}function r(er,tr,rr,nr,ar){for(var ir=0;ir<ar;ir++)er[tr+ir]=rr[nr+ir]}function i(er,tr,rr,nr){for(var ar=0;ar<nr;ar++)er[tr+ar]=rr}function a(er){return new Int32Array(er)}function o(er,tr){for(var rr=[],nr=0;nr<er;nr++)rr.push(new tr);return rr}function s(er,tr){var rr=[];return function t(er,rr,nr){for(var ar=nr[rr],ir=0;ir<ar&&(er.push(nr.length>rr+1?[]:new tr),!(nr.length<rr+1));ir++)t(er[ir],rr+1,nr)}(rr,0,er),rr}function u(er,tr){for(var rr="",nr=0;nr<4;nr++)rr+=String.fromCharCode(er[tr++]);return rr}function c(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16)>>>0}function h(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16|er[tr+3]<<24)>>>0}new(Et=function Et(){var er=this;function u(er,tr){for(var rr=1<<tr-1>>>0;er&rr;)rr>>>=1;return rr?(er&rr-1)+rr:er}function c(er,tr,rr,nr,ar){e(!(nr%rr));do{er[tr+(nr-=rr)]=ar}while(0<nr)}function h(er,tr,rr,nr,ar){if(e(2328>=ar),512>=ar)var ir=a(512);else if(null==(ir=a(ar)))return 0;return function(er,tr,rr,nr,ar,ir){var or,sr,lr=tr,cr=1<<rr,ur=a(16),dr=a(16);for(e(0!=ar),e(null!=nr),e(null!=er),e(0<rr),sr=0;sr<ar;++sr){if(15<nr[sr])return 0;++ur[nr[sr]]}if(ur[0]==ar)return 0;for(dr[1]=0,or=1;15>or;++or){if(ur[or]>1<<or)return 0;dr[or+1]=dr[or]+ur[or]}for(sr=0;sr<ar;++sr)or=nr[sr],0<nr[sr]&&(ir[dr[or]++]=sr);if(1==dr[15])return(nr=new l).g=0,nr.value=ir[0],c(er,lr,1,cr,nr),cr;var hr,pr=-1,Ar=cr-1,fr=0,gr=1,mr=1,_r=1<<rr;for(sr=0,or=1,ar=2;or<=rr;++or,ar<<=1){if(gr+=mr<<=1,0>(mr-=ur[or]))return 0;for(;0<ur[or];--ur[or])(nr=new l).g=or,nr.value=ir[sr++],c(er,lr+fr,ar,_r,nr),fr=u(fr,or)}for(or=rr+1,ar=2;15>=or;++or,ar<<=1){if(gr+=mr<<=1,0>(mr-=ur[or]))return 0;for(;0<ur[or];--ur[or]){if(nr=new l,(fr&Ar)!=pr){for(lr+=_r,hr=1<<(pr=or)-rr;15>pr&&!(0>=(hr-=ur[pr]));)++pr,hr<<=1;cr+=_r=1<<(hr=pr-rr),er[tr+(pr=fr&Ar)].g=hr+rr,er[tr+pr].value=lr-tr-pr}nr.g=or-rr,nr.value=ir[sr++],c(er,lr+(fr>>rr),ar,_r,nr),fr=u(fr,or)}}return gr!=2*dr[15]-1?0:cr}(er,tr,rr,nr,ar,ir)}function l(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,l),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(tr,f)}function p(er,tr,rr,nr){e(null!=er),e(null!=tr),e(2147483648>nr),er.Ca=254,er.I=0,er.b=-8,er.Ka=0,er.oa=tr,er.pa=rr,er.Jd=tr,er.Yc=rr+nr,er.Zc=4<=nr?rr+nr-4+1:rr,S(er)}function g(er,tr){for(var rr=0;0<tr--;)rr|=k(er,128)<<tr;return rr}function m(er,tr){var rr=g(er,tr);return P(er)?-rr:rr}function v(er,tr,rr,nr){var ar,ir=0;for(e(null!=er),e(null!=tr),e(4294967288>nr),er.Sb=nr,er.Ra=0,er.u=0,er.h=0,4<nr&&(nr=4),ar=0;ar<nr;++ar)ir+=tr[rr+ar]<<8*ar;er.Ra=ir,er.bb=nr,er.oa=tr,er.pa=rr}function b(er){for(;8<=er.u&&er.bb<er.Sb;)er.Ra>>>=8,er.Ra+=er.oa[er.pa+er.bb]<<ar-8>>>0,++er.bb,er.u-=8;x(er)&&(er.h=1,er.u=0)}function y(er,tr){if(e(0<=tr),!er.h&&tr<=nr){var ar=L(er)&rr[tr];return er.u+=tr,b(er),ar}return er.h=1,er.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(er){return er.Ra>>>(er.u&ar-1)>>>0}function x(er){return e(er.bb<=er.Sb),er.h||er.bb==er.Sb&&er.u>ar}function A(er,tr){er.u=tr,er.h=x(er)}function _(er){er.u>=ir&&(e(er.u>=ir),b(er))}function S(er){e(null!=er&&null!=er.oa),er.pa<er.Zc?(er.I=(er.oa[er.pa++]|er.I<<8)>>>0,er.b+=8):(e(null!=er&&null!=er.oa),er.pa<er.Yc?(er.b+=8,er.I=er.oa[er.pa++]|er.I<<8):er.Ka?er.b=0:(er.I<<=8,er.b+=8,er.Ka=1))}function P(er){return g(er,1)}function k(er,tr){var rr=er.Ca;0>er.b&&S(er);var nr=er.b,ar=rr*tr>>>8,ir=(er.I>>>nr>ar)+0;for(ir?(rr-=ar,er.I-=ar+1<<nr>>>0):rr=ar+1,nr=rr,ar=0;256<=nr;)ar+=8,
2020-09-04 20:34:30 +00:00
/** @license
* Copyright (c) 2017 Dominik Homberger
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.
https://webpjs.appspot.com
WebPRiffParser dominikhlbg@gmail.com
*/
function(er,tr,rr,nr){for(var ar=0;ar<4;ar++)if(er[tr+ar]!="RIFF".charCodeAt(ar))return!0;return!1}(er,tr)){var sr,lr;for(h(er,tr+=4),tr+=8;tr<er.length;){var cr=u(er,tr),ur=h(er,tr+=4);tr+=4;var dr=ur+(1&ur);switch(cr){case"VP8 ":case"VP8L":void 0===rr.frames[nr]&&(rr.frames[nr]={}),(Ar=rr.frames[nr]).src_off=ar?or:tr-8,Ar.src_size=ir+ur+8,nr++,ar&&(ar=!1,ir=0,or=0);break;case"VP8X":(Ar=rr.header={}).feature_flags=er[tr];var hr=tr+4;Ar.canvas_width=1+c(er,hr),hr+=3,Ar.canvas_height=1+c(er,hr),hr+=3;break;case"ALPH":ar=!0,ir=dr+8,or=tr-8;break;case"ANIM":(Ar=rr.header).bgcolor=h(er,tr),hr=tr+4,Ar.loop_count=(sr=er)[(lr=hr)+0]<<0|sr[lr+1]<<8,hr+=2;break;case"ANMF":var pr,Ar;(Ar=rr.frames[nr]={}).offset_x=2*c(er,tr),tr+=3,Ar.offset_y=2*c(er,tr),tr+=3,Ar.width=1+c(er,tr),tr+=3,Ar.height=1+c(er,tr),tr+=3,Ar.duration=c(er,tr),tr+=3,pr=er[tr++],Ar.dispose=1&pr,Ar.blend=pr>>1&1}"ANMF"!=cr&&(tr+=dr)}return rr}}(ir,0);or.response=ir,or.rgbaoutput=!0,or.dataurl=!1;var sr=or.header?or.header:null,lr=or.frames?or.frames:null;if(sr){sr.loop_counter=sr.loop_count,tr=[sr.canvas_height],rr=[sr.canvas_width];for(var cr=0;cr<lr.length&&0!=lr[cr].blend;cr++);}var ur=lr[0],dr=ar.WebPDecodeRGBA(ir,ur.src_off,ur.src_size,rr,tr);ur.rgba=dr,ur.imgwidth=rr[0],ur.imgheight=tr[0];for(var hr=0;hr<rr[0]*tr[0]*4;hr++)nr[hr]=dr[hr];return this.width=rr,this.height=tr,this.data=nr,this
/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* 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.
* ====================================================================
2020-09-08 23:35:47 +00:00
*/}!function(er){var tr=function n(tr,ar,cr,ur){var dr=5,hr=or;switch(ur){case er.image_compression.FAST:dr=3,hr=ir;break;case er.image_compression.MEDIUM:dr=6,hr=sr;break;case er.image_compression.SLOW:dr=9,hr=lr}tr=nr(tr,ar,cr,hr);var pr=new Uint8Array(rr(dr)),Ar=g.API.adler32cs.fromBuffer(tr.buffer),fr=new xt(dr),gr=fr.append(tr),mr=fr.flush(),_r=pr.length+gr.length+mr.length,vr=new Uint8Array(_r+4);return vr.set(pr),vr.set(gr,pr.length),vr.set(mr,pr.length+gr.length),vr[_r++]=Ar>>>24&255,vr[_r++]=Ar>>>16&255,vr[_r++]=Ar>>>8&255,vr[_r++]=255&Ar,er.__addimage__.arrayBufferToBinaryString(vr)},rr=function r(er){var tr=30720;return tr|=Math.min(3,(er-1&255)>>1)<<6,tr|=0,[120,255&(tr+=31-tr%31)]},nr=function i(er,tr,rr,nr){for(var i,ar,ir,or=er.length/tr,sr=new Uint8Array(er.length+or),lr=ur(),cr=0;cr<or;cr+=1){if(ir=cr*tr,i=er.subarray(ir,ir+tr),nr)sr.set(nr(i,rr,ar),ir+cr);else{for(var hr,pr=lr.length,Ar=[];hr<pr;hr+=1)Ar[hr]=lr[hr](i,rr,ar);var fr=dr(Ar.concat());sr.set(Ar[fr],ir+cr)}ar=i}return sr},ar=function a(er){var tr=Array.apply([],er);return tr.unshift(0),tr},ir=function o(er,tr){var rr,nr=[],ar=er.length;nr[0]=1;for(var ir=0;ir<ar;ir+=1)rr=er[ir-tr]||0,nr[ir+1]=er[ir]-rr+256&255;return nr},or=function s(er,tr,rr){var nr,ar=[],ir=er.length;ar[0]=2;for(var or=0;or<ir;or+=1)nr=rr&&rr[or]||0,ar[or+1]=er[or]-nr+256&255;return ar},sr=function u(er,tr,rr){var nr,ar,ir=[],or=er.length;ir[0]=3;for(var sr=0;sr<or;sr+=1)nr=er[sr-tr]||0,ar=rr&&rr[sr]||0,ir[sr+1]=er[sr]+256-(nr+ar>>>1)&255;return ir},lr=function c(er,tr,rr){var nr,ar,ir,or,sr=[],lr=er.length;sr[0]=4;for(var c=0;c<lr;c+=1)nr=er[c-tr]||0,ar=rr&&rr[c]||0,ir=rr&&rr[c-tr]||0,or=cr(nr,ar,ir),sr[c+1]=er[c]-or+256&255;return sr},cr=function h(er,tr,rr){if(er===tr&&tr===rr)return er;var nr=Math.abs(tr-rr),ar=Math.abs(er-rr),ir=Math.abs(er+tr-rr-rr);return nr<=ar&&nr<=ir?er:ar<=ir?tr:rr},ur=function l(){return[ar,ir,or,sr,lr]},dr=function f(er){var tr=er.map((function(er){return er.reduce((function(er,tr){return er+Math.abs(tr)}),0)}));return tr.indexOf(Math.min.apply(null,tr))};er.processPNG=function(rr,nr,ar,ir){var or,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br=this.decode.FLATE_DECODE,wr="";if(this.__addimage__.isArrayBuffer(rr)&&(rr=new Uint8Array(rr)),this.__addimage__.isArrayBufferView(rr)){if(rr=(lr=new Qg(rr)).imgData,sr=lr.bits,or=lr.colorSpace,ur=lr.colors,-1!==[4,6].indexOf(lr.colorType)){if(8===lr.bits){Ar=(pr=32==lr.pixelBitlength?new Uint32Array(lr.decodePixels().buffer):16==lr.pixelBitlength?new Uint16Array(lr.decodePixels().buffer):new Uint8Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*lr.colors),fr=new Uint8Array(Ar);var kr,xr=lr.pixelBitlength-lr.bits;for(vr=0,yr=0;vr<Ar;vr++){for(_r=pr[vr],kr=0;kr<xr;)gr[yr++]=_r>>>kr&255,kr+=lr.bits;fr[vr]=_r>>>kr&255}}if(16===lr.bits){Ar=(pr=new Uint32Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*(32/lr.pixelBitlength)*lr.colors),fr=new Uint8Array(Ar*(32/lr.pixelBitlength)),mr=lr.colors>1,vr=0,yr=0;for(var Sr=0;vr<Ar;)_r=pr[vr++],gr[yr++]=_r>>>0&255,mr&&(gr[yr++]=_r>>>16&255,_r=pr[vr++],gr[yr++]=_r>>>0&255),fr[Sr++]=_r>>>16&255;sr=8}ir!==er.image_compression.NONE?(rr=tr(gr,lr.width*lr.colors,lr.colors,ir),hr=tr(fr,lr.width,1,ir)):(rr=gr,hr=fr,br=void 0)}if(3===lr.colorType&&(or=this.color_spaces.INDEXED,dr=lr.palette,lr.transparency.indexed)){var Cr=lr.transparency.indexed,Br=0;for(vr=0,Ar=Cr.length;vr<Ar;++vr)Br+=Cr[vr];if((Br/=255)==Ar-1&&-1!==Cr.indexOf(0))cr=[Cr.indexOf(0)];else if(Br!==Ar){for(pr=lr.decodePixels(),fr=new Uint8Array(pr.length),vr=0,Ar=pr.length;vr<Ar;vr++)fr[vr]=Cr[pr[vr]];hr=tr(fr,lr.width,1)}}var Er=function(tr){var rr;switch(tr){case er.image_compression.FAST:rr=11;break;case er.image_compression.MEDIUM:rr=13;break;case er.image_compression.SLOW:rr=14;break;default:rr=12}return rr}(ir);return br===this.decode.FLATE_DECODE&&(wr="/Predictor "+Er+" "),wr+="/Colors "+ur+" /BitsPerComponent "+sr+" /Columns "+lr.width,(this.__addimage__.isArrayBuffer(rr)||this.__addimage__.isArrayBufferView(rr))&&(rr=this.__addimage__.arrayBufferToBinaryString(rr)),(hr&&this.__a
2020-09-04 20:34:30 +00:00
/**
* @license
* Copyright (c) 2018 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
2020-08-28 22:07:07 +00:00
*/
2020-09-04 20:34:30 +00:00
function(er){er.processBMP=function(tr,rr,nr,ar){var ir=new Mt(tr,!1),or=ir.width,sr=ir.height,lr={data:ir.getData(),width:or,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ar)}}(g.API),Et.prototype.getData=function(){return this.data},
/**
* @license
* Copyright (c) 2019 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(er){er.processWEBP=function(tr,rr,nr,ar){var ir=new Et(tr,!1),or=ir.width,sr=ir.height,lr={data:ir.getData(),width:or,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ar)}}(g.API),g.API.setLanguage=function(er){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian"
/** @license
* MIT license.
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
* 2014 Diego Casorran, https://github.com/diegocr
*
* 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.
* ====================================================================
*/
2020-09-08 23:35:47 +00:00
Pg=g.API,Tg=Pg.getCharWidthsArray=function(er,tr){var rr,nr,ar=(tr=tr||{}).font||this.internal.getFont(),ir=tr.fontSize||this.internal.getFontSize(),or=tr.charSpace||this.internal.getCharSpace(),sr=tr.widths?tr.widths:ar.metadata.Unicode.widths,lr=sr.fof?sr.fof:1,cr=tr.kerning?tr.kerning:ar.metadata.Unicode.kerning,ur=cr.fof?cr.fof:1,dr=!1!==tr.doKerning,hr=0,pr=er.length,Ar=0,fr=sr[0]||lr,gr=[];for(rr=0;rr<pr;rr++)nr=er.charCodeAt(rr),"function"==typeof ar.metadata.widthOfString?gr.push((ar.metadata.widthOfGlyph(ar.metadata.characterToGlyph(nr))+or*(1e3/ir)||0)/1e3):(hr=dr&&"object"==_typeof(cr[nr])&&!isNaN(parseInt(cr[nr][Ar],10))?cr[nr][Ar]/ur:0,gr.push((sr[nr]||fr)/lr+hr)),Ar=nr;return gr},Fg=Pg.getStringUnitWidth=function(er,tr){var rr=(tr=tr||{}).fontSize||this.internal.getFontSize(),nr=tr.font||this.internal.getFont(),ar=tr.charSpace||this.internal.getCharSpace();return Pg.processArabic&&(er=Pg.processArabic(er)),"function"==typeof nr.metadata.widthOfString?nr.metadata.widthOfString(er,rr,ar)/rr:Tg.apply(this,arguments).reduce((function(er,tr){return er+tr}),0)},Ug=function Pt(er,tr,rr,nr){for(var ar=[],ir=0,or=er.length,sr=0;ir!==or&&sr+tr[ir]<rr;)sr+=tr[ir],ir++;ar.push(er.slice(0,ir));var lr=ir;for(sr=0;ir!==or;)sr+tr[ir]>nr&&(ar.push(er.slice(lr,ir)),sr=0,lr=ir),sr+=tr[ir],ir++;return lr!==ir&&ar.push(er.slice(lr,ir)),ar},Ig=function kt(er,tr,rr){rr||(rr={});var nr,ar,ir,or,sr,lr,cr,ur=[],dr=[ur],hr=rr.textIndent||0,pr=0,Ar=0,fr=er.split(" "),gr=Tg.apply(this,[" ",rr])[0];if(lr=-1===rr.lineIndent?fr[0].length+2:rr.lineIndent||0){var mr=Array(lr).join(" "),_r=[];fr.map((function(er){(er=er.split(/\s*\n/)).length>1?_r=_r.concat(er.map((function(er,tr){return(tr&&er.length?"\n":"")+er}))):_r.push(er[0])})),fr=_r,lr=Fg.apply(this,[mr,rr])}for(ir=0,or=fr.length;ir<or;ir++){var vr=0;if(nr=fr[ir],lr&&"\n"==nr[0]&&(nr=nr.substr(1),vr=1),hr+pr+(Ar=(ar=Tg.apply(this,[nr,rr])).reduce((function(er,tr){return er+tr}),0))>tr||vr){if(Ar>tr){for(sr=Ug.apply(this,[nr,ar,tr-(hr+pr),tr]),ur.push(sr.shift()),ur=[sr.pop()];sr.length;)dr.push([sr.shift()]);Ar=ar.slice(nr.length-(ur[0]?ur[0].length:0)).reduce((function(er,tr){return er+tr}),0)}else ur=[nr];dr.push(ur),hr=Ar+lr,pr=gr}else ur.push(nr),hr+=pr+Ar,pr=gr}return cr=lr?function(er,tr){return(tr?mr:"")+er.join(" ")}:function(er){return er.join(" ")},dr.map(cr)},Pg.splitTextToSize=function(er,tr,rr){var nr,ar=(rr=rr||{}).fontSize||this.internal.getFontSize(),ir=function(er){if(er.widths&&er.kerning)return{widths:er.widths,kerning:er.kerning};var tr=this.internal.getFont(er.fontName,er.fontStyle);return tr.metadata.Unicode?{widths:tr.metadata.Unicode.widths||{0:1},kerning:tr.metadata.Unicode.kerning||{}}:{font:tr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,rr);nr=Array.isArray(er)?er:String(er).split(/\r?\n/);var or=1*this.internal.scaleFactor*tr/ar;ir.textIndent=rr.textIndent?1*rr.textIndent*this.internal.scaleFactor/ar:0,ir.lineIndent=rr.lineIndent;var sr,lr,cr=[];for(sr=0,lr=nr.length;sr<lr;sr++)cr=cr.concat(Ig.apply(this,[nr[sr],or,ir]));return cr},
2020-09-04 20:34:30 +00:00
/** @license
jsPDF standard_fonts_metrics plugin
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
* MIT license.
* 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(er){er.__fontmetrics__=er.__fontmetrics__||{};for(var tr="klmnopqrstuvwxyz",rr={},nr={},ar=0;ar<tr.length;ar++)rr[tr[ar]]="0123456789abcdef"[ar],nr["0123456789abcdef"[ar]]=tr[ar];var ir=function a(er){return"0x"+parseInt(er,10).toString(16)},or=er.__fontmetrics__.compress=function(er){var tr,rr,ar,sr,lr=["{"];for(var cr in er){if(tr=er[cr],isNaN(parseInt(cr,10))?rr="'"+cr+"'":(cr=parseInt(cr,10),rr=(rr=ir(cr).slice(2)).slice(0,-1)+nr[rr.slice(-1)]),"number"==typeof tr)tr<0?(ar=ir(tr).slice(3),sr="-"):(ar=ir(tr).slice(2),sr=""),ar=sr+ar.slice(0,-1)+nr[ar.slice(-1)];else{if("object"!=_typeof(tr))throw new Error("Don't know what to do with value type "+_typeof(tr)+".");ar=or(tr)}lr.push(rr+ar)}return lr.push("}"),lr.join("")},sr=er.__fontmetrics__.uncompress=function(er){if("string"!=typeof er)throw new Error("Invalid argument passed to uncompress.");for(var tr,nr,ar,ir,or={},sr=1,lr=or,cr=[],ur="",dr="",hr=er.length-1,pr=1;pr<hr;pr+=1)"'"==(ir=er[pr])?tr?(ar=tr.join(""),tr=void 0):tr=[]:tr?tr.push(ir):"{"==ir?(cr.push([lr,ar]),lr={},ar=void 0):"}"==ir?((nr=cr.pop())[0][nr[1]]=lr,ar=void 0,lr=nr[0]):"-"==ir?sr=-1:void 0===ar?rr.hasOwnProperty(ir)?(ur+=rr[ir],ar=parseInt(ur,16)*sr,sr=1,ur=""):ur+=ir:rr.hasOwnProperty(ir)?(dr+=rr[ir],lr[ar]=parseInt(dr,16)*sr,sr=1,ar=void 0,dr=""):dr+=ir;return or},lr={codePages:["WinAnsiEncoding"],WinAnsiEncoding:sr("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},cr={Unicode:{Courier:lr,"Courier-Bold":lr,"Courier-BoldOblique":lr,"Courier-Oblique":lr,Helvetica:lr,"Helvetica-Bold":lr,"Helvetica-BoldOblique":lr,"Helvetica-Oblique":lr,"Times-Roman":lr,"Times-Bold":lr,"Times-BoldItalic":lr,"Times-Italic":lr}},ur={Unicode:{"Courier-Oblique":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":sr("{'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":sr("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
2020-09-08 23:35:47 +00:00
function(er){var tr=function e(er){for(var e=er.length,tr=new Uint8Array(e),rr=0;rr<e;rr++)tr[rr]=er.charCodeAt(rr);return tr};er.API.events.push(["addFont",function(rr){var nr=void 0,ar=rr.font,ir=rr.instance;if(!ar.isStandardFont){if(void 0===ir)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ar.postScriptName+"').");if("string"!=typeof(nr=!1===ir.existsFileInVFS(ar.postScriptName)?ir.loadFile(ar.postScriptName):ir.getFileFromVFS(ar.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ar.postScriptName+"').");!function(rr,nr){nr=/^\x00\x01\x00\x00/.test(nr)?tr(nr):tr(Ef(nr)),rr.metadata=er.API.TTFFont.open(nr),rr.metadata.Unicode=rr.metadata.Unicode||{encoding:{},kerning:{},widths:[]},rr.metadata.glyIdsUsed=[0]}(ar,nr)}}])}(g),
2020-09-04 20:34:30 +00:00
/** @license
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
*
* 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.
* ====================================================================
*/
2020-09-08 23:35:47 +00:00
function(er){function r(){return(Cf.canvg?Promise.resolve(Cf.canvg):Promise.resolve().then((function(){return Ax}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}g.API.addSvgAsImage=function(er,tr,rr,nr,ar,ir,or,sr){if(isNaN(tr)||isNaN(rr))throw Bf.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(nr)||isNaN(ar))throw Bf.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var lr=document.createElement("canvas");lr.width=nr,lr.height=ar;var cr=lr.getContext("2d");cr.fillStyle="#fff",cr.fillRect(0,0,lr.width,lr.height);var ur={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},dr=this;return r().then((function(tr){return tr.Canvg.fromString(cr,er,ur)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(er){return er.render(ur)})).then((function(){dr.addImage(lr.toDataURL("image/jpeg",1),tr,rr,nr,ar,or,sr)}))}}(),g.API.putTotalPages=function(er){var tr,rr=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(tr=new RegExp(er,"g"),rr=this.internal.getNumberOfPages()):(tr=new RegExp(this.pdfEscape16(er,this.internal.getFont()),"g"),rr=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var nr=1;nr<=this.internal.getNumberOfPages();nr++)for(var ar=0;ar<this.internal.pages[nr].length;ar++)this.internal.pages[nr][ar]=this.internal.pages[nr][ar].replace(tr,rr);return this},g.API.viewerPreferences=function(er,tr){var rr;er=er||{},tr=tr||!1;var nr,ar,ir,or={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},sr=Object.keys(or),lr=[],cr=0,ur=0,dr=0;function f(er,tr){var rr,nr=!1;for(rr=0;rr<er.length;rr+=1)er[rr]===tr&&(nr=!0);return nr}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(or)),this.int
2020-09-04 20:34:30 +00:00
/** ====================================================================
* @license
* jsPDF XMP metadata plugin
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
*
* 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(er){var tr=function e(){var er='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),tr=unescape(encodeURIComponent(er)),rr=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),nr=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ar=unescape(encodeURIComponent("</x:xmpmeta>")),ir=tr.length+rr.length+nr.length+e.length+ar.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+ir+" >>"),this.internal.write("stream"),this.internal.write(e+tr+rr+nr+ar),this.internal.write("endstream"),this.internal.write("endobj")},rr=function n(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};er.addMetadata=function(er,nr){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:er,namespaceuri:nr||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",rr),this.internal.events.subscribe("postPutResources",tr)),this}}(g.API),function(er){var tr=er.API,rr=tr.pdfEscape16=function(er,tr){for(var rr,nr=tr.metadata.Unicode.widths,ar=["","0","00","000","0000"],ir=[""],or=0,sr=er.length;or<sr;++or){if(rr=tr.metadata.characterToGlyph(er.charCodeAt(or)),tr.metadata.glyIdsUsed.push(rr),tr.metadata.toUnicode[rr]=er.charCodeAt(or),-1==nr.indexOf(rr)&&(nr.push(rr),nr.push([parseInt(tr.metadata.widthOfGlyph(rr),10)])),"0"==rr)return ir.join("");rr=rr.toString(16),ir.push(ar[4-rr.length],rr)}return ir.join("")},nr=function r(er){var tr,rr,r,nr,ar,ir,or;for(ar="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],ir=0,or=(rr=Object.keys(er).sort((function(er,tr){return er-tr}))).length;ir<or;ir++)tr=rr[ir],r.length>=100&&(ar+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==er[tr]&&null!==er[tr]&&"function"==typeof er[tr].toString&&(nr=("0000"+er[tr].toString(16)).slice(-4),tr=("0000"+(+tr).toString(16)).slice(-4),r.push("<"+tr+"><"+nr+">"));return r.length&&(ar+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),ar+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ar=tr.out,ir=tr.newObject,or=tr.putStream,sr=tr.pdfEscapeWithNeededParanthesis;if(rr.metadata instanceof er.API.TTFFont&&"Identity-H"===rr.encoding){for(var lr=rr.metadata.Unicode.widths,cr=rr.metadata.subset.encode(rr.metadata.glyIdsUsed,1),ur="",dr=0;dr<cr.length;dr++)ur+=String.fromCharCode(cr[dr]);var hr=ir();or({data:ur,addLength1:!0}),ar("endobj");var pr=ir();or({data:nr(rr.metadata.toUnicode),addLength1:!0}),ar("endobj");var Ar=ir();ar("<<"),ar("/Type /FontDescriptor"),ar("/FontName /"+sr(rr.fontName)),ar("/FontFile2 "+hr+" 0 R"),ar("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ar("/Flags "+rr.metadata.flags),ar("/StemV "+rr.metadata.stemV),ar("/ItalicAngle "+rr.metadata.italicAngle),ar("/Ascent "+rr.metadata.ascender),ar("/Descent "+rr.metadata.decender),ar("/CapHeight "+rr.metadata.capHeight),ar(">>"),ar("endobj");var fr=ir();ar("<<"),ar("/Type /Font"),ar("/BaseFont /"+sr(rr.fontName)),ar("/FontDescriptor "+Ar+" 0 R"),ar("/W "+er.API.PDFObject.convert(lr)),ar("/CIDToGIDMap /Identity"),ar("/DW 1000"),ar("/Subtype /CIDFontType2"),ar("/CIDSystemInfo"),ar("<<"),ar("/Supplement 0"),ar("/Registry (Adobe)"),ar("/Ordering ("+rr.encoding+")"),ar(">>"),ar(">>"),ar("endobj"),rr.objectNumber=ir(),ar("<<"),ar("/Type /Font"),ar("/Subtype /Type0"),ar("/ToUnicode "+pr+" 0 R"),ar("/BaseFont /"+sr(rr.fontName)),ar("/Encoding /"+rr.encoding),ar("/DescendantFonts ["+fr+" 0 R]"),ar(">>"),ar("endobj"),rr.i
/**
* @license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
2020-08-28 22:07:07 +00:00
*/
2020-09-04 20:34:30 +00:00
function(er){var tr=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};er.existsFileInVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]},er.addFileToVFS=function(er,rr){return tr.call(this),this.internal.vFS[er]=rr,this},er.getFileFromVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]?this.internal.vFS[er]:null}}(g.API),
/**
* @license
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
* MIT License
2020-08-28 22:07:07 +00:00
*/
2020-09-08 23:35:47 +00:00
function(er){er.__bidiEngine__=er.prototype.__bidiEngine__=function(er){var rr,nr,ar,ir,or,sr,lr,cr=tr,ur=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],dr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],hr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},pr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Ar=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","","","","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],fr=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),gr=!1,mr=0;this.__bidiEngine__={};var _r=function b(er){var tr=er.charCodeAt(),rr=tr>>8,nr=pr[rr];return void 0!==nr?cr[256*nr+(255&tr)]:252===rr||253===rr?"AL":fr.test(rr)?"L":8===rr?"R":"N"},vr=function y(er){for(var tr,rr=0;rr<er.length;rr++){if("L"===(tr=_r(er.charAt(rr))))return!1;if("R"===tr)return!0}return!1},yr=function w(er,tr,or,sr){var lr,cr,ur,dr,hr=tr[sr];switch(hr){case"L":case"R":gr=!1;break;case"N":case"AN":break;case"EN":gr&&(hr="AN");break;case"AL":gr=!0,hr="R";break;case"WS":hr="N";break;case"CS":sr<1||sr+1>=tr.length||"EN"!==(lr=or[sr-1])&&"AN"!==lr||"EN"!==(cr=tr[sr+1])&&"AN"!==cr?hr="N":gr&&(cr="AN"),hr=cr===lr?cr:"N";break;case"ES":hr="EN"===(lr=sr>0?or[sr-1]:"B")&&sr+1<tr.length&&"EN"===tr[sr+1]?"EN":"N";break;case"ET":if(sr>0&&"EN"===or[sr-1]){hr="EN";break}if(gr){hr="N";break}for(ur=sr+1,dr=tr.length;ur<dr&&"ET"===tr[ur];)ur++;hr=ur<dr&&"EN"===tr[ur]?"EN":"N";break;case"NSM":if(ar&&!ir){for(dr=tr.length,ur=sr+1;ur<dr&&"NSM"===tr[ur];)ur++;if(ur<dr){var pr=er[sr],Ar=pr>=1425&&pr<=2303||64286===pr;if(lr=tr[ur],Ar&&("R"===lr||"AL"===lr)){hr="R";break}}}hr=sr<1||"B"===(lr=tr[sr-1])?"N":or[sr-1];break;case"B":gr=!1,rr=!0,hr=mr;break;case"S":nr=!0,hr="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gr=!1;break;case"BN":hr="N"}return hr},br=function N(er,tr,rr){var nr=er.split("");return rr&&wr(nr,rr,{hiLevel:mr}),nr.reverse(),tr&&tr.reverse(),nr.join("")},wr=function L(er,tr,ar){var ir,or,sr,lr,cr,pr=-1,Ar=er.length,fr=0,vr=[],br=mr?dr:ur,L=[];for(gr=!1,rr=!1,nr=!1,or=0;or<Ar;or++)L[or]=_r(er[or]);for(sr=0;sr<Ar;sr++){if(cr=fr,vr[sr]=yr(er,L,vr,sr),ir=240&(fr=br[cr][hr[vr[sr]]]),fr&=15,tr[sr]=lr=br[fr][5],ir>0)if(16===ir){for(or=pr;or<sr;or++)tr[or]=1;pr=-1}else pr=-1;if(br[fr][6])-1===pr&&(pr=sr);else if(pr>-1){for(or=pr;or<sr;or++)tr[or]=lr;pr=-1}"B"===L[sr]&&(tr[sr]=0),ar.hiLevel|=lr}nr&&function(er,tr,rr){for(var nr=0;nr<rr;nr++)if("S"===er[nr]){tr[nr]=mr;for(var ar=nr-1;ar>=0&&"WS"===er[ar];ar--)tr[ar]=mr}}(L,tr,Ar)},kr=function x(er,tr,nr,ar,ir){if(!(ir.hiLevel<er)){if(1===er&&1===mr&&!rr)return tr.reverse(),void(nr&&nr.reverse());for(var or,sr,lr,cr,ur=tr.length,dr=0;dr<ur;){if(ar[dr]>=er){for(lr=dr+1;lr<ur&&ar[lr]>=er;)lr++;for(cr=dr,sr=lr-1;cr<sr;cr++,sr--)or=tr[cr],tr[cr]=tr[sr],tr[sr]=or,nr&&(or=nr[cr],nr[cr]=nr[sr],nr[sr]=or);dr=lr}dr++}}},xr=function A(er,tr,rr){var nr=er.split(""),ar={hiLevel:mr};return rr||(rr=[]),wr(nr,rr,ar),function(er,tr,rr){if(0!==rr.hiLevel&&lr)for(var nr,ar=0;ar<er.length;ar++)1===tr[ar]&&(nr=Ar.indexOf(er[ar]))>=0&&(er[ar]=Ar[nr+1])}(nr,rr,ar),kr(2,nr,tr,rr,ar),kr(1,nr,tr,rr,ar),nr.join("")};return this.__bidiEngine__.doBidiReorder=function(er,tr,rr){if(function(er,tr){if(tr)for(var rr=0;rr<er.length;rr++)tr[rr]=rr;void 0===ir&&(ir=vr(er)),void 0===sr&&(sr=vr(er))}(er,tr),ar||!or||sr)if(ar&&or&&ir^sr)mr=ir?1:0,er=br(er,tr,rr);else if(!ar&&or&&sr)mr=ir?1:0,er=xr(er,tr,rr),er=br(er,tr);else if(!ar||ir||or||sr){if(ar&&!or&&ir^sr)er=br(er,tr),ir?(mr=0,er=xr(er,tr,rr)):(mr=1,er=xr(er,tr,rr),er=br(er,tr));else if(ar&&ir&&!or&&sr)mr=1,er=xr(er,tr,rr),er=br(er,tr);else if(!ar&&!or&&ir^sr){var nr=lr;ir?(mr=1,er=xr(er,tr,rr),mr=0,lr=!1,er=xr(er,tr,rr),lr=nr):(mr=0,er=xr(er,tr,rr),er=br(er,tr),mr=1,lr=!1,er=xr(er,tr,rr),lr=nr,er=br(er,tr))}}else mr=0,er=xr(er,tr,rr);else mr=ir?1:0,er=xr(er,tr,rr);return er},this.__bidiEngine__.setOptions=function(er){er&&(
2020-09-04 20:34:30 +00:00
/*! https://mths.be/cssesc v3.0.0 by @mathias */
2020-09-08 23:35:47 +00:00
var om={}.hasOwnProperty,sm=/[ -,\.\/:-@\[-\^`\{-~]/,lm=/[ -,\.\/:-@\[\]\^`\{-~]/,cm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,um=function cssesc(er,tr){"single"!=(tr=function merge(er,tr){if(!er)return tr;var rr={};for(var nr in tr)rr[nr]=om.call(er,nr)?er[nr]:tr[nr];return rr}(tr,cssesc.options)).quotes&&"double"!=tr.quotes&&(tr.quotes="single");for(var rr="double"==tr.quotes?'"':"'",nr=tr.isIdentifier,ar=er.charAt(0),ir="",or=0,sr=er.length;or<sr;){var lr=er.charAt(or++),cr=lr.charCodeAt(),ur=void 0;if(cr<32||cr>126){if(cr>=55296&&cr<=56319&&or<sr){var dr=er.charCodeAt(or++);56320==(64512&dr)?cr=((1023&cr)<<10)+(1023&dr)+65536:or--}ur="\\"+cr.toString(16).toUpperCase()+" "}else ur=tr.escapeEverything?sm.test(lr)?"\\"+lr:"\\"+cr.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(lr)?"\\"+cr.toString(16).toUpperCase()+" ":"\\"==lr||!nr&&('"'==lr&&rr==lr||"'"==lr&&rr==lr)||nr&&lm.test(lr)?"\\"+lr:lr;ir+=ur}return nr&&(/^-[-\d]/.test(ir)?ir="\\-"+ir.slice(1):/\d/.test(ar)&&(ir="\\3"+ar+" "+ir.slice(1))),ir=ir.replace(cm,(function(er,tr,rr){return tr&&tr.length%2?er:(tr||"")+rr})),!nr&&tr.wrap?rr+ir+rr:ir};um.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},um.version="3.0.0";var dm=um,hm=/[a-z0-9_-]/i,pm=/[\s\t]/,Am=function parse(er){for(var tr,rr,nr=!0,ar=0,ir="",or=0,sr=[];;){if(rr=er[or],0===ar){if(!rr&&nr)break;if(!rr&&!nr)throw new Error("Parse error");if('"'===rr||"'"===rr)tr=rr,ar=1,nr=!1;else if(pm.test(rr));else{if(!hm.test(rr))throw new Error("Parse error");ar=3,nr=!1,or--}}else if(1===ar){if(!rr)throw new Error("Parse Error");"\\"===rr?ar=2:rr===tr?(sr.push(ir),ir="",ar=4):ir+=rr}else if(2===ar){if(rr!==tr&&"\\"!==rr)throw new Error("Parse error");ir+=rr,ar=1}else if(3===ar){if(!rr){sr.push(ir);break}if(hm.test(rr))ir+=rr;else if(","===rr)sr.push(ir),ir="",ar=0;else{if(!pm.test(rr))throw new Error("Parse error");ar=5}}else if(5===ar){if(!rr){sr.push(ir);break}if(hm.test(rr))ir+=" "+rr,ar=3;else if(","===rr)sr.push(ir),ir="",ar=0;else if(!pm.test(rr))throw new Error("Parse error")}else if(4===ar){if(!rr)break;if(","===rr)ar=0;else if(!pm.test(rr))throw new Error("Parse error")}or++}return sr},fm={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},gm=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(er){return er>=48&&er<=57}function State(er){this.index=0,this.path=er,this.max=er.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(er){for(;er.index<er.max&&(10===(tr=er.path.charCodeAt(er.index))||13===tr||8232===tr||8233===tr||32===tr||9===tr||11===tr||12===tr||160===tr||tr>=5760&&gm.indexOf(tr)>=0);)er.index++;var tr}function scanFlag(er){var tr=er.path.charCodeAt(er.index);return 48===tr?(er.param=0,void er.index++):49===tr?(er.param=1,void er.index++):void(er.err="SvgPath: arc flag can be 0 or 1 only (at pos "+er.index+")")}function scanParam(er){var tr,rr=er.index,nr=rr,ar=er.max,ir=!1,or=!1,sr=!1,lr=!1;if(nr>=ar)er.err="SvgPath: missed param (at pos "+nr+")";else if(43!==(tr=er.path.charCodeAt(nr))&&45!==tr||(tr=++nr<ar?er.path.charCodeAt(nr):0),isDigit(tr)||46===tr){if(46!==tr){if(ir=48===tr,tr=++nr<ar?er.path.charCodeAt(nr):0,ir&&nr<ar&&tr&&isDigit(tr))return void(er.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+rr+")");for(;nr<ar&&isDigit(er.path.charCodeAt(nr));)nr++,or=!0;tr=nr<ar?er.path.charCodeAt(nr):0}if(46===tr){for(lr=!0,nr++;isDigit(er.path.charCodeAt(nr));)nr++,sr=!0;tr=nr<ar?er.path.charCodeAt(nr):0}if(101===tr||69===tr){if(lr&&!or&&!sr)return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");if(43!==(tr=++nr<ar?er.path.charCodeAt(nr):0)&&45!==tr||nr++,!(nr<ar&&isDigit(er.path.charCodeAt(nr))))return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");for(;nr<ar&&isDigit(er.path.charCodeAt(nr));)nr++}er.index=nr,er.param=parseFloat(er.path.slice(rr,nr))+0}else er.err="SvgPath: param should start with 0..9 or `.` (at pos "+nr+")"}function finalizeSegment(er){var tr,rr;rr=(tr=er.path[er.segmentStart]).toLowerCase(
2020-09-04 20:34:30 +00:00
/**
* For parsing color values.
* @module RGBColor
* @author Stoyan Stefanov <sstoo@gmail.com>
* @see https://www.phpied.com/rgb-color-parser-in-javascript/
* @license MIT
*/
2020-09-08 23:35:47 +00:00
var F_={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},U_=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(er){for(var tr=arguments.length,rr=new Array(tr>1?tr-1:0),nr=1;nr<tr;nr++)rr[nr-1]=arguments[nr];return rr.map((function(er){return Number.parseInt(er)}))}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){for(var tr=arguments.length,rr=new Array(tr>1?tr-1:0),nr=1;nr<tr;nr++)rr[nr-1]=arguments[nr];return rr.map((function(er){return Number.parseInt(er,16)}))}},{re:/^(\w)(\w)(\w)$/,example:["#fb0","f0f"],process:function process(er){for(var tr=arguments.length,rr=new Array(tr>1?tr-1:0),nr=1;nr<tr;nr++)rr[nr-1]=arguments[nr];return rr.map((function(er){return Number.parseInt(er+er,16)}))}}],I_=function(){function RGBColor(er){var tr=this;_classCallCheck(this,RGBColor),this.ok=!1,"#"===er.charAt(0)&&(er=er.substr(1,6)),(er=(er=er.replace(/ /g,"")).toLowerCase())in F_&&(er=F_[er]),U_.forEach((function(rr){var nr=rr.re,ar=rr.process,ir=nr.exec(er);if(ir){var or=_slicedToArray(ar.apply(void 0,_toConsumableArray(ir)),3),sr=or[0],lr=or[1],cr=or[2];Object.assign(tr,{r:sr,g:lr,b:cr}),tr.ok=!0}})),this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b}return _createClass(RGBColor,[{key:"toRGB",val
2020-09-04 20:34:30 +00:00
/**
* @file jGraduate 0.4
*
* jQuery Plugin for a gradient picker
*
* @module jGraduate
* @copyright 2010 Jeff Schiller {@link http://blog.codedread.com/}, 2010 Alexis Deveria {@link http://a.deveria.com/}
*
* @license Apache-2.0
* @example
* // The Paint object is described below.
* $.jGraduate.Paint(); // constructs a 'none' color
* @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
* @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
* @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
* @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
*/
2020-09-08 23:35:47 +00:00
var Oy="http://www.w3.org/2000/svg",Dy="http://www.w3.org/1999/xlink";
2020-09-04 20:34:30 +00:00
/**
* @file jPicker (Adapted from version 1.1.6)
*
* jQuery Plugin for Photoshop style color picker
*
* @module jPicker
* @copyright (c) 2010 Christopher T. Tillman
* Digital Magic Productions, Inc. ({@link http://www.digitalmagicpro.com/})
* FREE to use, alter, copy, sell, and especially ENHANCE
* @license MIT
*
* Painstakingly ported from John Dyers' excellent work on his own color picker based on the Prototype framework.
*
* John Dyers' website: {@link http://johndyer.name}
* Color Picker page: {@link http://johndyer.name/photoshop-like-javascript-color-picker/}
*/
2020-09-08 23:35:47 +00:00
function toFixedNumeric(er,tr){return void 0===tr&&(tr=0),Math.round(er*Math.pow(10,tr))/Math.pow(10,tr)}window.console||(window.console={log:function log(er){},dir:function dir(er){}});var jy=function isNullish(er){return null==er};function __variableDynamicImportRuntime0__(er){switch(er){case"./locale/lang.af.js":return Promise.resolve().then((function(){return fx}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return gx}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return mx}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return _x}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return vx}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return yx}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return bx}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return wx}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return kx}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return xx}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return Sx}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return Cx}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return Bx}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return Ex}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return Nx}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return Lx}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return Px}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return Tx}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return Fx}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return Ux}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return Ix}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return Rx}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return Mx}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return Qx}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return Ox}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return Dx}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return jx}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return Hx}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return Gx}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return Vx}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return zx}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return Kx}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return qx}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return Wx}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return Xx}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return Yx}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return Jx}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return $x}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return Zx}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return eS}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return tS}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return rS}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return nS}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return aS}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return iS}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return oS}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){retu
2020-09-04 20:34:30 +00:00
/**
* Localizing script for SVG-edit UI.
* @module locale
* @license MIT
*
* @copyright 2010 Narendra Sisodya
* @copyright 2010 Alexis Deveria
*
2020-09-08 23:35:47 +00:00
*/_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHtml(this,"b","","")}});var Hy,Gy=jQuery,Vy=function setStrings(er,tr,rr){var nr=Gy("#svg_editor").parent();Object.entries(tr).forEach((function(tr){var ar=_slicedToArray(tr,2),ir=ar[0],or=ar[1];if(or){rr&&(ir="#"+ir);var sr=nr.find(ir);if(sr.length){var lr=sr[0];switch(er){case"aria-label":lr.setAttribute("aria-label",or);break;case"content":_toConsumableArray(lr.childNodes).some((function(er){return!(3!==er.nodeType||!er.textContent.trim())&&(er.textContent=or,!0)}));break;case"title":lr.title=or}}else console.log("Missing element for localization: "+ir)}else console.log(ir)}))},zy=function readLang(er){var tr=er.tools,rr=er.properties,nr=er.config,ar=er.layers,ir=er.common,or=er.ui;Vy("content",{curve_segments:rr.curve_segments,fitToContent:tr.fitToContent,fit_to_all:tr.fit_to_all,fit_to_canvas:tr.fit_to_canvas,fit_to_layer_content:tr.fit_to_layer_content,fit_to_sel:tr.fit_to_sel,icon_large:nr.icon_large,icon_medium:nr.icon_medium,icon_small:nr.icon_small,icon_xlarge:nr.icon_xlarge,image_opt_embed:nr.image_opt_embed,image_opt_ref:nr.image_opt_ref,includedImages:nr.included_images,largest_object:tr.largest_object,layersLabel:ar.layers,page:tr.page,relativeToLabel:tr.relativeTo,selLayerLabel:ar.move_elems_to,selectedPredefined:nr.select_predefined,selected_objects:tr.selected_objects,smallest_object:tr.smallest_object,straight_segments:rr.straight_segments,svginfo_bg_url:nr.editor_img_url+":",svginfo_bg_note:nr.editor_bg_note,svginfo_change_background:nr.background,svginfo_dim:nr.doc_dims,svginfo_editor_prefs:nr.editor_prefs,svginfo_height:ir.height,svginfo_icons:nr.icon_size,svginfo_image_props:nr.image_props,svginfo_lang:nr.language,svginfo_title:nr.doc_title,svginfo_width:ir.width,tool_docprops_cancel:ir.cancel,tool_docprops_save:ir.ok,tool_source_cancel:ir.cancel,tool_source_save:ir.ok,tool_prefs_cancel:ir.cancel,tool_prefs_save:ir.ok,sidepanel_handle:ar.layers.split("").join(" "),tool_clear:tr.new_doc,tool_docprops:tr.docprops,tool_export:tr.export_img,tool_import:tr.import_doc,tool_open:tr.open_doc,tool_save:tr.save_doc,tool_editor_prefs:nr.editor_prefs,tool_editor_homepage:tr.editor_homepage,svginfo_units_rulers:nr.units_and_rulers,svginfo_rulers_onoff:nr.show_rulers,svginfo_unit:nr.base_unit,svginfo_grid_settings:nr.grid,svginfo_snap_onoff:nr.snapping_onoff,svginfo_snap_step:nr.snapping_stepsize,svginfo_grid_color:nr.grid_color},!0);var sr={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(er){sr['#cmenu_canvas a[href="#'+er+'"]']=tr[er]})),["dupe","merge_down","merge_all"].forEach((function(er){sr['#cmenu_layers a[href="#'+er+'"]']=ar[er]})),sr['#cmenu_layers a[href="#delete"]']=ar.del,Vy("content",sr);var lr={};return Object.entries({tool_blur:rr.blur,tool_position:tr.align_to_page,tool_font_family:rr.font_family,zoom_panel:or.zoom_level,stroke_linejoin:rr.linejoin_miter,stroke_linecap:rr.linecap_butt,tool_opacity:rr.opacity}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr+" button"]=nr})),Object.entries({group_opacity:rr.opacity,zoom:or.zoom_level}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr]=nr})),Vy("aria-label",lr),Vy("title",{align_relative_to:tr.align_relative_to,circle_cx:rr.circle_cx,circle_cy:rr.circle_cy,circle_r:rr.circle_r,cornerRadiusLabel:rr.corner_radius,ellipse_cx:rr.ellipse_cx,ellipse_cy:rr.ellipse_cy,ellipse_rx:rr.ellipse_rx,ellipse_ry:rr.ellipse_ry,fill_color:rr.fill_color,font_family:rr.font_family,idLabel:rr.id,image_height:rr.image_height,image_url:rr.image_url,image_width:rr.image_width,layer_delete:ar.del,layer_down:ar.move_down,layer_new:ar.new,layer_rename:ar.rename,layer_moreopts:ir.more_opts,layer_up:ar.move_up,line_x1:rr.line_x1,line_x2:rr.line_x2,line_y1:rr.line_y1,line_y2:rr.line_y2,linecap_butt:rr.linecap_butt,linecap_round:rr.linecap_round,linecap_square:rr.linecap_square,linejoin_bevel:rr.linejoin_bevel,linejoin_miter:rr.line
2020-09-04 20:34:30 +00:00
/*!
* html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
* Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/
er.exports=function(){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
2020-09-08 23:35:47 +00:00
var er=function extendStatics(tr,rr){return(er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(er,tr){er.__proto__=tr}||function(er,tr){for(var rr in tr)tr.hasOwnProperty(rr)&&(er[rr]=tr[rr])})(tr,rr)};function __extends(tr,rr){function __(){this.constructor=tr}er(tr,rr),tr.prototype=null===rr?Object.create(rr):(__.prototype=rr.prototype,new __)}var tr=function __assign(){return(tr=Object.assign||function __assign(er){for(var tr,rr=1,nr=arguments.length;rr<nr;rr++)for(var ar in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ar)&&(er[ar]=tr[ar]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ar,ir){function fulfilled(er){try{step(nr.next(er))}catch(er){ir(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){ir(er)}}function step(er){er.done?ar(er.value):new rr((function(tr){tr(er.value)})).then(fulfilled,rejected)}step((nr=nr.apply(er,tr||[])).next())}))}function __generator(er,tr){var rr,nr,ar,ir,or={label:0,sent:function sent(){if(1&ar[0])throw ar[1];return ar[1]},trys:[],ops:[]};return ir={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ir[Symbol.iterator]=function(){return this}),ir;function verb(er){return function(tr){return step([er,tr])}}function step(ir){if(rr)throw new TypeError("Generator is already executing.");for(;or;)try{if(rr=1,nr&&(ar=2&ir[0]?nr.return:ir[0]?nr.throw||((ar=nr.return)&&ar.call(nr),0):nr.next)&&!(ar=ar.call(nr,ir[1])).done)return ar;switch(nr=0,ar&&(ir=[2&ir[0],ar.value]),ir[0]){case 0:case 1:ar=ir;break;case 4:return or.label++,{value:ir[1],done:!1};case 5:or.label++,nr=ir[1],ir=[0];continue;case 7:ir=or.ops.pop(),or.trys.pop();continue;default:if(!((ar=(ar=or.trys).length>0&&ar[ar.length-1])||6!==ir[0]&&2!==ir[0])){or=0;continue}if(3===ir[0]&&(!ar||ir[1]>ar[0]&&ir[1]<ar[3])){or.label=ir[1];break}if(6===ir[0]&&or.label<ar[1]){or.label=ar[1],ar=ir;break}if(ar&&or.label<ar[2]){or.label=ar[2],or.ops.push(ir);break}ar[2]&&or.ops.pop(),or.trys.pop();continue}ir=tr.call(er,or)}catch(er){ir=[6,er],nr=0}finally{rr=ar=0}if(5&ir[0])throw ir[1];return{value:ir[0]?ir[1]:void 0,done:!0}}}for(var rr=function(){function Bounds(er,tr,rr,nr){this.left=er,this.top=tr,this.width=rr,this.height=nr}return Bounds.prototype.add=function(er,tr,rr,nr){return new Bounds(this.left+er,this.top+tr,this.width+rr,this.height+nr)},Bounds.fromClientRect=function(er){return new Bounds(er.left,er.top,er.width,er.height)},Bounds}(),nr=function parseBounds(er){return rr.fromClientRect(er.getBoundingClientRect())},ar=function parseDocumentSize(er){var tr=er.body,nr=er.documentElement;if(!tr||!nr)throw new Error("Unable to get document size");var ar=Math.max(Math.max(tr.scrollWidth,nr.scrollWidth),Math.max(tr.offsetWidth,nr.offsetWidth),Math.max(tr.clientWidth,nr.clientWidth)),ir=Math.max(Math.max(tr.scrollHeight,nr.scrollHeight),Math.max(tr.offsetHeight,nr.offsetHeight),Math.max(tr.clientHeight,nr.clientHeight));return new rr(0,0,ar,ir)},ir=function toCodePoints(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ar=er.charCodeAt(rr++);if(ar>=55296&&ar<=56319&&rr<nr){var ir=er.charCodeAt(rr++);56320==(64512&ir)?tr.push(((1023&ar)<<10)+(1023&ir)+65536):(tr.push(ar),rr--)}else tr.push(ar)}return tr},or=function fromCodePoint(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];if(String.fromCodePoint)return String.fromCodePoint.apply(String,er);var rr=er.length;if(!rr)return"";for(var nr=[],ar=-1,ir="";++ar<rr;){var or=er[ar];or<=65535?nr.push(or):(or-=65536,nr.push(55296+(or>>10),or%1024+56320)),(ar+1===rr||nr.length>16384)&&(ir+=String.fromCharCode.apply(String,nr),nr.length=0)}return ir},sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),cr=0;cr<sr.length;cr++)lr[sr.charCodeAt(cr)]=cr;var ur,dr=function decode(er){var tr,rr,nr,ar,ir,or=.75*er.length,sr=er.length,cr=0;"="===er[er.length-1]&&(or--,"="===er[er.length-2]&&or--);var ur="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.sli
2020-09-04 20:34:30 +00:00
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
2020-09-08 23:35:47 +00:00
er.exports=function(){function _toConsumableArray(er){if(Array.isArray(er)){for(var tr=0,rr=Array(er.length);tr<er.length;tr++)rr[tr]=er[tr];return rr}return Array.from(er)}var er=Object.hasOwnProperty,tr=Object.setPrototypeOf,rr=Object.isFrozen,nr=Object.keys,ar=Object.freeze,ir=Object.seal,or="undefined"!=typeof Reflect&&Reflect,sr=or.apply,lr=or.construct;sr||(sr=function apply(er,tr,rr){return er.apply(tr,rr)}),ar||(ar=function freeze(er){return er}),ir||(ir=function seal(er){return er}),lr||(lr=function construct(er,tr){return new(Function.prototype.bind.apply(er,[null].concat(_toConsumableArray(tr))))});var cr=unapply(Array.prototype.forEach),ur=unapply(Array.prototype.indexOf),dr=unapply(Array.prototype.join),hr=unapply(Array.prototype.pop),pr=unapply(Array.prototype.push),Ar=unapply(Array.prototype.slice),fr=unapply(String.prototype.toLowerCase),gr=unapply(String.prototype.match),mr=unapply(String.prototype.replace),_r=unapply(String.prototype.indexOf),vr=unapply(String.prototype.trim),yr=unapply(RegExp.prototype.test),br=unconstruct(RegExp),wr=unconstruct(TypeError);function unapply(er){return function(tr){for(var rr=arguments.length,nr=Array(rr>1?rr-1:0),ar=1;ar<rr;ar++)nr[ar-1]=arguments[ar];return sr(er,tr,nr)}}function unconstruct(er){return function(){for(var tr=arguments.length,rr=Array(tr),nr=0;nr<tr;nr++)rr[nr]=arguments[nr];return lr(er,rr)}}function addToSet(er,nr){tr&&tr(er,null);for(var ar=nr.length;ar--;){var ir=nr[ar];if("string"==typeof ir){var or=fr(ir);or!==ir&&(rr(nr)||(nr[ar]=or),ir=or)}er[ir]=!0}return er}function clone(tr){var rr={},nr=void 0;for(nr in tr)sr(er,tr,[nr])&&(rr[nr]=tr[nr]);return rr}var kr=ar(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xr=ar(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),Sr=ar(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cr=ar(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Br=ar(["#text"]),Er=ar(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","i
2020-08-28 22:07:07 +00:00
//# sourceMappingURL=index.js.map