svgedit/dist/editor/system/index.js

581 lines
2.2 MiB
JavaScript
Raw Normal View History

System.register(["process"],(function(Tn,Un){"use strict";var Dn;return{setters:[function(Tn){Dn=Tn.default}],execute:function(){var Tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(Tn){var Un={exports:{}};return Tn(Un,Un.exports),Un.exports}var check=function(Tn){return Tn&&Tn.Math==Math&&Tn},Qn=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof Tn&&Tn)||function(){return this}()||Function("return this")(),fails=function(Tn){try{return!!Tn()}catch(Tn){return!0}},Hn=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gn={}.propertyIsEnumerable,Vn=Object.getOwnPropertyDescriptor,zn={f:Vn&&!Gn.call({1:2},1)?function propertyIsEnumerable(Tn){var Un=Vn(this,Tn);return!!Un&&Un.enumerable}:Gn},createPropertyDescriptor=function(Tn,Un){return{enumerable:!(1&Tn),configurable:!(2&Tn),writable:!(4&Tn),value:Un}},Kn={}.toString,classofRaw=function(Tn){return Kn.call(Tn).slice(8,-1)},Wn="".split,$n=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(Tn){return"String"==classofRaw(Tn)?Wn.call(Tn,""):Object(Tn)}:Object,requireObjectCoercible=function(Tn){if(null==Tn)throw TypeError("Can't call method on "+Tn);return Tn},toIndexedObject=function(Tn){return $n(requireObjectCoercible(Tn))},isObject=function(Tn){return"object"==typeof Tn?null!==Tn:"function"==typeof Tn},toPrimitive=function(Tn,Un){if(!isObject(Tn))return Tn;var Dn,Qn;if(Un&&"function"==typeof(Dn=Tn.toString)&&!isObject(Qn=Dn.call(Tn)))return Qn;if("function"==typeof(Dn=Tn.valueOf)&&!isObject(Qn=Dn.call(Tn)))return Qn;if(!Un&&"function"==typeof(Dn=Tn.toString)&&!isObject(Qn=Dn.call(Tn)))return Qn;throw TypeError("Can't convert object to primitive value")},Xn={}.hasOwnProperty,has=function(Tn,Un){return Xn.call(Tn,Un)},Yn=Qn.document,Jn=isObject(Yn)&&isObject(Yn.createElement),documentCreateElement=function(Tn){return Jn?Yn.createElement(Tn):{}},Zn=!Hn&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),er=Object.getOwnPropertyDescriptor,tr={f:Hn?er:function getOwnPropertyDescriptor(Tn,Un){if(Tn=toIndexedObject(Tn),Un=toPrimitive(Un,!0),Zn)try{return er(Tn,Un)}catch(Tn){}if(has(Tn,Un))return createPropertyDescriptor(!zn.f.call(Tn,Un),Tn[Un])}},anObject=function(Tn){if(!isObject(Tn))throw TypeError(String(Tn)+" is not an object");return Tn},nr=Object.defineProperty,rr={f:Hn?nr:function defineProperty(Tn,Un,Dn){if(anObject(Tn),Un=toPrimitive(Un,!0),anObject(Dn),Zn)try{return nr(Tn,Un,Dn)}catch(Tn){}if("get"in Dn||"set"in Dn)throw TypeError("Accessors not supported");return"value"in Dn&&(Tn[Un]=Dn.value),Tn}},ir=Hn?function(Tn,Un,Dn){return rr.f(Tn,Un,createPropertyDescriptor(1,Dn))}:function(Tn,Un,Dn){return Tn[Un]=Dn,Tn},setGlobal=function(Tn,Un){try{ir(Qn,Tn,Un)}catch(Dn){Qn[Tn]=Un}return Un},or="__core-js_shared__",ar=Qn[or]||setGlobal(or,{}),sr=Function.toString;"function"!=typeof ar.inspectSource&&(ar.inspectSource=function(Tn){return sr.call(Tn)});var lr,cr,ur,dr=ar.inspectSource,pr=Qn.WeakMap,hr="function"==typeof pr&&/native code/.test(dr(pr)),gr=createCommonjsModule((function(Tn){(Tn.exports=function(Tn,Un){return ar[Tn]||(ar[Tn]=void 0!==Un?Un:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),fr=0,Ar=Math.random(),uid=function(Tn){return"Symbol("+String(void 0===Tn?"":Tn)+")_"+(++fr+Ar).toString(36)},mr=gr("keys"),sharedKey=function(Tn){return mr[Tn]||(mr[Tn]=uid(Tn))},yr={},vr=Qn.WeakMap;if(hr){var _r=ar.state||(ar.state=new vr),br=_r.get,wr=_r.has,xr=_r.set;lr=function(Tn,Un){return Un.facade=Tn,xr.call(_r,Tn,Un),Un},cr=function(Tn){return br.call(_r,Tn)||{}},ur=function(Tn){return wr.call(_r,Tn)}}else{var Sr=sharedKey("state");yr[Sr]=!0,lr=function(Tn,Un){return Un.facade=Tn,ir(Tn,Sr,Un),Un},cr=function(Tn){return has(Tn,Sr)?Tn[Sr]:{}},ur=function(Tn){return ha
/*! jQuery v1.7.1 jquery.com | jquery.org/license */_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHtml(this,"sub","","")}}),_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return URL.prototype.toString.call(this)}}),function(Tn,Un){function cy(Tn){return Gn.isWindow(Tn)?Tn:9===Tn.nodeType&&(Tn.defaultView||Tn.parentWindow)}function cv(Tn){if(!Bi[Tn]){var Un=Dn.body,Qn=Gn("<"+Tn+">").appendTo(Un),Hn=Qn.css("display");Qn.remove(),"none"!==Hn&&""!==Hn||(xi||((xi=Dn.createElement("iframe")).frameBorder=xi.width=xi.height=0),Un.appendChild(xi),Si&&xi.createElement||((Si=(xi.contentWindow||xi.contentDocument).document).write(("CSS1Compat"===Dn.compatMode?"<!doctype html>":"")+"<html><body>"),Si.close()),Qn=Si.createElement(Tn),Si.body.appendChild(Qn),Hn=Gn.css(Qn,"display"),Un.removeChild(xi)),Bi[Tn]=Hn}return Bi[Tn]}function cu(Tn,Un){var Dn={};return Gn.each(Ti.concat.apply([],Ti.slice(0,Un)),(function(){Dn[this]=Tn})),Dn}function ct(){ki=Un}function cs(){return setTimeout(ct,0),ki=Gn.now()}function ci(){try{return new Tn.XMLHttpRequest}catch(Tn){}}function ca(Tn,Un,Dn,Qn){if(Gn.isArray(Un))Gn.each(Un,(function(Un,Hn){Dn||Zr.test(Tn)?Qn(Tn,Hn):ca(Tn+"["+("object"==_typeof(Hn)||Gn.isArray(Hn)?Un:"")+"]",Hn,Dn,Qn)}));else if(Dn||null==Un||"object"!=_typeof(Un))Qn(Tn,Un);else for(var Hn in Un)ca(Tn+"["+Hn+"]",Un[Hn],Dn,Qn)}function b_(Tn,Dn){var Qn,Hn,Vn=Gn.ajaxSettings.flatOptions||{};for(Qn in Dn)Dn[Qn]!==Un&&((Vn[Qn]?Tn:Hn||(Hn={}))[Qn]=Dn[Qn]);Hn&&Gn.extend(!0,Tn,Hn)}function b$(Tn,Dn,Qn,Hn,Gn,Vn){(Vn=Vn||{})[Gn=Gn||Dn.dataTypes[0]]=!0;for(var zn,Kn=Tn[Gn],Wn=0,$n=Kn?Kn.length:0,Xn=Tn===gi;Wn<$n&&(Xn||!zn);Wn++)"string"==typeof(zn=Kn[Wn](Dn,Qn,Hn))&&(!Xn||Vn[zn]?zn=Un:(Dn.dataTypes.unshift(zn),zn=b$(Tn,Dn,Qn,Hn,zn,Vn)));return(Xn||!zn)&&!Vn["*"]&&(zn=b$(Tn,Dn,Qn,Hn,"*",Vn)),zn}function bZ(Tn){return function(Un,Dn){if("string"!=typeof Un&&(Dn=Un,Un="*"),Gn.isFunction(Dn))for(var Qn,Hn,Vn=Un.toLowerCase().split(ui),zn=0,Kn=Vn.length;zn<Kn;zn++)Qn=Vn[zn],(Hn=/^\+/.test(Qn))&&(Qn=Qn.substr(1)||"*"),(Tn[Qn]=Tn[Qn]||[])[Hn?"unshift":"push"](Dn)}}function bC(Tn,Un,Dn){var Qn="width"===Un?Tn.offsetWidth:Tn.offsetHeight,Hn="width"===Un?Wr:$r,Vn=0,zn=Hn.length;if(Qn>0){if("border"!==Dn)for(;Vn<zn;Vn++)Dn||(Qn-=parseFloat(Gn.css(Tn,"padding"+Hn[Vn]))||0),"margin"===Dn?Qn+=parseFloat(Gn.css(Tn,Dn+Hn[Vn]))||0:Qn-=parseFloat(Gn.css(Tn,"border"+Hn[Vn]+"Width"))||0;return Qn+"px"}if(((Qn=Rr(Tn,Un,Un))<0||null==Qn)&&(Qn=Tn.style[Un]||0),Qn=parseFloat(Qn)||0,Dn)for(;Vn<zn;Vn++)Qn+=parseFloat(Gn.css(Tn,"padding"+Hn[Vn]))||0,"padding"!==Dn&&(Qn+=parseFloat(Gn.css(Tn,"border"+Hn[Vn]+"Width"))||0),"margin"===Dn&&(Qn+=parseFloat(Gn.css(Tn,Dn+Hn[Vn]))||0);return Qn+"px"}function bp(Tn,Un){Un.src?Gn.ajax({url:Un.src,async:!1,dataType:"script"}):Gn.globalEval((Un.text||Un.textContent||Un.innerHTML||"").replace(Or,"/*$0*/")),Un.parentNode&&Un.parentNode.removeChild(Un)}function bo(Tn){var Un=Dn.createElement("div");return Ur.appendChild(Un),Un.innerHTML=Tn.outerHTML,Un.firstChild}function bn(Tn){var Un=(Tn.nodeName||"").toLowerCase();"input"===Un?bm(Tn):"script"!==Un&&void 0!==Tn.getElementsByTagName&&Gn.grep(Tn.getElementsByTagName("input"),bm)}function bm(Tn){"checkbox"!==Tn.type&&"radio"!==Tn.type||(Tn.defaultChecked=Tn.checked)}function bl(Tn){return void 0!==Tn.getElementsByTagName?Tn.getElementsByTagName("*"):void 0!==Tn.querySelectorAll?Tn.querySelectorAll("*"):[]}function bk(Tn,Un){var Dn;1===Un.nodeType&&(Un.clearAttributes&&Un.clearAttributes(),Un.mergeAttributes&&Un.mergeAttributes(Tn),"object"===(Dn=Un.nodeName.toLowerCase())?Un.outerHTML=Tn.outerHTML:"input"!==Dn||"checkbox"!==Tn.type&&"radio"!==Tn.type?"option"===Dn?Un.selected=Tn.defaultSelected:"input"!==Dn&&"textarea"!==Dn||(Un.defaultValue=Tn.defaultValue):(Tn.checked&&(Un.defaultChecked=Un.checked=Tn.checked),Un.value!==Tn.value&&(Un.value=Tn.value)),Un.removeAttribute(Gn.expando))}function bj(Tn,Un){if(1===Un.nodeType&&Gn.hasData(Tn)){var Dn,Qn,Hn,Vn=Gn._data(Tn),zn=Gn._data(Un,Vn),Kn=Vn.events;if(Kn)fo
2020-09-18 20:43:34 +00:00
/*!
* jQuery UI 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI
*/!function(Tn,Un){function d(Un){return!Tn(Un).parents().andSelf().filter((function(){return"hidden"===Tn.curCSS(this,"visibility")||Tn.expr.filters.hidden(this)})).length}function c(Un,Dn){var Qn=Un.nodeName.toLowerCase();if("area"===Qn){var Hn,Gn=Un.parentNode,Vn=Gn.name;return!(!Un.href||!Vn||"map"!==Gn.nodeName.toLowerCase())&&(!!(Hn=Tn("img[usemap=#"+Vn+"]")[0])&&d(Hn))}return(/input|select|textarea|button|object/.test(Qn)?!Un.disabled:"a"==Qn&&Un.href||Dn)&&d(Un)}Tn.ui=Tn.ui||{},Tn.ui.version||(Tn.extend(Tn.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),Tn.fn.extend({propAttr:Tn.fn.prop||Tn.fn.attr,_focus:Tn.fn.focus,focus:function focus(Un,Dn){return"number"==typeof Un?this.each((function(){var Qn=this;setTimeout((function(){Tn(Qn).focus(),Dn&&Dn.call(Qn)}),Un)})):this._focus.apply(this,arguments)},scrollParent:function scrollParent(){var Un;return Un=Tn.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(Tn.curCSS(this,"position",1))&&/(auto|scroll)/.test(Tn.curCSS(this,"overflow",1)+Tn.curCSS(this,"overflow-y",1)+Tn.curCSS(this,"overflow-x",1))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(Tn.curCSS(this,"overflow",1)+Tn.curCSS(this,"overflow-y",1)+Tn.curCSS(this,"overflow-x",1))})).eq(0),/fixed/.test(this.css("position"))||!Un.length?Tn(document):Un},zIndex:function zIndex(Dn){if(Dn!==Un)return this.css("zIndex",Dn);if(this.length)for(var Qn,Hn,Gn=Tn(this[0]);Gn.length&&Gn[0]!==document;){if(("absolute"===(Qn=Gn.css("position"))||"relative"===Qn||"fixed"===Qn)&&(Hn=parseInt(Gn.css("zIndex"),10),!isNaN(Hn)&&0!==Hn))return Hn;Gn=Gn.parent()}return 0},disableSelection:function disableSelection(){return this.bind((Tn.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(Tn){Tn.preventDefault()}))},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection")}}),Tn.each(["Width","Height"],(function(Dn,Qn){function h(Un,Dn,Qn,Gn){return Tn.each(Hn,(function(){Dn-=parseFloat(Tn.curCSS(Un,"padding"+this,!0))||0,Qn&&(Dn-=parseFloat(Tn.curCSS(Un,"border"+this+"Width",!0))||0),Gn&&(Dn-=parseFloat(Tn.curCSS(Un,"margin"+this,!0))||0)})),Dn}var Hn="Width"===Qn?["Left","Right"]:["Top","Bottom"],Gn=Qn.toLowerCase(),Vn={innerWidth:Tn.fn.innerWidth,innerHeight:Tn.fn.innerHeight,outerWidth:Tn.fn.outerWidth,outerHeight:Tn.fn.outerHeight};Tn.fn["inner"+Qn]=function(Dn){return Dn===Un?Vn["inner"+Qn].call(this):this.each((function(){Tn(this).css(Gn,h(this,Dn)+"px")}))},Tn.fn["outer"+Qn]=function(Un,Dn){return"number"!=typeof Un?Vn["outer"+Qn].call(this,Un):this.each((function(){Tn(this).css(Gn,h(this,Un,!0,Dn)+"px")}))}})),Tn.extend(Tn.expr[":"],{data:function data(Un,Dn,Qn){return!!Tn.data(Un,Qn[3])},focusable:function focusable(Un){return c(Un,!isNaN(Tn.attr(Un,"tabindex")))},tabbable:function tabbable(Un){var Dn=Tn.attr(Un,"tabindex"),Qn=isNaN(Dn);return(Qn||Dn>=0)&&c(Un,!Qn)}}),Tn((function(){var Un=document.body,Dn=Un.appendChild(Dn=document.createElement("div"));Tn.extend(Dn.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),Tn.support.minHeight=100===Dn.offsetHeight,Tn.support.selectstart="onselectstart"in Dn,Un.removeChild(Dn).style.display="none"})),Tn.extend(Tn.ui,{plugin:{add:function add(Un,Dn,Qn){var Hn=Tn.ui[Un].prototype;for(var Gn in Qn)Hn.plugins[Gn]=Hn.plugins[Gn]||[],Hn.plugins[Gn].push([Dn,Qn[Gn]])},call:function call(Tn,Un,Dn){var Qn=Tn.plugins[Un];if(Qn&&Tn.element[0].parentNode)for(var Hn=0;Hn<Qn.length;Hn++)Tn.options[Qn[Hn][0]]&&Qn[Hn][1].apply(Tn.element,Dn)}},contains:function contains(Tn,Un){return document.compareDocumentPosition?16&Tn.compareDoc
2020-09-18 20:43:34 +00:00
/*!
* jQuery UI Widget 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Widget
*/
function(Tn,Un){if(Tn.cleanData){var Dn=Tn.cleanData;Tn.cleanData=function(Un){for(var Qn,Hn=0;null!=(Qn=Un[Hn]);Hn++)try{Tn(Qn).triggerHandler("remove")}catch(Tn){}Dn(Un)}}else{var Qn=Tn.fn.remove;Tn.fn.remove=function(Un,Dn){return this.each((function(){return Dn||(!Un||Tn.filter(Un,[this]).length)&&Tn("*",this).add([this]).each((function(){try{Tn(this).triggerHandler("remove")}catch(Tn){}})),Qn.call(Tn(this),Un,Dn)}))}}Tn.widget=function(Un,Dn,Qn){var Hn,Gn=Un.split(".")[0];Hn=Gn+"-"+(Un=Un.split(".")[1]),Qn||(Qn=Dn,Dn=Tn.Widget),Tn.expr[":"][Hn]=function(Dn){return!!Tn.data(Dn,Un)},Tn[Gn]=Tn[Gn]||{},Tn[Gn][Un]=function(Tn,Un){arguments.length&&this._createWidget(Tn,Un)};var Vn=new Dn;Vn.options=Tn.extend(!0,{},Vn.options),Tn[Gn][Un].prototype=Tn.extend(!0,Vn,{namespace:Gn,widgetName:Un,widgetEventPrefix:Tn[Gn][Un].prototype.widgetEventPrefix||Un,widgetBaseClass:Hn},Qn),Tn.widget.bridge(Un,Tn[Gn][Un])},Tn.widget.bridge=function(Dn,Qn){Tn.fn[Dn]=function(Hn){var Gn="string"==typeof Hn,Vn=Array.prototype.slice.call(arguments,1),zn=this;return Hn=!Gn&&Vn.length?Tn.extend.apply(null,[!0,Hn].concat(Vn)):Hn,Gn&&"_"===Hn.charAt(0)||(Gn?this.each((function(){var Qn=Tn.data(this,Dn),Gn=Qn&&Tn.isFunction(Qn[Hn])?Qn[Hn].apply(Qn,Vn):Qn;if(Gn!==Qn&&Gn!==Un)return zn=Gn,!1})):this.each((function(){var Un=Tn.data(this,Dn);Un?Un.option(Hn||{})._init():Tn.data(this,Dn,new Qn(Hn,this))}))),zn}},Tn.Widget=function(Tn,Un){arguments.length&&this._createWidget(Tn,Un)},Tn.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function _createWidget(Un,Dn){Tn.data(Dn,this.widgetName,this),this.element=Tn(Dn),this.options=Tn.extend(!0,{},this.options,this._getCreateOptions(),Un);var Qn=this;this.element.bind("remove."+this.widgetName,(function(){Qn.destroy()})),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function _getCreateOptions(){return Tn.metadata&&Tn.metadata.get(this.element[0])[this.widgetName]},_create:function _create(){},_init:function _init(){},destroy:function destroy(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function widget(){return this.element},option:function option(Dn,Qn){var Hn=Dn;if(0===arguments.length)return Tn.extend({},this.options);if("string"==typeof Dn){if(Qn===Un)return this.options[Dn];(Hn={})[Dn]=Qn}return this._setOptions(Hn),this},_setOptions:function _setOptions(Un){var Dn=this;return Tn.each(Un,(function(Tn,Un){Dn._setOption(Tn,Un)})),this},_setOption:function _setOption(Tn,Un){return this.options[Tn]=Un,"disabled"===Tn&&this.widget()[Un?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",Un),this},enable:function enable(){return this._setOption("disabled",!1)},disable:function disable(){return this._setOption("disabled",!0)},_trigger:function _trigger(Un,Dn,Qn){var Hn,Gn,Vn=this.options[Un];if(Qn=Qn||{},(Dn=Tn.Event(Dn)).type=(Un===this.widgetEventPrefix?Un:this.widgetEventPrefix+Un).toLowerCase(),Dn.target=this.element[0],Gn=Dn.originalEvent)for(Hn in Gn)Hn in Dn||(Dn[Hn]=Gn[Hn]);return this.element.trigger(Dn,Qn),!(Tn.isFunction(Vn)&&!1===Vn.call(this.element[0],Dn,Qn)||Dn.isDefaultPrevented())}}}(jQuery),
2020-09-18 20:43:34 +00:00
/*!
* jQuery UI Mouse 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Mouse
*
* Depends:
* jquery.ui.widget.js
*/
function(Tn,Un){var Dn=!1;Tn(document).mouseup((function(Tn){Dn=!1})),Tn.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function _mouseInit(){var Un=this;this.element.bind("mousedown."+this.widgetName,(function(Tn){return Un._mouseDown(Tn)})).bind("click."+this.widgetName,(function(Dn){if(!0===Tn.data(Dn.target,Un.widgetName+".preventClickEvent"))return Tn.removeData(Dn.target,Un.widgetName+".preventClickEvent"),Dn.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName)},_mouseDown:function _mouseDown(Un){if(!Dn){this._mouseStarted&&this._mouseUp(Un),this._mouseDownEvent=Un;var Qn=this,Hn=1==Un.which,Gn=!("string"!=typeof this.options.cancel||!Un.target.nodeName)&&Tn(Un.target).closest(this.options.cancel).length;return!(Hn&&!Gn&&this._mouseCapture(Un))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){Qn.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(Un)&&this._mouseDelayMet(Un)&&(this._mouseStarted=!1!==this._mouseStart(Un),!this._mouseStarted)?(Un.preventDefault(),!0):(!0===Tn.data(Un.target,this.widgetName+".preventClickEvent")&&Tn.removeData(Un.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(Tn){return Qn._mouseMove(Tn)},this._mouseUpDelegate=function(Tn){return Qn._mouseUp(Tn)},Tn(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),Un.preventDefault(),Dn=!0,!0))}},_mouseMove:function _mouseMove(Un){return!Tn.browser.msie||document.documentMode>=9||Un.button?this._mouseStarted?(this._mouseDrag(Un),Un.preventDefault()):(this._mouseDistanceMet(Un)&&this._mouseDelayMet(Un)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,Un),this._mouseStarted?this._mouseDrag(Un):this._mouseUp(Un)),!this._mouseStarted):this._mouseUp(Un)},_mouseUp:function _mouseUp(Un){return Tn(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,Un.target==this._mouseDownEvent.target&&Tn.data(Un.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(Un)),!1},_mouseDistanceMet:function _mouseDistanceMet(Tn){return Math.max(Math.abs(this._mouseDownEvent.pageX-Tn.pageX),Math.abs(this._mouseDownEvent.pageY-Tn.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(Tn){return this.mouseDelayMet},_mouseStart:function _mouseStart(Tn){},_mouseDrag:function _mouseDrag(Tn){},_mouseStop:function _mouseStop(Tn){},_mouseCapture:function _mouseCapture(Tn){return!0}})}(jQuery),function(Tn,Un){Tn.widget("ui.draggable",Tn.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function _create(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function destroy(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(Un){var Dn=this.options;return!(this.helper||Dn.disabled||Tn(Un.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(Un),!!this.handle&&(Dn.iframeFix&&Tn(!0===Dn.iframeFix?"iframe":Dn.iframeFix).each((function(){Tn('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* Namespaces or tools therefor.
* @module namespaces
* @license MIT
*/
var mA,yA={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/"},vA=function getReverseNS(){var Tn={};return Object.entries(yA).forEach((function(Un){var Dn=_slicedToArray(Un,2),Qn=Dn[0],Hn=Dn[1];Tn[Hn]=Qn.toLowerCase()})),Tn},_A=["x","x1","cx","rx","width"],wA=["y","y1","cy","ry","height"],xA=["r","radius"].concat(_A,wA),SA={},CA=function getTypeMap(){return SA},kA=function shortFloat(Tn){var Un=mA.getRoundDigits();return isNaN(Tn)?Array.isArray(Tn)?shortFloat(Tn[0])+","+shortFloat(Tn[1]):Number.parseFloat(Tn).toFixed(Un)-0:Number(Number(Tn).toFixed(Un))},BA=function convertUnit(Tn,Un){return Un=Un||mA.getBaseUnit(),kA(Tn/SA[Un])},EA=function setUnitAttr(Tn,Un,Dn){Tn.setAttribute(Un,Dn)},PA=function convertToNum(Tn,Un){if(!isNaN(Un))return Un-0;if("%"===Un.substr(-1)){var Dn=Un.substr(0,Un.length-1)/100,Qn=mA.getWidth(),Hn=mA.getHeight();return _A.includes(Tn)?Dn*Qn:wA.includes(Tn)?Dn*Hn:Dn*Math.sqrt(Qn*Qn+Hn*Hn)/Math.sqrt(2)}var Gn=Un.substr(-2);return Un.substr(0,Un.length-2)*SA[Gn]},TA=function isValidUnit(Tn,Un,Dn){if(xA.includes(Tn))return!isNaN(Un)||(Un=Un.toLowerCase(),Object.keys(SA).some((function(Tn){return new RegExp("^-?[\\d\\.]+"+Tn+"$").test(Un)})));if("id"===Tn){var Qn=!1;try{var Hn=mA.getElement(Un);Qn=!Hn||Hn===Dn}catch(Tn){}return Qn}return!0},LA=document.createElement("template");LA.innerHTML='\n <style>\n :not(:defined) {\n display: none;\n }\n\n /* Force the scroll bar to appear so we see it hide when overlay opens. */\n body::-webkit-scrollbar {\n background: lightgray;\n }\n body::-webkit-scrollbar-thumb {\n background: darkgray;\n }\n #svg_docprops #svg_docprops_container {\n padding: 10px;\n background-color: #B0B0B0;\n border: 1px outset #777;\n opacity: 1.0;\n font-family: Verdana, Helvetica, sans-serif;\n font-size: .8em;\n z-index: 20001;\n }\n \n #svg_docprops .error {\n border: 1px solid red;\n padding: 3px;\n }\n \n #svg_docprops #resolution {\n max-width: 14em;\n }\n \n #tool_docprops_back {\n margin-left: 1em;\n overflow: auto;\n }\n \n #svg_docprops_container #svg_docprops_docprops {\n float: left;\n width: 221px;\n margin: 5px .7em;\n overflow: hidden;\n }\n \n #svg_docprops legend {\n max-width: 195px;\n }\n \n #svg_docprops_docprops > legend {\n font-weight: bold;\n font-size: 1.1em;\n }\n \n #svg_docprops_container fieldset {\n padding: 5px;\n margin: 5px;\n border: 1px solid #DDD;\n }\n \n #svg_docprops_container label {\n display: block;\n margin: .5em;\n }\n </style>\n <elix-dialog id="svg_docprops" aria-label="Sample dialog" closed>\n <div id="svg_docprops_container">\n <div id="tool_docprops_back" class="toolbar_button">\n <button id="tool_docprops_save">OK</button>\n <button id="tool_docprops_cancel">Cancel</button>\n </div>\n <fieldset id="svg_docprops_docprops">\n <legend id="svginfo_image_props">Image Properties</legend>\n <label>\n <span id="svginfo_title">Title:</span>\n <input type="text" id="canvas_title" />\n </label>\n <fieldset id="change_resolution">\n <legend id="svginfo_dim">Canvas Dimensions</legend>\n <label>\n <span id="svginfo_width">width:</span>\n <input type="text" id="canvas_width" size="6" />\n </label>\n <label>\n <span id="svginfo_height">height:</span>\n <input type="text" id="canvas_height" size="6" />\n </label>\n <label>\n <select id="resolution">\n <option id="selectedPredefined" selected="selected">Select predefined:</option>\n <option>640x480</option>\n <option>800x600</option>\n <option>1024x768</option>\n <option>1280x960</option>\n <option>1600x1200</option>\
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* A jQuery module to work with SVG attributes.
* @module jQueryAttr
* @license MIT
*/
function jQueryPluginSVG(Tn){var Un=Tn.fn.attr;return Tn.fn.attr=function(Tn,Dn){var Qn=this.length;if(!Qn)return Un.call(this,Tn,Dn);for(var Hn=0;Hn<Qn;++Hn){var Gn=this[Hn];if("http://www.w3.org/2000/svg"!==Gn.namespaceURI)return Un.call(this,Tn,Dn);if(void 0!==Dn)Gn.setAttribute(Tn,Dn);else if(Array.isArray(Tn)){for(var Vn={},zn=Tn.length;zn--;){var Kn=Tn[zn],Wn=Gn.getAttribute(Kn);(Wn||"0"===Wn)&&(Wn=isNaN(Wn)?Wn:Wn-0),Vn[Kn]=Wn}return Vn}if("object"!==_typeof(Tn)){var $n=Gn.getAttribute(Tn);return($n||"0"===$n)&&($n=isNaN($n)?$n:$n-0),$n}for(var Xn=0,Yn=Object.entries(Tn);Xn<Yn.length;Xn++){var Jn=_slicedToArray(Yn[Xn],2),Zn=Jn[0],er=Jn[1];Gn.setAttribute(Zn,er)}}return this},Tn}Cv("toString",Ev,Tv);var Lv=document.createElementNS(yA.SVG,"svg");function transformToString(Tn){var Un=Tn.matrix,Dn="";switch(Tn.type){case 1:Dn="matrix("+[Un.a,Un.b,Un.c,Un.d,Un.e,Un.f].join(",")+")";break;case 2:Dn="translate("+Un.e+","+Un.f+")";break;case 3:Dn=Un.a===Un.d?"scale(".concat(Un.a,")"):"scale(".concat(Un.a,",").concat(Un.d,")");break;case 4:var Qn=0,Hn=0;if(0!==Tn.angle){var Gn=1-Un.a;Hn=(Gn*Un.f+Un.b*Un.e)/(Gn*Gn+Un.b*Un.b),Qn=(Un.e-Un.b*Hn)/Gn}Dn="rotate("+Tn.angle+" "+Qn+","+Hn+")"}return Dn}var Nv={},Iv=function(){function SVGTransformList(Tn){_classCallCheck(this,SVGTransformList),this._elem=Tn||null,this._xforms=[],this._update=function(){for(var Tn="",Un=0;Un<this.numberOfItems;++Un){Tn+=transformToString(this._list.getItem(Un))+" "}this._elem.setAttribute("transform",Tn)},this._list=this,this._init=function(){var Tn=this,Un=this._elem.getAttribute("transform");if(Un)for(var Dn=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,Qn=!0;Qn;)Qn=Un.match(Dn),Un=Un.replace(Dn,""),Qn&&Qn[1]&&function(){var Un=Qn[1].split(/\s*\(/),Dn=Un[0],Hn=Un[1].match(/\s*(.*?)\s*\)/);Hn[1]=Hn[1].replace(/(\d)-/g,"$1 -");var Gn=Hn[1].split(/[, ]+/),Vn="abcdef".split(""),zn=Lv.createSVGMatrix();Object.values(Gn).forEach((function(Tn,Un){Gn[Un]=Number.parseFloat(Tn),"matrix"===Dn&&(zn[Vn[Un]]=Gn[Un])}));var Kn=Lv.createSVGTransform(),Wn="set"+Dn.charAt(0).toUpperCase()+Dn.slice(1),$n="matrix"===Dn?[zn]:Gn;"scale"===Dn&&1===$n.length?$n.push($n[0]):"translate"===Dn&&1===$n.length?$n.push(0):"rotate"===Dn&&1===$n.length&&$n.push(0,0),Kn[Wn].apply(Kn,_toConsumableArray($n)),Tn._list.appendItem(Kn)}()},this._removeFromOtherLists=function(Tn){Tn&&Object.values(Nv).some((function(Un){for(var Dn=0,Qn=Un._xforms.length;Dn<Qn;++Dn)if(Un._xforms[Dn]===Tn)return Un.removeItem(Dn),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(Tn){this.numberOfItems=1,this._removeFromOtherLists(Tn),this._xforms=[Tn]}},{key:"getItem",value:function getItem(Tn){if(Tn<this.numberOfItems&&Tn>=0)return this._xforms[Tn];var Un=new Error("DOMException with code=INDEX_SIZE_ERR");throw Un.code=1,Un}},{key:"insertItemBefore",value:function insertItemBefore(Tn,Un){var Dn=null;if(Un>=0)if(Un<this.numberOfItems){this._removeFromOtherLists(Tn);var Qn,Hn=new Array(this.numberOfItems+1);for(Qn=0;Qn<Un;++Qn)Hn[Qn]=this._xforms[Qn];Hn[Qn]=Tn;for(var Gn=Qn+1;Qn<this.numberOfItems;++Gn,++Qn)Hn[Gn]=this._xforms[Qn];this.numberOfItems++,this._xforms=Hn,Dn=Tn,this._list._update()}else Dn=this._list.appendItem(Tn);return Dn}},{key:"replaceItem",value:function replaceItem(Tn,Un){var Dn=null;return Un<this.numberOfItems&&Un>=0&&(this._removeFromOtherLists(Tn),this._xforms[Un]=Tn,Dn=Tn,this._list._update()),Dn}},{key:"removeItem",value:function removeItem(Tn){if(Tn<this.numberOfItems&&Tn>=0){var Un,Dn=this._xforms[Tn],Qn=new Array(this.numberOfItems-1);for(Un=0;Un<Tn;++Un)Qn[Un]=this._xforms[Un];for(var Hn=Un;Hn<this.numberOfItems-1;++Hn,++Un)Qn[Hn]=this._xforms[Un+1];return this.numberOfItems--,this._xforms=Qn,this._list._update(),Dn}var Gn=new Error("DOMException with code=INDEX_SIZE_ERR");throw Gn.code=1,Gn}},{key:"appendItem",value:function appendItem(Tn){return this._removeFromOtherLists(Tn),this._xforms.push(Tn),this.numberOfItems++,this._
2020-09-04 20:34:30 +00:00
/** @license
2020-09-08 23:35:47 +00:00
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.1.1 Built on 2020-09-07T12:58:19.950Z
2020-09-08 23:35:47 +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
*/
var uM=function(){return"undefined"!=typeof window?window:void 0!==oM?oM:"undefined"!=typeof self?self:this}();function e$1(){uM.console&&"function"==typeof uM.console.log&&uM.console.log.apply(uM.console,arguments)}var dM={log:e$1,warn:function warn(Tn){uM.console&&("function"==typeof uM.console.warn?uM.console.warn.apply(uM.console,arguments):e$1.call(null,arguments))},error:function error(Tn){uM.console&&("function"==typeof uM.console.error?uM.console.error.apply(uM.console,arguments):e$1(Tn))}};
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +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
*/function r$1(Tn,Un,Dn){var Qn=new XMLHttpRequest;Qn.open("GET",Tn),Qn.responseType="blob",Qn.onload=function(){gM(Qn.response,Un,Dn)},Qn.onerror=function(){dM.error("could not download file")},Qn.send()}function i$2(Tn){var Un=new XMLHttpRequest;Un.open("HEAD",Tn,!1);try{Un.send()}catch(Tn){}return Un.status>=200&&Un.status<=299}function a$1(Tn){try{Tn.dispatchEvent(new MouseEvent("click"))}catch(Dn){var Un=document.createEvent("MouseEvents");Un.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Tn.dispatchEvent(Un)}}var pM,hM,gM=uM.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==uM?function(){}:"download"in HTMLAnchorElement.prototype?function(Tn,Un,Dn){var Qn=uM.URL||uM.webkitURL,Hn=document.createElement("a");Un=Un||Tn.name||"download",Hn.download=Un,Hn.rel="noopener","string"==typeof Tn?(Hn.href=Tn,Hn.origin!==location.origin?i$2(Hn.href)?r$1(Tn,Un,Dn):a$1(Hn,Hn.target="_blank"):a$1(Hn)):(Hn.href=Qn.createObjectURL(Tn),setTimeout((function(){Qn.revokeObjectURL(Hn.href)}),4e4),setTimeout((function(){a$1(Hn)}),0))}:"msSaveOrOpenBlob"in navigator?function(Tn,Un,Dn){if(Un=Un||Tn.name||"download","string"==typeof Tn)if(i$2(Tn))r$1(Tn,Un,Dn);else{var Qn=document.createElement("a");Qn.href=Tn,Qn.target="_blank",setTimeout((function(){a$1(Qn)}))}else navigator.msSaveOrOpenBlob(function(Tn,Un){return void 0===Un?Un={autoBom:!1}:"object"!=_typeof(Un)&&(dM.warn("Deprecated: Expected third argument to be a object"),Un={autoBom:!Un}),Un.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Tn.type)?new Blob([String.fromCharCode(65279),Tn],{type:Tn.type}):Tn}(Tn,Dn),Un)}:function(Tn,Un,Dn,Qn){if((Qn=Qn||open("","_blank"))&&(Qn.document.title=Qn.document.body.innerText="downloading..."),"string"==typeof Tn)return r$1(Tn,Un,Dn);var Hn="application/octet-stream"===Tn.type,Gn=/constructor/i.test(uM.HTMLElement)||uM.safari,Vn=/CriOS\/[\d]+/.test(navigator.userAgent);if((Vn||Hn&&Gn)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var zn=new FileReader;zn.onloadend=function(){var Tn=zn.result;Tn=Vn?Tn:Tn.replace(/^data:[^;]*;/,"data:attachment/file;"),Qn?Qn.location.href=Tn:location=Tn,Qn=null},zn.readAsDataURL(Tn)}else{var Kn=uM.URL||uM.webkitURL,Wn=Kn.createObjectURL(Tn);Qn?Qn.location=Wn:location.href=Wn,Qn=null,setTimeout((function(){Kn.revokeObjectURL(Wn)}),4e4)}});
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +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$2(Tn){var Un;Tn=Tn||"",this.ok=!1,"#"==Tn.charAt(0)&&(Tn=Tn.substr(1,6)),Tn={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"}[Tn=(Tn=Tn.replace(/ /g,"")).toLowerCase()]||Tn;for(var Dn=[{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(Tn){return[parseInt(Tn[1]),parseInt(Tn[2]),parseInt(Tn[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(Tn){return[parseInt(Tn[1],16),parseInt(Tn[2],16),parseInt(Tn[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(Tn){return[parseInt(Tn[1]+Tn[1],16),parseInt(Tn[2]+Tn[2],16),parseInt(Tn[3]+Tn[3],16)]}}],Qn=0;Qn<Dn.length;Qn++){var Hn=Dn[Qn].re,Gn=Dn[Qn].process,Vn=Hn.exec(Tn);Vn&&(Un=Gn(Vn),this.r=Un[0],this.g=Un[1],this.b=Un[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 Tn=this.r.toString(16),Un=this.g.toString(16),Dn=this.b.toString(16);return 1==Tn.length&&(Tn="0"+Tn),1==Un.length&&(Un="0"+Un),1==Dn.length&&(Dn="0"+Dn),"#"+Tn+Un+Dn}}function h$1(Tn){if("object"!=_typeof(Tn))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Un={};this.subscribe=function(T
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +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(Tn){var Un=function e(Tn){if(void 0!==Tn&&""!=Tn)return!0};g.API.events.push(["addPage",function(Tn){this.internal.getPageInfo(Tn.pageNumber).pageContext.annotations=[]}]),Tn.events.push(["putPage",function(Tn){for(var Dn,Qn,Hn,Gn=this.internal.getCoordinateString,Vn=this.internal.getVerticalCoordinateString,zn=this.internal.getPageInfoByObjId(Tn.objId),Kn=Tn.pageContext.annotations,Wn=!1,$n=0;$n<Kn.length&&!Wn;$n++)switch((Dn=Kn[$n]).type){case"link":(Un(Dn.options.url)||Un(Dn.options.pageNumber))&&(Wn=!0);break;case"reference":case"text":case"freetext":Wn=!0}if(0!=Wn){this.internal.write("/Annots [");for(var Xn=0;Xn<Kn.length;Xn++)switch((Dn=Kn[Xn]).type){case"reference":this.internal.write(" "+Dn.object.objId+" 0 R ");break;case"text":var Yn=this.internal.newAdditionalObject(),Jn=this.internal.newAdditionalObject(),Zn=Dn.title||"Note";Hn="<</Type /Annot /Subtype /Text "+(Qn="/Rect ["+Gn(Dn.bounds.x)+" "+Vn(Dn.bounds.y+Dn.bounds.h)+" "+Gn(Dn.bounds.x+Dn.bounds.w)+" "+Vn(Dn.bounds.y)+"] ")+"/Contents ("+Dn.contents+")",Hn+=" /Popup "+Jn.objId+" 0 R",Hn+=" /P "+zn.objId+" 0 R",Hn+=" /T ("+Zn+") >>",Yn.content=Hn;var er=Yn.objId+" 0 R";Hn="<</Type /Annot /Subtype /Popup "+(Qn="/Rect ["+Gn(Dn.bounds.x+30)+" "+Vn(Dn.bounds.y+Dn.bounds.h)+" "+Gn(Dn.bounds.x+Dn.bounds.w+30)+" "+Vn(Dn.bounds.y)+"] ")+" /Parent "+er,Dn.open&&(Hn+=" /Open true"),Hn+=" >>",Jn.content=Hn,this.internal.write(Yn.objId,"0 R",Jn.objId,"0 R");break;case"freetext":Qn="/Rect ["+Gn(Dn.bounds.x)+" "+Vn(Dn.bounds.y)+" "+Gn(Dn.bounds.x+Dn.bounds.w)+" "+Vn(Dn.bounds.y+Dn.bounds.h)+"] ";var tr=Dn.color||"#000000";Hn="<</Type /Annot /Subtype /FreeText "+Qn+"/Contents ("+Dn.contents+")",Hn+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+tr+")",Hn+=" /Border [0 0 0]",Hn+=" >>",this.internal.write(Hn);break;case"link":if(Dn.options.name){var nr=this.annotations._nameMap[Dn.options.name];Dn.options.pageNumber=nr.page,Dn.options.top=nr.y}else Dn.options.top||(Dn.options.top=0);if(Qn="/Rect ["+Gn(Dn.x)+" "+Vn(Dn.y)+" "+Gn(Dn.x+Dn.w)+" "+Vn(Dn.y+Dn.h)+"] ",Hn="",Dn.options.url)Hn="<</Type /Annot /Subtype /Link "+Qn+"/Border [0 0 0] /A <</S /URI /URI ("+Dn.options.url+") >>";else if(Dn.options.pageNumber)switch(Hn="<</Type /Annot /Subtype /Link "+Qn+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Dn.options.pageNumber).objId+" 0 R",Dn.options.magFactor=Dn.options.magFactor||"XYZ",Dn.options.magFactor){case"Fit":Hn+=" /Fit]";break;case"FitH":Hn+=" /FitH "+Dn.options.top+"]";break;case"FitV":Dn.options.left=Dn.options.left||0,Hn+=" /FitV "+Dn.options.left+"]";break;case"XYZ":default:var rr=Vn(Dn.options.top);Dn.options.left=Dn.options.left||0,void 0===Dn.options.zoom&&(Dn.options.zoom=0),Hn+=" /XYZ "+Dn.options.left+" "+rr+" "+Dn.options.zoom+"]"}""!=Hn&&(Hn+=" >>",this.internal.write(Hn))}this.internal.write("]")}}]),Tn.createAnnotation=function(Tn){var Un=this.internal.getCurrentPageInfo();switch(Tn.type){case"link":this.link(Tn.bounds.x,Tn.bounds.y,Tn.bounds.w,Tn.bounds.h,Tn);break;case"text":case"freetext":Un.pageContext.annotations.push(Tn)}},Tn.link=function(Tn,Un,Dn,Qn,Hn){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:Tn,y:Un,w:Dn,h:Qn,options:Hn,type:"link"})},Tn.textWithLink=function(Tn,Un,Dn,Qn){var Hn=this.getTextWidth(Tn),Gn=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(Tn,Un,Dn,Qn),Dn+=.2*Gn,this.link(Un,Dn-Gn,Hn,Gn,Qn),Hn},Tn.getTextWidth=function(Tn){var Un=this.internal.getFontSize();return this.getStringUnitWidth(Tn)*Un/this.internal.scaleFactor}}(g.API),
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn){var Un={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]},Dn={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}},Qn={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Hn=[1570,1571,1573,1575];Tn.__arabicParser__={};var Gn=Tn.__arabicParser__.isInArabicSubstitutionA=function(Tn){return void 0!==Un[Tn.charCodeAt(0)]},Vn=Tn.__arabicParser__.isArabicLetter=function(Tn){return"string"==typeof Tn&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Tn)},zn=Tn.__arabicParser__.isArabicEndLetter=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length<=2},Kn=Tn.__arabicParser__.isArabicAlfLetter=function(Tn){return Vn(Tn)&&Hn.indexOf(Tn.charCodeAt(0))>=0};Tn.__arabicParser__.arabicLetterHasIsolatedForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=1};var Wn=Tn.__arabicParser__.arabicLetterHasFinalForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=2};Tn.__arabicParser__.arabicLetterHasInitialForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&Un[Tn.charCodeAt(0)].length>=3};var $n=Tn.__arabicParser__.arabicLetterHasMedialForm=function(Tn){return Vn(Tn)&&Gn(Tn)&&4==Un[Tn.charCodeAt(0)].length},Xn=Tn.__arabicParser__.resolveLigatures=function(Tn){var Un=0,Qn=Dn,Hn="",Gn=0;for(Un=0;Un<Tn.length;Un+=1)void 0!==Qn[Tn.charCodeAt(Un)]?(Gn++,"number"==typeof(Qn=Qn[Tn.charCodeAt(Un)])&&(Hn+=String.fromCharCode(Qn),Qn=Dn,Gn=0),Un===Tn.length-1&&(Qn=Dn,Hn+=Tn.charAt(Un-(Gn-1)),Un-=Gn-1,Gn=0)):(Qn=Dn,Hn+=Tn.charAt(Un-Gn),Un-=Gn,Gn=0);return Hn};Tn.__arabicParser__.isArabicDiacritic=function(Tn){return void 0!==Tn&&void 0!==Qn[Tn.charCodeAt(0)]};var Yn=Tn.__arabicParser__.getCorrectForm=function(Tn,Un,Dn){return Vn(Tn)?!1===Gn(Tn)?-1:!Wn(Tn)||!Vn(Un)&&!Vn(Dn)||!Vn(Dn)&&zn(Un)||zn(Tn)&&!Vn(Un)||zn(Tn)&&Kn(Un)||zn(Tn)&&zn(Un)?0:$n(Tn)&&Vn(Un)&&!zn(Un)&&Vn(Dn)&&Wn(Dn)?3:zn(Tn)||!Vn(Dn)?1:2:-1},Jn=function d(Tn){var Dn=0,Qn=0,Hn=0,Gn="",zn="",Kn="",Wn=(Tn=Tn||"").split("\\s+"),$n=[];for(Dn=0;Dn<Wn.length;Dn+=1){fo
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +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(Tn){var Un=function e(){var Tn=void 0;Object.defineProperty(this,"pdf",{get:function get(){return Tn},set:function set(Un){Tn=Un}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(Tn){e=isNaN(Tn)||!1===Number.isInteger(Tn)||Tn<0?150:Tn,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var Un=300;Object.defineProperty(this,"height",{get:function get(){return Un},set:function set(Tn){Un=isNaN(Tn)||!1===Number.isInteger(Tn)||Tn<0?300:Tn,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Un+1)}});var Dn=[];Object.defineProperty(this,"childNodes",{get:function get(){return Dn},set:function set(Tn){Dn=Tn}});var Qn={};Object.defineProperty(this,"style",{get:function get(){return Qn},set:function set(Tn){Qn=Tn}}),Object.defineProperty(this,"parentNode",{})};Un.prototype.getContext=function(Tn,Un){var Dn;if("2d"!==(Tn=Tn||"2d"))return null;for(Dn in Un)this.pdf.context2d.hasOwnProperty(Dn)&&(this.pdf.context2d[Dn]=Un[Dn]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Un.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Tn.events.push(["initialized",function(){this.canvas=new Un,this.canvas.pdf=this}])}(g.API),
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @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.
* ====================================================================
*/
function(Tn){var Un={left:0,top:0,bottom:0,right:0},Dn=!1,Qn=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({},Un),this.internal.__cell__.margins.width=this.getPageWidth(),Hn.call(this))},Hn=function i(){this.internal.__cell__.lastCell=new Gn,this.internal.__cell__.pages=1},Gn=function a(){var Tn=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return Tn},set:function set(Un){Tn=Un}});var Un=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return Un},set:function set(Tn){Un=Tn}});var Dn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return Dn},set:function set(Tn){Dn=Tn}});var Qn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return Qn},set:function set(Tn){Qn=Tn}});var Hn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return Hn},set:function set(Tn){Hn=Tn}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(Tn){a=Tn}});var Gn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return Gn},set:function set(Tn){Gn=Tn}}),this};Gn.prototype.clone=function(){return new Gn(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Gn.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Tn.setHeaderFunction=function(Tn){return Qn.call(this),this.internal.__cell__.headerFunction="function"==typeof Tn?Tn:void 0,this},Tn.getTextDimensions=function(Tn,Un){Qn.call(this);var Dn=(Un=Un||{}).fontSize||this.getFontSize(),Hn=Un.font||this.getFont(),Gn=Un.scaleFactor||this.internal.scaleFactor,Vn=0,zn=0,Kn=0;if(!Array.isArray(Tn)&&"string"!=typeof Tn){if("number"!=typeof Tn)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Tn=String(Tn)}var Wn=Un.maxWidth;Wn>0?"string"==typeof Tn?Tn=this.splitTextToSize(Tn,Wn):"[object Array]"===Object.prototype.toString.call(Tn)&&(Tn=this.splitTextToSize(Tn.join(" "),Wn)):Tn=Array.isArray(Tn)?Tn:[Tn];for(var $n=0;$n<Tn.length;$n++)Vn<(Kn=this.getStringUnitWidth(Tn[$n],{font:Hn})*Dn)&&(Vn=Kn);return 0!==Vn&&(zn=Tn.length),{w:Vn/=Gn,h:Math.max((zn*Dn*this.getLineHeightFactor()-Dn*(this.getLineHeightFactor()-1))/Gn,0)}},Tn.cellAddPage=function(){Qn.call(this),this.addPage();var Tn=this.internal.__cell__.margins||Un;return this.internal.__cell__.lastCell=new Gn(Tn.left,Tn.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Vn=Tn.cell=function(){var Tn;Tn=arguments[0]instanceof Gn?arguments[0]:new Gn(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Qn.call(this);var Hn=this.internal.__cell__.lastCell,Vn=this.internal.__cell__.padding,zn=this.internal.__cell__.margins||Un,Kn=this.internal.__cell__.tableHeaderRow,Wn=this.internal.__cell__.printHeaders;return void 0!==Hn.lineNumber&&(Hn.lineNumber===Tn.lineNumber?(Tn.x=(Hn.x||0)+(Hn.width||0),Tn.y=Hn.y||0):Hn.y+Hn.height+Tn.height+zn.bottom>this.getPageHeight()?(this.cellAddPage(),Tn.y=zn.top,Wn&&Kn&&(this.printHeaderRow(Tn.lineNumber,!0),Tn.y+=Kn[0].height)):Tn.y=Hn.y+Hn.height||Tn.y),void 0!==Tn.text[0]&&(this.rect(Tn.x,Tn.y,Tn.width,Tn.height,!0===Dn?"FD":void 0),"right"===Tn.align?this.text(Tn.text,Tn.x+Tn.width-Vn,Tn.y+Vn,{align:"right",baseline:"top"}):"center"===Tn.align?this.text(Tn.text,Tn.x+Tn.width/2,Tn.y+Vn,{align:"center",baseline:"top",maxWidth:Tn.width-Vn-Vn}):this.text(Tn.text,Tn.x+Vn,Tn.y+Vn,{align:"left",baseline:"top",maxWidth:Tn.width-Vn-Vn})),this.internal.__cell__.lastCell=Tn,this};Tn.table=function(Tn,Dn,Kn,Wn,$n){if(Qn.call(this),!Kn)throw new Error("No data for PDF table.");var Xn,Yn,Jn,Zn,er=[],tr=[],nr=[],rr={},ir={},or=[],ar=[],sr=($n=$n||{}).autoSize||!1,lr=!1!==$n.printHeaders,cr=$n.css&&void 0!==$n.css["font-size"]?16*$n.css["font-size"]:
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
2020-08-28 22:07:07 +00:00
2020-09-08 23:35:47 +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-08 23:35:47 +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-08 23:35:47 +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-08 23:35:47 +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-08 23:35:47 +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.
*/
var cU=[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 Tn=this;function e(Tn,Un){var Dn=0;do{Dn|=1&Tn,Tn>>>=1,Dn<<=1}while(--Un>0);return Dn>>>1}Tn.build_tree=function(Un){var Dn,Qn,Hn,Gn=Tn.dyn_tree,Vn=Tn.stat_desc.static_tree,zn=Tn.stat_desc.elems,Kn=-1;for(Un.heap_len=0,Un.heap_max=573,Dn=0;Dn<zn;Dn++)0!==Gn[2*Dn]?(Un.heap[++Un.heap_len]=Kn=Dn,Un.depth[Dn]=0):Gn[2*Dn+1]=0;for(;Un.heap_len<2;)Gn[2*(Hn=Un.heap[++Un.heap_len]=Kn<2?++Kn:0)]=1,Un.depth[Hn]=0,Un.opt_len--,Vn&&(Un.static_len-=Vn[2*Hn+1]);for(Tn.max_code=Kn,Dn=Math.floor(Un.heap_len/2);Dn>=1;Dn--)Un.pqdownheap(Gn,Dn);Hn=zn;do{Dn=Un.heap[1],Un.heap[1]=Un.heap[Un.heap_len--],Un.pqdownheap(Gn,1),Qn=Un.heap[1],Un.heap[--Un.heap_max]=Dn,Un.heap[--Un.heap_max]=Qn,Gn[2*Hn]=Gn[2*Dn]+Gn[2*Qn],Un.depth[Hn]=Math.max(Un.depth[Dn],Un.depth[Qn])+1,Gn[2*Dn+1]=Gn[2*Qn+1]=Hn,Un.heap[1]=Hn++,Un.pqdownheap(Gn,1)}while(Un.heap_len>=2);Un.heap[--Un.heap_max]=Un.heap[1],function(Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn=Tn.dyn_tree,Wn=Tn.stat_desc.static_tree,$n=Tn.stat_desc.extra_bits,Xn=Tn.stat_desc.extra_base,Yn=Tn.stat_desc.max_length,Jn=0;for(Gn=0;Gn<=15;Gn++)Un.bl_count[Gn]=0;for(Kn[2*Un.heap[Un.heap_max]+1]=0,Dn=Un.heap_max+1;Dn<573;Dn++)(Gn=Kn[2*Kn[2*(Qn=Un.heap[Dn])+1]+1]+1)>Yn&&(Gn=Yn,Jn++),Kn[2*Qn+1]=Gn,Qn>Tn.max_code||(Un.bl_count[Gn]++,Vn=0,Qn>=Xn&&(Vn=$n[Qn-Xn]),zn=Kn[2*Qn],Un.opt_len+=zn*(Gn+Vn),Wn&&(Un.static_len+=zn*(Wn[2*Qn+1]+Vn)));if(0!==Jn){do{for(Gn=Yn-1;0===Un.bl_count[Gn];)Gn--;Un.bl_count[Gn]--,Un.bl_count[Gn+1]+=2,Un.bl_count[Yn]--,Jn-=2}while(Jn>0);for(Gn=Yn;0!==Gn;Gn--)for(Qn=Un.bl_count[Gn];0!==Qn;)(Hn=Un.heap[--Dn])>Tn.max_code||(Kn[2*Hn+1]!==Gn&&(Un.opt_len+=(Gn-Kn[2*Hn+1])*Kn[2*Hn],Kn[2*Hn+1]=Gn),Qn--)}}(Un),function(Tn,Un,Dn){var Qn,Hn,Gn,Vn=[],zn=0;for(Qn=1;Qn<=15;Qn++)Vn[Qn]=zn=zn+Dn[Qn-1]<<1;for(Hn=0;Hn<=Un;Hn++)0!==(Gn=Tn[2*Hn+1])&&(Tn[2*Hn]=e(Vn[Gn]++,Gn))}(Gn,Tn.max_code,Un.bl_count)}}function dt(Tn,Un,Dn,Qn,Hn){this.static_tree=Tn,this.extra_bits=Un,this.extra_base=Dn,this.elems=Qn,this.max_length=Hn}function pt(Tn,Un,Dn,Qn,Hn){this.good_length=Tn,this.max_lazy=Un,this.nice_length=Dn,this.max_chain=Qn,this.func=Hn}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
/**
2020-09-08 23:35:47 +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(Tn,Un){return this.dstate=new Nt,Un||(Un=15),this.dstate.deflateInit(this,Tn,Un)},deflate:function deflate(Tn){return this.dstate?this.dstate.deflate(this,Tn):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var Tn=this.dstate.deflateEnd();return this.dstate=null,Tn},deflateParams:function deflateParams(Tn,Un){return this.dstate?this.dstate.deflateParams(this,Tn,Un):-2},deflateSetDictionary:function deflateSetDictionary(Tn,Un){return this.dstate?this.dstate.deflateSetDictionary(this,Tn,Un):-2},read_buf:function read_buf(Tn,Un,Dn){var Qn=this.avail_in;return Qn>Dn&&(Qn=Dn),0===Qn?0:(this.avail_in-=Qn,Tn.set(this.next_in.subarray(this.next_in_index,this.next_in_index+Qn),Un),this.next_in_index+=Qn,this.total_in+=Qn,Qn)},flush_pending:function flush_pending(){var Tn=this.dstate.pending;Tn>this.avail_out&&(Tn=this.avail_out),0!==Tn&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+Tn),this.next_out_index),this.next_out_index+=Tn,this.dstate.pending_out+=Tn,this.total_out+=Tn,this.avail_out-=Tn,this.dstate.pending-=Tn,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(Tn){var Un=function e(Tn){var e,Un,Dn,Qn,Hn,Gn,Vn,zn,Kn,Wn;for(/[^\x00-\xFF]/.test(Tn),Un=[],Dn=0,Qn=(Tn+=e="\0\0\0\0".slice(Tn.length%4||4)).length;Qn>Dn;Dn+=4)0!==(Hn=(Tn.charCodeAt(Dn)<<24)+(Tn.charCodeAt(Dn+1)<<16)+(Tn.charCodeAt(Dn+2)<<8)+Tn.charCodeAt(Dn+3))?(Gn=(Hn=((Hn=((Hn=((Hn=(Hn-(Wn=Hn%85))/85)-(Kn=Hn%85))/85)-(zn=Hn%85))/85)-(Vn=Hn%85))/85)%85,Un.push(Gn+33,Vn+33,zn+33,Kn+33,Wn+33)):Un.push(122);return function(Tn,Un){for(var Dn=Un;Dn>0;Dn--)Tn.pop()}(Un,e.length),String.fromCharCode.apply(String,Un)+"~>"},Dn=function n(Tn){var Un,n,Dn,Qn,Hn,Gn=String,Vn="length",zn=255,Kn="charCodeAt",Wn="slice",$n="replace";for(Tn[Wn](-2),Tn=Tn[Wn](0,-2)[$n](/\s/g,"")[$n]("z","!!!!!"),Dn=[],Qn=0,Hn=(Tn+=Un="uuuuu"[Wn](Tn[Vn]%5||5))[Vn];Hn>Qn;Qn+=5)n=52200625*(Tn[Kn](Qn)-33)+614125*(Tn[Kn](Qn+1)-33)+7225*(Tn[Kn](Qn+2)-33)+85*(Tn[Kn](Qn+3)-33)+(Tn[Kn](Qn+4)-33),Dn.push(zn&n>>24,zn&n>>16,zn&n>>8,zn&n);return function(Tn,Un){for(var Dn=Un;Dn>0;Dn--)Tn.pop()}(Dn,Un[Vn]),Gn.fromCharCode.apply(Gn,Dn)},Qn=function r(Tn){var Un=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(Tn=Tn.replace(/\s/g,"")).indexOf(">")&&(Tn=Tn.substr(0,Tn.indexOf(">"))),Tn.length%2&&(Tn+="0"),!1===Un.test(Tn))return"";for(var Dn="",r=0;r<Tn.length;r+=2)Dn+=String.fromCharCode("0x"+(Tn[r]+Tn[r+1]));return Dn},Hn=function i(Un){for(var Dn,Qn,i,Hn,Gn,Vn=[],zn=Un.length;zn--;)Vn[zn]=Un.charCodeAt(zn);return Dn=Tn.adler32cs.from(Un),i=Un=(Qn=new xt(6)).append(new Uint8Array(Vn)),Hn=Qn.flush(),(Gn=new Uint8Array(i.byteLength+Hn.byteLength)).set(new Uint8Array(i),0),Gn.set(new Uint8Array(Hn),i.byteLength),Un=Gn,(Vn=new Uint8Array(Un.byteLength+6)).set(new Uint8Array([120,156])),Vn.set(Un,2),Vn.set(new Uint8Array([255&Dn,Dn>>8&255,Dn>>16&255,Dn>>24&255]),Un.byteLength+2),Vn.reduce((function(Tn,Un){return Tn+String.fromCharCode(Un)}),"")};Tn.processDataByFilters=function(Tn,Gn){var Vn=0,zn=Tn||"",Kn=[];for("string"==typeof(Gn=Gn||[])&&(Gn=[Gn]),Vn=0;Vn<Gn.length;Vn+=1)switch(Gn[Vn]){case"ASCII85Decode":case"/ASCII85Decode":zn=Dn(zn),Kn.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":zn=Un(zn),Kn.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":zn=Qn(zn),Kn.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":zn=zn.split("").map((function(Tn){return("0"+Tn.charCodeAt().toString(16)).slice(-2)})).join("")+">",Kn.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":zn=Hn(zn),Kn.push("/FlateDecode");break;default:throw new Error('The filter: "'+Gn[Vn]+'" is not implemented')}return{data:zn,reverseChain:Kn.reverse().join(" ")}}}(g.API),
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @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(Tn){Tn.loadFile=function(Tn,Un,Dn){return function(Tn,Un,Dn){Un=!1!==Un,Dn="function"==typeof Dn?Dn:function(){};var Qn=void 0;try{Qn=function(Tn,Un,Dn){var Qn=new XMLHttpRequest,Hn=0,Gn=function a(Tn){var Un=Tn.length,Dn=[],Qn=String.fromCharCode;for(Hn=0;Hn<Un;Hn+=1)Dn.push(Qn(255&Tn.charCodeAt(Hn)));return Dn.join("")};if(Qn.open("GET",Tn,!Un),Qn.overrideMimeType("text/plain; charset=x-user-defined"),!1===Un&&(Qn.onload=function(){200===Qn.status?Dn(Gn(this.responseText)):Dn(void 0)}),Qn.send(null),Un&&200===Qn.status)return Gn(Qn.responseText)}(Tn,Un,Dn)}catch(Tn){}return Qn}(Tn,Un,Dn)},Tn.loadImageFile=Tn.loadFile}(g.API),
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Copyright (c) 2018 Erik Koopmans
* Released under the MIT License.
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn){function n(){return(uM.html2canvas?Promise.resolve(uM.html2canvas):Promise.resolve().then((function(){return kj}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}function r(){return(uM.DOMPurify?Promise.resolve(uM.DOMPurify):Promise.resolve().then((function(){return jj}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}var Un=function i(Tn){var Un=_typeof(Tn);return"undefined"===Un?"undefined":"string"===Un||Tn instanceof String?"string":"number"===Un||Tn instanceof Number?"number":"function"===Un||Tn instanceof Function?"function":Tn&&Tn.constructor===Array?"array":Tn&&1===Tn.nodeType?"element":"object"===Un?"object":"unknown"},Dn=function a(Tn,Un){var Dn=document.createElement(Tn);for(var Qn in Un.className&&(Dn.className=Un.className),Un.innerHTML&&Un.dompurify&&(Dn.innerHTML=Un.dompurify.sanitize(Un.innerHTML)),Un.style)Dn.style[Qn]=Un.style[Qn];return Dn},Qn=function t(Tn){var Un=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),Dn=t.convert(Promise.resolve(),Un);return(Dn=Dn.setProgress(1,t,1,[t])).set(Tn)};(Qn.prototype=Object.create(Promise.prototype)).constructor=Qn,Qn.convert=function(Tn,Un){return Tn.__proto__=Un||Qn.prototype,Tn},Qn.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"}},Qn.prototype.from=function(Tn,Qn){return this.then((function(){switch(Qn=Qn||function(Tn){switch(Un(Tn)){case"string":return"string";case"element":return"canvas"===Tn.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(Tn)){case"string":return this.then(r).then((function(Un){return this.set({src:Dn("div",{innerHTML:Tn,dompurify:Un})})}));case"element":return this.set({src:Tn});case"canvas":return this.set({canvas:Tn});case"img":return this.set({img:Tn});default:return this.error("Unknown source type.")}}))},Qn.prototype.to=function(Tn){switch(Tn){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.")}},Qn.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 Tn={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},Un=function o(Tn,Un){for(var Dn=3===Tn.nodeType?document.createTextNode(Tn.nodeValue):Tn.cloneNode(!1),Qn=Tn.firstChild;Qn;Qn=Qn.nextSibling)!0!==Un&&1===Qn.nodeType&&"SCRIPT"===Qn.nodeName||Dn.appendChild(o(Qn,Un));return 1===Tn.nodeType&&("CANVAS"===Tn.nodeName?(Dn.width=Tn.width,Dn.height=Tn.height,Dn.getContext("2d").drawImage(Tn,0,0)):"TEXTAREA"!==Tn.nodeName&&"SELECT"!==Tn.nodeName||(Dn.value=Tn.value),Dn.addEventListener("load",(function(){Dn.scrollTop=Tn.scrollTop,Dn.scrollLeft=Tn.scrollLeft}),!0)),Dn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===Un.tagName&&(Tn.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Dn("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Dn("div",{className:"html2pdf__container",style:Tn}),this.prop.container.appendChild(Un),this.prop.container.firstChild.appendChild(Dn("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
/**
2020-09-08 23:35:47 +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(Tn){var Un;Tn.events.push(["postPutResources",function(){var Tn=this,Dn=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Qn=Tn.outline.render().split(/\r\n/),Hn=0;Hn<Qn.length;Hn++){var Gn=Qn[Hn],Vn=Dn.exec(Gn);if(null!=Vn){var zn=Vn[1];Tn.internal.newObjectDeferredBegin(zn,!1)}Tn.internal.write(Gn)}if(this.outline.createNamedDestinations){var Kn=this.internal.pages.length,Wn=[];for(Hn=0;Hn<Kn;Hn++){var $n=Tn.internal.newObject();Wn.push($n);var Xn=Tn.internal.getPageInfo(Hn+1);Tn.internal.write("<< /D["+Xn.objId+" 0 R /XYZ null null null]>> endobj")}var Yn=Tn.internal.newObject();for(Tn.internal.write("<< /Names [ "),Hn=0;Hn<Wn.length;Hn++)Tn.internal.write("(page_"+(Hn+1)+")"+Wn[Hn]+" 0 R");Tn.internal.write(" ] >>","endobj"),Un=Tn.internal.newObject(),Tn.internal.write("<< /Dests "+Yn+" 0 R"),Tn.internal.write(">>","endobj")}}]),Tn.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 "+Un+" 0 R"))}]),Tn.events.push(["initialized",function(){var Tn=this;Tn.outline={createNamedDestinations:!1,root:{children:[]}},Tn.outline.add=function(Tn,Un,Dn){var Qn={title:Un,options:Dn,children:[]};return null==Tn&&(Tn=this.root),Tn.children.push(Qn),Qn},Tn.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Tn,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Tn.outline.genIds_r=function(Un){Un.id=Tn.internal.newObjectDeferred();for(var Dn=0;Dn<Un.children.length;Dn++)this.genIds_r(Un.children[Dn])},Tn.outline.renderRoot=function(Tn){this.objStart(Tn),this.line("/Type /Outlines"),Tn.children.length>0&&(this.line("/First "+this.makeRef(Tn.children[0])),this.line("/Last "+this.makeRef(Tn.children[Tn.children.length-1]))),this.line("/Count "+this.count_r({count:0},Tn)),this.objEnd()},Tn.outline.renderItems=function(Un){for(var Dn=this.ctx.pdf.internal.getVerticalCoordinateString,Qn=0;Qn<Un.children.length;Qn++){var Hn=Un.children[Qn];this.objStart(Hn),this.line("/Title "+this.makeString(Hn.title)),this.line("/Parent "+this.makeRef(Un)),Qn>0&&this.line("/Prev "+this.makeRef(Un.children[Qn-1])),Qn<Un.children.length-1&&this.line("/Next "+this.makeRef(Un.children[Qn+1])),Hn.children.length>0&&(this.line("/First "+this.makeRef(Hn.children[0])),this.line("/Last "+this.makeRef(Hn.children[Hn.children.length-1])));var Gn=this.count=this.count_r({count:0},Hn);if(Gn>0&&this.line("/Count "+Gn),Hn.options&&Hn.options.pageNumber){var Vn=Tn.internal.getPageInfo(Hn.options.pageNumber);this.line("/Dest ["+Vn.objId+" 0 R /XYZ 0 "+Dn(0)+" 0]")}this.objEnd()}for(var zn=0;zn<Un.children.length;zn++)this.renderItems(Un.children[zn])},Tn.outline.line=function(Tn){this.ctx.val+=Tn+"\r\n"},Tn.outline.makeRef=function(Tn){return Tn.id+" 0 R"},Tn.outline.makeString=function(Un){return"("+Tn.internal.pdfEscape(Un)+")"},Tn.outline.objStart=function(Tn){this.ctx.val+="\r\n"+Tn.id+" 0 obj\r\n<<\r\n"},Tn.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},Tn.outline.count_r=function(Tn,Un){for(var Dn=0;Dn<Un.children.length;Dn++)Tn.count++,this.count_r(Tn,Un.children[Dn]);return Tn.count}}])}(g.API),
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn){var Un=[192,193,194,195,196,197,198,199];Tn.processJPEG=function(Tn,Dn,Qn,Hn,Gn,Vn){var zn,Kn=this.decode.DCT_DECODE,Wn=null;if("string"==typeof Tn||this.__addimage__.isArrayBuffer(Tn)||this.__addimage__.isArrayBufferView(Tn)){switch(Tn=Gn||Tn,Tn=this.__addimage__.isArrayBuffer(Tn)?new Uint8Array(Tn):Tn,(zn=function(Tn){for(var Dn,Qn=256*Tn.charCodeAt(4)+Tn.charCodeAt(5),Hn=Tn.length,Gn={width:0,height:0,numcomponents:1},Vn=4;Vn<Hn;Vn+=2){if(Vn+=Qn,-1!==Un.indexOf(Tn.charCodeAt(Vn+1))){Dn=256*Tn.charCodeAt(Vn+5)+Tn.charCodeAt(Vn+6),Gn={width:256*Tn.charCodeAt(Vn+7)+Tn.charCodeAt(Vn+8),height:Dn,numcomponents:Tn.charCodeAt(Vn+9)};break}Qn=256*Tn.charCodeAt(Vn+2)+Tn.charCodeAt(Vn+3)}return Gn}(Tn=this.__addimage__.isArrayBufferView(Tn)?this.__addimage__.arrayBufferToBinaryString(Tn):Tn)).numcomponents){case 1:Vn=this.color_spaces.DEVICE_GRAY;break;case 4:Vn=this.color_spaces.DEVICE_CMYK;break;case 3:Vn=this.color_spaces.DEVICE_RGB}Wn={data:Tn,width:zn.width,height:zn.height,colorSpace:Vn,bitsPerComponent:8,filter:Kn,index:Dn,alias:Qn}}return Wn}}(g.API);
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @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.
*/
var fU,AU,mU,yU,vU,_U=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function ensureBuffer(Tn){var Un=this.buffer,Dn=Un?Un.byteLength:0;if(Tn<Dn)return Un;for(var Qn=512;Qn<Tn;)Qn<<=1;for(var Hn=new Uint8Array(Qn),Gn=0;Gn<Dn;++Gn)Hn[Gn]=Un[Gn];return this.buffer=Hn},getByte:function getByte(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function getBytes(Tn){var Un=this.pos;if(Tn){this.ensureBuffer(Un+Tn);for(var Dn=Un+Tn;!this.eof&&this.bufferLength<Dn;)this.readBlock();var Qn=this.bufferLength;Dn>Qn&&(Dn=Qn)}else{for(;!this.eof;)this.readBlock();Dn=this.bufferLength}return this.pos=Dn,this.buffer.subarray(Un,Dn)},lookChar:function lookChar(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function getChar(){for(var Tn=this.pos;this.bufferLength<=Tn;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function makeSubStream(Tn,Un,Dn){for(var Qn=Tn+Un;this.bufferLength<=Qn&&!this.eof;)this.readBlock();return new Stream(this.buffer,Tn,Un,Dn)},skip:function skip(Tn){Tn||(Tn=1),this.pos+=Tn},reset:function reset(){this.pos=0}},t}(),bU=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==oM&&oM||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var Tn=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Un=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]),Dn=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]),Qn=[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
/**
2020-09-08 23:35:47 +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.
*/function jt(Tn){var Un=0;if(71!==Tn[Un++]||73!==Tn[Un++]||70!==Tn[Un++]||56!==Tn[Un++]||56!=(Tn[Un++]+1&253)||97!==Tn[Un++])throw new Error("Invalid GIF 87a/89a header.");var Dn=Tn[Un++]|Tn[Un++]<<8,Qn=Tn[Un++]|Tn[Un++]<<8,Hn=Tn[Un++],Gn=Hn>>7,Vn=1<<1+(7&Hn);Tn[Un++],Tn[Un++];var zn=null,Kn=null;Gn&&(zn=Un,Kn=Vn,Un+=3*Vn);var Wn=!0,$n=[],Xn=0,Yn=null,Jn=0,Zn=null;for(this.width=Dn,this.height=Qn;Wn&&Un<Tn.length;)switch(Tn[Un++]){case 33:switch(Tn[Un++]){case 255:if(11!==Tn[Un]||78==Tn[Un+1]&&69==Tn[Un+2]&&84==Tn[Un+3]&&83==Tn[Un+4]&&67==Tn[Un+5]&&65==Tn[Un+6]&&80==Tn[Un+7]&&69==Tn[Un+8]&&50==Tn[Un+9]&&46==Tn[Un+10]&&48==Tn[Un+11]&&3==Tn[Un+12]&&1==Tn[Un+13]&&0==Tn[Un+16])Un+=14,Zn=Tn[Un++]|Tn[Un++]<<8,Un++;else for(Un+=12;;){if(!((pr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===pr)break;Un+=pr}break;case 249:if(4!==Tn[Un++]||0!==Tn[Un+4])throw new Error("Invalid graphics extension block.");var er=Tn[Un++];Xn=Tn[Un++]|Tn[Un++]<<8,Yn=Tn[Un++],0==(1&er)&&(Yn=null),Jn=er>>2&7,Un++;break;case 254:for(;;){if(!((pr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===pr)break;Un+=pr}break;default:throw new Error("Unknown graphic control label: 0x"+Tn[Un-1].toString(16))}break;case 44:var tr=Tn[Un++]|Tn[Un++]<<8,nr=Tn[Un++]|Tn[Un++]<<8,rr=Tn[Un++]|Tn[Un++]<<8,ir=Tn[Un++]|Tn[Un++]<<8,or=Tn[Un++],ar=or>>6&1,sr=1<<1+(7&or),lr=zn,cr=Kn,ur=!1;or>>7&&(ur=!0,lr=Un,cr=sr,Un+=3*sr);var dr=Un;for(Un++;;){var pr;if(!((pr=Tn[Un++])>=0))throw Error("Invalid block size");if(0===pr)break;Un+=pr}$n.push({x:tr,y:nr,width:rr,height:ir,has_local_palette:ur,palette_offset:lr,palette_size:cr,data_offset:dr,data_length:Un-dr,transparent_index:Yn,interlaced:!!ar,delay:Xn,disposal:Jn});break;case 59:Wn=!1;break;default:throw new Error("Unknown gif block: 0x"+Tn[Un-1].toString(16))}this.numFrames=function(){return $n.length},this.loopCount=function(){return Zn},this.frameInfo=function(Tn){if(Tn<0||Tn>=$n.length)throw new Error("Frame index out of range.");return $n[Tn]},this.decodeAndBlitFrameBGRA=function(Un,Qn){var Hn=this.frameInfo(Un),Gn=Hn.width*Hn.height,Vn=new Uint8Array(Gn);Bt(Tn,Hn.data_offset,Vn,Gn);var zn=Hn.palette_offset,Kn=Hn.transparent_index;null===Kn&&(Kn=256);var Wn=Hn.width,$n=Dn-Wn,Xn=Wn,Yn=4*(Hn.y*Dn+Hn.x),Jn=4*((Hn.y+Hn.height)*Dn+Hn.x),Zn=Yn,er=4*$n;!0===Hn.interlaced&&(er+=4*Dn*7);for(var tr=8,nr=0,rr=Vn.length;nr<rr;++nr){var ir=Vn[nr];if(0===Xn&&(Xn=Wn,(Zn+=er)>=Jn&&(er=4*$n+4*Dn*(tr-1),Zn=Yn+(Wn+$n)*(tr<<1),tr>>=1)),ir===Kn)Zn+=4;else{var or=Tn[zn+3*ir],ar=Tn[zn+3*ir+1],sr=Tn[zn+3*ir+2];Qn[Zn++]=sr,Qn[Zn++]=ar,Qn[Zn++]=or,Qn[Zn++]=255}--Xn}},this.decodeAndBlitFrameRGBA=function(Un,Qn){var Hn=this.frameInfo(Un),Gn=Hn.width*Hn.height,Vn=new Uint8Array(Gn);Bt(Tn,Hn.data_offset,Vn,Gn);var zn=Hn.palette_offset,Kn=Hn.transparent_index;null===Kn&&(Kn=256);var Wn=Hn.width,$n=Dn-Wn,Xn=Wn,Yn=4*(Hn.y*Dn+Hn.x),Jn=4*((Hn.y+Hn.height)*Dn+Hn.x),Zn=Yn,er=4*$n;!0===Hn.interlaced&&(er+=4*Dn*7);for(var tr=8,nr=0,rr=Vn.length;nr<rr;++nr){var ir=Vn[nr];if(0===Xn&&(Xn=Wn,(Zn+=er)>=Jn&&(er=4*$n+4*Dn*(tr-1),Zn=Yn+(Wn+$n)*(tr<<1),tr>>=1)),ir===Kn)Zn+=4;else{var or=Tn[zn+3*ir],ar=Tn[zn+3*ir+1],sr=Tn[zn+3*ir+2];Qn[Zn++]=or,Qn[Zn++]=ar,Qn[Zn++]=sr,Qn[Zn++]=255}--Xn}}}function Bt(Tn,Un,Dn,Qn){for(var Hn=Tn[Un++],Gn=1<<Hn,Vn=Gn+1,zn=Vn+1,Kn=Hn+1,Wn=(1<<Kn)-1,$n=0,Xn=0,Yn=0,Jn=Tn[Un++],Zn=new Int32Array(4096),er=null;;){for(;$n<16&&0!==Jn;)Xn|=Tn[Un++]<<$n,$n+=8,1===Jn?Jn=Tn[Un++]:--Jn;if($n<Kn)break;var tr=Xn&Wn;if(Xn>>=Kn,$n-=Kn,tr!==Gn){if(tr===Vn)break;for(var nr=tr<zn?tr:er,rr=0,ir=nr;ir>Gn;)ir=Zn[ir]>>8,++rr;var or=ir;if(Yn+rr+(nr!==tr?1:0)>Qn)return void dM.log("Warning, gif stream longer than expected.");Dn[Yn++]=or;var ar=Yn+=rr;for(nr!==tr&&(Dn[Yn++]=or),ir=nr;rr--;)ir=Zn[ir],Dn[--ar]=255&ir,ir>>=8;null!==er&&zn<4096&&(Zn[zn++]=er<<8|or,zn>=Wn+1&&Kn<12&&(++Kn,Wn=Wn<<1|1)),er=tr}else zn=Vn+1,Wn=(1<<(Kn=Hn+1))-1,er=null}return Yn!==Qn&&dM.log("Warning, gif stream shorter than expected."),Dn
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
2020-08-28 22:07:07 +00:00
2020-09-08 23:35:47 +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-08 23:35:47 +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-08 23:35:47 +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.
*/}function Ot(Tn){var Un,Dn,Qn,Hn,Gn,Vn=Math.floor,zn=new Array(64),Kn=new Array(64),Wn=new Array(64),$n=new Array(64),Xn=new Array(65535),Yn=new Array(65535),Jn=new Array(64),Zn=new Array(64),er=[],tr=0,nr=7,rr=new Array(64),ir=new Array(64),or=new Array(64),ar=new Array(256),sr=new Array(2048),lr=[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],cr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],ur=[0,1,2,3,4,5,6,7,8,9,10,11],dr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],pr=[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],hr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],gr=[0,1,2,3,4,5,6,7,8,9,10,11],fr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ar=[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(Tn,Un){for(var Dn=0,Qn=0,Hn=new Array,Gn=1;Gn<=16;Gn++){for(var Vn=1;Vn<=Tn[Gn];Vn++)Hn[Un[Qn]]=[],Hn[Un[Qn]][0]=Dn,Hn[Un[Qn]][1]=Gn,Qn++,Dn++;Dn*=2}return Hn}function B(Tn){for(var Un=Tn[0],Dn=Tn[1]-1;Dn>=0;)Un&1<<Dn&&(tr|=1<<nr),Dn--,--nr<0&&(255==tr?(O(255),O(0)):O(tr),nr=7,tr=0)}function O(Tn){er.push(Tn)}function M(Tn){O(Tn>>8&255),O(255&Tn)}function E(Tn,Un,Dn,Qn,Hn){for(var Gn,Vn=Hn[0],zn=Hn[240],Kn=function(Tn,Un){var Dn,Qn,Hn,Gn,Vn,zn,Kn,Wn,$n,Xn,Yn=0;for($n=0;$n<8;++$n){Dn=Tn[Yn],Qn=Tn[Yn+1],Hn=Tn[Yn+2],Gn=Tn[Yn+3],Vn=Tn[Yn+4],zn=Tn[Yn+5],Kn=Tn[Yn+6];var Zn=Dn+(Wn=Tn[Yn+7]),er=Dn-Wn,tr=Qn+Kn,nr=Qn-Kn,rr=Hn+zn,ir=Hn-zn,or=Gn+Vn,ar=Gn-Vn,sr=Zn+or,lr=Zn-or,cr=tr+rr,ur=tr-rr;Tn[Yn]=sr+cr,Tn[Yn+4]=sr-cr;var dr=.707106781*(ur+lr);Tn[Yn+2]=lr+dr,Tn[Yn+6]=lr-dr;var pr=.382683433*((sr=ar+ir)-(ur=nr+er)),hr=.5411961*sr+pr,gr=1.306562965*ur+pr,fr=.707106781*(cr=ir+nr),Ar=er+fr,mr=er-fr;Tn[Yn+5]=mr+hr,Tn[Yn+3]=mr-hr,Tn[Yn+1]=Ar+gr,Tn[Yn+7]=Ar-gr,Yn+=8}for(Yn=0,$n=0;$n<8;++$n){Dn=Tn[Yn],Qn=Tn[Yn+8],Hn=Tn[Yn+16],Gn=Tn[Yn+24],Vn=Tn[Yn+32],zn=Tn[Yn+40],Kn=Tn[Yn+48];var yr=Dn+(Wn=Tn[Yn+56]),vr=Dn-Wn,_r=Qn+Kn,br=Qn-Kn,wr=Hn+zn,xr=Hn-zn,Sr=Gn+Vn,Cr=Gn-Vn,kr=yr+Sr,Br=yr-Sr,Er=_r+wr,Pr=_r-wr;Tn[Yn]=kr+Er,Tn[Yn+32]=kr-Er;var Tr=.707106781*(Pr+Br);Tn[Yn+16]=Br+Tr,Tn[Yn+48]=Br-Tr;var Lr=.382683433*((kr=Cr+xr)-(Pr=br+vr)),Nr=.5411961*kr+Lr,Ir=1.306562965*Pr+Lr,Fr=.707106781*(Er=xr+br),Or=vr+Fr,Mr=vr-Fr;Tn[Yn+40]=Mr+Nr,Tn[Yn+24]=Mr-Nr,Tn[Yn+8]=Or+Ir,Tn[Yn+56]=Or-Ir,Yn++}for($n=0;$n<64;++$n)Xn=Tn[$n]*Un[$n],Jn[$n]=Xn>0?Xn+.5|0:Xn-.5|0;return Jn}(Tn,Un),Wn=0;Wn<64;++Wn)Zn[lr[Wn]]=Kn[Wn];var $n=Zn[0]-Dn;Dn=Zn[0],0==$n?B(Qn[0]):(B(Qn[Yn[Gn=32767+$n]]),B(Xn[Gn]));for(var er=63;er>0&&0==Zn[er];)er--;if(0==er)return B(Vn),Dn;for(var tr,nr=1;nr<=er;){for(var rr=nr;0==Zn[nr]&&nr<=er;)++nr;var ir=nr-rr;if(ir>=16){tr=ir>>4;for(var or=1;or<=tr;++or)B(zn);ir&=15}Gn=32767+Zn[nr],B(Hn[(ir<<4)+Yn[Gn]]),B(Xn[Gn]),nr++}return 63!=er&&B(Vn),Dn}function q(Tn){Tn=Math.min(Math.max(Tn,1),100),Gn!=Tn&&(function(Tn){for(var Un=[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,
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Mt(Tn,Un){if(this.pos=0,this.buffer=Tn,this.datav=new DataView(Tn.buffer),this.is_with_alpha=!!Un,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(Tn){function e(Tn){if(!Tn)throw Error("assert :P")}function n(Tn,Un,Dn){for(var Qn=0;4>Qn;Qn++)if(Tn[Un+Qn]!=Dn.charCodeAt(Qn))return!0;return!1}function r(Tn,Un,Dn,Qn,Hn){for(var Gn=0;Gn<Hn;Gn++)Tn[Un+Gn]=Dn[Qn+Gn]}function i(Tn,Un,Dn,Qn){for(var Hn=0;Hn<Qn;Hn++)Tn[Un+Hn]=Dn}function a(Tn){return new Int32Array(Tn)}function o(Tn,Un){for(var Dn=[],Qn=0;Qn<Tn;Qn++)Dn.push(new Un);return Dn}function s(Tn,Un){var Dn=[];return function t(Tn,Dn,Qn){for(var Hn=Qn[Dn],Gn=0;Gn<Hn&&(Tn.push(Qn.length>Dn+1?[]:new Un),!(Qn.length<Dn+1));Gn++)t(Tn[Gn],Dn+1,Qn)}(Dn,0,Tn),Dn}function u(Tn,Un){for(var Dn="",Qn=0;Qn<4;Qn++)Dn+=String.fromCharCode(Tn[Un++]);return Dn}function c(Tn,Un){return(Tn[Un+0]<<0|Tn[Un+1]<<8|Tn[Un+2]<<16)>>>0}function h(Tn,Un){return(Tn[Un+0]<<0|Tn[Un+1]<<8|Tn[Un+2]<<16|Tn[Un+3]<<24)>>>0}new(Et=function Et(){var Tn=this;function u(Tn,Un){for(var Dn=1<<Un-1>>>0;Tn&Dn;)Dn>>>=1;return Dn?(Tn&Dn-1)+Dn:Tn}function c(Tn,Un,Dn,Qn,Hn){e(!(Qn%Dn));do{Tn[Un+(Qn-=Dn)]=Hn}while(0<Qn)}function h(Tn,Un,Dn,Qn,Hn){if(e(2328>=Hn),512>=Hn)var Gn=a(512);else if(null==(Gn=a(Hn)))return 0;return function(Tn,Un,Dn,Qn,Hn,Gn){var Vn,zn,Kn=Un,Wn=1<<Dn,$n=a(16),Xn=a(16);for(e(0!=Hn),e(null!=Qn),e(null!=Tn),e(0<Dn),zn=0;zn<Hn;++zn){if(15<Qn[zn])return 0;++$n[Qn[zn]]}if($n[0]==Hn)return 0;for(Xn[1]=0,Vn=1;15>Vn;++Vn){if($n[Vn]>1<<Vn)return 0;Xn[Vn+1]=Xn[Vn]+$n[Vn]}for(zn=0;zn<Hn;++zn)Vn=Qn[zn],0<Qn[zn]&&(Gn[Xn[Vn]++]=zn);if(1==Xn[15])return(Qn=new l).g=0,Qn.value=Gn[0],c(Tn,Kn,1,Wn,Qn),Wn;var Yn,Jn=-1,Zn=Wn-1,er=0,tr=1,nr=1,rr=1<<Dn;for(zn=0,Vn=1,Hn=2;Vn<=Dn;++Vn,Hn<<=1){if(tr+=nr<<=1,0>(nr-=$n[Vn]))return 0;for(;0<$n[Vn];--$n[Vn])(Qn=new l).g=Vn,Qn.value=Gn[zn++],c(Tn,Kn+er,Hn,rr,Qn),er=u(er,Vn)}for(Vn=Dn+1,Hn=2;15>=Vn;++Vn,Hn<<=1){if(tr+=nr<<=1,0>(nr-=$n[Vn]))return 0;for(;0<$n[Vn];--$n[Vn]){if(Qn=new l,(er&Zn)!=Jn){for(Kn+=rr,Yn=1<<(Jn=Vn)-Dn;15>Jn&&!(0>=(Yn-=$n[Jn]));)++Jn,Yn<<=1;Wn+=rr=1<<(Yn=Jn-Dn),Tn[Un+(Jn=er&Zn)].g=Yn+Dn,Tn[Un+Jn].value=Kn-Un-Jn}Qn.g=Vn-Dn,Qn.value=Gn[zn++],c(Tn,Kn+(er>>Dn),Hn,rr,Qn),er=u(er,Vn)}}return tr!=2*Xn[15]-1?0:Wn}(Tn,Un,Dn,Qn,Hn,Gn)}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(Un,f)}function p(Tn,Un,Dn,Qn){e(null!=Tn),e(null!=Un),e(2147483648>Qn),Tn.Ca=254,Tn.I=0,Tn.b=-8,Tn.Ka=0,Tn.oa=Un,Tn.pa=Dn,Tn.Jd=Un,Tn.Yc=Dn+Qn,Tn.Zc=4<=Qn?Dn+Qn-4+1:Dn,S(Tn)}function g(Tn,Un){for(var Dn=0;0<Un--;)Dn|=k(Tn,128)<<Un;return Dn}function m(Tn,Un){var Dn=g(Tn,Un);return P(Tn)?-Dn:Dn}function v(Tn,Un,Dn,Qn){var Hn,Gn=0;for(e(null!=Tn),e(null!=Un),e(4294967288>Qn),Tn.Sb=Qn,Tn.Ra=0,Tn.u=0,Tn.h=0,4<Qn&&(Qn=4),Hn=0;Hn<Qn;++Hn)Gn+=Un[Dn+Hn]<<8*Hn;Tn.Ra=Gn,Tn.bb=Qn,Tn.oa=Un,Tn.pa=Dn}function b(Tn){for(;8<=Tn.u&&Tn.bb<Tn.Sb;)Tn.Ra>>>=8,Tn.Ra+=Tn.oa[Tn.pa+Tn.bb]<<Hn-8>>>0,++Tn.bb,Tn.u-=8;x(Tn)&&(Tn.h=1,Tn.u=0)}function y(Tn,Un){if(e(0<=Un),!Tn.h&&Un<=Qn){var Hn=L(Tn)&Dn[Un];return Tn.u+=Un,b(Tn),Hn}return Tn.h=1,Tn.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(Tn){return Tn.Ra>>>(Tn.u&Hn-1)>>>0}function x(Tn){return e(Tn.bb<=Tn.Sb),Tn.h||Tn.bb==Tn.Sb&&Tn.u>Hn}function A(Tn,Un){Tn.u=Un,Tn.h=x(Tn)}function _(Tn){Tn.u>=Gn&&(e(Tn.u>=Gn),b(Tn))}function S(Tn){e(null!=Tn&&null!=Tn.oa),Tn.pa<Tn.Zc?(Tn.I=(Tn.oa[Tn.pa++]|Tn.I<<8)>>>0,Tn.b+=8):(e(null!=Tn&&null!=Tn.oa),Tn.pa<Tn.Yc?(Tn.b+=8,Tn.I=Tn.oa[Tn.pa++]|Tn.I<<8):Tn.Ka?Tn.b=0:(Tn.I<<=8,Tn.b+=8,Tn.Ka=1))}function P(Tn){return g(Tn,1)}function k(Tn,Un){var Dn=Tn.Ca;0>Tn.b&&S(Tn);var Qn=Tn.b,Hn=Dn*Un>>>8,Gn=(Tn.I>>>Qn>Hn)+0;for(Gn?(Dn-=Hn,Tn.I-=Hn+1<<Qn>>>0):Dn=Hn+1,Qn=Dn,Hn=0;256<=Qn;)Hn+
2020-09-04 20:34:30 +00:00
/** @license
2020-09-08 23:35:47 +00:00
* 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(Tn,Un,Dn,Qn){for(var Hn=0;Hn<4;Hn++)if(Tn[Un+Hn]!="RIFF".charCodeAt(Hn))return!0;return!1}(Tn,Un)){var zn,Kn;for(h(Tn,Un+=4),Un+=8;Un<Tn.length;){var Wn=u(Tn,Un),$n=h(Tn,Un+=4);Un+=4;var Xn=$n+(1&$n);switch(Wn){case"VP8 ":case"VP8L":void 0===Dn.frames[Qn]&&(Dn.frames[Qn]={}),(Zn=Dn.frames[Qn]).src_off=Hn?Vn:Un-8,Zn.src_size=Gn+$n+8,Qn++,Hn&&(Hn=!1,Gn=0,Vn=0);break;case"VP8X":(Zn=Dn.header={}).feature_flags=Tn[Un];var Yn=Un+4;Zn.canvas_width=1+c(Tn,Yn),Yn+=3,Zn.canvas_height=1+c(Tn,Yn),Yn+=3;break;case"ALPH":Hn=!0,Gn=Xn+8,Vn=Un-8;break;case"ANIM":(Zn=Dn.header).bgcolor=h(Tn,Un),Yn=Un+4,Zn.loop_count=(zn=Tn)[(Kn=Yn)+0]<<0|zn[Kn+1]<<8,Yn+=2;break;case"ANMF":var Jn,Zn;(Zn=Dn.frames[Qn]={}).offset_x=2*c(Tn,Un),Un+=3,Zn.offset_y=2*c(Tn,Un),Un+=3,Zn.width=1+c(Tn,Un),Un+=3,Zn.height=1+c(Tn,Un),Un+=3,Zn.duration=c(Tn,Un),Un+=3,Jn=Tn[Un++],Zn.dispose=1&Jn,Zn.blend=Jn>>1&1}"ANMF"!=Wn&&(Un+=Xn)}return Dn}}(Gn,0);Vn.response=Gn,Vn.rgbaoutput=!0,Vn.dataurl=!1;var zn=Vn.header?Vn.header:null,Kn=Vn.frames?Vn.frames:null;if(zn){zn.loop_counter=zn.loop_count,Un=[zn.canvas_height],Dn=[zn.canvas_width];for(var Wn=0;Wn<Kn.length&&0!=Kn[Wn].blend;Wn++);}var $n=Kn[0],Xn=Hn.WebPDecodeRGBA(Gn,$n.src_off,$n.src_size,Dn,Un);$n.rgba=Xn,$n.imgwidth=Dn[0],$n.imgheight=Un[0];for(var Yn=0;Yn<Dn[0]*Un[0]*4;Yn++)Qn[Yn]=Xn[Yn];return this.width=Dn,this.height=Un,this.data=Qn,this
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @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.
* ====================================================================
*/}!function(Tn){var Un=function n(Un,Hn,Wn,$n){var Xn=5,Yn=Vn;switch($n){case Tn.image_compression.FAST:Xn=3,Yn=Gn;break;case Tn.image_compression.MEDIUM:Xn=6,Yn=zn;break;case Tn.image_compression.SLOW:Xn=9,Yn=Kn}Un=Qn(Un,Hn,Wn,Yn);var Jn=new Uint8Array(Dn(Xn)),Zn=g.API.adler32cs.fromBuffer(Un.buffer),er=new xt(Xn),tr=er.append(Un),nr=er.flush(),rr=Jn.length+tr.length+nr.length,ir=new Uint8Array(rr+4);return ir.set(Jn),ir.set(tr,Jn.length),ir.set(nr,Jn.length+tr.length),ir[rr++]=Zn>>>24&255,ir[rr++]=Zn>>>16&255,ir[rr++]=Zn>>>8&255,ir[rr++]=255&Zn,Tn.__addimage__.arrayBufferToBinaryString(ir)},Dn=function r(Tn){var Un=30720;return Un|=Math.min(3,(Tn-1&255)>>1)<<6,Un|=0,[120,255&(Un+=31-Un%31)]},Qn=function i(Tn,Un,Dn,Qn){for(var i,Hn,Gn,Vn=Tn.length/Un,zn=new Uint8Array(Tn.length+Vn),Kn=$n(),Wn=0;Wn<Vn;Wn+=1){if(Gn=Wn*Un,i=Tn.subarray(Gn,Gn+Un),Qn)zn.set(Qn(i,Dn,Hn),Gn+Wn);else{for(var Yn,Jn=Kn.length,Zn=[];Yn<Jn;Yn+=1)Zn[Yn]=Kn[Yn](i,Dn,Hn);var er=Xn(Zn.concat());zn.set(Zn[er],Gn+Wn)}Hn=i}return zn},Hn=function a(Tn){var Un=Array.apply([],Tn);return Un.unshift(0),Un},Gn=function o(Tn,Un){var Dn,Qn=[],Hn=Tn.length;Qn[0]=1;for(var Gn=0;Gn<Hn;Gn+=1)Dn=Tn[Gn-Un]||0,Qn[Gn+1]=Tn[Gn]-Dn+256&255;return Qn},Vn=function s(Tn,Un,Dn){var Qn,Hn=[],Gn=Tn.length;Hn[0]=2;for(var Vn=0;Vn<Gn;Vn+=1)Qn=Dn&&Dn[Vn]||0,Hn[Vn+1]=Tn[Vn]-Qn+256&255;return Hn},zn=function u(Tn,Un,Dn){var Qn,Hn,Gn=[],Vn=Tn.length;Gn[0]=3;for(var zn=0;zn<Vn;zn+=1)Qn=Tn[zn-Un]||0,Hn=Dn&&Dn[zn]||0,Gn[zn+1]=Tn[zn]+256-(Qn+Hn>>>1)&255;return Gn},Kn=function c(Tn,Un,Dn){var Qn,Hn,Gn,Vn,zn=[],Kn=Tn.length;zn[0]=4;for(var c=0;c<Kn;c+=1)Qn=Tn[c-Un]||0,Hn=Dn&&Dn[c]||0,Gn=Dn&&Dn[c-Un]||0,Vn=Wn(Qn,Hn,Gn),zn[c+1]=Tn[c]-Vn+256&255;return zn},Wn=function h(Tn,Un,Dn){if(Tn===Un&&Un===Dn)return Tn;var Qn=Math.abs(Un-Dn),Hn=Math.abs(Tn-Dn),Gn=Math.abs(Tn+Un-Dn-Dn);return Qn<=Hn&&Qn<=Gn?Tn:Hn<=Gn?Un:Dn},$n=function l(){return[Hn,Gn,Vn,zn,Kn]},Xn=function f(Tn){var Un=Tn.map((function(Tn){return Tn.reduce((function(Tn,Un){return Tn+Math.abs(Un)}),0)}));return Un.indexOf(Math.min.apply(null,Un))};Tn.processPNG=function(Dn,Qn,Hn,Gn){var Vn,zn,Kn,Wn,$n,Xn,Yn,Jn,Zn,er,tr,nr,rr,ir,or,ar=this.decode.FLATE_DECODE,sr="";if(this.__addimage__.isArrayBuffer(Dn)&&(Dn=new Uint8Array(Dn)),this.__addimage__.isArrayBufferView(Dn)){if(Dn=(Kn=new wU(Dn)).imgData,zn=Kn.bits,Vn=Kn.colorSpace,$n=Kn.colors,-1!==[4,6].indexOf(Kn.colorType)){if(8===Kn.bits){Zn=(Jn=32==Kn.pixelBitlength?new Uint32Array(Kn.decodePixels().buffer):16==Kn.pixelBitlength?new Uint16Array(Kn.decodePixels().buffer):new Uint8Array(Kn.decodePixels().buffer)).length,tr=new Uint8Array(Zn*Kn.colors),er=new Uint8Array(Zn);var lr,cr=Kn.pixelBitlength-Kn.bits;for(ir=0,or=0;ir<Zn;ir++){for(rr=Jn[ir],lr=0;lr<cr;)tr[or++]=rr>>>lr&255,lr+=Kn.bits;er[ir]=rr>>>lr&255}}if(16===Kn.bits){Zn=(Jn=new Uint32Array(Kn.decodePixels().buffer)).length,tr=new Uint8Array(Zn*(32/Kn.pixelBitlength)*Kn.colors),er=new Uint8Array(Zn*(32/Kn.pixelBitlength)),nr=Kn.colors>1,ir=0,or=0;for(var ur=0;ir<Zn;)rr=Jn[ir++],tr[or++]=rr>>>0&255,nr&&(tr[or++]=rr>>>16&255,rr=Jn[ir++],tr[or++]=rr>>>0&255),er[ur++]=rr>>>16&255;zn=8}Gn!==Tn.image_compression.NONE?(Dn=Un(tr,Kn.width*Kn.colors,Kn.colors,Gn),Yn=Un(er,Kn.width,1,Gn)):(Dn=tr,Yn=er,ar=void 0)}if(3===Kn.colorType&&(Vn=this.color_spaces.INDEXED,Xn=Kn.palette,Kn.transparency.indexed)){var dr=Kn.transparency.indexed,pr=0;for(ir=0,Zn=dr.length;ir<Zn;++ir)pr+=dr[ir];if((pr/=255)==Zn-1&&-1!==dr.indexOf(0))Wn=[dr.indexOf(0)];else if(pr!==Zn){for(Jn=Kn.decodePixels(),er=new Uint8Array(Jn.length),ir=0,Zn=Jn.length;ir<Zn;ir++)er[ir]=dr[Jn[ir]];Yn=Un(er,Kn.width,1)}}var hr=function(Un){var Dn;switch(Un){case Tn.image_compression.FAST:Dn=11;break;case Tn.image_compression.MEDIUM:Dn=13;break;case Tn.image_compression.SLOW:Dn=14;break;default:Dn=12}return Dn}(Gn);return ar===this.decode.FLATE_DECODE&&(sr="/Predictor "+hr+" "),sr+="/Colors "+$n+" /BitsPerComponent "+zn+" /Columns "+Kn.width,(this.__addimage__.isArrayBuffer(Dn)||this.__addimage__.isArrayBufferView(Dn))&&(Dn=this.__addimage__.arrayBufferToBinaryString(Dn)),(Yn&&this.
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Copyright (c) 2018 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn){Tn.processBMP=function(Un,Dn,Qn,Hn){var Gn=new Mt(Un,!1),Vn=Gn.width,zn=Gn.height,Kn={data:Gn.getData(),width:Vn,height:zn},Wn=new Ot(100).encode(Kn,100);return Tn.processJPEG.call(this,Wn,Dn,Qn,Hn)}}(g.API),Et.prototype.getData=function(){return this.data},
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Copyright (c) 2019 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn){Tn.processWEBP=function(Un,Dn,Qn,Hn){var Gn=new Et(Un,!1),Vn=Gn.width,zn=Gn.height,Kn={data:Gn.getData(),width:Vn,height:zn},Wn=new Ot(100).encode(Kn,100);return Tn.processJPEG.call(this,Wn,Dn,Qn,Hn)}}(g.API),g.API.setLanguage=function(Tn){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"
2020-09-04 20:34:30 +00:00
/** @license
2020-09-08 23:35:47 +00:00
* 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.
* ====================================================================
*/
fU=g.API,AU=fU.getCharWidthsArray=function(Tn,Un){var Dn,Qn,Hn=(Un=Un||{}).font||this.internal.getFont(),Gn=Un.fontSize||this.internal.getFontSize(),Vn=Un.charSpace||this.internal.getCharSpace(),zn=Un.widths?Un.widths:Hn.metadata.Unicode.widths,Kn=zn.fof?zn.fof:1,Wn=Un.kerning?Un.kerning:Hn.metadata.Unicode.kerning,$n=Wn.fof?Wn.fof:1,Xn=!1!==Un.doKerning,Yn=0,Jn=Tn.length,Zn=0,er=zn[0]||Kn,tr=[];for(Dn=0;Dn<Jn;Dn++)Qn=Tn.charCodeAt(Dn),"function"==typeof Hn.metadata.widthOfString?tr.push((Hn.metadata.widthOfGlyph(Hn.metadata.characterToGlyph(Qn))+Vn*(1e3/Gn)||0)/1e3):(Yn=Xn&&"object"==_typeof(Wn[Qn])&&!isNaN(parseInt(Wn[Qn][Zn],10))?Wn[Qn][Zn]/$n:0,tr.push((zn[Qn]||er)/Kn+Yn)),Zn=Qn;return tr},mU=fU.getStringUnitWidth=function(Tn,Un){var Dn=(Un=Un||{}).fontSize||this.internal.getFontSize(),Qn=Un.font||this.internal.getFont(),Hn=Un.charSpace||this.internal.getCharSpace();return fU.processArabic&&(Tn=fU.processArabic(Tn)),"function"==typeof Qn.metadata.widthOfString?Qn.metadata.widthOfString(Tn,Dn,Hn)/Dn:AU.apply(this,arguments).reduce((function(Tn,Un){return Tn+Un}),0)},yU=function Pt(Tn,Un,Dn,Qn){for(var Hn=[],Gn=0,Vn=Tn.length,zn=0;Gn!==Vn&&zn+Un[Gn]<Dn;)zn+=Un[Gn],Gn++;Hn.push(Tn.slice(0,Gn));var Kn=Gn;for(zn=0;Gn!==Vn;)zn+Un[Gn]>Qn&&(Hn.push(Tn.slice(Kn,Gn)),zn=0,Kn=Gn),zn+=Un[Gn],Gn++;return Kn!==Gn&&Hn.push(Tn.slice(Kn,Gn)),Hn},vU=function kt(Tn,Un,Dn){Dn||(Dn={});var Qn,Hn,Gn,Vn,zn,Kn,Wn,$n=[],Xn=[$n],Yn=Dn.textIndent||0,Jn=0,Zn=0,er=Tn.split(" "),tr=AU.apply(this,[" ",Dn])[0];if(Kn=-1===Dn.lineIndent?er[0].length+2:Dn.lineIndent||0){var nr=Array(Kn).join(" "),rr=[];er.map((function(Tn){(Tn=Tn.split(/\s*\n/)).length>1?rr=rr.concat(Tn.map((function(Tn,Un){return(Un&&Tn.length?"\n":"")+Tn}))):rr.push(Tn[0])})),er=rr,Kn=mU.apply(this,[nr,Dn])}for(Gn=0,Vn=er.length;Gn<Vn;Gn++){var ir=0;if(Qn=er[Gn],Kn&&"\n"==Qn[0]&&(Qn=Qn.substr(1),ir=1),Yn+Jn+(Zn=(Hn=AU.apply(this,[Qn,Dn])).reduce((function(Tn,Un){return Tn+Un}),0))>Un||ir){if(Zn>Un){for(zn=yU.apply(this,[Qn,Hn,Un-(Yn+Jn),Un]),$n.push(zn.shift()),$n=[zn.pop()];zn.length;)Xn.push([zn.shift()]);Zn=Hn.slice(Qn.length-($n[0]?$n[0].length:0)).reduce((function(Tn,Un){return Tn+Un}),0)}else $n=[Qn];Xn.push($n),Yn=Zn+Kn,Jn=tr}else $n.push(Qn),Yn+=Jn+Zn,Jn=tr}return Wn=Kn?function(Tn,Un){return(Un?nr:"")+Tn.join(" ")}:function(Tn){return Tn.join(" ")},Xn.map(Wn)},fU.splitTextToSize=function(Tn,Un,Dn){var Qn,Hn=(Dn=Dn||{}).fontSize||this.internal.getFontSize(),Gn=function(Tn){if(Tn.widths&&Tn.kerning)return{widths:Tn.widths,kerning:Tn.kerning};var Un=this.internal.getFont(Tn.fontName,Tn.fontStyle);return Un.metadata.Unicode?{widths:Un.metadata.Unicode.widths||{0:1},kerning:Un.metadata.Unicode.kerning||{}}:{font:Un.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Dn);Qn=Array.isArray(Tn)?Tn:String(Tn).split(/\r?\n/);var Vn=1*this.internal.scaleFactor*Un/Hn;Gn.textIndent=Dn.textIndent?1*Dn.textIndent*this.internal.scaleFactor/Hn:0,Gn.lineIndent=Dn.lineIndent;var zn,Kn,Wn=[];for(zn=0,Kn=Qn.length;zn<Kn;zn++)Wn=Wn.concat(vU.apply(this,[Qn[zn],Vn,Gn]));return Wn},
2020-09-04 20:34:30 +00:00
/** @license
2020-09-08 23:35:47 +00:00
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(Tn){Tn.__fontmetrics__=Tn.__fontmetrics__||{};for(var Un="klmnopqrstuvwxyz",Dn={},Qn={},Hn=0;Hn<Un.length;Hn++)Dn[Un[Hn]]="0123456789abcdef"[Hn],Qn["0123456789abcdef"[Hn]]=Un[Hn];var Gn=function a(Tn){return"0x"+parseInt(Tn,10).toString(16)},Vn=Tn.__fontmetrics__.compress=function(Tn){var Un,Dn,Hn,zn,Kn=["{"];for(var Wn in Tn){if(Un=Tn[Wn],isNaN(parseInt(Wn,10))?Dn="'"+Wn+"'":(Wn=parseInt(Wn,10),Dn=(Dn=Gn(Wn).slice(2)).slice(0,-1)+Qn[Dn.slice(-1)]),"number"==typeof Un)Un<0?(Hn=Gn(Un).slice(3),zn="-"):(Hn=Gn(Un).slice(2),zn=""),Hn=zn+Hn.slice(0,-1)+Qn[Hn.slice(-1)];else{if("object"!=_typeof(Un))throw new Error("Don't know what to do with value type "+_typeof(Un)+".");Hn=Vn(Un)}Kn.push(Dn+Hn)}return Kn.push("}"),Kn.join("")},zn=Tn.__fontmetrics__.uncompress=function(Tn){if("string"!=typeof Tn)throw new Error("Invalid argument passed to uncompress.");for(var Un,Qn,Hn,Gn,Vn={},zn=1,Kn=Vn,Wn=[],$n="",Xn="",Yn=Tn.length-1,Jn=1;Jn<Yn;Jn+=1)"'"==(Gn=Tn[Jn])?Un?(Hn=Un.join(""),Un=void 0):Un=[]:Un?Un.push(Gn):"{"==Gn?(Wn.push([Kn,Hn]),Kn={},Hn=void 0):"}"==Gn?((Qn=Wn.pop())[0][Qn[1]]=Kn,Hn=void 0,Kn=Qn[0]):"-"==Gn?zn=-1:void 0===Hn?Dn.hasOwnProperty(Gn)?($n+=Dn[Gn],Hn=parseInt($n,16)*zn,zn=1,$n=""):$n+=Gn:Dn.hasOwnProperty(Gn)?(Xn+=Dn[Gn],Kn[Hn]=parseInt(Xn,16)*zn,zn=1,Hn=void 0,Xn=""):Xn+=Gn;return Vn},Kn={codePages:["WinAnsiEncoding"],WinAnsiEncoding:zn("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Wn={Unicode:{Courier:Kn,"Courier-Bold":Kn,"Courier-BoldOblique":Kn,"Courier-Oblique":Kn,Helvetica:Kn,"Helvetica-Bold":Kn,"Helvetica-BoldOblique":Kn,"Helvetica-Oblique":Kn,"Times-Roman":Kn,"Times-Bold":Kn,"Times-BoldItalic":Kn,"Times-Italic":Kn}},$n={Unicode:{"Courier-Oblique":zn("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":zn("{'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":zn("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn){var Un=function e(Tn){for(var e=Tn.length,Un=new Uint8Array(e),Dn=0;Dn<e;Dn++)Un[Dn]=Tn.charCodeAt(Dn);return Un};Tn.API.events.push(["addFont",function(Dn){var Qn=void 0,Hn=Dn.font,Gn=Dn.instance;if(!Hn.isStandardFont){if(void 0===Gn)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Hn.postScriptName+"').");if("string"!=typeof(Qn=!1===Gn.existsFileInVFS(Hn.postScriptName)?Gn.loadFile(Hn.postScriptName):Gn.getFileFromVFS(Hn.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Hn.postScriptName+"').");!function(Dn,Qn){Qn=/^\x00\x01\x00\x00/.test(Qn)?Un(Qn):Un(pM(Qn)),Dn.metadata=Tn.API.TTFFont.open(Qn),Dn.metadata.Unicode=Dn.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Dn.metadata.glyIdsUsed=[0]}(Hn,Qn)}}])}(g),
2020-09-04 20:34:30 +00:00
/** @license
2020-09-08 23:35:47 +00:00
* 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.
* ====================================================================
*/
function(Tn){function r(){return(uM.canvg?Promise.resolve(uM.canvg):Promise.resolve().then((function(){return bN}))).catch((function(Tn){return Promise.reject(new Error("Could not load dompurify: "+Tn))})).then((function(Tn){return Tn.default?Tn.default:Tn}))}g.API.addSvgAsImage=function(Tn,Un,Dn,Qn,Hn,Gn,Vn,zn){if(isNaN(Un)||isNaN(Dn))throw dM.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Qn)||isNaN(Hn))throw dM.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Kn=document.createElement("canvas");Kn.width=Qn,Kn.height=Hn;var Wn=Kn.getContext("2d");Wn.fillStyle="#fff",Wn.fillRect(0,0,Kn.width,Kn.height);var $n={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Xn=this;return r().then((function(Un){return Un.Canvg.fromString(Wn,Tn,$n)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(Tn){return Tn.render($n)})).then((function(){Xn.addImage(Kn.toDataURL("image/jpeg",1),Un,Dn,Qn,Hn,Vn,zn)}))}}(),g.API.putTotalPages=function(Tn){var Un,Dn=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Un=new RegExp(Tn,"g"),Dn=this.internal.getNumberOfPages()):(Un=new RegExp(this.pdfEscape16(Tn,this.internal.getFont()),"g"),Dn=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Qn=1;Qn<=this.internal.getNumberOfPages();Qn++)for(var Hn=0;Hn<this.internal.pages[Qn].length;Hn++)this.internal.pages[Qn][Hn]=this.internal.pages[Qn][Hn].replace(Un,Dn);return this},g.API.viewerPreferences=function(Tn,Un){var Dn;Tn=Tn||{},Un=Un||!1;var Qn,Hn,Gn,Vn={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}},zn=Object.keys(Vn),Kn=[],Wn=0,$n=0,Xn=0;function f(Tn,Un){var Dn,Qn=!1;for(Dn=0;Dn<Tn.length;Dn+=1)Tn[Dn]===Un&&(Qn=!0);return Qn}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Vn)),this.int
2020-09-04 20:34:30 +00:00
/** ====================================================================
2020-09-08 23:35:47 +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(Tn){var Un=function e(){var Tn='<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/">')),Un=unescape(encodeURIComponent(Tn)),Dn=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Qn=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Hn=unescape(encodeURIComponent("</x:xmpmeta>")),Gn=Un.length+Dn.length+Qn.length+e.length+Hn.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Gn+" >>"),this.internal.write("stream"),this.internal.write(e+Un+Dn+Qn+Hn),this.internal.write("endstream"),this.internal.write("endobj")},Dn=function n(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Tn.addMetadata=function(Tn,Qn){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:Tn,namespaceuri:Qn||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Dn),this.internal.events.subscribe("postPutResources",Un)),this}}(g.API),function(Tn){var Un=Tn.API,Dn=Un.pdfEscape16=function(Tn,Un){for(var Dn,Qn=Un.metadata.Unicode.widths,Hn=["","0","00","000","0000"],Gn=[""],Vn=0,zn=Tn.length;Vn<zn;++Vn){if(Dn=Un.metadata.characterToGlyph(Tn.charCodeAt(Vn)),Un.metadata.glyIdsUsed.push(Dn),Un.metadata.toUnicode[Dn]=Tn.charCodeAt(Vn),-1==Qn.indexOf(Dn)&&(Qn.push(Dn),Qn.push([parseInt(Un.metadata.widthOfGlyph(Dn),10)])),"0"==Dn)return Gn.join("");Dn=Dn.toString(16),Gn.push(Hn[4-Dn.length],Dn)}return Gn.join("")},Qn=function r(Tn){var Un,Dn,r,Qn,Hn,Gn,Vn;for(Hn="/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=[],Gn=0,Vn=(Dn=Object.keys(Tn).sort((function(Tn,Un){return Tn-Un}))).length;Gn<Vn;Gn++)Un=Dn[Gn],r.length>=100&&(Hn+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==Tn[Un]&&null!==Tn[Un]&&"function"==typeof Tn[Un].toString&&(Qn=("0000"+Tn[Un].toString(16)).slice(-4),Un=("0000"+(+Un).toString(16)).slice(-4),r.push("<"+Un+"><"+Qn+">"));return r.length&&(Hn+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),Hn+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};Un.events.push(["putFont",function(Un){!function(Un){var Dn=Un.font,Hn=Un.out,Gn=Un.newObject,Vn=Un.putStream,zn=Un.pdfEscapeWithNeededParanthesis;if(Dn.metadata instanceof Tn.API.TTFFont&&"Identity-H"===Dn.encoding){for(var Kn=Dn.metadata.Unicode.widths,Wn=Dn.metadata.subset.encode(Dn.metadata.glyIdsUsed,1),$n="",Xn=0;Xn<Wn.length;Xn++)$n+=String.fromCharCode(Wn[Xn]);var Yn=Gn();Vn({data:$n,addLength1:!0}),Hn("endobj");var Jn=Gn();Vn({data:Qn(Dn.metadata.toUnicode),addLength1:!0}),Hn("endobj");var Zn=Gn();Hn("<<"),Hn("/Type /FontDescriptor"),Hn("/FontName /"+zn(Dn.fontName)),Hn("/FontFile2 "+Yn+" 0 R"),Hn("/FontBBox "+Tn.API.PDFObject.convert(Dn.metadata.bbox)),Hn("/Flags "+Dn.metadata.flags),Hn("/StemV "+Dn.metadata.stemV),Hn("/ItalicAngle "+Dn.metadata.italicAngle),Hn("/Ascent "+Dn.metadata.ascender),Hn("/Descent "+Dn.metadata.decender),Hn("/CapHeight "+Dn.metadata.capHeight),Hn(">>"),Hn("endobj");var er=Gn();Hn("<<"),Hn("/Type /Font"),Hn("/BaseFont /"+zn(Dn.fontName)),Hn("/FontDescriptor "+Zn+" 0 R"),Hn("/W "+Tn.API.PDFObject.convert(Kn)),Hn("/CIDToGIDMap /Identity"),Hn("/DW 1000"),Hn("/Subtype /CIDFontType2"),Hn("/CIDSystemInfo"),Hn("<<"),Hn("/Supplement 0"),Hn("/Registry (Adobe)"),Hn("/Ordering ("+Dn.encoding+")"),Hn(">>"),Hn(">>"),Hn("endobj"),Dn.objectNumber=Gn(),Hn("<<"),Hn("/Type /Font"),Hn("/Subtype /Type0"),Hn("/ToUnicode "+Jn+" 0 R"),Hn("/BaseFont /"+zn(Dn.fontName)),Hn("/Encoding /"+Dn.encoding),Hn("/DescendantFonts ["+er+" 0 R]"),Hn(">>"),Hn("endobj"),Dn.i
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn){var Un=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};Tn.existsFileInVFS=function(Tn){return Un.call(this),void 0!==this.internal.vFS[Tn]},Tn.addFileToVFS=function(Tn,Dn){return Un.call(this),this.internal.vFS[Tn]=Dn,this},Tn.getFileFromVFS=function(Tn){return Un.call(this),void 0!==this.internal.vFS[Tn]?this.internal.vFS[Tn]:null}}(g.API),
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
* MIT License
*/
function(Tn){Tn.__bidiEngine__=Tn.prototype.__bidiEngine__=function(Tn){var Dn,Qn,Hn,Gn,Vn,zn,Kn,Wn=Un,$n=[[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]],Xn=[[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]],Yn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Jn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Zn=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","","","","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],er=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)$/),tr=!1,nr=0;this.__bidiEngine__={};var rr=function b(Tn){var Un=Tn.charCodeAt(),Dn=Un>>8,Qn=Jn[Dn];return void 0!==Qn?Wn[256*Qn+(255&Un)]:252===Dn||253===Dn?"AL":er.test(Dn)?"L":8===Dn?"R":"N"},ir=function y(Tn){for(var Un,Dn=0;Dn<Tn.length;Dn++){if("L"===(Un=rr(Tn.charAt(Dn))))return!1;if("R"===Un)return!0}return!1},or=function w(Tn,Un,Vn,zn){var Kn,Wn,$n,Xn,Yn=Un[zn];switch(Yn){case"L":case"R":tr=!1;break;case"N":case"AN":break;case"EN":tr&&(Yn="AN");break;case"AL":tr=!0,Yn="R";break;case"WS":Yn="N";break;case"CS":zn<1||zn+1>=Un.length||"EN"!==(Kn=Vn[zn-1])&&"AN"!==Kn||"EN"!==(Wn=Un[zn+1])&&"AN"!==Wn?Yn="N":tr&&(Wn="AN"),Yn=Wn===Kn?Wn:"N";break;case"ES":Yn="EN"===(Kn=zn>0?Vn[zn-1]:"B")&&zn+1<Un.length&&"EN"===Un[zn+1]?"EN":"N";break;case"ET":if(zn>0&&"EN"===Vn[zn-1]){Yn="EN";break}if(tr){Yn="N";break}for($n=zn+1,Xn=Un.length;$n<Xn&&"ET"===Un[$n];)$n++;Yn=$n<Xn&&"EN"===Un[$n]?"EN":"N";break;case"NSM":if(Hn&&!Gn){for(Xn=Un.length,$n=zn+1;$n<Xn&&"NSM"===Un[$n];)$n++;if($n<Xn){var Jn=Tn[zn],Zn=Jn>=1425&&Jn<=2303||64286===Jn;if(Kn=Un[$n],Zn&&("R"===Kn||"AL"===Kn)){Yn="R";break}}}Yn=zn<1||"B"===(Kn=Un[zn-1])?"N":Vn[zn-1];break;case"B":tr=!1,Dn=!0,Yn=nr;break;case"S":Qn=!0,Yn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":tr=!1;break;case"BN":Yn="N"}return Yn},ar=function N(Tn,Un,Dn){var Qn=Tn.split("");return Dn&&sr(Qn,Dn,{hiLevel:nr}),Qn.reverse(),Un&&Un.reverse(),Qn.join("")},sr=function L(Tn,Un,Hn){var Gn,Vn,zn,Kn,Wn,Jn=-1,Zn=Tn.length,er=0,ir=[],ar=nr?Xn:$n,L=[];for(tr=!1,Dn=!1,Qn=!1,Vn=0;Vn<Zn;Vn++)L[Vn]=rr(Tn[Vn]);for(zn=0;zn<Zn;zn++){if(Wn=er,ir[zn]=or(Tn,L,ir,zn),Gn=240&(er=ar[Wn][Yn[ir[zn]]]),er&=15,Un[zn]=Kn=ar[er][5],Gn>0)if(16===Gn){for(Vn=Jn;Vn<zn;Vn++)Un[Vn]=1;Jn=-1}else Jn=-1;if(ar[er][6])-1===Jn&&(Jn=zn);else if(Jn>-1){for(Vn=Jn;Vn<zn;Vn++)Un[Vn]=Kn;Jn=-1}"B"===L[zn]&&(Un[zn]=0),Hn.hiLevel|=Kn}Qn&&function(Tn,Un,Dn){for(var Qn=0;Qn<Dn;Qn++)if("S"===Tn[Qn]){Un[Qn]=nr;for(var Hn=Qn-1;Hn>=0&&"WS"===Tn[Hn];Hn--)Un[Hn]=nr}}(L,Un,Zn)},lr=function x(Tn,Un,Qn,Hn,Gn){if(!(Gn.hiLevel<Tn)){if(1===Tn&&1===nr&&!Dn)return Un.reverse(),void(Qn&&Qn.reverse());for(var Vn,zn,Kn,Wn,$n=Un.length,Xn=0;Xn<$n;){if(Hn[Xn]>=Tn){for(Kn=Xn+1;Kn<$n&&Hn[Kn]>=Tn;)Kn++;for(Wn=Xn,zn=Kn-1;Wn<zn;Wn++,zn--)Vn=Un[Wn],Un[Wn]=Un[zn],Un[zn]=Vn,Qn&&(Vn=Qn[Wn],Qn[Wn]=Qn[zn],Qn[zn]=Vn);Xn=Kn}Xn++}}},cr=function A(Tn,Un,Dn){var Qn=Tn.split(""),Hn={hiLevel:nr};return Dn||(Dn=[]),sr(Qn,Dn,Hn),function(Tn,Un,Dn){if(0!==Dn.hiLevel&&Kn)for(var Qn,Hn=0;Hn<Tn.length;Hn++)1===Un[Hn]&&(Qn=Zn.indexOf(Tn[Hn]))>=0&&(Tn[Hn]=Zn[Qn+1])}(Qn,Dn,Hn),lr(2,Qn,Un,Dn,Hn),lr(1,Qn,Un,Dn,Hn),Qn.join("")};return this.__bidiEngine__.doBidiReorder=function(Tn,Un,Dn){if(function(Tn,Un){if(Un)for(var Dn=0;Dn<Tn.length;Dn++)Un[Dn]=Dn;void 0===Gn&&(Gn=ir(Tn)),void 0===zn&&(zn=ir(Tn))}(Tn,Un),Hn||!Vn||zn)if(Hn&&Vn&&Gn^zn)nr=Gn?1:0,Tn=ar(Tn,Un,Dn);else if(!Hn&&Vn&&zn)nr=Gn?1:0,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un);else if(!Hn||Gn||Vn||zn){if(Hn&&!Vn&&Gn^zn)Tn=ar(Tn,Un),Gn?(nr=0,Tn=cr(Tn,Un,Dn)):(nr=1,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un));else if(Hn&&Gn&&!Vn&&zn)nr=1,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un);else if(!Hn&&!Vn&&Gn^zn){var Qn=Kn;Gn?(nr=1,Tn=cr(Tn,Un,Dn),nr=0,Kn=!1,Tn=cr(Tn,Un,Dn),Kn=Qn):(nr=0,Tn=cr(Tn,Un,Dn),Tn=ar(Tn,Un),nr=1,Kn=!1,Tn=cr(Tn,Un,Dn),Kn=Qn,Tn=ar(Tn,Un))}}else nr=0,Tn=cr(Tn,Un,Dn);else nr=Gn?1:0,Tn=cr(Tn,Un,Dn);return Tn},this.__bidiEngine__.setOptions=function(Tn){Tn&&(
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* @license
* Copyright (c) 2012 chick307 <chick307@gmail.com>
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(Tn,Un){Tn.API.adler32cs=function(){var Tn,Un,Dn,Qn,Hn,Gn="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,Vn=null,zn=function(){if(!Gn)return function(){return!1};try{var Tn={};"function"==typeof Tn.Buffer&&(Vn=Tn.Buffer)}catch(Tn){}return function(Tn){return Tn instanceof ArrayBuffer||null!==Vn&&Tn instanceof Vn}}(),Kn=null!==Vn?function(Tn){return new Vn(Tn,"utf8").toString("binary")}:function(Tn){return unescape(encodeURIComponent(Tn))},Wn=function i(Tn,Un){for(var Dn=65535&Tn,Qn=Tn>>>16,i=0,Hn=Un.length;i<Hn;i++)Qn=(Qn+(Dn=(Dn+(255&Un.charCodeAt(i)))%65521))%65521;return(Qn<<16|Dn)>>>0},$n=function a(Tn,Un){for(var Dn=65535&Tn,Qn=Tn>>>16,Hn=0,a=Un.length;Hn<a;Hn++)Qn=(Qn+(Dn=(Dn+Un[Hn])%65521))%65521;return(Qn<<16|Dn)>>>0},Xn={},Yn=Xn.Adler32=((Hn=(Qn=function l(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(Tn=null===Tn?1:+Tn))throw new Error("First arguments needs to be a finite number.");this.checksum=Tn>>>0}).prototype={}).constructor=Qn,Qn.from=((Tn=function u(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(null===Tn)throw new Error("First argument needs to be a string.");this.checksum=Wn(1,Tn.toString())}).prototype=Hn,Tn),Qn.fromUtf8=((Un=function c(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());this.checksum=Wn(1,Un)}).prototype=Hn,Un),Gn&&(Qn.fromBuffer=((Dn=function h(Tn){if(!(this instanceof Qn))throw new TypeError("Constructor cannot called be as a function.");if(!zn(Tn))throw new Error("First argument needs to be ArrayBuffer.");var Un=new Uint8Array(Tn);return this.checksum=$n(1,Un)}).prototype=Hn,Dn)),Hn.update=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");return Tn=Tn.toString(),this.checksum=Wn(this.checksum,Tn)},Hn.updateUtf8=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());return this.checksum=Wn(this.checksum,Un)},Gn&&(Hn.updateBuffer=function(Tn){if(!zn(Tn))throw new Error("First argument needs to be ArrayBuffer.");var Un=new Uint8Array(Tn);return this.checksum=$n(this.checksum,Un)}),Hn.clone=function(){return new Yn(this.checksum)},Qn);return Xn.from=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");return Wn(1,Tn.toString())},Xn.fromUtf8=function(Tn){if(null===Tn)throw new Error("First argument needs to be a string.");var Un=Kn(Tn.toString());return Wn(1,Un)},Gn&&(Xn.fromBuffer=function(Tn){if(!zn(Tn))throw new Error("First argument need to be ArrayBuffer.");var Un=new Uint8Array(Tn);return $n(1,Un)}),Xn}()}(g),_export({target:"Array",proto:!0,forced:Yy!==[].lastIndexOf},{lastIndexOf:Yy}),_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(Tn){return createHtml(this,"a","name",Tn)}});
2020-09-04 20:34:30 +00:00
/*! https://mths.be/cssesc v3.0.0 by @mathias */
var VU={}.hasOwnProperty,zU=/[ -,\.\/:-@\[-\^`\{-~]/,KU=/[ -,\.\/:-@\[\]\^`\{-~]/,qU=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,WU=function cssesc(Tn,Un){"single"!=(Un=function merge(Tn,Un){if(!Tn)return Un;var Dn={};for(var Qn in Un)Dn[Qn]=VU.call(Tn,Qn)?Tn[Qn]:Un[Qn];return Dn}(Un,cssesc.options)).quotes&&"double"!=Un.quotes&&(Un.quotes="single");for(var Dn="double"==Un.quotes?'"':"'",Qn=Un.isIdentifier,Hn=Tn.charAt(0),Gn="",Vn=0,zn=Tn.length;Vn<zn;){var Kn=Tn.charAt(Vn++),Wn=Kn.charCodeAt(),$n=void 0;if(Wn<32||Wn>126){if(Wn>=55296&&Wn<=56319&&Vn<zn){var Xn=Tn.charCodeAt(Vn++);56320==(64512&Xn)?Wn=((1023&Wn)<<10)+(1023&Xn)+65536:Vn--}$n="\\"+Wn.toString(16).toUpperCase()+" "}else $n=Un.escapeEverything?zU.test(Kn)?"\\"+Kn:"\\"+Wn.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(Kn)?"\\"+Wn.toString(16).toUpperCase()+" ":"\\"==Kn||!Qn&&('"'==Kn&&Dn==Kn||"'"==Kn&&Dn==Kn)||Qn&&KU.test(Kn)?"\\"+Kn:Kn;Gn+=$n}return Qn&&(/^-[-\d]/.test(Gn)?Gn="\\-"+Gn.slice(1):/\d/.test(Hn)&&(Gn="\\3"+Hn+" "+Gn.slice(1))),Gn=Gn.replace(qU,(function(Tn,Un,Dn){return Un&&Un.length%2?Tn:(Un||"")+Dn})),!Qn&&Un.wrap?Dn+Gn+Dn:Gn};WU.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},WU.version="3.0.0";var $U=WU,XU=/[a-z0-9_-]/i,YU=/[\s\t]/,JU=function parse(Tn){for(var Un,Dn,Qn=!0,Hn=0,Gn="",Vn=0,zn=[];;){if(Dn=Tn[Vn],0===Hn){if(!Dn&&Qn)break;if(!Dn&&!Qn)throw new Error("Parse error");if('"'===Dn||"'"===Dn)Un=Dn,Hn=1,Qn=!1;else if(YU.test(Dn));else{if(!XU.test(Dn))throw new Error("Parse error");Hn=3,Qn=!1,Vn--}}else if(1===Hn){if(!Dn)throw new Error("Parse Error");"\\"===Dn?Hn=2:Dn===Un?(zn.push(Gn),Gn="",Hn=4):Gn+=Dn}else if(2===Hn){if(Dn!==Un&&"\\"!==Dn)throw new Error("Parse error");Gn+=Dn,Hn=1}else if(3===Hn){if(!Dn){zn.push(Gn);break}if(XU.test(Dn))Gn+=Dn;else if(","===Dn)zn.push(Gn),Gn="",Hn=0;else{if(!YU.test(Dn))throw new Error("Parse error");Hn=5}}else if(5===Hn){if(!Dn){zn.push(Gn);break}if(XU.test(Dn))Gn+=" "+Dn,Hn=3;else if(","===Dn)zn.push(Gn),Gn="",Hn=0;else if(!YU.test(Dn))throw new Error("Parse error")}else if(4===Hn){if(!Dn)break;if(","===Dn)Hn=0;else if(!YU.test(Dn))throw new Error("Parse error")}Vn++}return zn},ZU={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},eR=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(Tn){return Tn>=48&&Tn<=57}function State(Tn){this.index=0,this.path=Tn,this.max=Tn.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(Tn){for(;Tn.index<Tn.max&&(10===(Un=Tn.path.charCodeAt(Tn.index))||13===Un||8232===Un||8233===Un||32===Un||9===Un||11===Un||12===Un||160===Un||Un>=5760&&eR.indexOf(Un)>=0);)Tn.index++;var Un}function scanFlag(Tn){var Un=Tn.path.charCodeAt(Tn.index);return 48===Un?(Tn.param=0,void Tn.index++):49===Un?(Tn.param=1,void Tn.index++):void(Tn.err="SvgPath: arc flag can be 0 or 1 only (at pos "+Tn.index+")")}function scanParam(Tn){var Un,Dn=Tn.index,Qn=Dn,Hn=Tn.max,Gn=!1,Vn=!1,zn=!1,Kn=!1;if(Qn>=Hn)Tn.err="SvgPath: missed param (at pos "+Qn+")";else if(43!==(Un=Tn.path.charCodeAt(Qn))&&45!==Un||(Un=++Qn<Hn?Tn.path.charCodeAt(Qn):0),isDigit(Un)||46===Un){if(46!==Un){if(Gn=48===Un,Un=++Qn<Hn?Tn.path.charCodeAt(Qn):0,Gn&&Qn<Hn&&Un&&isDigit(Un))return void(Tn.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+Dn+")");for(;Qn<Hn&&isDigit(Tn.path.charCodeAt(Qn));)Qn++,Vn=!0;Un=Qn<Hn?Tn.path.charCodeAt(Qn):0}if(46===Un){for(Kn=!0,Qn++;isDigit(Tn.path.charCodeAt(Qn));)Qn++,zn=!0;Un=Qn<Hn?Tn.path.charCodeAt(Qn):0}if(101===Un||69===Un){if(Kn&&!Vn&&!zn)return void(Tn.err="SvgPath: invalid float exponent (at pos "+Qn+")");if(43!==(Un=++Qn<Hn?Tn.path.charCodeAt(Qn):0)&&45!==Un||Qn++,!(Qn<Hn&&isDigit(Tn.path.charCodeAt(Qn))))return void(Tn.err="SvgPath: invalid float exponent (at pos "+Qn+")");for(;Qn<Hn&&isDigit(Tn.path.charCodeAt(Qn));)Qn++}Tn.index=Qn,Tn.param=parseFloat(Tn.path.slice(Dn,Qn))+0}else Tn.err="SvgPath: param should start with 0..9 or `.` (at pos "+Qn+")"}function finalizeSegment(Tn){var Un,Dn;Dn=(Un=Tn.path[Tn.segmentStart]).toLowerCase(
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +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?
*/
var XD="http://www.w3.org/2000/svg",YD="http://www.w3.org/1999/xlink";
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +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/}
*/
function toFixedNumeric(Tn,Un){return void 0===Un&&(Un=0),Math.round(Tn*Math.pow(10,Un))/Math.pow(10,Un)}window.console||(window.console={log:function log(Tn){},dir:function dir(Tn){}});var JD,ZD=function isNullish(Tn){return null==Tn},ej=createCommonjsModule((function(Tn,Un){Tn.exports=function(){var Tn={true:!0,false:!1,null:null};function deparam(Un,Dn){var Qn={};return Un.replace(/\+/g," ").split("&").forEach((function(Un){var Hn=Un.split("="),Gn=decodeURIComponent(Hn[0]),Vn=Gn.split("]["),zn=Vn.length-1;if(/\[/.test(Vn[0])&&/\]$/.test(Vn[zn])?(Vn[zn]=Vn[zn].replace(/\]$/,""),zn=(Vn=Vn.shift().split("[").concat(Vn)).length-1):zn=0,Hn.length>=2){var Kn=decodeURIComponent(Hn.slice(1).join("="));if(Dn&&(Kn=Kn&&!isNaN(Kn)?+Kn:"undefined"===Kn?void 0:void 0!==Tn[Kn]?Tn[Kn]:Kn),zn)for(var Wn=Qn,$n=0;$n<=zn;$n++)Wn=Wn[Gn=""===Vn[$n]?Wn.length:Vn[$n]]=$n<zn?Wn[Gn]||(Vn[$n+1]&&isNaN(Vn[$n+1])?{}:[]):Kn;else Array.isArray(Qn[Gn])?Qn[Gn].push(Kn):void 0!==Qn[Gn]?Qn[Gn]=[Qn[Gn],Kn]:Qn[Gn]=Kn}else Gn&&(Qn[Gn]=Dn?void 0:"")})),Qn}return deparam}()})),tj=function(){function ConfigObj(Tn){_classCallCheck(this,ConfigObj),this.defaultPrefs={lang:"",iconsize:"",bkgd_color:"#FFF",bkgd_url:"",img_save:"embed",save_notice_done:!1,export_notice_done:!1},this.defaultConfig={canvasName:"default",canvas_expansion:3,initFill:{color:"FF0000",opacity:1},initStroke:{width:5,color:"000000",opacity:1},text:{stroke_width:0,font_size:24,font_family:"serif"},initOpacity:1,colorPickerCSS:null,initTool:"select",exportWindowType:"new",wireframe:!1,showlayers:!1,no_save_warning:!1,imgPath:"./images/",dimensions:[640,480],gridSnapping:!1,gridColor:"#000",baseUnit:"px",snappingStep:10,showRulers:!0,preventAllURLConfig:!1,preventURLContentLoading:!1,lockExtensions:!1,noDefaultExtensions:!1,showGrid:!1,noStorageOnLoad:!1,forceStorage:!1,emptyStorageOnDecline:!1,avoidClientSide:!1,avoidClientSideDownload:!1,avoidClientSideOpen:!1},this.curPrefs={},this.curConfig={extensions:[],userExtensions:[],allowedOrigins:[]},this.urldata={},this.defaultExtensions=["ext-connector","ext-eyedropper","ext-grid","ext-imagelib","ext-markers","ext-overview_window","ext-panning","ext-polygon","ext-shapes","ext-star","ext-storage"],this.editor=Tn}return _createClass(ConfigObj,[{key:"setupCurPrefs",value:function setupCurPrefs(){var Tn=_objectSpread2(_objectSpread2({},this.defaultPrefs),this.curPrefs);this.curPrefs=Tn}},{key:"setupCurConfig",value:function setupCurConfig(){var Tn=_objectSpread2(_objectSpread2({},this.defaultConfig),this.curConfig);Tn.noDefaultExtensions||(Tn.extensions=Tn.extensions.concat(this.defaultExtensions)),["extensions","allowedOrigins"].forEach((function(Un){Tn[Un]=$.grep(Tn[Un],(function(Dn,Qn){return Qn===Tn[Un].indexOf(Dn)}))})),this.curConfig=Tn}},{key:"loadFromURL",value:function loadFromURL(){var Tn=this,Un=new URL(location),Dn=Un.search,Qn=Un.searchParams;if(Dn){if(this.urldata=ej(Qn.toString(),!0),["initStroke","initFill"].forEach((function(Un){Qn.has("".concat(Un,"[color]"))&&(Tn.urldata[Un].color=Qn.get("".concat(Un,"[color]")))})),Qn.has("bkgd_color")&&(this.urldata.bkgd_color="#"+Qn.get("bkgd_color")),this.urldata.dimensions&&(this.urldata.dimensions=this.urldata.dimensions.split(",")),this.urldata.extensions&&(this.urldata.extensions=this.urldata.extensions.match(/[:/\\]/)?"":this.urldata.extensions.split(",")),["userExtensions","imgPath"].forEach((function(Tn){this.urldata[Tn]&&delete this.urldata[Tn]})),this.setConfig(this.urldata,{overwrite:!1}),this.setupCurConfig(),!this.curConfig.preventURLContentLoading){var Hn=this.urldata.source;if(!Hn){var Gn=Qn.get("source");Gn&&Gn.startsWith("data:")&&(Hn=Gn)}if(Hn)return void(Hn.startsWith("data:")?this.editor.loadFromDataURI(Hn):this.editor.loadFromString(Hn));if(this.urldata.url)return void this.editor.loadFromURL(this.urldata.url)}this.urldata.noStorageOnLoad&&!this.curConfig.forceStorage||this.loadContentAndPrefs()}else this.setupCurConfig(),this.loadContentAndPrefs()}},{key:"loadContentAndPrefs",value:function loadContentAndPrefs(){var Tn=this;if(this.curConfig.forceStorage||!this.curConfig.
2020-09-04 20:34:30 +00:00
/**
2020-09-08 23:35:47 +00:00
* Localizing script for SVG-edit UI.
* @module locale
* @license MIT
*
* @copyright 2010 Narendra Sisodya
* @copyright 2010 Alexis Deveria
*
*/_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHtml(this,"b","","")}});var rj,ij=function setStrings(Tn,Un,Dn){var Qn=document.getElementById("svg_editor").parentNode;Object.entries(Un).forEach((function(Un){var Hn=_slicedToArray(Un,2),Gn=Hn[0],Vn=Hn[1];if(Vn){Dn&&(Gn="#"+Gn);var zn=Qn.querySelectorAll(Gn);if(zn.length){var Kn=zn[0];switch(Tn){case"aria-label":Kn.setAttribute("aria-label",Vn);break;case"content":_toConsumableArray(zn).some((function(Tn){return!(3!==Tn.nodeType||!Tn.textContent.trim())&&(Tn.textContent=Vn,!0)}));break;case"title":Kn.setAttribute("title",Vn)}}else console.log("Missing element for localization: "+Gn)}else console.log(Gn)}))},oj=function readLang(Tn){var Un=Tn.tools,Dn=Tn.properties,Qn=Tn.config,Hn=Tn.layers,Gn=Tn.common,Vn=Tn.ui;ij("content",{curve_segments:Dn.curve_segments,fitToContent:Un.fitToContent,fit_to_all:Un.fit_to_all,fit_to_canvas:Un.fit_to_canvas,fit_to_layer_content:Un.fit_to_layer_content,fit_to_sel:Un.fit_to_sel,icon_large:Qn.icon_large,icon_medium:Qn.icon_medium,icon_small:Qn.icon_small,icon_xlarge:Qn.icon_xlarge,image_opt_embed:Qn.image_opt_embed,image_opt_ref:Qn.image_opt_ref,includedImages:Qn.included_images,largest_object:Un.largest_object,layersLabel:Hn.layers,page:Un.page,relativeToLabel:Un.relativeTo,selLayerLabel:Hn.move_elems_to,selectedPredefined:Qn.select_predefined,selected_objects:Un.selected_objects,smallest_object:Un.smallest_object,straight_segments:Dn.straight_segments,svginfo_bg_url:Qn.editor_img_url+":",svginfo_bg_note:Qn.editor_bg_note,svginfo_change_background:Qn.background,svginfo_dim:Qn.doc_dims,svginfo_editor_prefs:Qn.editor_prefs,svginfo_height:Gn.height,svginfo_icons:Qn.icon_size,svginfo_image_props:Qn.image_props,svginfo_lang:Qn.language,svginfo_title:Qn.doc_title,svginfo_width:Gn.width,tool_docprops_cancel:Gn.cancel,tool_docprops_save:Gn.ok,tool_source_cancel:Gn.cancel,tool_source_save:Gn.ok,tool_prefs_cancel:Gn.cancel,tool_prefs_save:Gn.ok,sidepanel_handle:Hn.layers.split("").join(" "),tool_clear:Un.new_doc,tool_docprops:Un.docprops,tool_export:Un.export_img,tool_import:Un.import_doc,tool_open:Un.open_doc,tool_save:Un.save_doc,tool_editor_prefs:Qn.editor_prefs,tool_editor_homepage:Un.editor_homepage,svginfo_units_rulers:Qn.units_and_rulers,svginfo_rulers_onoff:Qn.show_rulers,svginfo_unit:Qn.base_unit,svginfo_grid_settings:Qn.grid,svginfo_snap_onoff:Qn.snapping_onoff,svginfo_snap_step:Qn.snapping_stepsize,svginfo_grid_color:Qn.grid_color},!0);var zn={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(Tn){zn['#cmenu_canvas a[href="#'+Tn+'"]']=Un[Tn]})),["dupe","merge_down","merge_all"].forEach((function(Tn){zn['#cmenu_layers a[href="#'+Tn+'"]']=Hn[Tn]})),zn['#cmenu_layers a[href="#delete"]']=Hn.del,ij("content",zn);var Kn={};return Object.entries({tool_blur:Dn.blur,tool_position:Un.align_to_page,tool_font_family:Dn.font_family,zoom_panel:Vn.zoom_level,stroke_linejoin:Dn.linejoin_miter,stroke_linecap:Dn.linecap_butt,tool_opacity:Dn.opacity}).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1];Kn["#"+Dn+" button"]=Qn})),Object.entries({group_opacity:Dn.opacity,zoom:Vn.zoom_level}).forEach((function(Tn){var Un=_slicedToArray(Tn,2),Dn=Un[0],Qn=Un[1];Kn["#"+Dn]=Qn})),ij("aria-label",Kn),ij("title",{align_relative_to:Un.align_relative_to,circle_cx:Dn.circle_cx,circle_cy:Dn.circle_cy,circle_r:Dn.circle_r,cornerRadiusLabel:Dn.corner_radius,ellipse_cx:Dn.ellipse_cx,ellipse_cy:Dn.ellipse_cy,ellipse_rx:Dn.ellipse_rx,ellipse_ry:Dn.ellipse_ry,fill_color:Dn.fill_color,font_family:Dn.font_family,idLabel:Dn.id,image_height:Dn.image_height,image_url:Dn.image_url,image_width:Dn.image_width,layer_delete:Hn.del,layer_down:Hn.move_down,layer_new:Hn.new,layer_rename:Hn.rename,layer_moreopts:Gn.more_opts,layer_up:Hn.move_up,line_x1:Dn.line_x1,line_x2:Dn.line_x2,line_y1:Dn.line_y1,line_y2:Dn.line_y2,linecap_butt:Dn.linecap_butt,linecap_round:Dn.linecap_round,linecap_square:Dn.linecap_square,linejoin_bevel:Dn.linej
2020-09-04 20:34:30 +00:00
/*! *****************************************************************************
2020-09-08 23:35:47 +00:00
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.
***************************************************************************** */
var Tn=function extendStatics(Un,Dn){return(Tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tn,Un){Tn.__proto__=Un}||function(Tn,Un){for(var Dn in Un)Un.hasOwnProperty(Dn)&&(Tn[Dn]=Un[Dn])})(Un,Dn)};function __extends(Un,Dn){function __(){this.constructor=Un}Tn(Un,Dn),Un.prototype=null===Dn?Object.create(Dn):(__.prototype=Dn.prototype,new __)}var Un=function __assign(){return(Un=Object.assign||function __assign(Tn){for(var Un,Dn=1,Qn=arguments.length;Dn<Qn;Dn++)for(var Hn in Un=arguments[Dn])Object.prototype.hasOwnProperty.call(Un,Hn)&&(Tn[Hn]=Un[Hn]);return Tn}).apply(this,arguments)};function __awaiter(Tn,Un,Dn,Qn){return new(Dn||(Dn=Promise))((function(Hn,Gn){function fulfilled(Tn){try{step(Qn.next(Tn))}catch(Tn){Gn(Tn)}}function rejected(Tn){try{step(Qn.throw(Tn))}catch(Tn){Gn(Tn)}}function step(Tn){Tn.done?Hn(Tn.value):new Dn((function(Un){Un(Tn.value)})).then(fulfilled,rejected)}step((Qn=Qn.apply(Tn,Un||[])).next())}))}function __generator(Tn,Un){var Dn,Qn,Hn,Gn,Vn={label:0,sent:function sent(){if(1&Hn[0])throw Hn[1];return Hn[1]},trys:[],ops:[]};return Gn={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(Gn[Symbol.iterator]=function(){return this}),Gn;function verb(Tn){return function(Un){return step([Tn,Un])}}function step(Gn){if(Dn)throw new TypeError("Generator is already executing.");for(;Vn;)try{if(Dn=1,Qn&&(Hn=2&Gn[0]?Qn.return:Gn[0]?Qn.throw||((Hn=Qn.return)&&Hn.call(Qn),0):Qn.next)&&!(Hn=Hn.call(Qn,Gn[1])).done)return Hn;switch(Qn=0,Hn&&(Gn=[2&Gn[0],Hn.value]),Gn[0]){case 0:case 1:Hn=Gn;break;case 4:return Vn.label++,{value:Gn[1],done:!1};case 5:Vn.label++,Qn=Gn[1],Gn=[0];continue;case 7:Gn=Vn.ops.pop(),Vn.trys.pop();continue;default:if(!((Hn=(Hn=Vn.trys).length>0&&Hn[Hn.length-1])||6!==Gn[0]&&2!==Gn[0])){Vn=0;continue}if(3===Gn[0]&&(!Hn||Gn[1]>Hn[0]&&Gn[1]<Hn[3])){Vn.label=Gn[1];break}if(6===Gn[0]&&Vn.label<Hn[1]){Vn.label=Hn[1],Hn=Gn;break}if(Hn&&Vn.label<Hn[2]){Vn.label=Hn[2],Vn.ops.push(Gn);break}Hn[2]&&Vn.ops.pop(),Vn.trys.pop();continue}Gn=Un.call(Tn,Vn)}catch(Tn){Gn=[6,Tn],Qn=0}finally{Dn=Hn=0}if(5&Gn[0])throw Gn[1];return{value:Gn[0]?Gn[1]:void 0,done:!0}}}for(var Dn=function(){function Bounds(Tn,Un,Dn,Qn){this.left=Tn,this.top=Un,this.width=Dn,this.height=Qn}return Bounds.prototype.add=function(Tn,Un,Dn,Qn){return new Bounds(this.left+Tn,this.top+Un,this.width+Dn,this.height+Qn)},Bounds.fromClientRect=function(Tn){return new Bounds(Tn.left,Tn.top,Tn.width,Tn.height)},Bounds}(),Qn=function parseBounds(Tn){return Dn.fromClientRect(Tn.getBoundingClientRect())},Hn=function parseDocumentSize(Tn){var Un=Tn.body,Qn=Tn.documentElement;if(!Un||!Qn)throw new Error("Unable to get document size");var Hn=Math.max(Math.max(Un.scrollWidth,Qn.scrollWidth),Math.max(Un.offsetWidth,Qn.offsetWidth),Math.max(Un.clientWidth,Qn.clientWidth)),Gn=Math.max(Math.max(Un.scrollHeight,Qn.scrollHeight),Math.max(Un.offsetHeight,Qn.offsetHeight),Math.max(Un.clientHeight,Qn.clientHeight));return new Dn(0,0,Hn,Gn)},Gn=function toCodePoints(Tn){for(var Un=[],Dn=0,Qn=Tn.length;Dn<Qn;){var Hn=Tn.charCodeAt(Dn++);if(Hn>=55296&&Hn<=56319&&Dn<Qn){var Gn=Tn.charCodeAt(Dn++);56320==(64512&Gn)?Un.push(((1023&Hn)<<10)+(1023&Gn)+65536):(Un.push(Hn),Dn--)}else Un.push(Hn)}return Un},Vn=function fromCodePoint(){for(var Tn=[],Un=0;Un<arguments.length;Un++)Tn[Un]=arguments[Un];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Tn);var Dn=Tn.length;if(!Dn)return"";for(var Qn=[],Hn=-1,Gn="";++Hn<Dn;){var Vn=Tn[Hn];Vn<=65535?Qn.push(Vn):(Vn-=65536,Qn.push(55296+(Vn>>10),Vn%1024+56320)),(Hn+1===Dn||Qn.length>16384)&&(Gn+=String.fromCharCode.apply(String,Qn),Qn.length=0)}return Gn},zn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Wn=0;Wn<zn.length;Wn++)Kn[zn.charCodeAt(Wn)]=Wn;var $n,Xn=function decode(Tn){var Un,Dn,Qn,Hn,Gn,Vn=.75*Tn.length,zn=Tn.length,Wn=0;"="===Tn[Tn.length-1]&&(Vn--,"="===Tn[Tn.length-2]&&Vn--);var $n="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.sli