UNPKG

vue-hiprint

Version:

vue3版本hiprint支持跨域批量打印

1,641 lines 1.42 MB
(function(Be,St){typeof exports=="object"&&typeof module<"u"?module.exports=St(require("vue")):typeof define=="function"&&define.amd?define(["vue"],St):(Be=typeof globalThis<"u"?globalThis:Be||self,Be.PrintDesign=St(Be.Vue))})(this,function(vue){"use strict";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(Be){return Be&&Be.__esModule&&Object.prototype.hasOwnProperty.call(Be,"default")?Be.default:Be}var jquery={exports:{}};/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */var hasRequiredJquery;function requireJquery(){return hasRequiredJquery||(hasRequiredJquery=1,function(Be){(function(St,Ae){Be.exports=St.document?Ae(St,!0):function(Ee){if(!Ee.document)throw new Error("jQuery requires a window with a document");return Ae(Ee)}})(typeof window<"u"?window:commonjsGlobal,function(St,Ae){var Ee=[],Ce=Object.getPrototypeOf,_e=Ee.slice,Te=Ee.flat?function(Pe){return Ee.flat.call(Pe)}:function(Pe){return Ee.concat.apply([],Pe)},Se=Ee.push,xe=Ee.indexOf,Ie={},Ue=Ie.toString,$e=Ie.hasOwnProperty,Me=$e.toString,Re=Me.call(Object),ze={},Ve=function(Qe){return typeof Qe=="function"&&typeof Qe.nodeType!="number"&&typeof Qe.item!="function"},nr=function(Qe){return Qe!=null&&Qe===Qe.window},Ze=St.document,ar={type:!0,src:!0,nonce:!0,noModule:!0};function fr(Pe,Qe,qe){qe=qe||Ze;var tr,ur,cr=qe.createElement("script");if(cr.text=Pe,Qe)for(tr in ar)ur=Qe[tr]||Qe.getAttribute&&Qe.getAttribute(tr),ur&&cr.setAttribute(tr,ur);qe.head.appendChild(cr).parentNode.removeChild(cr)}function Ye(Pe){return Pe==null?Pe+"":typeof Pe=="object"||typeof Pe=="function"?Ie[Ue.call(Pe)]||"object":typeof Pe}var Ar="3.6.0",Oe=function(Pe,Qe){return new Oe.fn.init(Pe,Qe)};Oe.fn=Oe.prototype={jquery:Ar,constructor:Oe,length:0,toArray:function(){return _e.call(this)},get:function(Pe){return Pe==null?_e.call(this):Pe<0?this[Pe+this.length]:this[Pe]},pushStack:function(Pe){var Qe=Oe.merge(this.constructor(),Pe);return Qe.prevObject=this,Qe},each:function(Pe){return Oe.each(this,Pe)},map:function(Pe){return this.pushStack(Oe.map(this,function(Qe,qe){return Pe.call(Qe,qe,Qe)}))},slice:function(){return this.pushStack(_e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Oe.grep(this,function(Pe,Qe){return(Qe+1)%2}))},odd:function(){return this.pushStack(Oe.grep(this,function(Pe,Qe){return Qe%2}))},eq:function(Pe){var Qe=this.length,qe=+Pe+(Pe<0?Qe:0);return this.pushStack(qe>=0&&qe<Qe?[this[qe]]:[])},end:function(){return this.prevObject||this.constructor()},push:Se,sort:Ee.sort,splice:Ee.splice},Oe.extend=Oe.fn.extend=function(){var Pe,Qe,qe,tr,ur,cr,Br=arguments[0]||{},Lr=1,Rr=arguments.length,tn=!1;for(typeof Br=="boolean"&&(tn=Br,Br=arguments[Lr]||{},Lr++),typeof Br!="object"&&!Ve(Br)&&(Br={}),Lr===Rr&&(Br=this,Lr--);Lr<Rr;Lr++)if((Pe=arguments[Lr])!=null)for(Qe in Pe)tr=Pe[Qe],!(Qe==="__proto__"||Br===tr)&&(tn&&tr&&(Oe.isPlainObject(tr)||(ur=Array.isArray(tr)))?(qe=Br[Qe],ur&&!Array.isArray(qe)?cr=[]:!ur&&!Oe.isPlainObject(qe)?cr={}:cr=qe,ur=!1,Br[Qe]=Oe.extend(tn,cr,tr)):tr!==void 0&&(Br[Qe]=tr));return Br},Oe.extend({expando:"jQuery"+(Ar+Math.random()).replace(/\D/g,""),isReady:!0,error:function(Pe){throw new Error(Pe)},noop:function(){},isPlainObject:function(Pe){var Qe,qe;return!Pe||Ue.call(Pe)!=="[object Object]"?!1:(Qe=Ce(Pe),Qe?(qe=$e.call(Qe,"constructor")&&Qe.constructor,typeof qe=="function"&&Me.call(qe)===Re):!0)},isEmptyObject:function(Pe){var Qe;for(Qe in Pe)return!1;return!0},globalEval:function(Pe,Qe,qe){fr(Pe,{nonce:Qe&&Qe.nonce},qe)},each:function(Pe,Qe){var qe,tr=0;if(Je(Pe))for(qe=Pe.length;tr<qe&&Qe.call(Pe[tr],tr,Pe[tr])!==!1;tr++);else for(tr in Pe)if(Qe.call(Pe[tr],tr,Pe[tr])===!1)break;return Pe},makeArray:function(Pe,Qe){var qe=Qe||[];return Pe!=null&&(Je(Object(Pe))?Oe.merge(qe,typeof Pe=="string"?[Pe]:Pe):Se.call(qe,Pe)),qe},inArray:function(Pe,Qe,qe){return Qe==null?-1:xe.call(Qe,Pe,qe)},merge:function(Pe,Qe){for(var qe=+Qe.length,tr=0,ur=Pe.length;tr<qe;tr++)Pe[ur++]=Qe[tr];return Pe.length=ur,Pe},grep:function(Pe,Qe,qe){for(var tr,ur=[],cr=0,Br=Pe.length,Lr=!qe;cr<Br;cr++)tr=!Qe(Pe[cr],cr),tr!==Lr&&ur.push(Pe[cr]);return ur},map:function(Pe,Qe,qe){var tr,ur,cr=0,Br=[];if(Je(Pe))for(tr=Pe.length;cr<tr;cr++)ur=Qe(Pe[cr],cr,qe),ur!=null&&Br.push(ur);else for(cr in Pe)ur=Qe(Pe[cr],cr,qe),ur!=null&&Br.push(ur);return Te(Br)},guid:1,support:ze}),typeof Symbol=="function"&&(Oe.fn[Symbol.iterator]=Ee[Symbol.iterator]),Oe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Pe,Qe){Ie["[object "+Qe+"]"]=Qe.toLowerCase()});function Je(Pe){var Qe=!!Pe&&"length"in Pe&&Pe.length,qe=Ye(Pe);return Ve(Pe)||nr(Pe)?!1:qe==="array"||Qe===0||typeof Qe=="number"&&Qe>0&&Qe-1 in Pe}var We=function(Pe){var Qe,qe,tr,ur,cr,Br,Lr,Rr,tn,cn,xn,un,vn,ii,di,ri,Wi,Yi,bA,Pi="sizzle"+1*new Date,fi=Pe.document,oA=0,bi=0,Di=wo(),He=wo(),hr=wo(),Fr=wo(),Mr=function(Cr,Ur){return Cr===Ur&&(xn=!0),0},rn={}.hasOwnProperty,hn=[],In=hn.pop,kn=hn.push,ni=hn.push,wi=hn.slice,vi=function(Cr,Ur){for(var Vr=0,mn=Cr.length;Vr<mn;Vr++)if(Cr[Vr]===Ur)return Vr;return-1},xi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",li="[\\x20\\t\\r\\n\\f]",Ri="(?:\\\\[\\da-fA-F]{1,6}"+li+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",eA="\\["+li+"*("+Ri+")(?:"+li+"*([*^$|!~]?=)"+li+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ri+"))|)"+li+"*\\]",aA=":("+Ri+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+eA+")*)|.*)\\)|)",sA=new RegExp(li+"+","g"),IA=new RegExp("^"+li+"+|((?:^|[^\\\\])(?:\\\\.)*)"+li+"+$","g"),UA=new RegExp("^"+li+"*,"+li+"*"),eo=new RegExp("^"+li+"*([>+~]|"+li+")"+li+"*"),Ea=new RegExp(li+"|>"),ua=new RegExp(aA),ca=new RegExp("^"+Ri+"$"),uo={ID:new RegExp("^#("+Ri+")"),CLASS:new RegExp("^\\.("+Ri+")"),TAG:new RegExp("^("+Ri+"|[*])"),ATTR:new RegExp("^"+eA),PSEUDO:new RegExp("^"+aA),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+li+"*(even|odd|(([+-]|)(\\d*)n|)"+li+"*(?:([+-]|)"+li+"*(\\d+)|))"+li+"*\\)|)","i"),bool:new RegExp("^(?:"+xi+")$","i"),needsContext:new RegExp("^"+li+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+li+"*((?:-\\d)?\\d*)"+li+"*\\)|)(?=[^-]|$)","i")},fa=/HTML$/i,ha=/^(?:input|select|textarea|button)$/i,jo=/^h\d$/i,lA=/^[^{]+\{\s*\[native \w/,Go=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yo=/[+~]/,FA=new RegExp("\\\\[\\da-fA-F]{1,6}"+li+"?|\\\\([^\\r\\n\\f])","g"),LA=function(Cr,Ur){var Vr="0x"+Cr.slice(1)-65536;return Ur||(Vr<0?String.fromCharCode(Vr+65536):String.fromCharCode(Vr>>10|55296,Vr&1023|56320))},EA=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ca=function(Cr,Ur){return Ur?Cr==="\0"?"�":Cr.slice(0,-1)+"\\"+Cr.charCodeAt(Cr.length-1).toString(16)+" ":"\\"+Cr},qo=function(){un()},Ta=Eo(function(Cr){return Cr.disabled===!0&&Cr.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{ni.apply(hn=wi.call(fi.childNodes),fi.childNodes),hn[fi.childNodes.length].nodeType}catch{ni={apply:hn.length?function(Ur,Vr){kn.apply(Ur,wi.call(Vr))}:function(Ur,Vr){for(var mn=Ur.length,zr=0;Ur[mn++]=Vr[zr++];);Ur.length=mn-1}}}function Si(Cr,Ur,Vr,mn){var zr,dn,yn,Nn,Vn,oi,ai,si=Ur&&Ur.ownerDocument,Ci=Ur?Ur.nodeType:9;if(Vr=Vr||[],typeof Cr!="string"||!Cr||Ci!==1&&Ci!==9&&Ci!==11)return Vr;if(!mn&&(un(Ur),Ur=Ur||vn,di)){if(Ci!==11&&(Vn=Go.exec(Cr)))if(zr=Vn[1]){if(Ci===9)if(yn=Ur.getElementById(zr)){if(yn.id===zr)return Vr.push(yn),Vr}else return Vr;else if(si&&(yn=si.getElementById(zr))&&bA(Ur,yn)&&yn.id===zr)return Vr.push(yn),Vr}else{if(Vn[2])return ni.apply(Vr,Ur.getElementsByTagName(Cr)),Vr;if((zr=Vn[3])&&qe.getElementsByClassName&&Ur.getElementsByClassName)return ni.apply(Vr,Ur.getElementsByClassName(zr)),Vr}if(qe.qsa&&!Fr[Cr+" "]&&(!ri||!ri.test(Cr))&&(Ci!==1||Ur.nodeName.toLowerCase()!=="object")){if(ai=Cr,si=Ur,Ci===1&&(Ea.test(Cr)||eo.test(Cr))){for(si=yo.test(Cr)&&bo(Ur.parentNode)||Ur,(si!==Ur||!qe.scope)&&((Nn=Ur.getAttribute("id"))?Nn=Nn.replace(EA,Ca):Ur.setAttribute("id",Nn=Pi)),oi=Br(Cr),dn=oi.length;dn--;)oi[dn]=(Nn?"#"+Nn:":scope")+" "+co(oi[dn]);ai=oi.join(",")}try{return ni.apply(Vr,si.querySelectorAll(ai)),Vr}catch{Fr(Cr,!0)}finally{Nn===Pi&&Ur.removeAttribute("id")}}}return Rr(Cr.replace(IA,"$1"),Ur,Vr,mn)}function wo(){var Cr=[];function Ur(Vr,mn){return Cr.push(Vr+" ")>tr.cacheLength&&delete Ur[Cr.shift()],Ur[Vr+" "]=mn}return Ur}function RA(Cr){return Cr[Pi]=!0,Cr}function $A(Cr){var Ur=vn.createElement("fieldset");try{return!!Cr(Ur)}catch{return!1}finally{Ur.parentNode&&Ur.parentNode.removeChild(Ur),Ur=null}}function ro(Cr,Ur){for(var Vr=Cr.split("|"),mn=Vr.length;mn--;)tr.attrHandle[Vr[mn]]=Ur}function DA(Cr,Ur){var Vr=Ur&&Cr,mn=Vr&&Cr.nodeType===1&&Ur.nodeType===1&&Cr.sourceIndex-Ur.sourceIndex;if(mn)return mn;if(Vr){for(;Vr=Vr.nextSibling;)if(Vr===Ur)return-1}return Cr?1:-1}function GA(Cr){return function(Ur){var Vr=Ur.nodeName.toLowerCase();return Vr==="input"&&Ur.type===Cr}}function Bo(Cr){return function(Ur){var Vr=Ur.nodeName.toLowerCase();return(Vr==="input"||Vr==="button")&&Ur.type===Cr}}function qA(Cr){return function(Ur){return"form"in Ur?Ur.parentNode&&Ur.disabled===!1?"label"in Ur?"label"in Ur.parentNode?Ur.parentNode.disabled===Cr:Ur.disabled===Cr:Ur.isDisabled===Cr||Ur.isDisabled!==!Cr&&Ta(Ur)===Cr:Ur.disabled===Cr:"label"in Ur?Ur.disabled===Cr:!1}}function CA(Cr){return RA(function(Ur){return Ur=+Ur,RA(function(Vr,mn){for(var zr,dn=Cr([],Vr.length,Ur),yn=dn.length;yn--;)Vr[zr=dn[yn]]&&(Vr[zr]=!(mn[zr]=Vr[zr]))})})}function bo(Cr){return Cr&&typeof Cr.getElementsByTagName<"u"&&Cr}qe=Si.support={},cr=Si.isXML=function(Cr){var Ur=Cr&&Cr.namespaceURI,Vr=Cr&&(Cr.ownerDocument||Cr).documentElement;return!fa.test(Ur||Vr&&Vr.nodeName||"HTML")},un=Si.setDocument=function(Cr){var Ur,Vr,mn=Cr?Cr.ownerDocument||Cr:fi;return mn==vn||mn.nodeType!==9||!mn.documentElement||(vn=mn,ii=vn.documentElement,di=!cr(vn),fi!=vn&&(Vr=vn.defaultView)&&Vr.top!==Vr&&(Vr.addEventListener?Vr.addEventListener("unload",qo,!1):Vr.attachEvent&&Vr.attachEvent("onunload",qo)),qe.scope=$A(function(zr){return ii.appendChild(zr).appendChild(vn.createElement("div")),typeof zr.querySelectorAll<"u"&&!zr.querySelectorAll(":scope fieldset div").length}),qe.attributes=$A(function(zr){return zr.className="i",!zr.getAttribute("className")}),qe.getElementsByTagName=$A(function(zr){return zr.appendChild(vn.createComment("")),!zr.getElementsByTagName("*").length}),qe.getElementsByClassName=lA.test(vn.getElementsByClassName),qe.getById=$A(function(zr){return ii.appendChild(zr).id=Pi,!vn.getElementsByName||!vn.getElementsByName(Pi).length}),qe.getById?(tr.filter.ID=function(zr){var dn=zr.replace(FA,LA);return function(yn){return yn.getAttribute("id")===dn}},tr.find.ID=function(zr,dn){if(typeof dn.getElementById<"u"&&di){var yn=dn.getElementById(zr);return yn?[yn]:[]}}):(tr.filter.ID=function(zr){var dn=zr.replace(FA,LA);return function(yn){var Nn=typeof yn.getAttributeNode<"u"&&yn.getAttributeNode("id");return Nn&&Nn.value===dn}},tr.find.ID=function(zr,dn){if(typeof dn.getElementById<"u"&&di){var yn,Nn,Vn,oi=dn.getElementById(zr);if(oi){if(yn=oi.getAttributeNode("id"),yn&&yn.value===zr)return[oi];for(Vn=dn.getElementsByName(zr),Nn=0;oi=Vn[Nn++];)if(yn=oi.getAttributeNode("id"),yn&&yn.value===zr)return[oi]}return[]}}),tr.find.TAG=qe.getElementsByTagName?function(zr,dn){if(typeof dn.getElementsByTagName<"u")return dn.getElementsByTagName(zr);if(qe.qsa)return dn.querySelectorAll(zr)}:function(zr,dn){var yn,Nn=[],Vn=0,oi=dn.getElementsByTagName(zr);if(zr==="*"){for(;yn=oi[Vn++];)yn.nodeType===1&&Nn.push(yn);return Nn}return oi},tr.find.CLASS=qe.getElementsByClassName&&function(zr,dn){if(typeof dn.getElementsByClassName<"u"&&di)return dn.getElementsByClassName(zr)},Wi=[],ri=[],(qe.qsa=lA.test(vn.querySelectorAll))&&($A(function(zr){var dn;ii.appendChild(zr).innerHTML="<a id='"+Pi+"'></a><select id='"+Pi+"-\r\\' msallowcapture=''><option selected=''></option></select>",zr.querySelectorAll("[msallowcapture^='']").length&&ri.push("[*^$]="+li+`*(?:''|"")`),zr.querySelectorAll("[selected]").length||ri.push("\\["+li+"*(?:value|"+xi+")"),zr.querySelectorAll("[id~="+Pi+"-]").length||ri.push("~="),dn=vn.createElement("input"),dn.setAttribute("name",""),zr.appendChild(dn),zr.querySelectorAll("[name='']").length||ri.push("\\["+li+"*name"+li+"*="+li+`*(?:''|"")`),zr.querySelectorAll(":checked").length||ri.push(":checked"),zr.querySelectorAll("a#"+Pi+"+*").length||ri.push(".#.+[+~]"),zr.querySelectorAll("\\\f"),ri.push("[\\r\\n\\f]")}),$A(function(zr){zr.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var dn=vn.createElement("input");dn.setAttribute("type","hidden"),zr.appendChild(dn).setAttribute("name","D"),zr.querySelectorAll("[name=d]").length&&ri.push("name"+li+"*[*^$|!~]?="),zr.querySelectorAll(":enabled").length!==2&&ri.push(":enabled",":disabled"),ii.appendChild(zr).disabled=!0,zr.querySelectorAll(":disabled").length!==2&&ri.push(":enabled",":disabled"),zr.querySelectorAll("*,:x"),ri.push(",.*:")})),(qe.matchesSelector=lA.test(Yi=ii.matches||ii.webkitMatchesSelector||ii.mozMatchesSelector||ii.oMatchesSelector||ii.msMatchesSelector))&&$A(function(zr){qe.disconnectedMatch=Yi.call(zr,"*"),Yi.call(zr,"[s!='']:x"),Wi.push("!=",aA)}),ri=ri.length&&new RegExp(ri.join("|")),Wi=Wi.length&&new RegExp(Wi.join("|")),Ur=lA.test(ii.compareDocumentPosition),bA=Ur||lA.test(ii.contains)?function(zr,dn){var yn=zr.nodeType===9?zr.documentElement:zr,Nn=dn&&dn.parentNode;return zr===Nn||!!(Nn&&Nn.nodeType===1&&(yn.contains?yn.contains(Nn):zr.compareDocumentPosition&&zr.compareDocumentPosition(Nn)&16))}:function(zr,dn){if(dn){for(;dn=dn.parentNode;)if(dn===zr)return!0}return!1},Mr=Ur?function(zr,dn){if(zr===dn)return xn=!0,0;var yn=!zr.compareDocumentPosition-!dn.compareDocumentPosition;return yn||(yn=(zr.ownerDocument||zr)==(dn.ownerDocument||dn)?zr.compareDocumentPosition(dn):1,yn&1||!qe.sortDetached&&dn.compareDocumentPosition(zr)===yn?zr==vn||zr.ownerDocument==fi&&bA(fi,zr)?-1:dn==vn||dn.ownerDocument==fi&&bA(fi,dn)?1:cn?vi(cn,zr)-vi(cn,dn):0:yn&4?-1:1)}:function(zr,dn){if(zr===dn)return xn=!0,0;var yn,Nn=0,Vn=zr.parentNode,oi=dn.parentNode,ai=[zr],si=[dn];if(!Vn||!oi)return zr==vn?-1:dn==vn?1:Vn?-1:oi?1:cn?vi(cn,zr)-vi(cn,dn):0;if(Vn===oi)return DA(zr,dn);for(yn=zr;yn=yn.parentNode;)ai.unshift(yn);for(yn=dn;yn=yn.parentNode;)si.unshift(yn);for(;ai[Nn]===si[Nn];)Nn++;return Nn?DA(ai[Nn],si[Nn]):ai[Nn]==fi?-1:si[Nn]==fi?1:0}),vn},Si.matches=function(Cr,Ur){return Si(Cr,null,null,Ur)},Si.matchesSelector=function(Cr,Ur){if(un(Cr),qe.matchesSelector&&di&&!Fr[Ur+" "]&&(!Wi||!Wi.test(Ur))&&(!ri||!ri.test(Ur)))try{var Vr=Yi.call(Cr,Ur);if(Vr||qe.disconnectedMatch||Cr.document&&Cr.document.nodeType!==11)return Vr}catch{Fr(Ur,!0)}return Si(Ur,vn,null,[Cr]).length>0},Si.contains=function(Cr,Ur){return(Cr.ownerDocument||Cr)!=vn&&un(Cr),bA(Cr,Ur)},Si.attr=function(Cr,Ur){(Cr.ownerDocument||Cr)!=vn&&un(Cr);var Vr=tr.attrHandle[Ur.toLowerCase()],mn=Vr&&rn.call(tr.attrHandle,Ur.toLowerCase())?Vr(Cr,Ur,!di):void 0;return mn!==void 0?mn:qe.attributes||!di?Cr.getAttribute(Ur):(mn=Cr.getAttributeNode(Ur))&&mn.specified?mn.value:null},Si.escape=function(Cr){return(Cr+"").replace(EA,Ca)},Si.error=function(Cr){throw new Error("Syntax error, unrecognized expression: "+Cr)},Si.uniqueSort=function(Cr){var Ur,Vr=[],mn=0,zr=0;if(xn=!qe.detectDuplicates,cn=!qe.sortStable&&Cr.slice(0),Cr.sort(Mr),xn){for(;Ur=Cr[zr++];)Ur===Cr[zr]&&(mn=Vr.push(zr));for(;mn--;)Cr.splice(Vr[mn],1)}return cn=null,Cr},ur=Si.getText=function(Cr){var Ur,Vr="",mn=0,zr=Cr.nodeType;if(zr){if(zr===1||zr===9||zr===11){if(typeof Cr.textContent=="string")return Cr.textContent;for(Cr=Cr.firstChild;Cr;Cr=Cr.nextSibling)Vr+=ur(Cr)}else if(zr===3||zr===4)return Cr.nodeValue}else for(;Ur=Cr[mn++];)Vr+=ur(Ur);return Vr},tr=Si.selectors={cacheLength:50,createPseudo:RA,match:uo,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Cr){return Cr[1]=Cr[1].replace(FA,LA),Cr[3]=(Cr[3]||Cr[4]||Cr[5]||"").replace(FA,LA),Cr[2]==="~="&&(Cr[3]=" "+Cr[3]+" "),Cr.slice(0,4)},CHILD:function(Cr){return Cr[1]=Cr[1].toLowerCase(),Cr[1].slice(0,3)==="nth"?(Cr[3]||Si.error(Cr[0]),Cr[4]=+(Cr[4]?Cr[5]+(Cr[6]||1):2*(Cr[3]==="even"||Cr[3]==="odd")),Cr[5]=+(Cr[7]+Cr[8]||Cr[3]==="odd")):Cr[3]&&Si.error(Cr[0]),Cr},PSEUDO:function(Cr){var Ur,Vr=!Cr[6]&&Cr[2];return uo.CHILD.test(Cr[0])?null:(Cr[3]?Cr[2]=Cr[4]||Cr[5]||"":Vr&&ua.test(Vr)&&(Ur=Br(Vr,!0))&&(Ur=Vr.indexOf(")",Vr.length-Ur)-Vr.length)&&(Cr[0]=Cr[0].slice(0,Ur),Cr[2]=Vr.slice(0,Ur)),Cr.slice(0,3))}},filter:{TAG:function(Cr){var Ur=Cr.replace(FA,LA).toLowerCase();return Cr==="*"?function(){return!0}:function(Vr){return Vr.nodeName&&Vr.nodeName.toLowerCase()===Ur}},CLASS:function(Cr){var Ur=Di[Cr+" "];return Ur||(Ur=new RegExp("(^|"+li+")"+Cr+"("+li+"|$)"))&&Di(Cr,function(Vr){return Ur.test(typeof Vr.className=="string"&&Vr.className||typeof Vr.getAttribute<"u"&&Vr.getAttribute("class")||"")})},ATTR:function(Cr,Ur,Vr){return function(mn){var zr=Si.attr(mn,Cr);return zr==null?Ur==="!=":Ur?(zr+="",Ur==="="?zr===Vr:Ur==="!="?zr!==Vr:Ur==="^="?Vr&&zr.indexOf(Vr)===0:Ur==="*="?Vr&&zr.indexOf(Vr)>-1:Ur==="$="?Vr&&zr.slice(-Vr.length)===Vr:Ur==="~="?(" "+zr.replace(sA," ")+" ").indexOf(Vr)>-1:Ur==="|="?zr===Vr||zr.slice(0,Vr.length+1)===Vr+"-":!1):!0}},CHILD:function(Cr,Ur,Vr,mn,zr){var dn=Cr.slice(0,3)!=="nth",yn=Cr.slice(-4)!=="last",Nn=Ur==="of-type";return mn===1&&zr===0?function(Vn){return!!Vn.parentNode}:function(Vn,oi,ai){var si,Ci,$i,ui,iA,pA,PA=dn!==yn?"nextSibling":"previousSibling",ki=Vn.parentNode,_o=Nn&&Vn.nodeName.toLowerCase(),dA=!ai&&!Nn,zi=!1;if(ki){if(dn){for(;PA;){for(ui=Vn;ui=ui[PA];)if(Nn?ui.nodeName.toLowerCase()===_o:ui.nodeType===1)return!1;pA=PA=Cr==="only"&&!pA&&"nextSibling"}return!0}if(pA=[yn?ki.firstChild:ki.lastChild],yn&&dA){for(ui=ki,$i=ui[Pi]||(ui[Pi]={}),Ci=$i[ui.uniqueID]||($i[ui.uniqueID]={}),si=Ci[Cr]||[],iA=si[0]===oA&&si[1],zi=iA&&si[2],ui=iA&&ki.childNodes[iA];ui=++iA&&ui&&ui[PA]||(zi=iA=0)||pA.pop();)if(ui.nodeType===1&&++zi&&ui===Vn){Ci[Cr]=[oA,iA,zi];break}}else if(dA&&(ui=Vn,$i=ui[Pi]||(ui[Pi]={}),Ci=$i[ui.uniqueID]||($i[ui.uniqueID]={}),si=Ci[Cr]||[],iA=si[0]===oA&&si[1],zi=iA),zi===!1)for(;(ui=++iA&&ui&&ui[PA]||(zi=iA=0)||pA.pop())&&!((Nn?ui.nodeName.toLowerCase()===_o:ui.nodeType===1)&&++zi&&(dA&&($i=ui[Pi]||(ui[Pi]={}),Ci=$i[ui.uniqueID]||($i[ui.uniqueID]={}),Ci[Cr]=[oA,zi]),ui===Vn)););return zi-=zr,zi===mn||zi%mn===0&&zi/mn>=0}}},PSEUDO:function(Cr,Ur){var Vr,mn=tr.pseudos[Cr]||tr.setFilters[Cr.toLowerCase()]||Si.error("unsupported pseudo: "+Cr);return mn[Pi]?mn(Ur):mn.length>1?(Vr=[Cr,Cr,"",Ur],tr.setFilters.hasOwnProperty(Cr.toLowerCase())?RA(function(zr,dn){for(var yn,Nn=mn(zr,Ur),Vn=Nn.length;Vn--;)yn=vi(zr,Nn[Vn]),zr[yn]=!(dn[yn]=Nn[Vn])}):function(zr){return mn(zr,0,Vr)}):mn}},pseudos:{not:RA(function(Cr){var Ur=[],Vr=[],mn=Lr(Cr.replace(IA,"$1"));return mn[Pi]?RA(function(zr,dn,yn,Nn){for(var Vn,oi=mn(zr,null,Nn,[]),ai=zr.length;ai--;)(Vn=oi[ai])&&(zr[ai]=!(dn[ai]=Vn))}):function(zr,dn,yn){return Ur[0]=zr,mn(Ur,null,yn,Vr),Ur[0]=null,!Vr.pop()}}),has:RA(function(Cr){return function(Ur){return Si(Cr,Ur).length>0}}),contains:RA(function(Cr){return Cr=Cr.replace(FA,LA),function(Ur){return(Ur.textContent||ur(Ur)).indexOf(Cr)>-1}}),lang:RA(function(Cr){return ca.test(Cr||"")||Si.error("unsupported lang: "+Cr),Cr=Cr.replace(FA,LA).toLowerCase(),function(Ur){var Vr;do if(Vr=di?Ur.lang:Ur.getAttribute("xml:lang")||Ur.getAttribute("lang"))return Vr=Vr.toLowerCase(),Vr===Cr||Vr.indexOf(Cr+"-")===0;while((Ur=Ur.parentNode)&&Ur.nodeType===1);return!1}}),target:function(Cr){var Ur=Pe.location&&Pe.location.hash;return Ur&&Ur.slice(1)===Cr.id},root:function(Cr){return Cr===ii},focus:function(Cr){return Cr===vn.activeElement&&(!vn.hasFocus||vn.hasFocus())&&!!(Cr.type||Cr.href||~Cr.tabIndex)},enabled:qA(!1),disabled:qA(!0),checked:function(Cr){var Ur=Cr.nodeName.toLowerCase();return Ur==="input"&&!!Cr.checked||Ur==="option"&&!!Cr.selected},selected:function(Cr){return Cr.parentNode&&Cr.parentNode.selectedIndex,Cr.selected===!0},empty:function(Cr){for(Cr=Cr.firstChild;Cr;Cr=Cr.nextSibling)if(Cr.nodeType<6)return!1;return!0},parent:function(Cr){return!tr.pseudos.empty(Cr)},header:function(Cr){return jo.test(Cr.nodeName)},input:function(Cr){return ha.test(Cr.nodeName)},button:function(Cr){var Ur=Cr.nodeName.toLowerCase();return Ur==="input"&&Cr.type==="button"||Ur==="button"},text:function(Cr){var Ur;return Cr.nodeName.toLowerCase()==="input"&&Cr.type==="text"&&((Ur=Cr.getAttribute("type"))==null||Ur.toLowerCase()==="text")},first:CA(function(){return[0]}),last:CA(function(Cr,Ur){return[Ur-1]}),eq:CA(function(Cr,Ur,Vr){return[Vr<0?Vr+Ur:Vr]}),even:CA(function(Cr,Ur){for(var Vr=0;Vr<Ur;Vr+=2)Cr.push(Vr);return Cr}),odd:CA(function(Cr,Ur){for(var Vr=1;Vr<Ur;Vr+=2)Cr.push(Vr);return Cr}),lt:CA(function(Cr,Ur,Vr){for(var mn=Vr<0?Vr+Ur:Vr>Ur?Ur:Vr;--mn>=0;)Cr.push(mn);return Cr}),gt:CA(function(Cr,Ur,Vr){for(var mn=Vr<0?Vr+Ur:Vr;++mn<Ur;)Cr.push(mn);return Cr})}},tr.pseudos.nth=tr.pseudos.eq;for(Qe in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})tr.pseudos[Qe]=GA(Qe);for(Qe in{submit:!0,reset:!0})tr.pseudos[Qe]=Bo(Qe);function kA(){}kA.prototype=tr.filters=tr.pseudos,tr.setFilters=new kA,Br=Si.tokenize=function(Cr,Ur){var Vr,mn,zr,dn,yn,Nn,Vn,oi=He[Cr+" "];if(oi)return Ur?0:oi.slice(0);for(yn=Cr,Nn=[],Vn=tr.preFilter;yn;){(!Vr||(mn=UA.exec(yn)))&&(mn&&(yn=yn.slice(mn[0].length)||yn),Nn.push(zr=[])),Vr=!1,(mn=eo.exec(yn))&&(Vr=mn.shift(),zr.push({value:Vr,type:mn[0].replace(IA," ")}),yn=yn.slice(Vr.length));for(dn in tr.filter)(mn=uo[dn].exec(yn))&&(!Vn[dn]||(mn=Vn[dn](mn)))&&(Vr=mn.shift(),zr.push({value:Vr,type:dn,matches:mn}),yn=yn.slice(Vr.length));if(!Vr)break}return Ur?yn.length:yn?Si.error(Cr):He(Cr,Nn).slice(0)};function co(Cr){for(var Ur=0,Vr=Cr.length,mn="";Ur<Vr;Ur++)mn+=Cr[Ur].value;return mn}function Eo(Cr,Ur,Vr){var mn=Ur.dir,zr=Ur.next,dn=zr||mn,yn=Vr&&dn==="parentNode",Nn=bi++;return Ur.first?function(Vn,oi,ai){for(;Vn=Vn[mn];)if(Vn.nodeType===1||yn)return Cr(Vn,oi,ai);return!1}:function(Vn,oi,ai){var si,Ci,$i,ui=[oA,Nn];if(ai){for(;Vn=Vn[mn];)if((Vn.nodeType===1||yn)&&Cr(Vn,oi,ai))return!0}else for(;Vn=Vn[mn];)if(Vn.nodeType===1||yn)if($i=Vn[Pi]||(Vn[Pi]={}),Ci=$i[Vn.uniqueID]||($i[Vn.uniqueID]={}),zr&&zr===Vn.nodeName.toLowerCase())Vn=Vn[mn]||Vn;else{if((si=Ci[dn])&&si[0]===oA&&si[1]===Nn)return ui[2]=si[2];if(Ci[dn]=ui,ui[2]=Cr(Vn,oi,ai))return!0}return!1}}function no(Cr){return Cr.length>1?function(Ur,Vr,mn){for(var zr=Cr.length;zr--;)if(!Cr[zr](Ur,Vr,mn))return!1;return!0}:Cr[0]}function zA(Cr,Ur,Vr){for(var mn=0,zr=Ur.length;mn<zr;mn++)Si(Cr,Ur[mn],Vr);return Vr}function VA(Cr,Ur,Vr,mn,zr){for(var dn,yn=[],Nn=0,Vn=Cr.length,oi=Ur!=null;Nn<Vn;Nn++)(dn=Cr[Nn])&&(!Vr||Vr(dn,mn,zr))&&(yn.push(dn),oi&&Ur.push(Nn));return yn}function fo(Cr,Ur,Vr,mn,zr,dn){return mn&&!mn[Pi]&&(mn=fo(mn)),zr&&!zr[Pi]&&(zr=fo(zr,dn)),RA(function(yn,Nn,Vn,oi){var ai,si,Ci,$i=[],ui=[],iA=Nn.length,pA=yn||zA(Ur||"*",Vn.nodeType?[Vn]:Vn,[]),PA=Cr&&(yn||!Ur)?VA(pA,$i,Cr,Vn,oi):pA,ki=Vr?zr||(yn?Cr:iA||mn)?[]:Nn:PA;if(Vr&&Vr(PA,ki,Vn,oi),mn)for(ai=VA(ki,ui),mn(ai,[],Vn,oi),si=ai.length;si--;)(Ci=ai[si])&&(ki[ui[si]]=!(PA[ui[si]]=Ci));if(yn){if(zr||Cr){if(zr){for(ai=[],si=ki.length;si--;)(Ci=ki[si])&&ai.push(PA[si]=Ci);zr(null,ki=[],ai,oi)}for(si=ki.length;si--;)(Ci=ki[si])&&(ai=zr?vi(yn,Ci):$i[si])>-1&&(yn[ai]=!(Nn[ai]=Ci))}}else ki=VA(ki===Nn?ki.splice(iA,ki.length):ki),zr?zr(null,Nn,ki,oi):ni.apply(Nn,ki)})}function Co(Cr){for(var Ur,Vr,mn,zr=Cr.length,dn=tr.relative[Cr[0].type],yn=dn||tr.relative[" "],Nn=dn?1:0,Vn=Eo(function(si){return si===Ur},yn,!0),oi=Eo(function(si){return vi(Ur,si)>-1},yn,!0),ai=[function(si,Ci,$i){var ui=!dn&&($i||Ci!==tn)||((Ur=Ci).nodeType?Vn(si,Ci,$i):oi(si,Ci,$i));return Ur=null,ui}];Nn<zr;Nn++)if(Vr=tr.relative[Cr[Nn].type])ai=[Eo(no(ai),Vr)];else{if(Vr=tr.filter[Cr[Nn].type].apply(null,Cr[Nn].matches),Vr[Pi]){for(mn=++Nn;mn<zr&&!tr.relative[Cr[mn].type];mn++);return fo(Nn>1&&no(ai),Nn>1&&co(Cr.slice(0,Nn-1).concat({value:Cr[Nn-2].type===" "?"*":""})).replace(IA,"$1"),Vr,Nn<mn&&Co(Cr.slice(Nn,mn)),mn<zr&&Co(Cr=Cr.slice(mn)),mn<zr&&co(Cr))}ai.push(Vr)}return no(ai)}function Uo(Cr,Ur){var Vr=Ur.length>0,mn=Cr.length>0,zr=function(dn,yn,Nn,Vn,oi){var ai,si,Ci,$i=0,ui="0",iA=dn&&[],pA=[],PA=tn,ki=dn||mn&&tr.find.TAG("*",oi),_o=oA+=PA==null?1:Math.random()||.1,dA=ki.length;for(oi&&(tn=yn==vn||yn||oi);ui!==dA&&(ai=ki[ui])!=null;ui++){if(mn&&ai){for(si=0,!yn&&ai.ownerDocument!=vn&&(un(ai),Nn=!di);Ci=Cr[si++];)if(Ci(ai,yn||vn,Nn)){Vn.push(ai);break}oi&&(oA=_o)}Vr&&((ai=!Ci&&ai)&&$i--,dn&&iA.push(ai))}if($i+=ui,Vr&&ui!==$i){for(si=0;Ci=Ur[si++];)Ci(iA,pA,yn,Nn);if(dn){if($i>0)for(;ui--;)iA[ui]||pA[ui]||(pA[ui]=In.call(Vn));pA=VA(pA)}ni.apply(Vn,pA),oi&&!dn&&pA.length>0&&$i+Ur.length>1&&Si.uniqueSort(Vn)}return oi&&(oA=_o,tn=PA),iA};return Vr?RA(zr):zr}return Lr=Si.compile=function(Cr,Ur){var Vr,mn=[],zr=[],dn=hr[Cr+" "];if(!dn){for(Ur||(Ur=Br(Cr)),Vr=Ur.length;Vr--;)dn=Co(Ur[Vr]),dn[Pi]?mn.push(dn):zr.push(dn);dn=hr(Cr,Uo(zr,mn)),dn.selector=Cr}return dn},Rr=Si.select=function(Cr,Ur,Vr,mn){var zr,dn,yn,Nn,Vn,oi=typeof Cr=="function"&&Cr,ai=!mn&&Br(Cr=oi.selector||Cr);if(Vr=Vr||[],ai.length===1){if(dn=ai[0]=ai[0].slice(0),dn.length>2&&(yn=dn[0]).type==="ID"&&Ur.nodeType===9&&di&&tr.relative[dn[1].type]){if(Ur=(tr.find.ID(yn.matches[0].replace(FA,LA),Ur)||[])[0],Ur)oi&&(Ur=Ur.parentNode);else return Vr;Cr=Cr.slice(dn.shift().value.length)}for(zr=uo.needsContext.test(Cr)?0:dn.length;zr--&&(yn=dn[zr],!tr.relative[Nn=yn.type]);)if((Vn=tr.find[Nn])&&(mn=Vn(yn.matches[0].replace(FA,LA),yo.test(dn[0].type)&&bo(Ur.parentNode)||Ur))){if(dn.splice(zr,1),Cr=mn.length&&co(dn),!Cr)return ni.apply(Vr,mn),Vr;break}}return(oi||Lr(Cr,ai))(mn,Ur,!di,Vr,!Ur||yo.test(Cr)&&bo(Ur.parentNode)||Ur),Vr},qe.sortStable=Pi.split("").sort(Mr).join("")===Pi,qe.detectDuplicates=!!xn,un(),qe.sortDetached=$A(function(Cr){return Cr.compareDocumentPosition(vn.createElement("fieldset"))&1}),$A(function(Cr){return Cr.innerHTML="<a href='#'></a>",Cr.firstChild.getAttribute("href")==="#"})||ro("type|href|height|width",function(Cr,Ur,Vr){if(!Vr)return Cr.getAttribute(Ur,Ur.toLowerCase()==="type"?1:2)}),(!qe.attributes||!$A(function(Cr){return Cr.innerHTML="<input/>",Cr.firstChild.setAttribute("value",""),Cr.firstChild.getAttribute("value")===""}))&&ro("value",function(Cr,Ur,Vr){if(!Vr&&Cr.nodeName.toLowerCase()==="input")return Cr.defaultValue}),$A(function(Cr){return Cr.getAttribute("disabled")==null})||ro(xi,function(Cr,Ur,Vr){var mn;if(!Vr)return Cr[Ur]===!0?Ur.toLowerCase():(mn=Cr.getAttributeNode(Ur))&&mn.specified?mn.value:null}),Si}(St);Oe.find=We,Oe.expr=We.selectors,Oe.expr[":"]=Oe.expr.pseudos,Oe.uniqueSort=Oe.unique=We.uniqueSort,Oe.text=We.getText,Oe.isXMLDoc=We.isXML,Oe.contains=We.contains,Oe.escapeSelector=We.escape;var or=function(Pe,Qe,qe){for(var tr=[],ur=qe!==void 0;(Pe=Pe[Qe])&&Pe.nodeType!==9;)if(Pe.nodeType===1){if(ur&&Oe(Pe).is(qe))break;tr.push(Pe)}return tr},mr=function(Pe,Qe){for(var qe=[];Pe;Pe=Pe.nextSibling)Pe.nodeType===1&&Pe!==Qe&&qe.push(Pe);return qe},er=Oe.expr.match.needsContext;function ir(Pe,Qe){return Pe.nodeName&&Pe.nodeName.toLowerCase()===Qe.toLowerCase()}var gr=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function vr(Pe,Qe,qe){return Ve(Qe)?Oe.grep(Pe,function(tr,ur){return!!Qe.call(tr,ur,tr)!==qe}):Qe.nodeType?Oe.grep(Pe,function(tr){return tr===Qe!==qe}):typeof Qe!="string"?Oe.grep(Pe,function(tr){return xe.call(Qe,tr)>-1!==qe}):Oe.filter(Qe,Pe,qe)}Oe.filter=function(Pe,Qe,qe){var tr=Qe[0];return qe&&(Pe=":not("+Pe+")"),Qe.length===1&&tr.nodeType===1?Oe.find.matchesSelector(tr,Pe)?[tr]:[]:Oe.find.matches(Pe,Oe.grep(Qe,function(ur){return ur.nodeType===1}))},Oe.fn.extend({find:function(Pe){var Qe,qe,tr=this.length,ur=this;if(typeof Pe!="string")return this.pushStack(Oe(Pe).filter(function(){for(Qe=0;Qe<tr;Qe++)if(Oe.contains(ur[Qe],this))return!0}));for(qe=this.pushStack([]),Qe=0;Qe<tr;Qe++)Oe.find(Pe,ur[Qe],qe);return tr>1?Oe.uniqueSort(qe):qe},filter:function(Pe){return this.pushStack(vr(this,Pe||[],!1))},not:function(Pe){return this.pushStack(vr(this,Pe||[],!0))},is:function(Pe){return!!vr(this,typeof Pe=="string"&&er.test(Pe)?Oe(Pe):Pe||[],!1).length}});var Or,Nr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Hr=Oe.fn.init=function(Pe,Qe,qe){var tr,ur;if(!Pe)return this;if(qe=qe||Or,typeof Pe=="string")if(Pe[0]==="<"&&Pe[Pe.length-1]===">"&&Pe.length>=3?tr=[null,Pe,null]:tr=Nr.exec(Pe),tr&&(tr[1]||!Qe))if(tr[1]){if(Qe=Qe instanceof Oe?Qe[0]:Qe,Oe.merge(this,Oe.parseHTML(tr[1],Qe&&Qe.nodeType?Qe.ownerDocument||Qe:Ze,!0)),gr.test(tr[1])&&Oe.isPlainObject(Qe))for(tr in Qe)Ve(this[tr])?this[tr](Qe[tr]):this.attr(tr,Qe[tr]);return this}else return ur=Ze.getElementById(tr[2]),ur&&(this[0]=ur,this.length=1),this;else return!Qe||Qe.jquery?(Qe||qe).find(Pe):this.constructor(Qe).find(Pe);else{if(Pe.nodeType)return this[0]=Pe,this.length=1,this;if(Ve(Pe))return qe.ready!==void 0?qe.ready(Pe):Pe(Oe)}return Oe.makeArray(Pe,this)};Hr.prototype=Oe.fn,Or=Oe(Ze);var Dr=/^(?:parents|prev(?:Until|All))/,kr={children:!0,contents:!0,next:!0,prev:!0};Oe.fn.extend({has:function(Pe){var Qe=Oe(Pe,this),qe=Qe.length;return this.filter(function(){for(var tr=0;tr<qe;tr++)if(Oe.contains(this,Qe[tr]))return!0})},closest:function(Pe,Qe){var qe,tr=0,ur=this.length,cr=[],Br=typeof Pe!="string"&&Oe(Pe);if(!er.test(Pe)){for(;tr<ur;tr++)for(qe=this[tr];qe&&qe!==Qe;qe=qe.parentNode)if(qe.nodeType<11&&(Br?Br.index(qe)>-1:qe.nodeType===1&&Oe.find.matchesSelector(qe,Pe))){cr.push(qe);break}}return this.pushStack(cr.length>1?Oe.uniqueSort(cr):cr)},index:function(Pe){return Pe?typeof Pe=="string"?xe.call(Oe(Pe),this[0]):xe.call(this,Pe.jquery?Pe[0]:Pe):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(Pe,Qe){return this.pushStack(Oe.uniqueSort(Oe.merge(this.get(),Oe(Pe,Qe))))},addBack:function(Pe){return this.add(Pe==null?this.prevObject:this.prevObject.filter(Pe))}});function qr(Pe,Qe){for(;(Pe=Pe[Qe])&&Pe.nodeType!==1;);return Pe}Oe.each({parent:function(Pe){var Qe=Pe.parentNode;return Qe&&Qe.nodeType!==11?Qe:null},parents:function(Pe){return or(Pe,"parentNode")},parentsUntil:function(Pe,Qe,qe){return or(Pe,"parentNode",qe)},next:function(Pe){return qr(Pe,"nextSibling")},prev:function(Pe){return qr(Pe,"previousSibling")},nextAll:function(Pe){return or(Pe,"nextSibling")},prevAll:function(Pe){return or(Pe,"previousSibling")},nextUntil:function(Pe,Qe,qe){return or(Pe,"nextSibling",qe)},prevUntil:function(Pe,Qe,qe){return or(Pe,"previousSibling",qe)},siblings:function(Pe){return mr((Pe.parentNode||{}).firstChild,Pe)},children:function(Pe){return mr(Pe.firstChild)},contents:function(Pe){return Pe.contentDocument!=null&&Ce(Pe.contentDocument)?Pe.contentDocument:(ir(Pe,"template")&&(Pe=Pe.content||Pe),Oe.merge([],Pe.childNodes))}},function(Pe,Qe){Oe.fn[Pe]=function(qe,tr){var ur=Oe.map(this,Qe,qe);return Pe.slice(-5)!=="Until"&&(tr=qe),tr&&typeof tr=="string"&&(ur=Oe.filter(tr,ur)),this.length>1&&(kr[Pe]||Oe.uniqueSort(ur),Dr.test(Pe)&&ur.reverse()),this.pushStack(ur)}});var An=/[^\x20\t\r\n\f]+/g;function lr(Pe){var Qe={};return Oe.each(Pe.match(An)||[],function(qe,tr){Qe[tr]=!0}),Qe}Oe.Callbacks=function(Pe){Pe=typeof Pe=="string"?lr(Pe):Oe.extend({},Pe);var Qe,qe,tr,ur,cr=[],Br=[],Lr=-1,Rr=function(){for(ur=ur||Pe.once,tr=Qe=!0;Br.length;Lr=-1)for(qe=Br.shift();++Lr<cr.length;)cr[Lr].apply(qe[0],qe[1])===!1&&Pe.stopOnFalse&&(Lr=cr.length,qe=!1);Pe.memory||(qe=!1),Qe=!1,ur&&(qe?cr=[]:cr="")},tn={add:function(){return cr&&(qe&&!Qe&&(Lr=cr.length-1,Br.push(qe)),function cn(xn){Oe.each(xn,function(un,vn){Ve(vn)?(!Pe.unique||!tn.has(vn))&&cr.push(vn):vn&&vn.length&&Ye(vn)!=="string"&&cn(vn)})}(arguments),qe&&!Qe&&Rr()),this},remove:function(){return Oe.each(arguments,function(cn,xn){for(var un;(un=Oe.inArray(xn,cr,un))>-1;)cr.splice(un,1),un<=Lr&&Lr--}),this},has:function(cn){return cn?Oe.inArray(cn,cr)>-1:cr.length>0},empty:function(){return cr&&(cr=[]),this},disable:function(){return ur=Br=[],cr=qe="",this},disabled:function(){return!cr},lock:function(){return ur=Br=[],!qe&&!Qe&&(cr=qe=""),this},locked:function(){return!!ur},fireWith:function(cn,xn){return ur||(xn=xn||[],xn=[cn,xn.slice?xn.slice():xn],Br.push(xn),Qe||Rr()),this},fire:function(){return tn.fireWith(this,arguments),this},fired:function(){return!!tr}};return tn};function Tr(Pe){return Pe}function xr(Pe){throw Pe}function $r(Pe,Qe,qe,tr){var ur;try{Pe&&Ve(ur=Pe.promise)?ur.call(Pe).done(Qe).fail(qe):Pe&&Ve(ur=Pe.then)?ur.call(Pe,Qe,qe):Qe.apply(void 0,[Pe].slice(tr))}catch(cr){qe.apply(void 0,[cr])}}Oe.extend({Deferred:function(Pe){var Qe=[["notify","progress",Oe.Callbacks("memory"),Oe.Callbacks("memory"),2],["resolve","done",Oe.Callbacks("once memory"),Oe.Callbacks("once memory"),0,"resolved"],["reject","fail",Oe.Callbacks("once memory"),Oe.Callbacks("once memory"),1,"rejected"]],qe="pending",tr={state:function(){return qe},always:function(){return ur.done(arguments).fail(arguments),this},catch:function(cr){return tr.then(null,cr)},pipe:function(){var cr=arguments;return Oe.Deferred(function(Br){Oe.each(Qe,function(Lr,Rr){var tn=Ve(cr[Rr[4]])&&cr[Rr[4]];ur[Rr[1]](function(){var cn=tn&&tn.apply(this,arguments);cn&&Ve(cn.promise)?cn.promise().progress(Br.notify).done(Br.resolve).fail(Br.reject):Br[Rr[0]+"With"](this,tn?[cn]:arguments)})}),cr=null}).promise()},then:function(cr,Br,Lr){var Rr=0;function tn(cn,xn,un,vn){return function(){var ii=this,di=arguments,ri=function(){var Yi,bA;if(!(cn<Rr)){if(Yi=un.apply(ii,di),Yi===xn.promise())throw new TypeError("Thenable self-resolution");bA=Yi&&(typeof Yi=="object"||typeof Yi=="function")&&Yi.then,Ve(bA)?vn?bA.call(Yi,tn(Rr,xn,Tr,vn),tn(Rr,xn,xr,vn)):(Rr++,bA.call(Yi,tn(Rr,xn,Tr,vn),tn(Rr,xn,xr,vn),tn(Rr,xn,Tr,xn.notifyWith))):(un!==Tr&&(ii=void 0,di=[Yi]),(vn||xn.resolveWith)(ii,di))}},Wi=vn?ri:function(){try{ri()}catch(Yi){Oe.Deferred.exceptionHook&&Oe.Deferred.exceptionHook(Yi,Wi.stackTrace),cn+1>=Rr&&(un!==xr&&(ii=void 0,di=[Yi]),xn.rejectWith(ii,di))}};cn?Wi():(Oe.Deferred.getStackHook&&(Wi.stackTrace=Oe.Deferred.getStackHook()),St.setTimeout(Wi))}}return Oe.Deferred(function(cn){Qe[0][3].add(tn(0,cn,Ve(Lr)?Lr:Tr,cn.notifyWith)),Qe[1][3].add(tn(0,cn,Ve(cr)?cr:Tr)),Qe[2][3].add(tn(0,cn,Ve(Br)?Br:xr))}).promise()},promise:function(cr){return cr!=null?Oe.extend(cr,tr):tr}},ur={};return Oe.each(Qe,function(cr,Br){var Lr=Br[2],Rr=Br[5];tr[Br[1]]=Lr.add,Rr&&Lr.add(function(){qe=Rr},Qe[3-cr][2].disable,Qe[3-cr][3].disable,Qe[0][2].lock,Qe[0][3].lock),Lr.add(Br[3].fire),ur[Br[0]]=function(){return ur[Br[0]+"With"](this===ur?void 0:this,arguments),this},ur[Br[0]+"With"]=Lr.fireWith}),tr.promise(ur),Pe&&Pe.call(ur,ur),ur},when:function(Pe){var Qe=arguments.length,qe=Qe,tr=Array(qe),ur=_e.call(arguments),cr=Oe.Deferred(),Br=function(Lr){return function(Rr){tr[Lr]=this,ur[Lr]=arguments.length>1?_e.call(arguments):Rr,--Qe||cr.resolveWith(tr,ur)}};if(Qe<=1&&($r(Pe,cr.done(Br(qe)).resolve,cr.reject,!Qe),cr.state()==="pending"||Ve(ur[qe]&&ur[qe].then)))return cr.then();for(;qe--;)$r(ur[qe],Br(qe),cr.reject);return cr.promise()}});var Qr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Oe.Deferred.exceptionHook=function(Pe,Qe){St.console&&St.console.warn&&Pe&&Qr.test(Pe.name)&&St.console.warn("jQuery.Deferred exception: "+Pe.message,Pe.stack,Qe)},Oe.readyException=function(Pe){St.setTimeout(function(){throw Pe})};var Jr=Oe.Deferred();Oe.fn.ready=function(Pe){return Jr.then(Pe).catch(function(Qe){Oe.readyException(Qe)}),this},Oe.extend({isReady:!1,readyWait:1,ready:function(Pe){(Pe===!0?--Oe.readyWait:Oe.isReady)||(Oe.isReady=!0,!(Pe!==!0&&--Oe.readyWait>0)&&Jr.resolveWith(Ze,[Oe]))}}),Oe.ready.then=Jr.then;function nn(){Ze.removeEventListener("DOMContentLoaded",nn),St.removeEventListener("load",nn),Oe.ready()}Ze.readyState==="complete"||Ze.readyState!=="loading"&&!Ze.documentElement.doScroll?St.setTimeout(Oe.ready):(Ze.addEventListener("DOMContentLoaded",nn),St.addEventListener("load",nn));var en=function(Pe,Qe,qe,tr,ur,cr,Br){var Lr=0,Rr=Pe.length,tn=qe==null;if(Ye(qe)==="object"){ur=!0;for(Lr in qe)en(Pe,Qe,Lr,qe[Lr],!0,cr,Br)}else if(tr!==void 0&&(ur=!0,Ve(tr)||(Br=!0),tn&&(Br?(Qe.call(Pe,tr),Qe=null):(tn=Qe,Qe=function(cn,xn,un){return tn.call(Oe(cn),un)})),Qe))for(;Lr<Rr;Lr++)Qe(Pe[Lr],qe,Br?tr:tr.call(Pe[Lr],Lr,Qe(Pe[Lr],qe)));return ur?Pe:tn?Qe.call(Pe):Rr?Qe(Pe[0],qe):cr},Bn=/^-ms-/,Sn=/-([a-z])/g;function Un(Pe,Qe){return Qe.toUpperCase()}function On(Pe){return Pe.replace(Bn,"ms-").replace(Sn,Un)}var zn=function(Pe){return Pe.nodeType===1||Pe.nodeType===9||!+Pe.nodeType};function fn(){this.expando=Oe.expando+fn.uid++}fn.uid=1,fn.prototype={cache:function(Pe){var Qe=Pe[this.expando];return Qe||(Qe={},zn(Pe)&&(Pe.nodeType?Pe[this.expando]=Qe:Object.defineProperty(Pe,this.expando,{value:Qe,configurable:!0}))),Qe},set:function(Pe,Qe,qe){var tr,ur=this.cache(Pe);if(typeof Qe=="string")ur[On(Qe)]=qe;else for(tr in Qe)ur[On(tr)]=Qe[tr];return ur},get:function(Pe,Qe){return Qe===void 0?this.cache(Pe):Pe[this.expando]&&Pe[this.expando][On(Qe)]},access:function(Pe,Qe,qe){return Qe===void 0||Qe&&typeof Qe=="string"&&qe===void 0?this.get(Pe,Qe):(this.set(Pe,Qe,qe),qe!==void 0?qe:Qe)},remove:function(Pe,Qe){var qe,tr=Pe[this.expando];if(tr!==void 0){if(Qe!==void 0)for(Array.isArray(Qe)?Qe=Qe.map(On):(Qe=On(Qe),Qe=Qe in tr?[Qe]:Qe.match(An)||[]),qe=Qe.length;qe--;)delete tr[Qe[qe]];(Qe===void 0||Oe.isEmptyObject(tr))&&(Pe.nodeType?Pe[this.expando]=void 0:delete Pe[this.expando])}},hasData:function(Pe){var Qe=Pe[this.expando];return Qe!==void 0&&!Oe.isEmptyObject(Qe)}};var Sr=new fn,Yn=new fn,Wn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tn=/[A-Z]/g;function $n(Pe){return Pe==="true"?!0:Pe==="false"?!1:Pe==="null"?null:Pe===+Pe+""?+Pe:Wn.test(Pe)?JSON.parse(Pe):Pe}function Dn(Pe,Qe,qe){var tr;if(qe===void 0&&Pe.nodeType===1)if(tr="data-"+Qe.replace(Tn,"-$&").toLowerCase(),qe=Pe.getAttribute(tr),typeof qe=="string"){try{qe=$n(qe)}catch{}Yn.set(Pe,Qe,qe)}else qe=void 0;return qe}Oe.extend({hasData:function(Pe){return Yn.hasData(Pe)||Sr.hasData(Pe)},data:function(Pe,Qe,qe){return Yn.access(Pe,Qe,qe)},removeData:function(Pe,Qe){Yn.remove(Pe,Qe)},_data:function(Pe,Qe,qe){return Sr.access(Pe,Qe,qe)},_removeData:function(Pe,Qe){Sr.remove(Pe,Qe)}}),Oe.fn.extend({data:function(Pe,Qe){var qe,tr,ur,cr=this[0],Br=cr&&cr.attributes;if(Pe===void 0){if(this.length&&(ur=Yn.get(cr),cr.nodeType===1&&!Sr.get(cr,"hasDataAttrs"))){for(qe=Br.length;qe--;)Br[qe]&&(tr=Br[qe].name,tr.indexOf("data-")===0&&(tr=On(tr.slice(5)),Dn(cr,tr,ur[tr])));Sr.set(cr,"hasDataAttrs",!0)}return ur}return typeof Pe=="object"?this.each(function(){Yn.set(this,Pe)}):en(this,function(Lr){var Rr;if(cr&&Lr===void 0)return Rr=Yn.get(cr,Pe),Rr!==void 0||(Rr=Dn(cr,Pe),Rr!==void 0)?Rr:void 0;this.each(function(){Yn.set(this,Pe,Lr)})},null,Qe,arguments.length>1,null,!0)},removeData:function(Pe){return this.each(function(){Yn.remove(this,Pe)})}}),Oe.extend({queue:function(Pe,Qe,qe){var tr;if(Pe)return Qe=(Qe||"fx")+"queue",tr=Sr.get(Pe,Qe),qe&&(!tr||Array.isArray(qe)?tr=Sr.access(Pe,Qe,Oe.makeArray(qe)):tr.push(qe)),tr||[]},dequeue:function(Pe,Qe){Qe=Qe||"fx";var qe=Oe.queue(Pe,Qe),tr=qe.length,ur=qe.shift(),cr=Oe._queueHooks(Pe,Qe),Br=function(){Oe.dequeue(Pe,Qe)};ur==="inprogress"&&(ur=qe.shift(),tr--),ur&&(Qe==="fx"&&qe.unshift("inprogress"),delete cr.stop,ur.call(Pe,Br,cr)),!tr&&cr&&cr.empty.fire()},_queueHooks:function(Pe,Qe){var qe=Qe+"queueHooks";return Sr.get(Pe,qe)||Sr.access(Pe,qe,{empty:Oe.Callbacks("once memory").add(function(){Sr.remove(Pe,[Qe+"queue",qe])})})}}),Oe.fn.extend({queue:function(Pe,Qe){var qe=2;return typeof Pe!="string"&&(Qe=Pe,Pe="fx",qe--),arguments.length<qe?Oe.queue(this[0],Pe):Qe===void 0?this:this.each(function(){var tr=Oe.queue(this,Pe,Qe);Oe._queueHooks(this,Pe),Pe==="fx"&&tr[0]!=="inprogress"&&Oe.dequeue(this,Pe)})},dequeue:function(Pe){return this.each(function(){Oe.dequeue(this,Pe)})},clearQueue:function(Pe){return this.queue(Pe||"fx",[])},promise:function(Pe,Qe){var qe,tr=1,ur=Oe.Deferred(),cr=this,Br=this.length,Lr=function(){--tr||ur.resolveWith(cr,[cr])};for(typeof Pe!="string"&&(Qe=Pe,Pe=void 0),Pe=Pe||"fx";Br--;)qe=Sr.get(cr[Br],Pe+"queueHooks"),qe&&qe.empty&&(tr++,qe.empty.add(Lr));return Lr(),ur.promise(Qe)}});var Rn=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Gn=new RegExp("^(?:([+-])=|)("+Rn+")([a-z%]*)$","i"),Kn=["Top","Right","Bottom","Left"],ti=Ze.documentElement,Ai=function(Pe){return Oe.contains(Pe.ownerDocument,Pe)},yi={composed:!0};ti.getRootNode&&(Ai=function(Pe){return Oe.contains(Pe.ownerDocument,Pe)||Pe.getRootNode(yi)===Pe.ownerDocument});var Bi=function(Pe,Qe){return Pe=Qe||Pe,Pe.style.display==="none"||Pe.style.display===""&&Ai(Pe)&&Oe.css(Pe,"display")==="none"};function ei(Pe,Qe,qe,tr){var ur,cr,Br=20,Lr=tr?function(){return tr.cur()}:function(){return Oe.css(Pe,Qe,"")},Rr=Lr(),tn=qe&&qe[3]||(Oe.cssNumber[Qe]?"":"px"),cn=Pe.nodeType&&(Oe.cssNumber[Qe]||tn!=="px"&&+Rr)&&Gn.exec(Oe.css(Pe,Qe));if(cn&&cn[3]!==tn){for(Rr=Rr/2,tn=tn||cn[3],cn=+Rr||1;Br--;)Oe.style(Pe,Qe,cn+tn),(1-cr)*(1-(cr=Lr()/Rr||.5))<=0&&(Br=0),cn=cn/cr;cn=cn*2,Oe.style(Pe,Qe,cn+tn),qe=qe||[]}return qe&&(cn=+cn||+Rr||0,ur=qe[1]?cn+(qe[1]+1)*qe[2]:+qe[2],tr&&(tr.unit=tn,tr.start=cn,tr.end=ur)),ur}var ci={};function Qn(Pe){var Qe,qe=Pe.ownerDocument,tr=Pe.nodeName,ur=ci[tr];return ur||(Qe=qe.body.appendChild(qe.createElement(tr)),ur=Oe.css(Qe,"display"),Qe.parentNode.removeChild(Qe),ur==="none"&&(ur="block"),ci[tr]=ur,ur)}function Ii(Pe,Qe){for(var qe,tr,ur=[],cr=0,Br=Pe.length;cr<Br;cr++)tr=Pe[cr],tr.style&&(qe=tr.style.display,Qe?(qe==="none"&&(ur[cr]=Sr.get(tr,"display")||null,ur[cr]||(tr.style.display="")),tr.style.display===""&&Bi(tr)&&(ur[cr]=Qn(tr))):qe!=="none"&&(ur[cr]="none",Sr.set(tr,"display",qe)));for(cr=0;cr<Br;cr++)ur[cr]!=null&&(Pe[cr].style.display=ur[cr]);return Pe}Oe.fn.extend({show:function(){return Ii(this,!0)},hide:function(){return Ii(this)},toggle:function(Pe){return typeof Pe=="boolean"?Pe?this.show():this.hide():this.each(function(){Bi(this)?Oe(this).show():Oe(this).hide()})}});var gi=/^(?:checkbox|radio)$/i,br=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ke=/^$|^module$|\/(?:java|ecma)script/i;(function(){var Pe=Ze.createDocumentFragment(),Qe=Pe.appendChild(Ze.createElement("div")),qe=Ze.createElement("input");qe.setAttribute("type","radio"),qe.setAttribute("checked","checked"),qe.setAttribute("name","t"),Qe.appendChild(qe),ze.checkClone=Qe.cloneNode(!0).cloneNode(!0).lastChild.checked,Qe.innerHTML="<textarea>x</textarea>",ze.noCloneChecked=!!Qe.cloneNode(!0).lastChild.defaultValue,Qe.innerHTML="<option></option>",ze.option=!!Qe.lastChild})();var je={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};je.tbody=je.tfoot=je.colgroup=je.caption=je.thead,je.th=je.td,ze.option||(je.optgroup=je.option=[1,"<select multiple='multiple'>","</select>"]);function sr(Pe,Qe){var qe;return typeof Pe.getElementsByTagName<"u"?qe=Pe.getElementsByTagName(Qe||"*"):typeof Pe.querySelectorAll<"u"?qe=Pe.querySelectorAll(Qe||"*"):qe=[],Qe===void 0||Qe&&ir(Pe,Qe)?Oe.merge([Pe],qe):qe}function dr(Pe,Qe){for(var qe=0,tr=Pe.length;qe<tr;qe++)Sr.set(Pe[qe],"globalEval",!Qe||Sr.get(Qe[qe],"globalEval"))}var Pr=/<|&#?\w+;/;function jr(Pe,Qe,qe,tr,ur){for(var cr,Br,Lr,Rr,tn,cn,xn=Qe.createDocumentFragment(),un=[],vn=0,ii=Pe.length;vn<ii;vn++)if(cr=Pe[vn],cr||cr===0)if(Ye(cr)==="object")Oe.merge(un,cr.nodeType?[cr]:cr);else if(!Pr.test(cr))un.push(Qe.createTextNode(cr));else{for(Br=Br||xn.appendChild(Qe.createElement("div")),Lr=(br.exec(cr)||["",""])[1].toLowerCase(),Rr=je[Lr]||je._default,Br.innerHTML=Rr[1]+Oe.htmlPrefilter(cr)+Rr[2],cn=Rr[0];cn--;)Br=Br.lastChild;Oe.merge(un,Br.childNodes),Br=xn.firstChild,Br.textContent=""}for(xn.textContent="",vn=0;cr=un[vn++];){if(tr&&Oe.inArray(cr,tr)>-1){ur&&ur.push(cr);continue}if(tn=Ai(cr),Br=sr(xn.appendChild(cr),"script"),tn&&dr(Br),qe)for(cn=0;cr=Br[cn++];)Ke.test(cr.type||"")&&qe.push(cr)}return xn}var wn=/^([^.]*)(?:\.(.+)|)/;function pn(){return!0}function Pn(){return!1}function Xe(Pe,Qe){return Pe===ke()==(Qe==="focus")}function ke(){try{return Ze.activeElement}catch{}}function Wr(Pe,Qe,qe,tr,ur,cr){var Br,Lr;if(typeof Qe=="object"){typeof qe!="string"&&(tr=tr||qe,qe=void 0);for(Lr in Qe)Wr(Pe,Lr,qe,tr,Qe[Lr],cr);return Pe}if(tr==null&&ur==null?(ur=qe,tr=qe=void 0):ur==null&&(typeof qe=="string"?(ur=tr,tr=void 0):(ur=tr,tr=qe,qe=void 0)),ur===!1)ur=Pn;else if(!ur)return Pe;return cr===1&&(Br=ur,ur=function(Rr){return Oe().off(Rr),Br.apply(this,arguments)},ur.guid=Br.guid||(Br.guid=Oe.guid++)),Pe.each(function(){Oe.event.add(this,Qe,ur,tr,qe)})}Oe.event={global:{},add:function(Pe,Qe,qe,tr,ur){var cr,Br,Lr,Rr,tn,cn,xn,un,vn,ii,di,ri=Sr.get(Pe);if(zn(Pe))for(qe.handler&&(cr=qe,qe=cr.handler,ur=cr.selector),ur&&Oe.find.matchesSelector(ti,ur),qe.guid||(qe.guid=Oe.guid++),(Rr=ri.events)||(Rr=ri.events=Object.create(null)),(Br=ri.handle)||(Br=ri.handle=function(Wi){return typeof Oe<"u"&&Oe.event.triggered!==Wi.type?Oe.event.dispatch.apply(Pe,arguments):void 0}),Qe=(Qe||"").match(An)||[""],tn=Qe.length;tn--;)Lr=wn.exec(Qe[tn])||[],vn=di=Lr[1],ii=(Lr[2]||"").split(".").sort(),vn&&(xn=Oe.event.special[vn]||{},vn=(ur?xn.delegateType:xn.bindType)||vn,xn=Oe.event.special[vn]||{},cn=Oe.extend({type:vn,origType:di,data:tr,handler:qe,guid:qe.guid,selector:ur,needsContext:ur&&Oe.expr.match.needsContext.test(ur),namespace:ii.join(".")},cr),(un=Rr[vn])||(un=Rr[vn]=[],un.delegateCount=0,(!xn.setup||xn.setup.call(Pe,tr,ii,Br)===!1)&&Pe.addEventListener&&Pe.addEventListener(vn,Br)),xn.add&&(xn.add.call(Pe,cn),cn.handler.guid||(cn.handler.guid=qe.guid)),ur?un.splice(un.delegateCount++,0,cn):un.push(cn),Oe.event.global[vn]=!0)},remove:function(Pe,Qe,qe,tr,ur){var cr,Br,Lr,Rr,tn,cn,xn,un,vn,ii,di,ri=Sr.hasData(Pe)&&Sr.get(Pe);if(!(!ri||!(Rr=ri.events))){for(Qe=(Qe||"").match(An)||[""],tn=Qe.length;tn--;){if(Lr=wn.exec(Qe[tn])||[],vn=di=Lr[1],ii=(Lr[2]||"").split(".").sort(),!vn){for(vn in Rr)Oe.event.remove(Pe,vn+Qe[tn],qe,tr,!0);continue}for(xn=Oe.event.special[vn]||{},vn=(tr?xn.delegateType:xn.bindType)||vn,un=Rr[vn]||[],Lr=Lr[2]&&new RegExp("(^|\\.)"+ii.join("\\.(?:.*\\.|)")+"(\\.|$)"),Br=cr=un.length;cr--;)cn=un[cr],(ur||di===cn.origType)&&(!qe||qe.guid===cn.guid)&&(!Lr||Lr.test(cn.namespace))&&(!tr||tr===cn.selector||tr==="**"&&cn.selector)&&(un.splice(cr,1),cn.selector&&un.delegateCount--,xn.remove&&xn.remove.call(Pe,cn));Br&&!un.length&&((!xn.teardown||xn.teardown.call(Pe,ii,ri.handle)===!1)&&Oe.removeEvent(Pe,vn,ri.handle),delete Rr[vn])}Oe.isEmptyObject(Rr)&&Sr.remove(Pe,"handle events")}},dispatch:function(Pe){var Qe,qe,tr,ur,cr,Br,Lr=new Array(arguments.length),Rr=Oe.event.fix(Pe),tn=(Sr.get(this,"events")||Object.create(null))[Rr.type]||[],cn=Oe.event.special[Rr.type]||{};for(Lr[0]=Rr,Qe=1;Qe<arguments.length;Qe++)Lr[Qe]=arguments[Qe];if(Rr.delegateTarget=this,!(cn.preDispatch&&cn.preDispatch.call(this,Rr)===!1)){for(Br=Oe.event.handlers.call(this,Rr,tn),Qe=0;(ur=Br[Qe++])&&!Rr.isPropagationStopped();)for(Rr.currentTarget=ur.elem,qe=0;(cr=ur.handlers[qe++])&&!Rr.isImmediatePropagationStopped();)(!Rr.rnamespace||cr.namespace===!1||Rr.rnamespace.test(cr.namespace))&&(Rr.handleObj=cr,Rr.data=cr.data,tr=((Oe.event.special[cr.origType]||{}).handle||cr.handler).apply(ur.elem,Lr),tr!==void 0&&(Rr.result=tr)===!1&&(Rr.preventDefault(),Rr.stopPropagation()));return cn.postDispatch&&cn.postDispatch.call(this,Rr),Rr.result}},handlers:function(Pe,Qe){var qe,tr,ur,cr,Br,Lr=[],Rr=Qe.delegateCount,tn=Pe.target;if(Rr&&tn.nodeType&&!(Pe.type==="click"&&Pe.button>=1)){for(;tn!==this;tn=tn.parentNode||this)if(tn.nodeType===1&&!(Pe.type==="click"&&tn.disabled===!0)){for(cr=[],Br={},qe=0;qe<Rr;qe++)tr=Qe[qe],ur=tr.selector+" ",Br[ur]===void 0&&(Br[ur]=tr.needsContext?Oe(ur,this).index(tn)>-1:Oe.find(ur,this,null,[tn]).length),Br[ur]&&cr.push(tr);cr.length&&Lr.push({elem:tn,handlers:cr})}}return tn=this,Rr<Qe.length&&Lr.push({elem:tn,handlers:Qe.slice(Rr)}),Lr},addProp:function(Pe,Qe){Object.defineProperty(Oe.Event.prototype,Pe,{enumerable:!0,configurable:!0,get:Ve(Qe)?function(){if(this.originalEvent)return Qe(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[Pe]},set:function(qe){Object.defineProperty(this,Pe,{enumerable:!0,configurable:!0,writable:!0,value:qe})}})},fix:function(Pe){return Pe[Oe.expando]?Pe:new Oe.Event(Pe)},special:{load:{noBubble:!0},click:{setup:function(Pe){var Qe=this||Pe;return gi.test(Qe.type)&&Qe.click&&ir(Qe,"input")&&bn(Qe,"click",pn),!1},trigger:function(Pe){var Qe=this||Pe;return gi.test(Qe.type)&&Qe.click&&ir(Qe,"input")&&bn(Qe,"click"),!0},_default:function(Pe){var Qe=Pe.target;return gi.test(Qe.type)&&Qe.click&&ir(Qe,"input")&&Sr.get(Qe,"click")||ir(Qe,"a")}},beforeunload:{postDispatch:function(Pe){Pe.result!==void 0&&Pe.originalEvent&&(Pe.originalEvent.returnValue=Pe.result)}}}};function bn(Pe,Qe,qe){if(!qe){Sr.get(Pe,Qe)===void 0&&Oe.event.add(Pe,Qe,pn);return}Sr.set(Pe,Qe,!1),Oe.event.add(Pe,Qe,{namespace:!1,handler:function(tr){var ur,cr,Br=Sr.get(this,Qe);if(tr.isTrigger&1&&this[Qe]){if(Br.length)(Oe.event.special[Qe]||{}).delegateType&&tr.stopPropagation();else if(Br=_e.call(arguments),Sr.set(this,Qe,Br),ur=qe(this,Qe),this[Qe](),cr=Sr.get(this,Qe),Br!==cr||ur?Sr.set(this,Qe,!1):cr={},Br!==cr)return tr.stopImmediatePropagation(),tr.preventDefault(),cr&&cr.value}else Br.length&&(Sr.set(this,Qe,{value:Oe.event.trigger(Oe.extend(Br[0],Oe.Event.prototype),Br.slice(1),this)}),tr.stopImmediatePropagation())}})}Oe.removeEvent=function(Pe,Qe,qe){Pe.removeEventListener&&Pe.removeEventListener(Qe,qe)},Oe.Event=function(Pe,Qe){if(!(this instanceof Oe.Event))return new Oe.Event(Pe,Qe);Pe&&Pe.type?(this.originalEvent=Pe,this.type=Pe.type,this.isDefaultPrevented=Pe.defaultPrevented||Pe.defaultPrevented===void 0&&Pe.returnValue===!1?pn:Pn,this.target=Pe.target&&Pe.target.nodeType===3?Pe.target.parentNode:Pe.target,this.currentTarget=Pe.currentTarget,this.relatedTarget=Pe.relatedTarget):this.type=Pe,Qe&&Oe.extend(this,Qe),this.timeStamp=Pe&&Pe.timeStamp||Date.now(),this[Oe.expando]=!0},Oe.Event.prototype={constructor:Oe.Event,isDefaultPrevented:Pn,isPropagationStopped:Pn,isImmediatePropagationStopped:Pn,isSimulated:!1,preventDefault:function(){var Pe=this.originalEvent;this.isDefaultPrevented=pn,Pe&&!this.isSimulated&&Pe.preventDefault()},stopPropagation:function(){var Pe=this.originalEvent;this.isPropagationStopped=pn,Pe&&!this.isSimulated&&Pe.stopPropagation()},stopImmediatePropagation:function(){var Pe=this.originalEvent;this.isImmediatePropagationStopped=pn,Pe&&!this.isSimulated&&Pe.stopImmediatePropagation(),this.stopPropagation()}},Oe.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Oe.event.addProp),Oe.each({focus:"focusin",blur:"focusout"},function(Pe,Qe){Oe.event.special[Pe]={setup:function(){return bn(this,Pe,Xe),!1},trigger:function(){return bn(this,Pe),!0},_default:function(){return!0},delegateType:Qe}}),Oe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(Pe,Qe){Oe.event.special[Pe]={delegateType:Qe,bindType:Qe,handle:function(qe){var tr,ur=this,cr=qe.relatedTarget,Br=qe.handleObj;return(!cr||cr!==ur&&!Oe.contains(ur,cr))&&(qe.type=Br.origType,tr=Br.handler.apply(this,arguments),qe.type=Qe),tr}}}),Oe.fn.extend({on:function(Pe,Qe,qe,tr){return Wr(this,Pe,Qe,qe,tr)},one:function(Pe,Qe,qe,tr){return Wr(this,Pe,Qe,qe,tr,1)},off:function(Pe,Qe,qe){var tr,ur;if(Pe&&Pe.preventDefault&&Pe.handleObj)return tr=Pe.handleObj,Oe(Pe.delegateTarget).off(tr.namespace?tr.origType+"."+tr.namespace:tr.origType,tr.selector,tr.handler),this;if(typeof Pe=="object"){for(ur in Pe)this.off(ur,Qe,Pe[ur]);return this}return(Qe===!1||typeof Qe=="function")&&(qe=Qe,Qe=void 0),qe===!1&&(qe=Pn),this.each(function(){Oe.event.remove(this,Pe,qe,Qe)})}});var Jn=/<script|<style|<link/i,pi=/checked\s*(?:[^=]|=\s*.checked.)/i,Mn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ti(Pe,Qe){return ir(Pe,"table")&&ir(Qe.nodeType!==11?Qe:Qe.firstChild,"tr")&&Oe(Pe).children("tbody")[0]||Pe}function Oi(Pe){return Pe.type=(Pe.getAttribute("type")!==null)+"/"+Pe.type,Pe}function Ni(Pe){return(Pe.type||"").slice(0,5)==="true/"?Pe.type=Pe.type.slice(5):Pe.removeAttribute("type"),Pe}function Hi(Pe,Qe){var qe,tr,ur,cr,Br,Lr,Rr;if(Qe.nodeType===1){if(Sr.hasData(Pe)&&(cr=Sr.get(Pe),Rr=cr.events,Rr)){Sr.remove(Qe,"handle events");for(ur in Rr)for(qe=0,tr=Rr[ur].length;qe<tr;qe++)Oe.event.add(Qe,ur,Rr[ur][qe])}Yn.hasData(Pe)&&(Br=Yn.access(Pe),Lr=Oe.extend({},Br),Yn.set(Qe,Lr))}}function Ki(Pe,Qe){var qe=Qe.nodeName.toLowerCase();qe==="input"&&gi.test(Pe.type)?Qe.checked=Pe.checked:(qe==="input"||qe==="textarea")&&(Qe.defaultValue=Pe.defaultValue)}function Zi(Pe,Qe,qe,tr){Qe=Te(Qe);var ur,cr,Br,Lr,Rr,tn,cn=0,xn=Pe.length,un=xn-1,vn=Qe[0],ii=Ve(vn);if(ii||xn>1&&typeof vn=="string"&&!ze.checkClone&&pi.test(vn))return Pe.each(function(di){var ri=Pe.eq(di);ii&&(Qe[0]=vn.call(this,di,ri.html())),Zi(ri,Qe,qe,tr)});if(xn&&(ur=jr(Qe,Pe[0].ownerDocument,!1,Pe,tr),cr=ur.firstChild,ur.childNodes.length===1&&(ur=cr),cr||tr)){for(Br=Oe.map(sr(ur,"script"),Oi),Lr=Br.length;cn<xn;cn++)Rr=ur,cn!==un&&(Rr=Oe.clone(Rr,!0,!0),Lr&&Oe.merge(Br,sr(Rr,"script"))),qe.call(Pe[cn],Rr,cn);if(Lr)for(tn=Br[Br.length-1].ownerDocument,Oe.map(Br,Ni),cn=0;cn<Lr;cn++)Rr=Br[cn],Ke.test(Rr.type||"")&&!Sr.access(Rr,"globalEval")&&Oe.contains(tn,Rr)&&(Rr.src&&(Rr.type||"").toLowerCase()!=="module"?Oe._evalUrl&&!Rr.noModule&&Oe._evalUrl(Rr.src,{nonce:Rr.nonce||Rr.getAttribute("nonce")},tn):fr(Rr.textContent.replace(Mn,""),Rr,tn))}return Pe}function oo(Pe,Qe,qe){for(var tr,ur=Qe?Oe.filter(Qe,Pe):Pe,cr=0;(tr=ur[cr])!=null;cr++)!qe&&tr.nodeType===1&&Oe.cleanData(sr(tr)),tr.parentNode&&(qe&&Ai(tr)&&dr(sr(tr,"script")),tr.parentNode.removeChild(tr));return Pe}Oe.extend({htmlPrefilter:function(Pe){return Pe},clone:function(Pe,Qe,qe){var tr,ur,cr,Br,Lr=Pe.cloneNode(!0),Rr=Ai(Pe);if(!ze.noCloneChecked&&(Pe.nodeType===1||Pe.nodeType===11)&&!Oe.isXMLDoc(Pe))for(Br=sr(Lr),cr=sr(Pe),tr=0,ur=cr.length;tr<ur;tr++)Ki(cr[tr],Br[tr]);if(Qe)if(qe)for(cr=cr||sr(Pe),Br=Br||sr(Lr),tr=0,ur=cr.length;tr<ur;tr++)Hi(cr[tr],Br[tr]);else Hi(Pe,Lr);return Br=sr(Lr,"script"),Br.length>0&&dr(Br,!Rr&&sr(Pe,"script")),Lr},cleanData:function(Pe){for(var Qe,qe,tr,ur=Oe.event.special,cr=0;(qe=Pe[cr])!==void 0;cr++)if(zn(qe)){if(Qe=qe[Sr.expando]){if(Qe.events)for(tr in Qe.events)ur[tr]?Oe.event.remove(qe,tr):Oe.removeEvent(qe,tr,Qe.handle);qe[Sr.expando]=void 0}qe[Yn.expando]&&(qe[Yn.expando]=void 0)}}}),Oe.fn.extend({detach:function(Pe){return oo(this,Pe,!0)},remove:function(Pe){return oo(this,Pe)},text:function(Pe){return en(this,function(Qe){return Qe===void 0?Oe.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=Qe)})},null,Pe,arguments.length)},append:function(){return Zi(this,arguments,function(Pe){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Qe=Ti(this,Pe);Qe.appendChild(Pe)}})},prepend:function(){return Zi(this,arguments,function(Pe){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Qe=Ti(this,Pe);Qe.insertBefore(Pe,Qe.firstChild)}})},before:function(){return Zi(this,arguments,function(Pe){this.parentNode&&this.parentNode.insertBefore(Pe,this)})},after:function(){return Zi(this,arguments,function(Pe){this.parentNode&&this.parentNode.insertBefore(Pe,this.nextSibling)})},empty:function(){for(var Pe,Qe=0;(Pe=this[Qe])!=null;Qe++)Pe.nodeType===1&&(Oe.cleanData(sr(Pe,!1)),Pe.textContent="");return this},clone:function(Pe,Qe){return Pe=Pe??!1,Qe=Qe??Pe,this.map(function(){return Oe.clone(this,Pe,Qe)})},html:function(Pe){return en(this,function(Qe){var qe=this[0]||{},tr=0,ur=this.length;if(Qe===void 0&&qe.nodeType===1)return qe.innerHTML;if(typeof Qe=="string"&&!Jn.test(Qe)&&!je[(br.exec(Qe)||["",""])[1].toLowerCase()]){Qe=Oe.htmlPrefilter(Qe);try{for(;tr<ur;tr++)qe=this[tr]||{},qe.nodeType===1&&(Oe.cleanData(sr(qe,!1)),qe.innerHTML=Qe);qe=0}catch{}}qe&&this.empty().append(Qe)},null,Pe,arguments.length)},replaceWith:function(){var Pe=[];return Zi(this,arguments,function(Qe){var qe=this.parentNode;Oe.inArray(this,Pe)<0&&(Oe.cleanData(sr(this)),qe&&qe.replaceChild(Qe,this))},Pe)}}),Oe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(Pe,Qe){Oe.fn[Pe]=function(qe){for(var tr,ur=[],cr=Oe(qe),Br=cr.length-1,Lr=0;Lr<=Br;Lr++)tr=Lr===Br?this:this.clone(!0),Oe(cr[Lr])[Qe](tr),Se.apply(ur,tr.get());return this.pushStack(ur)}});var fA=new RegExp("^("+Rn+")(?!px)[a-z%]+$","i"),qi=function(Pe){var Qe=Pe.ownerDocument.defaultView;return(!Qe||!Qe.opener)&&(Qe=St),Qe.getComputedStyle(Pe)},wA=function(Pe,Qe,qe){var tr,ur,cr={};for(ur in Qe)cr[ur]=Pe.style[ur],Pe.style[ur]=Qe[ur];tr=qe.call(Pe);for(ur in Qe)Pe.style[ur]=cr[ur];return tr},TA=new RegExp(Kn.join("|"),"i");(function(){function Pe(){if(tn){Rr.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",tn.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ti.appendChild(Rr).appendChild(tn);var cn=St.getComputedStyle(tn);qe=cn.top!=="1%",Lr=Qe(cn.marginLeft)===12,tn.style.right="60%",cr=Qe(cn.right)===36,tr=Qe(cn.width)===36,tn.style.position="absolute",ur=Qe(tn.offsetWidth/3)===12,ti.removeChild(Rr),tn=null}}function Qe(cn){return Math.round(parseFloat(cn))}var qe,tr,ur,cr,Br,Lr,Rr=Ze.createElement("div"),tn=Ze.createElement("div");tn.style&&(tn.style.backgroundClip="content-box",tn.cloneNode(!0).style.backgroundClip="",ze.clearCloneStyle=tn.style.backgroundClip==="content-box",Oe.extend(ze,{boxSizingReliable:function(){return Pe(),tr},pixelBoxStyles:function(){return Pe(),cr},pixelPosition:function(){return Pe(),qe},reliableMarginLeft:function(){return Pe(),Lr},scrollboxSize:function(){return Pe(),ur},reliableTrDimensions:function(){var cn,xn,un,vn;return Br==null&&(cn=Ze.createElement("table"),xn=Ze.createElement("tr"),un=Ze.createElement("div"),cn.style.cssText="position:absolute;left:-11111px;border-collapse:separate",xn.style.cssText="border:1px solid",xn.style.height="1px",un.style.height="9px",un.style.display="block",ti.appendChild(cn).appendChild(xn).appendChild(un),vn=St.getComputedStyle(xn),Br=parseInt(vn.height,10)+parseInt(vn.borderTopWidth,10)+parseInt(vn.borderBottomWidth,10)===xn.offsetHeight,ti.removeChild(cn)),Br}}))})();function hA(Pe,Qe,qe){var tr,ur,cr,Br,Lr=Pe.style;return qe=qe||qi(Pe),qe&&(Br=qe.getPropertyValue(Qe)||qe[Qe],Br===""&&!Ai(Pe)&&(Br=Oe.style(Pe,Qe)),!ze.pixelBoxStyles()&&fA.test(Br)&&TA.test(Qe)&&(tr=Lr.width,ur=Lr.minWidth,cr=Lr.maxWidth,Lr.minWidth=Lr.maxWidth=Lr.width=Br,Br=qe.width,Lr.width=tr,Lr.minWidth=ur,Lr.maxWidth=cr)),Br!==void 0?Br+"":Br}function gA(Pe,Qe){return{get:function(){if(Pe()){delete this.get;return}return(this.get=Qe).apply(this,arguments)}}}var OA=["Webkit","Moz","ms"],Zn=Ze.createElement("div").style,Yr={};function Ln(Pe){for(var Qe=Pe[0].toUpperCase()+Pe.slice(1),qe=OA.length;qe--;)if(Pe=OA[qe]+Qe,Pe in Zn)return Pe}function Hn(Pe){var Qe=Oe.cssProps[Pe]||Yr[Pe];return Qe||(Pe in Zn?Pe:Yr[Pe]=Ln(Pe)||Pe)}var _i=/^(none|table(?!-c[ea]).+)/,rA=/^--/,nA={position:"absolute",visibility:"hidden",display:"block"},Xi={letterSpacing:"0",fontWeight:"400"};function MA(Pe,Qe,qe){var tr=Gn.exec(Qe);return tr?Math.max(0,tr[2]-(qe||0))+(tr[3]||"px"):Qe}function ji(Pe,Qe,qe,tr,ur,cr){var Br=Qe==="width"?1:0,Lr=0,Rr=0;if(qe===(tr?"border":"content"))return 0;for(;Br<4;Br+=2)qe==="margin"&&(Rr+=Oe.css(Pe,qe+Kn[Br],!0,ur)),tr?(qe==="content"&&(Rr-=Oe.css(Pe,"padding"+Kn[Br],!0,ur)),qe!=="margin"&&(Rr-=Oe.css(Pe,"border"+Kn[Br]+"Width",!0,ur))):(Rr+=Oe.css(Pe,"padding"+Kn[Br],!0,ur),qe!=="padding"?Rr+=Oe.css(Pe,"border"+Kn[Br]+"Width",!0,ur):Lr+=Oe.css(Pe,"border"+Kn[Br]+"Width",!0,ur));return!tr&&cr>=0&&(Rr+=Math.max(0,Math.ceil(Pe["offset"+Qe[0].toUpperCase()+Qe.slice(1)]-cr-Rr-Lr-.5))||0),Rr}function go(Pe,Qe,qe){var tr=qi(Pe),ur=!ze.boxSizingReliable()||qe,cr=ur&&Oe.css(Pe,"boxSizing",!1,tr)==="border-box",Br=cr,Lr=hA(Pe,Qe,tr),Rr="offset"+Qe[0].toUpperCase()+Qe.slice(1);if(fA.test(Lr)){if(!qe)return Lr;Lr="auto"}return(!ze.boxSizingReliable()&&cr||!ze.reliableTrDimensions()&&ir(Pe,"tr")||Lr==="auto"||!parseFloat(Lr)&&Oe.css(Pe,"display",!1,tr)==="inline")&&Pe.getClientRects().length&&(cr=Oe.css(Pe,"boxSizing",!1,tr)==="border-box",Br=Rr in Pe,Br&&(Lr=Pe[Rr])),Lr=parseFloat(Lr)||0,Lr+ji(Pe,Qe,qe||(cr?"border":"content"),Br,tr,Lr)+"px"}Oe.extend({cssHooks:{opacity:{get:function(Pe,Qe){if(Qe){var qe=hA(Pe,"opacity");return qe===""?"1":qe}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(Pe,Qe,qe,tr){if(!(!Pe||Pe.nodeType===3||Pe.nodeType===8||!Pe.style)){var ur,cr,Br,Lr=On(Qe),Rr=rA.test(Qe),tn=Pe.style;if(Rr||(Qe=Hn(Lr)),Br=Oe.cssHooks[Qe]||Oe.cssHooks[Lr],qe!==void 0){if(cr=typeof qe,cr==="string"&&(ur=Gn.exec(qe))&&ur[1]&&(qe=ei(Pe,Qe,ur),cr="number"),qe==null||qe!==qe)return;cr==="number"&&!Rr&&(qe+=ur&&ur[3]||(Oe.cssNumber[Lr]?"":"px")),!ze.clearCloneStyle&&qe===""&&Qe.indexOf("background")===0&&(tn[Qe]="inherit"),(!Br||!("set"in Br)||(qe=Br.set(Pe,qe,tr))!==void 0)&&(Rr?tn.setProperty(Qe,qe):tn[Qe]=qe)}else return Br&&"get"in Br&&(ur=Br.get(Pe,!1,tr))!==void 0?ur:tn[Qe]}},css:function(Pe,Qe,qe,tr){var ur,cr,Br,Lr=On(Qe),Rr=rA.test(Qe);return Rr||(Qe=Hn(Lr)),Br=Oe.cssHooks[Qe]||Oe.cssHooks[Lr],Br&&"get"in Br&&(ur=Br.get(Pe,!0,qe)),ur===void 0&&(ur=hA(Pe,Qe,tr)),ur==="normal"&&Qe in Xi&&(ur=Xi[Qe]),qe===""||qe?(cr=parseFloat(ur),qe===!0||isFinite(cr)?cr||0:ur):ur}}),Oe.each(["height","width"],function(Pe,Qe){Oe.cssHooks[Qe]={get:function(qe,tr,ur){if(tr)return _i.test(Oe.css(qe,"display"))&&(!qe.getClientRects().length||!qe.getBoundingClientRect().width)?wA(qe,nA,function(){return go(qe,Qe,ur)}):go(qe,Qe,ur)},set:function(qe,tr,ur){var cr,Br=qi(qe),Lr=!ze.scrollboxSize()&&Br.position==="absolute",Rr=Lr||ur,tn=Rr&&Oe.css(qe,"boxSizing",!1,Br)==="border-box",cn=ur?ji(qe,Qe,ur,tn,Br):0;return tn&&Lr&&(cn-=Math.ceil(qe["offset"+Qe[0].toUpperCase()+Qe.slice(1)]-parseFloat(Br[Qe])-ji(qe,Qe,"border",!1,Br)-.5)),cn&&(cr=Gn.exec(tr))&&(cr[3]||"px")!=="px"&&(qe.style[Qe]=tr,tr=Oe.css(qe,Qe)),MA(qe,tr,cn)}}}),Oe.cssHooks.marginLeft=gA(ze.reliableMarginLeft,function(Pe,Qe){if(Qe)return(parseFloat(hA(Pe,"marginLeft"))||Pe.getBoundingClientRect().left-wA(Pe,{marginLeft:0},function(){return Pe.getBoundingClientRect().left}))+"px"}),Oe.each({margin:"",padding:"",border:"Width"},function(Pe,Qe){Oe.cssHooks[Pe+Qe]={expand:function(qe){for(var tr=0,ur={},cr=typeof qe=="string"?qe.split(" "):[qe];tr<4;tr++)ur[Pe+Kn[tr]+Qe]=cr[tr]||cr[tr-2]||cr[0];return ur}},Pe!=="margin"&&(Oe.cssHooks[Pe+Qe].set=MA)}),Oe.fn.extend({css:function(Pe,Qe){return en(this,function(qe,tr,ur){var cr,Br,Lr={},Rr=0;if(Array.isArray(tr)){for(cr=qi(qe),Br=tr.length;Rr<Br;Rr++)Lr[tr[Rr]]=Oe.css(qe,tr[Rr],!1,cr);return Lr}return ur!==void 0?Oe.style(qe,tr,ur):Oe.css(qe,tr)},Pe,Qe,arguments.length>1)}});function tA(Pe,Qe,qe,tr,ur){return new tA.prototype.init(Pe,Qe,qe,tr,ur)}Oe.Tween=tA,tA.prototype={constructor:tA,init:function(Pe,Qe,qe,tr,ur,cr){this.elem=Pe,this.prop=qe,this.easing=ur||Oe.easing._default,this.options=Qe,this.start=this.now=this.cur(),this.end=tr,this.unit=cr||(Oe.cssNumber[qe]?"":"px")},cur:function(){var Pe=tA.propHooks[this.prop];return Pe&&Pe.get?Pe.get(this):tA.propHooks._default.get(this)},run:function(Pe){var Qe,qe=tA.propHooks[this.prop];return this.options.duration?this.pos=Qe=Oe.easing[this.easing](Pe,this.options.duration*Pe,0,1,this.options.duration):this.pos=Qe=Pe,this.now=(this.end-this.start)*Qe+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),qe&&qe.set?qe.set(this):tA.propHooks._default.set(this),this}},tA.prototype.init.prototype=tA.prototype,tA.propHooks={_default:{get:function(Pe){var Qe;return Pe.elem.nodeType!==1||Pe.elem[Pe.prop]!=null&&Pe.elem.style[Pe.prop]==null?Pe.elem[Pe.prop]:(Qe=Oe.css(Pe.elem,Pe.prop,""),!Qe||Qe==="auto"?0:Qe)},set:function(Pe){Oe.fx.step[Pe.prop]?Oe.fx.step[Pe.prop](Pe):Pe.elem.nodeType===1&&(Oe.cssHooks[Pe.prop]||Pe.elem.style[Hn(Pe.prop)]!=null)?Oe.style(Pe.elem,Pe.prop,Pe.now+Pe.unit):Pe.elem[Pe.prop]=Pe.now}}},tA.propHooks.scrollTop=tA.propHooks.scrollLeft={set:function(Pe){Pe.elem.nodeType&&Pe.elem.parentNode&&(Pe.elem[Pe.prop]=Pe.now)}},Oe.easing={linear:function(Pe){return Pe},swing:function(Pe){return .5-Math.cos(Pe*Math.PI)/2},_default:"swing"},Oe.fx=tA.prototype.init,Oe.fx.step={};var ao,So,Oa=/^(?:toggle|show|hide)$/,Do=/queueHooks$/;function ea(){So&&(Ze.hidden===!1&&St.requestAnimationFrame?St.requestAnimationFrame(ea):St.setTimeout(ea,Oe.fx.interval),Oe.fx.tick())}function Ji(){return St.setTimeout(function(){ao=void 0}),ao=Date.now()}function xo(Pe,Qe){var qe,tr=0,ur={height:Pe};for(Qe=Qe?1:0;tr<4;tr+=2-Qe)qe=Kn[tr],ur["margin"+qe]=ur["padding"+qe]=Pe;return Qe&&(ur.opacity=ur.width=Pe),ur}function ra(Pe,Qe,qe){for(var tr,ur=(NA.tweeners[Qe]||[]).concat(NA.tweeners["*"]),cr=0,Br=ur.length;cr<Br;cr++)if(tr=ur[cr].call(qe,Qe,Pe))return tr}function da(Pe,Qe,qe){var tr,ur,cr,Br,Lr,Rr,tn,cn,xn="width"in Qe||"height"in Qe,un=this,vn={},ii=Pe.style,di=Pe.nodeType&&Bi(Pe),ri=Sr.get(Pe,"fxshow");qe.queue||(Br=Oe._queueHooks(Pe,"fx"),Br.unqueued==null&&(Br.unqueued=0,Lr=Br.empty.fire,Br.empty.fire=function(){Br.unqueued||Lr()}),Br.unqueued++,un.always(function(){un.always(function(){Br.unqueued--,Oe.queue(Pe,"fx").length||Br.empty.fire()})}));for(tr in Qe)if(ur=Qe[tr],Oa.test(ur)){if(delete Qe[tr],cr=cr||ur==="toggle",ur===(di?"hide":"show"))if(ur==="show"&&ri&&ri[tr]!==void 0)di=!0;else continue;vn[tr]=ri&&ri[tr]||Oe.style(Pe,tr)}if(Rr=!Oe.isEmptyObject(Qe),!(!Rr&&Oe.isEmptyObject(vn))){xn&&Pe.nodeType===1&&(qe.overflow=[ii.overflow,ii.overflowX,ii.overflowY],tn=ri&&ri.display,tn==null&&(tn=Sr.get(Pe,"display")),cn=Oe.css(Pe,"display"),cn==="none"&&(tn?cn=tn:(Ii([Pe],!0),tn=Pe.style.display||tn,cn=Oe.css(Pe,"display"),Ii([Pe]))),(cn==="inline"||cn==="inline-block"&&tn!=null)&&Oe.css(Pe,"float")==="none"&&(Rr||(un.done(function(){ii.display=tn}),tn==null&&(cn=ii.display,tn=cn==="none"?"":cn)),ii.display="inline-block")),qe.overflow&&(ii.overflow="hidden",un.always(function(){ii.overflow=qe.overflow[0],ii.overflowX=qe.overflow[1],ii.overflowY=qe.overflow[2]})),Rr=!1;for(tr in vn)Rr||(ri?"hidden"in ri&&(di=ri.hidden):ri=Sr.access(Pe,"fxshow",{display:tn}),cr&&(ri.hidden=!di),di&&Ii([Pe],!0),un.done(function(){di||Ii([Pe]),Sr.remove(Pe,"fxshow");for(tr in vn)Oe.style(Pe,tr,vn[tr])})),Rr=ra(di?ri[tr]:0,tr,un),tr in ri||(ri[tr]=Rr.start,di&&(Rr.end=Rr.start,Rr.start=0))}}function na(Pe,Qe){var qe,tr,ur,cr,Br;for(qe in Pe)if(tr=On(qe),ur=Qe[tr],cr=Pe[qe],Array.isArray(cr)&&(ur=cr[1],cr=Pe[qe]=cr[0]),qe!==tr&&(Pe[tr]=cr,delete Pe[qe]),Br=Oe.cssHooks[tr],Br&&"expand"in Br){cr=Br.expand(cr),delete Pe[tr];for(qe in cr)qe in Pe||(Pe[qe]=cr[qe],Qe[qe]=ur)}else Qe[tr]=ur}function NA(Pe,Qe,qe){var tr,ur,cr=0,Br=NA.prefilters.length,Lr=Oe.Deferred().always(function(){delete Rr.elem}),Rr=function(){if(ur)return!1;for(var xn=ao||Ji(),un=Math.max(0,tn.startTime+tn.duration-xn),vn=un/tn.duration||0,ii=1-vn,di=0,ri=tn.tweens.length;di<ri;di++)tn.tweens[di].run(ii);return Lr.notifyWith(Pe,[tn,ii,un]),ii<1&&ri?un:(ri||Lr.notifyWith(Pe,[tn,1,0]),Lr.resolveWith(Pe,[tn]),!1)},tn=Lr.promise({elem:Pe,props:Oe.extend({},Qe),opts:Oe.extend(!0,{specialEasing:{},easing:Oe.easing._default},qe),originalProperties:Qe,originalOptions:qe,startTime:ao||Ji(),duration:qe.duration,tweens:[],createTween:function(xn,un){var vn=Oe.Tween(Pe,tn.opts,xn,un,tn.opts.specialEasing[xn]||tn.opts.easing);return tn.tweens.push(vn),vn},stop:function(xn){var un=0,vn=xn?tn.tweens.length:0;if(ur)return this;for(ur=!0;un<vn;un++)tn.tweens[un].run(1);return xn?(Lr.notifyWith(Pe,[tn,1,0]),Lr.resolveWith(Pe,[tn,xn])):Lr.rejectWith(Pe,[tn,xn]),this}}),cn=tn.props;for(na(cn,tn.opts.specialEasing);cr<Br;cr++)if(tr=NA.prefilters[cr].call(tn,Pe,cn,tn.opts),tr)return Ve(tr.stop)&&(Oe._queueHooks(tn.elem,tn.opts.queue).stop=tr.stop.bind(tr)),tr;return Oe.map(cn,ra,tn),Ve(tn.opts.start)&&tn.opts.start.call(Pe,tn),tn.progress(tn.opts.progress).done(tn.opts.done,tn.opts.complete).fail(tn.opts.fail).always(tn.opts.always),Oe.fx.timer(Oe.extend(Rr,{elem:Pe,anim:tn,queue:tn.opts.queue})),tn}Oe.Animation=Oe.extend(NA,{tweeners:{"*":[function(Pe,Qe){var qe=this.createTween(Pe,Qe);return ei(qe.elem,Pe,Gn.exec(Qe),qe),qe}]},tweener:function(Pe,Qe){Ve(Pe)?(Qe=Pe,Pe=["*"]):Pe=Pe.match(An);for(var qe,tr=0,ur=Pe.length;tr<ur;tr++)qe=Pe[tr],NA.tweeners[qe]=NA.tweeners[qe]||[],NA.tweeners[qe].unshift(Qe)},prefilters:[da],prefilter:function(Pe,Qe){Qe?NA.prefilters.unshift(Pe):NA.prefilters.push(Pe)}}),Oe.speed=function(Pe,Qe,qe){var tr=Pe&&typeof Pe=="object"?Oe.extend({},Pe):{complete:qe||!qe&&Qe||Ve(Pe)&&Pe,duration:Pe,easing:qe&&Qe||Qe&&!Ve(Qe)&&Qe};return Oe.fx.off?tr.duration=0:typeof tr.duration!="number"&&(tr.duration in Oe.fx.speeds?tr.duration=Oe.fx.speeds[tr.duration]:tr.duration=Oe.fx.speeds._default),(tr.queue==null||tr.queue===!0)&&(tr.queue="fx"),tr.old=tr.complete,tr.complete=function(){Ve(tr.old)&&tr.old.call(this),tr.queue&&Oe.dequeue(this,tr.queue)},tr},Oe.fn.extend({fadeTo:function(Pe,Qe,qe,tr){return this.filter(Bi).css("opacity",0).show().end().animate({opacity:Qe},Pe,qe,tr)},animate:function(Pe,Qe,qe,tr){var ur=Oe.isEmptyObject(Pe),cr=Oe.speed(Qe,qe,tr),Br=function(){var Lr=NA(this,Oe.extend({},Pe),cr);(ur||Sr.get(this,"finish"))&&Lr.stop(!0)};return Br.finish=Br,ur||cr.queue===!1?this.each(Br):this.queue(cr.queue,Br)},stop:function(Pe,Qe,qe){var tr=function(ur){var cr=ur.stop;delete ur.stop,cr(qe)};return typeof Pe!="string"&&(qe=Qe,Qe=Pe,Pe=void 0),Qe&&this.queue(Pe||"fx",[]),this.each(function(){var ur=!0,cr=Pe!=null&&Pe+"queueHooks",Br=Oe.timers,Lr=Sr.get(this);if(cr)Lr[cr]&&Lr[cr].stop&&tr(Lr[cr]);else for(cr in Lr)Lr[cr]&&Lr[cr].stop&&Do.test(cr)&&tr(Lr[cr]);for(cr=Br.length;cr--;)Br[cr].elem===this&&(Pe==null||Br[cr].queue===Pe)&&(Br[cr].anim.stop(qe),ur=!1,Br.splice(cr,1));(ur||!qe)&&Oe.dequeue(this,Pe)})},finish:function(Pe){return Pe!==!1&&(Pe=Pe||"fx"),this.each(function(){var Qe,qe=Sr.get(this),tr=qe[Pe+"queue"],ur=qe[Pe+"queueHooks"],cr=Oe.timers,Br=tr?tr.length:0;for(qe.finish=!0,Oe.queue(this,Pe,[]),ur&&ur.stop&&ur.stop.call(this,!0),Qe=cr.length;Qe--;)cr[Qe].elem===this&&cr[Qe].queue===Pe&&(cr[Qe].anim.stop(!0),cr.splice(Qe,1));for(Qe=0;Qe<Br;Qe++)tr[Qe]&&tr[Qe].finish&&tr[Qe].finish.call(this);delete qe.finish})}}),Oe.each(["toggle","show","hide"],function(Pe,Qe){var qe=Oe.fn[Qe];Oe.fn[Qe]=function(tr,ur,cr){return tr==null||typeof tr=="boolean"?qe.apply(this,arguments):this.animate(xo(Qe,!0),tr,ur,cr)}}),Oe.each({slideDown:xo("show"),slideUp:xo("hide"),slideToggle:xo("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(Pe,Qe){Oe.fn[Pe]=function(qe,tr,ur){return this.animate(Qe,qe,tr,ur)}}),Oe.timers=[],Oe.fx.tick=function(){var Pe,Qe=0,qe=Oe.timers;for(ao=Date.now();Qe<qe.length;Qe++)Pe=qe[Qe],!Pe()&&qe[Qe]===Pe&&qe.splice(Qe--,1);qe.length||Oe.fx.stop(),ao=void 0},Oe.fx.timer=function(Pe){Oe.timers.push(Pe),Oe.fx.start()},Oe.fx.interval=13,Oe.fx.start=function(){So||(So=!0,ea())},Oe.fx.stop=function(){So=null},Oe.fx.speeds={slow:600,fast:200,_default:400},Oe.fn.delay=function(Pe,Qe){return Pe=Oe.fx&&Oe.fx.speeds[Pe]||Pe,Qe=Qe||"fx",this.queue(Qe,function(qe,tr){var ur=St.setTimeout(qe,Pe);tr.stop=function(){St.clearTimeout(ur)}})},function(){var Pe=Ze.createElement("input"),Qe=Ze.createElement("select"),qe=Qe.appendChild(Ze.createElement("option"));Pe.type="checkbox",ze.checkOn=Pe.value!=="",ze.optSelected=qe.selected,Pe=Ze.createElement("input"),Pe.value="t",Pe.type="radio",ze.radioValue=Pe.value==="t"}();var HA,XA=Oe.expr.attrHandle;Oe.fn.extend({attr:function(Pe,Qe){return en(this,Oe.attr,Pe,Qe,arguments.length>1)},removeAttr:function(Pe){return this.each(function(){Oe.removeAttr(this,Pe)})}}),Oe.extend({attr:function(Pe,Qe,qe){var tr,ur,cr=Pe.nodeType;if(!(cr===3||cr===8||cr===2)){if(typeof Pe.getAttribute>"u")return Oe.prop(Pe,Qe,qe);if((cr!==1||!Oe.isXMLDoc(Pe))&&(ur=Oe.attrHooks[Qe.toLowerCase()]||(Oe.expr.match.bool.test(Qe)?HA:void 0)),qe!==void 0){if(qe===null){Oe.removeAttr(Pe,Qe);return}return ur&&"set"in ur&&(tr=ur.set(Pe,qe,Qe))!==void 0?tr:(Pe.setAttribute(Qe,qe+""),qe)}return ur&&"get"in ur&&(tr=ur.get(Pe,Qe))!==null?tr:(tr=Oe.find.attr(Pe,Qe),tr??void 0)}},attrHooks:{type:{set:function(Pe,Qe){if(!ze.radioValue&&Qe==="radio"&&ir(Pe,"input")){var qe=Pe.value;return Pe.setAttribute("type",Qe),qe&&(Pe.value=qe),Qe}}}},removeAttr:function(Pe,Qe){var qe,tr=0,ur=Qe&&Qe.match(An);if(ur&&Pe.nodeType===1)for(;qe=ur[tr++];)Pe.removeAttribute(qe)}}),HA={set:function(Pe,Qe,qe){return Qe===!1?Oe.removeAttr(Pe,qe):Pe.setAttribute(qe,qe),qe}},Oe.each(Oe.expr.match.bool.source.match(/\w+/g),function(Pe,Qe){var qe=XA[Qe]||Oe.find.attr;XA[Qe]=function(tr,ur,cr){var Br,Lr,Rr=ur.toLowerCase();return cr||(Lr=XA[Rr],XA[Rr]=Br,Br=qe(tr,ur,cr)!=null?Rr:null,XA[Rr]=Lr),Br}});var xA=/^(?:input|select|textarea|button)$/i,ia=/^(?:a|area)$/i;Oe.fn.extend({prop:function(Pe,Qe){return en(this,Oe.prop,Pe,Qe,arguments.length>1)},removeProp:function(Pe){return this.each(function(){delete this[Oe.propFix[Pe]||Pe]})}}),Oe.extend({prop:function(Pe,Qe,qe){var tr,ur,cr=Pe.nodeType;if(!(cr===3||cr===8||cr===2))return(cr!==1||!Oe.isXMLDoc(Pe))&&(Qe=Oe.propFix[Qe]||Qe,ur=Oe.propHooks[Qe]),qe!==void 0?ur&&"set"in ur&&(tr=ur.set(Pe,qe,Qe))!==void 0?tr:Pe[Qe]=qe:ur&&"get"in ur&&(tr=ur.get(Pe,Qe))!==null?tr:Pe[Qe]},propHooks:{tabIndex:{get:function(Pe){var Qe=Oe.find.attr(Pe,"tabindex");return Qe?parseInt(Qe,10):xA.test(Pe.nodeName)||ia.test(Pe.nodeName)&&Pe.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ze.optSelected||(Oe.propHooks.selected={get:function(Pe){var Qe=Pe.parentNode;return Qe&&Qe.parentNode&&Qe.parentNode.selectedIndex,null},set:function(Pe){var Qe=Pe.parentNode;Qe&&(Qe.selectedIndex,Qe.parentNode&&Qe.parentNode.selectedIndex)}}),Oe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Oe.propFix[this.toLowerCase()]=this});function JA(Pe){var Qe=Pe.match(An)||[];return Qe.join(" ")}function so(Pe){return Pe.getAttribute&&Pe.getAttribute("class")||""}function Qo(Pe){return Array.isArray(Pe)?Pe:typeof Pe=="string"?Pe.match(An)||[]:[]}Oe.fn.extend({addClass:function(Pe){var Qe,qe,tr,ur,cr,Br,Lr,Rr=0;if(Ve(Pe))return this.each(function(tn){Oe(this).addClass(Pe.call(this,tn,so(this)))});if(Qe=Qo(Pe),Qe.length){for(;qe=this[Rr++];)if(ur=so(qe),tr=qe.nodeType===1&&" "+JA(ur)+" ",tr){for(Br=0;cr=Qe[Br++];)tr.indexOf(" "+cr+" ")<0&&(tr+=cr+" ");Lr=JA(tr),ur!==Lr&&qe.setAttribute("class",Lr)}}return this},removeClass:function(Pe){var Qe,qe,tr,ur,cr,Br,Lr,Rr=0;if(Ve(Pe))return this.each(function(tn){Oe(this).removeClass(Pe.call(this,tn,so(this)))});if(!arguments.length)return this.attr("class","");if(Qe=Qo(Pe),Qe.length){for(;qe=this[Rr++];)if(ur=so(qe),tr=qe.nodeType===1&&" "+JA(ur)+" ",tr){for(Br=0;cr=Qe[Br++];)for(;tr.indexOf(" "+cr+" ")>-1;)tr=tr.replace(" "+cr+" "," ");Lr=JA(tr),ur!==Lr&&qe.setAttribute("class",Lr)}}return this},toggleClass:function(Pe,Qe){var qe=typeof Pe,tr=qe==="string"||Array.isArray(Pe);return typeof Qe=="boolean"&&tr?Qe?this.addClass(Pe):this.removeClass(Pe):Ve(Pe)?this.each(function(ur){Oe(this).toggleClass(Pe.call(this,ur,so(this),Qe),Qe)}):this.each(function(){var ur,cr,Br,Lr;if(tr)for(cr=0,Br=Oe(this),Lr=Qo(Pe);ur=Lr[cr++];)Br.hasClass(ur)?Br.removeClass(ur):Br.addClass(ur);else(Pe===void 0||qe==="boolean")&&(ur=so(this),ur&&Sr.set(this,"__className__",ur),this.setAttribute&&this.setAttribute("class",ur||Pe===!1?"":Sr.get(this,"__className__")||""))})},hasClass:function(Pe){var Qe,qe,tr=0;for(Qe=" "+Pe+" ";qe=this[tr++];)if(qe.nodeType===1&&(" "+JA(so(qe))+" ").indexOf(Qe)>-1)return!0;return!1}});var Na=/\r/g;Oe.fn.extend({val:function(Pe){var Qe,qe,tr,ur=this[0];return arguments.length?(tr=Ve(Pe),this.each(function(cr){var Br;this.nodeType===1&&(tr?Br=Pe.call(this,cr,Oe(this).val()):Br=Pe,Br==null?Br="":typeof Br=="number"?Br+="":Array.isArray(Br)&&(Br=Oe.map(Br,function(Lr){return Lr==null?"":Lr+""})),Qe=Oe.valHooks[this.type]||Oe.valHooks[this.nodeName.toLowerCase()],(!Qe||!("set"in Qe)||Qe.set(this,Br,"value")===void 0)&&(this.value=Br))})):ur?(Qe=Oe.valHooks[ur.type]||Oe.valHooks[ur.nodeName.toLowerCase()],Qe&&"get"in Qe&&(qe=Qe.get(ur,"value"))!==void 0?qe:(qe=ur.value,typeof qe=="string"?qe.replace(Na,""):qe??"")):void 0}}),Oe.extend({valHooks:{option:{get:function(Pe){var Qe=Oe.find.attr(Pe,"value");return Qe??JA(Oe.text(Pe))}},select:{get:function(Pe){var Qe,qe,tr,ur=Pe.options,cr=Pe.selectedIndex,Br=Pe.type==="select-one",Lr=Br?null:[],Rr=Br?cr+1:ur.length;for(cr<0?tr=Rr:tr=Br?cr:0;tr<Rr;tr++)if(qe=ur[tr],(qe.selected||tr===cr)&&!qe.disabled&&(!qe.parentNode.disabled||!ir(qe.parentNode,"optgroup"))){if(Qe=Oe(qe).val(),Br)return Qe;Lr.push(Qe)}return Lr},set:function(Pe,Qe){for(var qe,tr,ur=Pe.options,cr=Oe.makeArray(Qe),Br=ur.length;Br--;)tr=ur[Br],(tr.selected=Oe.inArray(Oe.valHooks.option.get(tr),cr)>-1)&&(qe=!0);return qe||(Pe.selectedIndex=-1),cr}}}}),Oe.each(["radio","checkbox"],function(){Oe.valHooks[this]={set:function(Pe,Qe){if(Array.isArray(Qe))return Pe.checked=Oe.inArray(Oe(Pe).val(),Qe)>-1}},ze.checkOn||(Oe.valHooks[this].get=function(Pe){return Pe.getAttribute("value")===null?"on":Pe.value})}),ze.focusin="onfocusin"in St;var Aa=/^(?:focusinfocus|focusoutblur)$/,ga=function(Pe){Pe.stopPropagation()};Oe.extend(Oe.event,{trigger:function(Pe,Qe,qe,tr){var ur,cr,Br,Lr,Rr,tn,cn,xn,un=[qe||Ze],vn=$e.call(Pe,"type")?Pe.type:Pe,ii=$e.call(Pe,"namespace")?Pe.namespace.split("."):[];if(cr=xn=Br=qe=qe||Ze,!(qe.nodeType===3||qe.nodeType===8)&&!Aa.test(vn+Oe.event.triggered)&&(vn.indexOf(".")>-1&&(ii=vn.split("."),vn=ii.shift(),ii.sort()),Rr=vn.indexOf(":")<0&&"on"+vn,Pe=Pe[Oe.expando]?Pe:new Oe.Event(vn,typeof Pe=="object"&&Pe),Pe.isTrigger=tr?2:3,Pe.namespace=ii.join("."),Pe.rnamespace=Pe.namespace?new RegExp("(^|\\.)"+ii.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,Pe.result=void 0,Pe.target||(Pe.target=qe),Qe=Qe==null?[Pe]:Oe.makeArray(Qe,[Pe]),cn=Oe.event.special[vn]||{},!(!tr&&cn.trigger&&cn.trigger.apply(qe,Qe)===!1))){if(!tr&&!cn.noBubble&&!nr(qe)){for(Lr=cn.delegateType||vn,Aa.test(Lr+vn)||(cr=cr.parentNode);cr;cr=cr.parentNode)un.push(cr),Br=cr;Br===(qe.ownerDocument||Ze)&&un.push(Br.defaultView||Br.parentWindow||St)}for(ur=0;(cr=un[ur++])&&!Pe.isPropagationStopped();)xn=cr,Pe.type=ur>1?Lr:cn.bindType||vn,tn=(Sr.get(cr,"events")||Object.create(null))[Pe.type]&&Sr.get(cr,"handle"),tn&&tn.apply(cr,Qe),tn=Rr&&cr[Rr],tn&&tn.apply&&zn(cr)&&(Pe.result=tn.apply(cr,Qe),Pe.result===!1&&Pe.preventDefault());return Pe.type=vn,!tr&&!Pe.isDefaultPrevented()&&(!cn._default||cn._default.apply(un.pop(),Qe)===!1)&&zn(qe)&&Rr&&Ve(qe[vn])&&!nr(qe)&&(Br=qe[Rr],Br&&(qe[Rr]=null),Oe.event.triggered=vn,Pe.isPropagationStopped()&&xn.addEventListener(vn,ga),qe[vn](),Pe.isPropagationStopped()&&xn.removeEventListener(vn,ga),Oe.event.triggered=void 0,Br&&(qe[Rr]=Br)),Pe.result}},simulate:function(Pe,Qe,qe){var tr=Oe.extend(new Oe.Event,qe,{type:Pe,isSimulated:!0});Oe.event.trigger(tr,null,Qe)}}),Oe.fn.extend({trigger:function(Pe,Qe){return this.each(function(){Oe.event.trigger(Pe,Qe,this)})},triggerHandler:function(Pe,Qe){var qe=this[0];if(qe)return Oe.event.trigger(Pe,Qe,qe,!0)}}),ze.focusin||Oe.each({focus:"focusin",blur:"focusout"},function(Pe,Qe){var qe=function(tr){Oe.event.simulate(Qe,tr.target,Oe.event.fix(tr))};Oe.event.special[Qe]={setup:function(){var tr=this.ownerDocument||this.document||this,ur=Sr.access(tr,Qe);ur||tr.addEventListener(Pe,qe,!0),Sr.access(tr,Qe,(ur||0)+1)},teardown:function(){var tr=this.ownerDocument||this.document||this,ur=Sr.access(tr,Qe)-1;ur?Sr.access(tr,Qe,ur):(tr.removeEventListener(Pe,qe,!0),Sr.remove(tr,Qe))}}});var lo=St.location,va={guid:Date.now()},oa=/\?/;Oe.parseXML=function(Pe){var Qe,qe;if(!Pe||typeof Pe!="string")return null;try{Qe=new St.DOMParser().parseFromString(Pe,"text/xml")}catch{}return qe=Qe&&Qe.getElementsByTagName("parsererror")[0],(!Qe||qe)&&Oe.error("Invalid XML: "+(qe?Oe.map(qe.childNodes,function(tr){return tr.textContent}).join(`
`):Pe)),Qe};var Ua=/\[\]$/,ZA=/\r?\n/g,Mo=/^(?:submit|button|image|reset|file)$/i,Ho=/^(?:input|select|textarea|keygen)/i;function ko(Pe,Qe,qe,tr){var ur;if(Array.isArray(Qe))Oe.each(Qe,function(cr,Br){qe||Ua.test(Pe)?tr(Pe,Br):ko(Pe+"["+(typeof Br=="object"&&Br!=null?cr:"")+"]",Br,qe,tr)});else if(!qe&&Ye(Qe)==="object")for(ur in Qe)ko(Pe+"["+ur+"]",Qe[ur],qe,tr);else tr(Pe,Qe)}Oe.param=function(Pe,Qe){var qe,tr=[],ur=function(cr,Br){var Lr=Ve(Br)?Br():Br;tr[tr.length]=encodeURIComponent(cr)+"="+encodeURIComponent(Lr??"")};if(Pe==null)return"";if(Array.isArray(Pe)||Pe.jquery&&!Oe.isPlainObject(Pe))Oe.each(Pe,function(){ur(this.name,this.value)});else for(qe in Pe)ko(qe,Pe[qe],Qe,ur);return tr.join("&")},Oe.fn.extend({serialize:function(){return Oe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var Pe=Oe.prop(this,"elements");return Pe?Oe.makeArray(Pe):this}).filter(function(){var Pe=this.type;return this.name&&!Oe(this).is(":disabled")&&Ho.test(this.nodeName)&&!Mo.test(Pe)&&(this.checked||!gi.test(Pe))}).map(function(Pe,Qe){var qe=Oe(this).val();return qe==null?null:Array.isArray(qe)?Oe.map(qe,function(tr){return{name:Qe.name,value:tr.replace(ZA,`\r
`)}}):{name:Qe.name,value:qe.replace(ZA,`\r
`)}}).get()}});var vA=/%20/g,La=/#.*$/,ma=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ra=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$a=/^(?:GET|HEAD)$/,to=/^\/\//,aa={},Vo={},Io="*/".concat("*"),Fo=Ze.createElement("a");Fo.href=lo.href;function ya(Pe){return function(Qe,qe){typeof Qe!="string"&&(qe=Qe,Qe="*");var tr,ur=0,cr=Qe.toLowerCase().match(An)||[];if(Ve(qe))for(;tr=cr[ur++];)tr[0]==="+"?(tr=tr.slice(1)||"*",(Pe[tr]=Pe[tr]||[]).unshift(qe)):(Pe[tr]=Pe[tr]||[]).push(qe)}}function wa(Pe,Qe,qe,tr){var ur={},cr=Pe===Vo;function Br(Lr){var Rr;return ur[Lr]=!0,Oe.each(Pe[Lr]||[],function(tn,cn){var xn=cn(Qe,qe,tr);if(typeof xn=="string"&&!cr&&!ur[xn])return Qe.dataTypes.unshift(xn),Br(xn),!1;if(cr)return!(Rr=xn)}),Rr}return Br(Qe.dataTypes[0])||!ur["*"]&&Br("*")}function sa(Pe,Qe){var qe,tr,ur=Oe.ajaxSettings.flatOptions||{};for(qe in Qe)Qe[qe]!==void 0&&((ur[qe]?Pe:tr||(tr={}))[qe]=Qe[qe]);return tr&&Oe.extend(!0,Pe,tr),Pe}function la(Pe,Qe,qe){for(var tr,ur,cr,Br,Lr=Pe.contents,Rr=Pe.dataTypes;Rr[0]==="*";)Rr.shift(),tr===void 0&&(tr=Pe.mimeType||Qe.getResponseHeader("Content-Type"));if(tr){for(ur in Lr)if(Lr[ur]&&Lr[ur].test(tr)){Rr.unshift(ur);break}}if(Rr[0]in qe)cr=Rr[0];else{for(ur in qe){if(!Rr[0]||Pe.converters[ur+" "+Rr[0]]){cr=ur;break}Br||(Br=ur)}cr=cr||Br}if(cr)return cr!==Rr[0]&&Rr.unshift(cr),qe[cr]}function Po(Pe,Qe,qe,tr){var ur,cr,Br,Lr,Rr,tn={},cn=Pe.dataTypes.slice();if(cn[1])for(Br in Pe.converters)tn[Br.toLowerCase()]=Pe.converters[Br];for(cr=cn.shift();cr;)if(Pe.responseFields[cr]&&(qe[Pe.responseFields[cr]]=Qe),!Rr&&tr&&Pe.dataFilter&&(Qe=Pe.dataFilter(Qe,Pe.dataType)),Rr=cr,cr=cn.shift(),cr){if(cr==="*")cr=Rr;else if(Rr!=="*"&&Rr!==cr){if(Br=tn[Rr+" "+cr]||tn["* "+cr],!Br){for(ur in tn)if(Lr=ur.split(" "),Lr[1]===cr&&(Br=tn[Rr+" "+Lr[0]]||tn["* "+Lr[0]],Br)){Br===!0?Br=tn[ur]:tn[ur]!==!0&&(cr=Lr[0],cn.unshift(Lr[1]));break}}if(Br!==!0)if(Br&&Pe.throws)Qe=Br(Qe);else try{Qe=Br(Qe)}catch(xn){return{state:"parsererror",error:Br?xn:"No conversion from "+Rr+" to "+cr}}}}return{state:"success",data:Qe}}Oe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:lo.href,type:"GET",isLocal:Ra.test(lo.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Io,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Oe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(Pe,Qe){return Qe?sa(sa(Pe,Oe.ajaxSettings),Qe):sa(Oe.ajaxSettings,Pe)},ajaxPrefilter:ya(aa),ajaxTransport:ya(Vo),ajax:function(Pe,Qe){typeof Pe=="object"&&(Qe=Pe,Pe=void 0),Qe=Qe||{};var qe,tr,ur,cr,Br,Lr,Rr,tn,cn,xn,un=Oe.ajaxSetup({},Qe),vn=un.context||un,ii=un.context&&(vn.nodeType||vn.jquery)?Oe(vn):Oe.event,di=Oe.Deferred(),ri=Oe.Callbacks("once memory"),Wi=un.statusCode||{},Yi={},bA={},Pi="canceled",fi={readyState:0,getResponseHeader:function(bi){var Di;if(Rr){if(!cr)for(cr={};Di=mi.exec(ur);)cr[Di[1].toLowerCase()+" "]=(cr[Di[1].toLowerCase()+" "]||[]).concat(Di[2]);Di=cr[bi.toLowerCase()+" "]}return Di==null?null:Di.join(", ")},getAllResponseHeaders:function(){return Rr?ur:null},setRequestHeader:function(bi,Di){return Rr==null&&(bi=bA[bi.toLowerCase()]=bA[bi.toLowerCase()]||bi,Yi[bi]=Di),this},overrideMimeType:function(bi){return Rr==null&&(un.mimeType=bi),this},statusCode:function(bi){var Di;if(bi)if(Rr)fi.always(bi[fi.status]);else for(Di in bi)Wi[Di]=[Wi[Di],bi[Di]];return this},abort:function(bi){var Di=bi||Pi;return qe&&qe.abort(Di),oA(0,Di),this}};if(di.promise(fi),un.url=((Pe||un.url||lo.href)+"").replace(to,lo.protocol+"//"),un.type=Qe.method||Qe.type||un.method||un.type,un.dataTypes=(un.dataType||"*").toLowerCase().match(An)||[""],un.crossDomain==null){Lr=Ze.createElement("a");try{Lr.href=un.url,Lr.href=Lr.href,un.crossDomain=Fo.protocol+"//"+Fo.host!=Lr.protocol+"//"+Lr.host}catch{un.crossDomain=!0}}if(un.data&&un.processData&&typeof un.data!="string"&&(un.data=Oe.param(un.data,un.traditional)),wa(aa,un,Qe,fi),Rr)return fi;tn=Oe.event&&un.global,tn&&Oe.active++===0&&Oe.event.trigger("ajaxStart"),un.type=un.type.toUpperCase(),un.hasContent=!$a.test(un.type),tr=un.url.replace(La,""),un.hasContent?un.data&&un.processData&&(un.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(un.data=un.data.replace(vA,"+")):(xn=un.url.slice(tr.length),un.data&&(un.processData||typeof un.data=="string")&&(tr+=(oa.test(tr)?"&":"?")+un.data,delete un.data),un.cache===!1&&(tr=tr.replace(ma,"$1"),xn=(oa.test(tr)?"&":"?")+"_="+va.guid+++xn),un.url=tr+xn),un.ifModified&&(Oe.lastModified[tr]&&fi.setRequestHeader("If-Modified-Since",Oe.lastModified[tr]),Oe.etag[tr]&&fi.setRequestHeader("If-None-Match",Oe.etag[tr])),(un.data&&un.hasContent&&un.contentType!==!1||Qe.contentType)&&fi.setRequestHeader("Content-Type",un.contentType),fi.setRequestHeader("Accept",un.dataTypes[0]&&un.accepts[un.dataTypes[0]]?un.accepts[un.dataTypes[0]]+(un.dataTypes[0]!=="*"?", "+Io+"; q=0.01":""):un.accepts["*"]);for(cn in un.headers)fi.setRequestHeader(cn,un.headers[cn]);if(un.beforeSend&&(un.beforeSend.call(vn,fi,un)===!1||Rr))return fi.abort();if(Pi="abort",ri.add(un.complete),fi.done(un.success),fi.fail(un.error),qe=wa(Vo,un,Qe,fi),!qe)oA(-1,"No Transport");else{if(fi.readyState=1,tn&&ii.trigger("ajaxSend",[fi,un]),Rr)return fi;un.async&&un.timeout>0&&(Br=St.setTimeout(function(){fi.abort("timeout")},un.timeout));try{Rr=!1,qe.send(Yi,oA)}catch(bi){if(Rr)throw bi;oA(-1,bi)}}function oA(bi,Di,He,hr){var Fr,Mr,rn,hn,In,kn=Di;Rr||(Rr=!0,Br&&St.clearTimeout(Br),qe=void 0,ur=hr||"",fi.readyState=bi>0?4:0,Fr=bi>=200&&bi<300||bi===304,He&&(hn=la(un,fi,He)),!Fr&&Oe.inArray("script",un.dataTypes)>-1&&Oe.inArray("json",un.dataTypes)<0&&(un.converters["text script"]=function(){}),hn=Po(un,hn,fi,Fr),Fr?(un.ifModified&&(In=fi.getResponseHeader("Last-Modified"),In&&(Oe.lastModified[tr]=In),In=fi.getResponseHeader("etag"),In&&(Oe.etag[tr]=In)),bi===204||un.type==="HEAD"?kn="nocontent":bi===304?kn="notmodified":(kn=hn.state,Mr=hn.data,rn=hn.error,Fr=!rn)):(rn=kn,(bi||!kn)&&(kn="error",bi<0&&(bi=0))),fi.status=bi,fi.statusText=(Di||kn)+"",Fr?di.resolveWith(vn,[Mr,kn,fi]):di.rejectWith(vn,[fi,kn,rn]),fi.statusCode(Wi),Wi=void 0,tn&&ii.trigger(Fr?"ajaxSuccess":"ajaxError",[fi,un,Fr?Mr:rn]),ri.fireWith(vn,[fi,kn]),tn&&(ii.trigger("ajaxComplete",[fi,un]),--Oe.active||Oe.event.trigger("ajaxStop")))}return fi},getJSON:function(Pe,Qe,qe){return Oe.get(Pe,Qe,qe,"json")},getScript:function(Pe,Qe){return Oe.get(Pe,void 0,Qe,"script")}}),Oe.each(["get","post"],function(Pe,Qe){Oe[Qe]=function(qe,tr,ur,cr){return Ve(tr)&&(cr=cr||ur,ur=tr,tr=void 0),Oe.ajax(Oe.extend({url:qe,type:Qe,dataType:cr,data:tr,success:ur},Oe.isPlainObject(qe)&&qe))}}),Oe.ajaxPrefilter(function(Pe){var Qe;for(Qe in Pe.headers)Qe.toLowerCase()==="content-type"&&(Pe.contentType=Pe.headers[Qe]||"")}),Oe._evalUrl=function(Pe,Qe,qe){return Oe.ajax({url:Pe,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(tr){Oe.globalEval(tr,Qe,qe)}})},Oe.fn.extend({wrapAll:function(Pe){var Qe;return this[0]&&(Ve(Pe)&&(Pe=Pe.call(this[0])),Qe=Oe(Pe,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&Qe.insertBefore(this[0]),Qe.map(function(){for(var qe=this;qe.firstElementChild;)qe=qe.firstElementChild;return qe}).append(this)),this},wrapInner:function(Pe){return Ve(Pe)?this.each(function(Qe){Oe(this).wrapInner(Pe.call(this,Qe))}):this.each(function(){var Qe=Oe(this),qe=Qe.contents();qe.length?qe.wrapAll(Pe):Qe.append(Pe)})},wrap:function(Pe){var Qe=Ve(Pe);return this.each(function(qe){Oe(this).wrapAll(Qe?Pe.call(this,qe):Pe)})},unwrap:function(Pe){return this.parent(Pe).not("body").each(function(){Oe(this).replaceWith(this.childNodes)}),this}}),Oe.expr.pseudos.hidden=function(Pe){return!Oe.expr.pseudos.visible(Pe)},Oe.expr.pseudos.visible=function(Pe){return!!(Pe.offsetWidth||Pe.offsetHeight||Pe.getClientRects().length)},Oe.ajaxSettings.xhr=function(){try{return new St.XMLHttpRequest}catch{}};var vo={0:200,1223:204},Oo=Oe.ajaxSettings.xhr();ze.cors=!!Oo&&"withCredentials"in Oo,ze.ajax=Oo=!!Oo,Oe.ajaxTransport(function(Pe){var Qe,qe;if(ze.cors||Oo&&!Pe.crossDomain)return{send:function(tr,ur){var cr,Br=Pe.xhr();if(Br.open(Pe.type,Pe.url,Pe.async,Pe.username,Pe.password),Pe.xhrFields)for(cr in Pe.xhrFields)Br[cr]=Pe.xhrFields[cr];Pe.mimeType&&Br.overrideMimeType&&Br.overrideMimeType(Pe.mimeType),!Pe.crossDomain&&!tr["X-Requested-With"]&&(tr["X-Requested-With"]="XMLHttpRequest");for(cr in tr)Br.setRequestHeader(cr,tr[cr]);Qe=function(Lr){return function(){Qe&&(Qe=qe=Br.onload=Br.onerror=Br.onabort=Br.ontimeout=Br.onreadystatechange=null,Lr==="abort"?Br.abort():Lr==="error"?typeof Br.status!="number"?ur(0,"error"):ur(Br.status,Br.statusText):ur(vo[Br.status]||Br.status,Br.statusText,(Br.responseType||"text")!=="text"||typeof Br.responseText!="string"?{binary:Br.response}:{text:Br.responseText},Br.getAllResponseHeaders()))}},Br.onload=Qe(),qe=Br.onerror=Br.ontimeout=Qe("error"),Br.onabort!==void 0?Br.onabort=qe:Br.onreadystatechange=function(){Br.readyState===4&&St.setTimeout(function(){Qe&&qe()})},Qe=Qe("abort");try{Br.send(Pe.hasContent&&Pe.data||null)}catch(Lr){if(Qe)throw Lr}},abort:function(){Qe&&Qe()}}}),Oe.ajaxPrefilter(function(Pe){Pe.crossDomain&&(Pe.contents.script=!1)}),Oe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(Pe){return Oe.globalEval(Pe),Pe}}}),Oe.ajaxPrefilter("script",function(Pe){Pe.cache===void 0&&(Pe.cache=!1),Pe.crossDomain&&(Pe.type="GET")}),Oe.ajaxTransport("script",function(Pe){if(Pe.crossDomain||Pe.scriptAttrs){var Qe,qe;return{send:function(tr,ur){Qe=Oe("<script>").attr(Pe.scriptAttrs||{}).prop({charset:Pe.scriptCharset,src:Pe.url}).on("load error",qe=function(cr){Qe.remove(),qe=null,cr&&ur(cr.type==="error"?404:200,cr.type)}),Ze.head.appendChild(Qe[0])},abort:function(){qe&&qe()}}}});var mo=[],No=/(=)\?(?=&|$)|\?\?/;Oe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var Pe=mo.pop()||Oe.expando+"_"+va.guid++;return this[Pe]=!0,Pe}}),Oe.ajaxPrefilter("json jsonp",function(Pe,Qe,qe){var tr,ur,cr,Br=Pe.jsonp!==!1&&(No.test(Pe.url)?"url":typeof Pe.data=="string"&&(Pe.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&No.test(Pe.data)&&"data");if(Br||Pe.dataTypes[0]==="jsonp")return tr=Pe.jsonpCallback=Ve(Pe.jsonpCallback)?Pe.jsonpCallback():Pe.jsonpCallback,Br?Pe[Br]=Pe[Br].replace(No,"$1"+tr):Pe.jsonp!==!1&&(Pe.url+=(oa.test(Pe.url)?"&":"?")+Pe.jsonp+"="+tr),Pe.converters["script json"]=function(){return cr||Oe.error(tr+" was not called"),cr[0]},Pe.dataTypes[0]="json",ur=St[tr],St[tr]=function(){cr=arguments},qe.always(function(){ur===void 0?Oe(St).removeProp(tr):St[tr]=ur,Pe[tr]&&(Pe.jsonpCallback=Qe.jsonpCallback,mo.push(tr)),cr&&Ve(ur)&&ur(cr[0]),cr=ur=void 0}),"script"}),ze.createHTMLDocument=function(){var Pe=Ze.implementation.createHTMLDocument("").body;return Pe.innerHTML="<form></form><form></form>",Pe.childNodes.length===2}(),Oe.parseHTML=function(Pe,Qe,qe){if(typeof Pe!="string")return[];typeof Qe=="boolean"&&(qe=Qe,Qe=!1);var tr,ur,cr;return Qe||(ze.createHTMLDocument?(Qe=Ze.implementation.createHTMLDocument(""),tr=Qe.createElement("base"),tr.href=Ze.location.href,Qe.head.appendChild(tr)):Qe=Ze),ur=gr.exec(Pe),cr=!qe&&[],ur?[Qe.createElement(ur[1])]:(ur=jr([Pe],Qe,cr),cr&&cr.length&&Oe(cr).remove(),Oe.merge([],ur.childNodes))},Oe.fn.load=function(Pe,Qe,qe){var tr,ur,cr,Br=this,Lr=Pe.indexOf(" ");return Lr>-1&&(tr=JA(Pe.slice(Lr)),Pe=Pe.slice(0,Lr)),Ve(Qe)?(qe=Qe,Qe=void 0):Qe&&typeof Qe=="object"&&(ur="POST"),Br.length>0&&Oe.ajax({url:Pe,type:ur||"GET",dataType:"html",data:Qe}).done(function(Rr){cr=arguments,Br.html(tr?Oe("<div>").append(Oe.parseHTML(Rr)).find(tr):Rr)}).always(qe&&function(Rr,tn){Br.each(function(){qe.apply(this,cr||[Rr.responseText,tn,Rr])})}),this},Oe.expr.pseudos.animated=function(Pe){return Oe.grep(Oe.timers,function(Qe){return Pe===Qe.elem}).length},Oe.offset={setOffset:function(Pe,Qe,qe){var tr,ur,cr,Br,Lr,Rr,tn,cn=Oe.css(Pe,"position"),xn=Oe(Pe),un={};cn==="static"&&(Pe.style.position="relative"),Lr=xn.offset(),cr=Oe.css(Pe,"top"),Rr=Oe.css(Pe,"left"),tn=(cn==="absolute"||cn==="fixed")&&(cr+Rr).indexOf("auto")>-1,tn?(tr=xn.position(),Br=tr.top,ur=tr.left):(Br=parseFloat(cr)||0,ur=parseFloat(Rr)||0),Ve(Qe)&&(Qe=Qe.call(Pe,qe,Oe.extend({},Lr))),Qe.top!=null&&(un.top=Qe.top-Lr.top+Br),Qe.left!=null&&(un.left=Qe.left-Lr.left+ur),"using"in Qe?Qe.using.call(Pe,un):xn.css(un)}},Oe.fn.extend({offset:function(Pe){if(arguments.length)return Pe===void 0?this:this.each(function(ur){Oe.offset.setOffset(this,Pe,ur)});var Qe,qe,tr=this[0];if(tr)return tr.getClientRects().length?(Qe=tr.getBoundingClientRect(),qe=tr.ownerDocument.defaultView,{top:Qe.top+qe.pageYOffset,left:Qe.left+qe.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var Pe,Qe,qe,tr=this[0],ur={top:0,left:0};if(Oe.css(tr,"position")==="fixed")Qe=tr.getBoundingClientRect();else{for(Qe=this.offset(),qe=tr.ownerDocument,Pe=tr.offsetParent||qe.documentElement;Pe&&(Pe===qe.body||Pe===qe.documentElement)&&Oe.css(Pe,"position")==="static";)Pe=Pe.parentNode;Pe&&Pe!==tr&&Pe.nodeType===1&&(ur=Oe(Pe).offset(),ur.top+=Oe.css(Pe,"borderTopWidth",!0),ur.left+=Oe.css(Pe,"borderLeftWidth",!0))}return{top:Qe.top-ur.top-Oe.css(tr,"marginTop",!0),left:Qe.left-ur.left-Oe.css(tr,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var Pe=this.offsetParent;Pe&&Oe.css(Pe,"position")==="static";)Pe=Pe.offsetParent;return Pe||ti})}}),Oe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(Pe,Qe){var qe=Qe==="pageYOffset";Oe.fn[Pe]=function(tr){return en(this,function(ur,cr,Br){var Lr;if(nr(ur)?Lr=ur:ur.nodeType===9&&(Lr=ur.defaultView),Br===void 0)return Lr?Lr[Qe]:ur[cr];Lr?Lr.scrollTo(qe?Lr.pageXOffset:Br,qe?Br:Lr.pageYOffset):ur[cr]=Br},Pe,tr,arguments.length)}}),Oe.each(["top","left"],function(Pe,Qe){Oe.cssHooks[Qe]=gA(ze.pixelPosition,function(qe,tr){if(tr)return tr=hA(qe,Qe),fA.test(tr)?Oe(qe).position()[Qe]+"px":tr})}),Oe.each({Height:"height",Width:"width"},function(Pe,Qe){Oe.each({padding:"inner"+Pe,content:Qe,"":"outer"+Pe},function(qe,tr){Oe.fn[tr]=function(ur,cr){var Br=arguments.length&&(qe||typeof ur!="boolean"),Lr=qe||(ur===!0||cr===!0?"margin":"border");return en(this,function(Rr,tn,cn){var xn;return nr(Rr)?tr.indexOf("outer")===0?Rr["inner"+Pe]:Rr.document.documentElement["client"+Pe]:Rr.nodeType===9?(xn=Rr.documentElement,Math.max(Rr.body["scroll"+Pe],xn["scroll"+Pe],Rr.body["offset"+Pe],xn["offset"+Pe],xn["client"+Pe])):cn===void 0?Oe.css(Rr,tn,Lr):Oe.style(Rr,tn,cn,Lr)},Qe,Br?ur:void 0,Br)}})}),Oe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(Pe,Qe){Oe.fn[Qe]=function(qe){return this.on(Qe,qe)}}),Oe.fn.extend({bind:function(Pe,Qe,qe){return this.on(Pe,null,Qe,qe)},unbind:function(Pe,Qe){return this.off(Pe,null,Qe)},delegate:function(Pe,Qe,qe,tr){return this.on(Qe,Pe,qe,tr)},undelegate:function(Pe,Qe,qe){return arguments.length===1?this.off(Pe,"**"):this.off(Qe,Pe||"**",qe)},hover:function(Pe,Qe){return this.mouseenter(Pe).mouseleave(Qe||Pe)}}),Oe.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(Pe,Qe){Oe.fn[Qe]=function(qe,tr){return arguments.length>0?this.on(Qe,null,qe,tr):this.trigger(Qe)}});var Ko=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Oe.proxy=function(Pe,Qe){var qe,tr,ur;if(typeof Qe=="string"&&(qe=Pe[Qe],Qe=Pe,Pe=qe),!!Ve(Pe))return tr=_e.call(arguments,2),ur=function(){return Pe.apply(Qe||this,tr.concat(_e.call(arguments)))},ur.guid=Pe.guid=Pe.guid||Oe.guid++,ur},Oe.holdReady=function(Pe){Pe?Oe.readyWait++:Oe.ready(!0)},Oe.isArray=Array.isArray,Oe.parseJSON=JSON.parse,Oe.nodeName=ir,Oe.isFunction=Ve,Oe.isWindow=nr,Oe.camelCase=On,Oe.type=Ye,Oe.now=Date.now,Oe.isNumeric=function(Pe){var Qe=Oe.type(Pe);return(Qe==="number"||Qe==="string")&&!isNaN(Pe-parseFloat(Pe))},Oe.trim=function(Pe){return Pe==null?"":(Pe+"").replace(Ko,"")};var Ba=St.jQuery,ba=St.$;return Oe.noConflict=function(Pe){return St.$===Oe&&(St.$=ba),Pe&&St.jQuery===Oe&&(St.jQuery=Ba),Oe},typeof Ae>"u"&&(St.jQuery=St.$=Oe),Oe})}(jquery)),jquery.exports}var jqueryExports=requireJquery();const $$g=getDefaultExportFromCjs(jqueryExports),hiprint$1="",printLock="";window.$=$$g,window.jQuery=$$g,function(Be){Be.fn.hiwprint=function(_e){var Te=document.getElementById("hiwprint_iframe");Te&&Te.parentNode.removeChild(Te);var Se=Be.extend({},Be.fn.hiwprint.defaults,_e),xe=this,Ie=Be('<iframe id="hiwprint_iframe"  style="visibility: hidden; height: 0; width: 0; position: absolute;"></iframe>'),Ue="";Se.importCss&&(Be("link[media=print]").length>0?Be("link[media=print]").each(function(){Ue+='<link rel="stylesheet" type="text/css" media="print" href="'+Be(this).attr("href")+'">'}):Be("link").each(function(){Ue+='<link rel="stylesheet" type="text/css" media="print" href="'+Be(this).attr("href")+'">'})),Ie[0].srcdoc='<!DOCTYPE html><html><head><title></title><meta charset="UTF-8">'+Ue+"</head><body></body></html>",Ie[0].onload=function(){var $e=Ie[0].contentWindow||Ie[0].contentDocument;$e.document&&($e=$e.document),Ie.attr("srcdoc")||$e.write('<!DOCTYPE html><html><head><title></title><meta charset="UTF-8">'+Ue+"</head><body></body></html>"),Se.printContainer?$e.body.innerHTML=xe[0].outerHTML:$e.body.innerHTML=xe.html(),Ce($e,function(){St(Ie[0])})},Ie.appendTo("body")},Be.fn.hiwprint.defaults={importCss:!0,printContainer:!0};function St(_e){try{if(_e.focus(),Ee()||Ae())try{_e.contentWindow.document.execCommand("print",!1,null)}catch{_e.contentWindow.print()}else _e.contentWindow.print()}catch(Te){console.log(Te)}}function Ae(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode}function Ee(){return!Ae()&&!!window.StyleMedia}function Ce(_e,Te,Se){Se===void 0&&(Se=0);for(var xe=_e.getElementsByTagName("img"),Ie=!0,Ue=0;Ue<xe.length;Ue++){var $e=xe[Ue];$e.src&&$e.src!==window.location.href&&$e.src.indexOf("base64")==-1&&(!$e||typeof $e.naturalWidth>"u"||$e.naturalWidth===0||!$e.complete)&&(console.log($e.complete),$e.complete||(Ie=!1))}Se++,!Ie&&Se<10?setTimeout(function(){Ce(_e,Te,Se)},500):Te()}}(jQuery);var jquery_minicolors_min={exports:{}};(function(Be,St){(function(Ae){Be.exports=Ae(requireJquery())})(function(Ae){function Ee(Oe){var Je=Oe.parent();Oe.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),Je.before(Oe).remove()}function Ce(Oe){var Je=Oe.parent(),We=Je.find(".minicolors-panel"),or=Oe.data("minicolors-settings");!Oe.data("minicolors-initialized")||Oe.prop("disabled")||Je.hasClass("minicolors-inline")||Je.hasClass("minicolors-focus")||(_e(),Je.addClass("minicolors-focus"),We.animate?We.stop(!0,!0).fadeIn(or.showSpeed,function(){or.show&&or.show.call(Oe.get(0))}):(We.show(),or.show&&or.show.call(Oe.get(0))))}function _e(){Ae(".minicolors-focus").each(function(){var Oe=Ae(this),Je=Oe.find(".minicolors-input"),We=Oe.find(".minicolors-panel"),or=Je.data("minicolors-settings");We.animate?We.fadeOut(or.hideSpeed,function(){or.hide&&or.hide.call(Je.get(0)),Oe.removeClass("minicolors-focus")}):(We.hide(),or.hide&&or.hide.call(Je.get(0)),Oe.removeClass("minicolors-focus"))})}function Te(Oe,Je,We){var or,mr,er,ir,gr,vr=Oe.parents(".minicolors").find(".minicolors-input"),Or=vr.data("minicolors-settings"),Nr=Oe.find("[class$=-picker]"),Hr=Oe.offset().left,Dr=Oe.offset().top,kr=Math.round(Je.pageX-Hr),qr=Math.round(Je.pageY-Dr),An=We?Or.animationSpeed:0;Je.originalEvent.changedTouches&&(kr=Je.originalEvent.changedTouches[0].pageX-Hr,qr=Je.originalEvent.changedTouches[0].pageY-Dr),kr<0&&(kr=0),qr<0&&(qr=0),kr>Oe.width()&&(kr=Oe.width()),qr>Oe.height()&&(qr=Oe.height()),Oe.parent().is(".minicolors-slider-wheel")&&Nr.parent().is(".minicolors-grid")&&(or=75-kr,mr=75-qr,er=Math.sqrt(or*or+mr*mr),(ir=Math.atan2(mr,or))<0&&(ir+=2*Math.PI),75<er&&(kr=(er=75)-75*Math.cos(ir),qr=75-75*Math.sin(ir)),kr=Math.round(kr),qr=Math.round(qr)),gr={top:qr+"px"},Oe.is(".minicolors-grid")&&(gr.left=kr+"px"),Nr.animate?Nr.stop(!0).animate(gr,An,Or.animationEasing,function(){Se(vr,Oe)}):(Nr.css(gr),Se(vr,Oe))}function Se(Oe,Je){function We(Bn,Sn){var Un,On;return Bn.length&&Sn?(Un=Bn.offset().left,On=Bn.offset().top,{x:Un-Sn.offset().left+Bn.outerWidth()/2,y:On-Sn.offset().top+Bn.outerHeight()/2}):null}var or,mr,er,ir,gr,vr,Or,Nr=Oe.val(),Hr=Oe.attr("data-opacity"),Dr=Oe.parent(),kr=Oe.data("minicolors-settings"),qr=Dr.find(".minicolors-input-swatch"),An=Dr.find(".minicolors-grid"),lr=Dr.find(".minicolors-slider"),Tr=Dr.find(".minicolors-opacity-slider"),xr=An.find("[class$=-picker]"),$r=lr.find("[class$=-picker]"),Qr=Tr.find("[class$=-picker]"),Jr=We(xr,An),nn=We($r,lr),en=We(Qr,Tr);if(Je.is(".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider")){switch(kr.control){case"wheel":ir=An.width()/2-Jr.x,gr=An.height()/2-Jr.y,vr=Math.sqrt(ir*ir+gr*gr),(Or=Math.atan2(gr,ir))<0&&(Or+=2*Math.PI),75<vr&&(vr=75,Jr.x=69-75*Math.cos(Or),Jr.y=69-75*Math.sin(Or)),mr=Ve(vr/.75,0,100),Nr=Ye({h:or=Ve(180*Or/Math.PI,0,360),s:mr,b:er=Ve(100-Math.floor(nn.y*(100/lr.height())),0,100)}),lr.css("backgroundColor",Ye({h:or,s:mr,b:100}));break;case"saturation":Nr=Ye({h:or=Ve(parseInt(Jr.x*(360/An.width()),10),0,360),s:mr=Ve(100-Math.floor(nn.y*(100/lr.height())),0,100),b:er=Ve(100-Math.floor(Jr.y*(100/An.height())),0,100)}),lr.css("backgroundColor",Ye({h:or,s:100,b:er})),Dr.find(".minicolors-grid-inner").css("opacity",mr/100);break;case"brightness":Nr=Ye({h:or=Ve(parseInt(Jr.x*(360/An.width()),10),0,360),s:mr=Ve(100-Math.floor(Jr.y*(100/An.height())),0,100),b:er=Ve(100-Math.floor(nn.y*(100/lr.height())),0,100)}),lr.css("backgroundColor",Ye({h:or,s:mr,b:100})),Dr.find(".minicolors-grid-inner").css("opacity",1-er/100);break;default:Nr=Ye({h:or=Ve(360-parseInt(nn.y*(360/lr.height()),10),0,360),s:mr=Ve(Math.floor(Jr.x*(100/An.width())),0,100),b:er=Ve(100-Math.floor(Jr.y*(100/An.height())),0,100)}),An.css("backgroundColor",Ye({h:or,s:100,b:100}))}xe(Oe,Nr,Hr=kr.opacity?parseFloat(1-en.y/Tr.height()).toFixed(2):1)}else qr.find("span").css({backgroundColor:Nr,opacity:String(Hr)}),Ue(Oe,Nr,Hr)}function xe(Oe,Je,We){var or,mr=Oe.parent(),er=Oe.data("minicolors-settings"),ir=mr.find(".minicolors-input-swatch");er.opacity&&Oe.attr("data-opacity",We),Je=er.format==="rgb"?(or=nr(Je)?Re(Je,!0):Ar(Me(Je,!0)),We=Oe.attr("data-opacity")===""?1:Ve(parseFloat(Oe.attr("data-opacity")).toFixed(2),0,1),!isNaN(We)&&er.opacity||(We=1),Oe.minicolors("rgbObject").a<=1&&or&&er.opacity?"rgba("+or.r+", "+or.g+", "+or.b+", "+parseFloat(We)+")":"rgb("+or.r+", "+or.g+", "+or.b+")"):(nr(Je)&&(Je=ar(Je)),$e(Je,er.letterCase)),Oe.val(Je),ir.find("span").css({backgroundColor:Je,opacity:String(We)}),Ue(Oe,Je,We)}function Ie(Oe,Je){var We,or,mr,er,ir,gr,vr,Or,Nr,Hr,Dr=Oe.parent(),kr=Oe.data("minicolors-settings"),qr=Dr.find(".minicolors-input-swatch"),An=Dr.find(".minicolors-grid"),lr=Dr.find(".minicolors-slider"),Tr=Dr.find(".minicolors-opacity-slider"),xr=An.find("[class$=-picker]"),$r=lr.find("[class$=-picker]"),Qr=Tr.find("[class$=-picker]");switch(nr(Oe.val())?(We=ar(Oe.val()),(ir=Ve(parseFloat(Ze(Oe.val())).toFixed(2),0,1))&&Oe.attr("data-opacity",ir)):We=$e(Me(Oe.val(),!0),kr.letterCase),or=function(Jr){var nn=function(en){var Bn={h:0,s:0,b:0},Sn=Math.min(en.r,en.g,en.b),Un=Math.max(en.r,en.g,en.b),On=Un-Sn;return Bn.b=Un,Bn.s=Un!==0?255*On/Un:0,Bn.s!==0?en.r===Un?Bn.h=(en.g-en.b)/On:en.g===Un?Bn.h=2+(en.b-en.r)/On:Bn.h=4+(en.r-en.g)/On:Bn.h=-1,Bn.h*=60,Bn.h<0&&(Bn.h+=360),Bn.s*=.39215686274509803,Bn.b*=.39215686274509803,Bn}(Ar(Jr));return nn.s===0&&(nn.h=360),nn}(We=We||$e(ze(kr.defaultValue,!0),kr.letterCase)),er=kr.keywords?Ae.map(kr.keywords.split(","),function(Jr){return Jr.toLowerCase().trim()}):[],gr=Oe.val()!==""&&-1<Ae.inArray(Oe.val().toLowerCase(),er)?$e(Oe.val()):nr(Oe.val())?Re(Oe.val()):We,Je||Oe.val(gr),kr.opacity&&(mr=Oe.attr("data-opacity")===""?1:Ve(parseFloat(Oe.attr("data-opacity")).toFixed(2),0,1),isNaN(mr)&&(mr=1),Oe.attr("data-opacity",mr),qr.find("span").css("opacity",String(mr)),Or=Ve(Tr.height()-Tr.height()*mr,0,Tr.height()),Qr.css("top",Or+"px")),Oe.val().toLowerCase()==="transparent"&&qr.find("span").css("opacity",String(0)),qr.find("span").css("backgroundColor",We),kr.control){case"wheel":Nr=Ve(Math.ceil(.75*or.s),0,An.height()/2),Hr=or.h*Math.PI/180,vr=Ve(75-Math.cos(Hr)*Nr,0,An.width()),Or=Ve(75-Math.sin(Hr)*Nr,0,An.height()),xr.css({top:Or+"px",left:vr+"px"}),Or=150-or.b/(100/An.height()),We===""&&(Or=0),$r.css("top",Or+"px"),lr.css("backgroundColor",Ye({h:or.h,s:or.s,b:100}));break;case"saturation":vr=Ve(5*or.h/12,0,150),Or=Ve(An.height()-Math.ceil(or.b/(100/An.height())),0,An.height()),xr.css({top:Or+"px",left:vr+"px"}),Or=Ve(lr.height()-or.s*(lr.height()/100),0,lr.height()),$r.css("top",Or+"px"),lr.css("backgroundColor",Ye({h:or.h,s:100,b:or.b})),Dr.find(".minicolors-grid-inner").css("opacity",or.s/100);break;case"brightness":vr=Ve(5*or.h/12,0,150),Or=Ve(An.height()-Math.ceil(or.s/(100/An.height())),0,An.height()),xr.css({top:Or+"px",left:vr+"px"}),Or=Ve(lr.height()-or.b*(lr.height()/100),0,lr.height()),$r.css("top",Or+"px"),lr.css("backgroundColor",Ye({h:or.h,s:or.s,b:100})),Dr.find(".minicolors-grid-inner").css("opacity",1-or.b/100);break;default:vr=Ve(Math.ceil(or.s/(100/An.width())),0,An.width()),Or=Ve(An.height()-Math.ceil(or.b/(100/An.height())),0,An.height()),xr.css({top:Or+"px",left:vr+"px"}),Or=Ve(lr.height()-or.h/(360/lr.height()),0,lr.height()),$r.css("top",Or+"px"),An.css("backgroundColor",Ye({h:or.h,s:100,b:100}))}Oe.data("minicolors-initialized")&&Ue(Oe,gr,mr)}function Ue(Oe,Je,We){var or,mr,er,ir=Oe.data("minicolors-settings"),gr=Oe.data("minicolors-lastChange");if(!gr||gr.value!==Je||gr.opacity!==We){if(Oe.data("minicolors-lastChange",{value:Je,opacity:We}),ir.swatches&&ir.swatches.length!==0){for(or=nr(Je)?Re(Je,!0):Ar(Je),mr=-1,er=0;er<ir.swatches.length;++er)if(or.r===ir.swatches[er].r&&or.g===ir.swatches[er].g&&or.b===ir.swatches[er].b&&or.a===ir.swatches[er].a){mr=er;break}Oe.parent().find(".minicolors-swatches .minicolors-swatch").removeClass("selected"),mr!==-1&&Oe.parent().find(".minicolors-swatches .minicolors-swatch").eq(er).addClass("selected")}ir.change&&(ir.changeDelay?(clearTimeout(Oe.data("minicolors-changeTimeout")),Oe.data("minicolors-changeTimeout",setTimeout(function(){ir.change.call(Oe.get(0),Je,We)},ir.changeDelay))):ir.change.call(Oe.get(0),Je,We)),Oe.trigger("change").trigger("input")}}function $e(Oe,Je){return Je==="uppercase"?Oe.toUpperCase():Oe.toLowerCase()}function Me(Oe,Je){return!(Oe=Oe.replace(/^#/g,"")).match(/^[A-F0-9]{3,6}/gi)||Oe.length!==3&&Oe.length!==6?"":(Oe.length===3&&Je&&(Oe=Oe[0]+Oe[0]+Oe[1]+Oe[1]+Oe[2]+Oe[2]),"#"+Oe)}function Re(Oe,Je){var We=Oe.replace(/[^\d,.]/g,"").split(",");return We[0]=Ve(parseInt(We[0],10),0,255),We[1]=Ve(parseInt(We[1],10),0,255),We[2]=Ve(parseInt(We[2],10),0,255),We[3]!==void 0&&(We[3]=Ve(parseFloat(We[3],10),0,1)),Je?We[3]!==void 0?{r:We[0],g:We[1],b:We[2],a:We[3]}:{r:We[0],g:We[1],b:We[2]}:We[3]!==void 0&&We[3]<=1?"rgba("+We[0]+", "+We[1]+", "+We[2]+", "+We[3]+")":"rgb("+We[0]+", "+We[1]+", "+We[2]+")"}function ze(Oe,Je){return nr(Oe)?Re(Oe):Me(Oe,Je)}function Ve(Oe,Je,We){return Oe<Je&&(Oe=Je),We<Oe&&(Oe=We),Oe}function nr(Oe){var Je=Oe.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return!(!Je||Je.length!==4)}function Ze(Oe){return(Oe=Oe.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d{1,2})?|\.\d{1,2})[\s+]?/i))&&Oe.length===6?Oe[4]:"1"}function ar(Oe){return(Oe=Oe.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&Oe.length===4?"#"+("0"+parseInt(Oe[1],10).toString(16)).slice(-2)+("0"+parseInt(Oe[2],10).toString(16)).slice(-2)+("0"+parseInt(Oe[3],10).toString(16)).slice(-2):""}function fr(Oe){var Je=[Oe.r.toString(16),Oe.g.toString(16),Oe.b.toString(16)];return Ae.each(Je,function(We,or){or.length===1&&(Je[We]="0"+or)}),"#"+Je.join("")}function Ye(Oe){return fr((Je=Oe,er={},ir=Math.round(Je.h),gr=Math.round(255*Je.s/100),vr=Math.round(255*Je.b/100),gr===0?er.r=er.g=er.b=vr:(mr=ir%60*((We=vr)-(or=(255-gr)*vr/255))/60,ir===360&&(ir=0),ir<60?(er.r=We,er.b=or,er.g=or+mr):ir<120?(er.g=We,er.b=or,er.r=We-mr):ir<180?(er.g=We,er.r=or,er.b=or+mr):ir<240?(er.b=We,er.r=or,er.g=We-mr):ir<300?(er.b=We,er.g=or,er.r=or+mr):ir<360?(er.r=We,er.g=or,er.b=We-mr):(er.r=0,er.g=0,er.b=0)),{r:Math.round(er.r),g:Math.round(er.g),b:Math.round(er.b)}));var Je,We,or,mr,er,ir,gr,vr}function Ar(Oe){return{r:(Oe=parseInt(-1<Oe.indexOf("#")?Oe.substring(1):Oe,16))>>16,g:(65280&Oe)>>8,b:255&Oe}}Ae.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom",show:null,showSpeed:100,theme:"default",swatches:[]}},Ae.extend(Ae.fn,{minicolors:function(Oe,Je){switch(Oe){case"destroy":return Ae(this).each(function(){Ee(Ae(this))}),Ae(this);case"hide":return _e(),Ae(this);case"opacity":return Je===void 0?Ae(this).attr("data-opacity"):(Ae(this).each(function(){Ie(Ae(this).attr("data-opacity",Je))}),Ae(this));case"rgbObject":return function(We){var or,mr=Ae(We).attr("data-opacity");{var er;or=nr(Ae(We).val())?Re(Ae(We).val(),!0):(er=Me(Ae(We).val(),!0),Ar(er))}return or?(mr!==void 0&&Ae.extend(or,{a:parseFloat(mr)}),or):null}(Ae(this));case"rgbString":case"rgbaString":return function(We,or){var mr,er=Ae(We).attr("data-opacity");{var ir;mr=nr(Ae(We).val())?Re(Ae(We).val(),!0):(ir=Me(Ae(We).val(),!0),Ar(ir))}return mr?(er===void 0&&(er=1),or?"rgba("+mr.r+", "+mr.g+", "+mr.b+", "+parseFloat(er)+")":"rgb("+mr.r+", "+mr.g+", "+mr.b+")"):null}(Ae(this),Oe==="rgbaString");case"settings":return Je===void 0?Ae(this).data("minicolors-settings"):(Ae(this).each(function(){var We=Ae(this).data("minicolors-settings")||{};Ee(Ae(this)),Ae(this).minicolors(Ae.extend(!0,We,Je))}),Ae(this));case"show":return Ce(Ae(this).eq(0)),Ae(this);case"value":return Je===void 0?Ae(this).val():(Ae(this).each(function(){typeof Je=="object"&&Je!==null?(Je.opacity!==void 0&&Ae(this).attr("data-opacity",Ve(Je.opacity,0,1)),Je.color&&Ae(this).val(Je.color)):Ae(this).val(Je),Ie(Ae(this))}),Ae(this));default:return Oe!=="create"&&(Je=Oe),Ae(this).each(function(){(function(We,or){var mr,er,ir,gr,vr,Or,Nr,Hr=Ae('<div class="minicolors" />'),Dr=Ae.minicolors.defaults;if(!We.data("minicolors-initialized")){if(or=Ae.extend(!0,{},Dr,or),Hr.addClass("minicolors-theme-"+or.theme).toggleClass("minicolors-with-opacity",or.opacity),or.position!==void 0&&Ae.each(or.position.split(" "),function(){Hr.addClass("minicolors-position-"+this)}),er=or.format==="rgb"?or.opacity?"25":"20":or.keywords?"11":"7",We.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",or).prop("size",er).wrap(Hr).after('<div class="minicolors-panel minicolors-slider-'+or.control+'"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),or.inline||(We.after('<span class="minicolors-swatch minicolors-sprite minicolors-input-swatch"><span class="minicolors-swatch-color"></span></span>'),We.next(".minicolors-input-swatch").on("click",function(kr){kr.preventDefault(),We.trigger("focus")})),(Or=We.parent().find(".minicolors-panel")).on("selectstart",function(){return!1}).end(),or.swatches&&or.swatches.length!==0)for(Or.addClass("minicolors-with-swatches"),ir=Ae('<ul class="minicolors-swatches"></ul>').appendTo(Or),Nr=0;Nr<or.swatches.length;++Nr)gr=typeof or.swatches[Nr]=="object"?(mr=or.swatches[Nr].name,or.swatches[Nr].color):(mr="",or.swatches[Nr]),gr=nr(vr=gr)?Re(gr,!0):Ar(Me(gr,!0)),Ae('<li class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></li>').attr("title",mr).appendTo(ir).data("swatch-color",vr).find(".minicolors-swatch-color").css({backgroundColor:vr!=="transparent"?fr(gr):"transparent",opacity:String(gr.a)}),or.swatches[Nr]=gr;or.inline&&We.parent().addClass("minicolors-inline"),Ie(We,!1),We.data("minicolors-initialized",!0)}})(Ae(this),Je)}),Ae(this)}}}),Ae([document]).on("mousedown.minicolors touchstart.minicolors",function(Oe){Ae(Oe.target).parents().add(Oe.target).hasClass("minicolors")||_e()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(Oe){var Je=Ae(this);Oe.preventDefault(),Ae(Oe.delegateTarget).data("minicolors-target",Je),Te(Je,Oe,!0)}).on("mousemove.minicolors touchmove.minicolors",function(Oe){var Je=Ae(Oe.delegateTarget).data("minicolors-target");Je&&Te(Je,Oe)}).on("mouseup.minicolors touchend.minicolors",function(){Ae(this).removeData("minicolors-target")}).on("click.minicolors",".minicolors-swatches li",function(Oe){Oe.preventDefault();var Je=Ae(this),We=Je.parents(".minicolors").find(".minicolors-input"),or=Je.data("swatch-color");xe(We,or,Ze(or)),Ie(We)}).on("mousedown.minicolors touchstart.minicolors",".minicolors-input-swatch",function(Oe){var Je=Ae(this).parent().find(".minicolors-input");Oe.preventDefault(),Ce(Je)}).on("focus.minicolors",".minicolors-input",function(){var Oe=Ae(this);Oe.data("minicolors-initialized")&&Ce(Oe)}).on("blur.minicolors",".minicolors-input",function(){var Oe,Je,We,or,mr,er=Ae(this),ir=er.data("minicolors-settings");er.data("minicolors-initialized")&&(Oe=ir.keywords?Ae.map(ir.keywords.split(","),function(gr){return gr.toLowerCase().trim()}):[],mr=er.val()!==""&&-1<Ae.inArray(er.val().toLowerCase(),Oe)?er.val():(We=nr(er.val())?Re(er.val(),!0):(Je=Me(er.val(),!0))?Ar(Je):null)===null?ir.defaultValue:ir.format==="rgb"?ir.opacity?Re("rgba("+We.r+","+We.g+","+We.b+","+er.attr("data-opacity")+")"):Re("rgb("+We.r+","+We.g+","+We.b+")"):fr(We),or=ir.opacity?er.attr("data-opacity"):1,mr.toLowerCase()==="transparent"&&(or=0),er.closest(".minicolors").find(".minicolors-input-swatch > span").css("opacity",String(or)),er.val(mr),er.val()===""&&er.val(ze(ir.defaultValue,!0)),er.val($e(er.val(),ir.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(Oe){var Je=Ae(this);if(Je.data("minicolors-initialized"))switch(Oe.which){case 9:_e();break;case 13:case 27:_e(),Je.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var Oe=Ae(this);Oe.data("minicolors-initialized")&&Ie(Oe,!0)}).on("paste.minicolors",".minicolors-input",function(){var Oe=Ae(this);Oe.data("minicolors-initialized")&&setTimeout(function(){Ie(Oe,!0)},1)})})})(jquery_minicolors_min);var barcodes={},CODE39$1={},Barcode$1={};Object.defineProperty(Barcode$1,"__esModule",{value:!0});function _classCallCheck$t(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var Barcode=function Be(St,Ae){_classCallCheck$t(this,Be),this.data=St,this.text=Ae.text||St,this.options=Ae};Barcode$1.default=Barcode,Object.defineProperty(CODE39$1,"__esModule",{value:!0}),CODE39$1.CODE39=void 0;var _createClass$l=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$b=Barcode$1,_Barcode3$b=_interopRequireDefault$x(_Barcode2$b);function _interopRequireDefault$x(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$s(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$n(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$n(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE39=function(Be){_inherits$n(St,Be);function St(Ae,Ee){return _classCallCheck$s(this,St),Ae=Ae.toUpperCase(),Ee.mod43&&(Ae+=getCharacter(mod43checksum(Ae))),_possibleConstructorReturn$n(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$l(St,[{key:"encode",value:function(){for(var Ee=getEncoding("*"),Ce=0;Ce<this.data.length;Ce++)Ee+=getEncoding(this.data[Ce])+"0";return Ee+=getEncoding("*"),{data:Ee,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),St}(_Barcode3$b.default),characters=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],encodings=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function getEncoding(Be){return getBinary(characterValue(Be))}function getBinary(Be){return encodings[Be].toString(2)}function getCharacter(Be){return characters[Be]}function characterValue(Be){return characters.indexOf(Be)}function mod43checksum(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++)St+=characterValue(Be[Ae]);return St=St%43,St}CODE39$1.CODE39=CODE39;var CODE128$2={},CODE128_AUTO={},CODE128$1={},constants$2={};Object.defineProperty(constants$2,"__esModule",{value:!0});var _SET_BY_CODE;function _defineProperty$1(Be,St,Ae){return St in Be?Object.defineProperty(Be,St,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):Be[St]=Ae,Be}var SET_A=constants$2.SET_A=0,SET_B=constants$2.SET_B=1,SET_C=constants$2.SET_C=2;constants$2.SHIFT=98;var START_A=constants$2.START_A=103,START_B=constants$2.START_B=104,START_C=constants$2.START_C=105;constants$2.MODULO=103,constants$2.STOP=106,constants$2.FNC1=207,constants$2.SET_BY_CODE=(_SET_BY_CODE={},_defineProperty$1(_SET_BY_CODE,START_A,SET_A),_defineProperty$1(_SET_BY_CODE,START_B,SET_B),_defineProperty$1(_SET_BY_CODE,START_C,SET_C),_SET_BY_CODE),constants$2.SWAP={101:SET_A,100:SET_B,99:SET_C},constants$2.A_START_CHAR=String.fromCharCode(208),constants$2.B_START_CHAR=String.fromCharCode(209),constants$2.C_START_CHAR=String.fromCharCode(210),constants$2.A_CHARS="[\0-_È-Ï]",constants$2.B_CHARS="[ -È-Ï]",constants$2.C_CHARS="(Ï*[0-9]{2}Ï*)",constants$2.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(CODE128$1,"__esModule",{value:!0});var _createClass$k=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$a=Barcode$1,_Barcode3$a=_interopRequireDefault$w(_Barcode2$a),_constants$a=constants$2;function _interopRequireDefault$w(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$r(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$m(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$m(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128=function(Be){_inherits$m(St,Be);function St(Ae,Ee){_classCallCheck$r(this,St);var Ce=_possibleConstructorReturn$m(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae.substring(1),Ee));return Ce.bytes=Ae.split("").map(function(_e){return _e.charCodeAt(0)}),Ce}return _createClass$k(St,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var Ee=this.bytes,Ce=Ee.shift()-105,_e=_constants$a.SET_BY_CODE[Ce];if(_e===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&Ee.unshift(_constants$a.FNC1);var Te=St.next(Ee,1,_e);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:St.getBar(Ce)+Te.result+St.getBar((Te.checksum+Ce)%_constants$a.MODULO)+St.getBar(_constants$a.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var Ee=this.options.ean128||!1;return typeof Ee=="string"&&(Ee=Ee.toLowerCase()==="true"),Ee}}],[{key:"getBar",value:function(Ee){return _constants$a.BARS[Ee]?_constants$a.BARS[Ee].toString():""}},{key:"correctIndex",value:function(Ee,Ce){if(Ce===_constants$a.SET_A){var _e=Ee.shift();return _e<32?_e+64:_e-32}else return Ce===_constants$a.SET_B?Ee.shift()-32:(Ee.shift()-48)*10+Ee.shift()-48}},{key:"next",value:function(Ee,Ce,_e){if(!Ee.length)return{result:"",checksum:0};var Te=void 0,Se=void 0;if(Ee[0]>=200){Se=Ee.shift()-105;var xe=_constants$a.SWAP[Se];xe!==void 0?Te=St.next(Ee,Ce+1,xe):((_e===_constants$a.SET_A||_e===_constants$a.SET_B)&&Se===_constants$a.SHIFT&&(Ee[0]=_e===_constants$a.SET_A?Ee[0]>95?Ee[0]-96:Ee[0]:Ee[0]<32?Ee[0]+96:Ee[0]),Te=St.next(Ee,Ce+1,_e))}else Se=St.correctIndex(Ee,_e),Te=St.next(Ee,Ce+1,_e);var Ie=St.getBar(Se),Ue=Se*Ce;return{result:Ie+Te.result,checksum:Ue+Te.checksum}}}]),St}(_Barcode3$a.default);CODE128$1.default=CODE128;var auto={};Object.defineProperty(auto,"__esModule",{value:!0});var _constants$9=constants$2,matchSetALength=function(St){return St.match(new RegExp("^"+_constants$9.A_CHARS+"*"))[0].length},matchSetBLength=function(St){return St.match(new RegExp("^"+_constants$9.B_CHARS+"*"))[0].length},matchSetC=function(St){return St.match(new RegExp("^"+_constants$9.C_CHARS+"*"))[0]};function autoSelectFromAB(Be,St){var Ae=St?_constants$9.A_CHARS:_constants$9.B_CHARS,Ee=Be.match(new RegExp("^("+Ae+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(Ee)return Ee[1]+String.fromCharCode(204)+autoSelectFromC(Be.substring(Ee[1].length));var Ce=Be.match(new RegExp("^"+Ae+"+"))[0];return Ce.length===Be.length?Be:Ce+String.fromCharCode(St?205:206)+autoSelectFromAB(Be.substring(Ce.length),!St)}function autoSelectFromC(Be){var St=matchSetC(Be),Ae=St.length;if(Ae===Be.length)return Be;Be=Be.substring(Ae);var Ee=matchSetALength(Be)>=matchSetBLength(Be);return St+String.fromCharCode(Ee?206:205)+autoSelectFromAB(Be,Ee)}auto.default=function(Be){var St=void 0,Ae=matchSetC(Be).length;if(Ae>=2)St=_constants$9.C_START_CHAR+autoSelectFromC(Be);else{var Ee=matchSetALength(Be)>matchSetBLength(Be);St=(Ee?_constants$9.A_START_CHAR:_constants$9.B_START_CHAR)+autoSelectFromAB(Be,Ee)}return St.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(Ce,_e){return String.fromCharCode(203)+_e})},Object.defineProperty(CODE128_AUTO,"__esModule",{value:!0});var _CODE2$4=CODE128$1,_CODE3$3=_interopRequireDefault$v(_CODE2$4),_auto=auto,_auto2=_interopRequireDefault$v(_auto);function _interopRequireDefault$v(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$q(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$l(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$l(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128AUTO=function(Be){_inherits$l(St,Be);function St(Ae,Ee){if(_classCallCheck$q(this,St),/^[\x00-\x7F\xC8-\xD3]+$/.test(Ae))var Ce=_possibleConstructorReturn$l(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,(0,_auto2.default)(Ae),Ee));else var Ce=_possibleConstructorReturn$l(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return _possibleConstructorReturn$l(Ce)}return St}(_CODE3$3.default);CODE128_AUTO.default=CODE128AUTO;var CODE128A$1={};Object.defineProperty(CODE128A$1,"__esModule",{value:!0});var _createClass$j=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_CODE2$3=CODE128$1,_CODE3$2=_interopRequireDefault$u(_CODE2$3),_constants$8=constants$2;function _interopRequireDefault$u(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$p(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$k(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$k(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128A=function(Be){_inherits$k(St,Be);function St(Ae,Ee){return _classCallCheck$p(this,St),_possibleConstructorReturn$k(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,_constants$8.A_START_CHAR+Ae,Ee))}return _createClass$j(St,[{key:"valid",value:function(){return new RegExp("^"+_constants$8.A_CHARS+"+$").test(this.data)}}]),St}(_CODE3$2.default);CODE128A$1.default=CODE128A;var CODE128B$1={};Object.defineProperty(CODE128B$1,"__esModule",{value:!0});var _createClass$i=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_CODE2$2=CODE128$1,_CODE3$1=_interopRequireDefault$t(_CODE2$2),_constants$7=constants$2;function _interopRequireDefault$t(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$o(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$j(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$j(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128B=function(Be){_inherits$j(St,Be);function St(Ae,Ee){return _classCallCheck$o(this,St),_possibleConstructorReturn$j(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,_constants$7.B_START_CHAR+Ae,Ee))}return _createClass$i(St,[{key:"valid",value:function(){return new RegExp("^"+_constants$7.B_CHARS+"+$").test(this.data)}}]),St}(_CODE3$1.default);CODE128B$1.default=CODE128B;var CODE128C$1={};Object.defineProperty(CODE128C$1,"__esModule",{value:!0});var _createClass$h=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_CODE2$1=CODE128$1,_CODE3=_interopRequireDefault$s(_CODE2$1),_constants$6=constants$2;function _interopRequireDefault$s(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$n(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$i(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$i(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var CODE128C=function(Be){_inherits$i(St,Be);function St(Ae,Ee){return _classCallCheck$n(this,St),_possibleConstructorReturn$i(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,_constants$6.C_START_CHAR+Ae,Ee))}return _createClass$h(St,[{key:"valid",value:function(){return new RegExp("^"+_constants$6.C_CHARS+"+$").test(this.data)}}]),St}(_CODE3.default);CODE128C$1.default=CODE128C,Object.defineProperty(CODE128$2,"__esModule",{value:!0}),CODE128$2.CODE128C=CODE128$2.CODE128B=CODE128$2.CODE128A=CODE128$2.CODE128=void 0;var _CODE128_AUTO=CODE128_AUTO,_CODE128_AUTO2=_interopRequireDefault$r(_CODE128_AUTO),_CODE128A=CODE128A$1,_CODE128A2=_interopRequireDefault$r(_CODE128A),_CODE128B=CODE128B$1,_CODE128B2=_interopRequireDefault$r(_CODE128B),_CODE128C=CODE128C$1,_CODE128C2=_interopRequireDefault$r(_CODE128C);function _interopRequireDefault$r(Be){return Be&&Be.__esModule?Be:{default:Be}}CODE128$2.CODE128=_CODE128_AUTO2.default,CODE128$2.CODE128A=_CODE128A2.default,CODE128$2.CODE128B=_CODE128B2.default,CODE128$2.CODE128C=_CODE128C2.default;var EAN_UPC={},EAN13$1={},constants$1={};Object.defineProperty(constants$1,"__esModule",{value:!0}),constants$1.SIDE_BIN="101",constants$1.MIDDLE_BIN="01010",constants$1.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},constants$1.EAN2_STRUCTURE=["LL","LG","GL","GG"],constants$1.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],constants$1.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var EAN$1={},encoder={};Object.defineProperty(encoder,"__esModule",{value:!0});var _constants$5=constants$1,encode$3=function(St,Ae,Ee){var Ce=St.split("").map(function(Te,Se){return _constants$5.BINARIES[Ae[Se]]}).map(function(Te,Se){return Te?Te[St[Se]]:""});if(Ee){var _e=St.length-1;Ce=Ce.map(function(Te,Se){return Se<_e?Te+Ee:Te})}return Ce.join("")};encoder.default=encode$3,Object.defineProperty(EAN$1,"__esModule",{value:!0});var _createClass$g=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants$4=constants$1,_encoder$4=encoder,_encoder2$4=_interopRequireDefault$q(_encoder$4),_Barcode2$9=Barcode$1,_Barcode3$9=_interopRequireDefault$q(_Barcode2$9);function _interopRequireDefault$q(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$m(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$h(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$h(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var EAN=function(Be){_inherits$h(St,Be);function St(Ae,Ee){_classCallCheck$m(this,St);var Ce=_possibleConstructorReturn$h(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.fontSize=!Ee.flat&&Ee.fontSize>Ee.width*10?Ee.width*10:Ee.fontSize,Ce.guardHeight=Ee.height+Ce.fontSize/2+Ee.textMargin,Ce}return _createClass$g(St,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(Ee,Ce){return this.text.substr(Ee,Ce)}},{key:"leftEncode",value:function(Ee,Ce){return(0,_encoder2$4.default)(Ee,Ce)}},{key:"rightText",value:function(Ee,Ce){return this.text.substr(Ee,Ce)}},{key:"rightEncode",value:function(Ee,Ce){return(0,_encoder2$4.default)(Ee,Ce)}},{key:"encodeGuarded",value:function(){var Ee={fontSize:this.fontSize},Ce={height:this.guardHeight};return[{data:_constants$4.SIDE_BIN,options:Ce},{data:this.leftEncode(),text:this.leftText(),options:Ee},{data:_constants$4.MIDDLE_BIN,options:Ce},{data:this.rightEncode(),text:this.rightText(),options:Ee},{data:_constants$4.SIDE_BIN,options:Ce}]}},{key:"encodeFlat",value:function(){var Ee=[_constants$4.SIDE_BIN,this.leftEncode(),_constants$4.MIDDLE_BIN,this.rightEncode(),_constants$4.SIDE_BIN];return{data:Ee.join(""),text:this.text}}}]),St}(_Barcode3$9.default);EAN$1.default=EAN,Object.defineProperty(EAN13$1,"__esModule",{value:!0});var _createClass$f=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_get$1=function Be(St,Ae,Ee){St===null&&(St=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(St,Ae);if(Ce===void 0){var _e=Object.getPrototypeOf(St);return _e===null?void 0:Be(_e,Ae,Ee)}else{if("value"in Ce)return Ce.value;var Te=Ce.get;return Te===void 0?void 0:Te.call(Ee)}},_constants$3=constants$1,_EAN2$2=EAN$1,_EAN3$2=_interopRequireDefault$p(_EAN2$2);function _interopRequireDefault$p(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$l(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$g(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$g(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum$4=function(St){var Ae=St.substr(0,12).split("").map(function(Ee){return+Ee}).reduce(function(Ee,Ce,_e){return _e%2?Ee+Ce*3:Ee+Ce},0);return(10-Ae%10)%10},EAN13=function(Be){_inherits$g(St,Be);function St(Ae,Ee){_classCallCheck$l(this,St),Ae.search(/^[0-9]{12}$/)!==-1&&(Ae+=checksum$4(Ae));var Ce=_possibleConstructorReturn$g(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.lastChar=Ee.lastChar,Ce}return _createClass$f(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===checksum$4(this.data)}},{key:"leftText",value:function(){return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var Ee=this.data.substr(1,6),Ce=_constants$3.EAN13_STRUCTURE[this.data[0]];return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftEncode",this).call(this,Ee,Ce)}},{key:"rightText",value:function(){return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var Ee=this.data.substr(7,6);return _get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightEncode",this).call(this,Ee,"RRRRRR")}},{key:"encodeGuarded",value:function(){var Ee=_get$1(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(Ee.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(Ee.push({data:"00"}),Ee.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),Ee}}]),St}(_EAN3$2.default);EAN13$1.default=EAN13;var EAN8$1={};Object.defineProperty(EAN8$1,"__esModule",{value:!0});var _createClass$e=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_get=function Be(St,Ae,Ee){St===null&&(St=Function.prototype);var Ce=Object.getOwnPropertyDescriptor(St,Ae);if(Ce===void 0){var _e=Object.getPrototypeOf(St);return _e===null?void 0:Be(_e,Ae,Ee)}else{if("value"in Ce)return Ce.value;var Te=Ce.get;return Te===void 0?void 0:Te.call(Ee)}},_EAN2$1=EAN$1,_EAN3$1=_interopRequireDefault$o(_EAN2$1);function _interopRequireDefault$o(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$k(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$f(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum$3=function(St){var Ae=St.substr(0,7).split("").map(function(Ee){return+Ee}).reduce(function(Ee,Ce,_e){return _e%2?Ee+Ce:Ee+Ce*3},0);return(10-Ae%10)%10},EAN8=function(Be){_inherits$f(St,Be);function St(Ae,Ee){return _classCallCheck$k(this,St),Ae.search(/^[0-9]{7}$/)!==-1&&(Ae+=checksum$3(Ae)),_possibleConstructorReturn$f(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$e(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===checksum$3(this.data)}},{key:"leftText",value:function(){return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var Ee=this.data.substr(0,4);return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"leftEncode",this).call(this,Ee,"LLLL")}},{key:"rightText",value:function(){return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var Ee=this.data.substr(4,4);return _get(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"rightEncode",this).call(this,Ee,"RRRR")}}]),St}(_EAN3$1.default);EAN8$1.default=EAN8;var EAN5$1={};Object.defineProperty(EAN5$1,"__esModule",{value:!0});var _createClass$d=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants$2=constants$1,_encoder$3=encoder,_encoder2$3=_interopRequireDefault$n(_encoder$3),_Barcode2$8=Barcode$1,_Barcode3$8=_interopRequireDefault$n(_Barcode2$8);function _interopRequireDefault$n(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$j(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$e(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum$2=function(St){var Ae=St.split("").map(function(Ee){return+Ee}).reduce(function(Ee,Ce,_e){return _e%2?Ee+Ce*9:Ee+Ce*3},0);return Ae%10},EAN5=function(Be){_inherits$e(St,Be);function St(Ae,Ee){return _classCallCheck$j(this,St),_possibleConstructorReturn$e(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$d(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var Ee=_constants$2.EAN5_STRUCTURE[checksum$2(this.data)];return{data:"1011"+(0,_encoder2$3.default)(this.data,Ee,"01"),text:this.text}}}]),St}(_Barcode3$8.default);EAN5$1.default=EAN5;var EAN2$1={};Object.defineProperty(EAN2$1,"__esModule",{value:!0});var _createClass$c=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants$1=constants$1,_encoder$2=encoder,_encoder2$2=_interopRequireDefault$m(_encoder$2),_Barcode2$7=Barcode$1,_Barcode3$7=_interopRequireDefault$m(_Barcode2$7);function _interopRequireDefault$m(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$i(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$d(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var EAN2=function(Be){_inherits$d(St,Be);function St(Ae,Ee){return _classCallCheck$i(this,St),_possibleConstructorReturn$d(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$c(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var Ee=_constants$1.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,_encoder2$2.default)(this.data,Ee,"01"),text:this.text}}}]),St}(_Barcode3$7.default);EAN2$1.default=EAN2;var UPC$1={};Object.defineProperty(UPC$1,"__esModule",{value:!0});var _createClass$b=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}();UPC$1.checksum=checksum$1;var _encoder$1=encoder,_encoder2$1=_interopRequireDefault$l(_encoder$1),_Barcode2$6=Barcode$1,_Barcode3$6=_interopRequireDefault$l(_Barcode2$6);function _interopRequireDefault$l(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$h(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$c(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$c(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var UPC=function(Be){_inherits$c(St,Be);function St(Ae,Ee){_classCallCheck$h(this,St),Ae.search(/^[0-9]{11}$/)!==-1&&(Ae+=checksum$1(Ae));var Ce=_possibleConstructorReturn$c(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.displayValue=Ee.displayValue,Ee.fontSize>Ee.width*10?Ce.fontSize=Ee.width*10:Ce.fontSize=Ee.fontSize,Ce.guardHeight=Ee.height+Ce.fontSize/2+Ee.textMargin,Ce}return _createClass$b(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==checksum$1(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var Ee="";return Ee+="101",Ee+=(0,_encoder2$1.default)(this.data.substr(0,6),"LLLLLL"),Ee+="01010",Ee+=(0,_encoder2$1.default)(this.data.substr(6,6),"RRRRRR"),Ee+="101",{data:Ee,text:this.text}}},{key:"guardedEncoding",value:function(){var Ee=[];return this.displayValue&&Ee.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),Ee.push({data:"101"+(0,_encoder2$1.default)(this.data[0],"L"),options:{height:this.guardHeight}}),Ee.push({data:(0,_encoder2$1.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),Ee.push({data:"01010",options:{height:this.guardHeight}}),Ee.push({data:(0,_encoder2$1.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),Ee.push({data:(0,_encoder2$1.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&Ee.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),Ee}}]),St}(_Barcode3$6.default);function checksum$1(Be){var St=0,Ae;for(Ae=1;Ae<11;Ae+=2)St+=parseInt(Be[Ae]);for(Ae=0;Ae<11;Ae+=2)St+=parseInt(Be[Ae])*3;return(10-St%10)%10}UPC$1.default=UPC;var UPCE$1={};Object.defineProperty(UPCE$1,"__esModule",{value:!0});var _createClass$a=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_encoder=encoder,_encoder2=_interopRequireDefault$k(_encoder),_Barcode2$5=Barcode$1,_Barcode3$5=_interopRequireDefault$k(_Barcode2$5),_UPC$1=UPC$1;function _interopRequireDefault$k(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$g(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$b(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$b(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var EXPANSIONS=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],PARITIES=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],UPCE=function(Be){_inherits$b(St,Be);function St(Ae,Ee){_classCallCheck$g(this,St);var Ce=_possibleConstructorReturn$b(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));if(Ce.isValid=!1,Ae.search(/^[0-9]{6}$/)!==-1)Ce.middleDigits=Ae,Ce.upcA=expandToUPCA(Ae,"0"),Ce.text=Ee.text||""+Ce.upcA[0]+Ae+Ce.upcA[Ce.upcA.length-1],Ce.isValid=!0;else if(Ae.search(/^[01][0-9]{7}$/)!==-1)if(Ce.middleDigits=Ae.substring(1,Ae.length-1),Ce.upcA=expandToUPCA(Ce.middleDigits,Ae[0]),Ce.upcA[Ce.upcA.length-1]===Ae[Ae.length-1])Ce.isValid=!0;else return _possibleConstructorReturn$b(Ce);else return _possibleConstructorReturn$b(Ce);return Ce.displayValue=Ee.displayValue,Ee.fontSize>Ee.width*10?Ce.fontSize=Ee.width*10:Ce.fontSize=Ee.fontSize,Ce.guardHeight=Ee.height+Ce.fontSize/2+Ee.textMargin,Ce}return _createClass$a(St,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var Ee="";return Ee+="101",Ee+=this.encodeMiddleDigits(),Ee+="010101",{data:Ee,text:this.text}}},{key:"guardedEncoding",value:function(){var Ee=[];return this.displayValue&&Ee.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),Ee.push({data:"101",options:{height:this.guardHeight}}),Ee.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),Ee.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&Ee.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),Ee}},{key:"encodeMiddleDigits",value:function(){var Ee=this.upcA[0],Ce=this.upcA[this.upcA.length-1],_e=PARITIES[parseInt(Ce)][parseInt(Ee)];return(0,_encoder2.default)(this.middleDigits,_e)}}]),St}(_Barcode3$5.default);function expandToUPCA(Be,St){for(var Ae=parseInt(Be[Be.length-1]),Ee=EXPANSIONS[Ae],Ce="",_e=0,Te=0;Te<Ee.length;Te++){var Se=Ee[Te];Se==="X"?Ce+=Be[_e++]:Ce+=Se}return Ce=""+St+Ce,""+Ce+(0,_UPC$1.checksum)(Ce)}UPCE$1.default=UPCE,Object.defineProperty(EAN_UPC,"__esModule",{value:!0}),EAN_UPC.UPCE=EAN_UPC.UPC=EAN_UPC.EAN2=EAN_UPC.EAN5=EAN_UPC.EAN8=EAN_UPC.EAN13=void 0;var _EAN=EAN13$1,_EAN2=_interopRequireDefault$j(_EAN),_EAN3=EAN8$1,_EAN4=_interopRequireDefault$j(_EAN3),_EAN5=EAN5$1,_EAN6=_interopRequireDefault$j(_EAN5),_EAN7=EAN2$1,_EAN8=_interopRequireDefault$j(_EAN7),_UPC=UPC$1,_UPC2=_interopRequireDefault$j(_UPC),_UPCE=UPCE$1,_UPCE2=_interopRequireDefault$j(_UPCE);function _interopRequireDefault$j(Be){return Be&&Be.__esModule?Be:{default:Be}}EAN_UPC.EAN13=_EAN2.default,EAN_UPC.EAN8=_EAN4.default,EAN_UPC.EAN5=_EAN6.default,EAN_UPC.EAN2=_EAN8.default,EAN_UPC.UPC=_UPC2.default,EAN_UPC.UPCE=_UPCE2.default;var ITF$2={},ITF$1={},constants={};Object.defineProperty(constants,"__esModule",{value:!0}),constants.START_BIN="1010",constants.END_BIN="11101",constants.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(ITF$1,"__esModule",{value:!0});var _createClass$9=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_constants=constants,_Barcode2$4=Barcode$1,_Barcode3$4=_interopRequireDefault$i(_Barcode2$4);function _interopRequireDefault$i(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$f(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$a(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$a(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var ITF=function(Be){_inherits$a(St,Be);function St(){return _classCallCheck$f(this,St),_possibleConstructorReturn$a(this,(St.__proto__||Object.getPrototypeOf(St)).apply(this,arguments))}return _createClass$9(St,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var Ee=this,Ce=this.data.match(/.{2}/g).map(function(_e){return Ee.encodePair(_e)}).join("");return{data:_constants.START_BIN+Ce+_constants.END_BIN,text:this.text}}},{key:"encodePair",value:function(Ee){var Ce=_constants.BINARIES[Ee[1]];return _constants.BINARIES[Ee[0]].split("").map(function(_e,Te){return(_e==="1"?"111":"1")+(Ce[Te]==="1"?"000":"0")}).join("")}}]),St}(_Barcode3$4.default);ITF$1.default=ITF;var ITF14$1={};Object.defineProperty(ITF14$1,"__esModule",{value:!0});var _createClass$8=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_ITF2$1=ITF$1,_ITF3$1=_interopRequireDefault$h(_ITF2$1);function _interopRequireDefault$h(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$e(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$9(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$9(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var checksum=function(St){var Ae=St.substr(0,13).split("").map(function(Ee){return parseInt(Ee,10)}).reduce(function(Ee,Ce,_e){return Ee+Ce*(3-_e%2*2)},0);return Math.ceil(Ae/10)*10-Ae},ITF14=function(Be){_inherits$9(St,Be);function St(Ae,Ee){return _classCallCheck$e(this,St),Ae.search(/^[0-9]{13}$/)!==-1&&(Ae+=checksum(Ae)),_possibleConstructorReturn$9(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$8(St,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===checksum(this.data)}}]),St}(_ITF3$1.default);ITF14$1.default=ITF14,Object.defineProperty(ITF$2,"__esModule",{value:!0}),ITF$2.ITF14=ITF$2.ITF=void 0;var _ITF$1=ITF$1,_ITF2=_interopRequireDefault$g(_ITF$1),_ITF3=ITF14$1,_ITF4=_interopRequireDefault$g(_ITF3);function _interopRequireDefault$g(Be){return Be&&Be.__esModule?Be:{default:Be}}ITF$2.ITF=_ITF2.default,ITF$2.ITF14=_ITF4.default;var MSI$2={},MSI$1={};Object.defineProperty(MSI$1,"__esModule",{value:!0});var _createClass$7=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$3=Barcode$1,_Barcode3$3=_interopRequireDefault$f(_Barcode2$3);function _interopRequireDefault$f(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$d(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$8(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$8(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI=function(Be){_inherits$8(St,Be);function St(Ae,Ee){return _classCallCheck$d(this,St),_possibleConstructorReturn$8(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$7(St,[{key:"encode",value:function(){for(var Ee="110",Ce=0;Ce<this.data.length;Ce++){var _e=parseInt(this.data[Ce]),Te=_e.toString(2);Te=addZeroes(Te,4-Te.length);for(var Se=0;Se<Te.length;Se++)Ee+=Te[Se]=="0"?"100":"110"}return Ee+="1001",{data:Ee,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),St}(_Barcode3$3.default);function addZeroes(Be,St){for(var Ae=0;Ae<St;Ae++)Be="0"+Be;return Be}MSI$1.default=MSI;var MSI10$1={},checksums={};Object.defineProperty(checksums,"__esModule",{value:!0}),checksums.mod10=mod10,checksums.mod11=mod11;function mod10(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++){var Ee=parseInt(Be[Ae]);(Ae+Be.length)%2===0?St+=Ee:St+=Ee*2%10+Math.floor(Ee*2/10)}return(10-St%10)%10}function mod11(Be){for(var St=0,Ae=[2,3,4,5,6,7],Ee=0;Ee<Be.length;Ee++){var Ce=parseInt(Be[Be.length-1-Ee]);St+=Ae[Ee%Ae.length]*Ce}return(11-St%11)%11}Object.defineProperty(MSI10$1,"__esModule",{value:!0});var _MSI2$4=MSI$1,_MSI3$4=_interopRequireDefault$e(_MSI2$4),_checksums$3=checksums;function _interopRequireDefault$e(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$c(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$7(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$7(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI10=function(Be){_inherits$7(St,Be);function St(Ae,Ee){return _classCallCheck$c(this,St),_possibleConstructorReturn$7(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae+(0,_checksums$3.mod10)(Ae),Ee))}return St}(_MSI3$4.default);MSI10$1.default=MSI10;var MSI11$1={};Object.defineProperty(MSI11$1,"__esModule",{value:!0});var _MSI2$3=MSI$1,_MSI3$3=_interopRequireDefault$d(_MSI2$3),_checksums$2=checksums;function _interopRequireDefault$d(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$b(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$6(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$6(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI11=function(Be){_inherits$6(St,Be);function St(Ae,Ee){return _classCallCheck$b(this,St),_possibleConstructorReturn$6(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae+(0,_checksums$2.mod11)(Ae),Ee))}return St}(_MSI3$3.default);MSI11$1.default=MSI11;var MSI1010$1={};Object.defineProperty(MSI1010$1,"__esModule",{value:!0});var _MSI2$2=MSI$1,_MSI3$2=_interopRequireDefault$c(_MSI2$2),_checksums$1=checksums;function _interopRequireDefault$c(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$a(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$5(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$5(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI1010=function(Be){_inherits$5(St,Be);function St(Ae,Ee){return _classCallCheck$a(this,St),Ae+=(0,_checksums$1.mod10)(Ae),Ae+=(0,_checksums$1.mod10)(Ae),_possibleConstructorReturn$5(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return St}(_MSI3$2.default);MSI1010$1.default=MSI1010;var MSI1110$1={};Object.defineProperty(MSI1110$1,"__esModule",{value:!0});var _MSI2$1=MSI$1,_MSI3$1=_interopRequireDefault$b(_MSI2$1),_checksums=checksums;function _interopRequireDefault$b(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$9(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$4(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$4(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var MSI1110=function(Be){_inherits$4(St,Be);function St(Ae,Ee){return _classCallCheck$9(this,St),Ae+=(0,_checksums.mod11)(Ae),Ae+=(0,_checksums.mod10)(Ae),_possibleConstructorReturn$4(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return St}(_MSI3$1.default);MSI1110$1.default=MSI1110,Object.defineProperty(MSI$2,"__esModule",{value:!0}),MSI$2.MSI1110=MSI$2.MSI1010=MSI$2.MSI11=MSI$2.MSI10=MSI$2.MSI=void 0;var _MSI$1=MSI$1,_MSI2=_interopRequireDefault$a(_MSI$1),_MSI3=MSI10$1,_MSI4=_interopRequireDefault$a(_MSI3),_MSI5=MSI11$1,_MSI6=_interopRequireDefault$a(_MSI5),_MSI7=MSI1010$1,_MSI8=_interopRequireDefault$a(_MSI7),_MSI9=MSI1110$1,_MSI10=_interopRequireDefault$a(_MSI9);function _interopRequireDefault$a(Be){return Be&&Be.__esModule?Be:{default:Be}}MSI$2.MSI=_MSI2.default,MSI$2.MSI10=_MSI4.default,MSI$2.MSI11=_MSI6.default,MSI$2.MSI1010=_MSI8.default,MSI$2.MSI1110=_MSI10.default;var pharmacode$1={};Object.defineProperty(pharmacode$1,"__esModule",{value:!0}),pharmacode$1.pharmacode=void 0;var _createClass$6=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$2=Barcode$1,_Barcode3$2=_interopRequireDefault$9(_Barcode2$2);function _interopRequireDefault$9(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$8(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$3(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$3(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var pharmacode=function(Be){_inherits$3(St,Be);function St(Ae,Ee){_classCallCheck$8(this,St);var Ce=_possibleConstructorReturn$3(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee));return Ce.number=parseInt(Ae,10),Ce}return _createClass$6(St,[{key:"encode",value:function(){for(var Ee=this.number,Ce="";!isNaN(Ee)&&Ee!=0;)Ee%2===0?(Ce="11100"+Ce,Ee=(Ee-2)/2):(Ce="100"+Ce,Ee=(Ee-1)/2);return Ce=Ce.slice(0,-2),{data:Ce,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),St}(_Barcode3$2.default);pharmacode$1.pharmacode=pharmacode;var codabar$1={};Object.defineProperty(codabar$1,"__esModule",{value:!0}),codabar$1.codabar=void 0;var _createClass$5=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2$1=Barcode$1,_Barcode3$1=_interopRequireDefault$8(_Barcode2$1);function _interopRequireDefault$8(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$7(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$2(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$2(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var codabar=function(Be){_inherits$2(St,Be);function St(Ae,Ee){_classCallCheck$7(this,St),Ae.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(Ae="A"+Ae+"A");var Ce=_possibleConstructorReturn$2(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae.toUpperCase(),Ee));return Ce.text=Ce.options.text||Ce.text.replace(/[A-D]/g,""),Ce}return _createClass$5(St,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var Ee=[],Ce=this.getEncodings(),_e=0;_e<this.data.length;_e++)Ee.push(Ce[this.data.charAt(_e)]),_e!==this.data.length-1&&Ee.push("0");return{text:this.text,data:Ee.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),St}(_Barcode3$1.default);codabar$1.codabar=codabar;var GenericBarcode$1={};Object.defineProperty(GenericBarcode$1,"__esModule",{value:!0}),GenericBarcode$1.GenericBarcode=void 0;var _createClass$4=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_Barcode2=Barcode$1,_Barcode3=_interopRequireDefault$7(_Barcode2);function _interopRequireDefault$7(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$6(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits$1(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var GenericBarcode=function(Be){_inherits$1(St,Be);function St(Ae,Ee){return _classCallCheck$6(this,St),_possibleConstructorReturn$1(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ae,Ee))}return _createClass$4(St,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),St}(_Barcode3.default);GenericBarcode$1.GenericBarcode=GenericBarcode,Object.defineProperty(barcodes,"__esModule",{value:!0});var _CODE=CODE39$1,_CODE2=CODE128$2,_EAN_UPC=EAN_UPC,_ITF=ITF$2,_MSI=MSI$2,_pharmacode=pharmacode$1,_codabar=codabar$1,_GenericBarcode=GenericBarcode$1;barcodes.default={CODE39:_CODE.CODE39,CODE128:_CODE2.CODE128,CODE128A:_CODE2.CODE128A,CODE128B:_CODE2.CODE128B,CODE128C:_CODE2.CODE128C,EAN13:_EAN_UPC.EAN13,EAN8:_EAN_UPC.EAN8,EAN5:_EAN_UPC.EAN5,EAN2:_EAN_UPC.EAN2,UPC:_EAN_UPC.UPC,UPCE:_EAN_UPC.UPCE,ITF14:_ITF.ITF14,ITF:_ITF.ITF,MSI:_MSI.MSI,MSI10:_MSI.MSI10,MSI11:_MSI.MSI11,MSI1010:_MSI.MSI1010,MSI1110:_MSI.MSI1110,pharmacode:_pharmacode.pharmacode,codabar:_codabar.codabar,GenericBarcode:_GenericBarcode.GenericBarcode};var merge={};Object.defineProperty(merge,"__esModule",{value:!0});var _extends=Object.assign||function(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St];for(var Ee in Ae)Object.prototype.hasOwnProperty.call(Ae,Ee)&&(Be[Ee]=Ae[Ee])}return Be};merge.default=function(Be,St){return _extends({},Be,St)};var linearizeEncodings$1={};Object.defineProperty(linearizeEncodings$1,"__esModule",{value:!0}),linearizeEncodings$1.default=linearizeEncodings;function linearizeEncodings(Be){var St=[];function Ae(Ee){if(Array.isArray(Ee))for(var Ce=0;Ce<Ee.length;Ce++)Ae(Ee[Ce]);else Ee.text=Ee.text||"",Ee.data=Ee.data||"",St.push(Ee)}return Ae(Be),St}var fixOptions$1={};Object.defineProperty(fixOptions$1,"__esModule",{value:!0}),fixOptions$1.default=fixOptions;function fixOptions(Be){return Be.marginTop=Be.marginTop||Be.margin,Be.marginBottom=Be.marginBottom||Be.margin,Be.marginRight=Be.marginRight||Be.margin,Be.marginLeft=Be.marginLeft||Be.margin,Be}var getRenderProperties$1={},getOptionsFromElement$1={},optionsFromStrings$1={};Object.defineProperty(optionsFromStrings$1,"__esModule",{value:!0}),optionsFromStrings$1.default=optionsFromStrings;function optionsFromStrings(Be){var St=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var Ae in St)St.hasOwnProperty(Ae)&&(Ae=St[Ae],typeof Be[Ae]=="string"&&(Be[Ae]=parseInt(Be[Ae],10)));return typeof Be.displayValue=="string"&&(Be.displayValue=Be.displayValue!="false"),Be}var defaults$1={};Object.defineProperty(defaults$1,"__esModule",{value:!0});var defaults={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};defaults$1.default=defaults,Object.defineProperty(getOptionsFromElement$1,"__esModule",{value:!0});var _optionsFromStrings$1=optionsFromStrings$1,_optionsFromStrings2$1=_interopRequireDefault$6(_optionsFromStrings$1),_defaults$1=defaults$1,_defaults2$1=_interopRequireDefault$6(_defaults$1);function _interopRequireDefault$6(Be){return Be&&Be.__esModule?Be:{default:Be}}function getOptionsFromElement(Be){var St={};for(var Ae in _defaults2$1.default)_defaults2$1.default.hasOwnProperty(Ae)&&(Be.hasAttribute("jsbarcode-"+Ae.toLowerCase())&&(St[Ae]=Be.getAttribute("jsbarcode-"+Ae.toLowerCase())),Be.hasAttribute("data-"+Ae.toLowerCase())&&(St[Ae]=Be.getAttribute("data-"+Ae.toLowerCase())));return St.value=Be.getAttribute("jsbarcode-value")||Be.getAttribute("data-value"),St=(0,_optionsFromStrings2$1.default)(St),St}getOptionsFromElement$1.default=getOptionsFromElement;var renderers={},canvas={},shared$5={};Object.defineProperty(shared$5,"__esModule",{value:!0}),shared$5.getTotalWidthOfEncodings=shared$5.calculateEncodingAttributes=shared$5.getBarcodePadding=shared$5.getEncodingHeight=shared$5.getMaximumHeightOfEncodings=void 0;var _merge$3=merge,_merge2$3=_interopRequireDefault$5(_merge$3);function _interopRequireDefault$5(Be){return Be&&Be.__esModule?Be:{default:Be}}function getEncodingHeight(Be,St){return St.height+(St.displayValue&&Be.text.length>0?St.fontSize+St.textMargin:0)+St.marginTop+St.marginBottom}function getBarcodePadding(Be,St,Ae){if(Ae.displayValue&&St<Be){if(Ae.textAlign=="center")return Math.floor((Be-St)/2);if(Ae.textAlign=="left")return 0;if(Ae.textAlign=="right")return Math.floor(Be-St)}return 0}function calculateEncodingAttributes(Be,St,Ae){for(var Ee=0;Ee<Be.length;Ee++){var Ce=Be[Ee],_e=(0,_merge2$3.default)(St,Ce.options),Te;_e.displayValue?Te=messureText(Ce.text,_e,Ae):Te=0;var Se=Ce.data.length*_e.width;Ce.width=Math.ceil(Math.max(Te,Se)),Ce.height=getEncodingHeight(Ce,_e),Ce.barcodePadding=getBarcodePadding(Te,Se,_e)}}function getTotalWidthOfEncodings(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++)St+=Be[Ae].width;return St}function getMaximumHeightOfEncodings(Be){for(var St=0,Ae=0;Ae<Be.length;Ae++)Be[Ae].height>St&&(St=Be[Ae].height);return St}function messureText(Be,St,Ae){var Ee;if(Ae)Ee=Ae;else if(typeof document<"u")Ee=document.createElement("canvas").getContext("2d");else return 0;Ee.font=St.fontOptions+" "+St.fontSize+"px "+St.font;var Ce=Ee.measureText(Be);if(!Ce)return 0;var _e=Ce.width;return _e}shared$5.getMaximumHeightOfEncodings=getMaximumHeightOfEncodings,shared$5.getEncodingHeight=getEncodingHeight,shared$5.getBarcodePadding=getBarcodePadding,shared$5.calculateEncodingAttributes=calculateEncodingAttributes,shared$5.getTotalWidthOfEncodings=getTotalWidthOfEncodings,Object.defineProperty(canvas,"__esModule",{value:!0});var _createClass$3=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_merge$2=merge,_merge2$2=_interopRequireDefault$4(_merge$2),_shared$1=shared$5;function _interopRequireDefault$4(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$5(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var CanvasRenderer$1=function(){function Be(St,Ae,Ee){_classCallCheck$5(this,Be),this.canvas=St,this.encodings=Ae,this.options=Ee}return _createClass$3(Be,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var Ae=0;Ae<this.encodings.length;Ae++){var Ee=(0,_merge2$2.default)(this.options,this.encodings[Ae].options);this.drawCanvasBarcode(Ee,this.encodings[Ae]),this.drawCanvasText(Ee,this.encodings[Ae]),this.moveCanvasDrawing(this.encodings[Ae])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var Ae=this.canvas.getContext("2d");Ae.save(),(0,_shared$1.calculateEncodingAttributes)(this.encodings,this.options,Ae);var Ee=(0,_shared$1.getTotalWidthOfEncodings)(this.encodings),Ce=(0,_shared$1.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=Ee+this.options.marginLeft+this.options.marginRight,this.canvas.height=Ce,Ae.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(Ae.fillStyle=this.options.background,Ae.fillRect(0,0,this.canvas.width,this.canvas.height)),Ae.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(Ae,Ee){var Ce=this.canvas.getContext("2d"),_e=Ee.data,Te;Ae.textPosition=="top"?Te=Ae.marginTop+Ae.fontSize+Ae.textMargin:Te=Ae.marginTop,Ce.fillStyle=Ae.lineColor;for(var Se=0;Se<_e.length;Se++){var xe=Se*Ae.width+Ee.barcodePadding;_e[Se]==="1"?Ce.fillRect(xe,Te,Ae.width,Ae.height):_e[Se]&&Ce.fillRect(xe,Te,Ae.width,Ae.height*_e[Se])}}},{key:"drawCanvasText",value:function(Ae,Ee){var Ce=this.canvas.getContext("2d"),_e=Ae.fontOptions+" "+Ae.fontSize+"px "+Ae.font;if(Ae.displayValue){var Te,Se;Ae.textPosition=="top"?Se=Ae.marginTop+Ae.fontSize-Ae.textMargin:Se=Ae.height+Ae.textMargin+Ae.marginTop+Ae.fontSize,Ce.font=_e,Ae.textAlign=="left"||Ee.barcodePadding>0?(Te=0,Ce.textAlign="left"):Ae.textAlign=="right"?(Te=Ee.width-1,Ce.textAlign="right"):(Te=Ee.width/2,Ce.textAlign="center"),Ce.fillText(Ee.text,Te,Se)}}},{key:"moveCanvasDrawing",value:function(Ae){var Ee=this.canvas.getContext("2d");Ee.translate(Ae.width,0)}},{key:"restoreCanvas",value:function(){var Ae=this.canvas.getContext("2d");Ae.restore()}}]),Be}();canvas.default=CanvasRenderer$1;var svg$2={};Object.defineProperty(svg$2,"__esModule",{value:!0});var _createClass$2=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}(),_merge$1=merge,_merge2$1=_interopRequireDefault$3(_merge$1),_shared=shared$5;function _interopRequireDefault$3(Be){return Be&&Be.__esModule?Be:{default:Be}}function _classCallCheck$4(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var svgns="http://www.w3.org/2000/svg",SVGRenderer=function(){function Be(St,Ae,Ee){_classCallCheck$4(this,Be),this.svg=St,this.encodings=Ae,this.options=Ee,this.document=Ee.xmlDocument||document}return _createClass$2(Be,[{key:"render",value:function(){var Ae=this.options.marginLeft;this.prepareSVG();for(var Ee=0;Ee<this.encodings.length;Ee++){var Ce=this.encodings[Ee],_e=(0,_merge2$1.default)(this.options,Ce.options),Te=this.createGroup(Ae,_e.marginTop,this.svg);this.setGroupOptions(Te,_e),this.drawSvgBarcode(Te,_e,Ce),this.drawSVGText(Te,_e,Ce),Ae+=Ce.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,_shared.calculateEncodingAttributes)(this.encodings,this.options);var Ae=(0,_shared.getTotalWidthOfEncodings)(this.encodings),Ee=(0,_shared.getMaximumHeightOfEncodings)(this.encodings),Ce=Ae+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(Ce,Ee),this.options.background&&this.drawRect(0,0,Ce,Ee,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(Ae,Ee,Ce){var _e=Ce.data,Te;Ee.textPosition=="top"?Te=Ee.fontSize+Ee.textMargin:Te=0;for(var Se=0,xe=0,Ie=0;Ie<_e.length;Ie++)xe=Ie*Ee.width+Ce.barcodePadding,_e[Ie]==="1"?Se++:Se>0&&(this.drawRect(xe-Ee.width*Se,Te,Ee.width*Se,Ee.height,Ae),Se=0);Se>0&&this.drawRect(xe-Ee.width*(Se-1),Te,Ee.width*Se,Ee.height,Ae)}},{key:"drawSVGText",value:function(Ae,Ee,Ce){var _e=this.document.createElementNS(svgns,"text");if(Ee.displayValue){var Te,Se;_e.setAttribute("style","font:"+Ee.fontOptions+" "+Ee.fontSize+"px "+Ee.font),Ee.textPosition=="top"?Se=Ee.fontSize-Ee.textMargin:Se=Ee.height+Ee.textMargin+Ee.fontSize,Ee.textAlign=="left"||Ce.barcodePadding>0?(Te=0,_e.setAttribute("text-anchor","start")):Ee.textAlign=="right"?(Te=Ce.width-1,_e.setAttribute("text-anchor","end")):(Te=Ce.width/2,_e.setAttribute("text-anchor","middle")),_e.setAttribute("x",Te),_e.setAttribute("y",Se),_e.appendChild(this.document.createTextNode(Ce.text)),Ae.appendChild(_e)}}},{key:"setSvgAttributes",value:function(Ae,Ee){var Ce=this.svg;Ce.setAttribute("width",Ae+"px"),Ce.setAttribute("height",Ee+"px"),Ce.setAttribute("x","0px"),Ce.setAttribute("y","0px"),Ce.setAttribute("viewBox","0 0 "+Ae+" "+Ee),Ce.setAttribute("xmlns",svgns),Ce.setAttribute("version","1.1"),Ce.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(Ae,Ee,Ce){var _e=this.document.createElementNS(svgns,"g");return _e.setAttribute("transform","translate("+Ae+", "+Ee+")"),Ce.appendChild(_e),_e}},{key:"setGroupOptions",value:function(Ae,Ee){Ae.setAttribute("style","fill:"+Ee.lineColor+";")}},{key:"drawRect",value:function(Ae,Ee,Ce,_e,Te){var Se=this.document.createElementNS(svgns,"rect");return Se.setAttribute("x",Ae),Se.setAttribute("y",Ee),Se.setAttribute("width",Ce),Se.setAttribute("height",_e),Te.appendChild(Se),Se}}]),Be}();svg$2.default=SVGRenderer;var object={};Object.defineProperty(object,"__esModule",{value:!0});var _createClass$1=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}();function _classCallCheck$3(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var ObjectRenderer=function(){function Be(St,Ae,Ee){_classCallCheck$3(this,Be),this.object=St,this.encodings=Ae,this.options=Ee}return _createClass$1(Be,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),Be}();object.default=ObjectRenderer,Object.defineProperty(renderers,"__esModule",{value:!0});var _canvas=canvas,_canvas2=_interopRequireDefault$2(_canvas),_svg=svg$2,_svg2=_interopRequireDefault$2(_svg),_object=object,_object2=_interopRequireDefault$2(_object);function _interopRequireDefault$2(Be){return Be&&Be.__esModule?Be:{default:Be}}renderers.default={CanvasRenderer:_canvas2.default,SVGRenderer:_svg2.default,ObjectRenderer:_object2.default};var exceptions={};Object.defineProperty(exceptions,"__esModule",{value:!0});function _classCallCheck$2(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(Be,St){if(!Be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:Be}function _inherits(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);Be.prototype=Object.create(St&&St.prototype,{constructor:{value:Be,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(Be,St):Be.__proto__=St)}var InvalidInputException=function(Be){_inherits(St,Be);function St(Ae,Ee){_classCallCheck$2(this,St);var Ce=_possibleConstructorReturn(this,(St.__proto__||Object.getPrototypeOf(St)).call(this));return Ce.name="InvalidInputException",Ce.symbology=Ae,Ce.input=Ee,Ce.message='"'+Ce.input+'" is not a valid input for '+Ce.symbology,Ce}return St}(Error),InvalidElementException=function(Be){_inherits(St,Be);function St(){_classCallCheck$2(this,St);var Ae=_possibleConstructorReturn(this,(St.__proto__||Object.getPrototypeOf(St)).call(this));return Ae.name="InvalidElementException",Ae.message="Not supported type to render on",Ae}return St}(Error),NoElementException=function(Be){_inherits(St,Be);function St(){_classCallCheck$2(this,St);var Ae=_possibleConstructorReturn(this,(St.__proto__||Object.getPrototypeOf(St)).call(this));return Ae.name="NoElementException",Ae.message="No element to render on.",Ae}return St}(Error);exceptions.InvalidInputException=InvalidInputException,exceptions.InvalidElementException=InvalidElementException,exceptions.NoElementException=NoElementException,Object.defineProperty(getRenderProperties$1,"__esModule",{value:!0});var _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},_getOptionsFromElement=getOptionsFromElement$1,_getOptionsFromElement2=_interopRequireDefault$1(_getOptionsFromElement),_renderers=renderers,_renderers2=_interopRequireDefault$1(_renderers),_exceptions$1=exceptions;function _interopRequireDefault$1(Be){return Be&&Be.__esModule?Be:{default:Be}}function getRenderProperties(Be){if(typeof Be=="string")return querySelectedRenderProperties(Be);if(Array.isArray(Be)){for(var St=[],Ae=0;Ae<Be.length;Ae++)St.push(getRenderProperties(Be[Ae]));return St}else{if(typeof HTMLCanvasElement<"u"&&Be instanceof HTMLImageElement)return newCanvasRenderProperties(Be);if(Be&&Be.nodeName&&Be.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&Be instanceof SVGElement)return{element:Be,options:(0,_getOptionsFromElement2.default)(Be),renderer:_renderers2.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&Be instanceof HTMLCanvasElement)return{element:Be,options:(0,_getOptionsFromElement2.default)(Be),renderer:_renderers2.default.CanvasRenderer};if(Be&&Be.getContext)return{element:Be,renderer:_renderers2.default.CanvasRenderer};if(Be&&(typeof Be>"u"?"undefined":_typeof$4(Be))==="object"&&!Be.nodeName)return{element:Be,renderer:_renderers2.default.ObjectRenderer};throw new _exceptions$1.InvalidElementException}}function querySelectedRenderProperties(Be){var St=document.querySelectorAll(Be);if(St.length!==0){for(var Ae=[],Ee=0;Ee<St.length;Ee++)Ae.push(getRenderProperties(St[Ee]));return Ae}}function newCanvasRenderProperties(Be){var St=document.createElement("canvas");return{element:St,options:(0,_getOptionsFromElement2.default)(Be),renderer:_renderers2.default.CanvasRenderer,afterRender:function(){Be.setAttribute("src",St.toDataURL())}}}getRenderProperties$1.default=getRenderProperties;var ErrorHandler$1={};Object.defineProperty(ErrorHandler$1,"__esModule",{value:!0});var _createClass=function(){function Be(St,Ae){for(var Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(St,Ce.key,Ce)}}return function(St,Ae,Ee){return Ae&&Be(St.prototype,Ae),Ee&&Be(St,Ee),St}}();function _classCallCheck$1(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var ErrorHandler=function(){function Be(St){_classCallCheck$1(this,Be),this.api=St}return _createClass(Be,[{key:"handleCatch",value:function(Ae){if(Ae.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw Ae.message;else throw Ae;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(Ae){try{var Ee=Ae.apply(void 0,arguments);return this.api._options.valid(!0),Ee}catch(Ce){return this.handleCatch(Ce),this.api}}}]),Be}();ErrorHandler$1.default=ErrorHandler;var _barcodes=barcodes,_barcodes2=_interopRequireDefault(_barcodes),_merge=merge,_merge2=_interopRequireDefault(_merge),_linearizeEncodings=linearizeEncodings$1,_linearizeEncodings2=_interopRequireDefault(_linearizeEncodings),_fixOptions=fixOptions$1,_fixOptions2=_interopRequireDefault(_fixOptions),_getRenderProperties=getRenderProperties$1,_getRenderProperties2=_interopRequireDefault(_getRenderProperties),_optionsFromStrings=optionsFromStrings$1,_optionsFromStrings2=_interopRequireDefault(_optionsFromStrings),_ErrorHandler=ErrorHandler$1,_ErrorHandler2=_interopRequireDefault(_ErrorHandler),_exceptions=exceptions,_defaults=defaults$1,_defaults2=_interopRequireDefault(_defaults);function _interopRequireDefault(Be){return Be&&Be.__esModule?Be:{default:Be}}var API=function(){},JsBarcode=function(St,Ae,Ee){var Ce=new API;if(typeof St>"u")throw Error("No element to render on was provided.");return Ce._renderProperties=(0,_getRenderProperties2.default)(St),Ce._encodings=[],Ce._options=_defaults2.default,Ce._errorHandler=new _ErrorHandler2.default(Ce),typeof Ae<"u"&&(Ee=Ee||{},Ee.format||(Ee.format=autoSelectBarcode()),Ce.options(Ee)[Ee.format](Ae,Ee).render()),Ce};JsBarcode.getModule=function(Be){return _barcodes2.default[Be]};for(var name in _barcodes2.default)_barcodes2.default.hasOwnProperty(name)&&registerBarcode(_barcodes2.default,name);function registerBarcode(Be,St){API.prototype[St]=API.prototype[St.toUpperCase()]=API.prototype[St.toLowerCase()]=function(Ae,Ee){var Ce=this;return Ce._errorHandler.wrapBarcodeCall(function(){Ee.text=typeof Ee.text>"u"?void 0:""+Ee.text;var _e=(0,_merge2.default)(Ce._options,Ee);_e=(0,_optionsFromStrings2.default)(_e);var Te=Be[St],Se=encode$2(Ae,Te,_e);return Ce._encodings.push(Se),Ce})}}function encode$2(Be,St,Ae){Be=""+Be;var Ee=new St(Be,Ae);if(!Ee.valid())throw new _exceptions.InvalidInputException(Ee.constructor.name,Be);var Ce=Ee.encode();Ce=(0,_linearizeEncodings2.default)(Ce);for(var _e=0;_e<Ce.length;_e++)Ce[_e].options=(0,_merge2.default)(Ae,Ce[_e].options);return Ce}function autoSelectBarcode(){return _barcodes2.default.CODE128?"CODE128":Object.keys(_barcodes2.default)[0]}API.prototype.options=function(Be){return this._options=(0,_merge2.default)(this._options,Be),this},API.prototype.blank=function(Be){var St=new Array(Be+1).join("0");return this._encodings.push({data:St}),this},API.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var Be;for(var St in this._renderProperties){Be=this._renderProperties[St];var Ae=(0,_merge2.default)(this._options,Be.options);Ae.format=="auto"&&(Ae.format=autoSelectBarcode()),this._errorHandler.wrapBarcodeCall(function(){var Ee=Ae.value,Ce=_barcodes2.default[Ae.format.toUpperCase()],_e=encode$2(Ee,Ce,Ae);render(Be,_e,Ae)})}}},API.prototype.render=function(){if(!this._renderProperties)throw new _exceptions.NoElementException;if(Array.isArray(this._renderProperties))for(var Be=0;Be<this._renderProperties.length;Be++)render(this._renderProperties[Be],this._encodings,this._options);else render(this._renderProperties,this._encodings,this._options);return this},API.prototype._defaults=_defaults2.default;function render(Be,St,Ae){St=(0,_linearizeEncodings2.default)(St);for(var Ee=0;Ee<St.length;Ee++)St[Ee].options=(0,_merge2.default)(Ae,St[Ee].options),(0,_fixOptions2.default)(St[Ee].options);(0,_fixOptions2.default)(Ae);var Ce=Be.renderer,_e=new Ce(Be.element,St,Ae);_e.render(),Be.afterRender&&Be.afterRender()}typeof window<"u"&&(window.JsBarcode=JsBarcode),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(Be,St){var Ae=[];return jQuery(this).each(function(){Ae.push(this)}),JsBarcode(Ae,Be,St)});var JsBarcode_1=JsBarcode;const JsBarcode$1=getDefaultExportFromCjs(JsBarcode_1);(function(){function Be(Ye){this.mode=Ae.MODE_8BIT_BYTE,this.data=Ye,this.parsedData=[];for(var Ar=0,Oe=this.data.length;Ar<Oe;Ar++){var Je=[],We=this.data.charCodeAt(Ar);We>65536?(Je[0]=240|(We&1835008)>>>18,Je[1]=128|(We&258048)>>>12,Je[2]=128|(We&4032)>>>6,Je[3]=128|We&63):We>2048?(Je[0]=224|(We&61440)>>>12,Je[1]=128|(We&4032)>>>6,Je[2]=128|We&63):We>128?(Je[0]=192|(We&1984)>>>6,Je[1]=128|We&63):Je[0]=We,this.parsedData.push(Je)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Be.prototype={getLength:function(Ye){return this.parsedData.length},write:function(Ye){for(var Ar=0,Oe=this.parsedData.length;Ar<Oe;Ar++)Ye.put(this.parsedData[Ar],8)}};function St(Ye,Ar){this.typeNumber=Ye,this.errorCorrectLevel=Ar,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}St.prototype={addData:function(Ye){var Ar=new Be(Ye);this.dataList.push(Ar),this.dataCache=null},isDark:function(Ye,Ar){if(Ye<0||this.moduleCount<=Ye||Ar<0||this.moduleCount<=Ar)throw new Error(Ye+","+Ar);return this.modules[Ye][Ar]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(Ye,Ar){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var Oe=0;Oe<this.moduleCount;Oe++){this.modules[Oe]=new Array(this.moduleCount);for(var Je=0;Je<this.moduleCount;Je++)this.modules[Oe][Je]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(Ye,Ar),this.typeNumber>=7&&this.setupTypeNumber(Ye),this.dataCache==null&&(this.dataCache=St.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,Ar)},setupPositionProbePattern:function(Ye,Ar){for(var Oe=-1;Oe<=7;Oe++)if(!(Ye+Oe<=-1||this.moduleCount<=Ye+Oe))for(var Je=-1;Je<=7;Je++)Ar+Je<=-1||this.moduleCount<=Ar+Je||(0<=Oe&&Oe<=6&&(Je==0||Je==6)||0<=Je&&Je<=6&&(Oe==0||Oe==6)||2<=Oe&&Oe<=4&&2<=Je&&Je<=4?this.modules[Ye+Oe][Ar+Je]=!0:this.modules[Ye+Oe][Ar+Je]=!1)},getBestMaskPattern:function(){for(var Ye=0,Ar=0,Oe=0;Oe<8;Oe++){this.makeImpl(!0,Oe);var Je=_e.getLostPoint(this);(Oe==0||Ye>Je)&&(Ye=Je,Ar=Oe)}return Ar},createMovieClip:function(Ye,Ar,Oe){var Je=Ye.createEmptyMovieClip(Ar,Oe),We=1;this.make();for(var or=0;or<this.modules.length;or++)for(var mr=or*We,er=0;er<this.modules[or].length;er++){var ir=er*We,gr=this.modules[or][er];gr&&(Je.beginFill(0,100),Je.moveTo(ir,mr),Je.lineTo(ir+We,mr),Je.lineTo(ir+We,mr+We),Je.lineTo(ir,mr+We),Je.endFill())}return Je},setupTimingPattern:function(){for(var Ye=8;Ye<this.moduleCount-8;Ye++)this.modules[Ye][6]==null&&(this.modules[Ye][6]=Ye%2==0);for(var Ar=8;Ar<this.moduleCount-8;Ar++)this.modules[6][Ar]==null&&(this.modules[6][Ar]=Ar%2==0)},setupPositionAdjustPattern:function(){for(var Ye=_e.getPatternPosition(this.typeNumber),Ar=0;Ar<Ye.length;Ar++)for(var Oe=0;Oe<Ye.length;Oe++){var Je=Ye[Ar],We=Ye[Oe];if(this.modules[Je][We]==null)for(var or=-2;or<=2;or++)for(var mr=-2;mr<=2;mr++)or==-2||or==2||mr==-2||mr==2||or==0&&mr==0?this.modules[Je+or][We+mr]=!0:this.modules[Je+or][We+mr]=!1}},setupTypeNumber:function(Ye){for(var Ar=_e.getBCHTypeNumber(this.typeNumber),Oe=0;Oe<18;Oe++){var Je=!Ye&&(Ar>>Oe&1)==1;this.modules[Math.floor(Oe/3)][Oe%3+this.moduleCount-8-3]=Je}for(var Oe=0;Oe<18;Oe++){var Je=!Ye&&(Ar>>Oe&1)==1;this.modules[Oe%3+this.moduleCount-8-3][Math.floor(Oe/3)]=Je}},setupTypeInfo:function(Ye,Ar){for(var Oe=this.errorCorrectLevel<<3|Ar,Je=_e.getBCHTypeInfo(Oe),We=0;We<15;We++){var or=!Ye&&(Je>>We&1)==1;We<6?this.modules[We][8]=or:We<8?this.modules[We+1][8]=or:this.modules[this.moduleCount-15+We][8]=or}for(var We=0;We<15;We++){var or=!Ye&&(Je>>We&1)==1;We<8?this.modules[8][this.moduleCount-We-1]=or:We<9?this.modules[8][15-We-1+1]=or:this.modules[8][15-We-1]=or}this.modules[this.moduleCount-8][8]=!Ye},mapData:function(Ye,Ar){for(var Oe=-1,Je=this.moduleCount-1,We=7,or=0,mr=this.moduleCount-1;mr>0;mr-=2)for(mr==6&&mr--;;){for(var er=0;er<2;er++)if(this.modules[Je][mr-er]==null){var ir=!1;or<Ye.length&&(ir=(Ye[or]>>>We&1)==1);var gr=_e.getMask(Ar,Je,mr-er);gr&&(ir=!ir),this.modules[Je][mr-er]=ir,We--,We==-1&&(or++,We=7)}if(Je+=Oe,Je<0||this.moduleCount<=Je){Je-=Oe,Oe=-Oe;break}}}},St.PAD0=236,St.PAD1=17,St.createData=function(Ye,Ar,Oe){for(var Je=Ie.getRSBlocks(Ye,Ar),We=new Ue,or=0;or<Oe.length;or++){var mr=Oe[or];We.put(mr.mode,4),We.put(mr.getLength(),_e.getLengthInBits(mr.mode,Ye)),mr.write(We)}for(var er=0,or=0;or<Je.length;or++)er+=Je[or].dataCount;if(We.getLengthInBits()>er*8)throw new Error("code length overflow. ("+We.getLengthInBits()+">"+er*8+")");for(We.getLengthInBits()+4<=er*8&&We.put(0,4);We.getLengthInBits()%8!=0;)We.putBit(!1);for(;!(We.getLengthInBits()>=er*8||(We.put(St.PAD0,8),We.getLengthInBits()>=er*8));)We.put(St.PAD1,8);return St.createBytes(We,Je)},St.createBytes=function(Ye,Ar){for(var Oe=0,Je=0,We=0,or=new Array(Ar.length),mr=new Array(Ar.length),er=0;er<Ar.length;er++){var ir=Ar[er].dataCount,gr=Ar[er].totalCount-ir;Je=Math.max(Je,ir),We=Math.max(We,gr),or[er]=new Array(ir);for(var vr=0;vr<or[er].length;vr++)or[er][vr]=255&Ye.buffer[vr+Oe];Oe+=ir;var Or=_e.getErrorCorrectPolynomial(gr),Nr=new xe(or[er],Or.getLength()-1),Hr=Nr.mod(Or);mr[er]=new Array(Or.getLength()-1);for(var vr=0;vr<mr[er].length;vr++){var Dr=vr+Hr.getLength()-mr[er].length;mr[er][vr]=Dr>=0?Hr.get(Dr):0}}for(var kr=0,vr=0;vr<Ar.length;vr++)kr+=Ar[vr].totalCount;for(var qr=new Array(kr),An=0,vr=0;vr<Je;vr++)for(var er=0;er<Ar.length;er++)vr<or[er].length&&(qr[An++]=or[er][vr]);for(var vr=0;vr<We;vr++)for(var er=0;er<Ar.length;er++)vr<mr[er].length&&(qr[An++]=mr[er][vr]);return qr};for(var Ae={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Ee={L:1,M:0,Q:3,H:2},Ce={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},_e={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(Ye){for(var Ar=Ye<<10;_e.getBCHDigit(Ar)-_e.getBCHDigit(_e.G15)>=0;)Ar^=_e.G15<<_e.getBCHDigit(Ar)-_e.getBCHDigit(_e.G15);return(Ye<<10|Ar)^_e.G15_MASK},getBCHTypeNumber:function(Ye){for(var Ar=Ye<<12;_e.getBCHDigit(Ar)-_e.getBCHDigit(_e.G18)>=0;)Ar^=_e.G18<<_e.getBCHDigit(Ar)-_e.getBCHDigit(_e.G18);return Ye<<12|Ar},getBCHDigit:function(Ye){for(var Ar=0;Ye!=0;)Ar++,Ye>>>=1;return Ar},getPatternPosition:function(Ye){return _e.PATTERN_POSITION_TABLE[Ye-1]},getMask:function(Ye,Ar,Oe){switch(Ye){case Ce.PATTERN000:return(Ar+Oe)%2==0;case Ce.PATTERN001:return Ar%2==0;case Ce.PATTERN010:return Oe%3==0;case Ce.PATTERN011:return(Ar+Oe)%3==0;case Ce.PATTERN100:return(Math.floor(Ar/2)+Math.floor(Oe/3))%2==0;case Ce.PATTERN101:return Ar*Oe%2+Ar*Oe%3==0;case Ce.PATTERN110:return(Ar*Oe%2+Ar*Oe%3)%2==0;case Ce.PATTERN111:return(Ar*Oe%3+(Ar+Oe)%2)%2==0;default:throw new Error("bad maskPattern:"+Ye)}},getErrorCorrectPolynomial:function(Ye){for(var Ar=new xe([1],0),Oe=0;Oe<Ye;Oe++)Ar=Ar.multiply(new xe([1,Te.gexp(Oe)],0));return Ar},getLengthInBits:function(Ye,Ar){if(1<=Ar&&Ar<10)switch(Ye){case Ae.MODE_NUMBER:return 10;case Ae.MODE_ALPHA_NUM:return 9;case Ae.MODE_8BIT_BYTE:return 8;case Ae.MODE_KANJI:return 8;default:throw new Error("mode:"+Ye)}else if(Ar<27)switch(Ye){case Ae.MODE_NUMBER:return 12;case Ae.MODE_ALPHA_NUM:return 11;case Ae.MODE_8BIT_BYTE:return 16;case Ae.MODE_KANJI:return 10;default:throw new Error("mode:"+Ye)}else if(Ar<41)switch(Ye){case Ae.MODE_NUMBER:return 14;case Ae.MODE_ALPHA_NUM:return 13;case Ae.MODE_8BIT_BYTE:return 16;case Ae.MODE_KANJI:return 12;default:throw new Error("mode:"+Ye)}else throw new Error("type:"+Ar)},getLostPoint:function(Ye){for(var Ar=Ye.getModuleCount(),Oe=0,Je=0;Je<Ar;Je++)for(var We=0;We<Ar;We++){for(var or=0,mr=Ye.isDark(Je,We),er=-1;er<=1;er++)if(!(Je+er<0||Ar<=Je+er))for(var ir=-1;ir<=1;ir++)We+ir<0||Ar<=We+ir||er==0&&ir==0||mr==Ye.isDark(Je+er,We+ir)&&or++;or>5&&(Oe+=3+or-5)}for(var Je=0;Je<Ar-1;Je++)for(var We=0;We<Ar-1;We++){var gr=0;Ye.isDark(Je,We)&&gr++,Ye.isDark(Je+1,We)&&gr++,Ye.isDark(Je,We+1)&&gr++,Ye.isDark(Je+1,We+1)&&gr++,(gr==0||gr==4)&&(Oe+=3)}for(var Je=0;Je<Ar;Je++)for(var We=0;We<Ar-6;We++)Ye.isDark(Je,We)&&!Ye.isDark(Je,We+1)&&Ye.isDark(Je,We+2)&&Ye.isDark(Je,We+3)&&Ye.isDark(Je,We+4)&&!Ye.isDark(Je,We+5)&&Ye.isDark(Je,We+6)&&(Oe+=40);for(var We=0;We<Ar;We++)for(var Je=0;Je<Ar-6;Je++)Ye.isDark(Je,We)&&!Ye.isDark(Je+1,We)&&Ye.isDark(Je+2,We)&&Ye.isDark(Je+3,We)&&Ye.isDark(Je+4,We)&&!Ye.isDark(Je+5,We)&&Ye.isDark(Je+6,We)&&(Oe+=40);for(var vr=0,We=0;We<Ar;We++)for(var Je=0;Je<Ar;Je++)Ye.isDark(Je,We)&&vr++;var Or=Math.abs(100*vr/Ar/Ar-50)/5;return Oe+=Or*10,Oe}},Te={glog:function(Ye){if(Ye<1)throw new Error("glog("+Ye+")");return Te.LOG_TABLE[Ye]},gexp:function(Ye){for(;Ye<0;)Ye+=255;for(;Ye>=256;)Ye-=255;return Te.EXP_TABLE[Ye]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Se=0;Se<8;Se++)Te.EXP_TABLE[Se]=1<<Se;for(var Se=8;Se<256;Se++)Te.EXP_TABLE[Se]=Te.EXP_TABLE[Se-4]^Te.EXP_TABLE[Se-5]^Te.EXP_TABLE[Se-6]^Te.EXP_TABLE[Se-8];for(var Se=0;Se<255;Se++)Te.LOG_TABLE[Te.EXP_TABLE[Se]]=Se;function xe(Ye,Ar){if(Ye.length==null)throw new Error(Ye.length+"/"+Ar);for(var Oe=0;Oe<Ye.length&&Ye[Oe]==0;)Oe++;this.num=new Array(Ye.length-Oe+Ar);for(var Je=0;Je<Ye.length-Oe;Je++)this.num[Je]=Ye[Je+Oe]}xe.prototype={get:function(Ye){return this.num[Ye]},getLength:function(){return this.num.length},multiply:function(Ye){for(var Ar=new Array(this.getLength()+Ye.getLength()-1),Oe=0;Oe<this.getLength();Oe++)for(var Je=0;Je<Ye.getLength();Je++)Ar[Oe+Je]^=Te.gexp(Te.glog(this.get(Oe))+Te.glog(Ye.get(Je)));return new xe(Ar,0)},mod:function(Ye){if(this.getLength()-Ye.getLength()<0)return this;for(var Ar=Te.glog(this.get(0))-Te.glog(Ye.get(0)),Oe=new Array(this.getLength()),Je=0;Je<this.getLength();Je++)Oe[Je]=this.get(Je);for(var Je=0;Je<Ye.getLength();Je++)Oe[Je]^=Te.gexp(Te.glog(Ye.get(Je))+Ar);return new xe(Oe,0).mod(Ye)}};function Ie(Ye,Ar){this.totalCount=Ye,this.dataCount=Ar}Ie.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Ie.getRSBlocks=function(Ye,Ar){var Oe=Ie.getRsBlockTable(Ye,Ar);if(Oe==null)throw new Error("bad rs block @ typeNumber:"+Ye+"/errorCorrectLevel:"+Ar);for(var Je=Oe.length/3,We=[],or=0;or<Je;or++)for(var mr=Oe[or*3+0],er=Oe[or*3+1],ir=Oe[or*3+2],gr=0;gr<mr;gr++)We.push(new Ie(er,ir));return We},Ie.getRsBlockTable=function(Ye,Ar){switch(Ar){case Ee.L:return Ie.RS_BLOCK_TABLE[(Ye-1)*4+0];case Ee.M:return Ie.RS_BLOCK_TABLE[(Ye-1)*4+1];case Ee.Q:return Ie.RS_BLOCK_TABLE[(Ye-1)*4+2];case Ee.H:return Ie.RS_BLOCK_TABLE[(Ye-1)*4+3];default:return}};function Ue(){this.buffer=[],this.length=0}Ue.prototype={get:function(Ye){var Ar=Math.floor(Ye/8);return(this.buffer[Ar]>>>7-Ye%8&1)==1},put:function(Ye,Ar){for(var Oe=0;Oe<Ar;Oe++)this.putBit((Ye>>>Ar-Oe-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(Ye){var Ar=Math.floor(this.length/8);this.buffer.length<=Ar&&this.buffer.push(0),Ye&&(this.buffer[Ar]|=128>>>this.length%8),this.length++}};var $e=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Me(){return typeof CanvasRenderingContext2D<"u"}function Re(){var Ye=!1,Ar=navigator.userAgent;if(/android/i.test(Ar)){Ye=!0;var Oe=Ar.toString().match(/android ([0-9]\.[0-9])/i);Oe&&Oe[1]&&(Ye=parseFloat(Oe[1]))}return Ye}var ze=function(){var Ye=function(Ar,Oe){this._el=Ar,this._htOption=Oe};return Ye.prototype.draw=function(Ar){var Oe=this._htOption,Je=this._el,We=Ar.getModuleCount();Math.floor(Oe.width/We),Math.floor(Oe.height/We),this.clear();function or(vr,Or){var Nr=document.createElementNS("http://www.w3.org/2000/svg",vr);for(var Hr in Or)Or.hasOwnProperty(Hr)&&Nr.setAttribute(Hr,Or[Hr]);return Nr}var mr=or("svg",{viewBox:"0 0 "+String(We)+" "+String(We),width:"100%",height:"100%",fill:Oe.colorLight});mr.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),Je.appendChild(mr),mr.appendChild(or("rect",{fill:Oe.colorLight,width:"100%",height:"100%"})),mr.appendChild(or("rect",{fill:Oe.colorDark,width:"1",height:"1",id:"template"}));for(var er=0;er<We;er++)for(var ir=0;ir<We;ir++)if(Ar.isDark(er,ir)){var gr=or("use",{x:String(ir),y:String(er)});gr.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),mr.appendChild(gr)}},Ye.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},Ye}(),Ve=document.documentElement.tagName.toLowerCase()==="svg",nr=Ve?ze:Me()?function(){function Ye(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var Ar=1/window.devicePixelRatio,Oe=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(or,mr,er,ir,gr,vr,Or,Nr,Hr){if("nodeName"in or&&/img/i.test(or.nodeName))for(var Dr=arguments.length-1;Dr>=1;Dr--)arguments[Dr]=arguments[Dr]*Ar;else typeof Nr>"u"&&(arguments[1]*=Ar,arguments[2]*=Ar,arguments[3]*=Ar,arguments[4]*=Ar);Oe.apply(this,arguments)}}function Je(or,mr){var er=this;if(er._fFail=mr,er._fSuccess=or,er._bSupportDataURI===null){var ir=document.createElement("img"),gr=function(){er._bSupportDataURI=!1,er._fFail&&er._fFail.call(er)},vr=function(){er._bSupportDataURI=!0,er._fSuccess&&er._fSuccess.call(er)};ir.onabort=gr,ir.onerror=gr,ir.onload=vr,ir.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else er._bSupportDataURI===!0&&er._fSuccess?er._fSuccess.call(er):er._bSupportDataURI===!1&&er._fFail&&er._fFail.call(er)}var We=function(or,mr){this._bIsPainted=!1,this._android=Re(),this._htOption=mr,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=mr.width,this._elCanvas.height=mr.height,or.appendChild(this._elCanvas),this._el=or,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return We.prototype.draw=function(or){var mr=this._elImage,er=this._oContext,ir=this._htOption,gr=or.getModuleCount(),vr=ir.width/gr,Or=ir.height/gr,Nr=Math.round(vr),Hr=Math.round(Or);mr.style.display="none",this.clear();for(var Dr=0;Dr<gr;Dr++)for(var kr=0;kr<gr;kr++){var qr=or.isDark(Dr,kr),An=kr*vr,lr=Dr*Or;er.strokeStyle=qr?ir.colorDark:ir.colorLight,er.lineWidth=1,er.fillStyle=qr?ir.colorDark:ir.colorLight,er.fillRect(An,lr,vr,Or),er.strokeRect(Math.floor(An)+.5,Math.floor(lr)+.5,Nr,Hr),er.strokeRect(Math.ceil(An)-.5,Math.ceil(lr)-.5,Nr,Hr)}this._bIsPainted=!0},We.prototype.makeImage=function(){this._bIsPainted&&Je.call(this,Ye)},We.prototype.isPainted=function(){return this._bIsPainted},We.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},We.prototype.round=function(or){return or&&Math.floor(or*1e3)/1e3},We}():function(){var Ye=function(Ar,Oe){this._el=Ar,this._htOption=Oe};return Ye.prototype.draw=function(Ar){for(var Oe=this._htOption,Je=this._el,We=Ar.getModuleCount(),or=Math.floor(Oe.width/We),mr=Math.floor(Oe.height/We),er=['<table style="border:0;border-collapse:collapse;">'],ir=0;ir<We;ir++){er.push("<tr>");for(var gr=0;gr<We;gr++)er.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+or+"px;height:"+mr+"px;background-color:"+(Ar.isDark(ir,gr)?Oe.colorDark:Oe.colorLight)+';"></td>');er.push("</tr>")}er.push("</table>"),Je.innerHTML=er.join("");var vr=Je.childNodes[0],Or=(Oe.width-vr.offsetWidth)/2,Nr=(Oe.height-vr.offsetHeight)/2;Or>0&&Nr>0&&(vr.style.margin=Nr+"px "+Or+"px")},Ye.prototype.clear=function(){this._el.innerHTML=""},Ye}();function Ze(Ye,Ar){for(var Oe=1,Je=ar(Ye),We=0,or=$e.length;We<=or;We++){var mr=0;switch(Ar){case Ee.L:mr=$e[We][0];break;case Ee.M:mr=$e[We][1];break;case Ee.Q:mr=$e[We][2];break;case Ee.H:mr=$e[We][3];break}if(Je<=mr)break;Oe++}if(Oe>$e.length)throw new Error("Too long data");return Oe}function ar(Ye){var Ar=encodeURI(Ye).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return Ar.length+(Ar.length!=Ye?3:0)}var fr=function(Ye,Ar){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:Ee.H},typeof Ar=="string"&&(Ar={text:Ar}),Ar)for(var Oe in Ar)this._htOption[Oe]=Ar[Oe];typeof Ye=="string"&&(Ye=document.getElementById(Ye)),this._htOption.useSVG&&(nr=ze),this._android=Re(),this._el=Ye,this._oQRCode=null,this._oDrawing=new nr(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)};fr.prototype.makeCode=function(Ye){this._oQRCode=new St(Ze(Ye,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(Ye),this._oQRCode.make(),this._el.title=Ye,this._oDrawing.draw(this._oQRCode),this.makeImage()},fr.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},fr.prototype.clear=function(){this._oDrawing.clear()},fr.CorrectLevel=Ee,window.QRCode=fr})();const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0",PACKET_TYPES.close="1",PACKET_TYPES.ping="2",PACKET_TYPES.pong="3",PACKET_TYPES.message="4",PACKET_TYPES.upgrade="5",PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(Be=>{PACKET_TYPES_REVERSE[PACKET_TYPES[Be]]=Be});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=Be=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Be):Be&&Be.buffer instanceof ArrayBuffer,encodePacket=({type:Be,data:St},Ae,Ee)=>withNativeBlob$1&&St instanceof Blob?Ae?Ee(St):encodeBlobAsBase64(St,Ee):withNativeArrayBuffer$2&&(St instanceof ArrayBuffer||isView$1(St))?Ae?Ee(St):encodeBlobAsBase64(new Blob([St]),Ee):Ee(PACKET_TYPES[Be]+(St||"")),encodeBlobAsBase64=(Be,St)=>{const Ae=new FileReader;return Ae.onload=function(){const Ee=Ae.result.split(",")[1];St("b"+(Ee||""))},Ae.readAsDataURL(Be)},chars$4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$5=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Be=0;Be<chars$4.length;Be++)lookup$5[chars$4.charCodeAt(Be)]=Be;const decode$3=Be=>{let St=Be.length*.75,Ae=Be.length,Ee,Ce=0,_e,Te,Se,xe;Be[Be.length-1]==="="&&(St--,Be[Be.length-2]==="="&&St--);const Ie=new ArrayBuffer(St),Ue=new Uint8Array(Ie);for(Ee=0;Ee<Ae;Ee+=4)_e=lookup$5[Be.charCodeAt(Ee)],Te=lookup$5[Be.charCodeAt(Ee+1)],Se=lookup$5[Be.charCodeAt(Ee+2)],xe=lookup$5[Be.charCodeAt(Ee+3)],Ue[Ce++]=_e<<2|Te>>4,Ue[Ce++]=(Te&15)<<4|Se>>2,Ue[Ce++]=(Se&3)<<6|xe&63;return Ie},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(Be,St)=>{if(typeof Be!="string")return{type:"message",data:mapBinary(Be,St)};const Ae=Be.charAt(0);return Ae==="b"?{type:"message",data:decodeBase64Packet(Be.substring(1),St)}:PACKET_TYPES_REVERSE[Ae]?Be.length>1?{type:PACKET_TYPES_REVERSE[Ae],data:Be.substring(1)}:{type:PACKET_TYPES_REVERSE[Ae]}:ERROR_PACKET},decodeBase64Packet=(Be,St)=>{if(withNativeArrayBuffer$1){const Ae=decode$3(Be);return mapBinary(Ae,St)}else return{base64:!0,data:Be}},mapBinary=(Be,St)=>{switch(St){case"blob":return Be instanceof ArrayBuffer?new Blob([Be]):Be;case"arraybuffer":default:return Be}},SEPARATOR=String.fromCharCode(30),encodePayload=(Be,St)=>{const Ae=Be.length,Ee=new Array(Ae);let Ce=0;Be.forEach((_e,Te)=>{encodePacket(_e,!1,Se=>{Ee[Te]=Se,++Ce===Ae&&St(Ee.join(SEPARATOR))})})},decodePayload=(Be,St)=>{const Ae=Be.split(SEPARATOR),Ee=[];for(let Ce=0;Ce<Ae.length;Ce++){const _e=decodePacket(Ae[Ce],St);if(Ee.push(_e),_e.type==="error")break}return Ee},protocol$1=4;function Emitter(Be){if(Be)return mixin(Be)}function mixin(Be){for(var St in Emitter.prototype)Be[St]=Emitter.prototype[St];return Be}Emitter.prototype.on=Emitter.prototype.addEventListener=function(Be,St){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Be]=this._callbacks["$"+Be]||[]).push(St),this},Emitter.prototype.once=function(Be,St){function Ae(){this.off(Be,Ae),St.apply(this,arguments)}return Ae.fn=St,this.on(Be,Ae),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(Be,St){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Ae=this._callbacks["$"+Be];if(!Ae)return this;if(arguments.length==1)return delete this._callbacks["$"+Be],this;for(var Ee,Ce=0;Ce<Ae.length;Ce++)if(Ee=Ae[Ce],Ee===St||Ee.fn===St){Ae.splice(Ce,1);break}return Ae.length===0&&delete this._callbacks["$"+Be],this},Emitter.prototype.emit=function(Be){this._callbacks=this._callbacks||{};for(var St=new Array(arguments.length-1),Ae=this._callbacks["$"+Be],Ee=1;Ee<arguments.length;Ee++)St[Ee-1]=arguments[Ee];if(Ae){Ae=Ae.slice(0);for(var Ee=0,Ce=Ae.length;Ee<Ce;++Ee)Ae[Ee].apply(this,St)}return this},Emitter.prototype.emitReserved=Emitter.prototype.emit,Emitter.prototype.listeners=function(Be){return this._callbacks=this._callbacks||{},this._callbacks["$"+Be]||[]},Emitter.prototype.hasListeners=function(Be){return!!this.listeners(Be).length};const globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(Be,...St){return St.reduce((Ae,Ee)=>(Be.hasOwnProperty(Ee)&&(Ae[Ee]=Be[Ee]),Ae),{})}const NATIVE_SET_TIMEOUT=setTimeout,NATIVE_CLEAR_TIMEOUT=clearTimeout;function installTimerFunctions(Be,St){St.useNativeTimers?(Be.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),Be.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(Be.setTimeoutFn=setTimeout.bind(globalThisShim),Be.clearTimeoutFn=clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(Be){return typeof Be=="string"?utf8Length(Be):Math.ceil((Be.byteLength||Be.size)*BASE64_OVERHEAD)}function utf8Length(Be){let St=0,Ae=0;for(let Ee=0,Ce=Be.length;Ee<Ce;Ee++)St=Be.charCodeAt(Ee),St<128?Ae+=1:St<2048?Ae+=2:St<55296||St>=57344?Ae+=3:(Ee++,Ae+=4);return Ae}class TransportError extends Error{constructor(St,Ae,Ee){super(St),this.description=Ae,this.context=Ee,this.type="TransportError"}}class Transport extends Emitter{constructor(St){super(),this.writable=!1,installTimerFunctions(this,St),this.opts=St,this.query=St.query,this.readyState="",this.socket=St.socket}onError(St,Ae,Ee){return super.emitReserved("error",new TransportError(St,Ae,Ee)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(St){this.readyState==="open"&&this.write(St)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(St){const Ae=decodePacket(St,this.socket.binaryType);this.onPacket(Ae)}onPacket(St){super.emitReserved("packet",St)}onClose(St){this.readyState="closed",super.emitReserved("close",St)}}const alphabet="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),length=64,map={};let seed=0,i$7=0,prev;function encode$1(Be){let St="";do St=alphabet[Be%length]+St,Be=Math.floor(Be/length);while(Be>0);return St}function yeast(){const Be=encode$1(+new Date);return Be!==prev?(seed=0,prev=Be):Be+"."+encode$1(seed++)}for(;i$7<length;i$7++)map[alphabet[i$7]]=i$7;function encode(Be){let St="";for(let Ae in Be)Be.hasOwnProperty(Ae)&&(St.length&&(St+="&"),St+=encodeURIComponent(Ae)+"="+encodeURIComponent(Be[Ae]));return St}function decode$2(Be){let St={},Ae=Be.split("&");for(let Ee=0,Ce=Ae.length;Ee<Ce;Ee++){let _e=Ae[Ee].split("=");St[decodeURIComponent(_e[0])]=decodeURIComponent(_e[1])}return St}let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Be){}const hasCORS=value;function XHR(Be){const St=Be.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!St||hasCORS))return new XMLHttpRequest}catch{}if(!St)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function empty(){}const hasXHR2=function(){return new XHR({xdomain:!1}).responseType!=null}();class Polling extends Transport{constructor(St){if(super(St),this.polling=!1,typeof location<"u"){const Ee=location.protocol==="https:";let Ce=location.port;Ce||(Ce=Ee?"443":"80"),this.xd=typeof location<"u"&&St.hostname!==location.hostname||Ce!==St.port,this.xs=St.secure!==Ee}const Ae=St&&St.forceBase64;this.supportsBinary=hasXHR2&&!Ae}get name(){return"polling"}doOpen(){this.poll()}pause(St){this.readyState="pausing";const Ae=()=>{this.readyState="paused",St()};if(this.polling||!this.writable){let Ee=0;this.polling&&(Ee++,this.once("pollComplete",function(){--Ee||Ae()})),this.writable||(Ee++,this.once("drain",function(){--Ee||Ae()}))}else Ae()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(St){const Ae=Ee=>{if(this.readyState==="opening"&&Ee.type==="open"&&this.onOpen(),Ee.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Ee)};decodePayload(St,this.socket.binaryType).forEach(Ae),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const St=()=>{this.write([{type:"close"}])};this.readyState==="open"?St():this.once("open",St)}write(St){this.writable=!1,encodePayload(St,Ae=>{this.doWrite(Ae,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let St=this.query||{};const Ae=this.opts.secure?"https":"http";let Ee="";this.opts.timestampRequests!==!1&&(St[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!St.sid&&(St.b64=1),this.opts.port&&(Ae==="https"&&Number(this.opts.port)!==443||Ae==="http"&&Number(this.opts.port)!==80)&&(Ee=":"+this.opts.port);const Ce=encode(St),_e=this.opts.hostname.indexOf(":")!==-1;return Ae+"://"+(_e?"["+this.opts.hostname+"]":this.opts.hostname)+Ee+this.opts.path+(Ce.length?"?"+Ce:"")}request(St={}){return Object.assign(St,{xd:this.xd,xs:this.xs},this.opts),new Request(this.uri(),St)}doWrite(St,Ae){const Ee=this.request({method:"POST",data:St});Ee.on("success",Ae),Ee.on("error",(Ce,_e)=>{this.onError("xhr post error",Ce,_e)})}doPoll(){const St=this.request();St.on("data",this.onData.bind(this)),St.on("error",(Ae,Ee)=>{this.onError("xhr poll error",Ae,Ee)}),this.pollXhr=St}}class Request extends Emitter{constructor(St,Ae){super(),installTimerFunctions(this,Ae),this.opts=Ae,this.method=Ae.method||"GET",this.uri=St,this.async=Ae.async!==!1,this.data=Ae.data!==void 0?Ae.data:null,this.create()}create(){const St=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");St.xdomain=!!this.opts.xd,St.xscheme=!!this.opts.xs;const Ae=this.xhr=new XHR(St);try{Ae.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){Ae.setDisableHeaderCheck&&Ae.setDisableHeaderCheck(!0);for(let Ee in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(Ee)&&Ae.setRequestHeader(Ee,this.opts.extraHeaders[Ee])}}catch{}if(this.method==="POST")try{Ae.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{Ae.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in Ae&&(Ae.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(Ae.timeout=this.opts.requestTimeout),Ae.onreadystatechange=()=>{Ae.readyState===4&&(Ae.status===200||Ae.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof Ae.status=="number"?Ae.status:0)},0))},Ae.send(this.data)}catch(Ee){this.setTimeoutFn(()=>{this.onError(Ee)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(St){this.emitReserved("error",St,this.xhr),this.cleanup(!0)}cleanup(St){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,St)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const St=this.xhr.responseText;St!==null&&(this.emitReserved("data",St),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Request.requestsCount=0,Request.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const Be="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(Be,unloadHandler,!1)}}function unloadHandler(){for(let Be in Request.requests)Request.requests.hasOwnProperty(Be)&&Request.requests[Be].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?St=>Promise.resolve().then(St):(St,Ae)=>Ae(St,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(St){super(St),this.supportsBinary=!St.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const St=this.uri(),Ae=this.opts.protocols,Ee=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(Ee.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?Ae?new WebSocket(St,Ae):new WebSocket(St):new WebSocket(St,Ae,Ee)}catch(Ce){return this.emitReserved("error",Ce)}this.ws.binaryType=this.socket.binaryType||defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=St=>this.onClose({description:"websocket connection closed",context:St}),this.ws.onmessage=St=>this.onData(St.data),this.ws.onerror=St=>this.onError("websocket error",St)}write(St){this.writable=!1;for(let Ae=0;Ae<St.length;Ae++){const Ee=St[Ae],Ce=Ae===St.length-1;encodePacket(Ee,this.supportsBinary,_e=>{const Te={};try{usingBrowserWebSocket&&this.ws.send(_e)}catch{}Ce&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let St=this.query||{};const Ae=this.opts.secure?"wss":"ws";let Ee="";this.opts.port&&(Ae==="wss"&&Number(this.opts.port)!==443||Ae==="ws"&&Number(this.opts.port)!==80)&&(Ee=":"+this.opts.port),this.opts.timestampRequests&&(St[this.opts.timestampParam]=yeast()),this.supportsBinary||(St.b64=1);const Ce=encode(St),_e=this.opts.hostname.indexOf(":")!==-1;return Ae+"://"+(_e?"["+this.opts.hostname+"]":this.opts.hostname)+Ee+this.opts.path+(Ce.length?"?"+Ce:"")}check(){return!!WebSocket}}const transports={websocket:WS,polling:Polling},re$1=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$1(Be){const St=Be,Ae=Be.indexOf("["),Ee=Be.indexOf("]");Ae!=-1&&Ee!=-1&&(Be=Be.substring(0,Ae)+Be.substring(Ae,Ee).replace(/:/g,";")+Be.substring(Ee,Be.length));let Ce=re$1.exec(Be||""),_e={},Te=14;for(;Te--;)_e[parts[Te]]=Ce[Te]||"";return Ae!=-1&&Ee!=-1&&(_e.source=St,_e.host=_e.host.substring(1,_e.host.length-1).replace(/;/g,":"),_e.authority=_e.authority.replace("[","").replace("]","").replace(/;/g,":"),_e.ipv6uri=!0),_e.pathNames=pathNames(_e,_e.path),_e.queryKey=queryKey(_e,_e.query),_e}function pathNames(Be,St){const Ae=/\/{2,9}/g,Ee=St.replace(Ae,"/").split("/");return(St.slice(0,1)=="/"||St.length===0)&&Ee.splice(0,1),St.slice(-1)=="/"&&Ee.splice(Ee.length-1,1),Ee}function queryKey(Be,St){const Ae={};return St.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Ee,Ce,_e){Ce&&(Ae[Ce]=_e)}),Ae}let Socket$1=class Pa extends Emitter{constructor(St,Ae={}){super(),St&&typeof St=="object"&&(Ae=St,St=null),St?(St=parse$1(St),Ae.hostname=St.host,Ae.secure=St.protocol==="https"||St.protocol==="wss",Ae.port=St.port,St.query&&(Ae.query=St.query)):Ae.host&&(Ae.hostname=parse$1(Ae.host).host),installTimerFunctions(this,Ae),this.secure=Ae.secure!=null?Ae.secure:typeof location<"u"&&location.protocol==="https:",Ae.hostname&&!Ae.port&&(Ae.port=this.secure?"443":"80"),this.hostname=Ae.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=Ae.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=Ae.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},Ae),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=decode$2(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(St){const Ae=Object.assign({},this.opts.query);Ae.EIO=protocol$1,Ae.transport=St,this.id&&(Ae.sid=this.id);const Ee=Object.assign({},this.opts.transportOptions[St],this.opts,{query:Ae,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new transports[St](Ee)}open(){let St;if(this.opts.rememberUpgrade&&Pa.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)St="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else St=this.transports[0];this.readyState="opening";try{St=this.createTransport(St)}catch{this.transports.shift(),this.open();return}St.open(),this.setTransport(St)}setTransport(St){this.transport&&this.transport.removeAllListeners(),this.transport=St,St.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",Ae=>this.onClose("transport close",Ae))}probe(St){let Ae=this.createTransport(St),Ee=!1;Pa.priorWebsocketSuccess=!1;const Ce=()=>{Ee||(Ae.send([{type:"ping",data:"probe"}]),Ae.once("packet",$e=>{if(!Ee)if($e.type==="pong"&&$e.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",Ae),!Ae)return;Pa.priorWebsocketSuccess=Ae.name==="websocket",this.transport.pause(()=>{Ee||this.readyState!=="closed"&&(Ue(),this.setTransport(Ae),Ae.send([{type:"upgrade"}]),this.emitReserved("upgrade",Ae),Ae=null,this.upgrading=!1,this.flush())})}else{const Me=new Error("probe error");Me.transport=Ae.name,this.emitReserved("upgradeError",Me)}}))};function _e(){Ee||(Ee=!0,Ue(),Ae.close(),Ae=null)}const Te=$e=>{const Me=new Error("probe error: "+$e);Me.transport=Ae.name,_e(),this.emitReserved("upgradeError",Me)};function Se(){Te("transport closed")}function xe(){Te("socket closed")}function Ie($e){Ae&&$e.name!==Ae.name&&_e()}const Ue=()=>{Ae.removeListener("open",Ce),Ae.removeListener("error",Te),Ae.removeListener("close",Se),this.off("close",xe),this.off("upgrading",Ie)};Ae.once("open",Ce),Ae.once("error",Te),Ae.once("close",Se),this.once("close",xe),this.once("upgrading",Ie),Ae.open()}onOpen(){if(this.readyState="open",Pa.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let St=0;const Ae=this.upgrades.length;for(;St<Ae;St++)this.probe(this.upgrades[St])}}onPacket(St){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",St),this.emitReserved("heartbeat"),St.type){case"open":this.onHandshake(JSON.parse(St.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const Ae=new Error("server error");Ae.code=St.data,this.onError(Ae);break;case"message":this.emitReserved("data",St.data),this.emitReserved("message",St.data);break}}onHandshake(St){this.emitReserved("handshake",St),this.id=St.sid,this.transport.query.sid=St.sid,this.upgrades=this.filterUpgrades(St.upgrades),this.pingInterval=St.pingInterval,this.pingTimeout=St.pingTimeout,this.maxPayload=St.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const St=this.getWritablePackets();this.transport.send(St),this.prevBufferLen=St.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let Ae=1;for(let Ee=0;Ee<this.writeBuffer.length;Ee++){const Ce=this.writeBuffer[Ee].data;if(Ce&&(Ae+=byteLength(Ce)),Ee>0&&Ae>this.maxPayload)return this.writeBuffer.slice(0,Ee);Ae+=2}return this.writeBuffer}write(St,Ae,Ee){return this.sendPacket("message",St,Ae,Ee),this}send(St,Ae,Ee){return this.sendPacket("message",St,Ae,Ee),this}sendPacket(St,Ae,Ee,Ce){if(typeof Ae=="function"&&(Ce=Ae,Ae=void 0),typeof Ee=="function"&&(Ce=Ee,Ee=null),this.readyState==="closing"||this.readyState==="closed")return;Ee=Ee||{},Ee.compress=Ee.compress!==!1;const _e={type:St,data:Ae,options:Ee};this.emitReserved("packetCreate",_e),this.writeBuffer.push(_e),Ce&&this.once("flush",Ce),this.flush()}close(){const St=()=>{this.onClose("forced close"),this.transport.close()},Ae=()=>{this.off("upgrade",Ae),this.off("upgradeError",Ae),St()},Ee=()=>{this.once("upgrade",Ae),this.once("upgradeError",Ae)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?Ee():St()}):this.upgrading?Ee():St()),this}onError(St){Pa.priorWebsocketSuccess=!1,this.emitReserved("error",St),this.onClose("transport error",St)}onClose(St,Ae){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",St,Ae),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(St){const Ae=[];let Ee=0;const Ce=St.length;for(;Ee<Ce;Ee++)~this.transports.indexOf(St[Ee])&&Ae.push(St[Ee]);return Ae}};Socket$1.protocol=protocol$1;function url(Be,St="",Ae){let Ee=Be;Ae=Ae||typeof location<"u"&&location,Be==null&&(Be=Ae.protocol+"//"+Ae.host),typeof Be=="string"&&(Be.charAt(0)==="/"&&(Be.charAt(1)==="/"?Be=Ae.protocol+Be:Be=Ae.host+Be),/^(https?|wss?):\/\//.test(Be)||(typeof Ae<"u"?Be=Ae.protocol+"//"+Be:Be="https://"+Be),Ee=parse$1(Be)),Ee.port||(/^(http|ws)$/.test(Ee.protocol)?Ee.port="80":/^(http|ws)s$/.test(Ee.protocol)&&(Ee.port="443")),Ee.path=Ee.path||"/";const _e=Ee.host.indexOf(":")!==-1?"["+Ee.host+"]":Ee.host;return Ee.id=Ee.protocol+"://"+_e+":"+Ee.port+St,Ee.href=Ee.protocol+"://"+_e+(Ae&&Ae.port===Ee.port?"":":"+Ee.port),Ee}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=Be=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Be):Be.buffer instanceof ArrayBuffer,toString$c=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString$c.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString$c.call(File)==="[object FileConstructor]";function isBinary(Be){return withNativeArrayBuffer&&(Be instanceof ArrayBuffer||isView(Be))||withNativeBlob&&Be instanceof Blob||withNativeFile&&Be instanceof File}function hasBinary(Be,St){if(!Be||typeof Be!="object")return!1;if(Array.isArray(Be)){for(let Ae=0,Ee=Be.length;Ae<Ee;Ae++)if(hasBinary(Be[Ae]))return!0;return!1}if(isBinary(Be))return!0;if(Be.toJSON&&typeof Be.toJSON=="function"&&arguments.length===1)return hasBinary(Be.toJSON(),!0);for(const Ae in Be)if(Object.prototype.hasOwnProperty.call(Be,Ae)&&hasBinary(Be[Ae]))return!0;return!1}function deconstructPacket(Be){const St=[],Ae=Be.data,Ee=Be;return Ee.data=_deconstructPacket(Ae,St),Ee.attachments=St.length,{packet:Ee,buffers:St}}function _deconstructPacket(Be,St){if(!Be)return Be;if(isBinary(Be)){const Ae={_placeholder:!0,num:St.length};return St.push(Be),Ae}else if(Array.isArray(Be)){const Ae=new Array(Be.length);for(let Ee=0;Ee<Be.length;Ee++)Ae[Ee]=_deconstructPacket(Be[Ee],St);return Ae}else if(typeof Be=="object"&&!(Be instanceof Date)){const Ae={};for(const Ee in Be)Object.prototype.hasOwnProperty.call(Be,Ee)&&(Ae[Ee]=_deconstructPacket(Be[Ee],St));return Ae}return Be}function reconstructPacket(Be,St){return Be.data=_reconstructPacket(Be.data,St),delete Be.attachments,Be}function _reconstructPacket(Be,St){if(!Be)return Be;if(Be&&Be._placeholder===!0){if(typeof Be.num=="number"&&Be.num>=0&&Be.num<St.length)return St[Be.num];throw new Error("illegal attachments")}else if(Array.isArray(Be))for(let Ae=0;Ae<Be.length;Ae++)Be[Ae]=_reconstructPacket(Be[Ae],St);else if(typeof Be=="object")for(const Ae in Be)Object.prototype.hasOwnProperty.call(Be,Ae)&&(Be[Ae]=_reconstructPacket(Be[Ae],St));return Be}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function(Be){Be[Be.CONNECT=0]="CONNECT",Be[Be.DISCONNECT=1]="DISCONNECT",Be[Be.EVENT=2]="EVENT",Be[Be.ACK=3]="ACK",Be[Be.CONNECT_ERROR=4]="CONNECT_ERROR",Be[Be.BINARY_EVENT=5]="BINARY_EVENT",Be[Be.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(St){this.replacer=St}encode(St){return(St.type===PacketType.EVENT||St.type===PacketType.ACK)&&hasBinary(St)?this.encodeAsBinary({type:St.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:St.nsp,data:St.data,id:St.id}):[this.encodeAsString(St)]}encodeAsString(St){let Ae=""+St.type;return(St.type===PacketType.BINARY_EVENT||St.type===PacketType.BINARY_ACK)&&(Ae+=St.attachments+"-"),St.nsp&&St.nsp!=="/"&&(Ae+=St.nsp+","),St.id!=null&&(Ae+=St.id),St.data!=null&&(Ae+=JSON.stringify(St.data,this.replacer)),Ae}encodeAsBinary(St){const Ae=deconstructPacket(St),Ee=this.encodeAsString(Ae.packet),Ce=Ae.buffers;return Ce.unshift(Ee),Ce}}function isObject$b(Be){return Object.prototype.toString.call(Be)==="[object Object]"}class Decoder extends Emitter{constructor(St){super(),this.reviver=St}add(St){let Ae;if(typeof St=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");Ae=this.decodeString(St);const Ee=Ae.type===PacketType.BINARY_EVENT;Ee||Ae.type===PacketType.BINARY_ACK?(Ae.type=Ee?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(Ae),Ae.attachments===0&&super.emitReserved("decoded",Ae)):super.emitReserved("decoded",Ae)}else if(isBinary(St)||St.base64)if(this.reconstructor)Ae=this.reconstructor.takeBinaryData(St),Ae&&(this.reconstructor=null,super.emitReserved("decoded",Ae));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+St)}decodeString(St){let Ae=0;const Ee={type:Number(St.charAt(0))};if(PacketType[Ee.type]===void 0)throw new Error("unknown packet type "+Ee.type);if(Ee.type===PacketType.BINARY_EVENT||Ee.type===PacketType.BINARY_ACK){const _e=Ae+1;for(;St.charAt(++Ae)!=="-"&&Ae!=St.length;);const Te=St.substring(_e,Ae);if(Te!=Number(Te)||St.charAt(Ae)!=="-")throw new Error("Illegal attachments");Ee.attachments=Number(Te)}if(St.charAt(Ae+1)==="/"){const _e=Ae+1;for(;++Ae&&!(St.charAt(Ae)===","||Ae===St.length););Ee.nsp=St.substring(_e,Ae)}else Ee.nsp="/";const Ce=St.charAt(Ae+1);if(Ce!==""&&Number(Ce)==Ce){const _e=Ae+1;for(;++Ae;){const Te=St.charAt(Ae);if(Te==null||Number(Te)!=Te){--Ae;break}if(Ae===St.length)break}Ee.id=Number(St.substring(_e,Ae+1))}if(St.charAt(++Ae)){const _e=this.tryParse(St.substr(Ae));if(Decoder.isPayloadValid(Ee.type,_e))Ee.data=_e;else throw new Error("invalid payload")}return Ee}tryParse(St){try{return JSON.parse(St,this.reviver)}catch{return!1}}static isPayloadValid(St,Ae){switch(St){case PacketType.CONNECT:return isObject$b(Ae);case PacketType.DISCONNECT:return Ae===void 0;case PacketType.CONNECT_ERROR:return typeof Ae=="string"||isObject$b(Ae);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(Ae)&&(typeof Ae[0]=="number"||typeof Ae[0]=="string"&&RESERVED_EVENTS$1.indexOf(Ae[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(Ae)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(St){this.packet=St,this.buffers=[],this.reconPack=St}takeBinaryData(St){if(this.buffers.push(St),this.buffers.length===this.reconPack.attachments){const Ae=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),Ae}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},protocol},Symbol.toStringTag,{value:"Module"}));function on(Be,St,Ae){return Be.on(St,Ae),function(){Be.off(St,Ae)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(St,Ae,Ee){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=St,this.nsp=Ae,Ee&&Ee.auth&&(this.auth=Ee.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const St=this.io;this.subs=[on(St,"open",this.onopen.bind(this)),on(St,"packet",this.onpacket.bind(this)),on(St,"error",this.onerror.bind(this)),on(St,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...St){return St.unshift("message"),this.emit.apply(this,St),this}emit(St,...Ae){if(RESERVED_EVENTS.hasOwnProperty(St))throw new Error('"'+St+'" is a reserved event name');Ae.unshift(St);const Ee={type:PacketType.EVENT,data:Ae};if(Ee.options={},Ee.options.compress=this.flags.compress!==!1,typeof Ae[Ae.length-1]=="function"){const Te=this.ids++,Se=Ae.pop();this._registerAckCallback(Te,Se),Ee.id=Te}const Ce=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!Ce||!this.connected)||(this.connected?(this.notifyOutgoingListeners(Ee),this.packet(Ee)):this.sendBuffer.push(Ee)),this.flags={},this}_registerAckCallback(St,Ae){const Ee=this.flags.timeout;if(Ee===void 0){this.acks[St]=Ae;return}const Ce=this.io.setTimeoutFn(()=>{delete this.acks[St];for(let _e=0;_e<this.sendBuffer.length;_e++)this.sendBuffer[_e].id===St&&this.sendBuffer.splice(_e,1);Ae.call(this,new Error("operation has timed out"))},Ee);this.acks[St]=(..._e)=>{this.io.clearTimeoutFn(Ce),Ae.apply(this,[null,..._e])}}packet(St){St.nsp=this.nsp,this.io._packet(St)}onopen(){typeof this.auth=="function"?this.auth(St=>{this.packet({type:PacketType.CONNECT,data:St})}):this.packet({type:PacketType.CONNECT,data:this.auth})}onerror(St){this.connected||this.emitReserved("connect_error",St)}onclose(St,Ae){this.connected=!1,delete this.id,this.emitReserved("disconnect",St,Ae)}onpacket(St){if(St.nsp===this.nsp)switch(St.type){case PacketType.CONNECT:if(St.data&&St.data.sid){const Ce=St.data.sid;this.onconnect(Ce)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(St);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(St);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const Ee=new Error(St.data.message);Ee.data=St.data.data,this.emitReserved("connect_error",Ee);break}}onevent(St){const Ae=St.data||[];St.id!=null&&Ae.push(this.ack(St.id)),this.connected?this.emitEvent(Ae):this.receiveBuffer.push(Object.freeze(Ae))}emitEvent(St){if(this._anyListeners&&this._anyListeners.length){const Ae=this._anyListeners.slice();for(const Ee of Ae)Ee.apply(this,St)}super.emit.apply(this,St)}ack(St){const Ae=this;let Ee=!1;return function(...Ce){Ee||(Ee=!0,Ae.packet({type:PacketType.ACK,id:St,data:Ce}))}}onack(St){const Ae=this.acks[St.id];typeof Ae=="function"&&(Ae.apply(this,St.data),delete this.acks[St.id])}onconnect(St){this.id=St,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(St=>this.emitEvent(St)),this.receiveBuffer=[],this.sendBuffer.forEach(St=>{this.notifyOutgoingListeners(St),this.packet(St)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(St=>St()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(St){return this.flags.compress=St,this}get volatile(){return this.flags.volatile=!0,this}timeout(St){return this.flags.timeout=St,this}onAny(St){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(St),this}prependAny(St){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(St),this}offAny(St){if(!this._anyListeners)return this;if(St){const Ae=this._anyListeners;for(let Ee=0;Ee<Ae.length;Ee++)if(St===Ae[Ee])return Ae.splice(Ee,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(St){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(St),this}prependAnyOutgoing(St){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(St),this}offAnyOutgoing(St){if(!this._anyOutgoingListeners)return this;if(St){const Ae=this._anyOutgoingListeners;for(let Ee=0;Ee<Ae.length;Ee++)if(St===Ae[Ee])return Ae.splice(Ee,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(St){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const Ae=this._anyOutgoingListeners.slice();for(const Ee of Ae)Ee.apply(this,St.data)}}}function Backoff(Be){Be=Be||{},this.ms=Be.min||100,this.max=Be.max||1e4,this.factor=Be.factor||2,this.jitter=Be.jitter>0&&Be.jitter<=1?Be.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var Be=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var St=Math.random(),Ae=Math.floor(St*this.jitter*Be);Be=Math.floor(St*10)&1?Be+Ae:Be-Ae}return Math.min(Be,this.max)|0},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(Be){this.ms=Be},Backoff.prototype.setMax=function(Be){this.max=Be},Backoff.prototype.setJitter=function(Be){this.jitter=Be};class Manager extends Emitter{constructor(St,Ae){var Ee;super(),this.nsps={},this.subs=[],St&&typeof St=="object"&&(Ae=St,St=void 0),Ae=Ae||{},Ae.path=Ae.path||"/socket.io",this.opts=Ae,installTimerFunctions(this,Ae),this.reconnection(Ae.reconnection!==!1),this.reconnectionAttempts(Ae.reconnectionAttempts||1/0),this.reconnectionDelay(Ae.reconnectionDelay||1e3),this.reconnectionDelayMax(Ae.reconnectionDelayMax||5e3),this.randomizationFactor((Ee=Ae.randomizationFactor)!==null&&Ee!==void 0?Ee:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(Ae.timeout==null?2e4:Ae.timeout),this._readyState="closed",this.uri=St;const Ce=Ae.parser||parser;this.encoder=new Ce.Encoder,this.decoder=new Ce.Decoder,this._autoConnect=Ae.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(St){return arguments.length?(this._reconnection=!!St,this):this._reconnection}reconnectionAttempts(St){return St===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=St,this)}reconnectionDelay(St){var Ae;return St===void 0?this._reconnectionDelay:(this._reconnectionDelay=St,(Ae=this.backoff)===null||Ae===void 0||Ae.setMin(St),this)}randomizationFactor(St){var Ae;return St===void 0?this._randomizationFactor:(this._randomizationFactor=St,(Ae=this.backoff)===null||Ae===void 0||Ae.setJitter(St),this)}reconnectionDelayMax(St){var Ae;return St===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=St,(Ae=this.backoff)===null||Ae===void 0||Ae.setMax(St),this)}timeout(St){return arguments.length?(this._timeout=St,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(St){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const Ae=this.engine,Ee=this;this._readyState="opening",this.skipReconnect=!1;const Ce=on(Ae,"open",function(){Ee.onopen(),St&&St()}),_e=on(Ae,"error",Te=>{Ee.cleanup(),Ee._readyState="closed",this.emitReserved("error",Te),St?St(Te):Ee.maybeReconnectOnOpen()});if(this._timeout!==!1){const Te=this._timeout;Te===0&&Ce();const Se=this.setTimeoutFn(()=>{Ce(),Ae.close(),Ae.emit("error",new Error("timeout"))},Te);this.opts.autoUnref&&Se.unref(),this.subs.push(function(){clearTimeout(Se)})}return this.subs.push(Ce),this.subs.push(_e),this}connect(St){return this.open(St)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const St=this.engine;this.subs.push(on(St,"ping",this.onping.bind(this)),on(St,"data",this.ondata.bind(this)),on(St,"error",this.onerror.bind(this)),on(St,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(St){this.decoder.add(St)}ondecoded(St){this.emitReserved("packet",St)}onerror(St){this.emitReserved("error",St)}socket(St,Ae){let Ee=this.nsps[St];return Ee||(Ee=new Socket(this,St,Ae),this.nsps[St]=Ee),Ee}_destroy(St){const Ae=Object.keys(this.nsps);for(const Ee of Ae)if(this.nsps[Ee].active)return;this._close()}_packet(St){const Ae=this.encoder.encode(St);for(let Ee=0;Ee<Ae.length;Ee++)this.engine.write(Ae[Ee],St.options)}cleanup(){this.subs.forEach(St=>St()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(St,Ae){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",St,Ae),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const St=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const Ae=this.backoff.duration();this._reconnecting=!0;const Ee=this.setTimeoutFn(()=>{St.skipReconnect||(this.emitReserved("reconnect_attempt",St.backoff.attempts),!St.skipReconnect&&St.open(Ce=>{Ce?(St._reconnecting=!1,St.reconnect(),this.emitReserved("reconnect_error",Ce)):St.onreconnect()}))},Ae);this.opts.autoUnref&&Ee.unref(),this.subs.push(function(){clearTimeout(Ee)})}}onreconnect(){const St=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",St)}}const cache={};function lookup$4(Be,St){typeof Be=="object"&&(St=Be,Be=void 0),St=St||{};const Ae=url(Be,St.path||"/socket.io"),Ee=Ae.source,Ce=Ae.id,_e=Ae.path,Te=cache[Ce]&&_e in cache[Ce].nsps,Se=St.forceNew||St["force new connection"]||St.multiplex===!1||Te;let xe;return Se?xe=new Manager(Ee,St):(cache[Ce]||(cache[Ce]=new Manager(Ee,St)),xe=cache[Ce]),Ae.query&&!St.query&&(St.query=Ae.queryKey),xe.socket(Ae.path,St)}Object.assign(lookup$4,{Manager,Socket,io:lookup$4,connect:lookup$4});function _typeof$3(Be){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(St){return typeof St}:function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},_typeof$3(Be)}var u8=Uint8Array,u16=Uint16Array,u32=Uint32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(Be,St){for(var Ae=new u16(31),Ee=0;Ee<31;++Ee)Ae[Ee]=St+=1<<Be[Ee-1];for(var Ce=new u32(Ae[30]),Ee=1;Ee<30;++Ee)for(var _e=Ae[Ee];_e<Ae[Ee+1];++_e)Ce[_e]=_e-Ae[Ee]<<5|Ee;return[Ae,Ce]},_a=freb(fleb,2),fl=_a[0],revfl=_a[1];fl[28]=258,revfl[258]=28;for(var _b=freb(fdeb,0),fd=_b[0],revfd=_b[1],rev=new u16(32768),i$6=0;i$6<32768;++i$6){var x$1=(i$6&43690)>>>1|(i$6&21845)<<1;x$1=(x$1&52428)>>>2|(x$1&13107)<<2,x$1=(x$1&61680)>>>4|(x$1&3855)<<4,rev[i$6]=((x$1&65280)>>>8|(x$1&255)<<8)>>>1}for(var hMap=function(Be,St,Ae){for(var Ee=Be.length,Ce=0,_e=new u16(St);Ce<Ee;++Ce)++_e[Be[Ce]-1];var Te=new u16(St);for(Ce=0;Ce<St;++Ce)Te[Ce]=Te[Ce-1]+_e[Ce-1]<<1;var Se;if(Ae){Se=new u16(1<<St);var xe=15-St;for(Ce=0;Ce<Ee;++Ce)if(Be[Ce])for(var Ie=Ce<<4|Be[Ce],Ue=St-Be[Ce],$e=Te[Be[Ce]-1]++<<Ue,Me=$e|(1<<Ue)-1;$e<=Me;++$e)Se[rev[$e]>>>xe]=Ie}else for(Se=new u16(Ee),Ce=0;Ce<Ee;++Ce)Se[Ce]=rev[Te[Be[Ce]-1]++]>>>15-Be[Ce];return Se},flt=new u8(288),i$6=0;i$6<144;++i$6)flt[i$6]=8;for(var i$6=144;i$6<256;++i$6)flt[i$6]=9;for(var i$6=256;i$6<280;++i$6)flt[i$6]=7;for(var i$6=280;i$6<288;++i$6)flt[i$6]=8;for(var fdt=new u8(32),i$6=0;i$6<32;++i$6)fdt[i$6]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max$2=function(Be){for(var St=Be[0],Ae=1;Ae<Be.length;++Ae)Be[Ae]>St&&(St=Be[Ae]);return St},bits=function(Be,St,Ae){var Ee=St/8>>0;return(Be[Ee]|Be[Ee+1]<<8)>>>(St&7)&Ae},bits16=function(Be,St){var Ae=St/8>>0;return(Be[Ae]|Be[Ae+1]<<8|Be[Ae+2]<<16)>>>(St&7)},shft=function(Be){return(Be/8>>0)+(Be&7&&1)},slc=function(Be,St,Ae){(St==null||St<0)&&(St=0),(Ae==null||Ae>Be.length)&&(Ae=Be.length);var Ee=new(Be instanceof u16?u16:Be instanceof u32?u32:u8)(Ae-St);return Ee.set(Be.subarray(St,Ae)),Ee},inflt=function(Be,St,Ae){var Ee=Be.length,Ce=!St||Ae,_e=!Ae||Ae.i;Ae||(Ae={}),St||(St=new u8(Ee*3));var Te=function(Qr){var Jr=St.length;if(Qr>Jr){var nn=new u8(Math.max(Jr*2,Qr));nn.set(St),St=nn}},Se=Ae.f||0,xe=Ae.p||0,Ie=Ae.b||0,Ue=Ae.l,$e=Ae.d,Me=Ae.m,Re=Ae.n,ze=Ee*8;do{if(!Ue){Ae.f=Se=bits(Be,xe,1);var Ve=bits(Be,xe+1,3);if(xe+=3,Ve)if(Ve==1)Ue=flrm,$e=fdrm,Me=9,Re=5;else if(Ve==2){var fr=bits(Be,xe,31)+257,Ye=bits(Be,xe+10,15)+4,Ar=fr+bits(Be,xe+5,31)+1;xe+=14;for(var Oe=new u8(Ar),Je=new u8(19),We=0;We<Ye;++We)Je[clim[We]]=bits(Be,xe+We*3,7);xe+=Ye*3;var or=max$2(Je),mr=(1<<or)-1;if(!_e&&xe+Ar*(or+7)>ze)break;for(var er=hMap(Je,or,1),We=0;We<Ar;){var ir=er[bits(Be,xe,mr)];xe+=ir&15;var nr=ir>>>4;if(nr<16)Oe[We++]=nr;else{var gr=0,vr=0;for(nr==16?(vr=3+bits(Be,xe,3),xe+=2,gr=Oe[We-1]):nr==17?(vr=3+bits(Be,xe,7),xe+=3):nr==18&&(vr=11+bits(Be,xe,127),xe+=7);vr--;)Oe[We++]=gr}}var Or=Oe.subarray(0,fr),Nr=Oe.subarray(fr);Me=max$2(Or),Re=max$2(Nr),Ue=hMap(Or,Me,1),$e=hMap(Nr,Re,1)}else throw"invalid block type";else{var nr=shft(xe)+4,Ze=Be[nr-4]|Be[nr-3]<<8,ar=nr+Ze;if(ar>Ee){if(_e)throw"unexpected EOF";break}Ce&&Te(Ie+Ze),St.set(Be.subarray(nr,ar),Ie),Ae.b=Ie+=Ze,Ae.p=xe=ar*8;continue}if(xe>ze)throw"unexpected EOF"}Ce&&Te(Ie+131072);for(var Hr=(1<<Me)-1,Dr=(1<<Re)-1,kr=Me+Re+18;_e||xe+kr<ze;){var gr=Ue[bits16(Be,xe)&Hr],qr=gr>>>4;if(xe+=gr&15,xe>ze)throw"unexpected EOF";if(!gr)throw"invalid length/literal";if(qr<256)St[Ie++]=qr;else if(qr==256){Ue=null;break}else{var An=qr-254;if(qr>264){var We=qr-257,lr=fleb[We];An=bits(Be,xe,(1<<lr)-1)+fl[We],xe+=lr}var Tr=$e[bits16(Be,xe)&Dr],xr=Tr>>>4;if(!Tr)throw"invalid distance";xe+=Tr&15;var Nr=fd[xr];if(xr>3){var lr=fdeb[xr];Nr+=bits16(Be,xe)&(1<<lr)-1,xe+=lr}if(xe>ze)throw"unexpected EOF";Ce&&Te(Ie+131072);for(var $r=Ie+An;Ie<$r;Ie+=4)St[Ie]=St[Ie-Nr],St[Ie+1]=St[Ie+1-Nr],St[Ie+2]=St[Ie+2-Nr],St[Ie+3]=St[Ie+3-Nr];Ie=$r}}Ae.l=Ue,Ae.p=xe,Ae.b=Ie,Ue&&(Se=1,Ae.m=Me,Ae.d=$e,Ae.n=Re)}while(!Se);return Ie==St.length?St:slc(St,0,Ie)},wbits=function(Be,St,Ae){Ae<<=St&7;var Ee=St/8>>0;Be[Ee]|=Ae,Be[Ee+1]|=Ae>>>8},wbits16=function(Be,St,Ae){Ae<<=St&7;var Ee=St/8>>0;Be[Ee]|=Ae,Be[Ee+1]|=Ae>>>8,Be[Ee+2]|=Ae>>>16},hTree=function(Be,St){for(var Ae=[],Ee=0;Ee<Be.length;++Ee)Be[Ee]&&Ae.push({s:Ee,f:Be[Ee]});var Ce=Ae.length,_e=Ae.slice();if(!Ce)return[new u8(0),0];if(Ce==1){var Te=new u8(Ae[0].s+1);return Te[Ae[0].s]=1,[Te,1]}Ae.sort(function(Ar,Oe){return Ar.f-Oe.f}),Ae.push({s:-1,f:25001});var Se=Ae[0],xe=Ae[1],Ie=0,Ue=1,$e=2;for(Ae[0]={s:-1,f:Se.f+xe.f,l:Se,r:xe};Ue!=Ce-1;)Se=Ae[Ae[Ie].f<Ae[$e].f?Ie++:$e++],xe=Ae[Ie!=Ue&&Ae[Ie].f<Ae[$e].f?Ie++:$e++],Ae[Ue++]={s:-1,f:Se.f+xe.f,l:Se,r:xe};for(var Me=_e[0].s,Ee=1;Ee<Ce;++Ee)_e[Ee].s>Me&&(Me=_e[Ee].s);var Re=new u16(Me+1),ze=ln(Ae[Ue-1],Re,0);if(ze>St){var Ee=0,Ve=0,nr=ze-St,Ze=1<<nr;for(_e.sort(function(Oe,Je){return Re[Je.s]-Re[Oe.s]||Oe.f-Je.f});Ee<Ce;++Ee){var ar=_e[Ee].s;if(Re[ar]>St)Ve+=Ze-(1<<ze-Re[ar]),Re[ar]=St;else break}for(Ve>>>=nr;Ve>0;){var fr=_e[Ee].s;Re[fr]<St?Ve-=1<<St-Re[fr]++-1:++Ee}for(;Ee>=0&&Ve;--Ee){var Ye=_e[Ee].s;Re[Ye]==St&&(--Re[Ye],++Ve)}ze=St}return[new u8(Re),ze]},ln=function(Be,St,Ae){return Be.s==-1?Math.max(ln(Be.l,St,Ae+1),ln(Be.r,St,Ae+1)):St[Be.s]=Ae},lc=function(Be){for(var St=Be.length;St&&!Be[--St];);for(var Ae=new u16(++St),Ee=0,Ce=Be[0],_e=1,Te=function(xe){Ae[Ee++]=xe},Se=1;Se<=St;++Se)if(Be[Se]==Ce&&Se!=St)++_e;else{if(!Ce&&_e>2){for(;_e>138;_e-=138)Te(32754);_e>2&&(Te(_e>10?_e-11<<5|28690:_e-3<<5|12305),_e=0)}else if(_e>3){for(Te(Ce),--_e;_e>6;_e-=6)Te(8304);_e>2&&(Te(_e-3<<5|8208),_e=0)}for(;_e--;)Te(Ce);_e=1,Ce=Be[Se]}return[Ae.subarray(0,Ee),St]},clen=function(Be,St){for(var Ae=0,Ee=0;Ee<St.length;++Ee)Ae+=Be[Ee]*St[Ee];return Ae},wfblk=function(Be,St,Ae){var Ee=Ae.length,Ce=shft(St+2);Be[Ce]=Ee&255,Be[Ce+1]=Ee>>>8,Be[Ce+2]=Be[Ce]^255,Be[Ce+3]=Be[Ce+1]^255;for(var _e=0;_e<Ee;++_e)Be[Ce+_e+4]=Ae[_e];return(Ce+4+Ee)*8},wblk=function(Be,St,Ae,Ee,Ce,_e,Te,Se,xe,Ie,Ue){wbits(St,Ue++,Ae),++Ce[256];for(var $e=hTree(Ce,15),Me=$e[0],Re=$e[1],ze=hTree(_e,15),Ve=ze[0],nr=ze[1],Ze=lc(Me),ar=Ze[0],fr=Ze[1],Ye=lc(Ve),Ar=Ye[0],Oe=Ye[1],Je=new u16(19),We=0;We<ar.length;++We)Je[ar[We]&31]++;for(var We=0;We<Ar.length;++We)Je[Ar[We]&31]++;for(var or=hTree(Je,7),mr=or[0],er=or[1],ir=19;ir>4&&!mr[clim[ir-1]];--ir);var gr=Ie+5<<3,vr=clen(Ce,flt)+clen(_e,fdt)+Te,Or=clen(Ce,Me)+clen(_e,Ve)+Te+14+3*ir+clen(Je,mr)+(2*Je[16]+3*Je[17]+7*Je[18]);if(gr<=vr&&gr<=Or)return wfblk(St,Ue,Be.subarray(xe,xe+Ie));var Nr,Hr,Dr,kr;if(wbits(St,Ue,1+(Or<vr)),Ue+=2,Or<vr){Nr=hMap(Me,Re,0),Hr=Me,Dr=hMap(Ve,nr,0),kr=Ve;var qr=hMap(mr,er,0);wbits(St,Ue,fr-257),wbits(St,Ue+5,Oe-1),wbits(St,Ue+10,ir-4),Ue+=14;for(var We=0;We<ir;++We)wbits(St,Ue+3*We,mr[clim[We]]);Ue+=3*ir;for(var An=[ar,Ar],lr=0;lr<2;++lr)for(var Tr=An[lr],We=0;We<Tr.length;++We){var xr=Tr[We]&31;wbits(St,Ue,qr[xr]),Ue+=mr[xr],xr>15&&(wbits(St,Ue,Tr[We]>>>5&127),Ue+=Tr[We]>>>12)}}else Nr=flm,Hr=flt,Dr=fdm,kr=fdt;for(var We=0;We<Se;++We)if(Ee[We]>255){var xr=Ee[We]>>>18&31;wbits16(St,Ue,Nr[xr+257]),Ue+=Hr[xr+257],xr>7&&(wbits(St,Ue,Ee[We]>>>23&31),Ue+=fleb[xr]);var $r=Ee[We]&31;wbits16(St,Ue,Dr[$r]),Ue+=kr[$r],$r>3&&(wbits16(St,Ue,Ee[We]>>>5&8191),Ue+=fdeb[$r])}else wbits16(St,Ue,Nr[Ee[We]]),Ue+=Hr[Ee[We]];return wbits16(St,Ue,Nr[256]),Ue+Hr[256]},deo=new u32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et$1=new u8(0),dflt=function(Be,St,Ae,Ee,Ce,_e){var Te=Be.length,Se=new u8(Ee+Te+5*(1+Math.floor(Te/7e3))+Ce),xe=Se.subarray(Ee,Se.length-Ce),Ie=0;if(!St||Te<8)for(var Ue=0;Ue<=Te;Ue+=65535){var $e=Ue+65535;$e<Te?Ie=wfblk(xe,Ie,Be.subarray(Ue,$e)):(xe[Ue]=_e,Ie=wfblk(xe,Ie,Be.subarray(Ue,Te)))}else{for(var Me=deo[St-1],Re=Me>>>13,ze=Me&8191,Ve=(1<<Ae)-1,nr=new u16(32768),Ze=new u16(Ve+1),ar=Math.ceil(Ae/3),fr=2*ar,Ye=function(zn){return(Be[zn]^Be[zn+1]<<ar^Be[zn+2]<<fr)&Ve},Ar=new u32(25e3),Oe=new u16(288),Je=new u16(32),We=0,or=0,Ue=0,mr=0,er=0,ir=0;Ue<Te;++Ue){var gr=Ye(Ue),vr=Ue&32767,Or=Ze[gr];if(nr[vr]=Or,Ze[gr]=vr,er<=Ue){var Nr=Te-Ue;if((We>7e3||mr>24576)&&Nr>423){Ie=wblk(Be,xe,0,Ar,Oe,Je,or,mr,ir,Ue-ir,Ie),mr=We=or=0,ir=Ue;for(var Hr=0;Hr<286;++Hr)Oe[Hr]=0;for(var Hr=0;Hr<30;++Hr)Je[Hr]=0}var Dr=2,kr=0,qr=ze,An=vr-Or&32767;if(Nr>2&&gr==Ye(Ue-An))for(var lr=Math.min(Re,Nr)-1,Tr=Math.min(32767,Ue),xr=Math.min(258,Nr);An<=Tr&&--qr&&vr!=Or;){if(Be[Ue+Dr]==Be[Ue+Dr-An]){for(var $r=0;$r<xr&&Be[Ue+$r]==Be[Ue+$r-An];++$r);if($r>Dr){if(Dr=$r,kr=An,$r>lr)break;for(var Qr=Math.min(An,$r-2),Jr=0,Hr=0;Hr<Qr;++Hr){var nn=Ue-An+Hr+32768&32767,en=nr[nn],Bn=nn-en+32768&32767;Bn>Jr&&(Jr=Bn,Or=nn)}}}vr=Or,Or=nr[vr],An+=vr-Or+32768&32767}if(kr){Ar[mr++]=268435456|revfl[Dr]<<18|revfd[kr];var Sn=revfl[Dr]&31,Un=revfd[kr]&31;or+=fleb[Sn]+fdeb[Un],++Oe[257+Sn],++Je[Un],er=Ue+Dr,++We}else Ar[mr++]=Be[Ue],++Oe[Be[Ue]]}}Ie=wblk(Be,xe,_e,Ar,Oe,Je,or,mr,ir,Ue-ir,Ie),_e||(Ie=wfblk(xe,Ie,et$1))}return slc(Se,0,Ee+shft(Ie)+Ce)},adler=function(){var Be=1,St=0;return{p:function(Ae){for(var Ee=Be,Ce=St,_e=Ae.length,Te=0;Te!=_e;){for(var Se=Math.min(Te+5552,_e);Te<Se;++Te)Ee+=Ae[Te],Ce+=Ee;Ee%=65521,Ce%=65521}Be=Ee,St=Ce},d:function(){return(Be>>>8<<16|(St&255)<<8|St>>>8)+((Be&255)<<23)*2}}},dopt=function(Be,St,Ae,Ee,Ce){return dflt(Be,St.level==null?6:St.level,St.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(Be.length)))*1.5):12+St.mem,Ae,Ee,!Ce)},wbytes=function(Be,St,Ae){for(;Ae;++St)Be[St]=Ae,Ae>>>=8},zlh=function(Be,St){var Ae=St.level,Ee=Ae==0?0:Ae<6?1:Ae==9?3:2;Be[0]=120,Be[1]=Ee<<6|(Ee?32-2*Ee:1)},zlv=function(Be){if((Be[0]&15)!=8||Be[0]>>>4>7||(Be[0]<<8|Be[1])%31)throw"invalid zlib data";if(Be[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function zlibSync(Be,St){St===void 0&&(St={});var Ae=adler();Ae.p(Be);var Ee=dopt(Be,St,2,4);return zlh(Ee,St),wbytes(Ee,Ee.length-4,Ae.d()),Ee}function unzlibSync(Be,St){return inflt((zlv(Be),Be.subarray(2,-4)),St)}/** @license
 *
 * jsPDF - PDF Document creation from JavaScript
 * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
 *                      CommitID 00000000
 *
 * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
 *               2015-2021 yWorks GmbH, http://www.yworks.com
 *               2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
 *               2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
 *               2010 Aaron Spike, https://github.com/acspike
 *               2012 Willow Systems Corporation, https://github.com/willowsystems
 *               2012 Pablo Hess, https://github.com/pablohess
 *               2012 Florian Jenett, https://github.com/fjenett
 *               2013 Warren Weckesser, https://github.com/warrenweckesser
 *               2013 Youssef Beddad, https://github.com/lifof
 *               2013 Lee Driscoll, https://github.com/lsdriscoll
 *               2013 Stefan Slonevskiy, https://github.com/stefslon
 *               2013 Jeremy Morel, https://github.com/jmorel
 *               2013 Christoph Hartmann, https://github.com/chris-rock
 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
 *               2014 James Makes, https://github.com/dollaruw
 *               2014 Diego Casorran, https://github.com/diegocr
 *               2014 Steven Spungin, https://github.com/Flamenco
 *               2014 Kenneth Glassey, https://github.com/Gavvers
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * Contributor(s):
 *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
 *    kim3er, mfo, alnorth, Flamenco
 */var n$1=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function i$5(){n$1.console&&typeof n$1.console.log=="function"&&n$1.console.log.apply(n$1.console,arguments)}var a$2={log:i$5,warn:function(Be){n$1.console&&(typeof n$1.console.warn=="function"?n$1.console.warn.apply(n$1.console,arguments):i$5.call(null,arguments))},error:function(Be){n$1.console&&(typeof n$1.console.error=="function"?n$1.console.error.apply(n$1.console,arguments):i$5(Be))}};function o$1(Be,St,Ae){var Ee=new XMLHttpRequest;Ee.open("GET",Be),Ee.responseType="blob",Ee.onload=function(){l$1(Ee.response,St,Ae)},Ee.onerror=function(){a$2.error("could not download file")},Ee.send()}function s$1(Be){var St=new XMLHttpRequest;St.open("HEAD",Be,!1);try{St.send()}catch{}return St.status>=200&&St.status<=299}function c$2(Be){try{Be.dispatchEvent(new MouseEvent("click"))}catch{var St=document.createEvent("MouseEvents");St.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Be.dispatchEvent(St)}}var u$2,h$1,l$1=n$1.saveAs||((typeof window>"u"?"undefined":_typeof$3(window))!=="object"||window!==n$1?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(Be,St,Ae){var Ee=n$1.URL||n$1.webkitURL,Ce=document.createElement("a");St=St||Be.name||"download",Ce.download=St,Ce.rel="noopener",typeof Be=="string"?(Ce.href=Be,Ce.origin!==location.origin?s$1(Ce.href)?o$1(Be,St,Ae):c$2(Ce,Ce.target="_blank"):c$2(Ce)):(Ce.href=Ee.createObjectURL(Be),setTimeout(function(){Ee.revokeObjectURL(Ce.href)},4e4),setTimeout(function(){c$2(Ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Be,St,Ae){if(St=St||Be.name||"download",typeof Be=="string")if(s$1(Be))o$1(Be,St,Ae);else{var Ee=document.createElement("a");Ee.href=Be,Ee.target="_blank",setTimeout(function(){c$2(Ee)})}else navigator.msSaveOrOpenBlob(function(Ce,_e){return _e===void 0?_e={autoBom:!1}:_typeof$3(_e)!=="object"&&(a$2.warn("Deprecated: Expected third argument to be a object"),_e={autoBom:!_e}),_e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ce.type)?new Blob([String.fromCharCode(65279),Ce],{type:Ce.type}):Ce}(Be,Ae),St)}:function(Be,St,Ae,Ee){if((Ee=Ee||open("","_blank"))&&(Ee.document.title=Ee.document.body.innerText="downloading..."),typeof Be=="string")return o$1(Be,St,Ae);var Ce=Be.type==="application/octet-stream",_e=/constructor/i.test(n$1.HTMLElement)||n$1.safari,Te=/CriOS\/[\d]+/.test(navigator.userAgent);if((Te||Ce&&_e)&&(typeof FileReader>"u"?"undefined":_typeof$3(FileReader))==="object"){var Se=new FileReader;Se.onloadend=function(){var Ue=Se.result;Ue=Te?Ue:Ue.replace(/^data:[^;]*;/,"data:attachment/file;"),Ee?Ee.location.href=Ue:location=Ue,Ee=null},Se.readAsDataURL(Be)}else{var xe=n$1.URL||n$1.webkitURL,Ie=xe.createObjectURL(Be);Ee?Ee.location=Ie:location.href=Ie,Ee=null,setTimeout(function(){xe.revokeObjectURL(Ie)},4e4)}});/**
 * 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 f$2(Be){var St;Be=Be||"",this.ok=!1,Be.charAt(0)=="#"&&(Be=Be.substr(1,6)),Be={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"}[Be=(Be=Be.replace(/ /g,"")).toLowerCase()]||Be;for(var Ae=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Se){return[parseInt(Se[1]),parseInt(Se[2]),parseInt(Se[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Se){return[parseInt(Se[1],16),parseInt(Se[2],16),parseInt(Se[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Se){return[parseInt(Se[1]+Se[1],16),parseInt(Se[2]+Se[2],16),parseInt(Se[3]+Se[3],16)]}}],Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee].re,_e=Ae[Ee].process,Te=Ce.exec(Be);Te&&(St=_e(Te),this.r=St[0],this.g=St[1],this.b=St[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 Se=this.r.toString(16),xe=this.g.toString(16),Ie=this.b.toString(16);return Se.length==1&&(Se="0"+Se),xe.length==1&&(xe="0"+xe),Ie.length==1&&(Ie="0"+Ie),"#"+Se+xe+Ie}}/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function d(Be,St){var Ae=Be[0],Ee=Be[1],Ce=Be[2],_e=Be[3];Ae=g(Ae,Ee,Ce,_e,St[0],7,-680876936),_e=g(_e,Ae,Ee,Ce,St[1],12,-389564586),Ce=g(Ce,_e,Ae,Ee,St[2],17,606105819),Ee=g(Ee,Ce,_e,Ae,St[3],22,-1044525330),Ae=g(Ae,Ee,Ce,_e,St[4],7,-176418897),_e=g(_e,Ae,Ee,Ce,St[5],12,1200080426),Ce=g(Ce,_e,Ae,Ee,St[6],17,-1473231341),Ee=g(Ee,Ce,_e,Ae,St[7],22,-45705983),Ae=g(Ae,Ee,Ce,_e,St[8],7,1770035416),_e=g(_e,Ae,Ee,Ce,St[9],12,-1958414417),Ce=g(Ce,_e,Ae,Ee,St[10],17,-42063),Ee=g(Ee,Ce,_e,Ae,St[11],22,-1990404162),Ae=g(Ae,Ee,Ce,_e,St[12],7,1804603682),_e=g(_e,Ae,Ee,Ce,St[13],12,-40341101),Ce=g(Ce,_e,Ae,Ee,St[14],17,-1502002290),Ae=m$2(Ae,Ee=g(Ee,Ce,_e,Ae,St[15],22,1236535329),Ce,_e,St[1],5,-165796510),_e=m$2(_e,Ae,Ee,Ce,St[6],9,-1069501632),Ce=m$2(Ce,_e,Ae,Ee,St[11],14,643717713),Ee=m$2(Ee,Ce,_e,Ae,St[0],20,-373897302),Ae=m$2(Ae,Ee,Ce,_e,St[5],5,-701558691),_e=m$2(_e,Ae,Ee,Ce,St[10],9,38016083),Ce=m$2(Ce,_e,Ae,Ee,St[15],14,-660478335),Ee=m$2(Ee,Ce,_e,Ae,St[4],20,-405537848),Ae=m$2(Ae,Ee,Ce,_e,St[9],5,568446438),_e=m$2(_e,Ae,Ee,Ce,St[14],9,-1019803690),Ce=m$2(Ce,_e,Ae,Ee,St[3],14,-187363961),Ee=m$2(Ee,Ce,_e,Ae,St[8],20,1163531501),Ae=m$2(Ae,Ee,Ce,_e,St[13],5,-1444681467),_e=m$2(_e,Ae,Ee,Ce,St[2],9,-51403784),Ce=m$2(Ce,_e,Ae,Ee,St[7],14,1735328473),Ae=v$1(Ae,Ee=m$2(Ee,Ce,_e,Ae,St[12],20,-1926607734),Ce,_e,St[5],4,-378558),_e=v$1(_e,Ae,Ee,Ce,St[8],11,-2022574463),Ce=v$1(Ce,_e,Ae,Ee,St[11],16,1839030562),Ee=v$1(Ee,Ce,_e,Ae,St[14],23,-35309556),Ae=v$1(Ae,Ee,Ce,_e,St[1],4,-1530992060),_e=v$1(_e,Ae,Ee,Ce,St[4],11,1272893353),Ce=v$1(Ce,_e,Ae,Ee,St[7],16,-155497632),Ee=v$1(Ee,Ce,_e,Ae,St[10],23,-1094730640),Ae=v$1(Ae,Ee,Ce,_e,St[13],4,681279174),_e=v$1(_e,Ae,Ee,Ce,St[0],11,-358537222),Ce=v$1(Ce,_e,Ae,Ee,St[3],16,-722521979),Ee=v$1(Ee,Ce,_e,Ae,St[6],23,76029189),Ae=v$1(Ae,Ee,Ce,_e,St[9],4,-640364487),_e=v$1(_e,Ae,Ee,Ce,St[12],11,-421815835),Ce=v$1(Ce,_e,Ae,Ee,St[15],16,530742520),Ae=b(Ae,Ee=v$1(Ee,Ce,_e,Ae,St[2],23,-995338651),Ce,_e,St[0],6,-198630844),_e=b(_e,Ae,Ee,Ce,St[7],10,1126891415),Ce=b(Ce,_e,Ae,Ee,St[14],15,-1416354905),Ee=b(Ee,Ce,_e,Ae,St[5],21,-57434055),Ae=b(Ae,Ee,Ce,_e,St[12],6,1700485571),_e=b(_e,Ae,Ee,Ce,St[3],10,-1894986606),Ce=b(Ce,_e,Ae,Ee,St[10],15,-1051523),Ee=b(Ee,Ce,_e,Ae,St[1],21,-2054922799),Ae=b(Ae,Ee,Ce,_e,St[8],6,1873313359),_e=b(_e,Ae,Ee,Ce,St[15],10,-30611744),Ce=b(Ce,_e,Ae,Ee,St[6],15,-1560198380),Ee=b(Ee,Ce,_e,Ae,St[13],21,1309151649),Ae=b(Ae,Ee,Ce,_e,St[4],6,-145523070),_e=b(_e,Ae,Ee,Ce,St[11],10,-1120210379),Ce=b(Ce,_e,Ae,Ee,St[2],15,718787259),Ee=b(Ee,Ce,_e,Ae,St[9],21,-343485551),Be[0]=_$2(Ae,Be[0]),Be[1]=_$2(Ee,Be[1]),Be[2]=_$2(Ce,Be[2]),Be[3]=_$2(_e,Be[3])}function p$1(Be,St,Ae,Ee,Ce,_e){return St=_$2(_$2(St,Be),_$2(Ee,_e)),_$2(St<<Ce|St>>>32-Ce,Ae)}function g(Be,St,Ae,Ee,Ce,_e,Te){return p$1(St&Ae|~St&Ee,Be,St,Ce,_e,Te)}function m$2(Be,St,Ae,Ee,Ce,_e,Te){return p$1(St&Ee|Ae&~Ee,Be,St,Ce,_e,Te)}function v$1(Be,St,Ae,Ee,Ce,_e,Te){return p$1(St^Ae^Ee,Be,St,Ce,_e,Te)}function b(Be,St,Ae,Ee,Ce,_e,Te){return p$1(Ae^(St|~Ee),Be,St,Ce,_e,Te)}function y$1(Be){var St,Ae=Be.length,Ee=[1732584193,-271733879,-1732584194,271733878];for(St=64;St<=Be.length;St+=64)d(Ee,w(Be.substring(St-64,St)));Be=Be.substring(St-64);var Ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(St=0;St<Be.length;St++)Ce[St>>2]|=Be.charCodeAt(St)<<(St%4<<3);if(Ce[St>>2]|=128<<(St%4<<3),St>55)for(d(Ee,Ce),St=0;St<16;St++)Ce[St]=0;return Ce[14]=8*Ae,d(Ee,Ce),Ee}function w(Be){var St,Ae=[];for(St=0;St<64;St+=4)Ae[St>>2]=Be.charCodeAt(St)+(Be.charCodeAt(St+1)<<8)+(Be.charCodeAt(St+2)<<16)+(Be.charCodeAt(St+3)<<24);return Ae}u$2=n$1.atob.bind(n$1),h$1=n$1.btoa.bind(n$1);var N$1="0123456789abcdef".split("");function L$1(Be){for(var St="",Ae=0;Ae<4;Ae++)St+=N$1[Be>>8*Ae+4&15]+N$1[Be>>8*Ae&15];return St}function A$1(Be){return String.fromCharCode((255&Be)>>0,(65280&Be)>>8,(16711680&Be)>>16,(4278190080&Be)>>24)}function x(Be){return y$1(Be).map(A$1).join("")}var S=function(Be){for(var St=0;St<Be.length;St++)Be[St]=L$1(Be[St]);return Be.join("")}(y$1("hello"))!="5d41402abc4b2a76b9719d911017c592";function _$2(Be,St){if(S){var Ae=(65535&Be)+(65535&St);return(Be>>16)+(St>>16)+(Ae>>16)<<16|65535&Ae}return Be+St&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function P(Be,St){var Ae,Ee,Ce,_e;if(Be!==Ae){for(var Te=(Ce=Be,_e=1+(256/Be.length>>0),new Array(_e+1).join(Ce)),Se=[],xe=0;xe<256;xe++)Se[xe]=xe;var Ie=0;for(xe=0;xe<256;xe++){var Ue=Se[xe];Ie=(Ie+Ue+Te.charCodeAt(xe))%256,Se[xe]=Se[Ie],Se[Ie]=Ue}Ae=Be,Ee=Se}else Se=Ee;var $e=St.length,Me=0,Re=0,ze="";for(xe=0;xe<$e;xe++)Re=(Re+(Ue=Se[Me=(Me+1)%256]))%256,Se[Me]=Se[Re],Se[Re]=Ue,Te=Se[(Se[Me]+Se[Re])%256],ze+=String.fromCharCode(St.charCodeAt(xe)^Te);return ze}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var k={print:4,modify:8,copy:16,"annot-forms":32};function I(Be,St,Ae,Ee){this.v=1,this.r=2;var Ce=192;Be.forEach(function(Se){if(k.perm!==void 0)throw new Error("Invalid permission: "+Se);Ce+=k[Se]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var _e=(St+this.padding).substr(0,32),Te=(Ae+this.padding).substr(0,32);this.O=this.processOwnerPassword(_e,Te),this.P=-(1+(255^Ce)),this.encryptionKey=x(_e+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ee)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function F$1(Be){if(/[^\u0000-\u00ff]/.test(Be))throw new Error("Invalid PDF Name Object: "+Be+", Only accept ASCII characters.");for(var St="",Ae=Be.length,Ee=0;Ee<Ae;Ee++){var Ce=Be.charCodeAt(Ee);Ce<33||Ce===35||Ce===37||Ce===40||Ce===41||Ce===47||Ce===60||Ce===62||Ce===91||Ce===93||Ce===123||Ce===125||Ce>126?St+="#"+("0"+Ce.toString(16)).slice(-2):St+=Be[Ee]}return St}function C(Be){if(_typeof$3(Be)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var St={};this.subscribe=function(Ae,Ee,Ce){if(Ce=Ce||!1,typeof Ae!="string"||typeof Ee!="function"||typeof Ce!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");St.hasOwnProperty(Ae)||(St[Ae]={});var _e=Math.random().toString(35);return St[Ae][_e]=[Ee,!!Ce],_e},this.unsubscribe=function(Ae){for(var Ee in St)if(St[Ee][Ae])return delete St[Ee][Ae],Object.keys(St[Ee]).length===0&&delete St[Ee],!0;return!1},this.publish=function(Ae){if(St.hasOwnProperty(Ae)){var Ee=Array.prototype.slice.call(arguments,1),Ce=[];for(var _e in St[Ae]){var Te=St[Ae][_e];try{Te[0].apply(Be,Ee)}catch(Se){n$1.console&&a$2.error("jsPDF PubSub Error",Se.message,Se)}Te[1]&&Ce.push(_e)}Ce.length&&Ce.forEach(this.unsubscribe)}},this.getTopics=function(){return St}}function j(Be){if(!(this instanceof j))return new j(Be);var St="opacity,stroke-opacity".split(",");for(var Ae in Be)Be.hasOwnProperty(Ae)&&St.indexOf(Ae)>=0&&(this[Ae]=Be[Ae]);this.id="",this.objectNumber=-1}function O$1(Be,St){this.gState=Be,this.matrix=St,this.id="",this.objectNumber=-1}function B(Be,St,Ae,Ee,Ce){if(!(this instanceof B))return new B(Be,St,Ae,Ee,Ce);this.type=Be==="axial"?2:3,this.coords=St,this.colors=Ae,O$1.call(this,Ee,Ce)}function M(Be,St,Ae,Ee,Ce){if(!(this instanceof M))return new M(Be,St,Ae,Ee,Ce);this.boundingBox=Be,this.xStep=St,this.yStep=Ae,this.stream="",this.cloneIndex=0,O$1.call(this,Ee,Ce)}function E$1(Be){var St,Ae=typeof arguments[0]=="string"?arguments[0]:"p",Ee=arguments[1],Ce=arguments[2],_e=arguments[3],Te=[],Se=1,xe=16,Ie="S",Ue=null;_typeof$3(Be=Be||{})==="object"&&(Ae=Be.orientation,Ee=Be.unit||Ee,Ce=Be.format||Ce,_e=Be.compress||Be.compressPdf||_e,(Ue=Be.encryption||null)!==null&&(Ue.userPassword=Ue.userPassword||"",Ue.ownerPassword=Ue.ownerPassword||"",Ue.userPermissions=Ue.userPermissions||[]),Se=typeof Be.userUnit=="number"?Math.abs(Be.userUnit):1,Be.precision!==void 0&&(St=Be.precision),Be.floatPrecision!==void 0&&(xe=Be.floatPrecision),Ie=Be.defaultPathOperation||"S"),Te=Be.filters||(_e===!0?["FlateEncode"]:Te),Ee=Ee||"mm",Ae=(""+(Ae||"P")).toLowerCase();var $e=Be.putOnlyUsedFonts||!1,Me={},Re={internal:{},__private__:{}};Re.__private__.PubSub=C;var ze="1.3",Ve=Re.__private__.getPdfVersion=function(){return ze};Re.__private__.setPdfVersion=function(He){ze=He};var nr={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};Re.__private__.getPageFormats=function(){return nr};var Ze=Re.__private__.getPageFormat=function(He){return nr[He]};Ce=Ce||"a4";var ar={COMPAT:"compat",ADVANCED:"advanced"},fr=ar.COMPAT;function Ye(){this.saveGraphicsState(),Sr(new Mn(Qn,0,0,-Qn,0,bi()*Qn).toString()+" cm"),this.setFontSize(this.getFontSize()/Qn),Ie="n",fr=ar.ADVANCED}function Ar(){this.restoreGraphicsState(),Ie="S",fr=ar.COMPAT}var Oe=Re.__private__.combineFontStyleAndFontWeight=function(He,hr){if(He=="bold"&&hr=="normal"||He=="bold"&&hr==400||He=="normal"&&hr=="italic"||He=="bold"&&hr=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return hr&&(He=hr==400||hr==="normal"?He==="italic"?"italic":"normal":hr!=700&&hr!=="bold"||He!=="normal"?(hr==700?"bold":hr)+""+He:"bold"),He};Re.advancedAPI=function(He){var hr=fr===ar.COMPAT;return hr&&Ye.call(this),typeof He!="function"||(He(this),hr&&Ar.call(this)),this},Re.compatAPI=function(He){var hr=fr===ar.ADVANCED;return hr&&Ar.call(this),typeof He!="function"||(He(this),hr&&Ye.call(this)),this},Re.isAdvancedAPI=function(){return fr===ar.ADVANCED};var Je,We=function(He){if(fr!==ar.ADVANCED)throw new Error(He+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},or=Re.roundToPrecision=Re.__private__.roundToPrecision=function(He,hr){var Fr=St||hr;if(isNaN(He)||isNaN(Fr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return He.toFixed(Fr).replace(/0+$/,"")};Je=Re.hpf=Re.__private__.hpf=typeof xe=="number"?function(He){if(isNaN(He))throw new Error("Invalid argument passed to jsPDF.hpf");return or(He,xe)}:xe==="smart"?function(He){if(isNaN(He))throw new Error("Invalid argument passed to jsPDF.hpf");return or(He,He>-1&&He<1?16:5)}:function(He){if(isNaN(He))throw new Error("Invalid argument passed to jsPDF.hpf");return or(He,16)};var mr=Re.f2=Re.__private__.f2=function(He){if(isNaN(He))throw new Error("Invalid argument passed to jsPDF.f2");return or(He,2)},er=Re.__private__.f3=function(He){if(isNaN(He))throw new Error("Invalid argument passed to jsPDF.f3");return or(He,3)},ir=Re.scale=Re.__private__.scale=function(He){if(isNaN(He))throw new Error("Invalid argument passed to jsPDF.scale");return fr===ar.COMPAT?He*Qn:fr===ar.ADVANCED?He:void 0},gr=function(He){return fr===ar.COMPAT?bi()-He:fr===ar.ADVANCED?He:void 0},vr=function(He){return ir(gr(He))};Re.__private__.setPrecision=Re.setPrecision=function(He){typeof parseInt(He,10)=="number"&&(St=parseInt(He,10))};var Or,Nr="00000000000000000000000000000000",Hr=Re.__private__.getFileId=function(){return Nr},Dr=Re.__private__.setFileId=function(He){return Nr=He!==void 0&&/^[a-fA-F0-9]{32}$/.test(He)?He.toUpperCase():Nr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Ue!==null&&(vA=new I(Ue.userPermissions,Ue.userPassword,Ue.ownerPassword,Nr)),Nr};Re.setFileId=function(He){return Dr(He),this},Re.getFileId=function(){return Hr()};var kr=Re.__private__.convertDateToPDFDate=function(He){var hr=He.getTimezoneOffset(),Fr=hr<0?"+":"-",Mr=Math.floor(Math.abs(hr/60)),rn=Math.abs(hr%60),hn=[Fr,xr(Mr),"'",xr(rn),"'"].join("");return["D:",He.getFullYear(),xr(He.getMonth()+1),xr(He.getDate()),xr(He.getHours()),xr(He.getMinutes()),xr(He.getSeconds()),hn].join("")},qr=Re.__private__.convertPDFDateToDate=function(He){var hr=parseInt(He.substr(2,4),10),Fr=parseInt(He.substr(6,2),10)-1,Mr=parseInt(He.substr(8,2),10),rn=parseInt(He.substr(10,2),10),hn=parseInt(He.substr(12,2),10),In=parseInt(He.substr(14,2),10);return new Date(hr,Fr,Mr,rn,hn,In,0)},An=Re.__private__.setCreationDate=function(He){var hr;if(He===void 0&&(He=new Date),He instanceof Date)hr=kr(He);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(He))throw new Error("Invalid argument passed to jsPDF.setCreationDate");hr=He}return Or=hr},lr=Re.__private__.getCreationDate=function(He){var hr=Or;return He==="jsDate"&&(hr=qr(Or)),hr};Re.setCreationDate=function(He){return An(He),this},Re.getCreationDate=function(He){return lr(He)};var Tr,xr=Re.__private__.padd2=function(He){return("0"+parseInt(He)).slice(-2)},$r=Re.__private__.padd2Hex=function(He){return("00"+(He=He.toString())).substr(He.length)},Qr=0,Jr=[],nn=[],en=0,Bn=[],Sn=[],Un=!1,On=nn,zn=function(){Qr=0,en=0,nn=[],Jr=[],Bn=[],fA=Ki(),qi=Ki()};Re.__private__.setCustomOutputDestination=function(He){Un=!0,On=He};var fn=function(He){Un||(On=He)};Re.__private__.resetCustomOutputDestination=function(){Un=!1,On=nn};var Sr=Re.__private__.out=function(He){return He=He.toString(),en+=He.length+1,On.push(He),On},Yn=Re.__private__.write=function(He){return Sr(arguments.length===1?He.toString():Array.prototype.join.call(arguments," "))},Wn=Re.__private__.getArrayBuffer=function(He){for(var hr=He.length,Fr=new ArrayBuffer(hr),Mr=new Uint8Array(Fr);hr--;)Mr[hr]=He.charCodeAt(hr);return Fr},Tn=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Re.__private__.getStandardFonts=function(){return Tn};var $n=Be.fontSize||16;Re.__private__.setFontSize=Re.setFontSize=function(He){return $n=fr===ar.ADVANCED?He/Qn:He,this};var Dn,Rn=Re.__private__.getFontSize=Re.getFontSize=function(){return fr===ar.COMPAT?$n:$n*Qn},Gn=Be.R2L||!1;Re.__private__.setR2L=Re.setR2L=function(He){return Gn=He,this},Re.__private__.getR2L=Re.getR2L=function(){return Gn};var Kn,ti=Re.__private__.setZoomMode=function(He){var hr=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(He))Dn=He;else if(isNaN(He)){if(hr.indexOf(He)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+He+'" is not recognized.');Dn=He}else Dn=parseInt(He,10)};Re.__private__.getZoomMode=function(){return Dn};var Ai,yi=Re.__private__.setPageMode=function(He){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(He)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+He+'" is not recognized.');Kn=He};Re.__private__.getPageMode=function(){return Kn};var Bi=Re.__private__.setLayoutMode=function(He){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(He)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+He+'" is not recognized.');Ai=He};Re.__private__.getLayoutMode=function(){return Ai},Re.__private__.setDisplayMode=Re.setDisplayMode=function(He,hr,Fr){return ti(He),Bi(hr),yi(Fr),this};var ei={title:"",subject:"",author:"",keywords:"",creator:""};Re.__private__.getDocumentProperty=function(He){if(Object.keys(ei).indexOf(He)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ei[He]},Re.__private__.getDocumentProperties=function(){return ei},Re.__private__.setDocumentProperties=Re.setProperties=Re.setDocumentProperties=function(He){for(var hr in ei)ei.hasOwnProperty(hr)&&He[hr]&&(ei[hr]=He[hr]);return this},Re.__private__.setDocumentProperty=function(He,hr){if(Object.keys(ei).indexOf(He)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ei[He]=hr};var ci,Qn,Ii,gi,br,Ke={},je={},sr=[],dr={},Pr={},jr={},wn={},pn=null,Pn=0,Xe=[],ke=new C(Re),Wr=Be.hotfixes||[],bn={},Jn={},pi=[],Mn=function He(hr,Fr,Mr,rn,hn,In){if(!(this instanceof He))return new He(hr,Fr,Mr,rn,hn,In);isNaN(hr)&&(hr=1),isNaN(Fr)&&(Fr=0),isNaN(Mr)&&(Mr=0),isNaN(rn)&&(rn=1),isNaN(hn)&&(hn=0),isNaN(In)&&(In=0),this._matrix=[hr,Fr,Mr,rn,hn,In]};Object.defineProperty(Mn.prototype,"sx",{get:function(){return this._matrix[0]},set:function(He){this._matrix[0]=He}}),Object.defineProperty(Mn.prototype,"shy",{get:function(){return this._matrix[1]},set:function(He){this._matrix[1]=He}}),Object.defineProperty(Mn.prototype,"shx",{get:function(){return this._matrix[2]},set:function(He){this._matrix[2]=He}}),Object.defineProperty(Mn.prototype,"sy",{get:function(){return this._matrix[3]},set:function(He){this._matrix[3]=He}}),Object.defineProperty(Mn.prototype,"tx",{get:function(){return this._matrix[4]},set:function(He){this._matrix[4]=He}}),Object.defineProperty(Mn.prototype,"ty",{get:function(){return this._matrix[5]},set:function(He){this._matrix[5]=He}}),Object.defineProperty(Mn.prototype,"a",{get:function(){return this._matrix[0]},set:function(He){this._matrix[0]=He}}),Object.defineProperty(Mn.prototype,"b",{get:function(){return this._matrix[1]},set:function(He){this._matrix[1]=He}}),Object.defineProperty(Mn.prototype,"c",{get:function(){return this._matrix[2]},set:function(He){this._matrix[2]=He}}),Object.defineProperty(Mn.prototype,"d",{get:function(){return this._matrix[3]},set:function(He){this._matrix[3]=He}}),Object.defineProperty(Mn.prototype,"e",{get:function(){return this._matrix[4]},set:function(He){this._matrix[4]=He}}),Object.defineProperty(Mn.prototype,"f",{get:function(){return this._matrix[5]},set:function(He){this._matrix[5]=He}}),Object.defineProperty(Mn.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Mn.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Mn.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Mn.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Mn.prototype.join=function(He){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Je).join(He)},Mn.prototype.multiply=function(He){var hr=He.sx*this.sx+He.shy*this.shx,Fr=He.sx*this.shy+He.shy*this.sy,Mr=He.shx*this.sx+He.sy*this.shx,rn=He.shx*this.shy+He.sy*this.sy,hn=He.tx*this.sx+He.ty*this.shx+this.tx,In=He.tx*this.shy+He.ty*this.sy+this.ty;return new Mn(hr,Fr,Mr,rn,hn,In)},Mn.prototype.decompose=function(){var He=this.sx,hr=this.shy,Fr=this.shx,Mr=this.sy,rn=this.tx,hn=this.ty,In=Math.sqrt(He*He+hr*hr),kn=(He/=In)*Fr+(hr/=In)*Mr;Fr-=He*kn,Mr-=hr*kn;var ni=Math.sqrt(Fr*Fr+Mr*Mr);return kn/=ni,He*(Mr/=ni)<hr*(Fr/=ni)&&(He=-He,hr=-hr,kn=-kn,In=-In),{scale:new Mn(In,0,0,ni,0,0),translate:new Mn(1,0,0,1,rn,hn),rotate:new Mn(He,hr,-hr,He,0,0),skew:new Mn(1,0,kn,1,0,0)}},Mn.prototype.toString=function(He){return this.join(" ")},Mn.prototype.inversed=function(){var He=this.sx,hr=this.shy,Fr=this.shx,Mr=this.sy,rn=this.tx,hn=this.ty,In=1/(He*Mr-hr*Fr),kn=Mr*In,ni=-hr*In,wi=-Fr*In,vi=He*In;return new Mn(kn,ni,wi,vi,-kn*rn-wi*hn,-ni*rn-vi*hn)},Mn.prototype.applyToPoint=function(He){var hr=He.x*this.sx+He.y*this.shx+this.tx,Fr=He.x*this.shy+He.y*this.sy+this.ty;return new di(hr,Fr)},Mn.prototype.applyToRectangle=function(He){var hr=this.applyToPoint(He),Fr=this.applyToPoint(new di(He.x+He.w,He.y+He.h));return new ri(hr.x,hr.y,Fr.x-hr.x,Fr.y-hr.y)},Mn.prototype.clone=function(){var He=this.sx,hr=this.shy,Fr=this.shx,Mr=this.sy,rn=this.tx,hn=this.ty;return new Mn(He,hr,Fr,Mr,rn,hn)},Re.Matrix=Mn;var Ti=Re.matrixMult=function(He,hr){return hr.multiply(He)},Oi=new Mn(1,0,0,1,0,0);Re.unitMatrix=Re.identityMatrix=Oi;var Ni=function(He,hr){if(!Pr[He]){var Fr=(hr instanceof B?"Sh":"P")+(Object.keys(dr).length+1).toString(10);hr.id=Fr,Pr[He]=Fr,dr[Fr]=hr,ke.publish("addPattern",hr)}};Re.ShadingPattern=B,Re.TilingPattern=M,Re.addShadingPattern=function(He,hr){return We("addShadingPattern()"),Ni(He,hr),this},Re.beginTilingPattern=function(He){We("beginTilingPattern()"),Yi(He.boundingBox[0],He.boundingBox[1],He.boundingBox[2]-He.boundingBox[0],He.boundingBox[3]-He.boundingBox[1],He.matrix)},Re.endTilingPattern=function(He,hr){We("endTilingPattern()"),hr.stream=Sn[Tr].join(`
`),Ni(He,hr),ke.publish("endTilingPattern",hr),pi.pop().restore()};var Hi=Re.__private__.newObject=function(){var He=Ki();return Zi(He,!0),He},Ki=Re.__private__.newObjectDeferred=function(){return Qr++,Jr[Qr]=function(){return en},Qr},Zi=function(He,hr){return hr=typeof hr=="boolean"&&hr,Jr[He]=en,hr&&Sr(He+" 0 obj"),He},oo=Re.__private__.newAdditionalObject=function(){var He={objId:Ki(),content:""};return Bn.push(He),He},fA=Ki(),qi=Ki(),wA=Re.__private__.decodeColorString=function(He){var hr=He.split(" ");if(hr.length!==2||hr[1]!=="g"&&hr[1]!=="G")hr.length===5&&(hr[4]==="k"||hr[4]==="K")&&(hr=[(1-hr[0])*(1-hr[3]),(1-hr[1])*(1-hr[3]),(1-hr[2])*(1-hr[3]),"r"]);else{var Fr=parseFloat(hr[0]);hr=[Fr,Fr,Fr,"r"]}for(var Mr="#",rn=0;rn<3;rn++)Mr+=("0"+Math.floor(255*parseFloat(hr[rn])).toString(16)).slice(-2);return Mr},TA=Re.__private__.encodeColorString=function(He){var hr;typeof He=="string"&&(He={ch1:He});var Fr=He.ch1,Mr=He.ch2,rn=He.ch3,hn=He.ch4,In=He.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Fr=="string"&&Fr.charAt(0)!=="#"){var kn=new f$2(Fr);if(kn.ok)Fr=kn.toHex();else if(!/^\d*\.?\d*$/.test(Fr))throw new Error('Invalid color "'+Fr+'" passed to jsPDF.encodeColorString.')}if(typeof Fr=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Fr)&&(Fr="#"+Fr[1]+Fr[1]+Fr[2]+Fr[2]+Fr[3]+Fr[3]),typeof Fr=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Fr)){var ni=parseInt(Fr.substr(1),16);Fr=ni>>16&255,Mr=ni>>8&255,rn=255&ni}if(Mr===void 0||hn===void 0&&Fr===Mr&&Mr===rn)if(typeof Fr=="string")hr=Fr+" "+In[0];else switch(He.precision){case 2:hr=mr(Fr/255)+" "+In[0];break;case 3:default:hr=er(Fr/255)+" "+In[0]}else if(hn===void 0||_typeof$3(hn)==="object"){if(hn&&!isNaN(hn.a)&&hn.a===0)return hr=["1.","1.","1.",In[1]].join(" ");if(typeof Fr=="string")hr=[Fr,Mr,rn,In[1]].join(" ");else switch(He.precision){case 2:hr=[mr(Fr/255),mr(Mr/255),mr(rn/255),In[1]].join(" ");break;default:case 3:hr=[er(Fr/255),er(Mr/255),er(rn/255),In[1]].join(" ")}}else if(typeof Fr=="string")hr=[Fr,Mr,rn,hn,In[2]].join(" ");else switch(He.precision){case 2:hr=[mr(Fr),mr(Mr),mr(rn),mr(hn),In[2]].join(" ");break;case 3:default:hr=[er(Fr),er(Mr),er(rn),er(hn),In[2]].join(" ")}return hr},hA=Re.__private__.getFilters=function(){return Te},gA=Re.__private__.putStream=function(He){var hr=(He=He||{}).data||"",Fr=He.filters||hA(),Mr=He.alreadyAppliedFilters||[],rn=He.addLength1||!1,hn=hr.length,In=He.objectId,kn=function(aA){return aA};if(Ue!==null&&In===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Ue!==null&&(kn=vA.encryptor(In,0));var ni={};Fr===!0&&(Fr=["FlateEncode"]);var wi=He.additionalKeyValues||[],vi=(ni=E$1.API.processDataByFilters!==void 0?E$1.API.processDataByFilters(hr,Fr):{data:hr,reverseChain:[]}).reverseChain+(Array.isArray(Mr)?Mr.join(" "):Mr.toString());if(ni.data.length!==0&&(wi.push({key:"Length",value:ni.data.length}),rn===!0&&wi.push({key:"Length1",value:hn})),vi.length!=0)if(vi.split("/").length-1==1)wi.push({key:"Filter",value:vi});else{wi.push({key:"Filter",value:"["+vi+"]"});for(var xi=0;xi<wi.length;xi+=1)if(wi[xi].key==="DecodeParms"){for(var li=[],Ri=0;Ri<ni.reverseChain.split("/").length-1;Ri+=1)li.push("null");li.push(wi[xi].value),wi[xi].value="["+li.join(" ")+"]"}}Sr("<<");for(var eA=0;eA<wi.length;eA++)Sr("/"+wi[eA].key+" "+wi[eA].value);Sr(">>"),ni.data.length!==0&&(Sr("stream"),Sr(kn(ni.data)),Sr("endstream"))},OA=Re.__private__.putPage=function(He){var hr=He.number,Fr=He.data,Mr=He.objId,rn=He.contentsObjId;Zi(Mr,!0),Sr("<</Type /Page"),Sr("/Parent "+He.rootDictionaryObjId+" 0 R"),Sr("/Resources "+He.resourceDictionaryObjId+" 0 R"),Sr("/MediaBox ["+parseFloat(Je(He.mediaBox.bottomLeftX))+" "+parseFloat(Je(He.mediaBox.bottomLeftY))+" "+Je(He.mediaBox.topRightX)+" "+Je(He.mediaBox.topRightY)+"]"),He.cropBox!==null&&Sr("/CropBox ["+Je(He.cropBox.bottomLeftX)+" "+Je(He.cropBox.bottomLeftY)+" "+Je(He.cropBox.topRightX)+" "+Je(He.cropBox.topRightY)+"]"),He.bleedBox!==null&&Sr("/BleedBox ["+Je(He.bleedBox.bottomLeftX)+" "+Je(He.bleedBox.bottomLeftY)+" "+Je(He.bleedBox.topRightX)+" "+Je(He.bleedBox.topRightY)+"]"),He.trimBox!==null&&Sr("/TrimBox ["+Je(He.trimBox.bottomLeftX)+" "+Je(He.trimBox.bottomLeftY)+" "+Je(He.trimBox.topRightX)+" "+Je(He.trimBox.topRightY)+"]"),He.artBox!==null&&Sr("/ArtBox ["+Je(He.artBox.bottomLeftX)+" "+Je(He.artBox.bottomLeftY)+" "+Je(He.artBox.topRightX)+" "+Je(He.artBox.topRightY)+"]"),typeof He.userUnit=="number"&&He.userUnit!==1&&Sr("/UserUnit "+He.userUnit),ke.publish("putPage",{objId:Mr,pageContext:Xe[hr],pageNumber:hr,page:Fr}),Sr("/Contents "+rn+" 0 R"),Sr(">>"),Sr("endobj");var hn=Fr.join(`
`);return fr===ar.ADVANCED&&(hn+=`
Q`),Zi(rn,!0),gA({data:hn,filters:hA(),objectId:rn}),Sr("endobj"),Mr},Zn=Re.__private__.putPages=function(){var He,hr,Fr=[];for(He=1;He<=Pn;He++)Xe[He].objId=Ki(),Xe[He].contentsObjId=Ki();for(He=1;He<=Pn;He++)Fr.push(OA({number:He,data:Sn[He],objId:Xe[He].objId,contentsObjId:Xe[He].contentsObjId,mediaBox:Xe[He].mediaBox,cropBox:Xe[He].cropBox,bleedBox:Xe[He].bleedBox,trimBox:Xe[He].trimBox,artBox:Xe[He].artBox,userUnit:Xe[He].userUnit,rootDictionaryObjId:fA,resourceDictionaryObjId:qi}));Zi(fA,!0),Sr("<</Type /Pages");var Mr="/Kids [";for(hr=0;hr<Pn;hr++)Mr+=Fr[hr]+" 0 R ";Sr(Mr+"]"),Sr("/Count "+Pn),Sr(">>"),Sr("endobj"),ke.publish("postPutPages")},Yr=function(He){ke.publish("putFont",{font:He,out:Sr,newObject:Hi,putStream:gA}),He.isAlreadyPutted!==!0&&(He.objectNumber=Hi(),Sr("<<"),Sr("/Type /Font"),Sr("/BaseFont /"+F$1(He.postScriptName)),Sr("/Subtype /Type1"),typeof He.encoding=="string"&&Sr("/Encoding /"+He.encoding),Sr("/FirstChar 32"),Sr("/LastChar 255"),Sr(">>"),Sr("endobj"))},Ln=function(){for(var He in Ke)Ke.hasOwnProperty(He)&&($e===!1||$e===!0&&Me.hasOwnProperty(He))&&Yr(Ke[He])},Hn=function(He){He.objectNumber=Hi();var hr=[];hr.push({key:"Type",value:"/XObject"}),hr.push({key:"Subtype",value:"/Form"}),hr.push({key:"BBox",value:"["+[Je(He.x),Je(He.y),Je(He.x+He.width),Je(He.y+He.height)].join(" ")+"]"}),hr.push({key:"Matrix",value:"["+He.matrix.toString()+"]"});var Fr=He.pages[1].join(`
`);gA({data:Fr,additionalKeyValues:hr,objectId:He.objectNumber}),Sr("endobj")},_i=function(){for(var He in bn)bn.hasOwnProperty(He)&&Hn(bn[He])},rA=function(He,hr){var Fr,Mr=[],rn=1/(hr-1);for(Fr=0;Fr<1;Fr+=rn)Mr.push(Fr);if(Mr.push(1),He[0].offset!=0){var hn={offset:0,color:He[0].color};He.unshift(hn)}if(He[He.length-1].offset!=1){var In={offset:1,color:He[He.length-1].color};He.push(In)}for(var kn="",ni=0,wi=0;wi<Mr.length;wi++){for(Fr=Mr[wi];Fr>He[ni+1].offset;)ni++;var vi=He[ni].offset,xi=(Fr-vi)/(He[ni+1].offset-vi),li=He[ni].color,Ri=He[ni+1].color;kn+=$r(Math.round((1-xi)*li[0]+xi*Ri[0]).toString(16))+$r(Math.round((1-xi)*li[1]+xi*Ri[1]).toString(16))+$r(Math.round((1-xi)*li[2]+xi*Ri[2]).toString(16))}return kn.trim()},nA=function(He,hr){hr||(hr=21);var Fr=Hi(),Mr=rA(He.colors,hr),rn=[];rn.push({key:"FunctionType",value:"0"}),rn.push({key:"Domain",value:"[0.0 1.0]"}),rn.push({key:"Size",value:"["+hr+"]"}),rn.push({key:"BitsPerSample",value:"8"}),rn.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rn.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),gA({data:Mr,additionalKeyValues:rn,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Fr}),Sr("endobj"),He.objectNumber=Hi(),Sr("<< /ShadingType "+He.type),Sr("/ColorSpace /DeviceRGB");var hn="/Coords ["+Je(parseFloat(He.coords[0]))+" "+Je(parseFloat(He.coords[1]))+" ";He.type===2?hn+=Je(parseFloat(He.coords[2]))+" "+Je(parseFloat(He.coords[3])):hn+=Je(parseFloat(He.coords[2]))+" "+Je(parseFloat(He.coords[3]))+" "+Je(parseFloat(He.coords[4]))+" "+Je(parseFloat(He.coords[5])),Sr(hn+="]"),He.matrix&&Sr("/Matrix ["+He.matrix.toString()+"]"),Sr("/Function "+Fr+" 0 R"),Sr("/Extend [true true]"),Sr(">>"),Sr("endobj")},Xi=function(He,hr){var Fr=Ki(),Mr=Hi();hr.push({resourcesOid:Fr,objectOid:Mr}),He.objectNumber=Mr;var rn=[];rn.push({key:"Type",value:"/Pattern"}),rn.push({key:"PatternType",value:"1"}),rn.push({key:"PaintType",value:"1"}),rn.push({key:"TilingType",value:"1"}),rn.push({key:"BBox",value:"["+He.boundingBox.map(Je).join(" ")+"]"}),rn.push({key:"XStep",value:Je(He.xStep)}),rn.push({key:"YStep",value:Je(He.yStep)}),rn.push({key:"Resources",value:Fr+" 0 R"}),He.matrix&&rn.push({key:"Matrix",value:"["+He.matrix.toString()+"]"}),gA({data:He.stream,additionalKeyValues:rn,objectId:He.objectNumber}),Sr("endobj")},MA=function(He){var hr;for(hr in dr)dr.hasOwnProperty(hr)&&(dr[hr]instanceof B?nA(dr[hr]):dr[hr]instanceof M&&Xi(dr[hr],He))},ji=function(He){for(var hr in He.objectNumber=Hi(),Sr("<<"),He)switch(hr){case"opacity":Sr("/ca "+mr(He[hr]));break;case"stroke-opacity":Sr("/CA "+mr(He[hr]))}Sr(">>"),Sr("endobj")},go=function(){var He;for(He in jr)jr.hasOwnProperty(He)&&ji(jr[He])},tA=function(){for(var He in Sr("/XObject <<"),bn)bn.hasOwnProperty(He)&&bn[He].objectNumber>=0&&Sr("/"+He+" "+bn[He].objectNumber+" 0 R");ke.publish("putXobjectDict"),Sr(">>")},ao=function(){vA.oid=Hi(),Sr("<<"),Sr("/Filter /Standard"),Sr("/V "+vA.v),Sr("/R "+vA.r),Sr("/U <"+vA.toHexString(vA.U)+">"),Sr("/O <"+vA.toHexString(vA.O)+">"),Sr("/P "+vA.P),Sr(">>"),Sr("endobj")},So=function(){for(var He in Sr("/Font <<"),Ke)Ke.hasOwnProperty(He)&&($e===!1||$e===!0&&Me.hasOwnProperty(He))&&Sr("/"+He+" "+Ke[He].objectNumber+" 0 R");Sr(">>")},Oa=function(){if(Object.keys(dr).length>0){for(var He in Sr("/Shading <<"),dr)dr.hasOwnProperty(He)&&dr[He]instanceof B&&dr[He].objectNumber>=0&&Sr("/"+He+" "+dr[He].objectNumber+" 0 R");ke.publish("putShadingPatternDict"),Sr(">>")}},Do=function(He){if(Object.keys(dr).length>0){for(var hr in Sr("/Pattern <<"),dr)dr.hasOwnProperty(hr)&&dr[hr]instanceof Re.TilingPattern&&dr[hr].objectNumber>=0&&dr[hr].objectNumber<He&&Sr("/"+hr+" "+dr[hr].objectNumber+" 0 R");ke.publish("putTilingPatternDict"),Sr(">>")}},ea=function(){if(Object.keys(jr).length>0){var He;for(He in Sr("/ExtGState <<"),jr)jr.hasOwnProperty(He)&&jr[He].objectNumber>=0&&Sr("/"+He+" "+jr[He].objectNumber+" 0 R");ke.publish("putGStateDict"),Sr(">>")}},Ji=function(He){Zi(He.resourcesOid,!0),Sr("<<"),Sr("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),So(),Oa(),Do(He.objectOid),ea(),tA(),Sr(">>"),Sr("endobj")},xo=function(){var He=[];Ln(),go(),_i(),MA(He),ke.publish("putResources"),He.forEach(Ji),Ji({resourcesOid:qi,objectOid:Number.MAX_SAFE_INTEGER}),ke.publish("postPutResources")},ra=function(){ke.publish("putAdditionalObjects");for(var He=0;He<Bn.length;He++){var hr=Bn[He];Zi(hr.objId,!0),Sr(hr.content),Sr("endobj")}ke.publish("postPutAdditionalObjects")},da=function(He){je[He.fontName]=je[He.fontName]||{},je[He.fontName][He.fontStyle]=He.id},na=function(He,hr,Fr,Mr,rn){var hn={id:"F"+(Object.keys(Ke).length+1).toString(10),postScriptName:He,fontName:hr,fontStyle:Fr,encoding:Mr,isStandardFont:rn||!1,metadata:{}};return ke.publish("addFont",{font:hn,instance:this}),Ke[hn.id]=hn,da(hn),hn.id},NA=function(He){for(var hr=0,Fr=Tn.length;hr<Fr;hr++){var Mr=na.call(this,He[hr][0],He[hr][1],He[hr][2],Tn[hr][3],!0);$e===!1&&(Me[Mr]=!0);var rn=He[hr][0].split("-");da({id:Mr,fontName:rn[0],fontStyle:rn[1]||""})}ke.publish("addFonts",{fonts:Ke,dictionary:je})},HA=function(He){return He.foo=function(){try{return He.apply(this,arguments)}catch(Mr){var hr=Mr.stack||"";~hr.indexOf(" at ")&&(hr=hr.split(" at ")[1]);var Fr="Error in function "+hr.split(`
`)[0].split("<")[0]+": "+Mr.message;if(!n$1.console)throw new Error(Fr);n$1.console.error(Fr,Mr),n$1.alert&&alert(Fr)}},He.foo.bar=He,He.foo},XA=function(He,hr){var Fr,Mr,rn,hn,In,kn,ni,wi,vi;if(rn=(hr=hr||{}).sourceEncoding||"Unicode",In=hr.outputEncoding,(hr.autoencode||In)&&Ke[ci].metadata&&Ke[ci].metadata[rn]&&Ke[ci].metadata[rn].encoding&&(hn=Ke[ci].metadata[rn].encoding,!In&&Ke[ci].encoding&&(In=Ke[ci].encoding),!In&&hn.codePages&&(In=hn.codePages[0]),typeof In=="string"&&(In=hn[In]),In)){for(ni=!1,kn=[],Fr=0,Mr=He.length;Fr<Mr;Fr++)(wi=In[He.charCodeAt(Fr)])?kn.push(String.fromCharCode(wi)):kn.push(He[Fr]),kn[Fr].charCodeAt(0)>>8&&(ni=!0);He=kn.join("")}for(Fr=He.length;ni===void 0&&Fr!==0;)He.charCodeAt(Fr-1)>>8&&(ni=!0),Fr--;if(!ni)return He;for(kn=hr.noBOM?[]:[254,255],Fr=0,Mr=He.length;Fr<Mr;Fr++){if((vi=(wi=He.charCodeAt(Fr))>>8)>>8)throw new Error("Character at position "+Fr+" of string '"+He+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");kn.push(vi),kn.push(wi-(vi<<8))}return String.fromCharCode.apply(void 0,kn)},xA=Re.__private__.pdfEscape=Re.pdfEscape=function(He,hr){return XA(He,hr).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ia=Re.__private__.beginPage=function(He){Sn[++Pn]=[],Xe[Pn]={objId:0,contentsObjId:0,userUnit:Number(Se),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(He[0]),topRightY:Number(He[1])}},Qo(Pn),fn(Sn[Tr])},JA=function(He,hr){var Fr,Mr,rn;switch(Ae=hr||Ae,typeof He=="string"&&(Fr=Ze(He.toLowerCase()),Array.isArray(Fr)&&(Mr=Fr[0],rn=Fr[1])),Array.isArray(He)&&(Mr=He[0]*Qn,rn=He[1]*Qn),isNaN(Mr)&&(Mr=Ce[0],rn=Ce[1]),(Mr>14400||rn>14400)&&(a$2.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Mr=Math.min(14400,Mr),rn=Math.min(14400,rn)),Ce=[Mr,rn],Ae.substr(0,1)){case"l":rn>Mr&&(Ce=[rn,Mr]);break;case"p":Mr>rn&&(Ce=[rn,Mr])}ia(Ce),Ba(No),Sr(Br),un!==0&&Sr(un+" J"),vn!==0&&Sr(vn+" j"),ke.publish("addPage",{pageNumber:Pn})},so=function(He){He>0&&He<=Pn&&(Sn.splice(He,1),Xe.splice(He,1),Pn--,Tr>Pn&&(Tr=Pn),this.setPage(Tr))},Qo=function(He){He>0&&He<=Pn&&(Tr=He)},Na=Re.__private__.getNumberOfPages=Re.getNumberOfPages=function(){return Sn.length-1},Aa=function(He,hr,Fr){var Mr,rn=void 0;return Fr=Fr||{},He=He!==void 0?He:Ke[ci].fontName,hr=hr!==void 0?hr:Ke[ci].fontStyle,Mr=He.toLowerCase(),je[Mr]!==void 0&&je[Mr][hr]!==void 0?rn=je[Mr][hr]:je[He]!==void 0&&je[He][hr]!==void 0?rn=je[He][hr]:Fr.disableWarning===!1&&a$2.warn("Unable to look up font label for font '"+He+"', '"+hr+"'. Refer to getFontList() for available fonts."),rn||Fr.noFallback||(rn=je.times[hr])==null&&(rn=je.times.normal),rn},ga=Re.__private__.putInfo=function(){var He=Hi(),hr=function(Mr){return Mr};for(var Fr in Ue!==null&&(hr=vA.encryptor(He,0)),Sr("<<"),Sr("/Producer ("+xA(hr("jsPDF "+E$1.version))+")"),ei)ei.hasOwnProperty(Fr)&&ei[Fr]&&Sr("/"+Fr.substr(0,1).toUpperCase()+Fr.substr(1)+" ("+xA(hr(ei[Fr]))+")");Sr("/CreationDate ("+xA(hr(Or))+")"),Sr(">>"),Sr("endobj")},lo=Re.__private__.putCatalog=function(He){var hr=(He=He||{}).rootDictionaryObjId||fA;switch(Hi(),Sr("<<"),Sr("/Type /Catalog"),Sr("/Pages "+hr+" 0 R"),Dn||(Dn="fullwidth"),Dn){case"fullwidth":Sr("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Sr("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Sr("/OpenAction [3 0 R /Fit]");break;case"original":Sr("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Fr=""+Dn;Fr.substr(Fr.length-1)==="%"&&(Dn=parseInt(Dn)/100),typeof Dn=="number"&&Sr("/OpenAction [3 0 R /XYZ null null "+mr(Dn)+"]")}switch(Ai||(Ai="continuous"),Ai){case"continuous":Sr("/PageLayout /OneColumn");break;case"single":Sr("/PageLayout /SinglePage");break;case"two":case"twoleft":Sr("/PageLayout /TwoColumnLeft");break;case"tworight":Sr("/PageLayout /TwoColumnRight")}Kn&&Sr("/PageMode /"+Kn),ke.publish("putCatalog"),Sr(">>"),Sr("endobj")},va=Re.__private__.putTrailer=function(){Sr("trailer"),Sr("<<"),Sr("/Size "+(Qr+1)),Sr("/Root "+Qr+" 0 R"),Sr("/Info "+(Qr-1)+" 0 R"),Ue!==null&&Sr("/Encrypt "+vA.oid+" 0 R"),Sr("/ID [ <"+Nr+"> <"+Nr+"> ]"),Sr(">>")},oa=Re.__private__.putHeader=function(){Sr("%PDF-"+ze),Sr("%ºß¬à")},Ua=Re.__private__.putXRef=function(){var He="0000000000";Sr("xref"),Sr("0 "+(Qr+1)),Sr("0000000000 65535 f ");for(var hr=1;hr<=Qr;hr++)typeof Jr[hr]=="function"?Sr((He+Jr[hr]()).slice(-10)+" 00000 n "):Jr[hr]!==void 0?Sr((He+Jr[hr]).slice(-10)+" 00000 n "):Sr("0000000000 00000 n ")},ZA=Re.__private__.buildDocument=function(){zn(),fn(nn),ke.publish("buildDocument"),oa(),Zn(),ra(),xo(),Ue!==null&&ao(),ga(),lo();var He=en;return Ua(),va(),Sr("startxref"),Sr(""+He),Sr("%%EOF"),fn(Sn[Tr]),nn.join(`
`)},Mo=Re.__private__.getBlob=function(He){return new Blob([Wn(He)],{type:"application/pdf"})},Ho=Re.output=Re.__private__.output=HA(function(He,hr){switch(typeof(hr=hr||{})=="string"?hr={filename:hr}:hr.filename=hr.filename||"generated.pdf",He){case void 0:return ZA();case"save":Re.save(hr.filename);break;case"arraybuffer":return Wn(ZA());case"blob":return Mo(ZA());case"bloburi":case"bloburl":if(n$1.URL!==void 0&&typeof n$1.URL.createObjectURL=="function")return n$1.URL&&n$1.URL.createObjectURL(Mo(ZA()))||void 0;a$2.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Fr="",Mr=ZA();try{Fr=h$1(Mr)}catch{Fr=h$1(unescape(encodeURIComponent(Mr)))}return"data:application/pdf;filename="+hr.filename+";base64,"+Fr;case"pdfobjectnewwindow":if(Object.prototype.toString.call(n$1)==="[object Window]"){var rn="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",hn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';hr.pdfObjectUrl&&(rn=hr.pdfObjectUrl,hn="");var In='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+rn+'"'+hn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(hr)+");<\/script></body></html>",kn=n$1.open();return kn!==null&&kn.document.write(In),kn}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(n$1)==="[object Window]"){var ni='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(hr.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+hr.filename+'" width="500px" height="400px" /></body></html>',wi=n$1.open();if(wi!==null){wi.document.write(ni);var vi=this;wi.document.documentElement.querySelector("#pdfViewer").onload=function(){wi.document.title=hr.filename,wi.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(vi.output("bloburl"))}}return wi}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(n$1)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var xi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",hr)+'"></iframe></body></html>',li=n$1.open();if(li!==null&&(li.document.write(xi),li.document.title=hr.filename),li||typeof safari>"u")return li;break;case"datauri":case"dataurl":return n$1.document.location.href=this.output("datauristring",hr);default:return null}}),ko=function(He){return Array.isArray(Wr)===!0&&Wr.indexOf(He)>-1};switch(Ee){case"pt":Qn=1;break;case"mm":Qn=72/25.4;break;case"cm":Qn=72/2.54;break;case"in":Qn=72;break;case"px":Qn=ko("px_scaling")==1?.75:96/72;break;case"pc":case"em":Qn=12;break;case"ex":Qn=6;break;default:if(typeof Ee!="number")throw new Error("Invalid unit: "+Ee);Qn=Ee}var vA=null;An(),Dr();var La=function(He){return Ue!==null?vA.encryptor(He,0):function(hr){return hr}},ma=Re.__private__.getPageInfo=Re.getPageInfo=function(He){if(isNaN(He)||He%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Xe[He].objId,pageNumber:He,pageContext:Xe[He]}},mi=Re.__private__.getPageInfoByObjId=function(He){if(isNaN(He)||He%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var hr in Xe)if(Xe[hr].objId===He)break;return ma(hr)},Ra=Re.__private__.getCurrentPageInfo=Re.getCurrentPageInfo=function(){return{objId:Xe[Tr].objId,pageNumber:Tr,pageContext:Xe[Tr]}};Re.addPage=function(){return JA.apply(this,arguments),this},Re.setPage=function(){return Qo.apply(this,arguments),fn.call(this,Sn[Tr]),this},Re.insertPage=function(He){return this.addPage(),this.movePage(Tr,He),this},Re.movePage=function(He,hr){var Fr,Mr;if(He>hr){Fr=Sn[He],Mr=Xe[He];for(var rn=He;rn>hr;rn--)Sn[rn]=Sn[rn-1],Xe[rn]=Xe[rn-1];Sn[hr]=Fr,Xe[hr]=Mr,this.setPage(hr)}else if(He<hr){Fr=Sn[He],Mr=Xe[He];for(var hn=He;hn<hr;hn++)Sn[hn]=Sn[hn+1],Xe[hn]=Xe[hn+1];Sn[hr]=Fr,Xe[hr]=Mr,this.setPage(hr)}return this},Re.deletePage=function(){return so.apply(this,arguments),this},Re.__private__.text=Re.text=function(He,hr,Fr,Mr,rn){var hn,In,kn,ni,wi,vi,xi,li,Ri,eA=(Mr=Mr||{}).scope||this;if(typeof He=="number"&&typeof hr=="number"&&(typeof Fr=="string"||Array.isArray(Fr))){var aA=Fr;Fr=hr,hr=He,He=aA}if(arguments[3]instanceof Mn?(We("The transform parameter of text() with a Matrix value"),Ri=rn):(kn=arguments[4],ni=arguments[5],_typeof$3(xi=arguments[3])==="object"&&xi!==null||(typeof kn=="string"&&(ni=kn,kn=null),typeof xi=="string"&&(ni=xi,xi=null),typeof xi=="number"&&(kn=xi,xi=null),Mr={flags:xi,angle:kn,align:ni})),isNaN(hr)||isNaN(Fr)||He==null)throw new Error("Invalid arguments passed to jsPDF.text");if(He.length===0)return eA;var sA="",IA=!1,UA=typeof Mr.lineHeightFactor=="number"?Mr.lineHeightFactor:mo,eo=eA.internal.scaleFactor;function Ea(zr){return zr=zr.split("	").join(Array(Mr.TabLen||9).join(" ")),xA(zr,xi)}function ua(zr){for(var dn,yn=zr.concat(),Nn=[],Vn=yn.length;Vn--;)typeof(dn=yn.shift())=="string"?Nn.push(dn):Array.isArray(zr)&&(dn.length===1||dn[1]===void 0&&dn[2]===void 0)?Nn.push(dn[0]):Nn.push([dn[0],dn[1],dn[2]]);return Nn}function ca(zr,dn){var yn;if(typeof zr=="string")yn=dn(zr)[0];else if(Array.isArray(zr)){for(var Nn,Vn,oi=zr.concat(),ai=[],si=oi.length;si--;)typeof(Nn=oi.shift())=="string"?ai.push(dn(Nn)[0]):Array.isArray(Nn)&&typeof Nn[0]=="string"&&(Vn=dn(Nn[0],Nn[1],Nn[2]),ai.push([Vn[0],Vn[1],Vn[2]]));yn=ai}return yn}var uo=!1,fa=!0;if(typeof He=="string")uo=!0;else if(Array.isArray(He)){var ha=He.concat();In=[];for(var jo,lA=ha.length;lA--;)(typeof(jo=ha.shift())!="string"||Array.isArray(jo)&&typeof jo[0]!="string")&&(fa=!1);uo=fa}if(uo===!1)throw new Error('Type of text must be string or Array. "'+He+'" is not recognized.');typeof He=="string"&&(He=He.match(/[\r?\n]/)?He.split(/\r\n|\r|\n/g):[He]);var Go=$n/eA.internal.scaleFactor,yo=Go*(UA-1);switch(Mr.baseline){case"bottom":Fr-=yo;break;case"top":Fr+=Go-yo;break;case"hanging":Fr+=Go-2*yo;break;case"middle":Fr+=Go/2-yo}if((vi=Mr.maxWidth||0)>0&&(typeof He=="string"?He=eA.splitTextToSize(He,vi):Object.prototype.toString.call(He)==="[object Array]"&&(He=He.reduce(function(zr,dn){return zr.concat(eA.splitTextToSize(dn,vi))},[]))),hn={text:He,x:hr,y:Fr,options:Mr,mutex:{pdfEscape:xA,activeFontKey:ci,fonts:Ke,activeFontSize:$n}},ke.publish("preProcessText",hn),He=hn.text,kn=(Mr=hn.options).angle,!(Ri instanceof Mn)&&kn&&typeof kn=="number"){kn*=Math.PI/180,Mr.rotationDirection===0&&(kn=-kn),fr===ar.ADVANCED&&(kn=-kn);var FA=Math.cos(kn),LA=Math.sin(kn);Ri=new Mn(FA,LA,-LA,FA,0,0)}else kn&&kn instanceof Mn&&(Ri=kn);fr!==ar.ADVANCED||Ri||(Ri=Oi),(wi=Mr.charSpace||cn)!==void 0&&(sA+=Je(ir(wi))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(li=Mr.horizontalScale)!==void 0&&(sA+=Je(100*li)+` Tz
`),Mr.lang;var EA=-1,Ca=Mr.renderingMode!==void 0?Mr.renderingMode:Mr.stroke,qo=eA.internal.getCurrentPageInfo().pageContext;switch(Ca){case 0:case!1:case"fill":EA=0;break;case 1:case!0:case"stroke":EA=1;break;case 2:case"fillThenStroke":EA=2;break;case 3:case"invisible":EA=3;break;case 4:case"fillAndAddForClipping":EA=4;break;case 5:case"strokeAndAddPathForClipping":EA=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":EA=6;break;case 7:case"addToPathForClipping":EA=7}var Ta=qo.usedRenderingMode!==void 0?qo.usedRenderingMode:-1;EA!==-1?sA+=EA+` Tr
`:Ta!==-1&&(sA+=`0 Tr
`),EA!==-1&&(qo.usedRenderingMode=EA),ni=Mr.align||"left";var Si,wo=$n*UA,RA=eA.internal.pageSize.getWidth(),$A=Ke[ci];wi=Mr.charSpace||cn,vi=Mr.maxWidth||0,xi=Object.assign({autoencode:!0,noBOM:!0},Mr.flags);var ro=[];if(Object.prototype.toString.call(He)==="[object Array]"){var DA;In=ua(He),ni!=="left"&&(Si=In.map(function(zr){return eA.getStringUnitWidth(zr,{font:$A,charSpace:wi,fontSize:$n,doKerning:!1})*$n/eo}));var GA,Bo=0;if(ni==="right"){hr-=Si[0],He=[],lA=In.length;for(var qA=0;qA<lA;qA++)qA===0?(GA=qe(hr),DA=tr(Fr)):(GA=ir(Bo-Si[qA]),DA=-wo),He.push([In[qA],GA,DA]),Bo=Si[qA]}else if(ni==="center"){hr-=Si[0]/2,He=[],lA=In.length;for(var CA=0;CA<lA;CA++)CA===0?(GA=qe(hr),DA=tr(Fr)):(GA=ir((Bo-Si[CA])/2),DA=-wo),He.push([In[CA],GA,DA]),Bo=Si[CA]}else if(ni==="left"){He=[],lA=In.length;for(var bo=0;bo<lA;bo++)He.push(In[bo])}else{if(ni!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');He=[],lA=In.length,vi=vi!==0?vi:RA;for(var kA=0;kA<lA;kA++)DA=kA===0?tr(Fr):-wo,GA=kA===0?qe(hr):0,kA<lA-1?ro.push(Je(ir((vi-Si[kA])/(In[kA].split(" ").length-1)))):ro.push(0),He.push([In[kA],GA,DA])}}var co=typeof Mr.R2L=="boolean"?Mr.R2L:Gn;co===!0&&(He=ca(He,function(zr,dn,yn){return[zr.split("").reverse().join(""),dn,yn]})),hn={text:He,x:hr,y:Fr,options:Mr,mutex:{pdfEscape:xA,activeFontKey:ci,fonts:Ke,activeFontSize:$n}},ke.publish("postProcessText",hn),He=hn.text,IA=hn.mutex.isHex||!1;var Eo=Ke[ci].encoding;Eo!=="WinAnsiEncoding"&&Eo!=="StandardEncoding"||(He=ca(He,function(zr,dn,yn){return[Ea(zr),dn,yn]})),In=ua(He),He=[];for(var no,zA,VA,fo=0,Co=1,Uo=Array.isArray(In[0])?Co:fo,Cr="",Ur=function(zr,dn,yn){var Nn="";return yn instanceof Mn?(yn=typeof Mr.angle=="number"?Ti(yn,new Mn(1,0,0,1,zr,dn)):Ti(new Mn(1,0,0,1,zr,dn),yn),fr===ar.ADVANCED&&(yn=Ti(new Mn(1,0,0,-1,0,0),yn)),Nn=yn.join(" ")+` Tm
`):Nn=Je(zr)+" "+Je(dn)+` Td
`,Nn},Vr=0;Vr<In.length;Vr++){switch(Cr="",Uo){case Co:VA=(IA?"<":"(")+In[Vr][0]+(IA?">":")"),no=parseFloat(In[Vr][1]),zA=parseFloat(In[Vr][2]);break;case fo:VA=(IA?"<":"(")+In[Vr]+(IA?">":")"),no=qe(hr),zA=tr(Fr)}ro!==void 0&&ro[Vr]!==void 0&&(Cr=ro[Vr]+` Tw
`),Vr===0?He.push(Cr+Ur(no,zA,Ri)+VA):Uo===fo?He.push(Cr+VA):Uo===Co&&He.push(Cr+Ur(no,zA,Ri)+VA)}He=Uo===fo?He.join(` Tj
T* `):He.join(` Tj
`),He+=` Tj
`;var mn=`BT
/`;return mn+=ci+" "+$n+` Tf
`,mn+=Je($n*UA)+` TL
`,mn+=Rr+`
`,mn+=sA,mn+=He,Sr(mn+="ET"),Me[ci]=!0,eA};var $a=Re.__private__.clip=Re.clip=function(He){return Sr(He==="evenodd"?"W*":"W"),this};Re.clipEvenOdd=function(){return $a("evenodd")},Re.__private__.discardPath=Re.discardPath=function(){return Sr("n"),this};var to=Re.__private__.isValidStyle=function(He){var hr=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(He)!==-1&&(hr=!0),hr};Re.__private__.setDefaultPathOperation=Re.setDefaultPathOperation=function(He){return to(He)&&(Ie=He),this};var aa=Re.__private__.getStyle=Re.getStyle=function(He){var hr=Ie;switch(He){case"D":case"S":hr="S";break;case"F":hr="f";break;case"FD":case"DF":hr="B";break;case"f":case"f*":case"B":case"B*":hr=He}return hr},Vo=Re.close=function(){return Sr("h"),this};Re.stroke=function(){return Sr("S"),this},Re.fill=function(He){return Io("f",He),this},Re.fillEvenOdd=function(He){return Io("f*",He),this},Re.fillStroke=function(He){return Io("B",He),this},Re.fillStrokeEvenOdd=function(He){return Io("B*",He),this};var Io=function(He,hr){_typeof$3(hr)==="object"?wa(hr,He):Sr(He)},Fo=function(He){He===null||fr===ar.ADVANCED&&He===void 0||(He=aa(He),Sr(He))};function ya(He,hr,Fr,Mr,rn){var hn=new M(hr||this.boundingBox,Fr||this.xStep,Mr||this.yStep,this.gState,rn||this.matrix);hn.stream=this.stream;var In=He+"$$"+this.cloneIndex+++"$$";return Ni(In,hn),hn}var wa=function(He,hr){var Fr=Pr[He.key],Mr=dr[Fr];if(Mr instanceof B)Sr("q"),Sr(sa(hr)),Mr.gState&&Re.setGState(Mr.gState),Sr(He.matrix.toString()+" cm"),Sr("/"+Fr+" sh"),Sr("Q");else if(Mr instanceof M){var rn=new Mn(1,0,0,-1,0,bi());He.matrix&&(rn=rn.multiply(He.matrix||Oi),Fr=ya.call(Mr,He.key,He.boundingBox,He.xStep,He.yStep,rn).id),Sr("q"),Sr("/Pattern cs"),Sr("/"+Fr+" scn"),Mr.gState&&Re.setGState(Mr.gState),Sr(hr),Sr("Q")}},sa=function(He){switch(He){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},la=Re.moveTo=function(He,hr){return Sr(Je(ir(He))+" "+Je(vr(hr))+" m"),this},Po=Re.lineTo=function(He,hr){return Sr(Je(ir(He))+" "+Je(vr(hr))+" l"),this},vo=Re.curveTo=function(He,hr,Fr,Mr,rn,hn){return Sr([Je(ir(He)),Je(vr(hr)),Je(ir(Fr)),Je(vr(Mr)),Je(ir(rn)),Je(vr(hn)),"c"].join(" ")),this};Re.__private__.line=Re.line=function(He,hr,Fr,Mr,rn){if(isNaN(He)||isNaN(hr)||isNaN(Fr)||isNaN(Mr)||!to(rn))throw new Error("Invalid arguments passed to jsPDF.line");return fr===ar.COMPAT?this.lines([[Fr-He,Mr-hr]],He,hr,[1,1],rn||"S"):this.lines([[Fr-He,Mr-hr]],He,hr,[1,1]).stroke()},Re.__private__.lines=Re.lines=function(He,hr,Fr,Mr,rn,hn){var In,kn,ni,wi,vi,xi,li,Ri,eA,aA,sA,IA;if(typeof He=="number"&&(IA=Fr,Fr=hr,hr=He,He=IA),Mr=Mr||[1,1],hn=hn||!1,isNaN(hr)||isNaN(Fr)||!Array.isArray(He)||!Array.isArray(Mr)||!to(rn)||typeof hn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(la(hr,Fr),In=Mr[0],kn=Mr[1],wi=He.length,aA=hr,sA=Fr,ni=0;ni<wi;ni++)(vi=He[ni]).length===2?(aA=vi[0]*In+aA,sA=vi[1]*kn+sA,Po(aA,sA)):(xi=vi[0]*In+aA,li=vi[1]*kn+sA,Ri=vi[2]*In+aA,eA=vi[3]*kn+sA,aA=vi[4]*In+aA,sA=vi[5]*kn+sA,vo(xi,li,Ri,eA,aA,sA));return hn&&Vo(),Fo(rn),this},Re.path=function(He){for(var hr=0;hr<He.length;hr++){var Fr=He[hr],Mr=Fr.c;switch(Fr.op){case"m":la(Mr[0],Mr[1]);break;case"l":Po(Mr[0],Mr[1]);break;case"c":vo.apply(this,Mr);break;case"h":Vo()}}return this},Re.__private__.rect=Re.rect=function(He,hr,Fr,Mr,rn){if(isNaN(He)||isNaN(hr)||isNaN(Fr)||isNaN(Mr)||!to(rn))throw new Error("Invalid arguments passed to jsPDF.rect");return fr===ar.COMPAT&&(Mr=-Mr),Sr([Je(ir(He)),Je(vr(hr)),Je(ir(Fr)),Je(ir(Mr)),"re"].join(" ")),Fo(rn),this},Re.__private__.triangle=Re.triangle=function(He,hr,Fr,Mr,rn,hn,In){if(isNaN(He)||isNaN(hr)||isNaN(Fr)||isNaN(Mr)||isNaN(rn)||isNaN(hn)||!to(In))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Fr-He,Mr-hr],[rn-Fr,hn-Mr],[He-rn,hr-hn]],He,hr,[1,1],In,!0),this},Re.__private__.roundedRect=Re.roundedRect=function(He,hr,Fr,Mr,rn,hn,In){if(isNaN(He)||isNaN(hr)||isNaN(Fr)||isNaN(Mr)||isNaN(rn)||isNaN(hn)||!to(In))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var kn=4/3*(Math.SQRT2-1);return rn=Math.min(rn,.5*Fr),hn=Math.min(hn,.5*Mr),this.lines([[Fr-2*rn,0],[rn*kn,0,rn,hn-hn*kn,rn,hn],[0,Mr-2*hn],[0,hn*kn,-rn*kn,hn,-rn,hn],[2*rn-Fr,0],[-rn*kn,0,-rn,-hn*kn,-rn,-hn],[0,2*hn-Mr],[0,-hn*kn,rn*kn,-hn,rn,-hn]],He+rn,hr,[1,1],In,!0),this},Re.__private__.ellipse=Re.ellipse=function(He,hr,Fr,Mr,rn){if(isNaN(He)||isNaN(hr)||isNaN(Fr)||isNaN(Mr)||!to(rn))throw new Error("Invalid arguments passed to jsPDF.ellipse");var hn=4/3*(Math.SQRT2-1)*Fr,In=4/3*(Math.SQRT2-1)*Mr;return la(He+Fr,hr),vo(He+Fr,hr-In,He+hn,hr-Mr,He,hr-Mr),vo(He-hn,hr-Mr,He-Fr,hr-In,He-Fr,hr),vo(He-Fr,hr+In,He-hn,hr+Mr,He,hr+Mr),vo(He+hn,hr+Mr,He+Fr,hr+In,He+Fr,hr),Fo(rn),this},Re.__private__.circle=Re.circle=function(He,hr,Fr,Mr){if(isNaN(He)||isNaN(hr)||isNaN(Fr)||!to(Mr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(He,hr,Fr,Fr,Mr)},Re.setFont=function(He,hr,Fr){return Fr&&(hr=Oe(hr,Fr)),ci=Aa(He,hr,{disableWarning:!1}),this};var Oo=Re.__private__.getFont=Re.getFont=function(){return Ke[Aa.apply(Re,arguments)]};Re.__private__.getFontList=Re.getFontList=function(){var He,hr,Fr={};for(He in je)if(je.hasOwnProperty(He))for(hr in Fr[He]=[],je[He])je[He].hasOwnProperty(hr)&&Fr[He].push(hr);return Fr},Re.addFont=function(He,hr,Fr,Mr,rn){var hn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&hn.indexOf(arguments[3])!==-1?rn=arguments[3]:arguments[3]&&hn.indexOf(arguments[3])==-1&&(Fr=Oe(Fr,Mr)),rn=rn||"Identity-H",na.call(this,He,hr,Fr,rn)};var mo,No=Be.lineWidth||.200025,Ko=Re.__private__.getLineWidth=Re.getLineWidth=function(){return No},Ba=Re.__private__.setLineWidth=Re.setLineWidth=function(He){return No=He,Sr(Je(ir(He))+" w"),this};Re.__private__.setLineDash=E$1.API.setLineDash=E$1.API.setLineDashPattern=function(He,hr){if(He=He||[],hr=hr||0,isNaN(hr)||!Array.isArray(He))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return He=He.map(function(Fr){return Je(ir(Fr))}).join(" "),hr=Je(ir(hr)),Sr("["+He+"] "+hr+" d"),this};var ba=Re.__private__.getLineHeight=Re.getLineHeight=function(){return $n*mo};Re.__private__.getLineHeight=Re.getLineHeight=function(){return $n*mo};var Pe=Re.__private__.setLineHeightFactor=Re.setLineHeightFactor=function(He){return typeof(He=He||1.15)=="number"&&(mo=He),this},Qe=Re.__private__.getLineHeightFactor=Re.getLineHeightFactor=function(){return mo};Pe(Be.lineHeight);var qe=Re.__private__.getHorizontalCoordinate=function(He){return ir(He)},tr=Re.__private__.getVerticalCoordinate=function(He){return fr===ar.ADVANCED?He:Xe[Tr].mediaBox.topRightY-Xe[Tr].mediaBox.bottomLeftY-ir(He)},ur=Re.__private__.getHorizontalCoordinateString=Re.getHorizontalCoordinateString=function(He){return Je(qe(He))},cr=Re.__private__.getVerticalCoordinateString=Re.getVerticalCoordinateString=function(He){return Je(tr(He))},Br=Be.strokeColor||"0 G";Re.__private__.getStrokeColor=Re.getDrawColor=function(){return wA(Br)},Re.__private__.setStrokeColor=Re.setDrawColor=function(He,hr,Fr,Mr){return Br=TA({ch1:He,ch2:hr,ch3:Fr,ch4:Mr,pdfColorType:"draw",precision:2}),Sr(Br),this};var Lr=Be.fillColor||"0 g";Re.__private__.getFillColor=Re.getFillColor=function(){return wA(Lr)},Re.__private__.setFillColor=Re.setFillColor=function(He,hr,Fr,Mr){return Lr=TA({ch1:He,ch2:hr,ch3:Fr,ch4:Mr,pdfColorType:"fill",precision:2}),Sr(Lr),this};var Rr=Be.textColor||"0 g",tn=Re.__private__.getTextColor=Re.getTextColor=function(){return wA(Rr)};Re.__private__.setTextColor=Re.setTextColor=function(He,hr,Fr,Mr){return Rr=TA({ch1:He,ch2:hr,ch3:Fr,ch4:Mr,pdfColorType:"text",precision:3}),this};var cn=Be.charSpace,xn=Re.__private__.getCharSpace=Re.getCharSpace=function(){return parseFloat(cn||0)};Re.__private__.setCharSpace=Re.setCharSpace=function(He){if(isNaN(He))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cn=He,this};var un=0;Re.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},Re.__private__.setLineCap=Re.setLineCap=function(He){var hr=Re.CapJoinStyles[He];if(hr===void 0)throw new Error("Line cap style of '"+He+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return un=hr,Sr(hr+" J"),this};var vn=0;Re.__private__.setLineJoin=Re.setLineJoin=function(He){var hr=Re.CapJoinStyles[He];if(hr===void 0)throw new Error("Line join style of '"+He+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return vn=hr,Sr(hr+" j"),this},Re.__private__.setLineMiterLimit=Re.__private__.setMiterLimit=Re.setLineMiterLimit=Re.setMiterLimit=function(He){if(He=He||0,isNaN(He))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Sr(Je(ir(He))+" M"),this},Re.GState=j,Re.setGState=function(He){(He=typeof He=="string"?jr[wn[He]]:ii(null,He)).equals(pn)||(Sr("/"+He.id+" gs"),pn=He)};var ii=function(He,hr){if(!He||!wn[He]){var Fr=!1;for(var Mr in jr)if(jr.hasOwnProperty(Mr)&&jr[Mr].equals(hr)){Fr=!0;break}if(Fr)hr=jr[Mr];else{var rn="GS"+(Object.keys(jr).length+1).toString(10);jr[rn]=hr,hr.id=rn}return He&&(wn[He]=hr.id),ke.publish("addGState",hr),hr}};Re.addGState=function(He,hr){return ii(He,hr),this},Re.saveGraphicsState=function(){return Sr("q"),sr.push({key:ci,size:$n,color:Rr}),this},Re.restoreGraphicsState=function(){Sr("Q");var He=sr.pop();return ci=He.key,$n=He.size,Rr=He.color,pn=null,this},Re.setCurrentTransformationMatrix=function(He){return Sr(He.toString()+" cm"),this},Re.comment=function(He){return Sr("#"+He),this};var di=function(He,hr){var Fr=He||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Fr},set:function(hn){isNaN(hn)||(Fr=parseFloat(hn))}});var Mr=hr||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Mr},set:function(hn){isNaN(hn)||(Mr=parseFloat(hn))}});var rn="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return rn},set:function(hn){rn=hn.toString()}}),this},ri=function(He,hr,Fr,Mr){di.call(this,He,hr),this.type="rect";var rn=Fr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return rn},set:function(In){isNaN(In)||(rn=parseFloat(In))}});var hn=Mr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return hn},set:function(In){isNaN(In)||(hn=parseFloat(In))}}),this},Wi=function(){this.page=Pn,this.currentPage=Tr,this.pages=Sn.slice(0),this.pagesContext=Xe.slice(0),this.x=Ii,this.y=gi,this.matrix=br,this.width=fi(Tr),this.height=bi(Tr),this.outputDestination=On,this.id="",this.objectNumber=-1};Wi.prototype.restore=function(){Pn=this.page,Tr=this.currentPage,Xe=this.pagesContext,Sn=this.pages,Ii=this.x,gi=this.y,br=this.matrix,oA(Tr,this.width),Di(Tr,this.height),On=this.outputDestination};var Yi=function(He,hr,Fr,Mr,rn){pi.push(new Wi),Pn=Tr=0,Sn=[],Ii=He,gi=hr,br=rn,ia([Fr,Mr])},bA=function(He){if(Jn[He])pi.pop().restore();else{var hr=new Wi,Fr="Xo"+(Object.keys(bn).length+1).toString(10);hr.id=Fr,Jn[He]=Fr,bn[Fr]=hr,ke.publish("addFormObject",hr),pi.pop().restore()}};for(var Pi in Re.beginFormObject=function(He,hr,Fr,Mr,rn){return Yi(He,hr,Fr,Mr,rn),this},Re.endFormObject=function(He){return bA(He),this},Re.doFormObject=function(He,hr){var Fr=bn[Jn[He]];return Sr("q"),Sr(hr.toString()+" cm"),Sr("/"+Fr.id+" Do"),Sr("Q"),this},Re.getFormObject=function(He){var hr=bn[Jn[He]];return{x:hr.x,y:hr.y,width:hr.width,height:hr.height,matrix:hr.matrix}},Re.save=function(He,hr){return He=He||"generated.pdf",(hr=hr||{}).returnPromise=hr.returnPromise||!1,hr.returnPromise===!1?(l$1(Mo(ZA()),He),typeof l$1.unload=="function"&&n$1.setTimeout&&setTimeout(l$1.unload,911),this):new Promise(function(Fr,Mr){try{var rn=l$1(Mo(ZA()),He);typeof l$1.unload=="function"&&n$1.setTimeout&&setTimeout(l$1.unload,911),Fr(rn)}catch(hn){Mr(hn.message)}})},E$1.API)E$1.API.hasOwnProperty(Pi)&&(Pi==="events"&&E$1.API.events.length?function(He,hr){var Fr,Mr,rn;for(rn=hr.length-1;rn!==-1;rn--)Fr=hr[rn][0],Mr=hr[rn][1],He.subscribe.apply(He,[Fr].concat(typeof Mr=="function"?[Mr]:Mr))}(ke,E$1.API.events):Re[Pi]=E$1.API[Pi]);var fi=Re.getPageWidth=function(He){return(Xe[He=He||Tr].mediaBox.topRightX-Xe[He].mediaBox.bottomLeftX)/Qn},oA=Re.setPageWidth=function(He,hr){Xe[He].mediaBox.topRightX=hr*Qn+Xe[He].mediaBox.bottomLeftX},bi=Re.getPageHeight=function(He){return(Xe[He=He||Tr].mediaBox.topRightY-Xe[He].mediaBox.bottomLeftY)/Qn},Di=Re.setPageHeight=function(He,hr){Xe[He].mediaBox.topRightY=hr*Qn+Xe[He].mediaBox.bottomLeftY};return Re.internal={pdfEscape:xA,getStyle:aa,getFont:Oo,getFontSize:Rn,getCharSpace:xn,getTextColor:tn,getLineHeight:ba,getLineHeightFactor:Qe,getLineWidth:Ko,write:Yn,getHorizontalCoordinate:qe,getVerticalCoordinate:tr,getCoordinateString:ur,getVerticalCoordinateString:cr,collections:{},newObject:Hi,newAdditionalObject:oo,newObjectDeferred:Ki,newObjectDeferredBegin:Zi,getFilters:hA,putStream:gA,events:ke,scaleFactor:Qn,pageSize:{getWidth:function(){return fi(Tr)},setWidth:function(He){oA(Tr,He)},getHeight:function(){return bi(Tr)},setHeight:function(He){Di(Tr,He)}},encryptionOptions:Ue,encryption:vA,getEncryptor:La,output:Ho,getNumberOfPages:Na,pages:Sn,out:Sr,f2:mr,f3:er,getPageInfo:ma,getPageInfoByObjId:mi,getCurrentPageInfo:Ra,getPDFVersion:Ve,Point:di,Rectangle:ri,Matrix:Mn,hasHotfix:ko},Object.defineProperty(Re.internal.pageSize,"width",{get:function(){return fi(Tr)},set:function(He){oA(Tr,He)},enumerable:!0,configurable:!0}),Object.defineProperty(Re.internal.pageSize,"height",{get:function(){return bi(Tr)},set:function(He){Di(Tr,He)},enumerable:!0,configurable:!0}),NA.call(Re,Tn),ci="F1",JA(Ce,Ae),ke.publish("initialized"),Re}I.prototype.lsbFirstWord=function(Be){return String.fromCharCode(Be>>0&255,Be>>8&255,Be>>16&255,Be>>24&255)},I.prototype.toHexString=function(Be){return Be.split("").map(function(St){return("0"+(255&St.charCodeAt(0)).toString(16)).slice(-2)}).join("")},I.prototype.hexToBytes=function(Be){for(var St=[],Ae=0;Ae<Be.length;Ae+=2)St.push(String.fromCharCode(parseInt(Be.substr(Ae,2),16)));return St.join("")},I.prototype.processOwnerPassword=function(Be,St){return P(x(St).substr(0,5),Be)},I.prototype.encryptor=function(Be,St){var Ae=x(this.encryptionKey+String.fromCharCode(255&Be,Be>>8&255,Be>>16&255,255&St,St>>8&255)).substr(0,10);return function(Ee){return P(Ae,Ee)}},j.prototype.equals=function(Be){var St,Ae="id,objectNumber,equals";if(!Be||_typeof$3(Be)!==_typeof$3(this))return!1;var Ee=0;for(St in this)if(!(Ae.indexOf(St)>=0)){if(this.hasOwnProperty(St)&&!Be.hasOwnProperty(St)||this[St]!==Be[St])return!1;Ee++}for(St in Be)Be.hasOwnProperty(St)&&Ae.indexOf(St)<0&&Ee--;return Ee===0},E$1.API={events:[]},E$1.version="2.5.1";var q=E$1.API,D=1,R=function(Be){return Be.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},T$2=function(Be){return Be.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},U$1=function(Be){return Be.toFixed(2)},z$1=function(Be){return Be.toFixed(5)};q.__acroform__={};var H=function(Be,St){Be.prototype=Object.create(St.prototype),Be.prototype.constructor=Be},W=function(Be){return Be*D},V$1=function(Be){var St=new ut,Ae=At.internal.getHeight(Be)||0,Ee=At.internal.getWidth(Be)||0;return St.BBox=[0,0,Number(U$1(Ee)),Number(U$1(Ae))],St},G=q.__acroform__.setBit=function(Be,St){if(Be=Be||0,St=St||0,isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Be|=1<<St},Y=q.__acroform__.clearBit=function(Be,St){if(Be=Be||0,St=St||0,isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Be&=~(1<<St)},J=q.__acroform__.getBit=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Be&1<<St?1:0},X=q.__acroform__.getBitForPdf=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return J(Be,St-1)},K=q.__acroform__.setBitForPdf=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return G(Be,St-1)},Z$1=q.__acroform__.clearBitForPdf=function(Be,St){if(isNaN(Be)||isNaN(St))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Y(Be,St-1)},$$f=q.__acroform__.calculateCoordinates=function(Be,St){var Ae=St.internal.getHorizontalCoordinate,Ee=St.internal.getVerticalCoordinate,Ce=Be[0],_e=Be[1],Te=Be[2],Se=Be[3],xe={};return xe.lowerLeft_X=Ae(Ce)||0,xe.lowerLeft_Y=Ee(_e+Se)||0,xe.upperRight_X=Ae(Ce+Te)||0,xe.upperRight_Y=Ee(_e)||0,[Number(U$1(xe.lowerLeft_X)),Number(U$1(xe.lowerLeft_Y)),Number(U$1(xe.upperRight_X)),Number(U$1(xe.upperRight_Y))]},Q=function(Be){if(Be.appearanceStreamContent)return Be.appearanceStreamContent;if(Be.V||Be.DV){var St=[],Ae=Be._V||Be.DV,Ee=tt(Be,Ae),Ce=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id;St.push("/Tx BMC"),St.push("q"),St.push("BT"),St.push(Be.scope.__private__.encodeColorString(Be.color)),St.push("/"+Ce+" "+U$1(Ee.fontSize)+" Tf"),St.push("1 0 0 1 0 0 Tm"),St.push(Ee.text),St.push("ET"),St.push("Q"),St.push("EMC");var _e=V$1(Be);return _e.scope=Be.scope,_e.stream=St.join(`
`),_e}},tt=function(Be,St){var Ae=Be.fontSize===0?Be.maxFontSize:Be.fontSize,Ee={text:"",fontSize:""},Ce=(St=(St=St.substr(0,1)=="("?St.substr(1):St).substr(St.length-1)==")"?St.substr(0,St.length-1):St).split(" ");Ce=Be.multiline?Ce.map(function(er){return er.split(`
`)}):Ce.map(function(er){return[er]});var _e=Ae,Te=At.internal.getHeight(Be)||0;Te=Te<0?-Te:Te;var Se=At.internal.getWidth(Be)||0;Se=Se<0?-Se:Se;var xe=function(er,ir,gr){if(er+1<Ce.length){var vr=ir+" "+Ce[er+1][0];return et(vr,Be,gr).width<=Se-4}return!1};_e++;t:for(;_e>0;){St="",_e--;var Ie,Ue,$e=et("3",Be,_e).height,Me=Be.multiline?Te-_e:(Te-$e)/2,Re=Me+=2,ze=0,Ve=0,nr=0;if(_e<=0){St=`(...) Tj
`,St+="% Width of Text: "+et(St,Be,_e=12).width+", FieldWidth:"+Se+`
`;break}for(var Ze="",ar=0,fr=0;fr<Ce.length;fr++)if(Ce.hasOwnProperty(fr)){var Ye=!1;if(Ce[fr].length!==1&&nr!==Ce[fr].length-1){if(($e+2)*(ar+2)+2>Te)continue t;Ze+=Ce[fr][nr],Ye=!0,Ve=fr,fr--}else{Ze=(Ze+=Ce[fr][nr]+" ").substr(Ze.length-1)==" "?Ze.substr(0,Ze.length-1):Ze;var Ar=parseInt(fr),Oe=xe(Ar,Ze,_e),Je=fr>=Ce.length-1;if(Oe&&!Je){Ze+=" ",nr=0;continue}if(Oe||Je){if(Je)Ve=Ar;else if(Be.multiline&&($e+2)*(ar+2)+2>Te)continue t}else{if(!Be.multiline||($e+2)*(ar+2)+2>Te)continue t;Ve=Ar}}for(var We="",or=ze;or<=Ve;or++){var mr=Ce[or];if(Be.multiline){if(or===Ve){We+=mr[nr]+" ",nr=(nr+1)%mr.length;continue}if(or===ze){We+=mr[mr.length-1]+" ";continue}}We+=mr[0]+" "}switch(We=We.substr(We.length-1)==" "?We.substr(0,We.length-1):We,Ue=et(We,Be,_e).width,Be.textAlign){case"right":Ie=Se-Ue-2;break;case"center":Ie=(Se-Ue)/2;break;case"left":default:Ie=2}St+=U$1(Ie)+" "+U$1(Re)+` Td
`,St+="("+R(We)+`) Tj
`,St+=-U$1(Ie)+` 0 Td
`,Re=-(_e+2),Ue=0,ze=Ye?Ve:Ve+1,ar++,Ze=""}break}return Ee.text=St,Ee.fontSize=_e,Ee},et=function(Be,St,Ae){var Ee=St.scope.internal.getFont(St.fontName,St.fontStyle),Ce=St.scope.getStringUnitWidth(Be,{font:Ee,fontSize:parseFloat(Ae),charSpace:0})*parseFloat(Ae);return{height:St.scope.getStringUnitWidth("3",{font:Ee,fontSize:parseFloat(Ae),charSpace:0})*parseFloat(Ae)*1.5,width:Ce}},rt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},nt=function(Be,St){var Ae={type:"reference",object:Be};St.internal.getPageInfo(Be.page).pageContext.annotations.find(function(Ee){return Ee.type===Ae.type&&Ee.object===Ae.object})===void 0&&St.internal.getPageInfo(Be.page).pageContext.annotations.push(Ae)},it=function(Be,St){for(var Ae in Be)if(Be.hasOwnProperty(Ae)){var Ee=Ae,Ce=Be[Ae];St.internal.newObjectDeferredBegin(Ce.objId,!0),_typeof$3(Ce)==="object"&&typeof Ce.putStream=="function"&&Ce.putStream(),delete Be[Ee]}},at=function(Be,St){if(St.scope=Be,Be.internal!==void 0&&(Be.internal.acroformPlugin===void 0||Be.internal.acroformPlugin.isInitialized===!1)){if(lt.FieldNum=0,Be.internal.acroformPlugin=JSON.parse(JSON.stringify(rt)),Be.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");D=Be.internal.scaleFactor,Be.internal.acroformPlugin.acroFormDictionaryRoot=new ht,Be.internal.acroformPlugin.acroFormDictionaryRoot.scope=Be,Be.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Be.internal.events.subscribe("postPutResources",function(){(function(Ae){Ae.internal.events.unsubscribe(Ae.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ae.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ae.internal.acroformPlugin.printedOut=!0})(Be)}),Be.internal.events.subscribe("buildDocument",function(){(function(Ae){Ae.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ee=Ae.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ce in Ee)if(Ee.hasOwnProperty(Ce)){var _e=Ee[Ce];_e.objId=void 0,_e.hasAnnotation&&nt(_e,Ae)}})(Be)}),Be.internal.events.subscribe("putCatalog",function(){(function(Ae){if(Ae.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ae.internal.write("/AcroForm "+Ae.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Be)}),Be.internal.events.subscribe("postPutPages",function(Ae){(function(Ee,Ce){var _e=!Ee;for(var Te in Ee||(Ce.internal.newObjectDeferredBegin(Ce.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ce.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ee=Ee||Ce.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ee.hasOwnProperty(Te)){var Se=Ee[Te],xe=[],Ie=Se.Rect;if(Se.Rect&&(Se.Rect=$$f(Se.Rect,Ce)),Ce.internal.newObjectDeferredBegin(Se.objId,!0),Se.DA=At.createDefaultAppearanceStream(Se),_typeof$3(Se)==="object"&&typeof Se.getKeyValueListForStream=="function"&&(xe=Se.getKeyValueListForStream()),Se.Rect=Ie,Se.hasAppearanceStream&&!Se.appearanceStreamContent){var Ue=Q(Se);xe.push({key:"AP",value:"<</N "+Ue+">>"}),Ce.internal.acroformPlugin.xForms.push(Ue)}if(Se.appearanceStreamContent){var $e="";for(var Me in Se.appearanceStreamContent)if(Se.appearanceStreamContent.hasOwnProperty(Me)){var Re=Se.appearanceStreamContent[Me];if($e+="/"+Me+" ",$e+="<<",Object.keys(Re).length>=1||Array.isArray(Re)){for(var Te in Re)if(Re.hasOwnProperty(Te)){var ze=Re[Te];typeof ze=="function"&&(ze=ze.call(Ce,Se)),$e+="/"+Te+" "+ze+" ",Ce.internal.acroformPlugin.xForms.indexOf(ze)>=0||Ce.internal.acroformPlugin.xForms.push(ze)}}else typeof(ze=Re)=="function"&&(ze=ze.call(Ce,Se)),$e+="/"+Te+" "+ze,Ce.internal.acroformPlugin.xForms.indexOf(ze)>=0||Ce.internal.acroformPlugin.xForms.push(ze);$e+=">>"}xe.push({key:"AP",value:`<<
`+$e+">>"})}Ce.internal.putStream({additionalKeyValues:xe,objectId:Se.objId}),Ce.internal.out("endobj")}_e&&it(Ce.internal.acroformPlugin.xForms,Ce)})(Ae,Be)}),Be.internal.acroformPlugin.isInitialized=!0}},ot=q.__acroform__.arrayToPdfArray=function(Be,St,Ae){var Ee=function(Te){return Te};if(Array.isArray(Be)){for(var Ce="[",_e=0;_e<Be.length;_e++)switch(_e!==0&&(Ce+=" "),_typeof$3(Be[_e])){case"boolean":case"number":case"object":Ce+=Be[_e].toString();break;case"string":Be[_e].substr(0,1)!=="/"?(St!==void 0&&Ae&&(Ee=Ae.internal.getEncryptor(St)),Ce+="("+R(Ee(Be[_e].toString()))+")"):Ce+=Be[_e].toString()}return Ce+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},st=function(Be,St,Ae){var Ee=function(Ce){return Ce};return St!==void 0&&Ae&&(Ee=Ae.internal.getEncryptor(St)),(Be=Be||"").toString(),Be="("+R(Ee(Be))+")"},ct=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Be){this._objId=Be}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ct.prototype.toString=function(){return this.objId+" 0 R"},ct.prototype.putStream=function(){var Be=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Be,objectId:this.objId}),this.scope.internal.out("endobj")},ct.prototype.getKeyValueListForStream=function(){var Be=[],St=Object.getOwnPropertyNames(this).filter(function(_e){return _e!="content"&&_e!="appearanceStreamContent"&&_e!="scope"&&_e!="objId"&&_e.substring(0,1)!="_"});for(var Ae in St)if(Object.getOwnPropertyDescriptor(this,St[Ae]).configurable===!1){var Ee=St[Ae],Ce=this[Ee];Ce&&(Array.isArray(Ce)?Be.push({key:Ee,value:ot(Ce,this.objId,this.scope)}):Ce instanceof ct?(Ce.scope=this.scope,Be.push({key:Ee,value:Ce.objId+" 0 R"})):typeof Ce!="function"&&Be.push({key:Ee,value:Ce}))}return Be};var ut=function(){ct.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Be,St=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return St},set:function(Ae){St=Ae}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ae){Be=Ae.trim()},get:function(){return Be||null}})};H(ut,ct);var ht=function(){ct.call(this);var Be,St=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return St.length>0?St:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return St}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Be){var Ae=function(Ee){return Ee};return this.scope&&(Ae=this.scope.internal.getEncryptor(this.objId)),"("+R(Ae(Be))+")"}},set:function(Ae){Be=Ae}})};H(ht,ct);var lt=function Be(){ct.call(this);var St=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return St},set:function(Ze){if(isNaN(Ze))throw new Error('Invalid value "'+Ze+'" for attribute F supplied.');St=Ze}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!X(St,3)},set:function(Ze){Ze?this.F=K(St,3):this.F=Z$1(St,3)}});var Ae=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ae},set:function(Ze){if(isNaN(Ze))throw new Error('Invalid value "'+Ze+'" for attribute Ff supplied.');Ae=Ze}});var Ee=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ee.length!==0)return Ee},set:function(Ze){Ee=Ze!==void 0?Ze:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[0])?0:Ee[0]},set:function(Ze){Ee[0]=Ze}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[1])?0:Ee[1]},set:function(Ze){Ee[1]=Ze}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[2])?0:Ee[2]},set:function(Ze){Ee[2]=Ze}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ee||isNaN(Ee[3])?0:Ee[3]},set:function(Ze){Ee[3]=Ze}});var Ce="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ce},set:function(Ze){switch(Ze){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ce=Ze;break;default:throw new Error('Invalid value "'+Ze+'" for attribute FT supplied.')}}});var _e=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!_e||_e.length<1){if(this instanceof yt)return;_e="FieldObject"+Be.FieldNum++}var Ze=function(ar){return ar};return this.scope&&(Ze=this.scope.internal.getEncryptor(this.objId)),"("+R(Ze(_e))+")"},set:function(Ze){_e=Ze.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return _e},set:function(Ze){_e=Ze}});var Te="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Te},set:function(Ze){Te=Ze}});var Se="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(Ze){Se=Ze}});var xe=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return xe},set:function(Ze){xe=Ze}});var Ie=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ie===void 0?50/D:Ie},set:function(Ze){Ie=Ze}});var Ue="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Ue},set:function(Ze){Ue=Ze}});var $e="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!$e||this instanceof yt||this instanceof Nt))return st($e,this.objId,this.scope)},set:function(Ze){Ze=Ze.toString(),$e=Ze}});var Me=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Me)return this instanceof mt?Me:st(Me,this.objId,this.scope)},set:function(Ze){Ze=Ze.toString(),Me=this instanceof mt?Ze:Ze.substr(0,1)==="("?T$2(Ze.substr(1,Ze.length-2)):T$2(Ze)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt?T$2(Me.substr(1,Me.length-1)):Me},set:function(Ze){Ze=Ze.toString(),Me=this instanceof mt?"/"+Ze:Ze}});var Re=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Re)return Re},set:function(Ze){this.V=Ze}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Re)return this instanceof mt?Re:st(Re,this.objId,this.scope)},set:function(Ze){Ze=Ze.toString(),Re=this instanceof mt?Ze:Ze.substr(0,1)==="("?T$2(Ze.substr(1,Ze.length-2)):T$2(Ze)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt?T$2(Re.substr(1,Re.length-1)):Re},set:function(Ze){Ze=Ze.toString(),Re=this instanceof mt?"/"+Ze:Ze}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var ze,Ve=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Ve},set:function(Ze){Ze=!!Ze,Ve=Ze}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(ze)return ze},set:function(Ze){ze=Ze}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,1)},set:function(Ze){Ze?this.Ff=K(this.Ff,1):this.Ff=Z$1(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,2)},set:function(Ze){Ze?this.Ff=K(this.Ff,2):this.Ff=Z$1(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,3)},set:function(Ze){Ze?this.Ff=K(this.Ff,3):this.Ff=Z$1(this.Ff,3)}});var nr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(nr!==null)return nr},set:function(Ze){if([0,1,2].indexOf(Ze)===-1)throw new Error('Invalid value "'+Ze+'" for attribute Q supplied.');nr=Ze}}),Object.defineProperty(this,"textAlign",{get:function(){var Ze;switch(nr){case 0:default:Ze="left";break;case 1:Ze="center";break;case 2:Ze="right"}return Ze},configurable:!0,enumerable:!0,set:function(Ze){switch(Ze){case"right":case 2:nr=2;break;case"center":case 1:nr=1;break;case"left":case 0:default:nr=0}}})};H(lt,ct);var ft=function(){lt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Be=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Be},set:function(Ae){Be=Ae}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Be},set:function(Ae){Be=Ae}});var St=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ot(St,this.objId,this.scope)},set:function(Ae){var Ee,Ce;Ce=[],typeof(Ee=Ae)=="string"&&(Ce=function(_e,Te,Se){Se||(Se=1);for(var xe,Ie=[];xe=Te.exec(_e);)Ie.push(xe[Se]);return Ie}(Ee,/\((.*?)\)/g)),St=Ce}}),this.getOptions=function(){return St},this.setOptions=function(Ae){St=Ae,this.sort&&St.sort()},this.addOption=function(Ae){Ae=(Ae=Ae||"").toString(),St.push(Ae),this.sort&&St.sort()},this.removeOption=function(Ae,Ee){for(Ee=Ee||!1,Ae=(Ae=Ae||"").toString();St.indexOf(Ae)!==-1&&(St.splice(St.indexOf(Ae),1),Ee!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,18)},set:function(Ae){Ae?this.Ff=K(this.Ff,18):this.Ff=Z$1(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,19)},set:function(Ae){this.combo===!0&&(Ae?this.Ff=K(this.Ff,19):this.Ff=Z$1(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,20)},set:function(Ae){Ae?(this.Ff=K(this.Ff,20),St.sort()):this.Ff=Z$1(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,22)},set:function(Ae){Ae?this.Ff=K(this.Ff,22):this.Ff=Z$1(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,23)},set:function(Ae){Ae?this.Ff=K(this.Ff,23):this.Ff=Z$1(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,27)},set:function(Ae){Ae?this.Ff=K(this.Ff,27):this.Ff=Z$1(this.Ff,27)}}),this.hasAppearanceStream=!1};H(ft,lt);var dt=function(){ft.call(this),this.fontName="helvetica",this.combo=!1};H(dt,ft);var pt=function(){dt.call(this),this.combo=!0};H(pt,dt);var gt=function(){pt.call(this),this.edit=!0};H(gt,pt);var mt=function(){lt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,15)},set:function(Ae){Ae?this.Ff=K(this.Ff,15):this.Ff=Z$1(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,16)},set:function(Ae){Ae?this.Ff=K(this.Ff,16):this.Ff=Z$1(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,17)},set:function(Ae){Ae?this.Ff=K(this.Ff,17):this.Ff=Z$1(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,26)},set:function(Ae){Ae?this.Ff=K(this.Ff,26):this.Ff=Z$1(this.Ff,26)}});var Be,St={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ae=function(_e){return _e};if(this.scope&&(Ae=this.scope.internal.getEncryptor(this.objId)),Object.keys(St).length!==0){var Ee,Ce=[];for(Ee in Ce.push("<<"),St)Ce.push("/"+Ee+" ("+R(Ae(St[Ee]))+")");return Ce.push(">>"),Ce.join(`
`)}},set:function(Ae){_typeof$3(Ae)==="object"&&(St=Ae)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return St.CA||""},set:function(Ae){typeof Ae=="string"&&(St.CA=Ae)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Be},set:function(Ae){Be=Ae}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Be.substr(1,Be.length-1)},set:function(Ae){Be="/"+Ae}})};H(mt,lt);var vt=function(){mt.call(this),this.pushButton=!0};H(vt,mt);var bt=function(){mt.call(this),this.radio=!0,this.pushButton=!1;var Be=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Be},set:function(St){Be=St!==void 0?St:[]}})};H(bt,mt);var yt=function(){var Be,St;lt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Be},set:function(Ce){Be=Ce}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return St},set:function(Ce){St=Ce}});var Ae,Ee={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ce=function(Se){return Se};this.scope&&(Ce=this.scope.internal.getEncryptor(this.objId));var _e,Te=[];for(_e in Te.push("<<"),Ee)Te.push("/"+_e+" ("+R(Ce(Ee[_e]))+")");return Te.push(">>"),Te.join(`
`)},set:function(Ce){_typeof$3(Ce)==="object"&&(Ee=Ce)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ee.CA||""},set:function(Ce){typeof Ce=="string"&&(Ee.CA=Ce)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ae},set:function(Ce){Ae=Ce}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ae.substr(1,Ae.length-1)},set:function(Ce){Ae="/"+Ce}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=At.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};H(yt,lt),bt.prototype.setAppearance=function(Be){if(!("createAppearanceStream"in Be)||!("getCA"in Be))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var St in this.Kids)if(this.Kids.hasOwnProperty(St)){var Ae=this.Kids[St];Ae.appearanceStreamContent=Be.createAppearanceStream(Ae.optionName),Ae.caption=Be.getCA()}},bt.prototype.createOption=function(Be){var St=new yt;return St.Parent=this,St.optionName=Be,this.Kids.push(St),xt.call(this.scope,St),St};var wt=function(){mt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=At.CheckBox.createAppearanceStream()};H(wt,mt);var Nt=function(){lt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,13)},set:function(St){St?this.Ff=K(this.Ff,13):this.Ff=Z$1(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,21)},set:function(St){St?this.Ff=K(this.Ff,21):this.Ff=Z$1(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,23)},set:function(St){St?this.Ff=K(this.Ff,23):this.Ff=Z$1(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,24)},set:function(St){St?this.Ff=K(this.Ff,24):this.Ff=Z$1(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,25)},set:function(St){St?this.Ff=K(this.Ff,25):this.Ff=Z$1(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,26)},set:function(St){St?this.Ff=K(this.Ff,26):this.Ff=Z$1(this.Ff,26)}});var Be=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Be},set:function(St){Be=St}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Be},set:function(St){Number.isInteger(St)&&(Be=St)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};H(Nt,lt);var Lt=function(){Nt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!X(this.Ff,14)},set:function(Be){Be?this.Ff=K(this.Ff,14):this.Ff=Z$1(this.Ff,14)}}),this.password=!0};H(Lt,Nt);var At={CheckBox:{createAppearanceStream:function(){return{N:{On:At.CheckBox.YesNormal},D:{On:At.CheckBox.YesPushDown,Off:At.CheckBox.OffPushDown}}},YesPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id,Ce=Be.scope.__private__.encodeColorString(Be.color),_e=tt(Be,Be.caption);return Ae.push("0.749023 g"),Ae.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ae.push("f"),Ae.push("BMC"),Ae.push("q"),Ae.push("0 0 1 rg"),Ae.push("/"+Ee+" "+U$1(_e.fontSize)+" Tf "+Ce),Ae.push("BT"),Ae.push(_e.text),Ae.push("ET"),Ae.push("Q"),Ae.push("EMC"),St.stream=Ae.join(`
`),St},YesNormal:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id,Ee=Be.scope.__private__.encodeColorString(Be.color),Ce=[],_e=At.internal.getHeight(Be),Te=At.internal.getWidth(Be),Se=tt(Be,Be.caption);return Ce.push("1 g"),Ce.push("0 0 "+U$1(Te)+" "+U$1(_e)+" re"),Ce.push("f"),Ce.push("q"),Ce.push("0 0 1 rg"),Ce.push("0 0 "+U$1(Te-1)+" "+U$1(_e-1)+" re"),Ce.push("W"),Ce.push("n"),Ce.push("0 g"),Ce.push("BT"),Ce.push("/"+Ae+" "+U$1(Se.fontSize)+" Tf "+Ee),Ce.push(Se.text),Ce.push("ET"),Ce.push("Q"),St.stream=Ce.join(`
`),St},OffPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[];return Ae.push("0.749023 g"),Ae.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ae.push("f"),St.stream=Ae.join(`
`),St}},RadioButton:{Circle:{createAppearanceStream:function(Be){var St={D:{Off:At.RadioButton.Circle.OffPushDown},N:{}};return St.N[Be]=At.RadioButton.Circle.YesNormal,St.D[Be]=At.RadioButton.Circle.YesPushDown,St},getCA:function(){return"l"},YesNormal:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.getWidth(Be)<=At.internal.getHeight(Be)?At.internal.getWidth(Be)/4:At.internal.getHeight(Be)/4;Ee=Number((.9*Ee).toFixed(5));var Ce=At.internal.Bezier_C,_e=Number((Ee*Ce).toFixed(5));return Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ee+" 0 m"),Ae.push(Ee+" "+_e+" "+_e+" "+Ee+" 0 "+Ee+" c"),Ae.push("-"+_e+" "+Ee+" -"+Ee+" "+_e+" -"+Ee+" 0 c"),Ae.push("-"+Ee+" -"+_e+" -"+_e+" -"+Ee+" 0 -"+Ee+" c"),Ae.push(_e+" -"+Ee+" "+Ee+" -"+_e+" "+Ee+" 0 c"),Ae.push("f"),Ae.push("Q"),St.stream=Ae.join(`
`),St},YesPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.getWidth(Be)<=At.internal.getHeight(Be)?At.internal.getWidth(Be)/4:At.internal.getHeight(Be)/4;Ee=Number((.9*Ee).toFixed(5));var Ce=Number((2*Ee).toFixed(5)),_e=Number((Ce*At.internal.Bezier_C).toFixed(5)),Te=Number((Ee*At.internal.Bezier_C).toFixed(5));return Ae.push("0.749023 g"),Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ce+" 0 m"),Ae.push(Ce+" "+_e+" "+_e+" "+Ce+" 0 "+Ce+" c"),Ae.push("-"+_e+" "+Ce+" -"+Ce+" "+_e+" -"+Ce+" 0 c"),Ae.push("-"+Ce+" -"+_e+" -"+_e+" -"+Ce+" 0 -"+Ce+" c"),Ae.push(_e+" -"+Ce+" "+Ce+" -"+_e+" "+Ce+" 0 c"),Ae.push("f"),Ae.push("Q"),Ae.push("0 g"),Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ee+" 0 m"),Ae.push(Ee+" "+Te+" "+Te+" "+Ee+" 0 "+Ee+" c"),Ae.push("-"+Te+" "+Ee+" -"+Ee+" "+Te+" -"+Ee+" 0 c"),Ae.push("-"+Ee+" -"+Te+" -"+Te+" -"+Ee+" 0 -"+Ee+" c"),Ae.push(Te+" -"+Ee+" "+Ee+" -"+Te+" "+Ee+" 0 c"),Ae.push("f"),Ae.push("Q"),St.stream=Ae.join(`
`),St},OffPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.getWidth(Be)<=At.internal.getHeight(Be)?At.internal.getWidth(Be)/4:At.internal.getHeight(Be)/4;Ee=Number((.9*Ee).toFixed(5));var Ce=Number((2*Ee).toFixed(5)),_e=Number((Ce*At.internal.Bezier_C).toFixed(5));return Ae.push("0.749023 g"),Ae.push("q"),Ae.push("1 0 0 1 "+z$1(At.internal.getWidth(Be)/2)+" "+z$1(At.internal.getHeight(Be)/2)+" cm"),Ae.push(Ce+" 0 m"),Ae.push(Ce+" "+_e+" "+_e+" "+Ce+" 0 "+Ce+" c"),Ae.push("-"+_e+" "+Ce+" -"+Ce+" "+_e+" -"+Ce+" 0 c"),Ae.push("-"+Ce+" -"+_e+" -"+_e+" -"+Ce+" 0 -"+Ce+" c"),Ae.push(_e+" -"+Ce+" "+Ce+" -"+_e+" "+Ce+" 0 c"),Ae.push("f"),Ae.push("Q"),St.stream=Ae.join(`
`),St}},Cross:{createAppearanceStream:function(Be){var St={D:{Off:At.RadioButton.Cross.OffPushDown},N:{}};return St.N[Be]=At.RadioButton.Cross.YesNormal,St.D[Be]=At.RadioButton.Cross.YesPushDown,St},getCA:function(){return"8"},YesNormal:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[],Ee=At.internal.calculateCross(Be);return Ae.push("q"),Ae.push("1 1 "+U$1(At.internal.getWidth(Be)-2)+" "+U$1(At.internal.getHeight(Be)-2)+" re"),Ae.push("W"),Ae.push("n"),Ae.push(U$1(Ee.x1.x)+" "+U$1(Ee.x1.y)+" m"),Ae.push(U$1(Ee.x2.x)+" "+U$1(Ee.x2.y)+" l"),Ae.push(U$1(Ee.x4.x)+" "+U$1(Ee.x4.y)+" m"),Ae.push(U$1(Ee.x3.x)+" "+U$1(Ee.x3.y)+" l"),Ae.push("s"),Ae.push("Q"),St.stream=Ae.join(`
`),St},YesPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=At.internal.calculateCross(Be),Ee=[];return Ee.push("0.749023 g"),Ee.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ee.push("f"),Ee.push("q"),Ee.push("1 1 "+U$1(At.internal.getWidth(Be)-2)+" "+U$1(At.internal.getHeight(Be)-2)+" re"),Ee.push("W"),Ee.push("n"),Ee.push(U$1(Ae.x1.x)+" "+U$1(Ae.x1.y)+" m"),Ee.push(U$1(Ae.x2.x)+" "+U$1(Ae.x2.y)+" l"),Ee.push(U$1(Ae.x4.x)+" "+U$1(Ae.x4.y)+" m"),Ee.push(U$1(Ae.x3.x)+" "+U$1(Ae.x3.y)+" l"),Ee.push("s"),Ee.push("Q"),St.stream=Ee.join(`
`),St},OffPushDown:function(Be){var St=V$1(Be);St.scope=Be.scope;var Ae=[];return Ae.push("0.749023 g"),Ae.push("0 0 "+U$1(At.internal.getWidth(Be))+" "+U$1(At.internal.getHeight(Be))+" re"),Ae.push("f"),St.stream=Ae.join(`
`),St}}},createDefaultAppearanceStream:function(Be){var St=Be.scope.internal.getFont(Be.fontName,Be.fontStyle).id,Ae=Be.scope.__private__.encodeColorString(Be.color);return"/"+St+" "+Be.fontSize+" Tf "+Ae}};At.internal={Bezier_C:.551915024494,calculateCross:function(Be){var St=At.internal.getWidth(Be),Ae=At.internal.getHeight(Be),Ee=Math.min(St,Ae);return{x1:{x:(St-Ee)/2,y:(Ae-Ee)/2+Ee},x2:{x:(St-Ee)/2+Ee,y:(Ae-Ee)/2},x3:{x:(St-Ee)/2,y:(Ae-Ee)/2},x4:{x:(St-Ee)/2+Ee,y:(Ae-Ee)/2+Ee}}}},At.internal.getWidth=function(Be){var St=0;return _typeof$3(Be)==="object"&&(St=W(Be.Rect[2])),St},At.internal.getHeight=function(Be){var St=0;return _typeof$3(Be)==="object"&&(St=W(Be.Rect[3])),St};var xt=q.addField=function(Be){if(at(this,Be),!(Be instanceof lt))throw new Error("Invalid argument passed to jsPDF.addField.");var St;return(St=Be).scope.internal.acroformPlugin.printedOut&&(St.scope.internal.acroformPlugin.printedOut=!1,St.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),St.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(St),Be.page=Be.scope.internal.getCurrentPageInfo().pageNumber,this};q.AcroFormChoiceField=ft,q.AcroFormListBox=dt,q.AcroFormComboBox=pt,q.AcroFormEditBox=gt,q.AcroFormButton=mt,q.AcroFormPushButton=vt,q.AcroFormRadioButton=bt,q.AcroFormCheckBox=wt,q.AcroFormTextField=Nt,q.AcroFormPasswordField=Lt,q.AcroFormAppearance=At,q.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:pt,EditBox:gt,Button:mt,PushButton:vt,RadioButton:bt,CheckBox:wt,TextField:Nt,PasswordField:Lt,Appearance:At},E$1.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:pt,EditBox:gt,Button:mt,PushButton:vt,RadioButton:bt,CheckBox:wt,TextField:Nt,PasswordField:Lt,Appearance:At};function _t(Be){return Be.reduce(function(St,Ae,Ee){return St[Ae]=Ee,St},{})}(function(Be){Be.__addimage__={};var St="UNKNOWN",Ae={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Ee=Be.__addimage__.getImageFileTypeByImageData=function(er,ir){var gr,vr,Or,Nr,Hr,Dr=St;if((ir=ir||St)==="RGBA"||er.data!==void 0&&er.data instanceof Uint8ClampedArray&&"height"in er&&"width"in er)return"RGBA";if(Oe(er))for(Hr in Ae)for(Or=Ae[Hr],gr=0;gr<Or.length;gr+=1){for(Nr=!0,vr=0;vr<Or[gr].length;vr+=1)if(Or[gr][vr]!==void 0&&Or[gr][vr]!==er[vr]){Nr=!1;break}if(Nr===!0){Dr=Hr;break}}else for(Hr in Ae)for(Or=Ae[Hr],gr=0;gr<Or.length;gr+=1){for(Nr=!0,vr=0;vr<Or[gr].length;vr+=1)if(Or[gr][vr]!==void 0&&Or[gr][vr]!==er.charCodeAt(vr)){Nr=!1;break}if(Nr===!0){Dr=Hr;break}}return Dr===St&&ir!==St&&(Dr=ir),Dr},Ce=function er(ir){for(var gr=this.internal.write,vr=this.internal.putStream,Or=(0,this.internal.getFilters)();Or.indexOf("FlateEncode")!==-1;)Or.splice(Or.indexOf("FlateEncode"),1);ir.objectId=this.internal.newObject();var Nr=[];if(Nr.push({key:"Type",value:"/XObject"}),Nr.push({key:"Subtype",value:"/Image"}),Nr.push({key:"Width",value:ir.width}),Nr.push({key:"Height",value:ir.height}),ir.colorSpace===nr.INDEXED?Nr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(ir.palette.length/3-1)+" "+("sMask"in ir&&ir.sMask!==void 0?ir.objectId+2:ir.objectId+1)+" 0 R]"}):(Nr.push({key:"ColorSpace",value:"/"+ir.colorSpace}),ir.colorSpace===nr.DEVICE_CMYK&&Nr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Nr.push({key:"BitsPerComponent",value:ir.bitsPerComponent}),"decodeParameters"in ir&&ir.decodeParameters!==void 0&&Nr.push({key:"DecodeParms",value:"<<"+ir.decodeParameters+">>"}),"transparency"in ir&&Array.isArray(ir.transparency)){for(var Hr="",Dr=0,kr=ir.transparency.length;Dr<kr;Dr++)Hr+=ir.transparency[Dr]+" "+ir.transparency[Dr]+" ";Nr.push({key:"Mask",value:"["+Hr+"]"})}ir.sMask!==void 0&&Nr.push({key:"SMask",value:ir.objectId+1+" 0 R"});var qr=ir.filter!==void 0?["/"+ir.filter]:void 0;if(vr({data:ir.data,additionalKeyValues:Nr,alreadyAppliedFilters:qr,objectId:ir.objectId}),gr("endobj"),"sMask"in ir&&ir.sMask!==void 0){var An="/Predictor "+ir.predictor+" /Colors 1 /BitsPerComponent "+ir.bitsPerComponent+" /Columns "+ir.width,lr={width:ir.width,height:ir.height,colorSpace:"DeviceGray",bitsPerComponent:ir.bitsPerComponent,decodeParameters:An,data:ir.sMask};"filter"in ir&&(lr.filter=ir.filter),er.call(this,lr)}if(ir.colorSpace===nr.INDEXED){var Tr=this.internal.newObject();vr({data:We(new Uint8Array(ir.palette)),objectId:Tr}),gr("endobj")}},_e=function(){var er=this.internal.collections.addImage_images;for(var ir in er)Ce.call(this,er[ir])},Te=function(){var er,ir=this.internal.collections.addImage_images,gr=this.internal.write;for(var vr in ir)gr("/I"+(er=ir[vr]).index,er.objectId,"0","R")},Se=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",_e),this.internal.events.subscribe("putXobjectDict",Te))},xe=function(){var er=this.internal.collections.addImage_images;return Se.call(this),er},Ie=function(){return Object.keys(this.internal.collections.addImage_images).length},Ue=function(er){return typeof Be["process"+er.toUpperCase()]=="function"},$e=function(er){return _typeof$3(er)==="object"&&er.nodeType===1},Me=function(er,ir){if(er.nodeName==="IMG"&&er.hasAttribute("src")){var gr=""+er.getAttribute("src");if(gr.indexOf("data:image/")===0)return u$2(unescape(gr).split("base64,").pop());var vr=Be.loadFile(gr,!0);if(vr!==void 0)return vr}if(er.nodeName==="CANVAS"){if(er.width===0||er.height===0)throw new Error("Given canvas must have data. Canvas width: "+er.width+", height: "+er.height);var Or;switch(ir){case"PNG":Or="image/png";break;case"WEBP":Or="image/webp";break;case"JPEG":case"JPG":default:Or="image/jpeg"}return u$2(er.toDataURL(Or,1).split("base64,").pop())}},Re=function(er){var ir=this.internal.collections.addImage_images;if(ir){for(var gr in ir)if(er===ir[gr].alias)return ir[gr]}},ze=function(er,ir,gr){return er||ir||(er=-96,ir=-96),er<0&&(er=-1*gr.width*72/er/this.internal.scaleFactor),ir<0&&(ir=-1*gr.height*72/ir/this.internal.scaleFactor),er===0&&(er=ir*gr.width/gr.height),ir===0&&(ir=er*gr.height/gr.width),[er,ir]},Ve=function(er,ir,gr,vr,Or,Nr){var Hr=ze.call(this,gr,vr,Or),Dr=this.internal.getCoordinateString,kr=this.internal.getVerticalCoordinateString,qr=xe.call(this);if(gr=Hr[0],vr=Hr[1],qr[Or.index]=Or,Nr){Nr*=Math.PI/180;var An=Math.cos(Nr),lr=Math.sin(Nr),Tr=function($r){return $r.toFixed(4)},xr=[Tr(An),Tr(lr),Tr(-1*lr),Tr(An),0,0,"cm"]}this.internal.write("q"),Nr?(this.internal.write([1,"0","0",1,Dr(er),kr(ir+vr),"cm"].join(" ")),this.internal.write(xr.join(" ")),this.internal.write([Dr(gr),"0","0",Dr(vr),"0","0","cm"].join(" "))):this.internal.write([Dr(gr),"0","0",Dr(vr),Dr(er),kr(ir+vr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Or.index+" Do"),this.internal.write("Q")},nr=Be.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Be.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Ze=Be.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},ar=Be.__addimage__.sHashCode=function(er){var ir,gr,vr=0;if(typeof er=="string")for(gr=er.length,ir=0;ir<gr;ir++)vr=(vr<<5)-vr+er.charCodeAt(ir),vr|=0;else if(Oe(er))for(gr=er.byteLength/2,ir=0;ir<gr;ir++)vr=(vr<<5)-vr+er[ir],vr|=0;return vr},fr=Be.__addimage__.validateStringAsBase64=function(er){(er=er||"").toString().trim();var ir=!0;return er.length===0&&(ir=!1),er.length%4!=0&&(ir=!1),/^[A-Za-z0-9+/]+$/.test(er.substr(0,er.length-2))===!1&&(ir=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(er.substr(-2))===!1&&(ir=!1),ir},Ye=Be.__addimage__.extractImageFromDataUrl=function(er){var ir=(er=er||"").split("base64,"),gr=null;if(ir.length===2){var vr=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(ir[0]);Array.isArray(vr)&&(gr={mimeType:vr[1],charset:vr[2],data:ir[1]})}return gr},Ar=Be.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};Be.__addimage__.isArrayBuffer=function(er){return Ar()&&er instanceof ArrayBuffer};var Oe=Be.__addimage__.isArrayBufferView=function(er){return Ar()&&typeof Uint32Array<"u"&&(er instanceof Int8Array||er instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&er instanceof Uint8ClampedArray||er instanceof Int16Array||er instanceof Uint16Array||er instanceof Int32Array||er instanceof Uint32Array||er instanceof Float32Array||er instanceof Float64Array)},Je=Be.__addimage__.binaryStringToUint8Array=function(er){for(var ir=er.length,gr=new Uint8Array(ir),vr=0;vr<ir;vr++)gr[vr]=er.charCodeAt(vr);return gr},We=Be.__addimage__.arrayBufferToBinaryString=function(er){for(var ir="",gr=Oe(er)?er:new Uint8Array(er),vr=0;vr<gr.length;vr+=8192)ir+=String.fromCharCode.apply(null,gr.subarray(vr,vr+8192));return ir};Be.addImage=function(){var er,ir,gr,vr,Or,Nr,Hr,Dr,kr;if(typeof arguments[1]=="number"?(ir=St,gr=arguments[1],vr=arguments[2],Or=arguments[3],Nr=arguments[4],Hr=arguments[5],Dr=arguments[6],kr=arguments[7]):(ir=arguments[1],gr=arguments[2],vr=arguments[3],Or=arguments[4],Nr=arguments[5],Hr=arguments[6],Dr=arguments[7],kr=arguments[8]),_typeof$3(er=arguments[0])==="object"&&!$e(er)&&"imageData"in er){var qr=er;er=qr.imageData,ir=qr.format||ir||St,gr=qr.x||gr||0,vr=qr.y||vr||0,Or=qr.w||qr.width||Or,Nr=qr.h||qr.height||Nr,Hr=qr.alias||Hr,Dr=qr.compression||Dr,kr=qr.rotation||qr.angle||kr}var An=this.internal.getFilters();if(Dr===void 0&&An.indexOf("FlateEncode")!==-1&&(Dr="SLOW"),isNaN(gr)||isNaN(vr))throw new Error("Invalid coordinates passed to jsPDF.addImage");Se.call(this);var lr=or.call(this,er,ir,Hr,Dr);return Ve.call(this,gr,vr,Or,Nr,lr,kr),this};var or=function(er,ir,gr,vr){var Or,Nr,Hr;if(typeof er=="string"&&Ee(er)===St){er=unescape(er);var Dr=mr(er,!1);(Dr!==""||(Dr=Be.loadFile(er,!0))!==void 0)&&(er=Dr)}if($e(er)&&(er=Me(er,ir)),ir=Ee(er,ir),!Ue(ir))throw new Error("addImage does not support files of type '"+ir+"', please ensure that a plugin for '"+ir+"' support is added.");if(((Hr=gr)==null||Hr.length===0)&&(gr=function(kr){return typeof kr=="string"||Oe(kr)?ar(kr):Oe(kr.data)?ar(kr.data):null}(er)),(Or=Re.call(this,gr))||(Ar()&&(er instanceof Uint8Array||ir==="RGBA"||(Nr=er,er=Je(er))),Or=this["process"+ir.toUpperCase()](er,Ie.call(this),gr,function(kr){return kr&&typeof kr=="string"&&(kr=kr.toUpperCase()),kr in Be.image_compression?kr:Ze.NONE}(vr),Nr)),!Or)throw new Error("An unknown error occurred whilst processing the image.");return Or},mr=Be.__addimage__.convertBase64ToBinaryString=function(er,ir){var gr;ir=typeof ir!="boolean"||ir;var vr,Or="";if(typeof er=="string"){vr=(gr=Ye(er))!==null?gr.data:er;try{Or=u$2(vr)}catch(Nr){if(ir)throw fr(vr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Nr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Or};Be.getImageProperties=function(er){var ir,gr,vr="";if($e(er)&&(er=Me(er)),typeof er=="string"&&Ee(er)===St&&((vr=mr(er,!1))===""&&(vr=Be.loadFile(er)||""),er=vr),gr=Ee(er),!Ue(gr))throw new Error("addImage does not support files of type '"+gr+"', please ensure that a plugin for '"+gr+"' support is added.");if(!Ar()||er instanceof Uint8Array||(er=Je(er)),!(ir=this["process"+gr.toUpperCase()](er)))throw new Error("An unknown error occurred whilst processing the image");return ir.fileType=gr,ir}})(E$1.API),function(Be){var St=function(Ae){if(Ae!==void 0&&Ae!="")return!0};E$1.API.events.push(["addPage",function(Ae){this.internal.getPageInfo(Ae.pageNumber).pageContext.annotations=[]}]),Be.events.push(["putPage",function(Ae){for(var Ee,Ce,_e,Te=this.internal.getCoordinateString,Se=this.internal.getVerticalCoordinateString,xe=this.internal.getPageInfoByObjId(Ae.objId),Ie=Ae.pageContext.annotations,Ue=!1,$e=0;$e<Ie.length&&!Ue;$e++)switch((Ee=Ie[$e]).type){case"link":(St(Ee.options.url)||St(Ee.options.pageNumber))&&(Ue=!0);break;case"reference":case"text":case"freetext":Ue=!0}if(Ue!=0){this.internal.write("/Annots [");for(var Me=0;Me<Ie.length;Me++){Ee=Ie[Me];var Re=this.internal.pdfEscape,ze=this.internal.getEncryptor(Ae.objId);switch(Ee.type){case"reference":this.internal.write(" "+Ee.object.objId+" 0 R ");break;case"text":var Ve=this.internal.newAdditionalObject(),nr=this.internal.newAdditionalObject(),Ze=this.internal.getEncryptor(Ve.objId),ar=Ee.title||"Note";_e="<</Type /Annot /Subtype /Text "+(Ce="/Rect ["+Te(Ee.bounds.x)+" "+Se(Ee.bounds.y+Ee.bounds.h)+" "+Te(Ee.bounds.x+Ee.bounds.w)+" "+Se(Ee.bounds.y)+"] ")+"/Contents ("+Re(Ze(Ee.contents))+")",_e+=" /Popup "+nr.objId+" 0 R",_e+=" /P "+xe.objId+" 0 R",_e+=" /T ("+Re(Ze(ar))+") >>",Ve.content=_e;var fr=Ve.objId+" 0 R";_e="<</Type /Annot /Subtype /Popup "+(Ce="/Rect ["+Te(Ee.bounds.x+30)+" "+Se(Ee.bounds.y+Ee.bounds.h)+" "+Te(Ee.bounds.x+Ee.bounds.w+30)+" "+Se(Ee.bounds.y)+"] ")+" /Parent "+fr,Ee.open&&(_e+=" /Open true"),_e+=" >>",nr.content=_e,this.internal.write(Ve.objId,"0 R",nr.objId,"0 R");break;case"freetext":Ce="/Rect ["+Te(Ee.bounds.x)+" "+Se(Ee.bounds.y)+" "+Te(Ee.bounds.x+Ee.bounds.w)+" "+Se(Ee.bounds.y+Ee.bounds.h)+"] ";var Ye=Ee.color||"#000000";_e="<</Type /Annot /Subtype /FreeText "+Ce+"/Contents ("+Re(ze(Ee.contents))+")",_e+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Ye+")",_e+=" /Border [0 0 0]",_e+=" >>",this.internal.write(_e);break;case"link":if(Ee.options.name){var Ar=this.annotations._nameMap[Ee.options.name];Ee.options.pageNumber=Ar.page,Ee.options.top=Ar.y}else Ee.options.top||(Ee.options.top=0);if(Ce="/Rect ["+Ee.finalBounds.x+" "+Ee.finalBounds.y+" "+Ee.finalBounds.w+" "+Ee.finalBounds.h+"] ",_e="",Ee.options.url)_e="<</Type /Annot /Subtype /Link "+Ce+"/Border [0 0 0] /A <</S /URI /URI ("+Re(ze(Ee.options.url))+") >>";else if(Ee.options.pageNumber)switch(_e="<</Type /Annot /Subtype /Link "+Ce+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ee.options.pageNumber).objId+" 0 R",Ee.options.magFactor=Ee.options.magFactor||"XYZ",Ee.options.magFactor){case"Fit":_e+=" /Fit]";break;case"FitH":_e+=" /FitH "+Ee.options.top+"]";break;case"FitV":Ee.options.left=Ee.options.left||0,_e+=" /FitV "+Ee.options.left+"]";break;case"XYZ":default:var Oe=Se(Ee.options.top);Ee.options.left=Ee.options.left||0,Ee.options.zoom===void 0&&(Ee.options.zoom=0),_e+=" /XYZ "+Ee.options.left+" "+Oe+" "+Ee.options.zoom+"]"}_e!=""&&(_e+=" >>",this.internal.write(_e))}}this.internal.write("]")}}]),Be.createAnnotation=function(Ae){var Ee=this.internal.getCurrentPageInfo();switch(Ae.type){case"link":this.link(Ae.bounds.x,Ae.bounds.y,Ae.bounds.w,Ae.bounds.h,Ae);break;case"text":case"freetext":Ee.pageContext.annotations.push(Ae)}},Be.link=function(Ae,Ee,Ce,_e,Te){var Se=this.internal.getCurrentPageInfo(),xe=this.internal.getCoordinateString,Ie=this.internal.getVerticalCoordinateString;Se.pageContext.annotations.push({finalBounds:{x:xe(Ae),y:Ie(Ee),w:xe(Ae+Ce),h:Ie(Ee+_e)},options:Te,type:"link"})},Be.textWithLink=function(Ae,Ee,Ce,_e){var Te,Se,xe=this.getTextWidth(Ae),Ie=this.internal.getLineHeight()/this.internal.scaleFactor;if(_e.maxWidth!==void 0){Se=_e.maxWidth;var Ue=this.splitTextToSize(Ae,Se).length;Te=Math.ceil(Ie*Ue)}else Se=xe,Te=Ie;return this.text(Ae,Ee,Ce,_e),Ce+=.2*Ie,_e.align==="center"&&(Ee-=xe/2),_e.align==="right"&&(Ee-=xe),this.link(Ee,Ce-Ie,Se,Te,_e),xe},Be.getTextWidth=function(Ae){var Ee=this.internal.getFontSize();return this.getStringUnitWidth(Ae)*Ee/this.internal.scaleFactor}}(E$1.API),function(Be){var St={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]},Ae={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}},Ee={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ce=[1570,1571,1573,1575];Be.__arabicParser__={};var _e=Be.__arabicParser__.isInArabicSubstitutionA=function(Ve){return St[Ve.charCodeAt(0)]!==void 0},Te=Be.__arabicParser__.isArabicLetter=function(Ve){return typeof Ve=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Ve)},Se=Be.__arabicParser__.isArabicEndLetter=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length<=2},xe=Be.__arabicParser__.isArabicAlfLetter=function(Ve){return Te(Ve)&&Ce.indexOf(Ve.charCodeAt(0))>=0};Be.__arabicParser__.arabicLetterHasIsolatedForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length>=1};var Ie=Be.__arabicParser__.arabicLetterHasFinalForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length>=2};Be.__arabicParser__.arabicLetterHasInitialForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length>=3};var Ue=Be.__arabicParser__.arabicLetterHasMedialForm=function(Ve){return Te(Ve)&&_e(Ve)&&St[Ve.charCodeAt(0)].length==4},$e=Be.__arabicParser__.resolveLigatures=function(Ve){var nr=0,Ze=Ae,ar="",fr=0;for(nr=0;nr<Ve.length;nr+=1)Ze[Ve.charCodeAt(nr)]!==void 0?(fr++,typeof(Ze=Ze[Ve.charCodeAt(nr)])=="number"&&(ar+=String.fromCharCode(Ze),Ze=Ae,fr=0),nr===Ve.length-1&&(Ze=Ae,ar+=Ve.charAt(nr-(fr-1)),nr-=fr-1,fr=0)):(Ze=Ae,ar+=Ve.charAt(nr-fr),nr-=fr,fr=0);return ar};Be.__arabicParser__.isArabicDiacritic=function(Ve){return Ve!==void 0&&Ee[Ve.charCodeAt(0)]!==void 0};var Me=Be.__arabicParser__.getCorrectForm=function(Ve,nr,Ze){return Te(Ve)?_e(Ve)===!1?-1:!Ie(Ve)||!Te(nr)&&!Te(Ze)||!Te(Ze)&&Se(nr)||Se(Ve)&&!Te(nr)||Se(Ve)&&xe(nr)||Se(Ve)&&Se(nr)?0:Ue(Ve)&&Te(nr)&&!Se(nr)&&Te(Ze)&&Ie(Ze)?3:Se(Ve)||!Te(Ze)?1:2:-1},Re=function(Ve){var nr=0,Ze=0,ar=0,fr="",Ye="",Ar="",Oe=(Ve=Ve||"").split("\\s+"),Je=[];for(nr=0;nr<Oe.length;nr+=1){for(Je.push(""),Ze=0;Ze<Oe[nr].length;Ze+=1)fr=Oe[nr][Ze],Ye=Oe[nr][Ze-1],Ar=Oe[nr][Ze+1],Te(fr)?(ar=Me(fr,Ye,Ar),Je[nr]+=ar!==-1?String.fromCharCode(St[fr.charCodeAt(0)][ar]):fr):Je[nr]+=fr;Je[nr]=$e(Je[nr])}return Je.join(" ")},ze=Be.__arabicParser__.processArabic=Be.processArabic=function(){var Ve,nr=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Ze=[];if(Array.isArray(nr)){var ar=0;for(Ze=[],ar=0;ar<nr.length;ar+=1)Array.isArray(nr[ar])?Ze.push([Re(nr[ar][0]),nr[ar][1],nr[ar][2]]):Ze.push([Re(nr[ar])]);Ve=Ze}else Ve=Re(nr);return typeof arguments[0]=="string"?Ve:(arguments[0].text=Ve,arguments[0])};Be.events.push(["preProcessText",ze])}(E$1.API),E$1.API.autoPrint=function(Be){var St;switch((Be=Be||{}).variant=Be.variant||"non-conform",Be.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){St=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+St+" 0 R")})}return this},function(Be){var St=function(){var Ae=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ae},set:function(Se){Ae=Se}});var Ee=150;Object.defineProperty(this,"width",{get:function(){return Ee},set:function(Se){Ee=isNaN(Se)||Number.isInteger(Se)===!1||Se<0?150:Se,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ee+1)}});var Ce=300;Object.defineProperty(this,"height",{get:function(){return Ce},set:function(Se){Ce=isNaN(Se)||Number.isInteger(Se)===!1||Se<0?300:Se,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ce+1)}});var _e=[];Object.defineProperty(this,"childNodes",{get:function(){return _e},set:function(Se){_e=Se}});var Te={};Object.defineProperty(this,"style",{get:function(){return Te},set:function(Se){Te=Se}}),Object.defineProperty(this,"parentNode",{})};St.prototype.getContext=function(Ae,Ee){var Ce;if((Ae=Ae||"2d")!=="2d")return null;for(Ce in Ee)this.pdf.context2d.hasOwnProperty(Ce)&&(this.pdf.context2d[Ce]=Ee[Ce]);return this.pdf.context2d._canvas=this,this.pdf.context2d},St.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Be.events.push(["initialized",function(){this.canvas=new St,this.canvas.pdf=this}])}(E$1.API),function(Be){var St={left:0,top:0,bottom:0,right:0},Ae=!1,Ee=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},St),this.internal.__cell__.margins.width=this.getPageWidth(),Ce.call(this))},Ce=function(){this.internal.__cell__.lastCell=new _e,this.internal.__cell__.pages=1},_e=function(){var xe=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return xe},set:function(Ve){xe=Ve}});var Ie=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ie},set:function(Ve){Ie=Ve}});var Ue=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Ue},set:function(Ve){Ue=Ve}});var $e=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return $e},set:function(Ve){$e=Ve}});var Me=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Me},set:function(Ve){Me=Ve}});var Re=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Re},set:function(Ve){Re=Ve}});var ze=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return ze},set:function(Ve){ze=Ve}}),this};_e.prototype.clone=function(){return new _e(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},_e.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Be.setHeaderFunction=function(xe){return Ee.call(this),this.internal.__cell__.headerFunction=typeof xe=="function"?xe:void 0,this},Be.getTextDimensions=function(xe,Ie){Ee.call(this);var Ue=(Ie=Ie||{}).fontSize||this.getFontSize(),$e=Ie.font||this.getFont(),Me=Ie.scaleFactor||this.internal.scaleFactor,Re=0,ze=0,Ve=0,nr=this;if(!Array.isArray(xe)&&typeof xe!="string"){if(typeof xe!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");xe=String(xe)}var Ze=Ie.maxWidth;Ze>0?typeof xe=="string"?xe=this.splitTextToSize(xe,Ze):Object.prototype.toString.call(xe)==="[object Array]"&&(xe=xe.reduce(function(fr,Ye){return fr.concat(nr.splitTextToSize(Ye,Ze))},[])):xe=Array.isArray(xe)?xe:[xe];for(var ar=0;ar<xe.length;ar++)Re<(Ve=this.getStringUnitWidth(xe[ar],{font:$e})*Ue)&&(Re=Ve);return Re!==0&&(ze=xe.length),{w:Re/=Me,h:Math.max((ze*Ue*this.getLineHeightFactor()-Ue*(this.getLineHeightFactor()-1))/Me,0)}},Be.cellAddPage=function(){Ee.call(this),this.addPage();var xe=this.internal.__cell__.margins||St;return this.internal.__cell__.lastCell=new _e(xe.left,xe.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Te=Be.cell=function(){var xe;xe=arguments[0]instanceof _e?arguments[0]:new _e(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ee.call(this);var Ie=this.internal.__cell__.lastCell,Ue=this.internal.__cell__.padding,$e=this.internal.__cell__.margins||St,Me=this.internal.__cell__.tableHeaderRow,Re=this.internal.__cell__.printHeaders;return Ie.lineNumber!==void 0&&(Ie.lineNumber===xe.lineNumber?(xe.x=(Ie.x||0)+(Ie.width||0),xe.y=Ie.y||0):Ie.y+Ie.height+xe.height+$e.bottom>this.getPageHeight()?(this.cellAddPage(),xe.y=$e.top,Re&&Me&&(this.printHeaderRow(xe.lineNumber,!0),xe.y+=Me[0].height)):xe.y=Ie.y+Ie.height||xe.y),xe.text[0]!==void 0&&(this.rect(xe.x,xe.y,xe.width,xe.height,Ae===!0?"FD":void 0),xe.align==="right"?this.text(xe.text,xe.x+xe.width-Ue,xe.y+Ue,{align:"right",baseline:"top"}):xe.align==="center"?this.text(xe.text,xe.x+xe.width/2,xe.y+Ue,{align:"center",baseline:"top",maxWidth:xe.width-Ue-Ue}):this.text(xe.text,xe.x+Ue,xe.y+Ue,{align:"left",baseline:"top",maxWidth:xe.width-Ue-Ue})),this.internal.__cell__.lastCell=xe,this};Be.table=function(xe,Ie,Ue,$e,Me){if(Ee.call(this),!Ue)throw new Error("No data for PDF table.");var Re,ze,Ve,nr,Ze=[],ar=[],fr=[],Ye={},Ar={},Oe=[],Je=[],We=(Me=Me||{}).autoSize||!1,or=Me.printHeaders!==!1,mr=Me.css&&Me.css["font-size"]!==void 0?16*Me.css["font-size"]:Me.fontSize||12,er=Me.margins||Object.assign({width:this.getPageWidth()},St),ir=typeof Me.padding=="number"?Me.padding:3,gr=Me.headerBackgroundColor||"#c8c8c8",vr=Me.headerTextColor||"#000";if(Ce.call(this),this.internal.__cell__.printHeaders=or,this.internal.__cell__.margins=er,this.internal.__cell__.table_font_size=mr,this.internal.__cell__.padding=ir,this.internal.__cell__.headerBackgroundColor=gr,this.internal.__cell__.headerTextColor=vr,this.setFontSize(mr),$e==null)ar=Ze=Object.keys(Ue[0]),fr=Ze.map(function(){return"left"});else if(Array.isArray($e)&&_typeof$3($e[0])==="object")for(Ze=$e.map(function(qr){return qr.name}),ar=$e.map(function(qr){return qr.prompt||qr.name||""}),fr=$e.map(function(qr){return qr.align||"left"}),Re=0;Re<$e.length;Re+=1)Ar[$e[Re].name]=$e[Re].width*(19.049976/25.4);else Array.isArray($e)&&typeof $e[0]=="string"&&(ar=Ze=$e,fr=Ze.map(function(){return"left"}));if(We||Array.isArray($e)&&typeof $e[0]=="string")for(Re=0;Re<Ze.length;Re+=1){for(Ye[nr=Ze[Re]]=Ue.map(function(qr){return qr[nr]}),this.setFont(void 0,"bold"),Oe.push(this.getTextDimensions(ar[Re],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),ze=Ye[nr],this.setFont(void 0,"normal"),Ve=0;Ve<ze.length;Ve+=1)Oe.push(this.getTextDimensions(ze[Ve],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ar[nr]=Math.max.apply(null,Oe)+ir+ir,Oe=[]}if(or){var Or={};for(Re=0;Re<Ze.length;Re+=1)Or[Ze[Re]]={},Or[Ze[Re]].text=ar[Re],Or[Ze[Re]].align=fr[Re];var Nr=Se.call(this,Or,Ar);Je=Ze.map(function(qr){return new _e(xe,Ie,Ar[qr],Nr,Or[qr].text,void 0,Or[qr].align)}),this.setTableHeaderRow(Je),this.printHeaderRow(1,!1)}var Hr=$e.reduce(function(qr,An){return qr[An.name]=An.align,qr},{});for(Re=0;Re<Ue.length;Re+=1){"rowStart"in Me&&Me.rowStart instanceof Function&&Me.rowStart({row:Re,data:Ue[Re]},this);var Dr=Se.call(this,Ue[Re],Ar);for(Ve=0;Ve<Ze.length;Ve+=1){var kr=Ue[Re][Ze[Ve]];"cellStart"in Me&&Me.cellStart instanceof Function&&Me.cellStart({row:Re,col:Ve,data:kr},this),Te.call(this,new _e(xe,Ie,Ar[Ze[Ve]],Dr,kr,Re+2,Hr[Ze[Ve]]))}}return this.internal.__cell__.table_x=xe,this.internal.__cell__.table_y=Ie,this};var Se=function(xe,Ie){var Ue=this.internal.__cell__.padding,$e=this.internal.__cell__.table_font_size,Me=this.internal.scaleFactor;return Object.keys(xe).map(function(Re){var ze=xe[Re];return this.splitTextToSize(ze.hasOwnProperty("text")?ze.text:ze,Ie[Re]-Ue-Ue)},this).map(function(Re){return this.getLineHeightFactor()*Re.length*$e/Me+Ue+Ue},this).reduce(function(Re,ze){return Math.max(Re,ze)},0)};Be.setTableHeaderRow=function(xe){Ee.call(this),this.internal.__cell__.tableHeaderRow=xe},Be.printHeaderRow=function(xe,Ie){if(Ee.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Ue;if(Ae=!0,typeof this.internal.__cell__.headerFunction=="function"){var $e=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new _e($e[0],$e[1],$e[2],$e[3],void 0,-1)}this.setFont(void 0,"bold");for(var Me=[],Re=0;Re<this.internal.__cell__.tableHeaderRow.length;Re+=1){Ue=this.internal.__cell__.tableHeaderRow[Re].clone(),Ie&&(Ue.y=this.internal.__cell__.margins.top||0,Me.push(Ue)),Ue.lineNumber=xe;var ze=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Te.call(this,Ue),this.setTextColor(ze)}Me.length>0&&this.setTableHeaderRow(Me),this.setFont(void 0,"normal"),Ae=!1}}(E$1.API);var Pt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},kt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],It=_t(kt),Ft=[100,200,300,400,500,600,700,800,900],Ct=_t(Ft);function jt(Be){var St=Be.family.replace(/"|'/g,"").toLowerCase(),Ae=function(_e){return Pt[_e=_e||"normal"]?_e:"normal"}(Be.style),Ee=function(_e){if(!_e)return 400;if(typeof _e=="number")return _e>=100&&_e<=900&&_e%100==0?_e:400;if(/^\d00$/.test(_e))return parseInt(_e);switch(_e){case"bold":return 700;case"normal":default:return 400}}(Be.weight),Ce=function(_e){return typeof It[_e=_e||"normal"]=="number"?_e:"normal"}(Be.stretch);return{family:St,style:Ae,weight:Ee,stretch:Ce,src:Be.src||[],ref:Be.ref||{name:St,style:[Ce,Ae,Ee].join(" ")}}}function Ot(Be,St,Ae,Ee){var Ce;for(Ce=Ae;Ce>=0&&Ce<St.length;Ce+=Ee)if(Be[St[Ce]])return Be[St[Ce]];for(Ce=Ae;Ce>=0&&Ce<St.length;Ce-=Ee)if(Be[St[Ce]])return Be[St[Ce]]}var Bt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Et(Be){return[Be.stretch,Be.style,Be.weight,Be.family].join(" ")}function qt(Be,St,Ae){for(var Ee=(Ae=Ae||{}).defaultFontFamily||"times",Ce=Object.assign({},Bt,Ae.genericFontFamilies||{}),_e=null,Te=null,Se=0;Se<St.length;++Se)if(Ce[(_e=jt(St[Se])).family]&&(_e.family=Ce[_e.family]),Be.hasOwnProperty(_e.family)){Te=Be[_e.family];break}if(!(Te=Te||Be[Ee]))throw new Error("Could not find a font-family for the rule '"+Et(_e)+"' and default family '"+Ee+"'.");if(Te=function(xe,Ie){if(Ie[xe])return Ie[xe];var Ue=It[xe],$e=Ue<=It.normal?-1:1,Me=Ot(Ie,kt,Ue,$e);if(!Me)throw new Error("Could not find a matching font-stretch value for "+xe);return Me}(_e.stretch,Te),Te=function(xe,Ie){if(Ie[xe])return Ie[xe];for(var Ue=Pt[xe],$e=0;$e<Ue.length;++$e)if(Ie[Ue[$e]])return Ie[Ue[$e]];throw new Error("Could not find a matching font-style for "+xe)}(_e.style,Te),!(Te=function(xe,Ie){if(Ie[xe])return Ie[xe];if(xe===400&&Ie[500])return Ie[500];if(xe===500&&Ie[400])return Ie[400];var Ue=Ct[xe],$e=Ot(Ie,Ft,Ue,xe<400?-1:1);if(!$e)throw new Error("Could not find a matching font-weight for value "+xe);return $e}(_e.weight,Te)))throw new Error("Failed to resolve a font for the rule '"+Et(_e)+"'.");return Te}function Dt(Be){return Be.trimLeft()}function Rt(Be,St){for(var Ae=0;Ae<Be.length;){if(Be.charAt(Ae)===St)return[Be.substring(0,Ae),Be.substring(Ae+1)];Ae+=1}return null}function Tt(Be){var St=Be.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return St===null?null:[St[0],Be.substring(St[0].length)]}var Ut,zt,Ht,Wt=["times"];(function(Be){var St,Ae,Ee,Ce,_e,Te,Se,xe,Ie,Ue=function(lr){return lr=lr||{},this.isStrokeTransparent=lr.isStrokeTransparent||!1,this.strokeOpacity=lr.strokeOpacity||1,this.strokeStyle=lr.strokeStyle||"#000000",this.fillStyle=lr.fillStyle||"#000000",this.isFillTransparent=lr.isFillTransparent||!1,this.fillOpacity=lr.fillOpacity||1,this.font=lr.font||"10px sans-serif",this.textBaseline=lr.textBaseline||"alphabetic",this.textAlign=lr.textAlign||"left",this.lineWidth=lr.lineWidth||1,this.lineJoin=lr.lineJoin||"miter",this.lineCap=lr.lineCap||"butt",this.path=lr.path||[],this.transform=lr.transform!==void 0?lr.transform.clone():new xe,this.globalCompositeOperation=lr.globalCompositeOperation||"normal",this.globalAlpha=lr.globalAlpha||1,this.clip_path=lr.clip_path||[],this.currentPoint=lr.currentPoint||new Te,this.miterLimit=lr.miterLimit||10,this.lastPoint=lr.lastPoint||new Te,this.lineDashOffset=lr.lineDashOffset||0,this.lineDash=lr.lineDash||[],this.margin=lr.margin||[0,0,0,0],this.prevPageLastElemOffset=lr.prevPageLastElemOffset||0,this.ignoreClearRect=typeof lr.ignoreClearRect!="boolean"||lr.ignoreClearRect,this};Be.events.push(["initialized",function(){this.context2d=new $e(this),St=this.internal.f2,Ae=this.internal.getCoordinateString,Ee=this.internal.getVerticalCoordinateString,Ce=this.internal.getHorizontalCoordinate,_e=this.internal.getVerticalCoordinate,Te=this.internal.Point,Se=this.internal.Rectangle,xe=this.internal.Matrix,Ie=new Ue}]);var $e=function(lr){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Tr=lr;Object.defineProperty(this,"pdf",{get:function(){return Tr}});var xr=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return xr},set:function(fn){xr=!!fn}});var $r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $r},set:function(fn){$r=!!fn}});var Qr=0;Object.defineProperty(this,"posX",{get:function(){return Qr},set:function(fn){isNaN(fn)||(Qr=fn)}});var Jr=0;Object.defineProperty(this,"posY",{get:function(){return Jr},set:function(fn){isNaN(fn)||(Jr=fn)}}),Object.defineProperty(this,"margin",{get:function(){return Ie.margin},set:function(fn){var Sr;typeof fn=="number"?Sr=[fn,fn,fn,fn]:((Sr=new Array(4))[0]=fn[0],Sr[1]=fn.length>=2?fn[1]:Sr[0],Sr[2]=fn.length>=3?fn[2]:Sr[0],Sr[3]=fn.length>=4?fn[3]:Sr[1]),Ie.margin=Sr}});var nn=!1;Object.defineProperty(this,"autoPaging",{get:function(){return nn},set:function(fn){nn=fn}});var en=0;Object.defineProperty(this,"lastBreak",{get:function(){return en},set:function(fn){en=fn}});var Bn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Bn},set:function(fn){Bn=fn}}),Object.defineProperty(this,"ctx",{get:function(){return Ie},set:function(fn){fn instanceof Ue&&(Ie=fn)}}),Object.defineProperty(this,"path",{get:function(){return Ie.path},set:function(fn){Ie.path=fn}});var Sn=[];Object.defineProperty(this,"ctxStack",{get:function(){return Sn},set:function(fn){Sn=fn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(fn){var Sr;Sr=Me(fn),this.ctx.fillStyle=Sr.style,this.ctx.isFillTransparent=Sr.a===0,this.ctx.fillOpacity=Sr.a,this.pdf.setFillColor(Sr.r,Sr.g,Sr.b,{a:Sr.a}),this.pdf.setTextColor(Sr.r,Sr.g,Sr.b,{a:Sr.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(fn){var Sr=Me(fn);this.ctx.strokeStyle=Sr.style,this.ctx.isStrokeTransparent=Sr.a===0,this.ctx.strokeOpacity=Sr.a,Sr.a===0?this.pdf.setDrawColor(255,255,255):(Sr.a,this.pdf.setDrawColor(Sr.r,Sr.g,Sr.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(fn){["butt","round","square"].indexOf(fn)!==-1&&(this.ctx.lineCap=fn,this.pdf.setLineCap(fn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(fn){isNaN(fn)||(this.ctx.lineWidth=fn,this.pdf.setLineWidth(fn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(fn){["bevel","round","miter"].indexOf(fn)!==-1&&(this.ctx.lineJoin=fn,this.pdf.setLineJoin(fn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(fn){isNaN(fn)||(this.ctx.miterLimit=fn,this.pdf.setMiterLimit(fn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(fn){this.ctx.textBaseline=fn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(fn){["right","end","center","left","start"].indexOf(fn)!==-1&&(this.ctx.textAlign=fn)}});var Un=null;function On(fn,Sr){if(Un===null){var Yn=function(Wn){var Tn=[];return Object.keys(Wn).forEach(function($n){Wn[$n].forEach(function(Dn){var Rn=null;switch(Dn){case"bold":Rn={family:$n,weight:"bold"};break;case"italic":Rn={family:$n,style:"italic"};break;case"bolditalic":Rn={family:$n,weight:"bold",style:"italic"};break;case"":case"normal":Rn={family:$n}}Rn!==null&&(Rn.ref={name:$n,style:Dn},Tn.push(Rn))})}),Tn}(fn.getFontList());Un=function(Wn){for(var Tn={},$n=0;$n<Wn.length;++$n){var Dn=jt(Wn[$n]),Rn=Dn.family,Gn=Dn.stretch,Kn=Dn.style,ti=Dn.weight;Tn[Rn]=Tn[Rn]||{},Tn[Rn][Gn]=Tn[Rn][Gn]||{},Tn[Rn][Gn][Kn]=Tn[Rn][Gn][Kn]||{},Tn[Rn][Gn][Kn][ti]=Dn}return Tn}(Yn.concat(Sr))}return Un}var zn=null;Object.defineProperty(this,"fontFaces",{get:function(){return zn},set:function(fn){Un=null,zn=fn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(fn){var Sr;if(this.ctx.font=fn,(Sr=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(fn))!==null){var Yn=Sr[1],Wn=(Sr[2],Sr[3]),Tn=Sr[4],$n=(Sr[5],Sr[6]),Dn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Tn)[2];Tn=Math.floor(Dn==="px"?parseFloat(Tn)*this.pdf.internal.scaleFactor:Dn==="em"?parseFloat(Tn)*this.pdf.getFontSize():parseFloat(Tn)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Tn);var Rn=function(ei){var ci,Qn,Ii=[],gi=ei.trim();if(gi==="")return Wt;if(gi in Mt)return[Mt[gi]];for(;gi!=="";){switch(Qn=null,ci=(gi=Dt(gi)).charAt(0)){case'"':case"'":Qn=Rt(gi.substring(1),ci);break;default:Qn=Tt(gi)}if(Qn===null||(Ii.push(Qn[0]),(gi=Dt(Qn[1]))!==""&&gi.charAt(0)!==","))return Wt;gi=gi.replace(/^,/,"")}return Ii}($n);if(this.fontFaces){var Gn=qt(On(this.pdf,this.fontFaces),Rn.map(function(ei){return{family:ei,stretch:"normal",weight:Wn,style:Yn}}));this.pdf.setFont(Gn.ref.name,Gn.ref.style)}else{var Kn="";(Wn==="bold"||parseInt(Wn,10)>=700||Yn==="bold")&&(Kn="bold"),Yn==="italic"&&(Kn+="italic"),Kn.length===0&&(Kn="normal");for(var ti="",Ai={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},yi=0;yi<Rn.length;yi++){if(this.pdf.internal.getFont(Rn[yi],Kn,{noFallback:!0,disableWarning:!0})!==void 0){ti=Rn[yi];break}if(Kn==="bolditalic"&&this.pdf.internal.getFont(Rn[yi],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ti=Rn[yi],Kn="bold";else if(this.pdf.internal.getFont(Rn[yi],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ti=Rn[yi],Kn="normal";break}}if(ti===""){for(var Bi=0;Bi<Rn.length;Bi++)if(Ai[Rn[Bi]]){ti=Ai[Rn[Bi]];break}}ti=ti===""?"Times":ti,this.pdf.setFont(ti,Kn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(fn){this.ctx.globalCompositeOperation=fn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(fn){this.ctx.globalAlpha=fn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(fn){this.ctx.lineDashOffset=fn,An.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(fn){this.ctx.lineDash=fn,An.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(fn){this.ctx.ignoreClearRect=!!fn}})};$e.prototype.setLineDash=function(lr){this.lineDash=lr},$e.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},$e.prototype.fill=function(){Ye.call(this,"fill",!1)},$e.prototype.stroke=function(){Ye.call(this,"stroke",!1)},$e.prototype.beginPath=function(){this.path=[{type:"begin"}]},$e.prototype.moveTo=function(lr,Tr){if(isNaN(lr)||isNaN(Tr))throw a$2.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var xr=this.ctx.transform.applyToPoint(new Te(lr,Tr));this.path.push({type:"mt",x:xr.x,y:xr.y}),this.ctx.lastPoint=new Te(lr,Tr)},$e.prototype.closePath=function(){var lr=new Te(0,0),Tr=0;for(Tr=this.path.length-1;Tr!==-1;Tr--)if(this.path[Tr].type==="begin"&&_typeof$3(this.path[Tr+1])==="object"&&typeof this.path[Tr+1].x=="number"){lr=new Te(this.path[Tr+1].x,this.path[Tr+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Te(lr.x,lr.y)},$e.prototype.lineTo=function(lr,Tr){if(isNaN(lr)||isNaN(Tr))throw a$2.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var xr=this.ctx.transform.applyToPoint(new Te(lr,Tr));this.path.push({type:"lt",x:xr.x,y:xr.y}),this.ctx.lastPoint=new Te(xr.x,xr.y)},$e.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Ye.call(this,null,!0)},$e.prototype.quadraticCurveTo=function(lr,Tr,xr,$r){if(isNaN(xr)||isNaN($r)||isNaN(lr)||isNaN(Tr))throw a$2.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Qr=this.ctx.transform.applyToPoint(new Te(xr,$r)),Jr=this.ctx.transform.applyToPoint(new Te(lr,Tr));this.path.push({type:"qct",x1:Jr.x,y1:Jr.y,x:Qr.x,y:Qr.y}),this.ctx.lastPoint=new Te(Qr.x,Qr.y)},$e.prototype.bezierCurveTo=function(lr,Tr,xr,$r,Qr,Jr){if(isNaN(Qr)||isNaN(Jr)||isNaN(lr)||isNaN(Tr)||isNaN(xr)||isNaN($r))throw a$2.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var nn=this.ctx.transform.applyToPoint(new Te(Qr,Jr)),en=this.ctx.transform.applyToPoint(new Te(lr,Tr)),Bn=this.ctx.transform.applyToPoint(new Te(xr,$r));this.path.push({type:"bct",x1:en.x,y1:en.y,x2:Bn.x,y2:Bn.y,x:nn.x,y:nn.y}),this.ctx.lastPoint=new Te(nn.x,nn.y)},$e.prototype.arc=function(lr,Tr,xr,$r,Qr,Jr){if(isNaN(lr)||isNaN(Tr)||isNaN(xr)||isNaN($r)||isNaN(Qr))throw a$2.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Jr=!!Jr,!this.ctx.transform.isIdentity){var nn=this.ctx.transform.applyToPoint(new Te(lr,Tr));lr=nn.x,Tr=nn.y;var en=this.ctx.transform.applyToPoint(new Te(0,xr)),Bn=this.ctx.transform.applyToPoint(new Te(0,0));xr=Math.sqrt(Math.pow(en.x-Bn.x,2)+Math.pow(en.y-Bn.y,2))}Math.abs(Qr-$r)>=2*Math.PI&&($r=0,Qr=2*Math.PI),this.path.push({type:"arc",x:lr,y:Tr,radius:xr,startAngle:$r,endAngle:Qr,counterclockwise:Jr})},$e.prototype.arcTo=function(lr,Tr,xr,$r,Qr){throw new Error("arcTo not implemented.")},$e.prototype.rect=function(lr,Tr,xr,$r){if(isNaN(lr)||isNaN(Tr)||isNaN(xr)||isNaN($r))throw a$2.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(lr,Tr),this.lineTo(lr+xr,Tr),this.lineTo(lr+xr,Tr+$r),this.lineTo(lr,Tr+$r),this.lineTo(lr,Tr),this.lineTo(lr+xr,Tr),this.lineTo(lr,Tr)},$e.prototype.fillRect=function(lr,Tr,xr,$r){if(isNaN(lr)||isNaN(Tr)||isNaN(xr)||isNaN($r))throw a$2.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Re.call(this)){var Qr={};this.lineCap!=="butt"&&(Qr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Qr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(lr,Tr,xr,$r),this.fill(),Qr.hasOwnProperty("lineCap")&&(this.lineCap=Qr.lineCap),Qr.hasOwnProperty("lineJoin")&&(this.lineJoin=Qr.lineJoin)}},$e.prototype.strokeRect=function(lr,Tr,xr,$r){if(isNaN(lr)||isNaN(Tr)||isNaN(xr)||isNaN($r))throw a$2.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");ze.call(this)||(this.beginPath(),this.rect(lr,Tr,xr,$r),this.stroke())},$e.prototype.clearRect=function(lr,Tr,xr,$r){if(isNaN(lr)||isNaN(Tr)||isNaN(xr)||isNaN($r))throw a$2.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(lr,Tr,xr,$r))},$e.prototype.save=function(lr){lr=typeof lr!="boolean"||lr;for(var Tr=this.pdf.internal.getCurrentPageInfo().pageNumber,xr=0;xr<this.pdf.internal.getNumberOfPages();xr++)this.pdf.setPage(xr+1),this.pdf.internal.out("q");if(this.pdf.setPage(Tr),lr){this.ctx.fontSize=this.pdf.internal.getFontSize();var $r=new Ue(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$r}},$e.prototype.restore=function(lr){lr=typeof lr!="boolean"||lr;for(var Tr=this.pdf.internal.getCurrentPageInfo().pageNumber,xr=0;xr<this.pdf.internal.getNumberOfPages();xr++)this.pdf.setPage(xr+1),this.pdf.internal.out("Q");this.pdf.setPage(Tr),lr&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},$e.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Me=function(lr){var Tr,xr,$r,Qr;if(lr.isCanvasGradient===!0&&(lr=lr.getColor()),!lr)return{r:0,g:0,b:0,a:0,style:lr};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(lr))Tr=0,xr=0,$r=0,Qr=0;else{var Jr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(lr);if(Jr!==null)Tr=parseInt(Jr[1]),xr=parseInt(Jr[2]),$r=parseInt(Jr[3]),Qr=1;else if((Jr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(lr))!==null)Tr=parseInt(Jr[1]),xr=parseInt(Jr[2]),$r=parseInt(Jr[3]),Qr=parseFloat(Jr[4]);else{if(Qr=1,typeof lr=="string"&&lr.charAt(0)!=="#"){var nn=new f$2(lr);lr=nn.ok?nn.toHex():"#000000"}lr.length===4?(Tr=lr.substring(1,2),Tr+=Tr,xr=lr.substring(2,3),xr+=xr,$r=lr.substring(3,4),$r+=$r):(Tr=lr.substring(1,3),xr=lr.substring(3,5),$r=lr.substring(5,7)),Tr=parseInt(Tr,16),xr=parseInt(xr,16),$r=parseInt($r,16)}}return{r:Tr,g:xr,b:$r,a:Qr,style:lr}},Re=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},ze=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};$e.prototype.fillText=function(lr,Tr,xr,$r){if(isNaN(Tr)||isNaN(xr)||typeof lr!="string")throw a$2.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if($r=isNaN($r)?void 0:$r,!Re.call(this)){var Qr=Dr(this.ctx.transform.rotation),Jr=this.ctx.transform.scaleX;ir.call(this,{text:lr,x:Tr,y:xr,scale:Jr,angle:Qr,align:this.textAlign,maxWidth:$r})}},$e.prototype.strokeText=function(lr,Tr,xr,$r){if(isNaN(Tr)||isNaN(xr)||typeof lr!="string")throw a$2.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!ze.call(this)){$r=isNaN($r)?void 0:$r;var Qr=Dr(this.ctx.transform.rotation),Jr=this.ctx.transform.scaleX;ir.call(this,{text:lr,x:Tr,y:xr,scale:Jr,renderingMode:"stroke",angle:Qr,align:this.textAlign,maxWidth:$r})}},$e.prototype.measureText=function(lr){if(typeof lr!="string")throw a$2.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Tr=this.pdf,xr=this.pdf.internal.scaleFactor,$r=Tr.internal.getFontSize(),Qr=Tr.getStringUnitWidth(lr)*$r/Tr.internal.scaleFactor,Jr=function(nn){var en=(nn=nn||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return en}}),this};return new Jr({width:Qr*=Math.round(96*xr/72*1e4)/1e4})},$e.prototype.scale=function(lr,Tr){if(isNaN(lr)||isNaN(Tr))throw a$2.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var xr=new xe(lr,0,0,Tr,0,0);this.ctx.transform=this.ctx.transform.multiply(xr)},$e.prototype.rotate=function(lr){if(isNaN(lr))throw a$2.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Tr=new xe(Math.cos(lr),Math.sin(lr),-Math.sin(lr),Math.cos(lr),0,0);this.ctx.transform=this.ctx.transform.multiply(Tr)},$e.prototype.translate=function(lr,Tr){if(isNaN(lr)||isNaN(Tr))throw a$2.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var xr=new xe(1,0,0,1,lr,Tr);this.ctx.transform=this.ctx.transform.multiply(xr)},$e.prototype.transform=function(lr,Tr,xr,$r,Qr,Jr){if(isNaN(lr)||isNaN(Tr)||isNaN(xr)||isNaN($r)||isNaN(Qr)||isNaN(Jr))throw a$2.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var nn=new xe(lr,Tr,xr,$r,Qr,Jr);this.ctx.transform=this.ctx.transform.multiply(nn)},$e.prototype.setTransform=function(lr,Tr,xr,$r,Qr,Jr){lr=isNaN(lr)?1:lr,Tr=isNaN(Tr)?0:Tr,xr=isNaN(xr)?0:xr,$r=isNaN($r)?1:$r,Qr=isNaN(Qr)?0:Qr,Jr=isNaN(Jr)?0:Jr,this.ctx.transform=new xe(lr,Tr,xr,$r,Qr,Jr)};var Ve=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};$e.prototype.drawImage=function(lr,Tr,xr,$r,Qr,Jr,nn,en,Bn){var Sn=this.pdf.getImageProperties(lr),Un=1,On=1,zn=1,fn=1;$r!==void 0&&en!==void 0&&(zn=en/$r,fn=Bn/Qr,Un=Sn.width/$r*en/$r,On=Sn.height/Qr*Bn/Qr),Jr===void 0&&(Jr=Tr,nn=xr,Tr=0,xr=0),$r!==void 0&&en===void 0&&(en=$r,Bn=Qr),$r===void 0&&en===void 0&&(en=Sn.width,Bn=Sn.height);for(var Sr,Yn=this.ctx.transform.decompose(),Wn=Dr(Yn.rotate.shx),Tn=new xe,$n=(Tn=(Tn=(Tn=Tn.multiply(Yn.translate)).multiply(Yn.skew)).multiply(Yn.scale)).applyToRectangle(new Se(Jr-Tr*zn,nn-xr*fn,$r*Un,Qr*On)),Dn=nr.call(this,$n),Rn=[],Gn=0;Gn<Dn.length;Gn+=1)Rn.indexOf(Dn[Gn])===-1&&Rn.push(Dn[Gn]);if(fr(Rn),this.autoPaging)for(var Kn=Rn[0],ti=Rn[Rn.length-1],Ai=Kn;Ai<ti+1;Ai++){this.pdf.setPage(Ai);var yi=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Bi=Ai===1?this.posY+this.margin[0]:this.margin[0],ei=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ci=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qn=Ai===1?0:ei+(Ai-2)*ci;if(this.ctx.clip_path.length!==0){var Ii=this.path;Sr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(Sr,this.posX+this.margin[3],-Qn+Bi+this.ctx.prevPageLastElemOffset),Ar.call(this,"fill",!0),this.path=Ii}var gi=JSON.parse(JSON.stringify($n));gi=ar([gi],this.posX+this.margin[3],-Qn+Bi+this.ctx.prevPageLastElemOffset)[0];var br=(Ai>Kn||Ai<ti)&&Ve.call(this);br&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],yi,ci,null).clip().discardPath()),this.pdf.addImage(lr,"JPEG",gi.x,gi.y,gi.w,gi.h,null,null,Wn),br&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(lr,"JPEG",$n.x,$n.y,$n.w,$n.h,null,null,Wn)};var nr=function(lr,Tr,xr){var $r=[];Tr=Tr||this.pdf.internal.pageSize.width,xr=xr||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Qr=this.posY+this.ctx.prevPageLastElemOffset;switch(lr.type){default:case"mt":case"lt":$r.push(Math.floor((lr.y+Qr)/xr)+1);break;case"arc":$r.push(Math.floor((lr.y+Qr-lr.radius)/xr)+1),$r.push(Math.floor((lr.y+Qr+lr.radius)/xr)+1);break;case"qct":var Jr=kr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,lr.x1,lr.y1,lr.x,lr.y);$r.push(Math.floor((Jr.y+Qr)/xr)+1),$r.push(Math.floor((Jr.y+Jr.h+Qr)/xr)+1);break;case"bct":var nn=qr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,lr.x1,lr.y1,lr.x2,lr.y2,lr.x,lr.y);$r.push(Math.floor((nn.y+Qr)/xr)+1),$r.push(Math.floor((nn.y+nn.h+Qr)/xr)+1);break;case"rect":$r.push(Math.floor((lr.y+Qr)/xr)+1),$r.push(Math.floor((lr.y+lr.h+Qr)/xr)+1)}for(var en=0;en<$r.length;en+=1)for(;this.pdf.internal.getNumberOfPages()<$r[en];)Ze.call(this);return $r},Ze=function(){var lr=this.fillStyle,Tr=this.strokeStyle,xr=this.font,$r=this.lineCap,Qr=this.lineWidth,Jr=this.lineJoin;this.pdf.addPage(),this.fillStyle=lr,this.strokeStyle=Tr,this.font=xr,this.lineCap=$r,this.lineWidth=Qr,this.lineJoin=Jr},ar=function(lr,Tr,xr){for(var $r=0;$r<lr.length;$r++)switch(lr[$r].type){case"bct":lr[$r].x2+=Tr,lr[$r].y2+=xr;case"qct":lr[$r].x1+=Tr,lr[$r].y1+=xr;case"mt":case"lt":case"arc":default:lr[$r].x+=Tr,lr[$r].y+=xr}return lr},fr=function(lr){return lr.sort(function(Tr,xr){return Tr-xr})},Ye=function(lr,Tr){for(var xr,$r,Qr=this.fillStyle,Jr=this.strokeStyle,nn=this.lineCap,en=this.lineWidth,Bn=Math.abs(en*this.ctx.transform.scaleX),Sn=this.lineJoin,Un=JSON.parse(JSON.stringify(this.path)),On=JSON.parse(JSON.stringify(this.path)),zn=[],fn=0;fn<On.length;fn++)if(On[fn].x!==void 0)for(var Sr=nr.call(this,On[fn]),Yn=0;Yn<Sr.length;Yn+=1)zn.indexOf(Sr[Yn])===-1&&zn.push(Sr[Yn]);for(var Wn=0;Wn<zn.length;Wn++)for(;this.pdf.internal.getNumberOfPages()<zn[Wn];)Ze.call(this);if(fr(zn),this.autoPaging)for(var Tn=zn[0],$n=zn[zn.length-1],Dn=Tn;Dn<$n+1;Dn++){this.pdf.setPage(Dn),this.fillStyle=Qr,this.strokeStyle=Jr,this.lineCap=nn,this.lineWidth=Bn,this.lineJoin=Sn;var Rn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Gn=Dn===1?this.posY+this.margin[0]:this.margin[0],Kn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ti=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ai=Dn===1?0:Kn+(Dn-2)*ti;if(this.ctx.clip_path.length!==0){var yi=this.path;xr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(xr,this.posX+this.margin[3],-Ai+Gn+this.ctx.prevPageLastElemOffset),Ar.call(this,lr,!0),this.path=yi}if($r=JSON.parse(JSON.stringify(Un)),this.path=ar($r,this.posX+this.margin[3],-Ai+Gn+this.ctx.prevPageLastElemOffset),Tr===!1||Dn===0){var Bi=(Dn>Tn||Dn<$n)&&Ve.call(this);Bi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Rn,ti,null).clip().discardPath()),Ar.call(this,lr,Tr),Bi&&this.pdf.restoreGraphicsState()}this.lineWidth=en}else this.lineWidth=Bn,Ar.call(this,lr,Tr),this.lineWidth=en;this.path=Un},Ar=function(lr,Tr){if((lr!=="stroke"||Tr||!ze.call(this))&&(lr==="stroke"||Tr||!Re.call(this))){for(var xr,$r,Qr=[],Jr=this.path,nn=0;nn<Jr.length;nn++){var en=Jr[nn];switch(en.type){case"begin":Qr.push({begin:!0});break;case"close":Qr.push({close:!0});break;case"mt":Qr.push({start:en,deltas:[],abs:[]});break;case"lt":var Bn=Qr.length;if(Jr[nn-1]&&!isNaN(Jr[nn-1].x)&&(xr=[en.x-Jr[nn-1].x,en.y-Jr[nn-1].y],Bn>0)){for(;Bn>=0;Bn--)if(Qr[Bn-1].close!==!0&&Qr[Bn-1].begin!==!0){Qr[Bn-1].deltas.push(xr),Qr[Bn-1].abs.push(en);break}}break;case"bct":xr=[en.x1-Jr[nn-1].x,en.y1-Jr[nn-1].y,en.x2-Jr[nn-1].x,en.y2-Jr[nn-1].y,en.x-Jr[nn-1].x,en.y-Jr[nn-1].y],Qr[Qr.length-1].deltas.push(xr);break;case"qct":var Sn=Jr[nn-1].x+2/3*(en.x1-Jr[nn-1].x),Un=Jr[nn-1].y+2/3*(en.y1-Jr[nn-1].y),On=en.x+2/3*(en.x1-en.x),zn=en.y+2/3*(en.y1-en.y),fn=en.x,Sr=en.y;xr=[Sn-Jr[nn-1].x,Un-Jr[nn-1].y,On-Jr[nn-1].x,zn-Jr[nn-1].y,fn-Jr[nn-1].x,Sr-Jr[nn-1].y],Qr[Qr.length-1].deltas.push(xr);break;case"arc":Qr.push({deltas:[],abs:[],arc:!0}),Array.isArray(Qr[Qr.length-1].abs)&&Qr[Qr.length-1].abs.push(en)}}$r=Tr?null:lr==="stroke"?"stroke":"fill";for(var Yn=!1,Wn=0;Wn<Qr.length;Wn++)if(Qr[Wn].arc)for(var Tn=Qr[Wn].abs,$n=0;$n<Tn.length;$n++){var Dn=Tn[$n];Dn.type==="arc"?We.call(this,Dn.x,Dn.y,Dn.radius,Dn.startAngle,Dn.endAngle,Dn.counterclockwise,void 0,Tr,!Yn):gr.call(this,Dn.x,Dn.y),Yn=!0}else if(Qr[Wn].close===!0)this.pdf.internal.out("h"),Yn=!1;else if(Qr[Wn].begin!==!0){var Rn=Qr[Wn].start.x,Gn=Qr[Wn].start.y;vr.call(this,Qr[Wn].deltas,Rn,Gn),Yn=!0}$r&&or.call(this,$r),Tr&&mr.call(this)}},Oe=function(lr){var Tr=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,xr=Tr*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return lr-xr;case"top":return lr+Tr-xr;case"hanging":return lr+Tr-2*xr;case"middle":return lr+Tr/2-xr;case"ideographic":return lr;case"alphabetic":default:return lr}},Je=function(lr){return lr+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};$e.prototype.createLinearGradient=function(){var lr=function(){};return lr.colorStops=[],lr.addColorStop=function(Tr,xr){this.colorStops.push([Tr,xr])},lr.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},lr.isCanvasGradient=!0,lr},$e.prototype.createPattern=function(){return this.createLinearGradient()},$e.prototype.createRadialGradient=function(){return this.createLinearGradient()};var We=function(lr,Tr,xr,$r,Qr,Jr,nn,en,Bn){for(var Sn=Nr.call(this,xr,$r,Qr,Jr),Un=0;Un<Sn.length;Un++){var On=Sn[Un];Un===0&&(Bn?er.call(this,On.x1+lr,On.y1+Tr):gr.call(this,On.x1+lr,On.y1+Tr)),Or.call(this,lr,Tr,On.x2,On.y2,On.x3,On.y3,On.x4,On.y4)}en?mr.call(this):or.call(this,nn)},or=function(lr){switch(lr){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},mr=function(){this.pdf.clip(),this.pdf.discardPath()},er=function(lr,Tr){this.pdf.internal.out(Ae(lr)+" "+Ee(Tr)+" m")},ir=function(lr){var Tr;switch(lr.align){case"right":case"end":Tr="right";break;case"center":Tr="center";break;case"left":case"start":default:Tr="left"}var xr=this.pdf.getTextDimensions(lr.text),$r=Oe.call(this,lr.y),Qr=Je.call(this,$r)-xr.h,Jr=this.ctx.transform.applyToPoint(new Te(lr.x,$r)),nn=this.ctx.transform.decompose(),en=new xe;en=(en=(en=en.multiply(nn.translate)).multiply(nn.skew)).multiply(nn.scale);for(var Bn,Sn,Un,On=this.ctx.transform.applyToRectangle(new Se(lr.x,$r,xr.w,xr.h)),zn=en.applyToRectangle(new Se(lr.x,Qr,xr.w,xr.h)),fn=nr.call(this,zn),Sr=[],Yn=0;Yn<fn.length;Yn+=1)Sr.indexOf(fn[Yn])===-1&&Sr.push(fn[Yn]);if(fr(Sr),this.autoPaging)for(var Wn=Sr[0],Tn=Sr[Sr.length-1],$n=Wn;$n<Tn+1;$n++){this.pdf.setPage($n);var Dn=$n===1?this.posY+this.margin[0]:this.margin[0],Rn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gn=this.pdf.internal.pageSize.height-this.margin[2],Kn=Gn-this.margin[0],ti=this.pdf.internal.pageSize.width-this.margin[1],Ai=ti-this.margin[3],yi=$n===1?0:Rn+($n-2)*Kn;if(this.ctx.clip_path.length!==0){var Bi=this.path;Bn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(Bn,this.posX+this.margin[3],-1*yi+Dn),Ar.call(this,"fill",!0),this.path=Bi}var ei=ar([JSON.parse(JSON.stringify(zn))],this.posX+this.margin[3],-yi+Dn+this.ctx.prevPageLastElemOffset)[0];lr.scale>=.01&&(Sn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Sn*lr.scale),Un=this.lineWidth,this.lineWidth=Un*lr.scale);var ci=this.autoPaging!=="text";if(ci||ei.y+ei.h<=Gn){if(ci||ei.y>=Dn&&ei.x<=ti){var Qn=ci?lr.text:this.pdf.splitTextToSize(lr.text,lr.maxWidth||ti-ei.x)[0],Ii=ar([JSON.parse(JSON.stringify(On))],this.posX+this.margin[3],-yi+Dn+this.ctx.prevPageLastElemOffset)[0],gi=ci&&($n>Wn||$n<Tn)&&Ve.call(this);gi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ai,Kn,null).clip().discardPath()),this.pdf.text(Qn,Ii.x,Ii.y,{angle:lr.angle,align:Tr,renderingMode:lr.renderingMode}),gi&&this.pdf.restoreGraphicsState()}}else ei.y<Gn&&(this.ctx.prevPageLastElemOffset+=Gn-ei.y);lr.scale>=.01&&(this.pdf.setFontSize(Sn),this.lineWidth=Un)}else lr.scale>=.01&&(Sn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Sn*lr.scale),Un=this.lineWidth,this.lineWidth=Un*lr.scale),this.pdf.text(lr.text,Jr.x+this.posX,Jr.y+this.posY,{angle:lr.angle,align:Tr,renderingMode:lr.renderingMode,maxWidth:lr.maxWidth}),lr.scale>=.01&&(this.pdf.setFontSize(Sn),this.lineWidth=Un)},gr=function(lr,Tr,xr,$r){xr=xr||0,$r=$r||0,this.pdf.internal.out(Ae(lr+xr)+" "+Ee(Tr+$r)+" l")},vr=function(lr,Tr,xr){return this.pdf.lines(lr,Tr,xr,null,null)},Or=function(lr,Tr,xr,$r,Qr,Jr,nn,en){this.pdf.internal.out([St(Ce(xr+lr)),St(_e($r+Tr)),St(Ce(Qr+lr)),St(_e(Jr+Tr)),St(Ce(nn+lr)),St(_e(en+Tr)),"c"].join(" "))},Nr=function(lr,Tr,xr,$r){for(var Qr=2*Math.PI,Jr=Math.PI/2;Tr>xr;)Tr-=Qr;var nn=Math.abs(xr-Tr);nn<Qr&&$r&&(nn=Qr-nn);for(var en=[],Bn=$r?-1:1,Sn=Tr;nn>1e-5;){var Un=Sn+Bn*Math.min(nn,Jr);en.push(Hr.call(this,lr,Sn,Un)),nn-=Math.abs(Un-Sn),Sn=Un}return en},Hr=function(lr,Tr,xr){var $r=(xr-Tr)/2,Qr=lr*Math.cos($r),Jr=lr*Math.sin($r),nn=Qr,en=-Jr,Bn=nn*nn+en*en,Sn=Bn+nn*Qr+en*Jr,Un=4/3*(Math.sqrt(2*Bn*Sn)-Sn)/(nn*Jr-en*Qr),On=nn-Un*en,zn=en+Un*nn,fn=On,Sr=-zn,Yn=$r+Tr,Wn=Math.cos(Yn),Tn=Math.sin(Yn);return{x1:lr*Math.cos(Tr),y1:lr*Math.sin(Tr),x2:On*Wn-zn*Tn,y2:On*Tn+zn*Wn,x3:fn*Wn-Sr*Tn,y3:fn*Tn+Sr*Wn,x4:lr*Math.cos(xr),y4:lr*Math.sin(xr)}},Dr=function(lr){return 180*lr/Math.PI},kr=function(lr,Tr,xr,$r,Qr,Jr){var nn=lr+.5*(xr-lr),en=Tr+.5*($r-Tr),Bn=Qr+.5*(xr-Qr),Sn=Jr+.5*($r-Jr),Un=Math.min(lr,Qr,nn,Bn),On=Math.max(lr,Qr,nn,Bn),zn=Math.min(Tr,Jr,en,Sn),fn=Math.max(Tr,Jr,en,Sn);return new Se(Un,zn,On-Un,fn-zn)},qr=function(lr,Tr,xr,$r,Qr,Jr,nn,en){var Bn,Sn,Un,On,zn,fn,Sr,Yn,Wn,Tn,$n,Dn,Rn,Gn,Kn=xr-lr,ti=$r-Tr,Ai=Qr-xr,yi=Jr-$r,Bi=nn-Qr,ei=en-Jr;for(Sn=0;Sn<41;Sn++)Wn=(Sr=(Un=lr+(Bn=Sn/40)*Kn)+Bn*((zn=xr+Bn*Ai)-Un))+Bn*(zn+Bn*(Qr+Bn*Bi-zn)-Sr),Tn=(Yn=(On=Tr+Bn*ti)+Bn*((fn=$r+Bn*yi)-On))+Bn*(fn+Bn*(Jr+Bn*ei-fn)-Yn),Sn==0?($n=Wn,Dn=Tn,Rn=Wn,Gn=Tn):($n=Math.min($n,Wn),Dn=Math.min(Dn,Tn),Rn=Math.max(Rn,Wn),Gn=Math.max(Gn,Tn));return new Se(Math.round($n),Math.round(Dn),Math.round(Rn-$n),Math.round(Gn-Dn))},An=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var lr,Tr,xr=(lr=this.ctx.lineDash,Tr=this.ctx.lineDashOffset,JSON.stringify({lineDash:lr,lineDashOffset:Tr}));this.prevLineDash!==xr&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=xr)}}})(E$1.API),function(Be){var St=function(_e){var Te,Se,xe,Ie,Ue,$e,Me,Re,ze,Ve;for(Se=[],xe=0,Ie=(_e+=Te="\0\0\0\0".slice(_e.length%4||4)).length;Ie>xe;xe+=4)(Ue=(_e.charCodeAt(xe)<<24)+(_e.charCodeAt(xe+1)<<16)+(_e.charCodeAt(xe+2)<<8)+_e.charCodeAt(xe+3))!==0?($e=(Ue=((Ue=((Ue=((Ue=(Ue-(Ve=Ue%85))/85)-(ze=Ue%85))/85)-(Re=Ue%85))/85)-(Me=Ue%85))/85)%85,Se.push($e+33,Me+33,Re+33,ze+33,Ve+33)):Se.push(122);return function(nr,Ze){for(var ar=Ze;ar>0;ar--)nr.pop()}(Se,Te.length),String.fromCharCode.apply(String,Se)+"~>"},Ae=function(_e){var Te,Se,xe,Ie,Ue,$e=String,Me="length",Re=255,ze="charCodeAt",Ve="slice",nr="replace";for(_e[Ve](-2),_e=_e[Ve](0,-2)[nr](/\s/g,"")[nr]("z","!!!!!"),xe=[],Ie=0,Ue=(_e+=Te="uuuuu"[Ve](_e[Me]%5||5))[Me];Ue>Ie;Ie+=5)Se=52200625*(_e[ze](Ie)-33)+614125*(_e[ze](Ie+1)-33)+7225*(_e[ze](Ie+2)-33)+85*(_e[ze](Ie+3)-33)+(_e[ze](Ie+4)-33),xe.push(Re&Se>>24,Re&Se>>16,Re&Se>>8,Re&Se);return function(Ze,ar){for(var fr=ar;fr>0;fr--)Ze.pop()}(xe,Te[Me]),$e.fromCharCode.apply($e,xe)},Ee=function(_e){var Te=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((_e=_e.replace(/\s/g,"")).indexOf(">")!==-1&&(_e=_e.substr(0,_e.indexOf(">"))),_e.length%2&&(_e+="0"),Te.test(_e)===!1)return"";for(var Se="",xe=0;xe<_e.length;xe+=2)Se+=String.fromCharCode("0x"+(_e[xe]+_e[xe+1]));return Se},Ce=function(_e){for(var Te=new Uint8Array(_e.length),Se=_e.length;Se--;)Te[Se]=_e.charCodeAt(Se);return _e=(Te=zlibSync(Te)).reduce(function(xe,Ie){return xe+String.fromCharCode(Ie)},"")};Be.processDataByFilters=function(_e,Te){var Se=0,xe=_e||"",Ie=[];for(typeof(Te=Te||[])=="string"&&(Te=[Te]),Se=0;Se<Te.length;Se+=1)switch(Te[Se]){case"ASCII85Decode":case"/ASCII85Decode":xe=Ae(xe),Ie.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":xe=St(xe),Ie.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":xe=Ee(xe),Ie.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":xe=xe.split("").map(function(Ue){return("0"+Ue.charCodeAt().toString(16)).slice(-2)}).join("")+">",Ie.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":xe=Ce(xe),Ie.push("/FlateDecode");break;default:throw new Error('The filter: "'+Te[Se]+'" is not implemented')}return{data:xe,reverseChain:Ie.reverse().join(" ")}}}(E$1.API),function(Be){Be.loadFile=function(St,Ae,Ee){return function(Ce,_e,Te){_e=_e!==!1,Te=typeof Te=="function"?Te:function(){};var Se=void 0;try{Se=function(xe,Ie,Ue){var $e=new XMLHttpRequest,Me=0,Re=function(ze){var Ve=ze.length,nr=[],Ze=String.fromCharCode;for(Me=0;Me<Ve;Me+=1)nr.push(Ze(255&ze.charCodeAt(Me)));return nr.join("")};if($e.open("GET",xe,!Ie),$e.overrideMimeType("text/plain; charset=x-user-defined"),Ie===!1&&($e.onload=function(){$e.status===200?Ue(Re(this.responseText)):Ue(void 0)}),$e.send(null),Ie&&$e.status===200)return Re($e.responseText)}(Ce,_e,Te)}catch{}return Se}(St,Ae,Ee)},Be.loadImageFile=Be.loadFile}(E$1.API),function(Be){function St(){return(n$1.html2canvas?Promise.resolve(n$1.html2canvas):Promise.resolve().then(()=>html2canvas_esm)).catch(function(Te){return Promise.reject(new Error("Could not load html2canvas: "+Te))}).then(function(Te){return Te.default?Te.default:Te})}function Ae(){return(n$1.DOMPurify?Promise.resolve(n$1.DOMPurify):Promise.resolve().then(()=>purify_es)).catch(function(Te){return Promise.reject(new Error("Could not load dompurify: "+Te))}).then(function(Te){return Te.default?Te.default:Te})}var Ee=function(Te){var Se=_typeof$3(Te);return Se==="undefined"?"undefined":Se==="string"||Te instanceof String?"string":Se==="number"||Te instanceof Number?"number":Se==="function"||Te instanceof Function?"function":Te&&Te.constructor===Array?"array":Te&&Te.nodeType===1?"element":Se==="object"?"object":"unknown"},Ce=function(Te,Se){var xe=document.createElement(Te);for(var Ie in Se.className&&(xe.className=Se.className),Se.innerHTML&&Se.dompurify&&(xe.innerHTML=Se.dompurify.sanitize(Se.innerHTML)),Se.style)xe.style[Ie]=Se.style[Ie];return xe},_e=function Te(Se){var xe=Object.assign(Te.convert(Promise.resolve()),JSON.parse(JSON.stringify(Te.template))),Ie=Te.convert(Promise.resolve(),xe);return Ie=(Ie=Ie.setProgress(1,Te,1,[Te])).set(Se)};(_e.prototype=Object.create(Promise.prototype)).constructor=_e,_e.convert=function(Te,Se){return Te.__proto__=Se||_e.prototype,Te},_e.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},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"}},_e.prototype.from=function(Te,Se){return this.then(function(){switch(Se=Se||function(xe){switch(Ee(xe)){case"string":return"string";case"element":return xe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Te)){case"string":return this.then(Ae).then(function(xe){return this.set({src:Ce("div",{innerHTML:Te,dompurify:xe})})});case"element":return this.set({src:Te});case"canvas":return this.set({canvas:Te});case"img":return this.set({img:Te});default:return this.error("Unknown source type.")}})},_e.prototype.to=function(Te){switch(Te){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.")}},_e.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 Te={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Se=function xe(Ie,Ue){for(var $e=Ie.nodeType===3?document.createTextNode(Ie.nodeValue):Ie.cloneNode(!1),Me=Ie.firstChild;Me;Me=Me.nextSibling)Ue!==!0&&Me.nodeType===1&&Me.nodeName==="SCRIPT"||$e.appendChild(xe(Me,Ue));return Ie.nodeType===1&&(Ie.nodeName==="CANVAS"?($e.width=Ie.width,$e.height=Ie.height,$e.getContext("2d").drawImage(Ie,0,0)):Ie.nodeName!=="TEXTAREA"&&Ie.nodeName!=="SELECT"||($e.value=Ie.value),$e.addEventListener("load",function(){$e.scrollTop=Ie.scrollTop,$e.scrollLeft=Ie.scrollLeft},!0)),$e}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Se.tagName==="BODY"&&(Te.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ce("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ce("div",{className:"html2pdf__container",style:Te}),this.prop.container.appendChild(Se),this.prop.container.firstChild.appendChild(Ce("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},_e.prototype.toCanvas=function(){var Te=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Te).then(St).then(function(Se){var xe=Object.assign({},this.opt.html2canvas);return delete xe.onrendered,Se(this.prop.container,xe)}).then(function(Se){(this.opt.html2canvas.onrendered||function(){})(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},_e.prototype.toContext2d=function(){var Te=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Te).then(St).then(function(Se){var xe=this.opt.jsPDF,Ie=this.opt.fontFaces,Ue=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,$e=Object.assign({async:!0,allowTaint:!0,scale:Ue,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete $e.onrendered,xe.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,xe.context2d.posX=this.opt.x,xe.context2d.posY=this.opt.y,xe.context2d.margin=this.opt.margin,xe.context2d.fontFaces=Ie,Ie)for(var Me=0;Me<Ie.length;++Me){var Re=Ie[Me],ze=Re.src.find(function(Ve){return Ve.format==="truetype"});ze&&xe.addFont(ze.url,Re.ref.name,Re.ref.style)}return $e.windowHeight=$e.windowHeight||0,$e.windowHeight=$e.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):$e.windowHeight,xe.context2d.save(!0),Se(this.prop.container,$e)}).then(function(Se){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},_e.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Te=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Te})},_e.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},_e.prototype.output=function(Te,Se,xe){return(xe=xe||"pdf").toLowerCase()==="img"||xe.toLowerCase()==="image"?this.outputImg(Te,Se):this.outputPdf(Te,Se)},_e.prototype.outputPdf=function(Te,Se){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Te,Se)})},_e.prototype.outputImg=function(Te){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Te){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Te+'" is not supported.'}})},_e.prototype.save=function(Te){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Te?{filename:Te}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},_e.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},_e.prototype.set=function(Te){if(Ee(Te)!=="object")return this;var Se=Object.keys(Te||{}).map(function(xe){if(xe in _e.template.prop)return function(){this.prop[xe]=Te[xe]};switch(xe){case"margin":return this.setMargin.bind(this,Te.margin);case"jsPDF":return function(){return this.opt.jsPDF=Te.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Te.pageSize);default:return function(){this.opt[xe]=Te[xe]}}},this);return this.then(function(){return this.thenList(Se)})},_e.prototype.get=function(Te,Se){return this.then(function(){var xe=Te in _e.template.prop?this.prop[Te]:this.opt[Te];return Se?Se(xe):xe})},_e.prototype.setMargin=function(Te){return this.then(function(){switch(Ee(Te)){case"number":Te=[Te,Te,Te,Te];case"array":if(Te.length===2&&(Te=[Te[0],Te[1],Te[0],Te[1]]),Te.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Te}).then(this.setPageSize)},_e.prototype.setPageSize=function(Te){function Se(xe,Ie){return Math.floor(xe*Ie/72*96)}return this.then(function(){(Te=Te||E$1.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Te.inner={width:Te.width-this.opt.margin[1]-this.opt.margin[3],height:Te.height-this.opt.margin[0]-this.opt.margin[2]},Te.inner.px={width:Se(Te.inner.width,Te.k),height:Se(Te.inner.height,Te.k)},Te.inner.ratio=Te.inner.height/Te.inner.width),this.prop.pageSize=Te})},_e.prototype.setProgress=function(Te,Se,xe,Ie){return Te!=null&&(this.progress.val=Te),Se!=null&&(this.progress.state=Se),xe!=null&&(this.progress.n=xe),Ie!=null&&(this.progress.stack=Ie),this.progress.ratio=this.progress.val/this.progress.state,this},_e.prototype.updateProgress=function(Te,Se,xe,Ie){return this.setProgress(Te?this.progress.val+Te:null,Se||null,xe?this.progress.n+xe:null,Ie?this.progress.stack.concat(Ie):null)},_e.prototype.then=function(Te,Se){var xe=this;return this.thenCore(Te,Se,function(Ie,Ue){return xe.updateProgress(null,null,1,[Ie]),Promise.prototype.then.call(this,function($e){return xe.updateProgress(null,Ie),$e}).then(Ie,Ue).then(function($e){return xe.updateProgress(1),$e})})},_e.prototype.thenCore=function(Te,Se,xe){xe=xe||Promise.prototype.then,Te&&(Te=Te.bind(this)),Se&&(Se=Se.bind(this));var Ie=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:_e.convert(Object.assign({},this),Promise.prototype),Ue=xe.call(Ie,Te,Se);return _e.convert(Ue,this.__proto__)},_e.prototype.thenExternal=function(Te,Se){return Promise.prototype.then.call(this,Te,Se)},_e.prototype.thenList=function(Te){var Se=this;return Te.forEach(function(xe){Se=Se.thenCore(xe)}),Se},_e.prototype.catch=function(Te){Te&&(Te=Te.bind(this));var Se=Promise.prototype.catch.call(this,Te);return _e.convert(Se,this)},_e.prototype.catchExternal=function(Te){return Promise.prototype.catch.call(this,Te)},_e.prototype.error=function(Te){return this.then(function(){throw new Error(Te)})},_e.prototype.using=_e.prototype.set,_e.prototype.saveAs=_e.prototype.save,_e.prototype.export=_e.prototype.output,_e.prototype.run=_e.prototype.then,E$1.getPageSize=function(Te,Se,xe){if(_typeof$3(Te)==="object"){var Ie=Te;Te=Ie.orientation,Se=Ie.unit||Se,xe=Ie.format||xe}Se=Se||"mm",xe=xe||"a4",Te=(""+(Te||"P")).toLowerCase();var Ue,$e=(""+xe).toLowerCase(),Me={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Se){case"pt":Ue=1;break;case"mm":Ue=72/25.4;break;case"cm":Ue=72/2.54;break;case"in":Ue=72;break;case"px":Ue=.75;break;case"pc":case"em":Ue=12;break;case"ex":Ue=6;break;default:throw"Invalid unit: "+Se}var Re,ze=0,Ve=0;if(Me.hasOwnProperty($e))ze=Me[$e][1]/Ue,Ve=Me[$e][0]/Ue;else try{ze=xe[1],Ve=xe[0]}catch{throw new Error("Invalid format: "+xe)}if(Te==="p"||Te==="portrait")Te="p",Ve>ze&&(Re=Ve,Ve=ze,ze=Re);else{if(Te!=="l"&&Te!=="landscape")throw"Invalid orientation: "+Te;Te="l",ze>Ve&&(Re=Ve,Ve=ze,ze=Re)}return{width:Ve,height:ze,unit:Se,k:Ue,orientation:Te}},Be.html=function(Te,Se){(Se=Se||{}).callback=Se.callback||function(){},Se.html2canvas=Se.html2canvas||{},Se.html2canvas.canvas=Se.html2canvas.canvas||this.canvas,Se.jsPDF=Se.jsPDF||this,Se.fontFaces=Se.fontFaces?Se.fontFaces.map(jt):null;var xe=new _e(Se);return Se.worker?xe:xe.from(Te).doCallback()}}(E$1.API),E$1.API.addJS=function(Be){return Ht=Be,this.internal.events.subscribe("postPutResources",function(){Ut=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ut+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),zt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ht+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ut!==void 0&&zt!==void 0&&this.internal.out("/Names <</JavaScript "+Ut+" 0 R>>")}),this},function(Be){var St;Be.events.push(["postPutResources",function(){var Ae=this,Ee=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ce=Ae.outline.render().split(/\r\n/),_e=0;_e<Ce.length;_e++){var Te=Ce[_e],Se=Ee.exec(Te);if(Se!=null){var xe=Se[1];Ae.internal.newObjectDeferredBegin(xe,!1)}Ae.internal.write(Te)}if(this.outline.createNamedDestinations){var Ie=this.internal.pages.length,Ue=[];for(_e=0;_e<Ie;_e++){var $e=Ae.internal.newObject();Ue.push($e);var Me=Ae.internal.getPageInfo(_e+1);Ae.internal.write("<< /D["+Me.objId+" 0 R /XYZ null null null]>> endobj")}var Re=Ae.internal.newObject();for(Ae.internal.write("<< /Names [ "),_e=0;_e<Ue.length;_e++)Ae.internal.write("(page_"+(_e+1)+")"+Ue[_e]+" 0 R");Ae.internal.write(" ] >>","endobj"),St=Ae.internal.newObject(),Ae.internal.write("<< /Dests "+Re+" 0 R"),Ae.internal.write(">>","endobj")}}]),Be.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 "+St+" 0 R"))}]),Be.events.push(["initialized",function(){var Ae=this;Ae.outline={createNamedDestinations:!1,root:{children:[]}},Ae.outline.add=function(Ee,Ce,_e){var Te={title:Ce,options:_e,children:[]};return Ee==null&&(Ee=this.root),Ee.children.push(Te),Te},Ae.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ae,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ae.outline.genIds_r=function(Ee){Ee.id=Ae.internal.newObjectDeferred();for(var Ce=0;Ce<Ee.children.length;Ce++)this.genIds_r(Ee.children[Ce])},Ae.outline.renderRoot=function(Ee){this.objStart(Ee),this.line("/Type /Outlines"),Ee.children.length>0&&(this.line("/First "+this.makeRef(Ee.children[0])),this.line("/Last "+this.makeRef(Ee.children[Ee.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ee)),this.objEnd()},Ae.outline.renderItems=function(Ee){for(var Ce=this.ctx.pdf.internal.getVerticalCoordinateString,_e=0;_e<Ee.children.length;_e++){var Te=Ee.children[_e];this.objStart(Te),this.line("/Title "+this.makeString(Te.title)),this.line("/Parent "+this.makeRef(Ee)),_e>0&&this.line("/Prev "+this.makeRef(Ee.children[_e-1])),_e<Ee.children.length-1&&this.line("/Next "+this.makeRef(Ee.children[_e+1])),Te.children.length>0&&(this.line("/First "+this.makeRef(Te.children[0])),this.line("/Last "+this.makeRef(Te.children[Te.children.length-1])));var Se=this.count=this.count_r({count:0},Te);if(Se>0&&this.line("/Count "+Se),Te.options&&Te.options.pageNumber){var xe=Ae.internal.getPageInfo(Te.options.pageNumber);this.line("/Dest ["+xe.objId+" 0 R /XYZ 0 "+Ce(0)+" 0]")}this.objEnd()}for(var Ie=0;Ie<Ee.children.length;Ie++)this.renderItems(Ee.children[Ie])},Ae.outline.line=function(Ee){this.ctx.val+=Ee+`\r
`},Ae.outline.makeRef=function(Ee){return Ee.id+" 0 R"},Ae.outline.makeString=function(Ee){return"("+Ae.internal.pdfEscape(Ee)+")"},Ae.outline.objStart=function(Ee){this.ctx.val+=`\r
`+Ee.id+` 0 obj\r
<<\r
`},Ae.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Ae.outline.count_r=function(Ee,Ce){for(var _e=0;_e<Ce.children.length;_e++)Ee.count++,this.count_r(Ee,Ce.children[_e]);return Ee.count}}])}(E$1.API),function(Be){var St=[192,193,194,195,196,197,198,199];Be.processJPEG=function(Ae,Ee,Ce,_e,Te,Se){var xe,Ie=this.decode.DCT_DECODE,Ue=null;if(typeof Ae=="string"||this.__addimage__.isArrayBuffer(Ae)||this.__addimage__.isArrayBufferView(Ae)){switch(Ae=Te||Ae,Ae=this.__addimage__.isArrayBuffer(Ae)?new Uint8Array(Ae):Ae,(xe=function($e){for(var Me,Re=256*$e.charCodeAt(4)+$e.charCodeAt(5),ze=$e.length,Ve={width:0,height:0,numcomponents:1},nr=4;nr<ze;nr+=2){if(nr+=Re,St.indexOf($e.charCodeAt(nr+1))!==-1){Me=256*$e.charCodeAt(nr+5)+$e.charCodeAt(nr+6),Ve={width:256*$e.charCodeAt(nr+7)+$e.charCodeAt(nr+8),height:Me,numcomponents:$e.charCodeAt(nr+9)};break}Re=256*$e.charCodeAt(nr+2)+$e.charCodeAt(nr+3)}return Ve}(Ae=this.__addimage__.isArrayBufferView(Ae)?this.__addimage__.arrayBufferToBinaryString(Ae):Ae)).numcomponents){case 1:Se=this.color_spaces.DEVICE_GRAY;break;case 4:Se=this.color_spaces.DEVICE_CMYK;break;case 3:Se=this.color_spaces.DEVICE_RGB}Ue={data:Ae,width:xe.width,height:xe.height,colorSpace:Se,bitsPerComponent:8,filter:Ie,index:Ee,alias:Ce}}return Ue}}(E$1.API);var Vt,Gt,Yt,Jt,Xt,Kt=function(){var Be,St,Ae;function Ee(_e){var Te,Se,xe,Ie,Ue,$e,Me,Re,ze,Ve,nr,Ze,ar,fr;for(this.data=_e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},$e=null;;){switch(Te=this.readUInt32(),ze=(function(){var Ye,Ar;for(Ar=[],Ye=0;Ye<4;++Ye)Ar.push(String.fromCharCode(this.data[this.pos++]));return Ar}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(Te);break;case"fcTL":$e&&this.animation.frames.push($e),this.pos+=4,$e={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Ue=this.readUInt16(),Ie=this.readUInt16()||100,$e.delay=1e3*Ue/Ie,$e.disposeOp=this.data[this.pos++],$e.blendOp=this.data[this.pos++],$e.data=[];break;case"IDAT":case"fdAT":for(ze==="fdAT"&&(this.pos+=4,Te-=4),_e=($e!=null?$e.data:void 0)||this.imgData,Ze=0;0<=Te?Ze<Te:Ze>Te;0<=Te?++Ze:--Ze)_e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(xe=this.palette.length/3,this.transparency.indexed=this.read(Te),this.transparency.indexed.length>xe)throw new Error("More transparent colors than palette size");if((Ve=xe-this.transparency.indexed.length)>0)for(ar=0;0<=Ve?ar<Ve:ar>Ve;0<=Ve?++ar:--ar)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Te)[0];break;case 2:this.transparency.rgb=this.read(Te)}break;case"tEXt":Me=(nr=this.read(Te)).indexOf(0),Re=String.fromCharCode.apply(String,nr.slice(0,Me)),this.text[Re]=String.fromCharCode.apply(String,nr.slice(Me+1));break;case"IEND":return $e&&this.animation.frames.push($e),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(fr=this.colorType)===4||fr===6,Se=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Se,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=Te}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ee.prototype.read=function(_e){var Te,Se;for(Se=[],Te=0;0<=_e?Te<_e:Te>_e;0<=_e?++Te:--Te)Se.push(this.data[this.pos++]);return Se},Ee.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ee.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ee.prototype.decodePixels=function(_e){var Te=this.pixelBitlength/8,Se=new Uint8Array(this.width*this.height*Te),xe=0,Ie=this;if(_e==null&&(_e=this.imgData),_e.length===0)return new Uint8Array(0);function Ue($e,Me,Re,ze){var Ve,nr,Ze,ar,fr,Ye,Ar,Oe,Je,We,or,mr,er,ir,gr,vr,Or,Nr,Hr,Dr,kr,qr=Math.ceil((Ie.width-$e)/Re),An=Math.ceil((Ie.height-Me)/ze),lr=Ie.width==qr&&Ie.height==An;for(ir=Te*qr,mr=lr?Se:new Uint8Array(ir*An),Ye=_e.length,er=0,nr=0;er<An&&xe<Ye;){switch(_e[xe++]){case 0:for(ar=Or=0;Or<ir;ar=Or+=1)mr[nr++]=_e[xe++];break;case 1:for(ar=Nr=0;Nr<ir;ar=Nr+=1)Ve=_e[xe++],fr=ar<Te?0:mr[nr-Te],mr[nr++]=(Ve+fr)%256;break;case 2:for(ar=Hr=0;Hr<ir;ar=Hr+=1)Ve=_e[xe++],Ze=(ar-ar%Te)/Te,gr=er&&mr[(er-1)*ir+Ze*Te+ar%Te],mr[nr++]=(gr+Ve)%256;break;case 3:for(ar=Dr=0;Dr<ir;ar=Dr+=1)Ve=_e[xe++],Ze=(ar-ar%Te)/Te,fr=ar<Te?0:mr[nr-Te],gr=er&&mr[(er-1)*ir+Ze*Te+ar%Te],mr[nr++]=(Ve+Math.floor((fr+gr)/2))%256;break;case 4:for(ar=kr=0;kr<ir;ar=kr+=1)Ve=_e[xe++],Ze=(ar-ar%Te)/Te,fr=ar<Te?0:mr[nr-Te],er===0?gr=vr=0:(gr=mr[(er-1)*ir+Ze*Te+ar%Te],vr=Ze&&mr[(er-1)*ir+(Ze-1)*Te+ar%Te]),Ar=fr+gr-vr,Oe=Math.abs(Ar-fr),We=Math.abs(Ar-gr),or=Math.abs(Ar-vr),Je=Oe<=We&&Oe<=or?fr:We<=or?gr:vr,mr[nr++]=(Ve+Je)%256;break;default:throw new Error("Invalid filter algorithm: "+_e[xe-1])}if(!lr){var Tr=((Me+er*ze)*Ie.width+$e)*Te,xr=er*ir;for(ar=0;ar<qr;ar+=1){for(var $r=0;$r<Te;$r+=1)Se[Tr++]=mr[xr++];Tr+=(Re-1)*Te}}er++}}return _e=unzlibSync(_e),Ie.interlaceMethod==1?(Ue(0,0,8,8),Ue(4,0,8,8),Ue(0,4,4,8),Ue(2,0,4,4),Ue(0,2,2,4),Ue(1,0,2,2),Ue(0,1,1,2)):Ue(0,0,1,1),Se},Ee.prototype.decodePalette=function(){var _e,Te,Se,xe,Ie,Ue,$e,Me,Re;for(Se=this.palette,Ue=this.transparency.indexed||[],Ie=new Uint8Array((Ue.length||0)+Se.length),xe=0,_e=0,Te=$e=0,Me=Se.length;$e<Me;Te=$e+=3)Ie[xe++]=Se[Te],Ie[xe++]=Se[Te+1],Ie[xe++]=Se[Te+2],Ie[xe++]=(Re=Ue[_e++])!=null?Re:255;return Ie},Ee.prototype.copyToImageData=function(_e,Te){var Se,xe,Ie,Ue,$e,Me,Re,ze,Ve,nr,Ze;if(xe=this.colors,Ve=null,Se=this.hasAlphaChannel,this.palette.length&&(Ve=(Ze=this._decodedPalette)!=null?Ze:this._decodedPalette=this.decodePalette(),xe=4,Se=!0),ze=(Ie=_e.data||_e).length,$e=Ve||Te,Ue=Me=0,xe===1)for(;Ue<ze;)Re=Ve?4*Te[Ue/4]:Me,nr=$e[Re++],Ie[Ue++]=nr,Ie[Ue++]=nr,Ie[Ue++]=nr,Ie[Ue++]=Se?$e[Re++]:255,Me=Re;else for(;Ue<ze;)Re=Ve?4*Te[Ue/4]:Me,Ie[Ue++]=$e[Re++],Ie[Ue++]=$e[Re++],Ie[Ue++]=$e[Re++],Ie[Ue++]=Se?$e[Re++]:255,Me=Re},Ee.prototype.decode=function(){var _e;return _e=new Uint8Array(this.width*this.height*4),this.copyToImageData(_e,this.decodePixels()),_e};var Ce=function(){if(Object.prototype.toString.call(n$1)==="[object Window]"){try{St=n$1.document.createElement("canvas"),Ae=St.getContext("2d")}catch{return!1}return!0}return!1};return Ce(),Be=function(_e){var Te;if(Ce()===!0)return Ae.width=_e.width,Ae.height=_e.height,Ae.clearRect(0,0,_e.width,_e.height),Ae.putImageData(_e,0,0),(Te=new Image).src=St.toDataURL(),Te;throw new Error("This method requires a Browser with Canvas-capability.")},Ee.prototype.decodeFrames=function(_e){var Te,Se,xe,Ie,Ue,$e,Me,Re;if(this.animation){for(Re=[],Se=Ue=0,$e=(Me=this.animation.frames).length;Ue<$e;Se=++Ue)Te=Me[Se],xe=_e.createImageData(Te.width,Te.height),Ie=this.decodePixels(new Uint8Array(Te.data)),this.copyToImageData(xe,Ie),Te.imageData=xe,Re.push(Te.image=Be(xe));return Re}},Ee.prototype.renderFrame=function(_e,Te){var Se,xe,Ie;return Se=(xe=this.animation.frames)[Te],Ie=xe[Te-1],Te===0&&_e.clearRect(0,0,this.width,this.height),(Ie!=null?Ie.disposeOp:void 0)===1?_e.clearRect(Ie.xOffset,Ie.yOffset,Ie.width,Ie.height):(Ie!=null?Ie.disposeOp:void 0)===2&&_e.putImageData(Ie.imageData,Ie.xOffset,Ie.yOffset),Se.blendOp===0&&_e.clearRect(Se.xOffset,Se.yOffset,Se.width,Se.height),_e.drawImage(Se.image,Se.xOffset,Se.yOffset)},Ee.prototype.animate=function(_e){var Te,Se,xe,Ie,Ue,$e,Me=this;return Se=0,$e=this.animation,Ie=$e.numFrames,xe=$e.frames,Ue=$e.numPlays,(Te=function(){var Re,ze;if(Re=Se++%Ie,ze=xe[Re],Me.renderFrame(_e,Re),Ie>1&&Se/Ie<Ue)return Me.animation._timeout=setTimeout(Te,ze.delay)})()},Ee.prototype.stopAnimation=function(){var _e;return clearTimeout((_e=this.animation)!=null?_e._timeout:void 0)},Ee.prototype.render=function(_e){var Te,Se;return _e._png&&_e._png.stopAnimation(),_e._png=this,_e.width=this.width,_e.height=this.height,Te=_e.getContext("2d"),this.animation?(this.decodeFrames(Te),this.animate(Te)):(Se=Te.createImageData(this.width,this.height),this.copyToImageData(Se,this.decodePixels()),Te.putImageData(Se,0,0))},Ee}();/**
 * @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.
 * ====================================================================
 *//**
 * @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 Zt(Be){var St=0;if(Be[St++]!==71||Be[St++]!==73||Be[St++]!==70||Be[St++]!==56||(Be[St++]+1&253)!=56||Be[St++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ae=Be[St++]|Be[St++]<<8,Ee=Be[St++]|Be[St++]<<8,Ce=Be[St++],_e=Ce>>7,Te=1<<(7&Ce)+1;Be[St++],Be[St++];var Se=null,xe=null;_e&&(Se=St,xe=Te,St+=3*Te);var Ie=!0,Ue=[],$e=0,Me=null,Re=0,ze=null;for(this.width=Ae,this.height=Ee;Ie&&St<Be.length;)switch(Be[St++]){case 33:switch(Be[St++]){case 255:if(Be[St]!==11||Be[St+1]==78&&Be[St+2]==69&&Be[St+3]==84&&Be[St+4]==83&&Be[St+5]==67&&Be[St+6]==65&&Be[St+7]==80&&Be[St+8]==69&&Be[St+9]==50&&Be[St+10]==46&&Be[St+11]==48&&Be[St+12]==3&&Be[St+13]==1&&Be[St+16]==0)St+=14,ze=Be[St++]|Be[St++]<<8,St++;else for(St+=12;;){if(!((er=Be[St++])>=0))throw Error("Invalid block size");if(er===0)break;St+=er}break;case 249:if(Be[St++]!==4||Be[St+4]!==0)throw new Error("Invalid graphics extension block.");var Ve=Be[St++];$e=Be[St++]|Be[St++]<<8,Me=Be[St++],!(1&Ve)&&(Me=null),Re=Ve>>2&7,St++;break;case 254:for(;;){if(!((er=Be[St++])>=0))throw Error("Invalid block size");if(er===0)break;St+=er}break;default:throw new Error("Unknown graphic control label: 0x"+Be[St-1].toString(16))}break;case 44:var nr=Be[St++]|Be[St++]<<8,Ze=Be[St++]|Be[St++]<<8,ar=Be[St++]|Be[St++]<<8,fr=Be[St++]|Be[St++]<<8,Ye=Be[St++],Ar=Ye>>6&1,Oe=1<<(7&Ye)+1,Je=Se,We=xe,or=!1;Ye>>7&&(or=!0,Je=St,We=Oe,St+=3*Oe);var mr=St;for(St++;;){var er;if(!((er=Be[St++])>=0))throw Error("Invalid block size");if(er===0)break;St+=er}Ue.push({x:nr,y:Ze,width:ar,height:fr,has_local_palette:or,palette_offset:Je,palette_size:We,data_offset:mr,data_length:St-mr,transparent_index:Me,interlaced:!!Ar,delay:$e,disposal:Re});break;case 59:Ie=!1;break;default:throw new Error("Unknown gif block: 0x"+Be[St-1].toString(16))}this.numFrames=function(){return Ue.length},this.loopCount=function(){return ze},this.frameInfo=function(ir){if(ir<0||ir>=Ue.length)throw new Error("Frame index out of range.");return Ue[ir]},this.decodeAndBlitFrameBGRA=function(ir,gr){var vr=this.frameInfo(ir),Or=vr.width*vr.height,Nr=new Uint8Array(Or);$t(Be,vr.data_offset,Nr,Or);var Hr=vr.palette_offset,Dr=vr.transparent_index;Dr===null&&(Dr=256);var kr=vr.width,qr=Ae-kr,An=kr,lr=4*(vr.y*Ae+vr.x),Tr=4*((vr.y+vr.height)*Ae+vr.x),xr=lr,$r=4*qr;vr.interlaced===!0&&($r+=4*Ae*7);for(var Qr=8,Jr=0,nn=Nr.length;Jr<nn;++Jr){var en=Nr[Jr];if(An===0&&(An=kr,(xr+=$r)>=Tr&&($r=4*qr+4*Ae*(Qr-1),xr=lr+(kr+qr)*(Qr<<1),Qr>>=1)),en===Dr)xr+=4;else{var Bn=Be[Hr+3*en],Sn=Be[Hr+3*en+1],Un=Be[Hr+3*en+2];gr[xr++]=Un,gr[xr++]=Sn,gr[xr++]=Bn,gr[xr++]=255}--An}},this.decodeAndBlitFrameRGBA=function(ir,gr){var vr=this.frameInfo(ir),Or=vr.width*vr.height,Nr=new Uint8Array(Or);$t(Be,vr.data_offset,Nr,Or);var Hr=vr.palette_offset,Dr=vr.transparent_index;Dr===null&&(Dr=256);var kr=vr.width,qr=Ae-kr,An=kr,lr=4*(vr.y*Ae+vr.x),Tr=4*((vr.y+vr.height)*Ae+vr.x),xr=lr,$r=4*qr;vr.interlaced===!0&&($r+=4*Ae*7);for(var Qr=8,Jr=0,nn=Nr.length;Jr<nn;++Jr){var en=Nr[Jr];if(An===0&&(An=kr,(xr+=$r)>=Tr&&($r=4*qr+4*Ae*(Qr-1),xr=lr+(kr+qr)*(Qr<<1),Qr>>=1)),en===Dr)xr+=4;else{var Bn=Be[Hr+3*en],Sn=Be[Hr+3*en+1],Un=Be[Hr+3*en+2];gr[xr++]=Bn,gr[xr++]=Sn,gr[xr++]=Un,gr[xr++]=255}--An}}}function $t(Be,St,Ae,Ee){for(var Ce=Be[St++],_e=1<<Ce,Te=_e+1,Se=Te+1,xe=Ce+1,Ie=(1<<xe)-1,Ue=0,$e=0,Me=0,Re=Be[St++],ze=new Int32Array(4096),Ve=null;;){for(;Ue<16&&Re!==0;)$e|=Be[St++]<<Ue,Ue+=8,Re===1?Re=Be[St++]:--Re;if(Ue<xe)break;var nr=$e&Ie;if($e>>=xe,Ue-=xe,nr!==_e){if(nr===Te)break;for(var Ze=nr<Se?nr:Ve,ar=0,fr=Ze;fr>_e;)fr=ze[fr]>>8,++ar;var Ye=fr;if(Me+ar+(Ze!==nr?1:0)>Ee)return void a$2.log("Warning, gif stream longer than expected.");Ae[Me++]=Ye;var Ar=Me+=ar;for(Ze!==nr&&(Ae[Me++]=Ye),fr=Ze;ar--;)fr=ze[fr],Ae[--Ar]=255&fr,fr>>=8;Ve!==null&&Se<4096&&(ze[Se++]=Ve<<8|Ye,Se>=Ie+1&&xe<12&&(++xe,Ie=Ie<<1|1)),Ve=nr}else Se=Te+1,Ie=(1<<(xe=Ce+1))-1,Ve=null}return Me!==Ee&&a$2.log("Warning, gif stream shorter than expected."),Ae}/**
	 * @license
	  Copyright (c) 2008, Adobe Systems Incorporated
	  All rights reserved.

	  Redistribution and use in source and binary forms, with or without 
	  modification, are permitted provided that the following conditions are
	  met:

	  * 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.

	  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 Qt(Be){var St,Ae,Ee,Ce,_e,Te=Math.floor,Se=new Array(64),xe=new Array(64),Ie=new Array(64),Ue=new Array(64),$e=new Array(65535),Me=new Array(65535),Re=new Array(64),ze=new Array(64),Ve=[],nr=0,Ze=7,ar=new Array(64),fr=new Array(64),Ye=new Array(64),Ar=new Array(256),Oe=new Array(2048),Je=[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],We=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],or=[0,1,2,3,4,5,6,7,8,9,10,11],mr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],er=[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],ir=[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],vr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Or=[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 Nr(lr,Tr){for(var xr=0,$r=0,Qr=new Array,Jr=1;Jr<=16;Jr++){for(var nn=1;nn<=lr[Jr];nn++)Qr[Tr[$r]]=[],Qr[Tr[$r]][0]=xr,Qr[Tr[$r]][1]=Jr,$r++,xr++;xr*=2}return Qr}function Hr(lr){for(var Tr=lr[0],xr=lr[1]-1;xr>=0;)Tr&1<<xr&&(nr|=1<<Ze),xr--,--Ze<0&&(nr==255?(Dr(255),Dr(0)):Dr(nr),Ze=7,nr=0)}function Dr(lr){Ve.push(lr)}function kr(lr){Dr(lr>>8&255),Dr(255&lr)}function qr(lr,Tr,xr,$r,Qr){for(var Jr,nn=Qr[0],en=Qr[240],Bn=function(Tn,$n){var Dn,Rn,Gn,Kn,ti,Ai,yi,Bi,ei,ci,Qn=0;for(ei=0;ei<8;++ei){Dn=Tn[Qn],Rn=Tn[Qn+1],Gn=Tn[Qn+2],Kn=Tn[Qn+3],ti=Tn[Qn+4],Ai=Tn[Qn+5],yi=Tn[Qn+6];var Ii=Dn+(Bi=Tn[Qn+7]),gi=Dn-Bi,br=Rn+yi,Ke=Rn-yi,je=Gn+Ai,sr=Gn-Ai,dr=Kn+ti,Pr=Kn-ti,jr=Ii+dr,wn=Ii-dr,pn=br+je,Pn=br-je;Tn[Qn]=jr+pn,Tn[Qn+4]=jr-pn;var Xe=.707106781*(Pn+wn);Tn[Qn+2]=wn+Xe,Tn[Qn+6]=wn-Xe;var ke=.382683433*((jr=Pr+sr)-(Pn=Ke+gi)),Wr=.5411961*jr+ke,bn=1.306562965*Pn+ke,Jn=.707106781*(pn=sr+Ke),pi=gi+Jn,Mn=gi-Jn;Tn[Qn+5]=Mn+Wr,Tn[Qn+3]=Mn-Wr,Tn[Qn+1]=pi+bn,Tn[Qn+7]=pi-bn,Qn+=8}for(Qn=0,ei=0;ei<8;++ei){Dn=Tn[Qn],Rn=Tn[Qn+8],Gn=Tn[Qn+16],Kn=Tn[Qn+24],ti=Tn[Qn+32],Ai=Tn[Qn+40],yi=Tn[Qn+48];var Ti=Dn+(Bi=Tn[Qn+56]),Oi=Dn-Bi,Ni=Rn+yi,Hi=Rn-yi,Ki=Gn+Ai,Zi=Gn-Ai,oo=Kn+ti,fA=Kn-ti,qi=Ti+oo,wA=Ti-oo,TA=Ni+Ki,hA=Ni-Ki;Tn[Qn]=qi+TA,Tn[Qn+32]=qi-TA;var gA=.707106781*(hA+wA);Tn[Qn+16]=wA+gA,Tn[Qn+48]=wA-gA;var OA=.382683433*((qi=fA+Zi)-(hA=Hi+Oi)),Zn=.5411961*qi+OA,Yr=1.306562965*hA+OA,Ln=.707106781*(TA=Zi+Hi),Hn=Oi+Ln,_i=Oi-Ln;Tn[Qn+40]=_i+Zn,Tn[Qn+24]=_i-Zn,Tn[Qn+8]=Hn+Yr,Tn[Qn+56]=Hn-Yr,Qn++}for(ei=0;ei<64;++ei)ci=Tn[ei]*$n[ei],Re[ei]=ci>0?ci+.5|0:ci-.5|0;return Re}(lr,Tr),Sn=0;Sn<64;++Sn)ze[Je[Sn]]=Bn[Sn];var Un=ze[0]-xr;xr=ze[0],Un==0?Hr($r[0]):(Hr($r[Me[Jr=32767+Un]]),Hr($e[Jr]));for(var On=63;On>0&&ze[On]==0;)On--;if(On==0)return Hr(nn),xr;for(var zn,fn=1;fn<=On;){for(var Sr=fn;ze[fn]==0&&fn<=On;)++fn;var Yn=fn-Sr;if(Yn>=16){zn=Yn>>4;for(var Wn=1;Wn<=zn;++Wn)Hr(en);Yn&=15}Jr=32767+ze[fn],Hr(Qr[(Yn<<4)+Me[Jr]]),Hr($e[Jr]),fn++}return On!=63&&Hr(nn),xr}function An(lr){lr=Math.min(Math.max(lr,1),100),_e!=lr&&(function(Tr){for(var xr=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],$r=0;$r<64;$r++){var Qr=Te((xr[$r]*Tr+50)/100);Qr=Math.min(Math.max(Qr,1),255),Se[Je[$r]]=Qr}for(var Jr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],nn=0;nn<64;nn++){var en=Te((Jr[nn]*Tr+50)/100);en=Math.min(Math.max(en,1),255),xe[Je[nn]]=en}for(var Bn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Sn=0,Un=0;Un<8;Un++)for(var On=0;On<8;On++)Ie[Sn]=1/(Se[Je[Sn]]*Bn[Un]*Bn[On]*8),Ue[Sn]=1/(xe[Je[Sn]]*Bn[Un]*Bn[On]*8),Sn++}(lr<50?Math.floor(5e3/lr):Math.floor(200-2*lr)),_e=lr)}this.encode=function(lr,Tr){Tr&&An(Tr),Ve=new Array,nr=0,Ze=7,kr(65496),kr(65504),kr(16),Dr(74),Dr(70),Dr(73),Dr(70),Dr(0),Dr(1),Dr(1),Dr(0),kr(1),kr(1),Dr(0),Dr(0),function(){kr(65499),kr(132),Dr(0);for(var Rn=0;Rn<64;Rn++)Dr(Se[Rn]);Dr(1);for(var Gn=0;Gn<64;Gn++)Dr(xe[Gn])}(),function(Rn,Gn){kr(65472),kr(17),Dr(8),kr(Gn),kr(Rn),Dr(3),Dr(1),Dr(17),Dr(0),Dr(2),Dr(17),Dr(1),Dr(3),Dr(17),Dr(1)}(lr.width,lr.height),function(){kr(65476),kr(418),Dr(0);for(var Rn=0;Rn<16;Rn++)Dr(We[Rn+1]);for(var Gn=0;Gn<=11;Gn++)Dr(or[Gn]);Dr(16);for(var Kn=0;Kn<16;Kn++)Dr(mr[Kn+1]);for(var ti=0;ti<=161;ti++)Dr(er[ti]);Dr(1);for(var Ai=0;Ai<16;Ai++)Dr(ir[Ai+1]);for(var yi=0;yi<=11;yi++)Dr(gr[yi]);Dr(17);for(var Bi=0;Bi<16;Bi++)Dr(vr[Bi+1]);for(var ei=0;ei<=161;ei++)Dr(Or[ei])}(),kr(65498),kr(12),Dr(3),Dr(1),Dr(0),Dr(2),Dr(17),Dr(3),Dr(17),Dr(0),Dr(63),Dr(0);var xr=0,$r=0,Qr=0;nr=0,Ze=7,this.encode.displayName="_encode_";for(var Jr,nn,en,Bn,Sn,Un,On,zn,fn,Sr=lr.data,Yn=lr.width,Wn=lr.height,Tn=4*Yn,$n=0;$n<Wn;){for(Jr=0;Jr<Tn;){for(Sn=Tn*$n+Jr,On=-1,zn=0,fn=0;fn<64;fn++)Un=Sn+(zn=fn>>3)*Tn+(On=4*(7&fn)),$n+zn>=Wn&&(Un-=Tn*($n+1+zn-Wn)),Jr+On>=Tn&&(Un-=Jr+On-Tn+4),nn=Sr[Un++],en=Sr[Un++],Bn=Sr[Un++],ar[fn]=(Oe[nn]+Oe[en+256>>0]+Oe[Bn+512>>0]>>16)-128,fr[fn]=(Oe[nn+768>>0]+Oe[en+1024>>0]+Oe[Bn+1280>>0]>>16)-128,Ye[fn]=(Oe[nn+1280>>0]+Oe[en+1536>>0]+Oe[Bn+1792>>0]>>16)-128;xr=qr(ar,Ie,xr,St,Ee),$r=qr(fr,Ue,$r,Ae,Ce),Qr=qr(Ye,Ue,Qr,Ae,Ce),Jr+=32}$n+=8}if(Ze>=0){var Dn=[];Dn[1]=Ze+1,Dn[0]=(1<<Ze+1)-1,Hr(Dn)}return kr(65497),new Uint8Array(Ve)},Be=Be||50,function(){for(var lr=String.fromCharCode,Tr=0;Tr<256;Tr++)Ar[Tr]=lr(Tr)}(),St=Nr(We,or),Ae=Nr(ir,gr),Ee=Nr(mr,er),Ce=Nr(vr,Or),function(){for(var lr=1,Tr=2,xr=1;xr<=15;xr++){for(var $r=lr;$r<Tr;$r++)Me[32767+$r]=xr,$e[32767+$r]=[],$e[32767+$r][1]=xr,$e[32767+$r][0]=$r;for(var Qr=-(Tr-1);Qr<=-lr;Qr++)Me[32767+Qr]=xr,$e[32767+Qr]=[],$e[32767+Qr][1]=xr,$e[32767+Qr][0]=Tr-1+Qr;lr<<=1,Tr<<=1}}(),function(){for(var lr=0;lr<256;lr++)Oe[lr]=19595*lr,Oe[lr+256>>0]=38470*lr,Oe[lr+512>>0]=7471*lr+32768,Oe[lr+768>>0]=-11059*lr,Oe[lr+1024>>0]=-21709*lr,Oe[lr+1280>>0]=32768*lr+8421375,Oe[lr+1536>>0]=-27439*lr,Oe[lr+1792>>0]=-5329*lr}(),An(Be)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function te(Be,St){if(this.pos=0,this.buffer=Be,this.datav=new DataView(Be.buffer),this.is_with_alpha=!!St,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ee(Be){function St(We){if(!We)throw Error("assert :P")}function Ae(We,or,mr){for(var er=0;4>er;er++)if(We[or+er]!=mr.charCodeAt(er))return!0;return!1}function Ee(We,or,mr,er,ir){for(var gr=0;gr<ir;gr++)We[or+gr]=mr[er+gr]}function Ce(We,or,mr,er){for(var ir=0;ir<er;ir++)We[or+ir]=mr}function _e(We){return new Int32Array(We)}function Te(We,or){for(var mr=[],er=0;er<We;er++)mr.push(new or);return mr}function Se(We,or){var mr=[];return function er(ir,gr,vr){for(var Or=vr[gr],Nr=0;Nr<Or&&(ir.push(vr.length>gr+1?[]:new or),!(vr.length<gr+1));Nr++)er(ir[Nr],gr+1,vr)}(mr,0,We),mr}var xe=function(){var We=this;function or(Fe,De){for(var Ge=1<<De-1>>>0;Fe&Ge;)Ge>>>=1;return Ge?(Fe&Ge-1)+Ge:Fe}function mr(Fe,De,Ge,rr,pr){St(!(rr%Ge));do Fe[De+(rr-=Ge)]=pr;while(0<rr)}function er(Fe,De,Ge,rr,pr){if(St(2328>=pr),512>=pr)var yr=_e(512);else if((yr=_e(pr))==null)return 0;return function(wr,Er,_r,Ir,Kr,an){var sn,Zr,_n=Er,gn=1<<_r,Gr=_e(16),Xr=_e(16);for(St(Kr!=0),St(Ir!=null),St(wr!=null),St(0<_r),Zr=0;Zr<Kr;++Zr){if(15<Ir[Zr])return 0;++Gr[Ir[Zr]]}if(Gr[0]==Kr)return 0;for(Xr[1]=0,sn=1;15>sn;++sn){if(Gr[sn]>1<<sn)return 0;Xr[sn+1]=Xr[sn]+Gr[sn]}for(Zr=0;Zr<Kr;++Zr)sn=Ir[Zr],0<Ir[Zr]&&(an[Xr[sn]++]=Zr);if(Xr[15]==1)return(Ir=new ir).g=0,Ir.value=an[0],mr(wr,_n,1,gn,Ir),gn;var En,Fn=-1,Cn=gn-1,Xn=0,jn=1,hi=1,qn=1<<_r;for(Zr=0,sn=1,Kr=2;sn<=_r;++sn,Kr<<=1){if(jn+=hi<<=1,0>(hi-=Gr[sn]))return 0;for(;0<Gr[sn];--Gr[sn])(Ir=new ir).g=sn,Ir.value=an[Zr++],mr(wr,_n+Xn,Kr,qn,Ir),Xn=or(Xn,sn)}for(sn=_r+1,Kr=2;15>=sn;++sn,Kr<<=1){if(jn+=hi<<=1,0>(hi-=Gr[sn]))return 0;for(;0<Gr[sn];--Gr[sn]){if(Ir=new ir,(Xn&Cn)!=Fn){for(_n+=qn,En=1<<(Fn=sn)-_r;15>Fn&&!(0>=(En-=Gr[Fn]));)++Fn,En<<=1;gn+=qn=1<<(En=Fn-_r),wr[Er+(Fn=Xn&Cn)].g=En+_r,wr[Er+Fn].value=_n-Er-Fn}Ir.g=sn-_r,Ir.value=an[Zr++],mr(wr,_n+(Xn>>_r),Kr,qn,Ir),Xn=or(Xn,sn)}}return jn!=2*Xr[15]-1?0:gn}(Fe,De,Ge,rr,pr,yr)}function ir(){this.value=this.g=0}function gr(){this.value=this.g=0}function vr(){this.G=Te(5,ir),this.H=_e(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Te(lA,gr)}function Or(Fe,De,Ge,rr){St(Fe!=null),St(De!=null),St(2147483648>rr),Fe.Ca=254,Fe.I=0,Fe.b=-8,Fe.Ka=0,Fe.oa=De,Fe.pa=Ge,Fe.Jd=De,Fe.Yc=Ge+rr,Fe.Zc=4<=rr?Ge+rr-4+1:Ge,Jr(Fe)}function Nr(Fe,De){for(var Ge=0;0<De--;)Ge|=en(Fe,128)<<De;return Ge}function Hr(Fe,De){var Ge=Nr(Fe,De);return nn(Fe)?-Ge:Ge}function Dr(Fe,De,Ge,rr){var pr,yr=0;for(St(Fe!=null),St(De!=null),St(4294967288>rr),Fe.Sb=rr,Fe.Ra=0,Fe.u=0,Fe.h=0,4<rr&&(rr=4),pr=0;pr<rr;++pr)yr+=De[Ge+pr]<<8*pr;Fe.Ra=yr,Fe.bb=rr,Fe.oa=De,Fe.pa=Ge}function kr(Fe){for(;8<=Fe.u&&Fe.bb<Fe.Sb;)Fe.Ra>>>=8,Fe.Ra+=Fe.oa[Fe.pa+Fe.bb]<<FA-8>>>0,++Fe.bb,Fe.u-=8;xr(Fe)&&(Fe.h=1,Fe.u=0)}function qr(Fe,De){if(St(0<=De),!Fe.h&&De<=yo){var Ge=Tr(Fe)&Go[De];return Fe.u+=De,kr(Fe),Ge}return Fe.h=1,Fe.u=0}function An(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function lr(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Tr(Fe){return Fe.Ra>>>(Fe.u&FA-1)>>>0}function xr(Fe){return St(Fe.bb<=Fe.Sb),Fe.h||Fe.bb==Fe.Sb&&Fe.u>FA}function $r(Fe,De){Fe.u=De,Fe.h=xr(Fe)}function Qr(Fe){Fe.u>=LA&&(St(Fe.u>=LA),kr(Fe))}function Jr(Fe){St(Fe!=null&&Fe.oa!=null),Fe.pa<Fe.Zc?(Fe.I=(Fe.oa[Fe.pa++]|Fe.I<<8)>>>0,Fe.b+=8):(St(Fe!=null&&Fe.oa!=null),Fe.pa<Fe.Yc?(Fe.b+=8,Fe.I=Fe.oa[Fe.pa++]|Fe.I<<8):Fe.Ka?Fe.b=0:(Fe.I<<=8,Fe.b+=8,Fe.Ka=1))}function nn(Fe){return Nr(Fe,1)}function en(Fe,De){var Ge=Fe.Ca;0>Fe.b&&Jr(Fe);var rr=Fe.b,pr=Ge*De>>>8,yr=(Fe.I>>>rr>pr)+0;for(yr?(Ge-=pr,Fe.I-=pr+1<<rr>>>0):Ge=pr+1,rr=Ge,pr=0;256<=rr;)pr+=8,rr>>=8;return rr=7^pr+EA[rr],Fe.b-=rr,Fe.Ca=(Ge<<rr)-1,yr}function Bn(Fe,De,Ge){Fe[De+0]=Ge>>24&255,Fe[De+1]=Ge>>16&255,Fe[De+2]=Ge>>8&255,Fe[De+3]=Ge>>0&255}function Sn(Fe,De){return Fe[De+0]<<0|Fe[De+1]<<8}function Un(Fe,De){return Sn(Fe,De)|Fe[De+2]<<16}function On(Fe,De){return Sn(Fe,De)|Sn(Fe,De+2)<<16}function zn(Fe,De){var Ge=1<<De;return St(Fe!=null),St(0<De),Fe.X=_e(Ge),Fe.X==null?0:(Fe.Mb=32-De,Fe.Xa=De,1)}function fn(Fe,De){St(Fe!=null),St(De!=null),St(Fe.Xa==De.Xa),Ee(De.X,0,Fe.X,0,1<<De.Xa)}function Sr(){this.X=[],this.Xa=this.Mb=0}function Yn(Fe,De,Ge,rr){St(Ge!=null),St(rr!=null);var pr=Ge[0],yr=rr[0];return pr==0&&(pr=(Fe*yr+De/2)/De),yr==0&&(yr=(De*pr+Fe/2)/Fe),0>=pr||0>=yr?0:(Ge[0]=pr,rr[0]=yr,1)}function Wn(Fe,De){return Fe+(1<<De)-1>>>De}function Tn(Fe,De){return((4278255360&Fe)+(4278255360&De)>>>0&4278255360)+((16711935&Fe)+(16711935&De)>>>0&16711935)>>>0}function $n(Fe,De){We[De]=function(Ge,rr,pr,yr,wr,Er,_r){var Ir;for(Ir=0;Ir<wr;++Ir){var Kr=We[Fe](Er[_r+Ir-1],pr,yr+Ir);Er[_r+Ir]=Tn(Ge[rr+Ir],Kr)}}}function Dn(){this.ud=this.hd=this.jd=0}function Rn(Fe,De){return((4278124286&(Fe^De))>>>1)+(Fe&De)>>>0}function Gn(Fe){return 0<=Fe&&256>Fe?Fe:0>Fe?0:255<Fe?255:void 0}function Kn(Fe,De){return Gn(Fe+(Fe-De+.5>>1))}function ti(Fe,De,Ge){return Math.abs(De-Ge)-Math.abs(Fe-Ge)}function Ai(Fe,De,Ge,rr,pr,yr,wr){for(rr=yr[wr-1],Ge=0;Ge<pr;++Ge)yr[wr+Ge]=rr=Tn(Fe[De+Ge],rr)}function yi(Fe,De,Ge,rr,pr){var yr;for(yr=0;yr<Ge;++yr){var wr=Fe[De+yr],Er=wr>>8&255,_r=16711935&(_r=(_r=16711935&wr)+((Er<<16)+Er));rr[pr+yr]=(4278255360&wr)+_r>>>0}}function Bi(Fe,De){De.jd=Fe>>0&255,De.hd=Fe>>8&255,De.ud=Fe>>16&255}function ei(Fe,De,Ge,rr,pr,yr){var wr;for(wr=0;wr<rr;++wr){var Er=De[Ge+wr],_r=Er>>>8,Ir=Er,Kr=255&(Kr=(Kr=Er>>>16)+((Fe.jd<<24>>24)*(_r<<24>>24)>>>5));Ir=255&(Ir=(Ir=Ir+((Fe.hd<<24>>24)*(_r<<24>>24)>>>5))+((Fe.ud<<24>>24)*(Kr<<24>>24)>>>5)),pr[yr+wr]=(4278255360&Er)+(Kr<<16)+Ir}}function ci(Fe,De,Ge,rr,pr){We[De]=function(yr,wr,Er,_r,Ir,Kr,an,sn,Zr){for(_r=an;_r<sn;++_r)for(an=0;an<Zr;++an)Ir[Kr++]=pr(Er[rr(yr[wr++])])},We[Fe]=function(yr,wr,Er,_r,Ir,Kr,an){var sn=8>>yr.b,Zr=yr.Ea,_n=yr.K[0],gn=yr.w;if(8>sn)for(yr=(1<<yr.b)-1,gn=(1<<sn)-1;wr<Er;++wr){var Gr,Xr=0;for(Gr=0;Gr<Zr;++Gr)Gr&yr||(Xr=rr(_r[Ir++])),Kr[an++]=pr(_n[Xr&gn]),Xr>>=sn}else We["VP8LMapColor"+Ge](_r,Ir,_n,gn,Kr,an,wr,Er,Zr)}}function Qn(Fe,De,Ge,rr,pr){for(Ge=De+Ge;De<Ge;){var yr=Fe[De++];rr[pr++]=yr>>16&255,rr[pr++]=yr>>8&255,rr[pr++]=yr>>0&255}}function Ii(Fe,De,Ge,rr,pr){for(Ge=De+Ge;De<Ge;){var yr=Fe[De++];rr[pr++]=yr>>16&255,rr[pr++]=yr>>8&255,rr[pr++]=yr>>0&255,rr[pr++]=yr>>24&255}}function gi(Fe,De,Ge,rr,pr){for(Ge=De+Ge;De<Ge;){var yr=(wr=Fe[De++])>>16&240|wr>>12&15,wr=wr>>0&240|wr>>28&15;rr[pr++]=yr,rr[pr++]=wr}}function br(Fe,De,Ge,rr,pr){for(Ge=De+Ge;De<Ge;){var yr=(wr=Fe[De++])>>16&248|wr>>13&7,wr=wr>>5&224|wr>>3&31;rr[pr++]=yr,rr[pr++]=wr}}function Ke(Fe,De,Ge,rr,pr){for(Ge=De+Ge;De<Ge;){var yr=Fe[De++];rr[pr++]=yr>>0&255,rr[pr++]=yr>>8&255,rr[pr++]=yr>>16&255}}function je(Fe,De,Ge,rr,pr,yr){if(yr==0)for(Ge=De+Ge;De<Ge;)Bn(rr,((yr=Fe[De++])[0]>>24|yr[1]>>8&65280|yr[2]<<8&16711680|yr[3]<<24)>>>0),pr+=32;else Ee(rr,pr,Fe,De,Ge)}function sr(Fe,De){We[De][0]=We[Fe+"0"],We[De][1]=We[Fe+"1"],We[De][2]=We[Fe+"2"],We[De][3]=We[Fe+"3"],We[De][4]=We[Fe+"4"],We[De][5]=We[Fe+"5"],We[De][6]=We[Fe+"6"],We[De][7]=We[Fe+"7"],We[De][8]=We[Fe+"8"],We[De][9]=We[Fe+"9"],We[De][10]=We[Fe+"10"],We[De][11]=We[Fe+"11"],We[De][12]=We[Fe+"12"],We[De][13]=We[Fe+"13"],We[De][14]=We[Fe+"0"],We[De][15]=We[Fe+"0"]}function dr(Fe){return Fe==ls||Fe==us||Fe==za||Fe==cs}function Pr(){this.eb=[],this.size=this.A=this.fb=0}function jr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function wn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Pr,this.f.kb=new jr,this.sd=null}function pn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Pn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Xe(Fe){return alert("todo:WebPSamplerProcessPlane"),Fe.T}function ke(Fe,De){var Ge=Fe.T,rr=De.ba.f.RGBA,pr=rr.eb,yr=rr.fb+Fe.ka*rr.A,wr=io[De.ba.S],Er=Fe.y,_r=Fe.O,Ir=Fe.f,Kr=Fe.N,an=Fe.ea,sn=Fe.W,Zr=De.cc,_n=De.dc,gn=De.Mc,Gr=De.Nc,Xr=Fe.ka,En=Fe.ka+Fe.T,Fn=Fe.U,Cn=Fn+1>>1;for(Xr==0?wr(Er,_r,null,null,Ir,Kr,an,sn,Ir,Kr,an,sn,pr,yr,null,null,Fn):(wr(De.ec,De.fc,Er,_r,Zr,_n,gn,Gr,Ir,Kr,an,sn,pr,yr-rr.A,pr,yr,Fn),++Ge);Xr+2<En;Xr+=2)Zr=Ir,_n=Kr,gn=an,Gr=sn,Kr+=Fe.Rc,sn+=Fe.Rc,yr+=2*rr.A,wr(Er,(_r+=2*Fe.fa)-Fe.fa,Er,_r,Zr,_n,gn,Gr,Ir,Kr,an,sn,pr,yr-rr.A,pr,yr,Fn);return _r+=Fe.fa,Fe.j+En<Fe.o?(Ee(De.ec,De.fc,Er,_r,Fn),Ee(De.cc,De.dc,Ir,Kr,Cn),Ee(De.Mc,De.Nc,an,sn,Cn),Ge--):1&En||wr(Er,_r,null,null,Ir,Kr,an,sn,Ir,Kr,an,sn,pr,yr+rr.A,null,null,Fn),Ge}function Wr(Fe,De,Ge){var rr=Fe.F,pr=[Fe.J];if(rr!=null){var yr=Fe.U,wr=De.ba.S,Er=wr==qa||wr==za;De=De.ba.f.RGBA;var _r=[0],Ir=Fe.ka;_r[0]=Fe.T,Fe.Kb&&(Ir==0?--_r[0]:(--Ir,pr[0]-=Fe.width),Fe.j+Fe.ka+Fe.T==Fe.o&&(_r[0]=Fe.o-Fe.j-Ir));var Kr=De.eb;Ir=De.fb+Ir*De.A,Fe=si(rr,pr[0],Fe.width,yr,_r,Kr,Ir+(Er?0:3),De.A),St(Ge==_r),Fe&&dr(wr)&&oi(Kr,Ir,Er,yr,_r,De.A)}return 0}function bn(Fe){var De=Fe.ma,Ge=De.ba.S,rr=11>Ge,pr=Ge==ja||Ge==Ga||Ge==qa||Ge==ss||Ge==12||dr(Ge);if(De.memory=null,De.Ib=null,De.Jb=null,De.Nd=null,!fa(De.Oa,Fe,pr?11:12))return 0;if(pr&&dr(Ge)&&In(),Fe.da)alert("todo:use_scaling");else{if(rr){if(De.Ib=Xe,Fe.Kb){if(Ge=Fe.U+1>>1,De.memory=_e(Fe.U+2*Ge),De.memory==null)return 0;De.ec=De.memory,De.fc=0,De.cc=De.ec,De.dc=De.fc+Fe.U,De.Mc=De.cc,De.Nc=De.dc+Ge,De.Ib=ke,In()}}else alert("todo:EmitYUV");pr&&(De.Jb=Wr,rr&&rn())}if(rr&&!Us){for(Fe=0;256>Fe;++Fe)vl[Fe]=89858*(Fe-128)+Ya>>Wa,wl[Fe]=-22014*(Fe-128)+Ya,yl[Fe]=-45773*(Fe-128),ml[Fe]=113618*(Fe-128)+Ya>>Wa;for(Fe=Qa;Fe<ps;++Fe)De=76283*(Fe-16)+Ya>>Wa,Bl[Fe-Qa]=UA(De,255),bl[Fe-Qa]=UA(De+8>>4,15);Us=1}return 1}function Jn(Fe){var De=Fe.ma,Ge=Fe.U,rr=Fe.T;return St(!(1&Fe.ka)),0>=Ge||0>=rr?0:(Ge=De.Ib(Fe,De),De.Jb!=null&&De.Jb(Fe,De,Ge),De.Dc+=Ge,1)}function pi(Fe){Fe.ma.memory=null}function Mn(Fe,De,Ge,rr){return qr(Fe,8)!=47?0:(De[0]=qr(Fe,14)+1,Ge[0]=qr(Fe,14)+1,rr[0]=qr(Fe,1),qr(Fe,3)!=0?0:!Fe.h)}function Ti(Fe,De){if(4>Fe)return Fe+1;var Ge=Fe-2>>1;return(2+(1&Fe)<<Ge)+qr(De,Ge)+1}function Oi(Fe,De){return 120<De?De-120:1<=(Ge=((Ge=rl[De-1])>>4)*Fe+(8-(15&Ge)))?Ge:1;var Ge}function Ni(Fe,De,Ge){var rr=Tr(Ge),pr=Fe[De+=255&rr].g-8;return 0<pr&&($r(Ge,Ge.u+8),rr=Tr(Ge),De+=Fe[De].value,De+=rr&(1<<pr)-1),$r(Ge,Ge.u+Fe[De].g),Fe[De].value}function Hi(Fe,De,Ge){return Ge.g+=Fe.g,Ge.value+=Fe.value<<De>>>0,St(8>=Ge.g),Fe.g}function Ki(Fe,De,Ge){var rr=Fe.xc;return St((De=rr==0?0:Fe.vc[Fe.md*(Ge>>rr)+(De>>rr)])<Fe.Wb),Fe.Ya[De]}function Zi(Fe,De,Ge,rr){var pr=Fe.ab,yr=Fe.c*De,wr=Fe.C;De=wr+De;var Er=Ge,_r=rr;for(rr=Fe.Ta,Ge=Fe.Ua;0<pr--;){var Ir=Fe.gc[pr],Kr=wr,an=De,sn=Er,Zr=_r,_n=(_r=rr,Er=Ge,Ir.Ea);switch(St(Kr<an),St(an<=Ir.nc),Ir.hc){case 2:Ta(sn,Zr,(an-Kr)*_n,_r,Er);break;case 0:var gn=Kr,Gr=an,Xr=_r,En=Er,Fn=(qn=Ir).Ea;gn==0&&(Ca(sn,Zr,null,null,1,Xr,En),Ai(sn,Zr+1,0,0,Fn-1,Xr,En+1),Zr+=Fn,En+=Fn,++gn);for(var Cn=1<<qn.b,Xn=Cn-1,jn=Wn(Fn,qn.b),hi=qn.K,qn=qn.w+(gn>>qn.b)*jn;gn<Gr;){var Li=hi,Qi=qn,Ui=1;for(qo(sn,Zr,Xr,En-Fn,1,Xr,En);Ui<Fn;){var Fi=(Ui&~Xn)+Cn;Fi>Fn&&(Fi=Fn),(0,ro[Li[Qi++]>>8&15])(sn,Zr+ +Ui,Xr,En+Ui-Fn,Fi-Ui,Xr,En+Ui),Ui=Fi}Zr+=Fn,En+=Fn,++gn&Xn||(qn+=jn)}an!=Ir.nc&&Ee(_r,Er-_n,_r,Er+(an-Kr-1)*_n,_n);break;case 1:for(_n=sn,Gr=Zr,Fn=(sn=Ir.Ea)-(En=sn&~(Xr=(Zr=1<<Ir.b)-1)),gn=Wn(sn,Ir.b),Cn=Ir.K,Ir=Ir.w+(Kr>>Ir.b)*gn;Kr<an;){for(Xn=Cn,jn=Ir,hi=new Dn,qn=Gr+En,Li=Gr+sn;Gr<qn;)Bi(Xn[jn++],hi),DA(hi,_n,Gr,Zr,_r,Er),Gr+=Zr,Er+=Zr;Gr<Li&&(Bi(Xn[jn++],hi),DA(hi,_n,Gr,Fn,_r,Er),Gr+=Fn,Er+=Fn),++Kr&Xr||(Ir+=gn)}break;case 3:if(sn==_r&&Zr==Er&&0<Ir.b){for(Gr=_r,sn=_n=Er+(an-Kr)*_n-(En=(an-Kr)*Wn(Ir.Ea,Ir.b)),Zr=_r,Xr=Er,gn=[],En=(Fn=En)-1;0<=En;--En)gn[En]=Zr[Xr+En];for(En=Fn-1;0<=En;--En)Gr[sn+En]=gn[En];Si(Ir,Kr,an,_r,_n,_r,Er)}else Si(Ir,Kr,an,sn,Zr,_r,Er)}Er=rr,_r=Ge}_r!=Ge&&Ee(rr,Ge,Er,_r,yr)}function oo(Fe,De){var Ge=Fe.V,rr=Fe.Ba+Fe.c*Fe.C,pr=De-Fe.C;if(St(De<=Fe.l.o),St(16>=pr),0<pr){var yr=Fe.l,wr=Fe.Ta,Er=Fe.Ua,_r=yr.width;if(Zi(Fe,pr,Ge,rr),pr=Er=[Er],St((Ge=Fe.C)<(rr=De)),St(yr.v<yr.va),rr>yr.o&&(rr=yr.o),Ge<yr.j){var Ir=yr.j-Ge;Ge=yr.j,pr[0]+=Ir*_r}if(Ge>=rr?Ge=0:(pr[0]+=4*yr.v,yr.ka=Ge-yr.j,yr.U=yr.va-yr.v,yr.T=rr-Ge,Ge=1),Ge){if(Er=Er[0],11>(Ge=Fe.ca).S){var Kr=Ge.f.RGBA,an=(rr=Ge.S,pr=yr.U,yr=yr.T,Ir=Kr.eb,Kr.A),sn=yr;for(Kr=Kr.fb+Fe.Ma*Kr.A;0<sn--;){var Zr=wr,_n=Er,gn=pr,Gr=Ir,Xr=Kr;switch(rr){case Ka:GA(Zr,_n,gn,Gr,Xr);break;case ja:Bo(Zr,_n,gn,Gr,Xr);break;case ls:Bo(Zr,_n,gn,Gr,Xr),oi(Gr,Xr,0,gn,1,0);break;case Cs:bo(Zr,_n,gn,Gr,Xr);break;case Ga:je(Zr,_n,gn,Gr,Xr,1);break;case us:je(Zr,_n,gn,Gr,Xr,1),oi(Gr,Xr,0,gn,1,0);break;case qa:je(Zr,_n,gn,Gr,Xr,0);break;case za:je(Zr,_n,gn,Gr,Xr,0),oi(Gr,Xr,1,gn,1,0);break;case ss:qA(Zr,_n,gn,Gr,Xr);break;case cs:qA(Zr,_n,gn,Gr,Xr),ai(Gr,Xr,gn,1,0);break;case _s:CA(Zr,_n,gn,Gr,Xr);break;default:St(0)}Er+=_r,Kr+=an}Fe.Ma+=yr}else alert("todo:EmitRescaledRowsYUVA");St(Fe.Ma<=Ge.height)}}Fe.C=De,St(Fe.C<=Fe.i)}function fA(Fe){var De;if(0<Fe.ua)return 0;for(De=0;De<Fe.Wb;++De){var Ge=Fe.Ya[De].G,rr=Fe.Ya[De].H;if(0<Ge[1][rr[1]+0].g||0<Ge[2][rr[2]+0].g||0<Ge[3][rr[3]+0].g)return 0}return 1}function qi(Fe,De,Ge,rr,pr,yr){if(Fe.Z!=0){var wr=Fe.qd,Er=Fe.rd;for(St(Wo[Fe.Z]!=null);De<Ge;++De)Wo[Fe.Z](wr,Er,rr,pr,rr,pr,yr),wr=rr,Er=pr,pr+=yr;Fe.qd=wr,Fe.rd=Er}}function wA(Fe,De){var Ge=Fe.l.ma,rr=Ge.Z==0||Ge.Z==1?Fe.l.j:Fe.C;if(rr=Fe.C<rr?rr:Fe.C,St(De<=Fe.l.o),De>rr){var pr=Fe.l.width,yr=Ge.ca,wr=Ge.tb+pr*rr,Er=Fe.V,_r=Fe.Ba+Fe.c*rr,Ir=Fe.gc;St(Fe.ab==1),St(Ir[0].hc==3),RA(Ir[0],rr,De,Er,_r,yr,wr),qi(Ge,rr,De,yr,wr,pr)}Fe.C=Fe.Ma=De}function TA(Fe,De,Ge,rr,pr,yr,wr){var Er=Fe.$/rr,_r=Fe.$%rr,Ir=Fe.m,Kr=Fe.s,an=Ge+Fe.$,sn=an;pr=Ge+rr*pr;var Zr=Ge+rr*yr,_n=280+Kr.ua,gn=Fe.Pb?Er:16777216,Gr=0<Kr.ua?Kr.Wa:null,Xr=Kr.wc,En=an<Zr?Ki(Kr,_r,Er):null;St(Fe.C<yr),St(Zr<=pr);var Fn=!1;t:for(;;){for(;Fn||an<Zr;){var Cn=0;if(Er>=gn){var Xn=an-Ge;St((gn=Fe).Pb),gn.wd=gn.m,gn.xd=Xn,0<gn.s.ua&&fn(gn.s.Wa,gn.s.vb),gn=Er+il}if(_r&Xr||(En=Ki(Kr,_r,Er)),St(En!=null),En.Qb&&(De[an]=En.qb,Fn=!0),!Fn)if(Qr(Ir),En.jc){Cn=Ir,Xn=De;var jn=an,hi=En.pd[Tr(Cn)&lA-1];St(En.jc),256>hi.g?($r(Cn,Cn.u+hi.g),Xn[jn]=hi.value,Cn=0):($r(Cn,Cn.u+hi.g-256),St(256<=hi.value),Cn=hi.value),Cn==0&&(Fn=!0)}else Cn=Ni(En.G[0],En.H[0],Ir);if(Ir.h)break;if(Fn||256>Cn){if(!Fn)if(En.nd)De[an]=(En.qb|Cn<<8)>>>0;else{if(Qr(Ir),Fn=Ni(En.G[1],En.H[1],Ir),Qr(Ir),Xn=Ni(En.G[2],En.H[2],Ir),jn=Ni(En.G[3],En.H[3],Ir),Ir.h)break;De[an]=(jn<<24|Fn<<16|Cn<<8|Xn)>>>0}if(Fn=!1,++an,++_r>=rr&&(_r=0,++Er,wr!=null&&Er<=yr&&!(Er%16)&&wr(Fe,Er),Gr!=null))for(;sn<an;)Cn=De[sn++],Gr.X[(506832829*Cn&4294967295)>>>Gr.Mb]=Cn}else if(280>Cn){if(Cn=Ti(Cn-256,Ir),Xn=Ni(En.G[4],En.H[4],Ir),Qr(Ir),Xn=Oi(rr,Xn=Ti(Xn,Ir)),Ir.h)break;if(an-Ge<Xn||pr-an<Cn)break t;for(jn=0;jn<Cn;++jn)De[an+jn]=De[an+jn-Xn];for(an+=Cn,_r+=Cn;_r>=rr;)_r-=rr,++Er,wr!=null&&Er<=yr&&!(Er%16)&&wr(Fe,Er);if(St(an<=pr),_r&Xr&&(En=Ki(Kr,_r,Er)),Gr!=null)for(;sn<an;)Cn=De[sn++],Gr.X[(506832829*Cn&4294967295)>>>Gr.Mb]=Cn}else{if(!(Cn<_n))break t;for(Fn=Cn-280,St(Gr!=null);sn<an;)Cn=De[sn++],Gr.X[(506832829*Cn&4294967295)>>>Gr.Mb]=Cn;Cn=an,St(!(Fn>>>(Xn=Gr).Xa)),De[Cn]=Xn.X[Fn],Fn=!0}Fn||St(Ir.h==xr(Ir))}if(Fe.Pb&&Ir.h&&an<pr)St(Fe.m.h),Fe.a=5,Fe.m=Fe.wd,Fe.$=Fe.xd,0<Fe.s.ua&&fn(Fe.s.vb,Fe.s.Wa);else{if(Ir.h)break t;wr!=null&&wr(Fe,Er>yr?yr:Er),Fe.a=0,Fe.$=an-Ge}return 1}return Fe.a=3,0}function hA(Fe){St(Fe!=null),Fe.vc=null,Fe.yc=null,Fe.Ya=null;var De=Fe.Wa;De!=null&&(De.X=null),Fe.vb=null,St(Fe!=null)}function gA(){var Fe=new bA;return Fe==null?null:(Fe.a=0,Fe.xb=xs,sr("Predictor","VP8LPredictors"),sr("Predictor","VP8LPredictors_C"),sr("PredictorAdd","VP8LPredictorsAdd"),sr("PredictorAdd","VP8LPredictorsAdd_C"),Ta=yi,DA=ei,GA=Qn,Bo=Ii,qA=gi,CA=br,bo=Ke,We.VP8LMapColor32b=wo,We.VP8LMapColor8b=$A,Fe)}function OA(Fe,De,Ge,rr,pr){var yr=1,wr=[Fe],Er=[De],_r=rr.m,Ir=rr.s,Kr=null,an=0;t:for(;;){if(Ge)for(;yr&&qr(_r,1);){var sn=wr,Zr=Er,_n=rr,gn=1,Gr=_n.m,Xr=_n.gc[_n.ab],En=qr(Gr,2);if(_n.Oc&1<<En)yr=0;else{switch(_n.Oc|=1<<En,Xr.hc=En,Xr.Ea=sn[0],Xr.nc=Zr[0],Xr.K=[null],++_n.ab,St(4>=_n.ab),En){case 0:case 1:Xr.b=qr(Gr,3)+2,gn=OA(Wn(Xr.Ea,Xr.b),Wn(Xr.nc,Xr.b),0,_n,Xr.K),Xr.K=Xr.K[0];break;case 3:var Fn,Cn=qr(Gr,8)+1,Xn=16<Cn?0:4<Cn?1:2<Cn?2:3;if(sn[0]=Wn(Xr.Ea,Xn),Xr.b=Xn,Fn=gn=OA(Cn,1,0,_n,Xr.K)){var jn,hi=Cn,qn=Xr,Li=1<<(8>>qn.b),Qi=_e(Li);if(Qi==null)Fn=0;else{var Ui=qn.K[0],Fi=qn.w;for(Qi[0]=qn.K[0][0],jn=1;jn<1*hi;++jn)Qi[jn]=Tn(Ui[Fi+jn],Qi[jn-1]);for(;jn<4*Li;++jn)Qi[jn]=0;qn.K[0]=null,qn.K[0]=Qi,Fn=1}}gn=Fn;break;case 2:break;default:St(0)}yr=gn}}if(wr=wr[0],Er=Er[0],yr&&qr(_r,1)&&!(yr=1<=(an=qr(_r,4))&&11>=an)){rr.a=3;break t}var Gi;if(Gi=yr)e:{var Vi,Ei,uA,KA=rr,cA=wr,jA=Er,Mi=an,WA=Ge,YA=KA.m,mA=KA.s,_A=[null],QA=1,Ao=0,To=nl[Mi];r:for(;;){if(WA&&qr(YA,1)){var yA=qr(YA,3)+2,Ro=Wn(cA,yA),pa=Wn(jA,yA),Sa=Ro*pa;if(!OA(Ro,pa,0,KA,_A))break r;for(_A=_A[0],mA.xc=yA,Vi=0;Vi<Sa;++Vi){var Yo=_A[Vi]>>8&65535;_A[Vi]=Yo,Yo>=QA&&(QA=Yo+1)}}if(YA.h)break r;for(Ei=0;5>Ei;++Ei){var AA=Ts[Ei];!Ei&&0<Mi&&(AA+=1<<Mi),Ao<AA&&(Ao=AA)}var ds=Te(QA*To,ir),$s=QA,Ds=Te($s,vr);if(Ds==null)var Ja=null;else St(65536>=$s),Ja=Ds;var Ma=_e(Ao);if(Ja==null||Ma==null||ds==null){KA.a=1;break r}var Za=ds;for(Vi=uA=0;Vi<QA;++Vi){var po=Ja[Vi],xa=po.G,Ia=po.H,Qs=0,ts=1,Ms=0;for(Ei=0;5>Ei;++Ei){AA=Ts[Ei],xa[Ei]=Za,Ia[Ei]=uA,!Ei&&0<Mi&&(AA+=1<<Mi);i:{var es,gs=AA,rs=KA,Ha=Ma,_l=Za,Tl=uA,vs=0,Xo=rs.m,Sl=qr(Xo,1);if(Ce(Ha,0,0,gs),Sl){var xl=qr(Xo,1)+1,Il=qr(Xo,1),Hs=qr(Xo,Il==0?1:8);Ha[Hs]=1,xl==2&&(Ha[Hs=qr(Xo,8)]=1);var ns=1}else{var ks=_e(19),Vs=qr(Xo,4)+4;if(19<Vs){rs.a=3;var is=0;break i}for(es=0;es<Vs;++es)ks[el[es]]=qr(Xo,3);var ms=void 0,ka=void 0,Ks=rs,Fl=ks,As=gs,js=Ha,ys=0,Jo=Ks.m,Gs=8,qs=Te(128,ir);n:for(;er(qs,0,7,Fl,19);){if(qr(Jo,1)){var Pl=2+2*qr(Jo,3);if((ms=2+qr(Jo,Pl))>As)break n}else ms=As;for(ka=0;ka<As&&ms--;){Qr(Jo);var zs=qs[0+(127&Tr(Jo))];$r(Jo,Jo.u+zs.g);var Fa=zs.value;if(16>Fa)js[ka++]=Fa,Fa!=0&&(Gs=Fa);else{var Ol=Fa==16,Ws=Fa-16,Nl=Zs[Ws],Ys=qr(Jo,Js[Ws])+Nl;if(ka+Ys>As)break n;for(var Ul=Ol?Gs:0;0<Ys--;)js[ka++]=Ul}}ys=1;break n}ys||(Ks.a=3),ns=ys}(ns=ns&&!Xo.h)&&(vs=er(_l,Tl,8,Ha,gs)),ns&&vs!=0?is=vs:(rs.a=3,is=0)}if(is==0)break r;if(ts&&tl[Ei]==1&&(ts=Za[uA].g==0),Qs+=Za[uA].g,uA+=is,3>=Ei){var Va,ws=Ma[0];for(Va=1;Va<AA;++Va)Ma[Va]>ws&&(ws=Ma[Va]);Ms+=ws}}if(po.nd=ts,po.Qb=0,ts&&(po.qb=(xa[3][Ia[3]+0].value<<24|xa[1][Ia[1]+0].value<<16|xa[2][Ia[2]+0].value)>>>0,Qs==0&&256>xa[0][Ia[0]+0].value&&(po.Qb=1,po.qb+=xa[0][Ia[0]+0].value<<8)),po.jc=!po.Qb&&6>Ms,po.jc){var os,$o=po;for(os=0;os<lA;++os){var Zo=os,ta=$o.pd[Zo],as=$o.G[0][$o.H[0]+Zo];256<=as.value?(ta.g=as.g+256,ta.value=as.value):(ta.g=0,ta.value=0,Zo>>=Hi(as,8,ta),Zo>>=Hi($o.G[1][$o.H[1]+Zo],16,ta),Zo>>=Hi($o.G[2][$o.H[2]+Zo],0,ta),Hi($o.G[3][$o.H[3]+Zo],24,ta))}}}mA.vc=_A,mA.Wb=QA,mA.Ya=Ja,mA.yc=ds,Gi=1;break e}Gi=0}if(!(yr=Gi)){rr.a=3;break t}if(0<an){if(Ir.ua=1<<an,!zn(Ir.Wa,an)){rr.a=1,yr=0;break t}}else Ir.ua=0;var Bs=rr,Xs=wr,Ll=Er,bs=Bs.s,Es=bs.xc;if(Bs.c=Xs,Bs.i=Ll,bs.md=Wn(Xs,Es),bs.wc=Es==0?-1:(1<<Es)-1,Ge){rr.xb=cl;break t}if((Kr=_e(wr*Er))==null){rr.a=1,yr=0;break t}yr=(yr=TA(rr,Kr,0,wr,Er,Er,null))&&!_r.h;break t}return yr?(pr!=null?pr[0]=Kr:(St(Kr==null),St(Ge)),rr.$=0,Ge||hA(Ir)):hA(Ir),yr}function Zn(Fe,De){var Ge=Fe.c*Fe.i,rr=Ge+De+16*De;return St(Fe.c<=De),Fe.V=_e(rr),Fe.V==null?(Fe.Ta=null,Fe.Ua=0,Fe.a=1,0):(Fe.Ta=Fe.V,Fe.Ua=Fe.Ba+Ge+De,1)}function Yr(Fe,De){var Ge=Fe.C,rr=De-Ge,pr=Fe.V,yr=Fe.Ba+Fe.c*Ge;for(St(De<=Fe.l.o);0<rr;){var wr=16<rr?16:rr,Er=Fe.l.ma,_r=Fe.l.width,Ir=_r*wr,Kr=Er.ca,an=Er.tb+_r*Ge,sn=Fe.Ta,Zr=Fe.Ua;Zi(Fe,wr,pr,yr),Ci(sn,Zr,Kr,an,Ir),qi(Er,Ge,Ge+wr,Kr,an,_r),rr-=wr,pr+=wr*Fe.c,Ge+=wr}St(Ge==De),Fe.C=Fe.Ma=De}function Ln(){this.ub=this.yd=this.td=this.Rb=0}function Hn(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function _i(){this.Fb=this.Bb=this.Cb=0,this.Zb=_e(4),this.Lb=_e(4)}function rA(){this.Yb=function(){var Fe=[];return function De(Ge,rr,pr){for(var yr=pr[rr],wr=0;wr<yr&&(Ge.push(pr.length>rr+1?[]:0),!(pr.length<rr+1));wr++)De(Ge[wr],rr+1,pr)}(Fe,0,[3,11]),Fe}()}function nA(){this.jb=_e(3),this.Wc=Se([4,8],rA),this.Xc=Se([4,17],rA)}function Xi(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new _e(4),this.od=new _e(4)}function MA(){this.ld=this.La=this.dd=this.tc=0}function ji(){this.Na=this.la=0}function go(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function tA(){this.ad=_e(384),this.Za=0,this.Ob=_e(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ao(){this.uc=this.M=this.Nb=0,this.wa=Array(new MA),this.Y=0,this.ya=Array(new tA),this.aa=0,this.l=new Do}function So(){this.y=_e(16),this.f=_e(8),this.ea=_e(8)}function Oa(){this.cb=this.a=0,this.sc="",this.m=new An,this.Od=new Ln,this.Kc=new Hn,this.ed=new Xi,this.Qa=new _i,this.Ic=this.$c=this.Aa=0,this.D=new ao,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Te(8,An),this.ia=0,this.pb=Te(4,go),this.Pa=new nA,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new So),this.Hd=0,this.rb=Array(new ji),this.sb=0,this.wa=Array(new MA),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new tA),this.L=this.aa=0,this.gd=Se([4,2],MA),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Do(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ea(){var Fe=new Oa;return Fe!=null&&(Fe.a=0,Fe.sc="OK",Fe.cb=0,Fe.Xb=0,Da||(Da=da)),Fe}function Ji(Fe,De,Ge){return Fe.a==0&&(Fe.a=De,Fe.sc=Ge,Fe.cb=0),0}function xo(Fe,De,Ge){return 3<=Ge&&Fe[De+0]==157&&Fe[De+1]==1&&Fe[De+2]==42}function ra(Fe,De){if(Fe==null)return 0;if(Fe.a=0,Fe.sc="OK",De==null)return Ji(Fe,2,"null VP8Io passed to VP8GetHeaders()");var Ge=De.data,rr=De.w,pr=De.ha;if(4>pr)return Ji(Fe,7,"Truncated header.");var yr=Ge[rr+0]|Ge[rr+1]<<8|Ge[rr+2]<<16,wr=Fe.Od;if(wr.Rb=!(1&yr),wr.td=yr>>1&7,wr.yd=yr>>4&1,wr.ub=yr>>5,3<wr.td)return Ji(Fe,3,"Incorrect keyframe parameters.");if(!wr.yd)return Ji(Fe,4,"Frame not displayable.");rr+=3,pr-=3;var Er=Fe.Kc;if(wr.Rb){if(7>pr)return Ji(Fe,7,"cannot parse picture header");if(!xo(Ge,rr,pr))return Ji(Fe,3,"Bad code word");Er.c=16383&(Ge[rr+4]<<8|Ge[rr+3]),Er.Td=Ge[rr+4]>>6,Er.i=16383&(Ge[rr+6]<<8|Ge[rr+5]),Er.Ud=Ge[rr+6]>>6,rr+=7,pr-=7,Fe.za=Er.c+15>>4,Fe.Ub=Er.i+15>>4,De.width=Er.c,De.height=Er.i,De.Da=0,De.j=0,De.v=0,De.va=De.width,De.o=De.height,De.da=0,De.ib=De.width,De.hb=De.height,De.U=De.width,De.T=De.height,Ce((yr=Fe.Pa).jb,0,255,yr.jb.length),St((yr=Fe.Qa)!=null),yr.Cb=0,yr.Bb=0,yr.Fb=1,Ce(yr.Zb,0,0,yr.Zb.length),Ce(yr.Lb,0,0,yr.Lb)}if(wr.ub>pr)return Ji(Fe,7,"bad partition length");Or(yr=Fe.m,Ge,rr,wr.ub),rr+=wr.ub,pr-=wr.ub,wr.Rb&&(Er.Ld=nn(yr),Er.Kd=nn(yr)),Er=Fe.Qa;var _r,Ir=Fe.Pa;if(St(yr!=null),St(Er!=null),Er.Cb=nn(yr),Er.Cb){if(Er.Bb=nn(yr),nn(yr)){for(Er.Fb=nn(yr),_r=0;4>_r;++_r)Er.Zb[_r]=nn(yr)?Hr(yr,7):0;for(_r=0;4>_r;++_r)Er.Lb[_r]=nn(yr)?Hr(yr,6):0}if(Er.Bb)for(_r=0;3>_r;++_r)Ir.jb[_r]=nn(yr)?Nr(yr,8):255}else Er.Bb=0;if(yr.Ka)return Ji(Fe,3,"cannot parse segment header");if((Er=Fe.ed).zd=nn(yr),Er.Tb=Nr(yr,6),Er.wb=Nr(yr,3),Er.Pc=nn(yr),Er.Pc&&nn(yr)){for(Ir=0;4>Ir;++Ir)nn(yr)&&(Er.vd[Ir]=Hr(yr,6));for(Ir=0;4>Ir;++Ir)nn(yr)&&(Er.od[Ir]=Hr(yr,6))}if(Fe.L=Er.Tb==0?0:Er.zd?1:2,yr.Ka)return Ji(Fe,3,"cannot parse filter header");var Kr=pr;if(pr=_r=rr,rr=_r+Kr,Er=Kr,Fe.Xb=(1<<Nr(Fe.m,2))-1,Kr<3*(Ir=Fe.Xb))Ge=7;else{for(_r+=3*Ir,Er-=3*Ir,Kr=0;Kr<Ir;++Kr){var an=Ge[pr+0]|Ge[pr+1]<<8|Ge[pr+2]<<16;an>Er&&(an=Er),Or(Fe.Jc[+Kr],Ge,_r,an),_r+=an,Er-=an,pr+=3}Or(Fe.Jc[+Ir],Ge,_r,Er),Ge=_r<rr?0:5}if(Ge!=0)return Ji(Fe,Ge,"cannot parse partitions");for(Ge=Nr(_r=Fe.m,7),pr=nn(_r)?Hr(_r,4):0,rr=nn(_r)?Hr(_r,4):0,Er=nn(_r)?Hr(_r,4):0,Ir=nn(_r)?Hr(_r,4):0,_r=nn(_r)?Hr(_r,4):0,Kr=Fe.Qa,an=0;4>an;++an){if(Kr.Cb){var sn=Kr.Zb[an];Kr.Fb||(sn+=Ge)}else{if(0<an){Fe.pb[an]=Fe.pb[0];continue}sn=Ge}var Zr=Fe.pb[an];Zr.Sc[0]=fs[UA(sn+pr,127)],Zr.Sc[1]=hs[UA(sn+0,127)],Zr.Eb[0]=2*fs[UA(sn+rr,127)],Zr.Eb[1]=101581*hs[UA(sn+Er,127)]>>16,8>Zr.Eb[1]&&(Zr.Eb[1]=8),Zr.Qc[0]=fs[UA(sn+Ir,117)],Zr.Qc[1]=hs[UA(sn+_r,127)],Zr.lc=sn+_r}if(!wr.Rb)return Ji(Fe,4,"Not a key frame.");for(nn(yr),wr=Fe.Pa,Ge=0;4>Ge;++Ge){for(pr=0;8>pr;++pr)for(rr=0;3>rr;++rr)for(Er=0;11>Er;++Er)Ir=en(yr,ll[Ge][pr][rr][Er])?Nr(yr,8):al[Ge][pr][rr][Er],wr.Wc[Ge][pr].Yb[rr][Er]=Ir;for(pr=0;17>pr;++pr)wr.Xc[Ge][pr]=wr.Wc[Ge][ul[pr]]}return Fe.kc=nn(yr),Fe.kc&&(Fe.Bd=Nr(yr,8)),Fe.cb=1}function da(Fe,De,Ge,rr,pr,yr,wr){var Er=De[pr].Yb[Ge];for(Ge=0;16>pr;++pr){if(!en(Fe,Er[Ge+0]))return pr;for(;!en(Fe,Er[Ge+1]);)if(Er=De[++pr].Yb[0],Ge=0,pr==16)return 16;var _r=De[pr+1].Yb;if(en(Fe,Er[Ge+2])){var Ir=Fe,Kr=0;if(en(Ir,(sn=Er)[(an=Ge)+3]))if(en(Ir,sn[an+6])){for(Er=0,an=2*(Kr=en(Ir,sn[an+8]))+(sn=en(Ir,sn[an+9+Kr])),Kr=0,sn=Al[an];sn[Er];++Er)Kr+=Kr+en(Ir,sn[Er]);Kr+=3+(8<<an)}else en(Ir,sn[an+7])?(Kr=7+2*en(Ir,165),Kr+=en(Ir,145)):Kr=5+en(Ir,159);else Kr=en(Ir,sn[an+4])?3+en(Ir,sn[an+5]):2;Er=_r[2]}else Kr=1,Er=_r[1];_r=wr+ol[pr],0>(Ir=Fe).b&&Jr(Ir);var an,sn=Ir.b,Zr=(an=Ir.Ca>>1)-(Ir.I>>sn)>>31;--Ir.b,Ir.Ca+=Zr,Ir.Ca|=1,Ir.I-=(an+1&Zr)<<sn,yr[_r]=((Kr^Zr)-Zr)*rr[(0<pr)+0]}return 16}function na(Fe){var De=Fe.rb[Fe.sb-1];De.la=0,De.Na=0,Ce(Fe.zc,0,0,Fe.zc.length),Fe.ja=0}function NA(Fe,De){if(Fe==null)return 0;if(De==null)return Ji(Fe,2,"NULL VP8Io parameter in VP8Decode().");if(!Fe.cb&&!ra(Fe,De))return 0;if(St(Fe.cb),De.ac==null||De.ac(De)){De.ob&&(Fe.L=0);var Ge=Xa[Fe.L];if(Fe.L==2?(Fe.yb=0,Fe.zb=0):(Fe.yb=De.v-Ge>>4,Fe.zb=De.j-Ge>>4,0>Fe.yb&&(Fe.yb=0),0>Fe.zb&&(Fe.zb=0)),Fe.Va=De.o+15+Ge>>4,Fe.Hb=De.va+15+Ge>>4,Fe.Hb>Fe.za&&(Fe.Hb=Fe.za),Fe.Va>Fe.Ub&&(Fe.Va=Fe.Ub),0<Fe.L){var rr=Fe.ed;for(Ge=0;4>Ge;++Ge){var pr;if(Fe.Qa.Cb){var yr=Fe.Qa.Lb[Ge];Fe.Qa.Fb||(yr+=rr.Tb)}else yr=rr.Tb;for(pr=0;1>=pr;++pr){var wr=Fe.gd[Ge][pr],Er=yr;if(rr.Pc&&(Er+=rr.vd[0],pr&&(Er+=rr.od[0])),0<(Er=0>Er?0:63<Er?63:Er)){var _r=Er;0<rr.wb&&(_r=4<rr.wb?_r>>2:_r>>1)>9-rr.wb&&(_r=9-rr.wb),1>_r&&(_r=1),wr.dd=_r,wr.tc=2*Er+_r,wr.ld=40<=Er?2:15<=Er?1:0}else wr.tc=0;wr.La=pr}}}Ge=0}else Ji(Fe,6,"Frame setup failed"),Ge=Fe.a;if(Ge=Ge==0){if(Ge){Fe.$c=0,0<Fe.Aa||(Fe.Ic=Cl);t:{Ge=Fe.Ic,rr=4*(_r=Fe.za);var Ir=32*_r,Kr=_r+1,an=0<Fe.L?_r*(0<Fe.Aa?2:1):0,sn=(Fe.Aa==2?2:1)*_r;if((wr=rr+832+(pr=3*(16*Ge+Xa[Fe.L])/2*Ir)+(yr=Fe.Fa!=null&&0<Fe.Fa.length?Fe.Kc.c*Fe.Kc.i:0))!=wr)Ge=0;else{if(wr>Fe.Vb){if(Fe.Vb=0,Fe.Ec=_e(wr),Fe.Fc=0,Fe.Ec==null){Ge=Ji(Fe,1,"no memory during frame initialization.");break t}Fe.Vb=wr}wr=Fe.Ec,Er=Fe.Fc,Fe.Ac=wr,Fe.Bc=Er,Er+=rr,Fe.Gd=Te(Ir,So),Fe.Hd=0,Fe.rb=Te(Kr+1,ji),Fe.sb=1,Fe.wa=an?Te(an,MA):null,Fe.Y=0,Fe.D.Nb=0,Fe.D.wa=Fe.wa,Fe.D.Y=Fe.Y,0<Fe.Aa&&(Fe.D.Y+=_r),St(!0),Fe.oc=wr,Fe.pc=Er,Er+=832,Fe.ya=Te(sn,tA),Fe.aa=0,Fe.D.ya=Fe.ya,Fe.D.aa=Fe.aa,Fe.Aa==2&&(Fe.D.aa+=_r),Fe.R=16*_r,Fe.B=8*_r,_r=(Ir=Xa[Fe.L])*Fe.R,Ir=Ir/2*Fe.B,Fe.sa=wr,Fe.ta=Er+_r,Fe.qa=Fe.sa,Fe.ra=Fe.ta+16*Ge*Fe.R+Ir,Fe.Ha=Fe.qa,Fe.Ia=Fe.ra+8*Ge*Fe.B+Ir,Fe.$c=0,Er+=pr,Fe.mb=yr?wr:null,Fe.nb=yr?Er:null,St(Er+yr<=Fe.Fc+Fe.Vb),na(Fe),Ce(Fe.Ac,Fe.Bc,0,rr),Ge=1}}if(Ge){if(De.ka=0,De.y=Fe.sa,De.O=Fe.ta,De.f=Fe.qa,De.N=Fe.ra,De.ea=Fe.Ha,De.Vd=Fe.Ia,De.fa=Fe.R,De.Rc=Fe.B,De.F=null,De.J=0,!PA){for(Ge=-255;255>=Ge;++Ge)$i[255+Ge]=0>Ge?-Ge:Ge;for(Ge=-1020;1020>=Ge;++Ge)ui[1020+Ge]=-128>Ge?-128:127<Ge?127:Ge;for(Ge=-112;112>=Ge;++Ge)iA[112+Ge]=-16>Ge?-16:15<Ge?15:Ge;for(Ge=-255;510>=Ge;++Ge)pA[255+Ge]=0>Ge?0:255<Ge?255:Ge;PA=1}kA=ga,co=so,no=Qo,zA=Na,VA=Aa,Eo=JA,fo=Lr,Co=Rr,Uo=xn,Cr=un,Ur=tn,Vr=cn,mn=vn,zr=ii,dn=Qe,yn=qe,Nn=tr,Vn=ur,ho[0]=to,ho[1]=va,ho[2]=Ra,ho[3]=$a,ho[4]=aa,ho[5]=Io,ho[6]=Vo,ho[7]=Fo,ho[8]=wa,ho[9]=ya,zo[0]=ko,zo[1]=Ua,zo[2]=ZA,zo[3]=Mo,zo[4]=vA,zo[5]=La,zo[6]=ma,Lo[0]=vo,Lo[1]=oa,Lo[2]=sa,Lo[3]=la,Lo[4]=mo,Lo[5]=Oo,Lo[6]=No,Ge=1}else Ge=0}Ge&&(Ge=function(Zr,_n){for(Zr.M=0;Zr.M<Zr.Va;++Zr.M){var gn,Gr=Zr.Jc[Zr.M&Zr.Xb],Xr=Zr.m,En=Zr;for(gn=0;gn<En.za;++gn){var Fn=Xr,Cn=En,Xn=Cn.Ac,jn=Cn.Bc+4*gn,hi=Cn.zc,qn=Cn.ya[Cn.aa+gn];if(Cn.Qa.Bb?qn.$b=en(Fn,Cn.Pa.jb[0])?2+en(Fn,Cn.Pa.jb[2]):en(Fn,Cn.Pa.jb[1]):qn.$b=0,Cn.kc&&(qn.Ad=en(Fn,Cn.Bd)),qn.Za=!en(Fn,145)+0,qn.Za){var Li=qn.Ob,Qi=0;for(Cn=0;4>Cn;++Cn){var Ui,Fi=hi[0+Cn];for(Ui=0;4>Ui;++Ui){Fi=sl[Xn[jn+Ui]][Fi];for(var Gi=Ss[en(Fn,Fi[0])];0<Gi;)Gi=Ss[2*Gi+en(Fn,Fi[Gi])];Fi=-Gi,Xn[jn+Ui]=Fi}Ee(Li,Qi,Xn,jn,4),Qi+=4,hi[0+Cn]=Fi}}else Fi=en(Fn,156)?en(Fn,128)?1:3:en(Fn,163)?2:0,qn.Ob[0]=Fi,Ce(Xn,jn,Fi,4),Ce(hi,0,Fi,4);qn.Dd=en(Fn,142)?en(Fn,114)?en(Fn,183)?1:3:2:0}if(En.m.Ka)return Ji(Zr,7,"Premature end-of-partition0 encountered.");for(;Zr.ja<Zr.za;++Zr.ja){if(En=Gr,Fn=(Xr=Zr).rb[Xr.sb-1],Xn=Xr.rb[Xr.sb+Xr.ja],gn=Xr.ya[Xr.aa+Xr.ja],jn=Xr.kc?gn.Ad:0)Fn.la=Xn.la=0,gn.Za||(Fn.Na=Xn.Na=0),gn.Hc=0,gn.Gc=0,gn.ia=0;else{var Vi,Ei;if(Fn=Xn,Xn=En,jn=Xr.Pa.Xc,hi=Xr.ya[Xr.aa+Xr.ja],qn=Xr.pb[hi.$b],Cn=hi.ad,Li=0,Qi=Xr.rb[Xr.sb-1],Fi=Ui=0,Ce(Cn,Li,0,384),hi.Za)var uA=0,KA=jn[3];else{Gi=_e(16);var cA=Fn.Na+Qi.Na;if(cA=Da(Xn,jn[1],cA,qn.Eb,0,Gi,0),Fn.Na=Qi.Na=(0<cA)+0,1<cA)kA(Gi,0,Cn,Li);else{var jA=Gi[0]+3>>3;for(Gi=0;256>Gi;Gi+=16)Cn[Li+Gi]=jA}uA=1,KA=jn[0]}var Mi=15&Fn.la,WA=15&Qi.la;for(Gi=0;4>Gi;++Gi){var YA=1&WA;for(jA=Ei=0;4>jA;++jA)Mi=Mi>>1|(YA=(cA=Da(Xn,KA,cA=YA+(1&Mi),qn.Sc,uA,Cn,Li))>uA)<<7,Ei=Ei<<2|(3<cA?3:1<cA?2:Cn[Li+0]!=0),Li+=16;Mi>>=4,WA=WA>>1|YA<<7,Ui=(Ui<<8|Ei)>>>0}for(KA=Mi,uA=WA>>4,Vi=0;4>Vi;Vi+=2){for(Ei=0,Mi=Fn.la>>4+Vi,WA=Qi.la>>4+Vi,Gi=0;2>Gi;++Gi){for(YA=1&WA,jA=0;2>jA;++jA)cA=YA+(1&Mi),Mi=Mi>>1|(YA=0<(cA=Da(Xn,jn[2],cA,qn.Qc,0,Cn,Li)))<<3,Ei=Ei<<2|(3<cA?3:1<cA?2:Cn[Li+0]!=0),Li+=16;Mi>>=2,WA=WA>>1|YA<<5}Fi|=Ei<<4*Vi,KA|=Mi<<4<<Vi,uA|=(240&WA)<<Vi}Fn.la=KA,Qi.la=uA,hi.Hc=Ui,hi.Gc=Fi,hi.ia=43690&Fi?0:qn.ia,jn=!(Ui|Fi)}if(0<Xr.L&&(Xr.wa[Xr.Y+Xr.ja]=Xr.gd[gn.$b][gn.Za],Xr.wa[Xr.Y+Xr.ja].La|=!jn),En.Ka)return Ji(Zr,7,"Premature end-of-file encountered.")}if(na(Zr),Xr=_n,En=1,gn=(Gr=Zr).D,Fn=0<Gr.L&&Gr.M>=Gr.zb&&Gr.M<=Gr.Va,Gr.Aa==0)t:{if(gn.M=Gr.M,gn.uc=Fn,ca(Gr,gn),En=1,gn=(Ei=Gr.D).Nb,Fn=(Fi=Xa[Gr.L])*Gr.R,Xn=Fi/2*Gr.B,Gi=16*gn*Gr.R,jA=8*gn*Gr.B,jn=Gr.sa,hi=Gr.ta-Fn+Gi,qn=Gr.qa,Cn=Gr.ra-Xn+jA,Li=Gr.Ha,Qi=Gr.Ia-Xn+jA,WA=(Mi=Ei.M)==0,Ui=Mi>=Gr.Va-1,Gr.Aa==2&&ca(Gr,Ei),Ei.uc)for(YA=(cA=Gr).D.M,St(cA.D.uc),Ei=cA.yb;Ei<cA.Hb;++Ei){uA=Ei,KA=YA;var mA=(_A=(AA=cA).D).Nb;Vi=AA.R;var _A=_A.wa[_A.Y+uA],QA=AA.sa,Ao=AA.ta+16*mA*Vi+16*uA,To=_A.dd,yA=_A.tc;if(yA!=0)if(St(3<=yA),AA.L==1)0<uA&&yn(QA,Ao,Vi,yA+4),_A.La&&Vn(QA,Ao,Vi,yA),0<KA&&dn(QA,Ao,Vi,yA+4),_A.La&&Nn(QA,Ao,Vi,yA);else{var Ro=AA.B,pa=AA.qa,Sa=AA.ra+8*mA*Ro+8*uA,Yo=AA.Ha,AA=AA.Ia+8*mA*Ro+8*uA;mA=_A.ld,0<uA&&(Co(QA,Ao,Vi,yA+4,To,mA),Cr(pa,Sa,Yo,AA,Ro,yA+4,To,mA)),_A.La&&(Vr(QA,Ao,Vi,yA,To,mA),zr(pa,Sa,Yo,AA,Ro,yA,To,mA)),0<KA&&(fo(QA,Ao,Vi,yA+4,To,mA),Uo(pa,Sa,Yo,AA,Ro,yA+4,To,mA)),_A.La&&(Ur(QA,Ao,Vi,yA,To,mA),mn(pa,Sa,Yo,AA,Ro,yA,To,mA))}}if(Gr.ia&&alert("todo:DitherRow"),Xr.put!=null){if(Ei=16*Mi,Mi=16*(Mi+1),WA?(Xr.y=Gr.sa,Xr.O=Gr.ta+Gi,Xr.f=Gr.qa,Xr.N=Gr.ra+jA,Xr.ea=Gr.Ha,Xr.W=Gr.Ia+jA):(Ei-=Fi,Xr.y=jn,Xr.O=hi,Xr.f=qn,Xr.N=Cn,Xr.ea=Li,Xr.W=Qi),Ui||(Mi-=Fi),Mi>Xr.o&&(Mi=Xr.o),Xr.F=null,Xr.J=null,Gr.Fa!=null&&0<Gr.Fa.length&&Ei<Mi&&(Xr.J=Di(Gr,Xr,Ei,Mi-Ei),Xr.F=Gr.mb,Xr.F==null&&Xr.F.length==0)){En=Ji(Gr,3,"Could not decode alpha data.");break t}Ei<Xr.j&&(Fi=Xr.j-Ei,Ei=Xr.j,St(!(1&Fi)),Xr.O+=Gr.R*Fi,Xr.N+=Gr.B*(Fi>>1),Xr.W+=Gr.B*(Fi>>1),Xr.F!=null&&(Xr.J+=Xr.width*Fi)),Ei<Mi&&(Xr.O+=Xr.v,Xr.N+=Xr.v>>1,Xr.W+=Xr.v>>1,Xr.F!=null&&(Xr.J+=Xr.v),Xr.ka=Ei-Xr.j,Xr.U=Xr.va-Xr.v,Xr.T=Mi-Ei,En=Xr.put(Xr))}gn+1!=Gr.Ic||Ui||(Ee(Gr.sa,Gr.ta-Fn,jn,hi+16*Gr.R,Fn),Ee(Gr.qa,Gr.ra-Xn,qn,Cn+8*Gr.B,Xn),Ee(Gr.Ha,Gr.Ia-Xn,Li,Qi+8*Gr.B,Xn))}if(!En)return Ji(Zr,6,"Output aborted.")}return 1}(Fe,De)),De.bc!=null&&De.bc(De),Ge&=1}return Ge?(Fe.cb=0,Ge):0}function HA(Fe,De,Ge,rr,pr){pr=Fe[De+Ge+32*rr]+(pr>>3),Fe[De+Ge+32*rr]=-256&pr?0>pr?0:255:pr}function XA(Fe,De,Ge,rr,pr,yr){HA(Fe,De,0,Ge,rr+pr),HA(Fe,De,1,Ge,rr+yr),HA(Fe,De,2,Ge,rr-yr),HA(Fe,De,3,Ge,rr-pr)}function xA(Fe){return(20091*Fe>>16)+Fe}function ia(Fe,De,Ge,rr){var pr,yr=0,wr=_e(16);for(pr=0;4>pr;++pr){var Er=Fe[De+0]+Fe[De+8],_r=Fe[De+0]-Fe[De+8],Ir=(35468*Fe[De+4]>>16)-xA(Fe[De+12]),Kr=xA(Fe[De+4])+(35468*Fe[De+12]>>16);wr[yr+0]=Er+Kr,wr[yr+1]=_r+Ir,wr[yr+2]=_r-Ir,wr[yr+3]=Er-Kr,yr+=4,De++}for(pr=yr=0;4>pr;++pr)Er=(Fe=wr[yr+0]+4)+wr[yr+8],_r=Fe-wr[yr+8],Ir=(35468*wr[yr+4]>>16)-xA(wr[yr+12]),HA(Ge,rr,0,0,Er+(Kr=xA(wr[yr+4])+(35468*wr[yr+12]>>16))),HA(Ge,rr,1,0,_r+Ir),HA(Ge,rr,2,0,_r-Ir),HA(Ge,rr,3,0,Er-Kr),yr++,rr+=32}function JA(Fe,De,Ge,rr){var pr=Fe[De+0]+4,yr=35468*Fe[De+4]>>16,wr=xA(Fe[De+4]),Er=35468*Fe[De+1]>>16;XA(Ge,rr,0,pr+wr,Fe=xA(Fe[De+1]),Er),XA(Ge,rr,1,pr+yr,Fe,Er),XA(Ge,rr,2,pr-yr,Fe,Er),XA(Ge,rr,3,pr-wr,Fe,Er)}function so(Fe,De,Ge,rr,pr){ia(Fe,De,Ge,rr),pr&&ia(Fe,De+16,Ge,rr+4)}function Qo(Fe,De,Ge,rr){co(Fe,De+0,Ge,rr,1),co(Fe,De+32,Ge,rr+128,1)}function Na(Fe,De,Ge,rr){var pr;for(Fe=Fe[De+0]+4,pr=0;4>pr;++pr)for(De=0;4>De;++De)HA(Ge,rr,De,pr,Fe)}function Aa(Fe,De,Ge,rr){Fe[De+0]&&zA(Fe,De+0,Ge,rr),Fe[De+16]&&zA(Fe,De+16,Ge,rr+4),Fe[De+32]&&zA(Fe,De+32,Ge,rr+128),Fe[De+48]&&zA(Fe,De+48,Ge,rr+128+4)}function ga(Fe,De,Ge,rr){var pr,yr=_e(16);for(pr=0;4>pr;++pr){var wr=Fe[De+0+pr]+Fe[De+12+pr],Er=Fe[De+4+pr]+Fe[De+8+pr],_r=Fe[De+4+pr]-Fe[De+8+pr],Ir=Fe[De+0+pr]-Fe[De+12+pr];yr[0+pr]=wr+Er,yr[8+pr]=wr-Er,yr[4+pr]=Ir+_r,yr[12+pr]=Ir-_r}for(pr=0;4>pr;++pr)wr=(Fe=yr[0+4*pr]+3)+yr[3+4*pr],Er=yr[1+4*pr]+yr[2+4*pr],_r=yr[1+4*pr]-yr[2+4*pr],Ir=Fe-yr[3+4*pr],Ge[rr+0]=wr+Er>>3,Ge[rr+16]=Ir+_r>>3,Ge[rr+32]=wr-Er>>3,Ge[rr+48]=Ir-_r>>3,rr+=64}function lo(Fe,De,Ge){var rr,pr=De-32,yr=dA,wr=255-Fe[pr-1];for(rr=0;rr<Ge;++rr){var Er,_r=yr,Ir=wr+Fe[De-1];for(Er=0;Er<Ge;++Er)Fe[De+Er]=_r[Ir+Fe[pr+Er]];De+=32}}function va(Fe,De){lo(Fe,De,4)}function oa(Fe,De){lo(Fe,De,8)}function Ua(Fe,De){lo(Fe,De,16)}function ZA(Fe,De){var Ge;for(Ge=0;16>Ge;++Ge)Ee(Fe,De+32*Ge,Fe,De-32,16)}function Mo(Fe,De){var Ge;for(Ge=16;0<Ge;--Ge)Ce(Fe,De,Fe[De-1],16),De+=32}function Ho(Fe,De,Ge){var rr;for(rr=0;16>rr;++rr)Ce(De,Ge+32*rr,Fe,16)}function ko(Fe,De){var Ge,rr=16;for(Ge=0;16>Ge;++Ge)rr+=Fe[De-1+32*Ge]+Fe[De+Ge-32];Ho(rr>>5,Fe,De)}function vA(Fe,De){var Ge,rr=8;for(Ge=0;16>Ge;++Ge)rr+=Fe[De-1+32*Ge];Ho(rr>>4,Fe,De)}function La(Fe,De){var Ge,rr=8;for(Ge=0;16>Ge;++Ge)rr+=Fe[De+Ge-32];Ho(rr>>4,Fe,De)}function ma(Fe,De){Ho(128,Fe,De)}function mi(Fe,De,Ge){return Fe+2*De+Ge+2>>2}function Ra(Fe,De){var Ge,rr=De-32;for(rr=new Uint8Array([mi(Fe[rr-1],Fe[rr+0],Fe[rr+1]),mi(Fe[rr+0],Fe[rr+1],Fe[rr+2]),mi(Fe[rr+1],Fe[rr+2],Fe[rr+3]),mi(Fe[rr+2],Fe[rr+3],Fe[rr+4])]),Ge=0;4>Ge;++Ge)Ee(Fe,De+32*Ge,rr,0,rr.length)}function $a(Fe,De){var Ge=Fe[De-1],rr=Fe[De-1+32],pr=Fe[De-1+64],yr=Fe[De-1+96];Bn(Fe,De+0,16843009*mi(Fe[De-1-32],Ge,rr)),Bn(Fe,De+32,16843009*mi(Ge,rr,pr)),Bn(Fe,De+64,16843009*mi(rr,pr,yr)),Bn(Fe,De+96,16843009*mi(pr,yr,yr))}function to(Fe,De){var Ge,rr=4;for(Ge=0;4>Ge;++Ge)rr+=Fe[De+Ge-32]+Fe[De-1+32*Ge];for(rr>>=3,Ge=0;4>Ge;++Ge)Ce(Fe,De+32*Ge,rr,4)}function aa(Fe,De){var Ge=Fe[De-1+0],rr=Fe[De-1+32],pr=Fe[De-1+64],yr=Fe[De-1-32],wr=Fe[De+0-32],Er=Fe[De+1-32],_r=Fe[De+2-32],Ir=Fe[De+3-32];Fe[De+0+96]=mi(rr,pr,Fe[De-1+96]),Fe[De+1+96]=Fe[De+0+64]=mi(Ge,rr,pr),Fe[De+2+96]=Fe[De+1+64]=Fe[De+0+32]=mi(yr,Ge,rr),Fe[De+3+96]=Fe[De+2+64]=Fe[De+1+32]=Fe[De+0+0]=mi(wr,yr,Ge),Fe[De+3+64]=Fe[De+2+32]=Fe[De+1+0]=mi(Er,wr,yr),Fe[De+3+32]=Fe[De+2+0]=mi(_r,Er,wr),Fe[De+3+0]=mi(Ir,_r,Er)}function Vo(Fe,De){var Ge=Fe[De+1-32],rr=Fe[De+2-32],pr=Fe[De+3-32],yr=Fe[De+4-32],wr=Fe[De+5-32],Er=Fe[De+6-32],_r=Fe[De+7-32];Fe[De+0+0]=mi(Fe[De+0-32],Ge,rr),Fe[De+1+0]=Fe[De+0+32]=mi(Ge,rr,pr),Fe[De+2+0]=Fe[De+1+32]=Fe[De+0+64]=mi(rr,pr,yr),Fe[De+3+0]=Fe[De+2+32]=Fe[De+1+64]=Fe[De+0+96]=mi(pr,yr,wr),Fe[De+3+32]=Fe[De+2+64]=Fe[De+1+96]=mi(yr,wr,Er),Fe[De+3+64]=Fe[De+2+96]=mi(wr,Er,_r),Fe[De+3+96]=mi(Er,_r,_r)}function Io(Fe,De){var Ge=Fe[De-1+0],rr=Fe[De-1+32],pr=Fe[De-1+64],yr=Fe[De-1-32],wr=Fe[De+0-32],Er=Fe[De+1-32],_r=Fe[De+2-32],Ir=Fe[De+3-32];Fe[De+0+0]=Fe[De+1+64]=yr+wr+1>>1,Fe[De+1+0]=Fe[De+2+64]=wr+Er+1>>1,Fe[De+2+0]=Fe[De+3+64]=Er+_r+1>>1,Fe[De+3+0]=_r+Ir+1>>1,Fe[De+0+96]=mi(pr,rr,Ge),Fe[De+0+64]=mi(rr,Ge,yr),Fe[De+0+32]=Fe[De+1+96]=mi(Ge,yr,wr),Fe[De+1+32]=Fe[De+2+96]=mi(yr,wr,Er),Fe[De+2+32]=Fe[De+3+96]=mi(wr,Er,_r),Fe[De+3+32]=mi(Er,_r,Ir)}function Fo(Fe,De){var Ge=Fe[De+0-32],rr=Fe[De+1-32],pr=Fe[De+2-32],yr=Fe[De+3-32],wr=Fe[De+4-32],Er=Fe[De+5-32],_r=Fe[De+6-32],Ir=Fe[De+7-32];Fe[De+0+0]=Ge+rr+1>>1,Fe[De+1+0]=Fe[De+0+64]=rr+pr+1>>1,Fe[De+2+0]=Fe[De+1+64]=pr+yr+1>>1,Fe[De+3+0]=Fe[De+2+64]=yr+wr+1>>1,Fe[De+0+32]=mi(Ge,rr,pr),Fe[De+1+32]=Fe[De+0+96]=mi(rr,pr,yr),Fe[De+2+32]=Fe[De+1+96]=mi(pr,yr,wr),Fe[De+3+32]=Fe[De+2+96]=mi(yr,wr,Er),Fe[De+3+64]=mi(wr,Er,_r),Fe[De+3+96]=mi(Er,_r,Ir)}function ya(Fe,De){var Ge=Fe[De-1+0],rr=Fe[De-1+32],pr=Fe[De-1+64],yr=Fe[De-1+96];Fe[De+0+0]=Ge+rr+1>>1,Fe[De+2+0]=Fe[De+0+32]=rr+pr+1>>1,Fe[De+2+32]=Fe[De+0+64]=pr+yr+1>>1,Fe[De+1+0]=mi(Ge,rr,pr),Fe[De+3+0]=Fe[De+1+32]=mi(rr,pr,yr),Fe[De+3+32]=Fe[De+1+64]=mi(pr,yr,yr),Fe[De+3+64]=Fe[De+2+64]=Fe[De+0+96]=Fe[De+1+96]=Fe[De+2+96]=Fe[De+3+96]=yr}function wa(Fe,De){var Ge=Fe[De-1+0],rr=Fe[De-1+32],pr=Fe[De-1+64],yr=Fe[De-1+96],wr=Fe[De-1-32],Er=Fe[De+0-32],_r=Fe[De+1-32],Ir=Fe[De+2-32];Fe[De+0+0]=Fe[De+2+32]=Ge+wr+1>>1,Fe[De+0+32]=Fe[De+2+64]=rr+Ge+1>>1,Fe[De+0+64]=Fe[De+2+96]=pr+rr+1>>1,Fe[De+0+96]=yr+pr+1>>1,Fe[De+3+0]=mi(Er,_r,Ir),Fe[De+2+0]=mi(wr,Er,_r),Fe[De+1+0]=Fe[De+3+32]=mi(Ge,wr,Er),Fe[De+1+32]=Fe[De+3+64]=mi(rr,Ge,wr),Fe[De+1+64]=Fe[De+3+96]=mi(pr,rr,Ge),Fe[De+1+96]=mi(yr,pr,rr)}function sa(Fe,De){var Ge;for(Ge=0;8>Ge;++Ge)Ee(Fe,De+32*Ge,Fe,De-32,8)}function la(Fe,De){var Ge;for(Ge=0;8>Ge;++Ge)Ce(Fe,De,Fe[De-1],8),De+=32}function Po(Fe,De,Ge){var rr;for(rr=0;8>rr;++rr)Ce(De,Ge+32*rr,Fe,8)}function vo(Fe,De){var Ge,rr=8;for(Ge=0;8>Ge;++Ge)rr+=Fe[De+Ge-32]+Fe[De-1+32*Ge];Po(rr>>4,Fe,De)}function Oo(Fe,De){var Ge,rr=4;for(Ge=0;8>Ge;++Ge)rr+=Fe[De+Ge-32];Po(rr>>3,Fe,De)}function mo(Fe,De){var Ge,rr=4;for(Ge=0;8>Ge;++Ge)rr+=Fe[De-1+32*Ge];Po(rr>>3,Fe,De)}function No(Fe,De){Po(128,Fe,De)}function Ko(Fe,De,Ge){var rr=Fe[De-Ge],pr=Fe[De+0],yr=3*(pr-rr)+ki[1020+Fe[De-2*Ge]-Fe[De+Ge]],wr=_o[112+(yr+4>>3)];Fe[De-Ge]=dA[255+rr+_o[112+(yr+3>>3)]],Fe[De+0]=dA[255+pr-wr]}function Ba(Fe,De,Ge,rr){var pr=Fe[De+0],yr=Fe[De+Ge];return zi[255+Fe[De-2*Ge]-Fe[De-Ge]]>rr||zi[255+yr-pr]>rr}function ba(Fe,De,Ge,rr){return 4*zi[255+Fe[De-Ge]-Fe[De+0]]+zi[255+Fe[De-2*Ge]-Fe[De+Ge]]<=rr}function Pe(Fe,De,Ge,rr,pr){var yr=Fe[De-3*Ge],wr=Fe[De-2*Ge],Er=Fe[De-Ge],_r=Fe[De+0],Ir=Fe[De+Ge],Kr=Fe[De+2*Ge],an=Fe[De+3*Ge];return 4*zi[255+Er-_r]+zi[255+wr-Ir]>rr?0:zi[255+Fe[De-4*Ge]-yr]<=pr&&zi[255+yr-wr]<=pr&&zi[255+wr-Er]<=pr&&zi[255+an-Kr]<=pr&&zi[255+Kr-Ir]<=pr&&zi[255+Ir-_r]<=pr}function Qe(Fe,De,Ge,rr){var pr=2*rr+1;for(rr=0;16>rr;++rr)ba(Fe,De+rr,Ge,pr)&&Ko(Fe,De+rr,Ge)}function qe(Fe,De,Ge,rr){var pr=2*rr+1;for(rr=0;16>rr;++rr)ba(Fe,De+rr*Ge,1,pr)&&Ko(Fe,De+rr*Ge,1)}function tr(Fe,De,Ge,rr){var pr;for(pr=3;0<pr;--pr)Qe(Fe,De+=4*Ge,Ge,rr)}function ur(Fe,De,Ge,rr){var pr;for(pr=3;0<pr;--pr)qe(Fe,De+=4,Ge,rr)}function cr(Fe,De,Ge,rr,pr,yr,wr,Er){for(yr=2*yr+1;0<pr--;){if(Pe(Fe,De,Ge,yr,wr))if(Ba(Fe,De,Ge,Er))Ko(Fe,De,Ge);else{var _r=Fe,Ir=De,Kr=Ge,an=_r[Ir-2*Kr],sn=_r[Ir-Kr],Zr=_r[Ir+0],_n=_r[Ir+Kr],gn=_r[Ir+2*Kr],Gr=27*(En=ki[1020+3*(Zr-sn)+ki[1020+an-_n]])+63>>7,Xr=18*En+63>>7,En=9*En+63>>7;_r[Ir-3*Kr]=dA[255+_r[Ir-3*Kr]+En],_r[Ir-2*Kr]=dA[255+an+Xr],_r[Ir-Kr]=dA[255+sn+Gr],_r[Ir+0]=dA[255+Zr-Gr],_r[Ir+Kr]=dA[255+_n-Xr],_r[Ir+2*Kr]=dA[255+gn-En]}De+=rr}}function Br(Fe,De,Ge,rr,pr,yr,wr,Er){for(yr=2*yr+1;0<pr--;){if(Pe(Fe,De,Ge,yr,wr))if(Ba(Fe,De,Ge,Er))Ko(Fe,De,Ge);else{var _r=Fe,Ir=De,Kr=Ge,an=_r[Ir-Kr],sn=_r[Ir+0],Zr=_r[Ir+Kr],_n=_o[112+((gn=3*(sn-an))+4>>3)],gn=_o[112+(gn+3>>3)],Gr=_n+1>>1;_r[Ir-2*Kr]=dA[255+_r[Ir-2*Kr]+Gr],_r[Ir-Kr]=dA[255+an+gn],_r[Ir+0]=dA[255+sn-_n],_r[Ir+Kr]=dA[255+Zr-Gr]}De+=rr}}function Lr(Fe,De,Ge,rr,pr,yr){cr(Fe,De,Ge,1,16,rr,pr,yr)}function Rr(Fe,De,Ge,rr,pr,yr){cr(Fe,De,1,Ge,16,rr,pr,yr)}function tn(Fe,De,Ge,rr,pr,yr){var wr;for(wr=3;0<wr;--wr)Br(Fe,De+=4*Ge,Ge,1,16,rr,pr,yr)}function cn(Fe,De,Ge,rr,pr,yr){var wr;for(wr=3;0<wr;--wr)Br(Fe,De+=4,1,Ge,16,rr,pr,yr)}function xn(Fe,De,Ge,rr,pr,yr,wr,Er){cr(Fe,De,pr,1,8,yr,wr,Er),cr(Ge,rr,pr,1,8,yr,wr,Er)}function un(Fe,De,Ge,rr,pr,yr,wr,Er){cr(Fe,De,1,pr,8,yr,wr,Er),cr(Ge,rr,1,pr,8,yr,wr,Er)}function vn(Fe,De,Ge,rr,pr,yr,wr,Er){Br(Fe,De+4*pr,pr,1,8,yr,wr,Er),Br(Ge,rr+4*pr,pr,1,8,yr,wr,Er)}function ii(Fe,De,Ge,rr,pr,yr,wr,Er){Br(Fe,De+4,1,pr,8,yr,wr,Er),Br(Ge,rr+4,1,pr,8,yr,wr,Er)}function di(){this.ba=new wn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Pn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ri(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Wi(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Yi(){this.ua=0,this.Wa=new Sr,this.vb=new Sr,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new vr,this.yc=new ir}function bA(){this.xb=this.a=0,this.l=new Do,this.ca=new wn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new lr,this.Pb=0,this.wd=new lr,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Yi,this.ab=0,this.gc=Te(4,Wi),this.Oc=0}function Pi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Do,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function fi(Fe,De,Ge,rr,pr,yr,wr){for(Fe=Fe==null?0:Fe[De+0],De=0;De<wr;++De)pr[yr+De]=Fe+Ge[rr+De]&255,Fe=pr[yr+De]}function oA(Fe,De,Ge,rr,pr,yr,wr){var Er;if(Fe==null)fi(null,null,Ge,rr,pr,yr,wr);else for(Er=0;Er<wr;++Er)pr[yr+Er]=Fe[De+Er]+Ge[rr+Er]&255}function bi(Fe,De,Ge,rr,pr,yr,wr){if(Fe==null)fi(null,null,Ge,rr,pr,yr,wr);else{var Er,_r=Fe[De+0],Ir=_r,Kr=_r;for(Er=0;Er<wr;++Er)Ir=Kr+(_r=Fe[De+Er])-Ir,Kr=Ge[rr+Er]+(-256&Ir?0>Ir?0:255:Ir)&255,Ir=_r,pr[yr+Er]=Kr}}function Di(Fe,De,Ge,rr){var pr=De.width,yr=De.o;if(St(Fe!=null&&De!=null),0>Ge||0>=rr||Ge+rr>yr)return null;if(!Fe.Cc){if(Fe.ga==null){var wr;if(Fe.ga=new Pi,(wr=Fe.ga==null)||(wr=De.width*De.o,St(Fe.Gb.length==0),Fe.Gb=_e(wr),Fe.Uc=0,Fe.Gb==null?wr=0:(Fe.mb=Fe.Gb,Fe.nb=Fe.Uc,Fe.rc=null,wr=1),wr=!wr),!wr){wr=Fe.ga;var Er=Fe.Fa,_r=Fe.P,Ir=Fe.qc,Kr=Fe.mb,an=Fe.nb,sn=_r+1,Zr=Ir-1,_n=wr.l;if(St(Er!=null&&Kr!=null&&De!=null),Wo[0]=null,Wo[1]=fi,Wo[2]=oA,Wo[3]=bi,wr.ca=Kr,wr.tb=an,wr.c=De.width,wr.i=De.height,St(0<wr.c&&0<wr.i),1>=Ir)De=0;else if(wr.$a=Er[_r+0]>>0&3,wr.Z=Er[_r+0]>>2&3,wr.Lc=Er[_r+0]>>4&3,_r=Er[_r+0]>>6&3,0>wr.$a||1<wr.$a||4<=wr.Z||1<wr.Lc||_r)De=0;else if(_n.put=Jn,_n.ac=bn,_n.bc=pi,_n.ma=wr,_n.width=De.width,_n.height=De.height,_n.Da=De.Da,_n.v=De.v,_n.va=De.va,_n.j=De.j,_n.o=De.o,wr.$a)t:{St(wr.$a==1),De=gA();e:for(;;){if(De==null){De=0;break t}if(St(wr!=null),wr.mc=De,De.c=wr.c,De.i=wr.i,De.l=wr.l,De.l.ma=wr,De.l.width=wr.c,De.l.height=wr.i,De.a=0,Dr(De.m,Er,sn,Zr),!OA(wr.c,wr.i,1,De,null)||(De.ab==1&&De.gc[0].hc==3&&fA(De.s)?(wr.ic=1,Er=De.c*De.i,De.Ta=null,De.Ua=0,De.V=_e(Er),De.Ba=0,De.V==null?(De.a=1,De=0):De=1):(wr.ic=0,De=Zn(De,wr.c)),!De))break e;De=1;break t}wr.mc=null,De=0}else De=Zr>=wr.c*wr.i;wr=!De}if(wr)return null;Fe.ga.Lc!=1?Fe.Ga=0:rr=yr-Ge}St(Fe.ga!=null),St(Ge+rr<=yr);t:{if(De=(Er=Fe.ga).c,yr=Er.l.o,Er.$a==0){if(sn=Fe.rc,Zr=Fe.Vc,_n=Fe.Fa,_r=Fe.P+1+Ge*De,Ir=Fe.mb,Kr=Fe.nb+Ge*De,St(_r<=Fe.P+Fe.qc),Er.Z!=0)for(St(Wo[Er.Z]!=null),wr=0;wr<rr;++wr)Wo[Er.Z](sn,Zr,_n,_r,Ir,Kr,De),sn=Ir,Zr=Kr,Kr+=De,_r+=De;else for(wr=0;wr<rr;++wr)Ee(Ir,Kr,_n,_r,De),sn=Ir,Zr=Kr,Kr+=De,_r+=De;Fe.rc=sn,Fe.Vc=Zr}else{if(St(Er.mc!=null),De=Ge+rr,St((wr=Er.mc)!=null),St(De<=wr.i),wr.C>=De)De=1;else if(Er.ic||rn(),Er.ic){Er=wr.V,sn=wr.Ba,Zr=wr.c;var gn=wr.i,Gr=(_n=1,_r=wr.$/Zr,Ir=wr.$%Zr,Kr=wr.m,an=wr.s,wr.$),Xr=Zr*gn,En=Zr*De,Fn=an.wc,Cn=Gr<En?Ki(an,Ir,_r):null;St(Gr<=Xr),St(De<=gn),St(fA(an));e:for(;;){for(;!Kr.h&&Gr<En;){if(Ir&Fn||(Cn=Ki(an,Ir,_r)),St(Cn!=null),Qr(Kr),256>(gn=Ni(Cn.G[0],Cn.H[0],Kr)))Er[sn+Gr]=gn,++Gr,++Ir>=Zr&&(Ir=0,++_r<=De&&!(_r%16)&&wA(wr,_r));else{if(!(280>gn)){_n=0;break e}gn=Ti(gn-256,Kr);var Xn,jn=Ni(Cn.G[4],Cn.H[4],Kr);if(Qr(Kr),!(Gr>=(jn=Oi(Zr,jn=Ti(jn,Kr)))&&Xr-Gr>=gn)){_n=0;break e}for(Xn=0;Xn<gn;++Xn)Er[sn+Gr+Xn]=Er[sn+Gr+Xn-jn];for(Gr+=gn,Ir+=gn;Ir>=Zr;)Ir-=Zr,++_r<=De&&!(_r%16)&&wA(wr,_r);Gr<En&&Ir&Fn&&(Cn=Ki(an,Ir,_r))}St(Kr.h==xr(Kr))}wA(wr,_r>De?De:_r);break e}!_n||Kr.h&&Gr<Xr?(_n=0,wr.a=Kr.h?5:3):wr.$=Gr,De=_n}else De=TA(wr,wr.V,wr.Ba,wr.c,wr.i,De,Yr);if(!De){rr=0;break t}}Ge+rr>=yr&&(Fe.Cc=1),rr=1}if(!rr)return null;if(Fe.Cc&&((rr=Fe.ga)!=null&&(rr.mc=null),Fe.ga=null,0<Fe.Ga))return alert("todo:WebPDequantizeLevels"),null}return Fe.nb+Ge*pr}function He(Fe,De,Ge,rr,pr,yr){for(;0<pr--;){var wr,Er=Fe,_r=De+(Ge?1:0),Ir=Fe,Kr=De+(Ge?0:3);for(wr=0;wr<rr;++wr){var an=Ir[Kr+4*wr];an!=255&&(an*=32897,Er[_r+4*wr+0]=Er[_r+4*wr+0]*an>>23,Er[_r+4*wr+1]=Er[_r+4*wr+1]*an>>23,Er[_r+4*wr+2]=Er[_r+4*wr+2]*an>>23)}De+=yr}}function hr(Fe,De,Ge,rr,pr){for(;0<rr--;){var yr;for(yr=0;yr<Ge;++yr){var wr=Fe[De+2*yr+0],Er=15&(Ir=Fe[De+2*yr+1]),_r=4369*Er,Ir=(240&Ir|Ir>>4)*_r>>16;Fe[De+2*yr+0]=(240&wr|wr>>4)*_r>>16&240|(15&wr|wr<<4)*_r>>16>>4&15,Fe[De+2*yr+1]=240&Ir|Er}De+=pr}}function Fr(Fe,De,Ge,rr,pr,yr,wr,Er){var _r,Ir,Kr=255;for(Ir=0;Ir<pr;++Ir){for(_r=0;_r<rr;++_r){var an=Fe[De+_r];yr[wr+4*_r]=an,Kr&=an}De+=Ge,wr+=Er}return Kr!=255}function Mr(Fe,De,Ge,rr,pr){var yr;for(yr=0;yr<pr;++yr)Ge[rr+yr]=Fe[De+yr]>>8}function rn(){oi=He,ai=hr,si=Fr,Ci=Mr}function hn(Fe,De,Ge){We[Fe]=function(rr,pr,yr,wr,Er,_r,Ir,Kr,an,sn,Zr,_n,gn,Gr,Xr,En,Fn){var Cn,Xn=Fn-1>>1,jn=Er[_r+0]|Ir[Kr+0]<<16,hi=an[sn+0]|Zr[_n+0]<<16;St(rr!=null);var qn=3*jn+hi+131074>>2;for(De(rr[pr+0],255&qn,qn>>16,gn,Gr),yr!=null&&(qn=3*hi+jn+131074>>2,De(yr[wr+0],255&qn,qn>>16,Xr,En)),Cn=1;Cn<=Xn;++Cn){var Li=Er[_r+Cn]|Ir[Kr+Cn]<<16,Qi=an[sn+Cn]|Zr[_n+Cn]<<16,Ui=jn+Li+hi+Qi+524296,Fi=Ui+2*(Li+hi)>>3;qn=Fi+jn>>1,jn=(Ui=Ui+2*(jn+Qi)>>3)+Li>>1,De(rr[pr+2*Cn-1],255&qn,qn>>16,gn,Gr+(2*Cn-1)*Ge),De(rr[pr+2*Cn-0],255&jn,jn>>16,gn,Gr+(2*Cn-0)*Ge),yr!=null&&(qn=Ui+hi>>1,jn=Fi+Qi>>1,De(yr[wr+2*Cn-1],255&qn,qn>>16,Xr,En+(2*Cn-1)*Ge),De(yr[wr+2*Cn+0],255&jn,jn>>16,Xr,En+(2*Cn+0)*Ge)),jn=Li,hi=Qi}1&Fn||(qn=3*jn+hi+131074>>2,De(rr[pr+Fn-1],255&qn,qn>>16,gn,Gr+(Fn-1)*Ge),yr!=null&&(qn=3*hi+jn+131074>>2,De(yr[wr+Fn-1],255&qn,qn>>16,Xr,En+(Fn-1)*Ge)))}}function In(){io[Ka]=hl,io[ja]=Is,io[Cs]=pl,io[Ga]=Fs,io[qa]=Ps,io[ss]=Os,io[_s]=dl,io[ls]=Is,io[us]=Fs,io[za]=Ps,io[cs]=Os}function kn(Fe){return Fe&~gl?0>Fe?0:255:Fe>>Ns}function ni(Fe,De){return kn((19077*Fe>>8)+(26149*De>>8)-14234)}function wi(Fe,De,Ge){return kn((19077*Fe>>8)-(6419*De>>8)-(13320*Ge>>8)+8708)}function vi(Fe,De){return kn((19077*Fe>>8)+(33050*De>>8)-17685)}function xi(Fe,De,Ge,rr,pr){rr[pr+0]=ni(Fe,Ge),rr[pr+1]=wi(Fe,De,Ge),rr[pr+2]=vi(Fe,De)}function li(Fe,De,Ge,rr,pr){rr[pr+0]=vi(Fe,De),rr[pr+1]=wi(Fe,De,Ge),rr[pr+2]=ni(Fe,Ge)}function Ri(Fe,De,Ge,rr,pr){var yr=wi(Fe,De,Ge);De=yr<<3&224|vi(Fe,De)>>3,rr[pr+0]=248&ni(Fe,Ge)|yr>>5,rr[pr+1]=De}function eA(Fe,De,Ge,rr,pr){var yr=240&vi(Fe,De)|15;rr[pr+0]=240&ni(Fe,Ge)|wi(Fe,De,Ge)>>4,rr[pr+1]=yr}function aA(Fe,De,Ge,rr,pr){rr[pr+0]=255,xi(Fe,De,Ge,rr,pr+1)}function sA(Fe,De,Ge,rr,pr){li(Fe,De,Ge,rr,pr),rr[pr+3]=255}function IA(Fe,De,Ge,rr,pr){xi(Fe,De,Ge,rr,pr),rr[pr+3]=255}function UA(Fe,De){return 0>Fe?0:Fe>De?De:Fe}function eo(Fe,De,Ge){We[Fe]=function(rr,pr,yr,wr,Er,_r,Ir,Kr,an){for(var sn=Kr+(-2&an)*Ge;Kr!=sn;)De(rr[pr+0],yr[wr+0],Er[_r+0],Ir,Kr),De(rr[pr+1],yr[wr+0],Er[_r+0],Ir,Kr+Ge),pr+=2,++wr,++_r,Kr+=2*Ge;1&an&&De(rr[pr+0],yr[wr+0],Er[_r+0],Ir,Kr)}}function Ea(Fe,De,Ge){return Ge==0?Fe==0?De==0?6:5:De==0?4:0:Ge}function ua(Fe,De,Ge,rr,pr){switch(Fe>>>30){case 3:co(De,Ge,rr,pr,0);break;case 2:Eo(De,Ge,rr,pr);break;case 1:zA(De,Ge,rr,pr)}}function ca(Fe,De){var Ge,rr,pr=De.M,yr=De.Nb,wr=Fe.oc,Er=Fe.pc+40,_r=Fe.oc,Ir=Fe.pc+584,Kr=Fe.oc,an=Fe.pc+600;for(Ge=0;16>Ge;++Ge)wr[Er+32*Ge-1]=129;for(Ge=0;8>Ge;++Ge)_r[Ir+32*Ge-1]=129,Kr[an+32*Ge-1]=129;for(0<pr?wr[Er-1-32]=_r[Ir-1-32]=Kr[an-1-32]=129:(Ce(wr,Er-32-1,127,21),Ce(_r,Ir-32-1,127,9),Ce(Kr,an-32-1,127,9)),rr=0;rr<Fe.za;++rr){var sn=De.ya[De.aa+rr];if(0<rr){for(Ge=-1;16>Ge;++Ge)Ee(wr,Er+32*Ge-4,wr,Er+32*Ge+12,4);for(Ge=-1;8>Ge;++Ge)Ee(_r,Ir+32*Ge-4,_r,Ir+32*Ge+4,4),Ee(Kr,an+32*Ge-4,Kr,an+32*Ge+4,4)}var Zr=Fe.Gd,_n=Fe.Hd+rr,gn=sn.ad,Gr=sn.Hc;if(0<pr&&(Ee(wr,Er-32,Zr[_n].y,0,16),Ee(_r,Ir-32,Zr[_n].f,0,8),Ee(Kr,an-32,Zr[_n].ea,0,8)),sn.Za){var Xr=wr,En=Er-32+16;for(0<pr&&(rr>=Fe.za-1?Ce(Xr,En,Zr[_n].y[15],4):Ee(Xr,En,Zr[_n+1].y,0,4)),Ge=0;4>Ge;Ge++)Xr[En+128+Ge]=Xr[En+256+Ge]=Xr[En+384+Ge]=Xr[En+0+Ge];for(Ge=0;16>Ge;++Ge,Gr<<=2)Xr=wr,En=Er+Ls[Ge],ho[sn.Ob[Ge]](Xr,En),ua(Gr,gn,16*+Ge,Xr,En)}else if(Xr=Ea(rr,pr,sn.Ob[0]),zo[Xr](wr,Er),Gr!=0)for(Ge=0;16>Ge;++Ge,Gr<<=2)ua(Gr,gn,16*+Ge,wr,Er+Ls[Ge]);for(Ge=sn.Gc,Xr=Ea(rr,pr,sn.Dd),Lo[Xr](_r,Ir),Lo[Xr](Kr,an),Gr=gn,Xr=_r,En=Ir,255&(sn=Ge>>0)&&(170&sn?no(Gr,256,Xr,En):VA(Gr,256,Xr,En)),sn=Kr,Gr=an,255&(Ge>>=8)&&(170&Ge?no(gn,320,sn,Gr):VA(gn,320,sn,Gr)),pr<Fe.Ub-1&&(Ee(Zr[_n].y,0,wr,Er+480,16),Ee(Zr[_n].f,0,_r,Ir+224,8),Ee(Zr[_n].ea,0,Kr,an+224,8)),Ge=8*yr*Fe.B,Zr=Fe.sa,_n=Fe.ta+16*rr+16*yr*Fe.R,gn=Fe.qa,sn=Fe.ra+8*rr+Ge,Gr=Fe.Ha,Xr=Fe.Ia+8*rr+Ge,Ge=0;16>Ge;++Ge)Ee(Zr,_n+Ge*Fe.R,wr,Er+32*Ge,16);for(Ge=0;8>Ge;++Ge)Ee(gn,sn+Ge*Fe.B,_r,Ir+32*Ge,8),Ee(Gr,Xr+Ge*Fe.B,Kr,an+32*Ge,8)}}function uo(Fe,De,Ge,rr,pr,yr,wr,Er,_r){var Ir=[0],Kr=[0],an=0,sn=_r!=null?_r.kd:0,Zr=_r??new ri;if(Fe==null||12>Ge)return 7;Zr.data=Fe,Zr.w=De,Zr.ha=Ge,De=[De],Ge=[Ge],Zr.gb=[Zr.gb];t:{var _n=De,gn=Ge,Gr=Zr.gb;if(St(Fe!=null),St(gn!=null),St(Gr!=null),Gr[0]=0,12<=gn[0]&&!Ae(Fe,_n[0],"RIFF")){if(Ae(Fe,_n[0]+8,"WEBP")){Gr=3;break t}var Xr=On(Fe,_n[0]+4);if(12>Xr||4294967286<Xr){Gr=3;break t}if(sn&&Xr>gn[0]-8){Gr=7;break t}Gr[0]=Xr,_n[0]+=12,gn[0]-=12}Gr=0}if(Gr!=0)return Gr;for(Xr=0<Zr.gb[0],Ge=Ge[0];;){t:{var En=Fe;gn=De,Gr=Ge;var Fn=Ir,Cn=Kr,Xn=_n=[0];if((qn=an=[an])[0]=0,8>Gr[0])Gr=7;else{if(!Ae(En,gn[0],"VP8X")){if(On(En,gn[0]+4)!=10){Gr=3;break t}if(18>Gr[0]){Gr=7;break t}var jn=On(En,gn[0]+8),hi=1+Un(En,gn[0]+12);if(2147483648<=hi*(En=1+Un(En,gn[0]+15))){Gr=3;break t}Xn!=null&&(Xn[0]=jn),Fn!=null&&(Fn[0]=hi),Cn!=null&&(Cn[0]=En),gn[0]+=18,Gr[0]-=18,qn[0]=1}Gr=0}}if(an=an[0],_n=_n[0],Gr!=0)return Gr;if(gn=!!(2&_n),!Xr&&an)return 3;if(yr!=null&&(yr[0]=!!(16&_n)),wr!=null&&(wr[0]=gn),Er!=null&&(Er[0]=0),wr=Ir[0],_n=Kr[0],an&&gn&&_r==null){Gr=0;break}if(4>Ge){Gr=7;break}if(Xr&&an||!Xr&&!an&&!Ae(Fe,De[0],"ALPH")){Ge=[Ge],Zr.na=[Zr.na],Zr.P=[Zr.P],Zr.Sa=[Zr.Sa];t:{jn=Fe,Gr=De,Xr=Ge;var qn=Zr.gb;Fn=Zr.na,Cn=Zr.P,Xn=Zr.Sa,hi=22,St(jn!=null),St(Xr!=null),En=Gr[0];var Li=Xr[0];for(St(Fn!=null),St(Xn!=null),Fn[0]=null,Cn[0]=null,Xn[0]=0;;){if(Gr[0]=En,Xr[0]=Li,8>Li){Gr=7;break t}var Qi=On(jn,En+4);if(4294967286<Qi){Gr=3;break t}var Ui=8+Qi+1&-2;if(hi+=Ui,0<qn&&hi>qn){Gr=3;break t}if(!Ae(jn,En,"VP8 ")||!Ae(jn,En,"VP8L")){Gr=0;break t}if(Li[0]<Ui){Gr=7;break t}Ae(jn,En,"ALPH")||(Fn[0]=jn,Cn[0]=En+8,Xn[0]=Qi),En+=Ui,Li-=Ui}}if(Ge=Ge[0],Zr.na=Zr.na[0],Zr.P=Zr.P[0],Zr.Sa=Zr.Sa[0],Gr!=0)break}Ge=[Ge],Zr.Ja=[Zr.Ja],Zr.xa=[Zr.xa];t:if(qn=Fe,Gr=De,Xr=Ge,Fn=Zr.gb[0],Cn=Zr.Ja,Xn=Zr.xa,jn=Gr[0],En=!Ae(qn,jn,"VP8 "),hi=!Ae(qn,jn,"VP8L"),St(qn!=null),St(Xr!=null),St(Cn!=null),St(Xn!=null),8>Xr[0])Gr=7;else{if(En||hi){if(qn=On(qn,jn+4),12<=Fn&&qn>Fn-12){Gr=3;break t}if(sn&&qn>Xr[0]-8){Gr=7;break t}Cn[0]=qn,Gr[0]+=8,Xr[0]-=8,Xn[0]=hi}else Xn[0]=5<=Xr[0]&&qn[jn+0]==47&&!(qn[jn+4]>>5),Cn[0]=Xr[0];Gr=0}if(Ge=Ge[0],Zr.Ja=Zr.Ja[0],Zr.xa=Zr.xa[0],De=De[0],Gr!=0)break;if(4294967286<Zr.Ja)return 3;if(Er==null||gn||(Er[0]=Zr.xa?2:1),wr=[wr],_n=[_n],Zr.xa){if(5>Ge){Gr=7;break}Er=wr,sn=_n,gn=yr,Fe==null||5>Ge?Fe=0:5<=Ge&&Fe[De+0]==47&&!(Fe[De+4]>>5)?(Xr=[0],qn=[0],Fn=[0],Dr(Cn=new lr,Fe,De,Ge),Mn(Cn,Xr,qn,Fn)?(Er!=null&&(Er[0]=Xr[0]),sn!=null&&(sn[0]=qn[0]),gn!=null&&(gn[0]=Fn[0]),Fe=1):Fe=0):Fe=0}else{if(10>Ge){Gr=7;break}Er=_n,Fe==null||10>Ge||!xo(Fe,De+3,Ge-3)?Fe=0:(sn=Fe[De+0]|Fe[De+1]<<8|Fe[De+2]<<16,gn=16383&(Fe[De+7]<<8|Fe[De+6]),Fe=16383&(Fe[De+9]<<8|Fe[De+8]),1&sn||3<(sn>>1&7)||!(sn>>4&1)||sn>>5>=Zr.Ja||!gn||!Fe?Fe=0:(wr&&(wr[0]=gn),Er&&(Er[0]=Fe),Fe=1))}if(!Fe||(wr=wr[0],_n=_n[0],an&&(Ir[0]!=wr||Kr[0]!=_n)))return 3;_r!=null&&(_r[0]=Zr,_r.offset=De-_r.w,St(4294967286>De-_r.w),St(_r.offset==_r.ha-Ge));break}return Gr==0||Gr==7&&an&&_r==null?(yr!=null&&(yr[0]|=Zr.na!=null&&0<Zr.na.length),rr!=null&&(rr[0]=wr),pr!=null&&(pr[0]=_n),0):Gr}function fa(Fe,De,Ge){var rr=De.width,pr=De.height,yr=0,wr=0,Er=rr,_r=pr;if(De.Da=Fe!=null&&0<Fe.Da,De.Da&&(Er=Fe.cd,_r=Fe.bd,yr=Fe.v,wr=Fe.j,11>Ge||(yr&=-2,wr&=-2),0>yr||0>wr||0>=Er||0>=_r||yr+Er>rr||wr+_r>pr))return 0;if(De.v=yr,De.j=wr,De.va=yr+Er,De.o=wr+_r,De.U=Er,De.T=_r,De.da=Fe!=null&&0<Fe.da,De.da){if(!Yn(Er,_r,Ge=[Fe.ib],yr=[Fe.hb]))return 0;De.ib=Ge[0],De.hb=yr[0]}return De.ob=Fe!=null&&Fe.ob,De.Kb=Fe==null||!Fe.Sd,De.da&&(De.ob=De.ib<3*rr/4&&De.hb<3*pr/4,De.Kb=0),1}function ha(Fe){if(Fe==null)return 2;if(11>Fe.S){var De=Fe.f.RGBA;De.fb+=(Fe.height-1)*De.A,De.A=-De.A}else De=Fe.f.kb,Fe=Fe.height,De.O+=(Fe-1)*De.fa,De.fa=-De.fa,De.N+=(Fe-1>>1)*De.Ab,De.Ab=-De.Ab,De.W+=(Fe-1>>1)*De.Db,De.Db=-De.Db,De.F!=null&&(De.J+=(Fe-1)*De.lb,De.lb=-De.lb);return 0}function jo(Fe,De,Ge,rr){if(rr==null||0>=Fe||0>=De)return 2;if(Ge!=null){if(Ge.Da){var pr=Ge.cd,yr=Ge.bd,wr=-2&Ge.v,Er=-2&Ge.j;if(0>wr||0>Er||0>=pr||0>=yr||wr+pr>Fe||Er+yr>De)return 2;Fe=pr,De=yr}if(Ge.da){if(!Yn(Fe,De,pr=[Ge.ib],yr=[Ge.hb]))return 2;Fe=pr[0],De=yr[0]}}rr.width=Fe,rr.height=De;t:{var _r=rr.width,Ir=rr.height;if(Fe=rr.S,0>=_r||0>=Ir||!(Fe>=Ka&&13>Fe))Fe=2;else{if(0>=rr.Rd&&rr.sd==null){wr=yr=pr=De=0;var Kr=(Er=_r*Rs[Fe])*Ir;if(11>Fe||(yr=(Ir+1)/2*(De=(_r+1)/2),Fe==12&&(wr=(pr=_r)*Ir)),(Ir=_e(Kr+2*yr+wr))==null){Fe=1;break t}rr.sd=Ir,11>Fe?((_r=rr.f.RGBA).eb=Ir,_r.fb=0,_r.A=Er,_r.size=Kr):((_r=rr.f.kb).y=Ir,_r.O=0,_r.fa=Er,_r.Fd=Kr,_r.f=Ir,_r.N=0+Kr,_r.Ab=De,_r.Cd=yr,_r.ea=Ir,_r.W=0+Kr+yr,_r.Db=De,_r.Ed=yr,Fe==12&&(_r.F=Ir,_r.J=0+Kr+2*yr),_r.Tc=wr,_r.lb=pr)}if(De=1,pr=rr.S,yr=rr.width,wr=rr.height,pr>=Ka&&13>pr)if(11>pr)Fe=rr.f.RGBA,De&=(Er=Math.abs(Fe.A))*(wr-1)+yr<=Fe.size,De&=Er>=yr*Rs[pr],De&=Fe.eb!=null;else{Fe=rr.f.kb,Er=(yr+1)/2,Kr=(wr+1)/2,_r=Math.abs(Fe.fa),Ir=Math.abs(Fe.Ab);var an=Math.abs(Fe.Db),sn=Math.abs(Fe.lb),Zr=sn*(wr-1)+yr;De&=_r*(wr-1)+yr<=Fe.Fd,De&=Ir*(Kr-1)+Er<=Fe.Cd,De=(De&=an*(Kr-1)+Er<=Fe.Ed)&_r>=yr&Ir>=Er&an>=Er,De&=Fe.y!=null,De&=Fe.f!=null,De&=Fe.ea!=null,pr==12&&(De&=sn>=yr,De&=Zr<=Fe.Tc,De&=Fe.F!=null)}else De=0;Fe=De?0:2}}return Fe!=0||Ge!=null&&Ge.fd&&(Fe=ha(rr)),Fe}var lA=64,Go=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],yo=24,FA=32,LA=8,EA=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];$n("Predictor0","PredictorAdd0"),We.Predictor0=function(){return 4278190080},We.Predictor1=function(Fe){return Fe},We.Predictor2=function(Fe,De,Ge){return De[Ge+0]},We.Predictor3=function(Fe,De,Ge){return De[Ge+1]},We.Predictor4=function(Fe,De,Ge){return De[Ge-1]},We.Predictor5=function(Fe,De,Ge){return Rn(Rn(Fe,De[Ge+1]),De[Ge+0])},We.Predictor6=function(Fe,De,Ge){return Rn(Fe,De[Ge-1])},We.Predictor7=function(Fe,De,Ge){return Rn(Fe,De[Ge+0])},We.Predictor8=function(Fe,De,Ge){return Rn(De[Ge-1],De[Ge+0])},We.Predictor9=function(Fe,De,Ge){return Rn(De[Ge+0],De[Ge+1])},We.Predictor10=function(Fe,De,Ge){return Rn(Rn(Fe,De[Ge-1]),Rn(De[Ge+0],De[Ge+1]))},We.Predictor11=function(Fe,De,Ge){var rr=De[Ge+0];return 0>=ti(rr>>24&255,Fe>>24&255,(De=De[Ge-1])>>24&255)+ti(rr>>16&255,Fe>>16&255,De>>16&255)+ti(rr>>8&255,Fe>>8&255,De>>8&255)+ti(255&rr,255&Fe,255&De)?rr:Fe},We.Predictor12=function(Fe,De,Ge){var rr=De[Ge+0];return(Gn((Fe>>24&255)+(rr>>24&255)-((De=De[Ge-1])>>24&255))<<24|Gn((Fe>>16&255)+(rr>>16&255)-(De>>16&255))<<16|Gn((Fe>>8&255)+(rr>>8&255)-(De>>8&255))<<8|Gn((255&Fe)+(255&rr)-(255&De)))>>>0},We.Predictor13=function(Fe,De,Ge){var rr=De[Ge-1];return(Kn((Fe=Rn(Fe,De[Ge+0]))>>24&255,rr>>24&255)<<24|Kn(Fe>>16&255,rr>>16&255)<<16|Kn(Fe>>8&255,rr>>8&255)<<8|Kn(Fe>>0&255,rr>>0&255))>>>0};var Ca=We.PredictorAdd0;We.PredictorAdd1=Ai,$n("Predictor2","PredictorAdd2"),$n("Predictor3","PredictorAdd3"),$n("Predictor4","PredictorAdd4"),$n("Predictor5","PredictorAdd5"),$n("Predictor6","PredictorAdd6"),$n("Predictor7","PredictorAdd7"),$n("Predictor8","PredictorAdd8"),$n("Predictor9","PredictorAdd9"),$n("Predictor10","PredictorAdd10"),$n("Predictor11","PredictorAdd11"),$n("Predictor12","PredictorAdd12"),$n("Predictor13","PredictorAdd13");var qo=We.PredictorAdd2;ci("ColorIndexInverseTransform","MapARGB","32b",function(Fe){return Fe>>8&255},function(Fe){return Fe}),ci("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Fe){return Fe},function(Fe){return Fe>>8&255});var Ta,Si=We.ColorIndexInverseTransform,wo=We.MapARGB,RA=We.VP8LColorIndexInverseTransformAlpha,$A=We.MapAlpha,ro=We.VP8LPredictorsAdd=[];ro.length=16,(We.VP8LPredictors=[]).length=16,(We.VP8LPredictorsAdd_C=[]).length=16,(We.VP8LPredictors_C=[]).length=16;var DA,GA,Bo,qA,CA,bo,kA,co,Eo,no,zA,VA,fo,Co,Uo,Cr,Ur,Vr,mn,zr,dn,yn,Nn,Vn,oi,ai,si,Ci,$i=_e(511),ui=_e(2041),iA=_e(225),pA=_e(767),PA=0,ki=ui,_o=iA,dA=pA,zi=$i,Ka=0,ja=1,Cs=2,Ga=3,qa=4,ss=5,_s=6,ls=7,us=8,za=9,cs=10,Js=[2,3,7],Zs=[3,3,11],Ts=[280,256,256,256,40],tl=[0,1,1,1,0],el=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],rl=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],nl=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],il=8,fs=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],hs=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Da=null,Al=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ol=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Ss=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],al=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],sl=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ll=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ul=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zo=[],ho=[],Lo=[],cl=1,xs=2,Wo=[],io=[];hn("UpsampleRgbLinePair",xi,3),hn("UpsampleBgrLinePair",li,3),hn("UpsampleRgbaLinePair",IA,4),hn("UpsampleBgraLinePair",sA,4),hn("UpsampleArgbLinePair",aA,4),hn("UpsampleRgba4444LinePair",eA,2),hn("UpsampleRgb565LinePair",Ri,2);var hl=We.UpsampleRgbLinePair,pl=We.UpsampleBgrLinePair,Is=We.UpsampleRgbaLinePair,Fs=We.UpsampleBgraLinePair,Ps=We.UpsampleArgbLinePair,Os=We.UpsampleRgba4444LinePair,dl=We.UpsampleRgb565LinePair,Wa=16,Ya=1<<Wa-1,Qa=-227,ps=482,Ns=6,gl=(256<<Ns)-1,Us=0,vl=_e(256),ml=_e(256),yl=_e(256),wl=_e(256),Bl=_e(ps-Qa),bl=_e(ps-Qa);eo("YuvToRgbRow",xi,3),eo("YuvToBgrRow",li,3),eo("YuvToRgbaRow",IA,4),eo("YuvToBgraRow",sA,4),eo("YuvToArgbRow",aA,4),eo("YuvToRgba4444Row",eA,2),eo("YuvToRgb565Row",Ri,2);var Ls=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Xa=[0,2,8],El=[8,7,6,4,4,2,2,2,1,1,1,1],Cl=1;this.WebPDecodeRGBA=function(Fe,De,Ge,rr,pr){var yr=ja,wr=new di,Er=new wn;wr.ba=Er,Er.S=yr,Er.width=[Er.width],Er.height=[Er.height];var _r=Er.width,Ir=Er.height,Kr=new pn;if(Kr==null||Fe==null)var an=2;else St(Kr!=null),an=uo(Fe,De,Ge,Kr.width,Kr.height,Kr.Pd,Kr.Qd,Kr.format,null);if(an!=0?_r=0:(_r!=null&&(_r[0]=Kr.width[0]),Ir!=null&&(Ir[0]=Kr.height[0]),_r=1),_r){Er.width=Er.width[0],Er.height=Er.height[0],rr!=null&&(rr[0]=Er.width),pr!=null&&(pr[0]=Er.height);t:{if(rr=new Do,(pr=new ri).data=Fe,pr.w=De,pr.ha=Ge,pr.kd=1,De=[0],St(pr!=null),((Fe=uo(pr.data,pr.w,pr.ha,null,null,null,De,null,pr))==0||Fe==7)&&De[0]&&(Fe=4),(De=Fe)==0){if(St(wr!=null),rr.data=pr.data,rr.w=pr.w+pr.offset,rr.ha=pr.ha-pr.offset,rr.put=Jn,rr.ac=bn,rr.bc=pi,rr.ma=wr,pr.xa){if((Fe=gA())==null){wr=1;break t}if(function(sn,Zr){var _n=[0],gn=[0],Gr=[0];e:for(;;){if(sn==null)return 0;if(Zr==null)return sn.a=2,0;if(sn.l=Zr,sn.a=0,Dr(sn.m,Zr.data,Zr.w,Zr.ha),!Mn(sn.m,_n,gn,Gr)){sn.a=3;break e}if(sn.xb=xs,Zr.width=_n[0],Zr.height=gn[0],!OA(_n[0],gn[0],1,sn,null))break e;return 1}return St(sn.a!=0),0}(Fe,rr)){if(rr=(De=jo(rr.width,rr.height,wr.Oa,wr.ba))==0){e:{rr=Fe;r:for(;;){if(rr==null){rr=0;break e}if(St(rr.s.yc!=null),St(rr.s.Ya!=null),St(0<rr.s.Wb),St((Ge=rr.l)!=null),St((pr=Ge.ma)!=null),rr.xb!=0){if(rr.ca=pr.ba,rr.tb=pr.tb,St(rr.ca!=null),!fa(pr.Oa,Ge,Ga)){rr.a=2;break r}if(!Zn(rr,Ge.width)||Ge.da)break r;if((Ge.da||dr(rr.ca.S))&&rn(),11>rr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),rr.ca.f.kb.F!=null&&rn()),rr.Pb&&0<rr.s.ua&&rr.s.vb.X==null&&!zn(rr.s.vb,rr.s.Wa.Xa)){rr.a=1;break r}rr.xb=0}if(!TA(rr,rr.V,rr.Ba,rr.c,rr.i,Ge.o,oo))break r;pr.Dc=rr.Ma,rr=1;break e}St(rr.a!=0),rr=0}rr=!rr}rr&&(De=Fe.a)}else De=Fe.a}else{if((Fe=new ea)==null){wr=1;break t}if(Fe.Fa=pr.na,Fe.P=pr.P,Fe.qc=pr.Sa,ra(Fe,rr)){if((De=jo(rr.width,rr.height,wr.Oa,wr.ba))==0){if(Fe.Aa=0,Ge=wr.Oa,St((pr=Fe)!=null),Ge!=null){if(0<(_r=0>(_r=Ge.Md)?0:100<_r?255:255*_r/100)){for(Ir=Kr=0;4>Ir;++Ir)12>(an=pr.pb[Ir]).lc&&(an.ia=_r*El[0>an.lc?0:an.lc]>>3),Kr|=an.ia;Kr&&(alert("todo:VP8InitRandom"),pr.ia=1)}pr.Ga=Ge.Id,100<pr.Ga?pr.Ga=100:0>pr.Ga&&(pr.Ga=0)}NA(Fe,rr)||(De=Fe.a)}}else De=Fe.a}De==0&&wr.Oa!=null&&wr.Oa.fd&&(De=ha(wr.ba))}wr=De}yr=wr!=0?null:11>yr?Er.f.RGBA.eb:Er.f.kb.y}else yr=null;return yr};var Rs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ie(We,or){for(var mr="",er=0;er<4;er++)mr+=String.fromCharCode(We[or++]);return mr}function Ue(We,or){return(We[or+0]<<0|We[or+1]<<8|We[or+2]<<16)>>>0}function $e(We,or){return(We[or+0]<<0|We[or+1]<<8|We[or+2]<<16|We[or+3]<<24)>>>0}new xe;var Me=[0],Re=[0],ze=[],Ve=new xe,nr=Be,Ze=function(We,or){var mr={},er=0,ir=!1,gr=0,vr=0;if(mr.frames=[],!function(Tr,xr,$r,Qr){for(var Jr=0;Jr<Qr;Jr++)if(Tr[xr+Jr]!=$r.charCodeAt(Jr))return!0;return!1}(We,or,"RIFF",4)){var Or,Nr;for($e(We,or+=4),or+=8;or<We.length;){var Hr=Ie(We,or),Dr=$e(We,or+=4);or+=4;var kr=Dr+(1&Dr);switch(Hr){case"VP8 ":case"VP8L":mr.frames[er]===void 0&&(mr.frames[er]={}),(lr=mr.frames[er]).src_off=ir?vr:or-8,lr.src_size=gr+Dr+8,er++,ir&&(ir=!1,gr=0,vr=0);break;case"VP8X":(lr=mr.header={}).feature_flags=We[or];var qr=or+4;lr.canvas_width=1+Ue(We,qr),qr+=3,lr.canvas_height=1+Ue(We,qr),qr+=3;break;case"ALPH":ir=!0,gr=kr+8,vr=or-8;break;case"ANIM":(lr=mr.header).bgcolor=$e(We,or),qr=or+4,lr.loop_count=(Or=We)[(Nr=qr)+0]<<0|Or[Nr+1]<<8,qr+=2;break;case"ANMF":var An,lr;(lr=mr.frames[er]={}).offset_x=2*Ue(We,or),or+=3,lr.offset_y=2*Ue(We,or),or+=3,lr.width=1+Ue(We,or),or+=3,lr.height=1+Ue(We,or),or+=3,lr.duration=Ue(We,or),or+=3,An=We[or++],lr.dispose=1&An,lr.blend=An>>1&1}Hr!="ANMF"&&(or+=kr)}return mr}}(nr,0);Ze.response=nr,Ze.rgbaoutput=!0,Ze.dataurl=!1;var ar=Ze.header?Ze.header:null,fr=Ze.frames?Ze.frames:null;if(ar){ar.loop_counter=ar.loop_count,Me=[ar.canvas_height],Re=[ar.canvas_width];for(var Ye=0;Ye<fr.length&&fr[Ye].blend!=0;Ye++);}var Ar=fr[0],Oe=Ve.WebPDecodeRGBA(nr,Ar.src_off,Ar.src_size,Re,Me);Ar.rgba=Oe,Ar.imgwidth=Re[0],Ar.imgheight=Me[0];for(var Je=0;Je<Re[0]*Me[0]*4;Je++)ze[Je]=Oe[Je];return this.width=Re,this.height=Me,this.data=ze,this}(function(Be){var St=function(){return typeof zlibSync=="function"},Ae=function(Me,Re,ze,Ve){var nr=4,Ze=Te;switch(Ve){case Be.image_compression.FAST:nr=1,Ze=_e;break;case Be.image_compression.MEDIUM:nr=6,Ze=Se;break;case Be.image_compression.SLOW:nr=9,Ze=xe}Me=Ee(Me,Re,ze,Ze);var ar=zlibSync(Me,{level:nr});return Be.__addimage__.arrayBufferToBinaryString(ar)},Ee=function(Me,Re,ze,Ve){for(var nr,Ze,ar,fr=Me.length/Re,Ye=new Uint8Array(Me.length+fr),Ar=Ue(),Oe=0;Oe<fr;Oe+=1){if(ar=Oe*Re,nr=Me.subarray(ar,ar+Re),Ve)Ye.set(Ve(nr,ze,Ze),ar+Oe);else{for(var Je,We=Ar.length,or=[];Je<We;Je+=1)or[Je]=Ar[Je](nr,ze,Ze);var mr=$e(or.concat());Ye.set(or[mr],ar+Oe)}Ze=nr}return Ye},Ce=function(Me){var Re=Array.apply([],Me);return Re.unshift(0),Re},_e=function(Me,Re){var ze,Ve=[],nr=Me.length;Ve[0]=1;for(var Ze=0;Ze<nr;Ze+=1)ze=Me[Ze-Re]||0,Ve[Ze+1]=Me[Ze]-ze+256&255;return Ve},Te=function(Me,Re,ze){var Ve,nr=[],Ze=Me.length;nr[0]=2;for(var ar=0;ar<Ze;ar+=1)Ve=ze&&ze[ar]||0,nr[ar+1]=Me[ar]-Ve+256&255;return nr},Se=function(Me,Re,ze){var Ve,nr,Ze=[],ar=Me.length;Ze[0]=3;for(var fr=0;fr<ar;fr+=1)Ve=Me[fr-Re]||0,nr=ze&&ze[fr]||0,Ze[fr+1]=Me[fr]+256-(Ve+nr>>>1)&255;return Ze},xe=function(Me,Re,ze){var Ve,nr,Ze,ar,fr=[],Ye=Me.length;fr[0]=4;for(var Ar=0;Ar<Ye;Ar+=1)Ve=Me[Ar-Re]||0,nr=ze&&ze[Ar]||0,Ze=ze&&ze[Ar-Re]||0,ar=Ie(Ve,nr,Ze),fr[Ar+1]=Me[Ar]-ar+256&255;return fr},Ie=function(Me,Re,ze){if(Me===Re&&Re===ze)return Me;var Ve=Math.abs(Re-ze),nr=Math.abs(Me-ze),Ze=Math.abs(Me+Re-ze-ze);return Ve<=nr&&Ve<=Ze?Me:nr<=Ze?Re:ze},Ue=function(){return[Ce,_e,Te,Se,xe]},$e=function(Me){var Re=Me.map(function(ze){return ze.reduce(function(Ve,nr){return Ve+Math.abs(nr)},0)});return Re.indexOf(Math.min.apply(null,Re))};Be.processPNG=function(Me,Re,ze,Ve){var nr,Ze,ar,fr,Ye,Ar,Oe,Je,We,or,mr,er,ir,gr,vr,Or=this.decode.FLATE_DECODE,Nr="";if(this.__addimage__.isArrayBuffer(Me)&&(Me=new Uint8Array(Me)),this.__addimage__.isArrayBufferView(Me)){if(Me=(ar=new Kt(Me)).imgData,Ze=ar.bits,nr=ar.colorSpace,Ye=ar.colors,[4,6].indexOf(ar.colorType)!==-1){if(ar.bits===8){We=(Je=ar.pixelBitlength==32?new Uint32Array(ar.decodePixels().buffer):ar.pixelBitlength==16?new Uint16Array(ar.decodePixels().buffer):new Uint8Array(ar.decodePixels().buffer)).length,mr=new Uint8Array(We*ar.colors),or=new Uint8Array(We);var Hr,Dr=ar.pixelBitlength-ar.bits;for(gr=0,vr=0;gr<We;gr++){for(ir=Je[gr],Hr=0;Hr<Dr;)mr[vr++]=ir>>>Hr&255,Hr+=ar.bits;or[gr]=ir>>>Hr&255}}if(ar.bits===16){We=(Je=new Uint32Array(ar.decodePixels().buffer)).length,mr=new Uint8Array(We*(32/ar.pixelBitlength)*ar.colors),or=new Uint8Array(We*(32/ar.pixelBitlength)),er=ar.colors>1,gr=0,vr=0;for(var kr=0;gr<We;)ir=Je[gr++],mr[vr++]=ir>>>0&255,er&&(mr[vr++]=ir>>>16&255,ir=Je[gr++],mr[vr++]=ir>>>0&255),or[kr++]=ir>>>16&255;Ze=8}Ve!==Be.image_compression.NONE&&St()?(Me=Ae(mr,ar.width*ar.colors,ar.colors,Ve),Oe=Ae(or,ar.width,1,Ve)):(Me=mr,Oe=or,Or=void 0)}if(ar.colorType===3&&(nr=this.color_spaces.INDEXED,Ar=ar.palette,ar.transparency.indexed)){var qr=ar.transparency.indexed,An=0;for(gr=0,We=qr.length;gr<We;++gr)An+=qr[gr];if((An/=255)===We-1&&qr.indexOf(0)!==-1)fr=[qr.indexOf(0)];else if(An!==We){for(Je=ar.decodePixels(),or=new Uint8Array(Je.length),gr=0,We=Je.length;gr<We;gr++)or[gr]=qr[Je[gr]];Oe=Ae(or,ar.width,1)}}var lr=function(Tr){var xr;switch(Tr){case Be.image_compression.FAST:xr=11;break;case Be.image_compression.MEDIUM:xr=13;break;case Be.image_compression.SLOW:xr=14;break;default:xr=12}return xr}(Ve);return Or===this.decode.FLATE_DECODE&&(Nr="/Predictor "+lr+" "),Nr+="/Colors "+Ye+" /BitsPerComponent "+Ze+" /Columns "+ar.width,(this.__addimage__.isArrayBuffer(Me)||this.__addimage__.isArrayBufferView(Me))&&(Me=this.__addimage__.arrayBufferToBinaryString(Me)),(Oe&&this.__addimage__.isArrayBuffer(Oe)||this.__addimage__.isArrayBufferView(Oe))&&(Oe=this.__addimage__.arrayBufferToBinaryString(Oe)),{alias:ze,data:Me,index:Re,filter:Or,decodeParameters:Nr,transparency:fr,palette:Ar,sMask:Oe,predictor:lr,width:ar.width,height:ar.height,bitsPerComponent:Ze,colorSpace:nr}}}})(E$1.API),function(Be){Be.processGIF89A=function(St,Ae,Ee,Ce){var _e=new Zt(St),Te=_e.width,Se=_e.height,xe=[];_e.decodeAndBlitFrameRGBA(0,xe);var Ie={data:xe,width:Te,height:Se},Ue=new Qt(100).encode(Ie,100);return Be.processJPEG.call(this,Ue,Ae,Ee,Ce)},Be.processGIF87A=Be.processGIF89A}(E$1.API),te.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var Be=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Be);for(var St=0;St<Be;St++){var Ae=this.datav.getUint8(this.pos++,!0),Ee=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=this.datav.getUint8(this.pos++,!0);this.palette[St]={red:Ce,green:Ee,blue:Ae,quad:_e}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},te.prototype.parseBGR=function(){this.pos=this.offset;try{var Be="bit"+this.bitPP,St=this.width*this.height*4;this.data=new Uint8Array(St),this[Be]()}catch(Ae){a$2.log("bit decode error:"+Ae)}},te.prototype.bit1=function(){var Be,St=Math.ceil(this.width/8),Ae=St%4;for(Be=this.height-1;Be>=0;Be--){for(var Ee=this.bottom_up?Be:this.height-1-Be,Ce=0;Ce<St;Ce++)for(var _e=this.datav.getUint8(this.pos++,!0),Te=Ee*this.width*4+8*Ce*4,Se=0;Se<8&&8*Ce+Se<this.width;Se++){var xe=this.palette[_e>>7-Se&1];this.data[Te+4*Se]=xe.blue,this.data[Te+4*Se+1]=xe.green,this.data[Te+4*Se+2]=xe.red,this.data[Te+4*Se+3]=255}Ae!==0&&(this.pos+=4-Ae)}},te.prototype.bit4=function(){for(var Be=Math.ceil(this.width/2),St=Be%4,Ae=this.height-1;Ae>=0;Ae--){for(var Ee=this.bottom_up?Ae:this.height-1-Ae,Ce=0;Ce<Be;Ce++){var _e=this.datav.getUint8(this.pos++,!0),Te=Ee*this.width*4+2*Ce*4,Se=_e>>4,xe=15&_e,Ie=this.palette[Se];if(this.data[Te]=Ie.blue,this.data[Te+1]=Ie.green,this.data[Te+2]=Ie.red,this.data[Te+3]=255,2*Ce+1>=this.width)break;Ie=this.palette[xe],this.data[Te+4]=Ie.blue,this.data[Te+4+1]=Ie.green,this.data[Te+4+2]=Ie.red,this.data[Te+4+3]=255}St!==0&&(this.pos+=4-St)}},te.prototype.bit8=function(){for(var Be=this.width%4,St=this.height-1;St>=0;St--){for(var Ae=this.bottom_up?St:this.height-1-St,Ee=0;Ee<this.width;Ee++){var Ce=this.datav.getUint8(this.pos++,!0),_e=Ae*this.width*4+4*Ee;if(Ce<this.palette.length){var Te=this.palette[Ce];this.data[_e]=Te.red,this.data[_e+1]=Te.green,this.data[_e+2]=Te.blue,this.data[_e+3]=255}else this.data[_e]=255,this.data[_e+1]=255,this.data[_e+2]=255,this.data[_e+3]=255}Be!==0&&(this.pos+=4-Be)}},te.prototype.bit15=function(){for(var Be=this.width%3,St=parseInt("11111",2),Ae=this.height-1;Ae>=0;Ae--){for(var Ee=this.bottom_up?Ae:this.height-1-Ae,Ce=0;Ce<this.width;Ce++){var _e=this.datav.getUint16(this.pos,!0);this.pos+=2;var Te=(_e&St)/St*255|0,Se=(_e>>5&St)/St*255|0,xe=(_e>>10&St)/St*255|0,Ie=_e>>15?255:0,Ue=Ee*this.width*4+4*Ce;this.data[Ue]=xe,this.data[Ue+1]=Se,this.data[Ue+2]=Te,this.data[Ue+3]=Ie}this.pos+=Be}},te.prototype.bit16=function(){for(var Be=this.width%3,St=parseInt("11111",2),Ae=parseInt("111111",2),Ee=this.height-1;Ee>=0;Ee--){for(var Ce=this.bottom_up?Ee:this.height-1-Ee,_e=0;_e<this.width;_e++){var Te=this.datav.getUint16(this.pos,!0);this.pos+=2;var Se=(Te&St)/St*255|0,xe=(Te>>5&Ae)/Ae*255|0,Ie=(Te>>11)/St*255|0,Ue=Ce*this.width*4+4*_e;this.data[Ue]=Ie,this.data[Ue+1]=xe,this.data[Ue+2]=Se,this.data[Ue+3]=255}this.pos+=Be}},te.prototype.bit24=function(){for(var Be=this.height-1;Be>=0;Be--){for(var St=this.bottom_up?Be:this.height-1-Be,Ae=0;Ae<this.width;Ae++){var Ee=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=this.datav.getUint8(this.pos++,!0),Te=St*this.width*4+4*Ae;this.data[Te]=_e,this.data[Te+1]=Ce,this.data[Te+2]=Ee,this.data[Te+3]=255}this.pos+=this.width%4}},te.prototype.bit32=function(){for(var Be=this.height-1;Be>=0;Be--)for(var St=this.bottom_up?Be:this.height-1-Be,Ae=0;Ae<this.width;Ae++){var Ee=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),_e=this.datav.getUint8(this.pos++,!0),Te=this.datav.getUint8(this.pos++,!0),Se=St*this.width*4+4*Ae;this.data[Se]=_e,this.data[Se+1]=Ce,this.data[Se+2]=Ee,this.data[Se+3]=Te}},te.prototype.getData=function(){return this.data},function(Be){Be.processBMP=function(St,Ae,Ee,Ce){var _e=new te(St,!1),Te=_e.width,Se=_e.height,xe={data:_e.getData(),width:Te,height:Se},Ie=new Qt(100).encode(xe,100);return Be.processJPEG.call(this,Ie,Ae,Ee,Ce)}}(E$1.API),ee.prototype.getData=function(){return this.data},function(Be){Be.processWEBP=function(St,Ae,Ee,Ce){var _e=new ee(St),Te=_e.width,Se=_e.height,xe={data:_e.getData(),width:Te,height:Se},Ie=new Qt(100).encode(xe,100);return Be.processJPEG.call(this,Ie,Ae,Ee,Ce)}}(E$1.API),E$1.API.processRGBA=function(Be,St,Ae){for(var Ee=Be.data,Ce=Ee.length,_e=new Uint8Array(Ce/4*3),Te=new Uint8Array(Ce/4),Se=0,xe=0,Ie=0;Ie<Ce;Ie+=4){var Ue=Ee[Ie],$e=Ee[Ie+1],Me=Ee[Ie+2],Re=Ee[Ie+3];_e[Se++]=Ue,_e[Se++]=$e,_e[Se++]=Me,Te[xe++]=Re}var ze=this.__addimage__.arrayBufferToBinaryString(_e);return{alpha:this.__addimage__.arrayBufferToBinaryString(Te),data:ze,index:St,alias:Ae,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Be.width,height:Be.height}},E$1.API.setLanguage=function(Be){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{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:"North Macedonia",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",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Be]!==void 0&&(this.internal.languageSettings.languageCode=Be,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Vt=E$1.API,Gt=Vt.getCharWidthsArray=function(Be,St){var Ae,Ee,Ce=(St=St||{}).font||this.internal.getFont(),_e=St.fontSize||this.internal.getFontSize(),Te=St.charSpace||this.internal.getCharSpace(),Se=St.widths?St.widths:Ce.metadata.Unicode.widths,xe=Se.fof?Se.fof:1,Ie=St.kerning?St.kerning:Ce.metadata.Unicode.kerning,Ue=Ie.fof?Ie.fof:1,$e=St.doKerning!==!1,Me=0,Re=Be.length,ze=0,Ve=Se[0]||xe,nr=[];for(Ae=0;Ae<Re;Ae++)Ee=Be.charCodeAt(Ae),typeof Ce.metadata.widthOfString=="function"?nr.push((Ce.metadata.widthOfGlyph(Ce.metadata.characterToGlyph(Ee))+Te*(1e3/_e)||0)/1e3):(Me=$e&&_typeof$3(Ie[Ee])==="object"&&!isNaN(parseInt(Ie[Ee][ze],10))?Ie[Ee][ze]/Ue:0,nr.push((Se[Ee]||Ve)/xe+Me)),ze=Ee;return nr},Yt=Vt.getStringUnitWidth=function(Be,St){var Ae=(St=St||{}).fontSize||this.internal.getFontSize(),Ee=St.font||this.internal.getFont(),Ce=St.charSpace||this.internal.getCharSpace();return Vt.processArabic&&(Be=Vt.processArabic(Be)),typeof Ee.metadata.widthOfString=="function"?Ee.metadata.widthOfString(Be,Ae,Ce)/Ae:Gt.apply(this,arguments).reduce(function(_e,Te){return _e+Te},0)},Jt=function(Be,St,Ae,Ee){for(var Ce=[],_e=0,Te=Be.length,Se=0;_e!==Te&&Se+St[_e]<Ae;)Se+=St[_e],_e++;Ce.push(Be.slice(0,_e));var xe=_e;for(Se=0;_e!==Te;)Se+St[_e]>Ee&&(Ce.push(Be.slice(xe,_e)),Se=0,xe=_e),Se+=St[_e],_e++;return xe!==_e&&Ce.push(Be.slice(xe,_e)),Ce},Xt=function(Be,St,Ae){Ae||(Ae={});var Ee,Ce,_e,Te,Se,xe,Ie,Ue=[],$e=[Ue],Me=Ae.textIndent||0,Re=0,ze=0,Ve=Be.split(" "),nr=Gt.apply(this,[" ",Ae])[0];if(xe=Ae.lineIndent===-1?Ve[0].length+2:Ae.lineIndent||0){var Ze=Array(xe).join(" "),ar=[];Ve.map(function(Ye){(Ye=Ye.split(/\s*\n/)).length>1?ar=ar.concat(Ye.map(function(Ar,Oe){return(Oe&&Ar.length?`
`:"")+Ar})):ar.push(Ye[0])}),Ve=ar,xe=Yt.apply(this,[Ze,Ae])}for(_e=0,Te=Ve.length;_e<Te;_e++){var fr=0;if(Ee=Ve[_e],xe&&Ee[0]==`
`&&(Ee=Ee.substr(1),fr=1),Me+Re+(ze=(Ce=Gt.apply(this,[Ee,Ae])).reduce(function(Ye,Ar){return Ye+Ar},0))>St||fr){if(ze>St){for(Se=Jt.apply(this,[Ee,Ce,St-(Me+Re),St]),Ue.push(Se.shift()),Ue=[Se.pop()];Se.length;)$e.push([Se.shift()]);ze=Ce.slice(Ee.length-(Ue[0]?Ue[0].length:0)).reduce(function(Ye,Ar){return Ye+Ar},0)}else Ue=[Ee];$e.push(Ue),Me=ze+xe,Re=nr}else Ue.push(Ee),Me+=Re+ze,Re=nr}return Ie=xe?function(Ye,Ar){return(Ar?Ze:"")+Ye.join(" ")}:function(Ye){return Ye.join(" ")},$e.map(Ie)},Vt.splitTextToSize=function(Be,St,Ae){var Ee,Ce=(Ae=Ae||{}).fontSize||this.internal.getFontSize(),_e=(function(Ue){if(Ue.widths&&Ue.kerning)return{widths:Ue.widths,kerning:Ue.kerning};var $e=this.internal.getFont(Ue.fontName,Ue.fontStyle);return $e.metadata.Unicode?{widths:$e.metadata.Unicode.widths||{0:1},kerning:$e.metadata.Unicode.kerning||{}}:{font:$e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,Ae);Ee=Array.isArray(Be)?Be:String(Be).split(/\r?\n/);var Te=1*this.internal.scaleFactor*St/Ce;_e.textIndent=Ae.textIndent?1*Ae.textIndent*this.internal.scaleFactor/Ce:0,_e.lineIndent=Ae.lineIndent;var Se,xe,Ie=[];for(Se=0,xe=Ee.length;Se<xe;Se++)Ie=Ie.concat(Xt.apply(this,[Ee[Se],Te,_e]));return Ie},function(Be){Be.__fontmetrics__=Be.__fontmetrics__||{};for(var St="klmnopqrstuvwxyz",Ae={},Ee={},Ce=0;Ce<St.length;Ce++)Ae[St[Ce]]="0123456789abcdef"[Ce],Ee["0123456789abcdef"[Ce]]=St[Ce];var _e=function($e){return"0x"+parseInt($e,10).toString(16)},Te=Be.__fontmetrics__.compress=function($e){var Me,Re,ze,Ve,nr=["{"];for(var Ze in $e){if(Me=$e[Ze],isNaN(parseInt(Ze,10))?Re="'"+Ze+"'":(Ze=parseInt(Ze,10),Re=(Re=_e(Ze).slice(2)).slice(0,-1)+Ee[Re.slice(-1)]),typeof Me=="number")Me<0?(ze=_e(Me).slice(3),Ve="-"):(ze=_e(Me).slice(2),Ve=""),ze=Ve+ze.slice(0,-1)+Ee[ze.slice(-1)];else{if(_typeof$3(Me)!=="object")throw new Error("Don't know what to do with value type "+_typeof$3(Me)+".");ze=Te(Me)}nr.push(Re+ze)}return nr.push("}"),nr.join("")},Se=Be.__fontmetrics__.uncompress=function($e){if(typeof $e!="string")throw new Error("Invalid argument passed to uncompress.");for(var Me,Re,ze,Ve,nr={},Ze=1,ar=nr,fr=[],Ye="",Ar="",Oe=$e.length-1,Je=1;Je<Oe;Je+=1)(Ve=$e[Je])=="'"?Me?(ze=Me.join(""),Me=void 0):Me=[]:Me?Me.push(Ve):Ve=="{"?(fr.push([ar,ze]),ar={},ze=void 0):Ve=="}"?((Re=fr.pop())[0][Re[1]]=ar,ze=void 0,ar=Re[0]):Ve=="-"?Ze=-1:ze===void 0?Ae.hasOwnProperty(Ve)?(Ye+=Ae[Ve],ze=parseInt(Ye,16)*Ze,Ze=1,Ye=""):Ye+=Ve:Ae.hasOwnProperty(Ve)?(Ar+=Ae[Ve],ar[ze]=parseInt(Ar,16)*Ze,Ze=1,ze=void 0,Ar=""):Ar+=Ve;return nr},xe={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Se("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Ie={Unicode:{Courier:xe,"Courier-Bold":xe,"Courier-BoldOblique":xe,"Courier-Oblique":xe,Helvetica:xe,"Helvetica-Bold":xe,"Helvetica-BoldOblique":xe,"Helvetica-Oblique":xe,"Times-Roman":xe,"Times-Bold":xe,"Times-BoldItalic":xe,"Times-Italic":xe}},Ue={Unicode:{"Courier-Oblique":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Se("{'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":Se("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Se("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Se("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Se("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Se("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Se("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Se("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Se("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Se("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Se("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Be.events.push(["addFont",function($e){var Me=$e.font,Re=Ue.Unicode[Me.postScriptName];Re&&(Me.metadata.Unicode={},Me.metadata.Unicode.widths=Re.widths,Me.metadata.Unicode.kerning=Re.kerning);var ze=Ie.Unicode[Me.postScriptName];ze&&(Me.metadata.Unicode.encoding=ze,Me.encoding=ze.codePages[0])}])}(E$1.API),function(Be){var St=function(Ae){for(var Ee=Ae.length,Ce=new Uint8Array(Ee),_e=0;_e<Ee;_e++)Ce[_e]=Ae.charCodeAt(_e);return Ce};Be.API.events.push(["addFont",function(Ae){var Ee=void 0,Ce=Ae.font,_e=Ae.instance;if(!Ce.isStandardFont){if(_e===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ce.postScriptName+"').");if(typeof(Ee=_e.existsFileInVFS(Ce.postScriptName)===!1?_e.loadFile(Ce.postScriptName):_e.getFileFromVFS(Ce.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ce.postScriptName+"').");(function(Te,Se){Se=/^\x00\x01\x00\x00/.test(Se)?St(Se):St(u$2(Se)),Te.metadata=Be.API.TTFFont.open(Se),Te.metadata.Unicode=Te.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Te.metadata.glyIdsUsed=[0]})(Ce,Ee)}}])}(E$1),function(Be){function St(){return(n$1.canvg?Promise.resolve(n$1.canvg):Promise.resolve().then(()=>index_es)).catch(function(Ae){return Promise.reject(new Error("Could not load canvg: "+Ae))}).then(function(Ae){return Ae.default?Ae.default:Ae})}E$1.API.addSvgAsImage=function(Ae,Ee,Ce,_e,Te,Se,xe,Ie){if(isNaN(Ee)||isNaN(Ce))throw a$2.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(_e)||isNaN(Te))throw a$2.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Ue=document.createElement("canvas");Ue.width=_e,Ue.height=Te;var $e=Ue.getContext("2d");$e.fillStyle="#fff",$e.fillRect(0,0,Ue.width,Ue.height);var Me={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Re=this;return St().then(function(ze){return ze.fromString($e,Ae,Me)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(ze){return ze.render(Me)}).then(function(){Re.addImage(Ue.toDataURL("image/jpeg",1),Ee,Ce,_e,Te,xe,Ie)})}}(),E$1.API.putTotalPages=function(Be){var St,Ae=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(St=new RegExp(Be,"g"),Ae=this.internal.getNumberOfPages()):(St=new RegExp(this.pdfEscape16(Be,this.internal.getFont()),"g"),Ae=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ee=1;Ee<=this.internal.getNumberOfPages();Ee++)for(var Ce=0;Ce<this.internal.pages[Ee].length;Ce++)this.internal.pages[Ee][Ce]=this.internal.pages[Ee][Ce].replace(St,Ae);return this},E$1.API.viewerPreferences=function(Be,St){var Ae;Be=Be||{},St=St||!1;var Ee,Ce,_e,Te={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}},Se=Object.keys(Te),xe=[],Ie=0,Ue=0,$e=0;function Me(ze,Ve){var nr,Ze=!1;for(nr=0;nr<ze.length;nr+=1)ze[nr]===Ve&&(Ze=!0);return Ze}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Te)),this.internal.viewerpreferences.isSubscribed=!1),Ae=this.internal.viewerpreferences.configuration,Be==="reset"||St===!0){var Re=Se.length;for($e=0;$e<Re;$e+=1)Ae[Se[$e]].value=Ae[Se[$e]].defaultValue,Ae[Se[$e]].explicitSet=!1}if(_typeof$3(Be)==="object"){for(Ce in Be)if(_e=Be[Ce],Me(Se,Ce)&&_e!==void 0){if(Ae[Ce].type==="boolean"&&typeof _e=="boolean")Ae[Ce].value=_e;else if(Ae[Ce].type==="name"&&Me(Ae[Ce].valueSet,_e))Ae[Ce].value=_e;else if(Ae[Ce].type==="integer"&&Number.isInteger(_e))Ae[Ce].value=_e;else if(Ae[Ce].type==="array"){for(Ie=0;Ie<_e.length;Ie+=1)if(Ee=!0,_e[Ie].length===1&&typeof _e[Ie][0]=="number")xe.push(String(_e[Ie]-1));else if(_e[Ie].length>1){for(Ue=0;Ue<_e[Ie].length;Ue+=1)typeof _e[Ie][Ue]!="number"&&(Ee=!1);Ee===!0&&xe.push([_e[Ie][0]-1,_e[Ie][1]-1].join(" "))}Ae[Ce].value="["+xe.join(" ")+"]"}else Ae[Ce].value=Ae[Ce].defaultValue;Ae[Ce].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var ze,Ve=[];for(ze in Ae)Ae[ze].explicitSet===!0&&(Ae[ze].type==="name"?Ve.push("/"+ze+" /"+Ae[ze].value):Ve.push("/"+ze+" "+Ae[ze].value));Ve.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Ve.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ae,this},function(Be){var St=function(){var Ee='<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>',Ce=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),_e=unescape(encodeURIComponent(Ee)),Te=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Se=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),xe=unescape(encodeURIComponent("</x:xmpmeta>")),Ie=_e.length+Te.length+Se.length+Ce.length+xe.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Ie+" >>"),this.internal.write("stream"),this.internal.write(Ce+_e+Te+Se+xe),this.internal.write("endstream"),this.internal.write("endobj")},Ae=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Be.addMetadata=function(Ee,Ce){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ee,namespaceuri:Ce||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ae),this.internal.events.subscribe("postPutResources",St)),this}}(E$1.API),function(Be){var St=Be.API,Ae=St.pdfEscape16=function(_e,Te){for(var Se,xe=Te.metadata.Unicode.widths,Ie=["","0","00","000","0000"],Ue=[""],$e=0,Me=_e.length;$e<Me;++$e){if(Se=Te.metadata.characterToGlyph(_e.charCodeAt($e)),Te.metadata.glyIdsUsed.push(Se),Te.metadata.toUnicode[Se]=_e.charCodeAt($e),xe.indexOf(Se)==-1&&(xe.push(Se),xe.push([parseInt(Te.metadata.widthOfGlyph(Se),10)])),Se=="0")return Ue.join("");Se=Se.toString(16),Ue.push(Ie[4-Se.length],Se)}return Ue.join("")},Ee=function(_e){var Te,Se,xe,Ie,Ue,$e,Me;for(Ue=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,xe=[],$e=0,Me=(Se=Object.keys(_e).sort(function(Re,ze){return Re-ze})).length;$e<Me;$e++)Te=Se[$e],xe.length>=100&&(Ue+=`
`+xe.length+` beginbfchar
`+xe.join(`
`)+`
endbfchar`,xe=[]),_e[Te]!==void 0&&_e[Te]!==null&&typeof _e[Te].toString=="function"&&(Ie=("0000"+_e[Te].toString(16)).slice(-4),Te=("0000"+(+Te).toString(16)).slice(-4),xe.push("<"+Te+"><"+Ie+">"));return xe.length&&(Ue+=`
`+xe.length+` beginbfchar
`+xe.join(`
`)+`
endbfchar
`),Ue+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};St.events.push(["putFont",function(_e){(function(Te){var Se=Te.font,xe=Te.out,Ie=Te.newObject,Ue=Te.putStream;if(Se.metadata instanceof Be.API.TTFFont&&Se.encoding==="Identity-H"){for(var $e=Se.metadata.Unicode.widths,Me=Se.metadata.subset.encode(Se.metadata.glyIdsUsed,1),Re="",ze=0;ze<Me.length;ze++)Re+=String.fromCharCode(Me[ze]);var Ve=Ie();Ue({data:Re,addLength1:!0,objectId:Ve}),xe("endobj");var nr=Ie();Ue({data:Ee(Se.metadata.toUnicode),addLength1:!0,objectId:nr}),xe("endobj");var Ze=Ie();xe("<<"),xe("/Type /FontDescriptor"),xe("/FontName /"+F$1(Se.fontName)),xe("/FontFile2 "+Ve+" 0 R"),xe("/FontBBox "+Be.API.PDFObject.convert(Se.metadata.bbox)),xe("/Flags "+Se.metadata.flags),xe("/StemV "+Se.metadata.stemV),xe("/ItalicAngle "+Se.metadata.italicAngle),xe("/Ascent "+Se.metadata.ascender),xe("/Descent "+Se.metadata.decender),xe("/CapHeight "+Se.metadata.capHeight),xe(">>"),xe("endobj");var ar=Ie();xe("<<"),xe("/Type /Font"),xe("/BaseFont /"+F$1(Se.fontName)),xe("/FontDescriptor "+Ze+" 0 R"),xe("/W "+Be.API.PDFObject.convert($e)),xe("/CIDToGIDMap /Identity"),xe("/DW 1000"),xe("/Subtype /CIDFontType2"),xe("/CIDSystemInfo"),xe("<<"),xe("/Supplement 0"),xe("/Registry (Adobe)"),xe("/Ordering ("+Se.encoding+")"),xe(">>"),xe(">>"),xe("endobj"),Se.objectNumber=Ie(),xe("<<"),xe("/Type /Font"),xe("/Subtype /Type0"),xe("/ToUnicode "+nr+" 0 R"),xe("/BaseFont /"+F$1(Se.fontName)),xe("/Encoding /"+Se.encoding),xe("/DescendantFonts ["+ar+" 0 R]"),xe(">>"),xe("endobj"),Se.isAlreadyPutted=!0}})(_e)}]),St.events.push(["putFont",function(_e){(function(Te){var Se=Te.font,xe=Te.out,Ie=Te.newObject,Ue=Te.putStream;if(Se.metadata instanceof Be.API.TTFFont&&Se.encoding==="WinAnsiEncoding"){for(var $e=Se.metadata.rawData,Me="",Re=0;Re<$e.length;Re++)Me+=String.fromCharCode($e[Re]);var ze=Ie();Ue({data:Me,addLength1:!0,objectId:ze}),xe("endobj");var Ve=Ie();Ue({data:Ee(Se.metadata.toUnicode),addLength1:!0,objectId:Ve}),xe("endobj");var nr=Ie();xe("<<"),xe("/Descent "+Se.metadata.decender),xe("/CapHeight "+Se.metadata.capHeight),xe("/StemV "+Se.metadata.stemV),xe("/Type /FontDescriptor"),xe("/FontFile2 "+ze+" 0 R"),xe("/Flags 96"),xe("/FontBBox "+Be.API.PDFObject.convert(Se.metadata.bbox)),xe("/FontName /"+F$1(Se.fontName)),xe("/ItalicAngle "+Se.metadata.italicAngle),xe("/Ascent "+Se.metadata.ascender),xe(">>"),xe("endobj"),Se.objectNumber=Ie();for(var Ze=0;Ze<Se.metadata.hmtx.widths.length;Ze++)Se.metadata.hmtx.widths[Ze]=parseInt(Se.metadata.hmtx.widths[Ze]*(1e3/Se.metadata.head.unitsPerEm));xe("<</Subtype/TrueType/Type/Font/ToUnicode "+Ve+" 0 R/BaseFont/"+F$1(Se.fontName)+"/FontDescriptor "+nr+" 0 R/Encoding/"+Se.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Be.API.PDFObject.convert(Se.metadata.hmtx.widths)+">>"),xe("endobj"),Se.isAlreadyPutted=!0}})(_e)}]);var Ce=function(_e){var Te,Se=_e.text||"",xe=_e.x,Ie=_e.y,Ue=_e.options||{},$e=_e.mutex||{},Me=$e.pdfEscape,Re=$e.activeFontKey,ze=$e.fonts,Ve=Re,nr="",Ze=0,ar="",fr=ze[Ve].encoding;if(ze[Ve].encoding!=="Identity-H")return{text:Se,x:xe,y:Ie,options:Ue,mutex:$e};for(ar=Se,Ve=Re,Array.isArray(Se)&&(ar=Se[0]),Ze=0;Ze<ar.length;Ze+=1)ze[Ve].metadata.hasOwnProperty("cmap")&&(Te=ze[Ve].metadata.cmap.unicode.codeMap[ar[Ze].charCodeAt(0)]),Te||ar[Ze].charCodeAt(0)<256&&ze[Ve].metadata.hasOwnProperty("Unicode")?nr+=ar[Ze]:nr+="";var Ye="";return parseInt(Ve.slice(1))<14||fr==="WinAnsiEncoding"?Ye=Me(nr,Ve).split("").map(function(Ar){return Ar.charCodeAt(0).toString(16)}).join(""):fr==="Identity-H"&&(Ye=Ae(nr,ze[Ve])),$e.isHex=!0,{text:Ye,x:xe,y:Ie,options:Ue,mutex:$e}};St.events.push(["postProcessText",function(_e){var Te=_e.text||"",Se=[],xe={text:Te,x:_e.x,y:_e.y,options:_e.options,mutex:_e.mutex};if(Array.isArray(Te)){var Ie=0;for(Ie=0;Ie<Te.length;Ie+=1)Array.isArray(Te[Ie])&&Te[Ie].length===3?Se.push([Ce(Object.assign({},xe,{text:Te[Ie][0]})).text,Te[Ie][1],Te[Ie][2]]):Se.push(Ce(Object.assign({},xe,{text:Te[Ie]})).text);_e.text=Se}else _e.text=Ce(Object.assign({},xe,{text:Te})).text}])}(E$1),function(Be){var St=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Be.existsFileInVFS=function(Ae){return St.call(this),this.internal.vFS[Ae]!==void 0},Be.addFileToVFS=function(Ae,Ee){return St.call(this),this.internal.vFS[Ae]=Ee,this},Be.getFileFromVFS=function(Ae){return St.call(this),this.internal.vFS[Ae]!==void 0?this.internal.vFS[Ae]:null}}(E$1.API),function(Be){Be.__bidiEngine__=Be.prototype.__bidiEngine__=function(Ee){var Ce,_e,Te,Se,xe,Ie,Ue,$e=St,Me=[[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]],Re=[[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]],ze={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Ve={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},nr=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],Ze=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)$/),ar=!1,fr=0;this.__bidiEngine__={};var Ye=function(er){var ir=er.charCodeAt(),gr=ir>>8,vr=Ve[gr];return vr!==void 0?$e[256*vr+(255&ir)]:gr===252||gr===253?"AL":Ze.test(gr)?"L":gr===8?"R":"N"},Ar=function(er){for(var ir,gr=0;gr<er.length;gr++){if((ir=Ye(er.charAt(gr)))==="L")return!1;if(ir==="R")return!0}return!1},Oe=function(er,ir,gr,vr){var Or,Nr,Hr,Dr,kr=ir[vr];switch(kr){case"L":case"R":ar=!1;break;case"N":case"AN":break;case"EN":ar&&(kr="AN");break;case"AL":ar=!0,kr="R";break;case"WS":kr="N";break;case"CS":vr<1||vr+1>=ir.length||(Or=gr[vr-1])!=="EN"&&Or!=="AN"||(Nr=ir[vr+1])!=="EN"&&Nr!=="AN"?kr="N":ar&&(Nr="AN"),kr=Nr===Or?Nr:"N";break;case"ES":kr=(Or=vr>0?gr[vr-1]:"B")==="EN"&&vr+1<ir.length&&ir[vr+1]==="EN"?"EN":"N";break;case"ET":if(vr>0&&gr[vr-1]==="EN"){kr="EN";break}if(ar){kr="N";break}for(Hr=vr+1,Dr=ir.length;Hr<Dr&&ir[Hr]==="ET";)Hr++;kr=Hr<Dr&&ir[Hr]==="EN"?"EN":"N";break;case"NSM":if(Te&&!Se){for(Dr=ir.length,Hr=vr+1;Hr<Dr&&ir[Hr]==="NSM";)Hr++;if(Hr<Dr){var qr=er[vr],An=qr>=1425&&qr<=2303||qr===64286;if(Or=ir[Hr],An&&(Or==="R"||Or==="AL")){kr="R";break}}}kr=vr<1||(Or=ir[vr-1])==="B"?"N":gr[vr-1];break;case"B":ar=!1,Ce=!0,kr=fr;break;case"S":_e=!0,kr="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":ar=!1;break;case"BN":kr="N"}return kr},Je=function(er,ir,gr){var vr=er.split("");return gr&&We(vr,gr,{hiLevel:fr}),vr.reverse(),ir&&ir.reverse(),vr.join("")},We=function(er,ir,gr){var vr,Or,Nr,Hr,Dr,kr=-1,qr=er.length,An=0,lr=[],Tr=fr?Re:Me,xr=[];for(ar=!1,Ce=!1,_e=!1,Or=0;Or<qr;Or++)xr[Or]=Ye(er[Or]);for(Nr=0;Nr<qr;Nr++){if(Dr=An,lr[Nr]=Oe(er,xr,lr,Nr),vr=240&(An=Tr[Dr][ze[lr[Nr]]]),An&=15,ir[Nr]=Hr=Tr[An][5],vr>0)if(vr===16){for(Or=kr;Or<Nr;Or++)ir[Or]=1;kr=-1}else kr=-1;if(Tr[An][6])kr===-1&&(kr=Nr);else if(kr>-1){for(Or=kr;Or<Nr;Or++)ir[Or]=Hr;kr=-1}xr[Nr]==="B"&&(ir[Nr]=0),gr.hiLevel|=Hr}_e&&function($r,Qr,Jr){for(var nn=0;nn<Jr;nn++)if($r[nn]==="S"){Qr[nn]=fr;for(var en=nn-1;en>=0&&$r[en]==="WS";en--)Qr[en]=fr}}(xr,ir,qr)},or=function(er,ir,gr,vr,Or){if(!(Or.hiLevel<er)){if(er===1&&fr===1&&!Ce)return ir.reverse(),void(gr&&gr.reverse());for(var Nr,Hr,Dr,kr,qr=ir.length,An=0;An<qr;){if(vr[An]>=er){for(Dr=An+1;Dr<qr&&vr[Dr]>=er;)Dr++;for(kr=An,Hr=Dr-1;kr<Hr;kr++,Hr--)Nr=ir[kr],ir[kr]=ir[Hr],ir[Hr]=Nr,gr&&(Nr=gr[kr],gr[kr]=gr[Hr],gr[Hr]=Nr);An=Dr}An++}}},mr=function(er,ir,gr){var vr=er.split(""),Or={hiLevel:fr};return gr||(gr=[]),We(vr,gr,Or),function(Nr,Hr,Dr){if(Dr.hiLevel!==0&&Ue)for(var kr,qr=0;qr<Nr.length;qr++)Hr[qr]===1&&(kr=nr.indexOf(Nr[qr]))>=0&&(Nr[qr]=nr[kr+1])}(vr,gr,Or),or(2,vr,ir,gr,Or),or(1,vr,ir,gr,Or),vr.join("")};return this.__bidiEngine__.doBidiReorder=function(er,ir,gr){if(function(Or,Nr){if(Nr)for(var Hr=0;Hr<Or.length;Hr++)Nr[Hr]=Hr;Se===void 0&&(Se=Ar(Or)),Ie===void 0&&(Ie=Ar(Or))}(er,ir),Te||!xe||Ie)if(Te&&xe&&Se^Ie)fr=Se?1:0,er=Je(er,ir,gr);else if(!Te&&xe&&Ie)fr=Se?1:0,er=mr(er,ir,gr),er=Je(er,ir);else if(!Te||Se||xe||Ie){if(Te&&!xe&&Se^Ie)er=Je(er,ir),Se?(fr=0,er=mr(er,ir,gr)):(fr=1,er=mr(er,ir,gr),er=Je(er,ir));else if(Te&&Se&&!xe&&Ie)fr=1,er=mr(er,ir,gr),er=Je(er,ir);else if(!Te&&!xe&&Se^Ie){var vr=Ue;Se?(fr=1,er=mr(er,ir,gr),fr=0,Ue=!1,er=mr(er,ir,gr),Ue=vr):(fr=0,er=mr(er,ir,gr),er=Je(er,ir),fr=1,Ue=!1,er=mr(er,ir,gr),Ue=vr,er=Je(er,ir))}}else fr=0,er=mr(er,ir,gr);else fr=Se?1:0,er=mr(er,ir,gr);return er},this.__bidiEngine__.setOptions=function(er){er&&(Te=er.isInputVisual,xe=er.isOutputVisual,Se=er.isInputRtl,Ie=er.isOutputRtl,Ue=er.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ee),this.__bidiEngine__};var St=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],Ae=new Be.__bidiEngine__({isInputVisual:!0});Be.API.events.push(["postProcessText",function(Ee){var Ce=Ee.text,_e=(Ee.x,Ee.y,Ee.options||{}),Te=(Ee.mutex,_e.lang,[]);if(_e.isInputVisual=typeof _e.isInputVisual!="boolean"||_e.isInputVisual,Ae.setOptions(_e),Object.prototype.toString.call(Ce)==="[object Array]"){var Se=0;for(Te=[],Se=0;Se<Ce.length;Se+=1)Object.prototype.toString.call(Ce[Se])==="[object Array]"?Te.push([Ae.doBidiReorder(Ce[Se][0]),Ce[Se][1],Ce[Se][2]]):Te.push([Ae.doBidiReorder(Ce[Se])]);Ee.text=Te}else Ee.text=Ae.doBidiReorder(Ce);Ae.setOptions({isInputVisual:!0})}])}(E$1),E$1.API.TTFFont=function(){function Be(St){var Ae;if(this.rawData=St,Ae=this.contents=new ne(St),this.contents.pos=4,Ae.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ae.pos=0,this.parse(),this.subset=new Le(this),this.registerTTF()}return Be.open=function(St){return new Be(St)},Be.prototype.parse=function(){return this.directory=new ie(this.contents),this.head=new se(this),this.name=new pe(this),this.cmap=new ue(this),this.toUnicode={},this.hhea=new he(this),this.maxp=new ge(this),this.hmtx=new me(this),this.post=new fe(this),this.os2=new le(this),this.loca=new Ne(this),this.glyf=new be(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},Be.prototype.registerTTF=function(){var St,Ae,Ee,Ce,_e;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var Te,Se,xe,Ie;for(Ie=[],Te=0,Se=(xe=this.bbox).length;Te<Se;Te++)St=xe[Te],Ie.push(Math.round(St*this.scaleFactor));return Ie}).call(this),this.stemV=0,this.post.exists?(Ee=255&(Ce=this.post.italic_angle),32768&(Ae=Ce>>16)&&(Ae=-(1+(65535^Ae))),this.italicAngle=+(Ae+"."+Ee)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(_e=this.familyClass)===1||_e===2||_e===3||_e===4||_e===5||_e===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Be.prototype.characterToGlyph=function(St){var Ae;return((Ae=this.cmap.unicode)!=null?Ae.codeMap[St]:void 0)||0},Be.prototype.widthOfGlyph=function(St){var Ae;return Ae=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(St).advance*Ae},Be.prototype.widthOfString=function(St,Ae,Ee){var Ce,_e,Te,Se;for(Te=0,_e=0,Se=(St=""+St).length;0<=Se?_e<Se:_e>Se;_e=0<=Se?++_e:--_e)Ce=St.charCodeAt(_e),Te+=this.widthOfGlyph(this.characterToGlyph(Ce))+Ee*(1e3/Ae)||0;return Te*(Ae/1e3)},Be.prototype.lineHeight=function(St,Ae){var Ee;return Ae==null&&(Ae=!1),Ee=Ae?this.lineGap:0,(this.ascender+Ee-this.decender)/1e3*St},Be}();var re,ne=function(){function Be(St){this.data=St??[],this.pos=0,this.length=this.data.length}return Be.prototype.readByte=function(){return this.data[this.pos++]},Be.prototype.writeByte=function(St){return this.data[this.pos++]=St},Be.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Be.prototype.writeUInt32=function(St){return this.writeByte(St>>>24&255),this.writeByte(St>>16&255),this.writeByte(St>>8&255),this.writeByte(255&St)},Be.prototype.readInt32=function(){var St;return(St=this.readUInt32())>=2147483648?St-4294967296:St},Be.prototype.writeInt32=function(St){return St<0&&(St+=4294967296),this.writeUInt32(St)},Be.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Be.prototype.writeUInt16=function(St){return this.writeByte(St>>8&255),this.writeByte(255&St)},Be.prototype.readInt16=function(){var St;return(St=this.readUInt16())>=32768?St-65536:St},Be.prototype.writeInt16=function(St){return St<0&&(St+=65536),this.writeUInt16(St)},Be.prototype.readString=function(St){var Ae,Ee;for(Ee=[],Ae=0;0<=St?Ae<St:Ae>St;Ae=0<=St?++Ae:--Ae)Ee[Ae]=String.fromCharCode(this.readByte());return Ee.join("")},Be.prototype.writeString=function(St){var Ae,Ee,Ce;for(Ce=[],Ae=0,Ee=St.length;0<=Ee?Ae<Ee:Ae>Ee;Ae=0<=Ee?++Ae:--Ae)Ce.push(this.writeByte(St.charCodeAt(Ae)));return Ce},Be.prototype.readShort=function(){return this.readInt16()},Be.prototype.writeShort=function(St){return this.writeInt16(St)},Be.prototype.readLongLong=function(){var St,Ae,Ee,Ce,_e,Te,Se,xe;return St=this.readByte(),Ae=this.readByte(),Ee=this.readByte(),Ce=this.readByte(),_e=this.readByte(),Te=this.readByte(),Se=this.readByte(),xe=this.readByte(),128&St?-1*(72057594037927940*(255^St)+281474976710656*(255^Ae)+1099511627776*(255^Ee)+4294967296*(255^Ce)+16777216*(255^_e)+65536*(255^Te)+256*(255^Se)+(255^xe)+1):72057594037927940*St+281474976710656*Ae+1099511627776*Ee+4294967296*Ce+16777216*_e+65536*Te+256*Se+xe},Be.prototype.writeLongLong=function(St){var Ae,Ee;return Ae=Math.floor(St/4294967296),Ee=4294967295&St,this.writeByte(Ae>>24&255),this.writeByte(Ae>>16&255),this.writeByte(Ae>>8&255),this.writeByte(255&Ae),this.writeByte(Ee>>24&255),this.writeByte(Ee>>16&255),this.writeByte(Ee>>8&255),this.writeByte(255&Ee)},Be.prototype.readInt=function(){return this.readInt32()},Be.prototype.writeInt=function(St){return this.writeInt32(St)},Be.prototype.read=function(St){var Ae,Ee;for(Ae=[],Ee=0;0<=St?Ee<St:Ee>St;Ee=0<=St?++Ee:--Ee)Ae.push(this.readByte());return Ae},Be.prototype.write=function(St){var Ae,Ee,Ce,_e;for(_e=[],Ee=0,Ce=St.length;Ee<Ce;Ee++)Ae=St[Ee],_e.push(this.writeByte(Ae));return _e},Be}(),ie=function(){var Be;function St(Ae){var Ee,Ce,_e;for(this.scalarType=Ae.readInt(),this.tableCount=Ae.readShort(),this.searchRange=Ae.readShort(),this.entrySelector=Ae.readShort(),this.rangeShift=Ae.readShort(),this.tables={},Ce=0,_e=this.tableCount;0<=_e?Ce<_e:Ce>_e;Ce=0<=_e?++Ce:--Ce)Ee={tag:Ae.readString(4),checksum:Ae.readInt(),offset:Ae.readInt(),length:Ae.readInt()},this.tables[Ee.tag]=Ee}return St.prototype.encode=function(Ae){var Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e,Me,Re,ze,Ve;for(Ve in Re=Object.keys(Ae).length,xe=Math.log(2),$e=16*Math.floor(Math.log(Re)/xe),Te=Math.floor($e/xe),Ue=16*Re-$e,(Ce=new ne).writeInt(this.scalarType),Ce.writeShort(Re),Ce.writeShort($e),Ce.writeShort(Te),Ce.writeShort(Ue),_e=16*Re,Ie=Ce.pos+_e,Se=null,ze=[],Ae)for(Me=Ae[Ve],Ce.writeString(Ve),Ce.writeInt(Be(Me)),Ce.writeInt(Ie),Ce.writeInt(Me.length),ze=ze.concat(Me),Ve==="head"&&(Se=Ie),Ie+=Me.length;Ie%4;)ze.push(0),Ie++;return Ce.write(ze),Ee=2981146554-Be(Ce.data),Ce.pos=Se+8,Ce.writeUInt32(Ee),Ce.data},Be=function(Ae){var Ee,Ce,_e,Te;for(Ae=ve.call(Ae);Ae.length%4;)Ae.push(0);for(_e=new ne(Ae),Ce=0,Ee=0,Te=Ae.length;Ee<Te;Ee=Ee+=4)Ce+=_e.readUInt32();return 4294967295&Ce},St}(),ae={}.hasOwnProperty,oe=function(Be,St){for(var Ae in St)ae.call(St,Ae)&&(Be[Ae]=St[Ae]);function Ee(){this.constructor=Be}return Ee.prototype=St.prototype,Be.prototype=new Ee,Be.__super__=St.prototype,Be};re=function(){function Be(St){var Ae;this.file=St,Ae=this.file.directory.tables[this.tag],this.exists=!!Ae,Ae&&(this.offset=Ae.offset,this.length=Ae.length,this.parse(this.file.contents))}return Be.prototype.parse=function(){},Be.prototype.encode=function(){},Be.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Be}();var se=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="head",St.prototype.parse=function(Ae){return Ae.pos=this.offset,this.version=Ae.readInt(),this.revision=Ae.readInt(),this.checkSumAdjustment=Ae.readInt(),this.magicNumber=Ae.readInt(),this.flags=Ae.readShort(),this.unitsPerEm=Ae.readShort(),this.created=Ae.readLongLong(),this.modified=Ae.readLongLong(),this.xMin=Ae.readShort(),this.yMin=Ae.readShort(),this.xMax=Ae.readShort(),this.yMax=Ae.readShort(),this.macStyle=Ae.readShort(),this.lowestRecPPEM=Ae.readShort(),this.fontDirectionHint=Ae.readShort(),this.indexToLocFormat=Ae.readShort(),this.glyphDataFormat=Ae.readShort()},St.prototype.encode=function(Ae){var Ee;return(Ee=new ne).writeInt(this.version),Ee.writeInt(this.revision),Ee.writeInt(this.checkSumAdjustment),Ee.writeInt(this.magicNumber),Ee.writeShort(this.flags),Ee.writeShort(this.unitsPerEm),Ee.writeLongLong(this.created),Ee.writeLongLong(this.modified),Ee.writeShort(this.xMin),Ee.writeShort(this.yMin),Ee.writeShort(this.xMax),Ee.writeShort(this.yMax),Ee.writeShort(this.macStyle),Ee.writeShort(this.lowestRecPPEM),Ee.writeShort(this.fontDirectionHint),Ee.writeShort(Ae),Ee.writeShort(this.glyphDataFormat),Ee.data},St}(),ce=function(){function Be(St,Ae){var Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e,Me,Re,ze,Ve,nr,Ze,ar,fr;switch(this.platformID=St.readUInt16(),this.encodingID=St.readShort(),this.offset=Ae+St.readInt(),$e=St.pos,St.pos=this.offset,this.format=St.readUInt16(),this.length=St.readUInt16(),this.language=St.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(xe=0;xe<256;++xe)this.codeMap[xe]=St.readByte();break;case 4:for(Re=St.readUInt16(),Me=Re/2,St.pos+=6,_e=function(){var Ye,Ar;for(Ar=[],xe=Ye=0;0<=Me?Ye<Me:Ye>Me;xe=0<=Me?++Ye:--Ye)Ar.push(St.readUInt16());return Ar}(),St.pos+=2,Ve=function(){var Ye,Ar;for(Ar=[],xe=Ye=0;0<=Me?Ye<Me:Ye>Me;xe=0<=Me?++Ye:--Ye)Ar.push(St.readUInt16());return Ar}(),Ie=function(){var Ye,Ar;for(Ar=[],xe=Ye=0;0<=Me?Ye<Me:Ye>Me;xe=0<=Me?++Ye:--Ye)Ar.push(St.readUInt16());return Ar}(),Ue=function(){var Ye,Ar;for(Ar=[],xe=Ye=0;0<=Me?Ye<Me:Ye>Me;xe=0<=Me?++Ye:--Ye)Ar.push(St.readUInt16());return Ar}(),Ce=(this.length-St.pos+this.offset)/2,Se=function(){var Ye,Ar;for(Ar=[],xe=Ye=0;0<=Ce?Ye<Ce:Ye>Ce;xe=0<=Ce?++Ye:--Ye)Ar.push(St.readUInt16());return Ar}(),xe=Ze=0,fr=_e.length;Ze<fr;xe=++Ze)for(nr=_e[xe],Ee=ar=ze=Ve[xe];ze<=nr?ar<=nr:ar>=nr;Ee=ze<=nr?++ar:--ar)Ue[xe]===0?Te=Ee+Ie[xe]:(Te=Se[Ue[xe]/2+(Ee-ze)-(Me-xe)]||0)!==0&&(Te+=Ie[xe]),this.codeMap[Ee]=65535&Te}St.pos=$e}return Be.encode=function(St,Ae){var Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e,Me,Re,ze,Ve,nr,Ze,ar,fr,Ye,Ar,Oe,Je,We,or,mr,er,ir,gr,vr,Or,Nr,Hr,Dr,kr,qr,An,lr,Tr,xr,$r,Qr,Jr,nn,en,Bn,Sn,Un;switch(vr=new ne,Te=Object.keys(St).sort(function(On,zn){return On-zn}),Ae){case"macroman":for(Ve=0,nr=function(){var On=[];for(ze=0;ze<256;++ze)On.push(0);return On}(),ar={0:0},_e={},Or=0,kr=Te.length;Or<kr;Or++)ar[en=St[Ce=Te[Or]]]==null&&(ar[en]=++Ve),_e[Ce]={old:St[Ce],new:ar[St[Ce]]},nr[Ce]=ar[St[Ce]];return vr.writeUInt16(1),vr.writeUInt16(0),vr.writeUInt32(12),vr.writeUInt16(0),vr.writeUInt16(262),vr.writeUInt16(0),vr.write(nr),{charMap:_e,subtable:vr.data,maxGlyphID:Ve+1};case"unicode":for(ir=[],$e=[],fr=0,ar={},Ee={},Ze=Ie=null,Nr=0,qr=Te.length;Nr<qr;Nr++)ar[Ar=St[Ce=Te[Nr]]]==null&&(ar[Ar]=++fr),Ee[Ce]={old:Ar,new:ar[Ar]},Se=ar[Ar]-Ce,Ze!=null&&Se===Ie||(Ze&&$e.push(Ze),ir.push(Ce),Ie=Se),Ze=Ce;for(Ze&&$e.push(Ze),$e.push(65535),ir.push(65535),mr=2*(or=ir.length),We=2*Math.pow(Math.log(or)/Math.LN2,2),Me=Math.log(We/2)/Math.LN2,Je=2*or-We,xe=[],Oe=[],Re=[],ze=Hr=0,An=ir.length;Hr<An;ze=++Hr){if(er=ir[ze],Ue=$e[ze],er===65535){xe.push(0),Oe.push(0);break}if(er-(gr=Ee[er].new)>=32768)for(xe.push(0),Oe.push(2*(Re.length+or-ze)),Ce=Dr=er;er<=Ue?Dr<=Ue:Dr>=Ue;Ce=er<=Ue?++Dr:--Dr)Re.push(Ee[Ce].new);else xe.push(gr-er),Oe.push(0)}for(vr.writeUInt16(3),vr.writeUInt16(1),vr.writeUInt32(12),vr.writeUInt16(4),vr.writeUInt16(16+8*or+2*Re.length),vr.writeUInt16(0),vr.writeUInt16(mr),vr.writeUInt16(We),vr.writeUInt16(Me),vr.writeUInt16(Je),Jr=0,lr=$e.length;Jr<lr;Jr++)Ce=$e[Jr],vr.writeUInt16(Ce);for(vr.writeUInt16(0),nn=0,Tr=ir.length;nn<Tr;nn++)Ce=ir[nn],vr.writeUInt16(Ce);for(Bn=0,xr=xe.length;Bn<xr;Bn++)Se=xe[Bn],vr.writeUInt16(Se);for(Sn=0,$r=Oe.length;Sn<$r;Sn++)Ye=Oe[Sn],vr.writeUInt16(Ye);for(Un=0,Qr=Re.length;Un<Qr;Un++)Ve=Re[Un],vr.writeUInt16(Ve);return{charMap:Ee,subtable:vr.data,maxGlyphID:fr+1}}},Be}(),ue=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="cmap",St.prototype.parse=function(Ae){var Ee,Ce,_e;for(Ae.pos=this.offset,this.version=Ae.readUInt16(),_e=Ae.readUInt16(),this.tables=[],this.unicode=null,Ce=0;0<=_e?Ce<_e:Ce>_e;Ce=0<=_e?++Ce:--Ce)Ee=new ce(Ae,this.offset),this.tables.push(Ee),Ee.isUnicode&&this.unicode==null&&(this.unicode=Ee);return!0},St.encode=function(Ae,Ee){var Ce,_e;return Ee==null&&(Ee="macroman"),Ce=ce.encode(Ae,Ee),(_e=new ne).writeUInt16(0),_e.writeUInt16(1),Ce.table=_e.data.concat(Ce.subtable),Ce},St}(),he=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="hhea",St.prototype.parse=function(Ae){return Ae.pos=this.offset,this.version=Ae.readInt(),this.ascender=Ae.readShort(),this.decender=Ae.readShort(),this.lineGap=Ae.readShort(),this.advanceWidthMax=Ae.readShort(),this.minLeftSideBearing=Ae.readShort(),this.minRightSideBearing=Ae.readShort(),this.xMaxExtent=Ae.readShort(),this.caretSlopeRise=Ae.readShort(),this.caretSlopeRun=Ae.readShort(),this.caretOffset=Ae.readShort(),Ae.pos+=8,this.metricDataFormat=Ae.readShort(),this.numberOfMetrics=Ae.readUInt16()},St}(),le=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="OS/2",St.prototype.parse=function(Ae){if(Ae.pos=this.offset,this.version=Ae.readUInt16(),this.averageCharWidth=Ae.readShort(),this.weightClass=Ae.readUInt16(),this.widthClass=Ae.readUInt16(),this.type=Ae.readShort(),this.ySubscriptXSize=Ae.readShort(),this.ySubscriptYSize=Ae.readShort(),this.ySubscriptXOffset=Ae.readShort(),this.ySubscriptYOffset=Ae.readShort(),this.ySuperscriptXSize=Ae.readShort(),this.ySuperscriptYSize=Ae.readShort(),this.ySuperscriptXOffset=Ae.readShort(),this.ySuperscriptYOffset=Ae.readShort(),this.yStrikeoutSize=Ae.readShort(),this.yStrikeoutPosition=Ae.readShort(),this.familyClass=Ae.readShort(),this.panose=function(){var Ee,Ce;for(Ce=[],Ee=0;Ee<10;++Ee)Ce.push(Ae.readByte());return Ce}(),this.charRange=function(){var Ee,Ce;for(Ce=[],Ee=0;Ee<4;++Ee)Ce.push(Ae.readInt());return Ce}(),this.vendorID=Ae.readString(4),this.selection=Ae.readShort(),this.firstCharIndex=Ae.readShort(),this.lastCharIndex=Ae.readShort(),this.version>0&&(this.ascent=Ae.readShort(),this.descent=Ae.readShort(),this.lineGap=Ae.readShort(),this.winAscent=Ae.readShort(),this.winDescent=Ae.readShort(),this.codePageRange=function(){var Ee,Ce;for(Ce=[],Ee=0;Ee<2;Ee=++Ee)Ce.push(Ae.readInt());return Ce}(),this.version>1))return this.xHeight=Ae.readShort(),this.capHeight=Ae.readShort(),this.defaultChar=Ae.readShort(),this.breakChar=Ae.readShort(),this.maxContext=Ae.readShort()},St}(),fe=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="post",St.prototype.parse=function(Ae){var Ee,Ce,_e;switch(Ae.pos=this.offset,this.format=Ae.readInt(),this.italicAngle=Ae.readInt(),this.underlinePosition=Ae.readShort(),this.underlineThickness=Ae.readShort(),this.isFixedPitch=Ae.readInt(),this.minMemType42=Ae.readInt(),this.maxMemType42=Ae.readInt(),this.minMemType1=Ae.readInt(),this.maxMemType1=Ae.readInt(),this.format){case 65536:break;case 131072:var Te;for(Ce=Ae.readUInt16(),this.glyphNameIndex=[],Te=0;0<=Ce?Te<Ce:Te>Ce;Te=0<=Ce?++Te:--Te)this.glyphNameIndex.push(Ae.readUInt16());for(this.names=[],_e=[];Ae.pos<this.offset+this.length;)Ee=Ae.readByte(),_e.push(this.names.push(Ae.readString(Ee)));return _e;case 151552:return Ce=Ae.readUInt16(),this.offsets=Ae.read(Ce);case 196608:break;case 262144:return this.map=(function(){var Se,xe,Ie;for(Ie=[],Te=Se=0,xe=this.file.maxp.numGlyphs;0<=xe?Se<xe:Se>xe;Te=0<=xe?++Se:--Se)Ie.push(Ae.readUInt32());return Ie}).call(this)}},St}(),de=function(Be,St){this.raw=Be,this.length=Be.length,this.platformID=St.platformID,this.encodingID=St.encodingID,this.languageID=St.languageID},pe=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="name",St.prototype.parse=function(Ae){var Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e,Me,Re;for(Ae.pos=this.offset,Ae.readShort(),Ee=Ae.readShort(),xe=Ae.readShort(),Ce=[],Te=0;0<=Ee?Te<Ee:Te>Ee;Te=0<=Ee?++Te:--Te)Ce.push({platformID:Ae.readShort(),encodingID:Ae.readShort(),languageID:Ae.readShort(),nameID:Ae.readShort(),length:Ae.readShort(),offset:this.offset+xe+Ae.readShort()});for(Ie={},Te=$e=0,Me=Ce.length;$e<Me;Te=++$e)_e=Ce[Te],Ae.pos=_e.offset,Ue=Ae.readString(_e.length),Se=new de(Ue,_e),Ie[Re=_e.nameID]==null&&(Ie[Re]=[]),Ie[_e.nameID].push(Se);this.strings=Ie,this.copyright=Ie[0],this.fontFamily=Ie[1],this.fontSubfamily=Ie[2],this.uniqueSubfamily=Ie[3],this.fontName=Ie[4],this.version=Ie[5];try{this.postscriptName=Ie[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=Ie[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ie[7],this.manufacturer=Ie[8],this.designer=Ie[9],this.description=Ie[10],this.vendorUrl=Ie[11],this.designerUrl=Ie[12],this.license=Ie[13],this.licenseUrl=Ie[14],this.preferredFamily=Ie[15],this.preferredSubfamily=Ie[17],this.compatibleFull=Ie[18],this.sampleText=Ie[19]},St}(),ge=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="maxp",St.prototype.parse=function(Ae){return Ae.pos=this.offset,this.version=Ae.readInt(),this.numGlyphs=Ae.readUInt16(),this.maxPoints=Ae.readUInt16(),this.maxContours=Ae.readUInt16(),this.maxCompositePoints=Ae.readUInt16(),this.maxComponentContours=Ae.readUInt16(),this.maxZones=Ae.readUInt16(),this.maxTwilightPoints=Ae.readUInt16(),this.maxStorage=Ae.readUInt16(),this.maxFunctionDefs=Ae.readUInt16(),this.maxInstructionDefs=Ae.readUInt16(),this.maxStackElements=Ae.readUInt16(),this.maxSizeOfInstructions=Ae.readUInt16(),this.maxComponentElements=Ae.readUInt16(),this.maxComponentDepth=Ae.readUInt16()},St}(),me=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="hmtx",St.prototype.parse=function(Ae){var Ee,Ce,_e,Te,Se,xe,Ie;for(Ae.pos=this.offset,this.metrics=[],Ee=0,xe=this.file.hhea.numberOfMetrics;0<=xe?Ee<xe:Ee>xe;Ee=0<=xe?++Ee:--Ee)this.metrics.push({advance:Ae.readUInt16(),lsb:Ae.readInt16()});for(_e=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Ue,$e;for($e=[],Ee=Ue=0;0<=_e?Ue<_e:Ue>_e;Ee=0<=_e?++Ue:--Ue)$e.push(Ae.readInt16());return $e}(),this.widths=(function(){var Ue,$e,Me,Re;for(Re=[],Ue=0,$e=(Me=this.metrics).length;Ue<$e;Ue++)Te=Me[Ue],Re.push(Te.advance);return Re}).call(this),Ce=this.widths[this.widths.length-1],Ie=[],Ee=Se=0;0<=_e?Se<_e:Se>_e;Ee=0<=_e?++Se:--Se)Ie.push(this.widths.push(Ce));return Ie},St.prototype.forGlyph=function(Ae){return Ae in this.metrics?this.metrics[Ae]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ae-this.metrics.length]}},St}(),ve=[].slice,be=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="glyf",St.prototype.parse=function(){return this.cache={}},St.prototype.glyphFor=function(Ae){var Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e,Me;return Ae in this.cache?this.cache[Ae]:(Te=this.file.loca,Ee=this.file.contents,Ce=Te.indexOf(Ae),(_e=Te.lengthOf(Ae))===0?this.cache[Ae]=null:(Ee.pos=this.offset+Ce,Se=(xe=new ne(Ee.read(_e))).readShort(),Ue=xe.readShort(),Me=xe.readShort(),Ie=xe.readShort(),$e=xe.readShort(),this.cache[Ae]=Se===-1?new we(xe,Ue,Me,Ie,$e):new ye(xe,Se,Ue,Me,Ie,$e),this.cache[Ae]))},St.prototype.encode=function(Ae,Ee,Ce){var _e,Te,Se,xe,Ie;for(Se=[],Te=[],xe=0,Ie=Ee.length;xe<Ie;xe++)_e=Ae[Ee[xe]],Te.push(Se.length),_e&&(Se=Se.concat(_e.encode(Ce)));return Te.push(Se.length),{table:Se,offsets:Te}},St}(),ye=function(){function Be(St,Ae,Ee,Ce,_e,Te){this.raw=St,this.numberOfContours=Ae,this.xMin=Ee,this.yMin=Ce,this.xMax=_e,this.yMax=Te,this.compound=!1}return Be.prototype.encode=function(){return this.raw.data},Be}(),we=function(){function Be(St,Ae,Ee,Ce,_e){var Te,Se;for(this.raw=St,this.xMin=Ae,this.yMin=Ee,this.xMax=Ce,this.yMax=_e,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Te=this.raw;Se=Te.readShort(),this.glyphOffsets.push(Te.pos),this.glyphIDs.push(Te.readUInt16()),32&Se;)Te.pos+=1&Se?4:2,128&Se?Te.pos+=8:64&Se?Te.pos+=4:8&Se&&(Te.pos+=2)}return Be.prototype.encode=function(){var St,Ae,Ee;for(Ae=new ne(ve.call(this.raw.data)),St=0,Ee=this.glyphIDs.length;St<Ee;++St)Ae.pos=this.glyphOffsets[St];return Ae.data},Be}(),Ne=function(Be){function St(){return St.__super__.constructor.apply(this,arguments)}return oe(St,re),St.prototype.tag="loca",St.prototype.parse=function(Ae){var Ee,Ce;return Ae.pos=this.offset,Ee=this.file.head.indexToLocFormat,this.offsets=Ee===0?(function(){var _e,Te;for(Te=[],Ce=0,_e=this.length;Ce<_e;Ce+=2)Te.push(2*Ae.readUInt16());return Te}).call(this):(function(){var _e,Te;for(Te=[],Ce=0,_e=this.length;Ce<_e;Ce+=4)Te.push(Ae.readUInt32());return Te}).call(this)},St.prototype.indexOf=function(Ae){return this.offsets[Ae]},St.prototype.lengthOf=function(Ae){return this.offsets[Ae+1]-this.offsets[Ae]},St.prototype.encode=function(Ae,Ee){for(var Ce=new Uint32Array(this.offsets.length),_e=0,Te=0,Se=0;Se<Ce.length;++Se)if(Ce[Se]=_e,Te<Ee.length&&Ee[Te]==Se){++Te,Ce[Se]=_e;var xe=this.offsets[Se],Ie=this.offsets[Se+1]-xe;Ie>0&&(_e+=Ie)}for(var Ue=new Array(4*Ce.length),$e=0;$e<Ce.length;++$e)Ue[4*$e+3]=255&Ce[$e],Ue[4*$e+2]=(65280&Ce[$e])>>8,Ue[4*$e+1]=(16711680&Ce[$e])>>16,Ue[4*$e]=(4278190080&Ce[$e])>>24;return Ue},St}(),Le=function(){function Be(St){this.font=St,this.subset={},this.unicodes={},this.next=33}return Be.prototype.generateCmap=function(){var St,Ae,Ee,Ce,_e;for(Ae in Ce=this.font.cmap.tables[0].codeMap,St={},_e=this.subset)Ee=_e[Ae],St[Ae]=Ce[Ee];return St},Be.prototype.glyphsFor=function(St){var Ae,Ee,Ce,_e,Te,Se,xe;for(Ce={},Te=0,Se=St.length;Te<Se;Te++)Ce[_e=St[Te]]=this.font.glyf.glyphFor(_e);for(_e in Ae=[],Ce)(Ee=Ce[_e])!=null&&Ee.compound&&Ae.push.apply(Ae,Ee.glyphIDs);if(Ae.length>0)for(_e in xe=this.glyphsFor(Ae))Ee=xe[_e],Ce[_e]=Ee;return Ce},Be.prototype.encode=function(St,Ae){var Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e,Me,Re,ze,Ve,nr,Ze;for(Ce in Ee=ue.encode(this.generateCmap(),"unicode"),Te=this.glyphsFor(St),Re={0:0},Ze=Ee.charMap)Re[(xe=Ze[Ce]).old]=xe.new;for(ze in Me=Ee.maxGlyphID,Te)ze in Re||(Re[ze]=Me++);return Ue=function(ar){var fr,Ye;for(fr in Ye={},ar)Ye[ar[fr]]=fr;return Ye}(Re),$e=Object.keys(Ue).sort(function(ar,fr){return ar-fr}),Ve=function(){var ar,fr,Ye;for(Ye=[],ar=0,fr=$e.length;ar<fr;ar++)Se=$e[ar],Ye.push(Ue[Se]);return Ye}(),_e=this.font.glyf.encode(Te,Ve,Re),Ie=this.font.loca.encode(_e.offsets,Ve),nr={cmap:this.font.cmap.raw(),glyf:_e.table,loca:Ie,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(Ae)},this.font.os2.exists&&(nr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(nr)},Be}();E$1.API.PDFObject=function(){var Be;function St(){}return Be=function(Ae,Ee){return(Array(Ee+1).join("0")+Ae).slice(-Ee)},St.convert=function(Ae){var Ee,Ce,_e,Te;if(Array.isArray(Ae))return"["+function(){var Se,xe,Ie;for(Ie=[],Se=0,xe=Ae.length;Se<xe;Se++)Ee=Ae[Se],Ie.push(St.convert(Ee));return Ie}().join(" ")+"]";if(typeof Ae=="string")return"/"+Ae;if(Ae!=null&&Ae.isString)return"("+Ae+")";if(Ae instanceof Date)return"(D:"+Be(Ae.getUTCFullYear(),4)+Be(Ae.getUTCMonth(),2)+Be(Ae.getUTCDate(),2)+Be(Ae.getUTCHours(),2)+Be(Ae.getUTCMinutes(),2)+Be(Ae.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ae)==="[object Object]"){for(Ce in _e=["<<"],Ae)Te=Ae[Ce],_e.push("/"+Ce+" "+St.convert(Te));return _e.push(">>"),_e.join(`
`)}return""+Ae},St}();/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
	Copyright (c) Microsoft Corporation.

	Permission to use, copy, modify, and/or distribute this software for any
	purpose with or without fee is hereby granted.

	THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
	REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
	INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
	LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
	OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	PERFORMANCE OF THIS SOFTWARE.
	***************************************************************************** */var extendStatics=function(Be,St){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ee){Ae.__proto__=Ee}||function(Ae,Ee){for(var Ce in Ee)Object.prototype.hasOwnProperty.call(Ee,Ce)&&(Ae[Ce]=Ee[Ce])},extendStatics(Be,St)};function __extends(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Class extends value "+String(St)+" is not a constructor or null");extendStatics(Be,St);function Ae(){this.constructor=Be}Be.prototype=St===null?Object.create(St):(Ae.prototype=St.prototype,new Ae)}var __assign=function(){return __assign=Object.assign||function(St){for(var Ae,Ee=1,Ce=arguments.length;Ee<Ce;Ee++){Ae=arguments[Ee];for(var _e in Ae)Object.prototype.hasOwnProperty.call(Ae,_e)&&(St[_e]=Ae[_e])}return St},__assign.apply(this,arguments)};function __awaiter(Be,St,Ae,Ee){function Ce(_e){return _e instanceof Ae?_e:new Ae(function(Te){Te(_e)})}return new(Ae||(Ae=Promise))(function(_e,Te){function Se(Ue){try{Ie(Ee.next(Ue))}catch($e){Te($e)}}function xe(Ue){try{Ie(Ee.throw(Ue))}catch($e){Te($e)}}function Ie(Ue){Ue.done?_e(Ue.value):Ce(Ue.value).then(Se,xe)}Ie((Ee=Ee.apply(Be,St||[])).next())})}function __generator(Be,St){var Ae={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},Ee,Ce,_e,Te;return Te={next:Se(0),throw:Se(1),return:Se(2)},typeof Symbol=="function"&&(Te[Symbol.iterator]=function(){return this}),Te;function Se(Ie){return function(Ue){return xe([Ie,Ue])}}function xe(Ie){if(Ee)throw new TypeError("Generator is already executing.");for(;Ae;)try{if(Ee=1,Ce&&(_e=Ie[0]&2?Ce.return:Ie[0]?Ce.throw||((_e=Ce.return)&&_e.call(Ce),0):Ce.next)&&!(_e=_e.call(Ce,Ie[1])).done)return _e;switch(Ce=0,_e&&(Ie=[Ie[0]&2,_e.value]),Ie[0]){case 0:case 1:_e=Ie;break;case 4:return Ae.label++,{value:Ie[1],done:!1};case 5:Ae.label++,Ce=Ie[1],Ie=[0];continue;case 7:Ie=Ae.ops.pop(),Ae.trys.pop();continue;default:if(_e=Ae.trys,!(_e=_e.length>0&&_e[_e.length-1])&&(Ie[0]===6||Ie[0]===2)){Ae=0;continue}if(Ie[0]===3&&(!_e||Ie[1]>_e[0]&&Ie[1]<_e[3])){Ae.label=Ie[1];break}if(Ie[0]===6&&Ae.label<_e[1]){Ae.label=_e[1],_e=Ie;break}if(_e&&Ae.label<_e[2]){Ae.label=_e[2],Ae.ops.push(Ie);break}_e[2]&&Ae.ops.pop(),Ae.trys.pop();continue}Ie=St.call(Be,Ae)}catch(Ue){Ie=[6,Ue],Ce=0}finally{Ee=_e=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}}function __spreadArray(Be,St,Ae){if(Ae||arguments.length===2)for(var Ee=0,Ce=St.length,_e;Ee<Ce;Ee++)(_e||!(Ee in St))&&(_e||(_e=Array.prototype.slice.call(St,0,Ee)),_e[Ee]=St[Ee]);return Be.concat(_e||St)}for(var Bounds=function(){function Be(St,Ae,Ee,Ce){this.left=St,this.top=Ae,this.width=Ee,this.height=Ce}return Be.prototype.add=function(St,Ae,Ee,Ce){return new Be(this.left+St,this.top+Ae,this.width+Ee,this.height+Ce)},Be.fromClientRect=function(St,Ae){return new Be(Ae.left+St.windowBounds.left,Ae.top+St.windowBounds.top,Ae.width,Ae.height)},Be.fromDOMRectList=function(St,Ae){var Ee=Array.from(Ae).find(function(Ce){return Ce.width!==0});return Ee?new Be(Ee.left+St.windowBounds.left,Ee.top+St.windowBounds.top,Ee.width,Ee.height):Be.EMPTY},Be.EMPTY=new Be(0,0,0,0),Be}(),parseBounds=function(Be,St){return Bounds.fromClientRect(Be,St.getBoundingClientRect())},parseDocumentSize=function(Be){var St=Be.body,Ae=Be.documentElement;if(!St||!Ae)throw new Error("Unable to get document size");var Ee=Math.max(Math.max(St.scrollWidth,Ae.scrollWidth),Math.max(St.offsetWidth,Ae.offsetWidth),Math.max(St.clientWidth,Ae.clientWidth)),Ce=Math.max(Math.max(St.scrollHeight,Ae.scrollHeight),Math.max(St.offsetHeight,Ae.offsetHeight),Math.max(St.clientHeight,Ae.clientHeight));return new Bounds(0,0,Ee,Ce)},toCodePoints$1=function(Be){for(var St=[],Ae=0,Ee=Be.length;Ae<Ee;){var Ce=Be.charCodeAt(Ae++);if(Ce>=55296&&Ce<=56319&&Ae<Ee){var _e=Be.charCodeAt(Ae++);(_e&64512)===56320?St.push(((Ce&1023)<<10)+(_e&1023)+65536):(St.push(Ce),Ae--)}else St.push(Ce)}return St},fromCodePoint$1=function(){for(var Be=[],St=0;St<arguments.length;St++)Be[St]=arguments[St];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Be);var Ae=Be.length;if(!Ae)return"";for(var Ee=[],Ce=-1,_e="";++Ce<Ae;){var Te=Be[Ce];Te<=65535?Ee.push(Te):(Te-=65536,Ee.push((Te>>10)+55296,Te%1024+56320)),(Ce+1===Ae||Ee.length>16384)&&(_e+=String.fromCharCode.apply(String,Ee),Ee.length=0)}return _e},chars$2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$2=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$2=0;i$2<chars$2.length;i$2++)lookup$2[chars$2.charCodeAt(i$2)]=i$2;for(var chars$1$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1$1=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$1$1=0;i$1$1<chars$1$1.length;i$1$1++)lookup$1$1[chars$1$1.charCodeAt(i$1$1)]=i$1$1;for(var decode$1=function(Be){var St=Be.length*.75,Ae=Be.length,Ee,Ce=0,_e,Te,Se,xe;Be[Be.length-1]==="="&&(St--,Be[Be.length-2]==="="&&St--);var Ie=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(St):new Array(St),Ue=Array.isArray(Ie)?Ie:new Uint8Array(Ie);for(Ee=0;Ee<Ae;Ee+=4)_e=lookup$1$1[Be.charCodeAt(Ee)],Te=lookup$1$1[Be.charCodeAt(Ee+1)],Se=lookup$1$1[Be.charCodeAt(Ee+2)],xe=lookup$1$1[Be.charCodeAt(Ee+3)],Ue[Ce++]=_e<<2|Te>>4,Ue[Ce++]=(Te&15)<<4|Se>>2,Ue[Ce++]=(Se&3)<<6|xe&63;return Ie},polyUint16Array$1=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=2)Ae.push(Be[Ee+1]<<8|Be[Ee]);return Ae},polyUint32Array$1=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=4)Ae.push(Be[Ee+3]<<24|Be[Ee+2]<<16|Be[Ee+1]<<8|Be[Ee]);return Ae},UTRIE2_SHIFT_2$1=5,UTRIE2_SHIFT_1$1=6+5,UTRIE2_INDEX_SHIFT$1=2,UTRIE2_SHIFT_1_2$1=UTRIE2_SHIFT_1$1-UTRIE2_SHIFT_2$1,UTRIE2_LSCP_INDEX_2_OFFSET$1=65536>>UTRIE2_SHIFT_2$1,UTRIE2_DATA_BLOCK_LENGTH$1=1<<UTRIE2_SHIFT_2$1,UTRIE2_DATA_MASK$1=UTRIE2_DATA_BLOCK_LENGTH$1-1,UTRIE2_LSCP_INDEX_2_LENGTH$1=1024>>UTRIE2_SHIFT_2$1,UTRIE2_INDEX_2_BMP_LENGTH$1=UTRIE2_LSCP_INDEX_2_OFFSET$1+UTRIE2_LSCP_INDEX_2_LENGTH$1,UTRIE2_UTF8_2B_INDEX_2_OFFSET$1=UTRIE2_INDEX_2_BMP_LENGTH$1,UTRIE2_UTF8_2B_INDEX_2_LENGTH$1=32,UTRIE2_INDEX_1_OFFSET$1=UTRIE2_UTF8_2B_INDEX_2_OFFSET$1+UTRIE2_UTF8_2B_INDEX_2_LENGTH$1,UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1=65536>>UTRIE2_SHIFT_1$1,UTRIE2_INDEX_2_BLOCK_LENGTH$1=1<<UTRIE2_SHIFT_1_2$1,UTRIE2_INDEX_2_MASK$1=UTRIE2_INDEX_2_BLOCK_LENGTH$1-1,slice16$1=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint16Array(Array.prototype.slice.call(Be,St,Ae))},slice32$1=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint32Array(Array.prototype.slice.call(Be,St,Ae))},createTrieFromBase64$1=function(Be,St){var Ae=decode$1(Be),Ee=Array.isArray(Ae)?polyUint32Array$1(Ae):new Uint32Array(Ae),Ce=Array.isArray(Ae)?polyUint16Array$1(Ae):new Uint16Array(Ae),_e=24,Te=slice16$1(Ce,_e/2,Ee[4]/2),Se=Ee[5]===2?slice16$1(Ce,(_e+Ee[4])/2):slice32$1(Ee,Math.ceil((_e+Ee[4])/4));return new Trie$1(Ee[0],Ee[1],Ee[2],Ee[3],Te,Se)},Trie$1=function(){function Be(St,Ae,Ee,Ce,_e,Te){this.initialValue=St,this.errorValue=Ae,this.highStart=Ee,this.highValueIndex=Ce,this.index=_e,this.data=Te}return Be.prototype.get=function(St){var Ae;if(St>=0){if(St<55296||St>56319&&St<=65535)return Ae=this.index[St>>UTRIE2_SHIFT_2$1],Ae=(Ae<<UTRIE2_INDEX_SHIFT$1)+(St&UTRIE2_DATA_MASK$1),this.data[Ae];if(St<=65535)return Ae=this.index[UTRIE2_LSCP_INDEX_2_OFFSET$1+(St-55296>>UTRIE2_SHIFT_2$1)],Ae=(Ae<<UTRIE2_INDEX_SHIFT$1)+(St&UTRIE2_DATA_MASK$1),this.data[Ae];if(St<this.highStart)return Ae=UTRIE2_INDEX_1_OFFSET$1-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1+(St>>UTRIE2_SHIFT_1$1),Ae=this.index[Ae],Ae+=St>>UTRIE2_SHIFT_2$1&UTRIE2_INDEX_2_MASK$1,Ae=this.index[Ae],Ae=(Ae<<UTRIE2_INDEX_SHIFT$1)+(St&UTRIE2_DATA_MASK$1),this.data[Ae];if(St<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Be}(),chars$3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$3=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$3=0;i$3<chars$3.length;i$3++)lookup$3[chars$3.charCodeAt(i$3)]=i$3;var base64$1="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",LETTER_NUMBER_MODIFIER=50,BK=1,CR$1=2,LF$1=3,CM=4,NL=5,WJ=7,ZW=8,GL=9,SP=10,ZWJ$1=11,B2=12,BA=13,BB=14,HY=15,CB=16,CL=17,CP=18,EX=19,IN=20,NS=21,OP=22,QU=23,IS=24,NU=25,PO=26,PR=27,SY=28,AI=29,AL=30,CJ=31,EB=32,EM=33,H2=34,H3=35,HL=36,ID=37,JL=38,JV=39,JT=40,RI$1=41,SA=42,XX=43,ea_OP=[9001,65288],BREAK_MANDATORY="!",BREAK_NOT_ALLOWED$1="×",BREAK_ALLOWED$1="÷",UnicodeTrie$1=createTrieFromBase64$1(base64$1),ALPHABETICS=[AL,HL],HARD_LINE_BREAKS=[BK,CR$1,LF$1,NL],SPACE$1=[SP,ZW],PREFIX_POSTFIX=[PR,PO],LINE_BREAKS=HARD_LINE_BREAKS.concat(SPACE$1),KOREAN_SYLLABLE_BLOCK=[JL,JV,JT,H2,H3],HYPHEN=[HY,BA],codePointsToCharacterClasses=function(Be,St){St===void 0&&(St="strict");var Ae=[],Ee=[],Ce=[];return Be.forEach(function(_e,Te){var Se=UnicodeTrie$1.get(_e);if(Se>LETTER_NUMBER_MODIFIER?(Ce.push(!0),Se-=LETTER_NUMBER_MODIFIER):Ce.push(!1),["normal","auto","loose"].indexOf(St)!==-1&&[8208,8211,12316,12448].indexOf(_e)!==-1)return Ee.push(Te),Ae.push(CB);if(Se===CM||Se===ZWJ$1){if(Te===0)return Ee.push(Te),Ae.push(AL);var xe=Ae[Te-1];return LINE_BREAKS.indexOf(xe)===-1?(Ee.push(Ee[Te-1]),Ae.push(xe)):(Ee.push(Te),Ae.push(AL))}if(Ee.push(Te),Se===CJ)return Ae.push(St==="strict"?NS:ID);if(Se===SA||Se===AI)return Ae.push(AL);if(Se===XX)return _e>=131072&&_e<=196605||_e>=196608&&_e<=262141?Ae.push(ID):Ae.push(AL);Ae.push(Se)}),[Ee,Ae,Ce]},isAdjacentWithSpaceIgnored=function(Be,St,Ae,Ee){var Ce=Ee[Ae];if(Array.isArray(Be)?Be.indexOf(Ce)!==-1:Be===Ce)for(var _e=Ae;_e<=Ee.length;){_e++;var Te=Ee[_e];if(Te===St)return!0;if(Te!==SP)break}if(Ce===SP)for(var _e=Ae;_e>0;){_e--;var Se=Ee[_e];if(Array.isArray(Be)?Be.indexOf(Se)!==-1:Be===Se)for(var xe=Ae;xe<=Ee.length;){xe++;var Te=Ee[xe];if(Te===St)return!0;if(Te!==SP)break}if(Se!==SP)break}return!1},previousNonSpaceClassType=function(Be,St){for(var Ae=Be;Ae>=0;){var Ee=St[Ae];if(Ee===SP)Ae--;else return Ee}return 0},_lineBreakAtIndex=function(Be,St,Ae,Ee,Ce){if(Ae[Ee]===0)return BREAK_NOT_ALLOWED$1;var _e=Ee-1;if(Array.isArray(Ce)&&Ce[_e]===!0)return BREAK_NOT_ALLOWED$1;var Te=_e-1,Se=_e+1,xe=St[_e],Ie=Te>=0?St[Te]:0,Ue=St[Se];if(xe===CR$1&&Ue===LF$1)return BREAK_NOT_ALLOWED$1;if(HARD_LINE_BREAKS.indexOf(xe)!==-1)return BREAK_MANDATORY;if(HARD_LINE_BREAKS.indexOf(Ue)!==-1||SPACE$1.indexOf(Ue)!==-1)return BREAK_NOT_ALLOWED$1;if(previousNonSpaceClassType(_e,St)===ZW)return BREAK_ALLOWED$1;if(UnicodeTrie$1.get(Be[_e])===ZWJ$1||(xe===EB||xe===EM)&&UnicodeTrie$1.get(Be[Se])===ZWJ$1||xe===WJ||Ue===WJ||xe===GL||[SP,BA,HY].indexOf(xe)===-1&&Ue===GL||[CL,CP,EX,IS,SY].indexOf(Ue)!==-1||previousNonSpaceClassType(_e,St)===OP||isAdjacentWithSpaceIgnored(QU,OP,_e,St)||isAdjacentWithSpaceIgnored([CL,CP],NS,_e,St)||isAdjacentWithSpaceIgnored(B2,B2,_e,St))return BREAK_NOT_ALLOWED$1;if(xe===SP)return BREAK_ALLOWED$1;if(xe===QU||Ue===QU)return BREAK_NOT_ALLOWED$1;if(Ue===CB||xe===CB)return BREAK_ALLOWED$1;if([BA,HY,NS].indexOf(Ue)!==-1||xe===BB||Ie===HL&&HYPHEN.indexOf(xe)!==-1||xe===SY&&Ue===HL||Ue===IN||ALPHABETICS.indexOf(Ue)!==-1&&xe===NU||ALPHABETICS.indexOf(xe)!==-1&&Ue===NU||xe===PR&&[ID,EB,EM].indexOf(Ue)!==-1||[ID,EB,EM].indexOf(xe)!==-1&&Ue===PO||ALPHABETICS.indexOf(xe)!==-1&&PREFIX_POSTFIX.indexOf(Ue)!==-1||PREFIX_POSTFIX.indexOf(xe)!==-1&&ALPHABETICS.indexOf(Ue)!==-1||[PR,PO].indexOf(xe)!==-1&&(Ue===NU||[OP,HY].indexOf(Ue)!==-1&&St[Se+1]===NU)||[OP,HY].indexOf(xe)!==-1&&Ue===NU||xe===NU&&[NU,SY,IS].indexOf(Ue)!==-1)return BREAK_NOT_ALLOWED$1;if([NU,SY,IS,CL,CP].indexOf(Ue)!==-1)for(var $e=_e;$e>=0;){var Me=St[$e];if(Me===NU)return BREAK_NOT_ALLOWED$1;if([SY,IS].indexOf(Me)!==-1)$e--;else break}if([PR,PO].indexOf(Ue)!==-1)for(var $e=[CL,CP].indexOf(xe)!==-1?Te:_e;$e>=0;){var Me=St[$e];if(Me===NU)return BREAK_NOT_ALLOWED$1;if([SY,IS].indexOf(Me)!==-1)$e--;else break}if(JL===xe&&[JL,JV,H2,H3].indexOf(Ue)!==-1||[JV,H2].indexOf(xe)!==-1&&[JV,JT].indexOf(Ue)!==-1||[JT,H3].indexOf(xe)!==-1&&Ue===JT||KOREAN_SYLLABLE_BLOCK.indexOf(xe)!==-1&&[IN,PO].indexOf(Ue)!==-1||KOREAN_SYLLABLE_BLOCK.indexOf(Ue)!==-1&&xe===PR||ALPHABETICS.indexOf(xe)!==-1&&ALPHABETICS.indexOf(Ue)!==-1||xe===IS&&ALPHABETICS.indexOf(Ue)!==-1||ALPHABETICS.concat(NU).indexOf(xe)!==-1&&Ue===OP&&ea_OP.indexOf(Be[Se])===-1||ALPHABETICS.concat(NU).indexOf(Ue)!==-1&&xe===CP)return BREAK_NOT_ALLOWED$1;if(xe===RI$1&&Ue===RI$1){for(var Re=Ae[_e],ze=1;Re>0&&(Re--,St[Re]===RI$1);)ze++;if(ze%2!==0)return BREAK_NOT_ALLOWED$1}return xe===EB&&Ue===EM?BREAK_NOT_ALLOWED$1:BREAK_ALLOWED$1},cssFormattedClasses=function(Be,St){St||(St={lineBreak:"normal",wordBreak:"normal"});var Ae=codePointsToCharacterClasses(Be,St.lineBreak),Ee=Ae[0],Ce=Ae[1],_e=Ae[2];(St.wordBreak==="break-all"||St.wordBreak==="break-word")&&(Ce=Ce.map(function(Se){return[NU,AL,SA].indexOf(Se)!==-1?ID:Se}));var Te=St.wordBreak==="keep-all"?_e.map(function(Se,xe){return Se&&Be[xe]>=19968&&Be[xe]<=40959}):void 0;return[Ee,Ce,Te]},Break=function(){function Be(St,Ae,Ee,Ce){this.codePoints=St,this.required=Ae===BREAK_MANDATORY,this.start=Ee,this.end=Ce}return Be.prototype.slice=function(){return fromCodePoint$1.apply(void 0,this.codePoints.slice(this.start,this.end))},Be}(),LineBreaker=function(Be,St){var Ae=toCodePoints$1(Be),Ee=cssFormattedClasses(Ae,St),Ce=Ee[0],_e=Ee[1],Te=Ee[2],Se=Ae.length,xe=0,Ie=0;return{next:function(){if(Ie>=Se)return{done:!0,value:null};for(var Ue=BREAK_NOT_ALLOWED$1;Ie<Se&&(Ue=_lineBreakAtIndex(Ae,_e,Ce,++Ie,Te))===BREAK_NOT_ALLOWED$1;);if(Ue!==BREAK_NOT_ALLOWED$1||Ie===Se){var $e=new Break(Ae,Ue,xe,Ie);return xe=Ie,{value:$e,done:!1}}return{done:!0,value:null}}}},FLAG_UNRESTRICTED=1,FLAG_ID=2,FLAG_INTEGER=4,FLAG_NUMBER=8,LINE_FEED=10,SOLIDUS=47,REVERSE_SOLIDUS=92,CHARACTER_TABULATION=9,SPACE=32,QUOTATION_MARK=34,EQUALS_SIGN=61,NUMBER_SIGN=35,DOLLAR_SIGN=36,PERCENTAGE_SIGN=37,APOSTROPHE=39,LEFT_PARENTHESIS=40,RIGHT_PARENTHESIS=41,LOW_LINE=95,HYPHEN_MINUS=45,EXCLAMATION_MARK=33,LESS_THAN_SIGN=60,GREATER_THAN_SIGN=62,COMMERCIAL_AT=64,LEFT_SQUARE_BRACKET=91,RIGHT_SQUARE_BRACKET=93,CIRCUMFLEX_ACCENT=61,LEFT_CURLY_BRACKET=123,QUESTION_MARK=63,RIGHT_CURLY_BRACKET=125,VERTICAL_LINE=124,TILDE=126,CONTROL=128,REPLACEMENT_CHARACTER=65533,ASTERISK=42,PLUS_SIGN=43,COMMA=44,COLON=58,SEMICOLON=59,FULL_STOP=46,NULL=0,BACKSPACE=8,LINE_TABULATION=11,SHIFT_OUT=14,INFORMATION_SEPARATOR_ONE=31,DELETE=127,EOF=-1,ZERO=48,a$1=97,e$1=101,f$1=102,u$1=117,z=122,A=65,E=69,F=70,U=85,Z=90,isDigit=function(Be){return Be>=ZERO&&Be<=57},isSurrogateCodePoint=function(Be){return Be>=55296&&Be<=57343},isHex=function(Be){return isDigit(Be)||Be>=A&&Be<=F||Be>=a$1&&Be<=f$1},isLowerCaseLetter=function(Be){return Be>=a$1&&Be<=z},isUpperCaseLetter=function(Be){return Be>=A&&Be<=Z},isLetter=function(Be){return isLowerCaseLetter(Be)||isUpperCaseLetter(Be)},isNonASCIICodePoint=function(Be){return Be>=CONTROL},isWhiteSpace=function(Be){return Be===LINE_FEED||Be===CHARACTER_TABULATION||Be===SPACE},isNameStartCodePoint=function(Be){return isLetter(Be)||isNonASCIICodePoint(Be)||Be===LOW_LINE},isNameCodePoint=function(Be){return isNameStartCodePoint(Be)||isDigit(Be)||Be===HYPHEN_MINUS},isNonPrintableCodePoint=function(Be){return Be>=NULL&&Be<=BACKSPACE||Be===LINE_TABULATION||Be>=SHIFT_OUT&&Be<=INFORMATION_SEPARATOR_ONE||Be===DELETE},isValidEscape=function(Be,St){return Be!==REVERSE_SOLIDUS?!1:St!==LINE_FEED},isIdentifierStart=function(Be,St,Ae){return Be===HYPHEN_MINUS?isNameStartCodePoint(St)||isValidEscape(St,Ae):isNameStartCodePoint(Be)?!0:!!(Be===REVERSE_SOLIDUS&&isValidEscape(Be,St))},isNumberStart=function(Be,St,Ae){return Be===PLUS_SIGN||Be===HYPHEN_MINUS?isDigit(St)?!0:St===FULL_STOP&&isDigit(Ae):isDigit(Be===FULL_STOP?St:Be)},stringToNumber=function(Be){var St=0,Ae=1;(Be[St]===PLUS_SIGN||Be[St]===HYPHEN_MINUS)&&(Be[St]===HYPHEN_MINUS&&(Ae=-1),St++);for(var Ee=[];isDigit(Be[St]);)Ee.push(Be[St++]);var Ce=Ee.length?parseInt(fromCodePoint$1.apply(void 0,Ee),10):0;Be[St]===FULL_STOP&&St++;for(var _e=[];isDigit(Be[St]);)_e.push(Be[St++]);var Te=_e.length,Se=Te?parseInt(fromCodePoint$1.apply(void 0,_e),10):0;(Be[St]===E||Be[St]===e$1)&&St++;var xe=1;(Be[St]===PLUS_SIGN||Be[St]===HYPHEN_MINUS)&&(Be[St]===HYPHEN_MINUS&&(xe=-1),St++);for(var Ie=[];isDigit(Be[St]);)Ie.push(Be[St++]);var Ue=Ie.length?parseInt(fromCodePoint$1.apply(void 0,Ie),10):0;return Ae*(Ce+Se*Math.pow(10,-Te))*Math.pow(10,xe*Ue)},LEFT_PARENTHESIS_TOKEN={type:2},RIGHT_PARENTHESIS_TOKEN={type:3},COMMA_TOKEN={type:4},SUFFIX_MATCH_TOKEN={type:13},PREFIX_MATCH_TOKEN={type:8},COLUMN_TOKEN={type:21},DASH_MATCH_TOKEN={type:9},INCLUDE_MATCH_TOKEN={type:10},LEFT_CURLY_BRACKET_TOKEN={type:11},RIGHT_CURLY_BRACKET_TOKEN={type:12},SUBSTRING_MATCH_TOKEN={type:14},BAD_URL_TOKEN={type:23},BAD_STRING_TOKEN={type:1},CDO_TOKEN={type:25},CDC_TOKEN={type:24},COLON_TOKEN={type:26},SEMICOLON_TOKEN={type:27},LEFT_SQUARE_BRACKET_TOKEN={type:28},RIGHT_SQUARE_BRACKET_TOKEN={type:29},WHITESPACE_TOKEN={type:31},EOF_TOKEN={type:32},Tokenizer=function(){function Be(){this._value=[]}return Be.prototype.write=function(St){this._value=this._value.concat(toCodePoints$1(St))},Be.prototype.read=function(){for(var St=[],Ae=this.consumeToken();Ae!==EOF_TOKEN;)St.push(Ae),Ae=this.consumeToken();return St},Be.prototype.consumeToken=function(){var St=this.consumeCodePoint();switch(St){case QUOTATION_MARK:return this.consumeStringToken(QUOTATION_MARK);case NUMBER_SIGN:var Ae=this.peekCodePoint(0),Ee=this.peekCodePoint(1),Ce=this.peekCodePoint(2);if(isNameCodePoint(Ae)||isValidEscape(Ee,Ce)){var _e=isIdentifierStart(Ae,Ee,Ce)?FLAG_ID:FLAG_UNRESTRICTED,Te=this.consumeName();return{type:5,value:Te,flags:_e}}break;case DOLLAR_SIGN:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),SUFFIX_MATCH_TOKEN;break;case APOSTROPHE:return this.consumeStringToken(APOSTROPHE);case LEFT_PARENTHESIS:return LEFT_PARENTHESIS_TOKEN;case RIGHT_PARENTHESIS:return RIGHT_PARENTHESIS_TOKEN;case ASTERISK:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),SUBSTRING_MATCH_TOKEN;break;case PLUS_SIGN:if(isNumberStart(St,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(St),this.consumeNumericToken();break;case COMMA:return COMMA_TOKEN;case HYPHEN_MINUS:var Se=St,xe=this.peekCodePoint(0),Ie=this.peekCodePoint(1);if(isNumberStart(Se,xe,Ie))return this.reconsumeCodePoint(St),this.consumeNumericToken();if(isIdentifierStart(Se,xe,Ie))return this.reconsumeCodePoint(St),this.consumeIdentLikeToken();if(xe===HYPHEN_MINUS&&Ie===GREATER_THAN_SIGN)return this.consumeCodePoint(),this.consumeCodePoint(),CDC_TOKEN;break;case FULL_STOP:if(isNumberStart(St,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(St),this.consumeNumericToken();break;case SOLIDUS:if(this.peekCodePoint(0)===ASTERISK)for(this.consumeCodePoint();;){var Ue=this.consumeCodePoint();if(Ue===ASTERISK&&(Ue=this.consumeCodePoint(),Ue===SOLIDUS))return this.consumeToken();if(Ue===EOF)return this.consumeToken()}break;case COLON:return COLON_TOKEN;case SEMICOLON:return SEMICOLON_TOKEN;case LESS_THAN_SIGN:if(this.peekCodePoint(0)===EXCLAMATION_MARK&&this.peekCodePoint(1)===HYPHEN_MINUS&&this.peekCodePoint(2)===HYPHEN_MINUS)return this.consumeCodePoint(),this.consumeCodePoint(),CDO_TOKEN;break;case COMMERCIAL_AT:var $e=this.peekCodePoint(0),Me=this.peekCodePoint(1),Re=this.peekCodePoint(2);if(isIdentifierStart($e,Me,Re)){var Te=this.consumeName();return{type:7,value:Te}}break;case LEFT_SQUARE_BRACKET:return LEFT_SQUARE_BRACKET_TOKEN;case REVERSE_SOLIDUS:if(isValidEscape(St,this.peekCodePoint(0)))return this.reconsumeCodePoint(St),this.consumeIdentLikeToken();break;case RIGHT_SQUARE_BRACKET:return RIGHT_SQUARE_BRACKET_TOKEN;case CIRCUMFLEX_ACCENT:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),PREFIX_MATCH_TOKEN;break;case LEFT_CURLY_BRACKET:return LEFT_CURLY_BRACKET_TOKEN;case RIGHT_CURLY_BRACKET:return RIGHT_CURLY_BRACKET_TOKEN;case u$1:case U:var ze=this.peekCodePoint(0),Ve=this.peekCodePoint(1);return ze===PLUS_SIGN&&(isHex(Ve)||Ve===QUESTION_MARK)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(St),this.consumeIdentLikeToken();case VERTICAL_LINE:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),DASH_MATCH_TOKEN;if(this.peekCodePoint(0)===VERTICAL_LINE)return this.consumeCodePoint(),COLUMN_TOKEN;break;case TILDE:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),INCLUDE_MATCH_TOKEN;break;case EOF:return EOF_TOKEN}return isWhiteSpace(St)?(this.consumeWhiteSpace(),WHITESPACE_TOKEN):isDigit(St)?(this.reconsumeCodePoint(St),this.consumeNumericToken()):isNameStartCodePoint(St)?(this.reconsumeCodePoint(St),this.consumeIdentLikeToken()):{type:6,value:fromCodePoint$1(St)}},Be.prototype.consumeCodePoint=function(){var St=this._value.shift();return typeof St>"u"?-1:St},Be.prototype.reconsumeCodePoint=function(St){this._value.unshift(St)},Be.prototype.peekCodePoint=function(St){return St>=this._value.length?-1:this._value[St]},Be.prototype.consumeUnicodeRangeToken=function(){for(var St=[],Ae=this.consumeCodePoint();isHex(Ae)&&St.length<6;)St.push(Ae),Ae=this.consumeCodePoint();for(var Ee=!1;Ae===QUESTION_MARK&&St.length<6;)St.push(Ae),Ae=this.consumeCodePoint(),Ee=!0;if(Ee){var Ce=parseInt(fromCodePoint$1.apply(void 0,St.map(function(xe){return xe===QUESTION_MARK?ZERO:xe})),16),_e=parseInt(fromCodePoint$1.apply(void 0,St.map(function(xe){return xe===QUESTION_MARK?F:xe})),16);return{type:30,start:Ce,end:_e}}var Te=parseInt(fromCodePoint$1.apply(void 0,St),16);if(this.peekCodePoint(0)===HYPHEN_MINUS&&isHex(this.peekCodePoint(1))){this.consumeCodePoint(),Ae=this.consumeCodePoint();for(var Se=[];isHex(Ae)&&Se.length<6;)Se.push(Ae),Ae=this.consumeCodePoint();var _e=parseInt(fromCodePoint$1.apply(void 0,Se),16);return{type:30,start:Te,end:_e}}else return{type:30,start:Te,end:Te}},Be.prototype.consumeIdentLikeToken=function(){var St=this.consumeName();return St.toLowerCase()==="url"&&this.peekCodePoint(0)===LEFT_PARENTHESIS?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===LEFT_PARENTHESIS?(this.consumeCodePoint(),{type:19,value:St}):{type:20,value:St}},Be.prototype.consumeUrlToken=function(){var St=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF)return{type:22,value:""};var Ae=this.peekCodePoint(0);if(Ae===APOSTROPHE||Ae===QUOTATION_MARK){var Ee=this.consumeStringToken(this.consumeCodePoint());return Ee.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF||this.peekCodePoint(0)===RIGHT_PARENTHESIS)?(this.consumeCodePoint(),{type:22,value:Ee.value}):(this.consumeBadUrlRemnants(),BAD_URL_TOKEN)}for(;;){var Ce=this.consumeCodePoint();if(Ce===EOF||Ce===RIGHT_PARENTHESIS)return{type:22,value:fromCodePoint$1.apply(void 0,St)};if(isWhiteSpace(Ce))return this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF||this.peekCodePoint(0)===RIGHT_PARENTHESIS?(this.consumeCodePoint(),{type:22,value:fromCodePoint$1.apply(void 0,St)}):(this.consumeBadUrlRemnants(),BAD_URL_TOKEN);if(Ce===QUOTATION_MARK||Ce===APOSTROPHE||Ce===LEFT_PARENTHESIS||isNonPrintableCodePoint(Ce))return this.consumeBadUrlRemnants(),BAD_URL_TOKEN;if(Ce===REVERSE_SOLIDUS)if(isValidEscape(Ce,this.peekCodePoint(0)))St.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),BAD_URL_TOKEN;else St.push(Ce)}},Be.prototype.consumeWhiteSpace=function(){for(;isWhiteSpace(this.peekCodePoint(0));)this.consumeCodePoint()},Be.prototype.consumeBadUrlRemnants=function(){for(;;){var St=this.consumeCodePoint();if(St===RIGHT_PARENTHESIS||St===EOF)return;isValidEscape(St,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Be.prototype.consumeStringSlice=function(St){for(var Ae=5e4,Ee="";St>0;){var Ce=Math.min(Ae,St);Ee+=fromCodePoint$1.apply(void 0,this._value.splice(0,Ce)),St-=Ce}return this._value.shift(),Ee},Be.prototype.consumeStringToken=function(St){var Ae="",Ee=0;do{var Ce=this._value[Ee];if(Ce===EOF||Ce===void 0||Ce===St)return Ae+=this.consumeStringSlice(Ee),{type:0,value:Ae};if(Ce===LINE_FEED)return this._value.splice(0,Ee),BAD_STRING_TOKEN;if(Ce===REVERSE_SOLIDUS){var _e=this._value[Ee+1];_e!==EOF&&_e!==void 0&&(_e===LINE_FEED?(Ae+=this.consumeStringSlice(Ee),Ee=-1,this._value.shift()):isValidEscape(Ce,_e)&&(Ae+=this.consumeStringSlice(Ee),Ae+=fromCodePoint$1(this.consumeEscapedCodePoint()),Ee=-1))}Ee++}while(!0)},Be.prototype.consumeNumber=function(){var St=[],Ae=FLAG_INTEGER,Ee=this.peekCodePoint(0);for((Ee===PLUS_SIGN||Ee===HYPHEN_MINUS)&&St.push(this.consumeCodePoint());isDigit(this.peekCodePoint(0));)St.push(this.consumeCodePoint());Ee=this.peekCodePoint(0);var Ce=this.peekCodePoint(1);if(Ee===FULL_STOP&&isDigit(Ce))for(St.push(this.consumeCodePoint(),this.consumeCodePoint()),Ae=FLAG_NUMBER;isDigit(this.peekCodePoint(0));)St.push(this.consumeCodePoint());Ee=this.peekCodePoint(0),Ce=this.peekCodePoint(1);var _e=this.peekCodePoint(2);if((Ee===E||Ee===e$1)&&((Ce===PLUS_SIGN||Ce===HYPHEN_MINUS)&&isDigit(_e)||isDigit(Ce)))for(St.push(this.consumeCodePoint(),this.consumeCodePoint()),Ae=FLAG_NUMBER;isDigit(this.peekCodePoint(0));)St.push(this.consumeCodePoint());return[stringToNumber(St),Ae]},Be.prototype.consumeNumericToken=function(){var St=this.consumeNumber(),Ae=St[0],Ee=St[1],Ce=this.peekCodePoint(0),_e=this.peekCodePoint(1),Te=this.peekCodePoint(2);if(isIdentifierStart(Ce,_e,Te)){var Se=this.consumeName();return{type:15,number:Ae,flags:Ee,unit:Se}}return Ce===PERCENTAGE_SIGN?(this.consumeCodePoint(),{type:16,number:Ae,flags:Ee}):{type:17,number:Ae,flags:Ee}},Be.prototype.consumeEscapedCodePoint=function(){var St=this.consumeCodePoint();if(isHex(St)){for(var Ae=fromCodePoint$1(St);isHex(this.peekCodePoint(0))&&Ae.length<6;)Ae+=fromCodePoint$1(this.consumeCodePoint());isWhiteSpace(this.peekCodePoint(0))&&this.consumeCodePoint();var Ee=parseInt(Ae,16);return Ee===0||isSurrogateCodePoint(Ee)||Ee>1114111?REPLACEMENT_CHARACTER:Ee}return St===EOF?REPLACEMENT_CHARACTER:St},Be.prototype.consumeName=function(){for(var St="";;){var Ae=this.consumeCodePoint();if(isNameCodePoint(Ae))St+=fromCodePoint$1(Ae);else if(isValidEscape(Ae,this.peekCodePoint(0)))St+=fromCodePoint$1(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ae),St}},Be}(),Parser$1=function(){function Be(St){this._tokens=St}return Be.create=function(St){var Ae=new Tokenizer;return Ae.write(St),new Be(Ae.read())},Be.parseValue=function(St){return Be.create(St).parseComponentValue()},Be.parseValues=function(St){return Be.create(St).parseComponentValues()},Be.prototype.parseComponentValue=function(){for(var St=this.consumeToken();St.type===31;)St=this.consumeToken();if(St.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(St);var Ae=this.consumeComponentValue();do St=this.consumeToken();while(St.type===31);if(St.type===32)return Ae;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Be.prototype.parseComponentValues=function(){for(var St=[];;){var Ae=this.consumeComponentValue();if(Ae.type===32)return St;St.push(Ae),St.push()}},Be.prototype.consumeComponentValue=function(){var St=this.consumeToken();switch(St.type){case 11:case 28:case 2:return this.consumeSimpleBlock(St.type);case 19:return this.consumeFunction(St)}return St},Be.prototype.consumeSimpleBlock=function(St){for(var Ae={type:St,values:[]},Ee=this.consumeToken();;){if(Ee.type===32||isEndingTokenFor(Ee,St))return Ae;this.reconsumeToken(Ee),Ae.values.push(this.consumeComponentValue()),Ee=this.consumeToken()}},Be.prototype.consumeFunction=function(St){for(var Ae={name:St.value,values:[],type:18};;){var Ee=this.consumeToken();if(Ee.type===32||Ee.type===3)return Ae;this.reconsumeToken(Ee),Ae.values.push(this.consumeComponentValue())}},Be.prototype.consumeToken=function(){var St=this._tokens.shift();return typeof St>"u"?EOF_TOKEN:St},Be.prototype.reconsumeToken=function(St){this._tokens.unshift(St)},Be}(),isDimensionToken=function(Be){return Be.type===15},isNumberToken=function(Be){return Be.type===17},isIdentToken=function(Be){return Be.type===20},isStringToken=function(Be){return Be.type===0},isIdentWithValue=function(Be,St){return isIdentToken(Be)&&Be.value===St},nonWhiteSpace=function(Be){return Be.type!==31},nonFunctionArgSeparator=function(Be){return Be.type!==31&&Be.type!==4},parseFunctionArgs=function(Be){var St=[],Ae=[];return Be.forEach(function(Ee){if(Ee.type===4){if(Ae.length===0)throw new Error("Error parsing function args, zero tokens for arg");St.push(Ae),Ae=[];return}Ee.type!==31&&Ae.push(Ee)}),Ae.length&&St.push(Ae),St},isEndingTokenFor=function(Be,St){return St===11&&Be.type===12||St===28&&Be.type===29?!0:St===2&&Be.type===3},isLength=function(Be){return Be.type===17||Be.type===15},isLengthPercentage=function(Be){return Be.type===16||isLength(Be)},parseLengthPercentageTuple=function(Be){return Be.length>1?[Be[0],Be[1]]:[Be[0]]},ZERO_LENGTH={type:17,number:0,flags:FLAG_INTEGER},FIFTY_PERCENT={type:16,number:50,flags:FLAG_INTEGER},HUNDRED_PERCENT={type:16,number:100,flags:FLAG_INTEGER},getAbsoluteValueForTuple=function(Be,St,Ae){var Ee=Be[0],Ce=Be[1];return[getAbsoluteValue(Ee,St),getAbsoluteValue(typeof Ce<"u"?Ce:Ee,Ae)]},getAbsoluteValue=function(Be,St){if(Be.type===16)return Be.number/100*St;if(isDimensionToken(Be))switch(Be.unit){case"rem":case"em":return 16*Be.number;case"px":default:return Be.number}return Be.number},DEG="deg",GRAD="grad",RAD="rad",TURN="turn",angle={name:"angle",parse:function(Be,St){if(St.type===15)switch(St.unit){case DEG:return Math.PI*St.number/180;case GRAD:return Math.PI/200*St.number;case RAD:return St.number;case TURN:return Math.PI*2*St.number}throw new Error("Unsupported angle type")}},isAngle=function(Be){return Be.type===15&&(Be.unit===DEG||Be.unit===GRAD||Be.unit===RAD||Be.unit===TURN)},parseNamedSide=function(Be){var St=Be.filter(isIdentToken).map(function(Ae){return Ae.value}).join(" ");switch(St){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ZERO_LENGTH,ZERO_LENGTH];case"to top":case"bottom":return deg(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ZERO_LENGTH,HUNDRED_PERCENT];case"to right":case"left":return deg(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[HUNDRED_PERCENT,HUNDRED_PERCENT];case"to bottom":case"top":return deg(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[HUNDRED_PERCENT,ZERO_LENGTH];case"to left":case"right":return deg(270)}return 0},deg=function(Be){return Math.PI*Be/180},color$1={name:"color",parse:function(Be,St){if(St.type===18){var Ae=SUPPORTED_COLOR_FUNCTIONS[St.name];if(typeof Ae>"u")throw new Error('Attempting to parse an unsupported color function "'+St.name+'"');return Ae(Be,St.values)}if(St.type===5){if(St.value.length===3){var Ee=St.value.substring(0,1),Ce=St.value.substring(1,2),_e=St.value.substring(2,3);return pack(parseInt(Ee+Ee,16),parseInt(Ce+Ce,16),parseInt(_e+_e,16),1)}if(St.value.length===4){var Ee=St.value.substring(0,1),Ce=St.value.substring(1,2),_e=St.value.substring(2,3),Te=St.value.substring(3,4);return pack(parseInt(Ee+Ee,16),parseInt(Ce+Ce,16),parseInt(_e+_e,16),parseInt(Te+Te,16)/255)}if(St.value.length===6){var Ee=St.value.substring(0,2),Ce=St.value.substring(2,4),_e=St.value.substring(4,6);return pack(parseInt(Ee,16),parseInt(Ce,16),parseInt(_e,16),1)}if(St.value.length===8){var Ee=St.value.substring(0,2),Ce=St.value.substring(2,4),_e=St.value.substring(4,6),Te=St.value.substring(6,8);return pack(parseInt(Ee,16),parseInt(Ce,16),parseInt(_e,16),parseInt(Te,16)/255)}}if(St.type===20){var Se=COLORS[St.value.toUpperCase()];if(typeof Se<"u")return Se}return COLORS.TRANSPARENT}},isTransparent=function(Be){return(255&Be)===0},asString=function(Be){var St=255&Be,Ae=255&Be>>8,Ee=255&Be>>16,Ce=255&Be>>24;return St<255?"rgba("+Ce+","+Ee+","+Ae+","+St/255+")":"rgb("+Ce+","+Ee+","+Ae+")"},pack=function(Be,St,Ae,Ee){return(Be<<24|St<<16|Ae<<8|Math.round(Ee*255)<<0)>>>0},getTokenColorValue=function(Be,St){if(Be.type===17)return Be.number;if(Be.type===16){var Ae=St===3?1:255;return St===3?Be.number/100*Ae:Math.round(Be.number/100*Ae)}return 0},rgb=function(Be,St){var Ae=St.filter(nonFunctionArgSeparator);if(Ae.length===3){var Ee=Ae.map(getTokenColorValue),Ce=Ee[0],_e=Ee[1],Te=Ee[2];return pack(Ce,_e,Te,1)}if(Ae.length===4){var Se=Ae.map(getTokenColorValue),Ce=Se[0],_e=Se[1],Te=Se[2],xe=Se[3];return pack(Ce,_e,Te,xe)}return 0};function hue2rgb(Be,St,Ae){return Ae<0&&(Ae+=1),Ae>=1&&(Ae-=1),Ae<1/6?(St-Be)*Ae*6+Be:Ae<1/2?St:Ae<2/3?(St-Be)*6*(2/3-Ae)+Be:Be}var hsl=function(Be,St){var Ae=St.filter(nonFunctionArgSeparator),Ee=Ae[0],Ce=Ae[1],_e=Ae[2],Te=Ae[3],Se=(Ee.type===17?deg(Ee.number):angle.parse(Be,Ee))/(Math.PI*2),xe=isLengthPercentage(Ce)?Ce.number/100:0,Ie=isLengthPercentage(_e)?_e.number/100:0,Ue=typeof Te<"u"&&isLengthPercentage(Te)?getAbsoluteValue(Te,1):1;if(xe===0)return pack(Ie*255,Ie*255,Ie*255,1);var $e=Ie<=.5?Ie*(xe+1):Ie+xe-Ie*xe,Me=Ie*2-$e,Re=hue2rgb(Me,$e,Se+1/3),ze=hue2rgb(Me,$e,Se),Ve=hue2rgb(Me,$e,Se-1/3);return pack(Re*255,ze*255,Ve*255,Ue)},SUPPORTED_COLOR_FUNCTIONS={hsl,hsla:hsl,rgb,rgba:rgb},parseColor=function(Be,St){return color$1.parse(Be,Parser$1.create(St).parseComponentValue())},COLORS={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},backgroundClip={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Be,St){return St.map(function(Ae){if(isIdentToken(Ae))switch(Ae.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},backgroundColor={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},parseColorStop=function(Be,St){var Ae=color$1.parse(Be,St[0]),Ee=St[1];return Ee&&isLengthPercentage(Ee)?{color:Ae,stop:Ee}:{color:Ae,stop:null}},processColorStops=function(Be,St){var Ae=Be[0],Ee=Be[Be.length-1];Ae.stop===null&&(Ae.stop=ZERO_LENGTH),Ee.stop===null&&(Ee.stop=HUNDRED_PERCENT);for(var Ce=[],_e=0,Te=0;Te<Be.length;Te++){var Se=Be[Te].stop;if(Se!==null){var xe=getAbsoluteValue(Se,St);xe>_e?Ce.push(xe):Ce.push(_e),_e=xe}else Ce.push(null)}for(var Ie=null,Te=0;Te<Ce.length;Te++){var Ue=Ce[Te];if(Ue===null)Ie===null&&(Ie=Te);else if(Ie!==null){for(var $e=Te-Ie,Me=Ce[Ie-1],Re=(Ue-Me)/($e+1),ze=1;ze<=$e;ze++)Ce[Ie+ze-1]=Re*ze;Ie=null}}return Be.map(function(Ve,nr){var Ze=Ve.color;return{color:Ze,stop:Math.max(Math.min(1,Ce[nr]/St),0)}})},getAngleFromCorner=function(Be,St,Ae){var Ee=St/2,Ce=Ae/2,_e=getAbsoluteValue(Be[0],St)-Ee,Te=Ce-getAbsoluteValue(Be[1],Ae);return(Math.atan2(Te,_e)+Math.PI*2)%(Math.PI*2)},calculateGradientDirection=function(Be,St,Ae){var Ee=typeof Be=="number"?Be:getAngleFromCorner(Be,St,Ae),Ce=Math.abs(St*Math.sin(Ee))+Math.abs(Ae*Math.cos(Ee)),_e=St/2,Te=Ae/2,Se=Ce/2,xe=Math.sin(Ee-Math.PI/2)*Se,Ie=Math.cos(Ee-Math.PI/2)*Se;return[Ce,_e-Ie,_e+Ie,Te-xe,Te+xe]},distance=function(Be,St){return Math.sqrt(Be*Be+St*St)},findCorner=function(Be,St,Ae,Ee,Ce){var _e=[[0,0],[0,St],[Be,0],[Be,St]];return _e.reduce(function(Te,Se){var xe=Se[0],Ie=Se[1],Ue=distance(Ae-xe,Ee-Ie);return(Ce?Ue<Te.optimumDistance:Ue>Te.optimumDistance)?{optimumCorner:Se,optimumDistance:Ue}:Te},{optimumDistance:Ce?1/0:-1/0,optimumCorner:null}).optimumCorner},calculateRadius=function(Be,St,Ae,Ee,Ce){var _e=0,Te=0;switch(Be.size){case 0:Be.shape===0?_e=Te=Math.min(Math.abs(St),Math.abs(St-Ee),Math.abs(Ae),Math.abs(Ae-Ce)):Be.shape===1&&(_e=Math.min(Math.abs(St),Math.abs(St-Ee)),Te=Math.min(Math.abs(Ae),Math.abs(Ae-Ce)));break;case 2:if(Be.shape===0)_e=Te=Math.min(distance(St,Ae),distance(St,Ae-Ce),distance(St-Ee,Ae),distance(St-Ee,Ae-Ce));else if(Be.shape===1){var Se=Math.min(Math.abs(Ae),Math.abs(Ae-Ce))/Math.min(Math.abs(St),Math.abs(St-Ee)),xe=findCorner(Ee,Ce,St,Ae,!0),Ie=xe[0],Ue=xe[1];_e=distance(Ie-St,(Ue-Ae)/Se),Te=Se*_e}break;case 1:Be.shape===0?_e=Te=Math.max(Math.abs(St),Math.abs(St-Ee),Math.abs(Ae),Math.abs(Ae-Ce)):Be.shape===1&&(_e=Math.max(Math.abs(St),Math.abs(St-Ee)),Te=Math.max(Math.abs(Ae),Math.abs(Ae-Ce)));break;case 3:if(Be.shape===0)_e=Te=Math.max(distance(St,Ae),distance(St,Ae-Ce),distance(St-Ee,Ae),distance(St-Ee,Ae-Ce));else if(Be.shape===1){var Se=Math.max(Math.abs(Ae),Math.abs(Ae-Ce))/Math.max(Math.abs(St),Math.abs(St-Ee)),$e=findCorner(Ee,Ce,St,Ae,!1),Ie=$e[0],Ue=$e[1];_e=distance(Ie-St,(Ue-Ae)/Se),Te=Se*_e}break}return Array.isArray(Be.size)&&(_e=getAbsoluteValue(Be.size[0],Ee),Te=Be.size.length===2?getAbsoluteValue(Be.size[1],Ce):_e),[_e,Te]},linearGradient=function(Be,St){var Ae=deg(180),Ee=[];return parseFunctionArgs(St).forEach(function(Ce,_e){if(_e===0){var Te=Ce[0];if(Te.type===20&&Te.value==="to"){Ae=parseNamedSide(Ce);return}else if(isAngle(Te)){Ae=angle.parse(Be,Te);return}}var Se=parseColorStop(Be,Ce);Ee.push(Se)}),{angle:Ae,stops:Ee,type:1}},prefixLinearGradient=function(Be,St){var Ae=deg(180),Ee=[];return parseFunctionArgs(St).forEach(function(Ce,_e){if(_e===0){var Te=Ce[0];if(Te.type===20&&["top","left","right","bottom"].indexOf(Te.value)!==-1){Ae=parseNamedSide(Ce);return}else if(isAngle(Te)){Ae=(angle.parse(Be,Te)+deg(270))%deg(360);return}}var Se=parseColorStop(Be,Ce);Ee.push(Se)}),{angle:Ae,stops:Ee,type:1}},webkitGradient=function(Be,St){var Ae=deg(180),Ee=[],Ce=1,_e=0,Te=3,Se=[];return parseFunctionArgs(St).forEach(function(xe,Ie){var Ue=xe[0];if(Ie===0){if(isIdentToken(Ue)&&Ue.value==="linear"){Ce=1;return}else if(isIdentToken(Ue)&&Ue.value==="radial"){Ce=2;return}}if(Ue.type===18){if(Ue.name==="from"){var $e=color$1.parse(Be,Ue.values[0]);Ee.push({stop:ZERO_LENGTH,color:$e})}else if(Ue.name==="to"){var $e=color$1.parse(Be,Ue.values[0]);Ee.push({stop:HUNDRED_PERCENT,color:$e})}else if(Ue.name==="color-stop"){var Me=Ue.values.filter(nonFunctionArgSeparator);if(Me.length===2){var $e=color$1.parse(Be,Me[1]),Re=Me[0];isNumberToken(Re)&&Ee.push({stop:{type:16,number:Re.number*100,flags:Re.flags},color:$e})}}}}),Ce===1?{angle:(Ae+deg(180))%deg(360),stops:Ee,type:Ce}:{size:Te,shape:_e,stops:Ee,position:Se,type:Ce}},CLOSEST_SIDE="closest-side",FARTHEST_SIDE="farthest-side",CLOSEST_CORNER="closest-corner",FARTHEST_CORNER="farthest-corner",CIRCLE="circle",ELLIPSE="ellipse",COVER="cover",CONTAIN="contain",radialGradient=function(Be,St){var Ae=0,Ee=3,Ce=[],_e=[];return parseFunctionArgs(St).forEach(function(Te,Se){var xe=!0;if(Se===0){var Ie=!1;xe=Te.reduce(function($e,Me){if(Ie)if(isIdentToken(Me))switch(Me.value){case"center":return _e.push(FIFTY_PERCENT),$e;case"top":case"left":return _e.push(ZERO_LENGTH),$e;case"right":case"bottom":return _e.push(HUNDRED_PERCENT),$e}else(isLengthPercentage(Me)||isLength(Me))&&_e.push(Me);else if(isIdentToken(Me))switch(Me.value){case CIRCLE:return Ae=0,!1;case ELLIPSE:return Ae=1,!1;case"at":return Ie=!0,!1;case CLOSEST_SIDE:return Ee=0,!1;case COVER:case FARTHEST_SIDE:return Ee=1,!1;case CONTAIN:case CLOSEST_CORNER:return Ee=2,!1;case FARTHEST_CORNER:return Ee=3,!1}else if(isLength(Me)||isLengthPercentage(Me))return Array.isArray(Ee)||(Ee=[]),Ee.push(Me),!1;return $e},xe)}if(xe){var Ue=parseColorStop(Be,Te);Ce.push(Ue)}}),{size:Ee,shape:Ae,stops:Ce,position:_e,type:2}},prefixRadialGradient=function(Be,St){var Ae=0,Ee=3,Ce=[],_e=[];return parseFunctionArgs(St).forEach(function(Te,Se){var xe=!0;if(Se===0?xe=Te.reduce(function(Ue,$e){if(isIdentToken($e))switch($e.value){case"center":return _e.push(FIFTY_PERCENT),!1;case"top":case"left":return _e.push(ZERO_LENGTH),!1;case"right":case"bottom":return _e.push(HUNDRED_PERCENT),!1}else if(isLengthPercentage($e)||isLength($e))return _e.push($e),!1;return Ue},xe):Se===1&&(xe=Te.reduce(function(Ue,$e){if(isIdentToken($e))switch($e.value){case CIRCLE:return Ae=0,!1;case ELLIPSE:return Ae=1,!1;case CONTAIN:case CLOSEST_SIDE:return Ee=0,!1;case FARTHEST_SIDE:return Ee=1,!1;case CLOSEST_CORNER:return Ee=2,!1;case COVER:case FARTHEST_CORNER:return Ee=3,!1}else if(isLength($e)||isLengthPercentage($e))return Array.isArray(Ee)||(Ee=[]),Ee.push($e),!1;return Ue},xe)),xe){var Ie=parseColorStop(Be,Te);Ce.push(Ie)}}),{size:Ee,shape:Ae,stops:Ce,position:_e,type:2}},isLinearGradient=function(Be){return Be.type===1},isRadialGradient=function(Be){return Be.type===2},image={name:"image",parse:function(Be,St){if(St.type===22){var Ae={url:St.value,type:0};return Be.cache.addImage(St.value),Ae}if(St.type===18){var Ee=SUPPORTED_IMAGE_FUNCTIONS[St.name];if(typeof Ee>"u")throw new Error('Attempting to parse an unsupported image function "'+St.name+'"');return Ee(Be,St.values)}throw new Error("Unsupported image type "+St.type)}};function isSupportedImage(Be){return!(Be.type===20&&Be.value==="none")&&(Be.type!==18||!!SUPPORTED_IMAGE_FUNCTIONS[Be.name])}var SUPPORTED_IMAGE_FUNCTIONS={"linear-gradient":linearGradient,"-moz-linear-gradient":prefixLinearGradient,"-ms-linear-gradient":prefixLinearGradient,"-o-linear-gradient":prefixLinearGradient,"-webkit-linear-gradient":prefixLinearGradient,"radial-gradient":radialGradient,"-moz-radial-gradient":prefixRadialGradient,"-ms-radial-gradient":prefixRadialGradient,"-o-radial-gradient":prefixRadialGradient,"-webkit-radial-gradient":prefixRadialGradient,"-webkit-gradient":webkitGradient},backgroundImage={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){if(St.length===0)return[];var Ae=St[0];return Ae.type===20&&Ae.value==="none"?[]:St.filter(function(Ee){return nonFunctionArgSeparator(Ee)&&isSupportedImage(Ee)}).map(function(Ee){return image.parse(Be,Ee)})}},backgroundOrigin={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Be,St){return St.map(function(Ae){if(isIdentToken(Ae))switch(Ae.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},backgroundPosition={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Be,St){return parseFunctionArgs(St).map(function(Ae){return Ae.filter(isLengthPercentage)}).map(parseLengthPercentageTuple)}},backgroundRepeat={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Be,St){return parseFunctionArgs(St).map(function(Ae){return Ae.filter(isIdentToken).map(function(Ee){return Ee.value}).join(" ")}).map(parseBackgroundRepeat)}},parseBackgroundRepeat=function(Be){switch(Be){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},BACKGROUND_SIZE;(function(Be){Be.AUTO="auto",Be.CONTAIN="contain",Be.COVER="cover"})(BACKGROUND_SIZE||(BACKGROUND_SIZE={}));var backgroundSize={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Be,St){return parseFunctionArgs(St).map(function(Ae){return Ae.filter(isBackgroundSizeInfoToken)})}},isBackgroundSizeInfoToken=function(Be){return isIdentToken(Be)||isLengthPercentage(Be)},borderColorForSide=function(Be){return{name:"border-"+Be+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},borderTopColor=borderColorForSide("top"),borderRightColor=borderColorForSide("right"),borderBottomColor=borderColorForSide("bottom"),borderLeftColor=borderColorForSide("left"),borderRadiusForSide=function(Be){return{name:"border-radius-"+Be,initialValue:"0 0",prefix:!1,type:1,parse:function(St,Ae){return parseLengthPercentageTuple(Ae.filter(isLengthPercentage))}}},borderTopLeftRadius=borderRadiusForSide("top-left"),borderTopRightRadius=borderRadiusForSide("top-right"),borderBottomRightRadius=borderRadiusForSide("bottom-right"),borderBottomLeftRadius=borderRadiusForSide("bottom-left"),borderStyleForSide=function(Be){return{name:"border-"+Be+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(St,Ae){switch(Ae){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},borderTopStyle=borderStyleForSide("top"),borderRightStyle=borderStyleForSide("right"),borderBottomStyle=borderStyleForSide("bottom"),borderLeftStyle=borderStyleForSide("left"),borderWidthForSide=function(Be){return{name:"border-"+Be+"-width",initialValue:"0",type:0,prefix:!1,parse:function(St,Ae){return isDimensionToken(Ae)?Ae.number:0}}},borderTopWidth=borderWidthForSide("top"),borderRightWidth=borderWidthForSide("right"),borderBottomWidth=borderWidthForSide("bottom"),borderLeftWidth=borderWidthForSide("left"),color={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},direction={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Be,St){switch(St){case"rtl":return 1;case"ltr":default:return 0}}},display={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Be,St){return St.filter(isIdentToken).reduce(function(Ae,Ee){return Ae|parseDisplayValue(Ee.value)},0)}},parseDisplayValue=function(Be){switch(Be){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},float={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},letterSpacing={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Be,St){return St.type===20&&St.value==="normal"?0:St.type===17||St.type===15?St.number:0}},LINE_BREAK;(function(Be){Be.NORMAL="normal",Be.STRICT="strict"})(LINE_BREAK||(LINE_BREAK={}));var lineBreak={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"strict":return LINE_BREAK.STRICT;case"normal":default:return LINE_BREAK.NORMAL}}},lineHeight={name:"line-height",initialValue:"normal",prefix:!1,type:4},computeLineHeight=function(Be,St){return isIdentToken(Be)&&Be.value==="normal"?1.2*St:Be.type===17?St*Be.number:isLengthPercentage(Be)?getAbsoluteValue(Be,St):St},listStyleImage={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Be,St){return St.type===20&&St.value==="none"?null:image.parse(Be,St)}},listStylePosition={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Be,St){switch(St){case"inside":return 0;case"outside":default:return 1}}},listStyleType={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},marginForSide=function(Be){return{name:"margin-"+Be,initialValue:"0",prefix:!1,type:4}},marginTop=marginForSide("top"),marginRight=marginForSide("right"),marginBottom=marginForSide("bottom"),marginLeft=marginForSide("left"),overflow={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Be,St){return St.filter(isIdentToken).map(function(Ae){switch(Ae.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},overflowWrap={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"break-word":return"break-word";case"normal":default:return"normal"}}},paddingForSide=function(Be){return{name:"padding-"+Be,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},paddingTop=paddingForSide("top"),paddingRight=paddingForSide("right"),paddingBottom=paddingForSide("bottom"),paddingLeft=paddingForSide("left"),textAlign={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Be,St){switch(St){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},position={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Be,St){switch(St){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},textShadow={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){return St.length===1&&isIdentWithValue(St[0],"none")?[]:parseFunctionArgs(St).map(function(Ae){for(var Ee={color:COLORS.TRANSPARENT,offsetX:ZERO_LENGTH,offsetY:ZERO_LENGTH,blur:ZERO_LENGTH},Ce=0,_e=0;_e<Ae.length;_e++){var Te=Ae[_e];isLength(Te)?(Ce===0?Ee.offsetX=Te:Ce===1?Ee.offsetY=Te:Ee.blur=Te,Ce++):Ee.color=color$1.parse(Be,Te)}return Ee})}},textTransform={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},transform$1={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Be,St){if(St.type===20&&St.value==="none")return null;if(St.type===18){var Ae=SUPPORTED_TRANSFORM_FUNCTIONS[St.name];if(typeof Ae>"u")throw new Error('Attempting to parse an unsupported transform function "'+St.name+'"');return Ae(St.values)}return null}},matrix=function(Be){var St=Be.filter(function(Ae){return Ae.type===17}).map(function(Ae){return Ae.number});return St.length===6?St:null},matrix3d=function(Be){var St=Be.filter(function(xe){return xe.type===17}).map(function(xe){return xe.number}),Ae=St[0],Ee=St[1];St[2],St[3];var Ce=St[4],_e=St[5];St[6],St[7],St[8],St[9],St[10],St[11];var Te=St[12],Se=St[13];return St[14],St[15],St.length===16?[Ae,Ee,Ce,_e,Te,Se]:null},SUPPORTED_TRANSFORM_FUNCTIONS={matrix,matrix3d},DEFAULT_VALUE={type:16,number:50,flags:FLAG_INTEGER},DEFAULT=[DEFAULT_VALUE,DEFAULT_VALUE],transformOrigin={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Be,St){var Ae=St.filter(isLengthPercentage);return Ae.length!==2?DEFAULT:[Ae[0],Ae[1]]}},visibility={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Be,St){switch(St){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},WORD_BREAK;(function(Be){Be.NORMAL="normal",Be.BREAK_ALL="break-all",Be.KEEP_ALL="keep-all"})(WORD_BREAK||(WORD_BREAK={}));for(var wordBreak={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"break-all":return WORD_BREAK.BREAK_ALL;case"keep-all":return WORD_BREAK.KEEP_ALL;case"normal":default:return WORD_BREAK.NORMAL}}},zIndex={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Be,St){if(St.type===20)return{auto:!0,order:0};if(isNumberToken(St))return{auto:!1,order:St.number};throw new Error("Invalid z-index number parsed")}},time={name:"time",parse:function(Be,St){if(St.type===15)switch(St.unit.toLowerCase()){case"s":return 1e3*St.number;case"ms":return St.number}throw new Error("Unsupported time type")}},opacity={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Be,St){return isNumberToken(St)?St.number:1}},textDecorationColor={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},textDecorationLine={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Be,St){return St.filter(isIdentToken).map(function(Ae){switch(Ae.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Ae){return Ae!==0})}},fontFamily={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Be,St){var Ae=[],Ee=[];return St.forEach(function(Ce){switch(Ce.type){case 20:case 0:Ae.push(Ce.value);break;case 17:Ae.push(Ce.number.toString());break;case 4:Ee.push(Ae.join(" ")),Ae.length=0;break}}),Ae.length&&Ee.push(Ae.join(" ")),Ee.map(function(Ce){return Ce.indexOf(" ")===-1?Ce:"'"+Ce+"'"})}},fontSize={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fontWeight={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Be,St){if(isNumberToken(St))return St.number;if(isIdentToken(St))switch(St.value){case"bold":return 700;case"normal":default:return 400}return 400}},fontVariant={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){return St.filter(isIdentToken).map(function(Ae){return Ae.value})}},fontStyle={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Be,St){switch(St){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},contains=function(Be,St){return(Be&St)!==0},content={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){if(St.length===0)return[];var Ae=St[0];return Ae.type===20&&Ae.value==="none"?[]:St}},counterIncrement={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Be,St){if(St.length===0)return null;var Ae=St[0];if(Ae.type===20&&Ae.value==="none")return null;for(var Ee=[],Ce=St.filter(nonWhiteSpace),_e=0;_e<Ce.length;_e++){var Te=Ce[_e],Se=Ce[_e+1];if(Te.type===20){var xe=Se&&isNumberToken(Se)?Se.number:1;Ee.push({counter:Te.value,increment:xe})}}return Ee}},counterReset={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Be,St){if(St.length===0)return[];for(var Ae=[],Ee=St.filter(nonWhiteSpace),Ce=0;Ce<Ee.length;Ce++){var _e=Ee[Ce],Te=Ee[Ce+1];if(isIdentToken(_e)&&_e.value!=="none"){var Se=Te&&isNumberToken(Te)?Te.number:0;Ae.push({counter:_e.value,reset:Se})}}return Ae}},duration={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Be,St){return St.filter(isDimensionToken).map(function(Ae){return time.parse(Be,Ae)})}},quotes={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Be,St){if(St.length===0)return null;var Ae=St[0];if(Ae.type===20&&Ae.value==="none")return null;var Ee=[],Ce=St.filter(isStringToken);if(Ce.length%2!==0)return null;for(var _e=0;_e<Ce.length;_e+=2){var Te=Ce[_e].value,Se=Ce[_e+1].value;Ee.push({open:Te,close:Se})}return Ee}},getQuote=function(Be,St,Ae){if(!Be)return"";var Ee=Be[Math.min(St,Be.length-1)];return Ee?Ae?Ee.open:Ee.close:""},boxShadow={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Be,St){return St.length===1&&isIdentWithValue(St[0],"none")?[]:parseFunctionArgs(St).map(function(Ae){for(var Ee={color:255,offsetX:ZERO_LENGTH,offsetY:ZERO_LENGTH,blur:ZERO_LENGTH,spread:ZERO_LENGTH,inset:!1},Ce=0,_e=0;_e<Ae.length;_e++){var Te=Ae[_e];isIdentWithValue(Te,"inset")?Ee.inset=!0:isLength(Te)?(Ce===0?Ee.offsetX=Te:Ce===1?Ee.offsetY=Te:Ce===2?Ee.blur=Te:Ee.spread=Te,Ce++):Ee.color=color$1.parse(Be,Te)}return Ee})}},paintOrder={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Be,St){var Ae=[0,1,2],Ee=[];return St.filter(isIdentToken).forEach(function(Ce){switch(Ce.value){case"stroke":Ee.push(1);break;case"fill":Ee.push(0);break;case"markers":Ee.push(2);break}}),Ae.forEach(function(Ce){Ee.indexOf(Ce)===-1&&Ee.push(Ce)}),Ee}},webkitTextStrokeColor={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},webkitTextStrokeWidth={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Be,St){return isDimensionToken(St)?St.number:0}},CSSParsedDeclaration=function(){function Be(St,Ae){var Ee,Ce;this.animationDuration=parse(St,duration,Ae.animationDuration),this.backgroundClip=parse(St,backgroundClip,Ae.backgroundClip),this.backgroundColor=parse(St,backgroundColor,Ae.backgroundColor),this.backgroundImage=parse(St,backgroundImage,Ae.backgroundImage),this.backgroundOrigin=parse(St,backgroundOrigin,Ae.backgroundOrigin),this.backgroundPosition=parse(St,backgroundPosition,Ae.backgroundPosition),this.backgroundRepeat=parse(St,backgroundRepeat,Ae.backgroundRepeat),this.backgroundSize=parse(St,backgroundSize,Ae.backgroundSize),this.borderTopColor=parse(St,borderTopColor,Ae.borderTopColor),this.borderRightColor=parse(St,borderRightColor,Ae.borderRightColor),this.borderBottomColor=parse(St,borderBottomColor,Ae.borderBottomColor),this.borderLeftColor=parse(St,borderLeftColor,Ae.borderLeftColor),this.borderTopLeftRadius=parse(St,borderTopLeftRadius,Ae.borderTopLeftRadius),this.borderTopRightRadius=parse(St,borderTopRightRadius,Ae.borderTopRightRadius),this.borderBottomRightRadius=parse(St,borderBottomRightRadius,Ae.borderBottomRightRadius),this.borderBottomLeftRadius=parse(St,borderBottomLeftRadius,Ae.borderBottomLeftRadius),this.borderTopStyle=parse(St,borderTopStyle,Ae.borderTopStyle),this.borderRightStyle=parse(St,borderRightStyle,Ae.borderRightStyle),this.borderBottomStyle=parse(St,borderBottomStyle,Ae.borderBottomStyle),this.borderLeftStyle=parse(St,borderLeftStyle,Ae.borderLeftStyle),this.borderTopWidth=parse(St,borderTopWidth,Ae.borderTopWidth),this.borderRightWidth=parse(St,borderRightWidth,Ae.borderRightWidth),this.borderBottomWidth=parse(St,borderBottomWidth,Ae.borderBottomWidth),this.borderLeftWidth=parse(St,borderLeftWidth,Ae.borderLeftWidth),this.boxShadow=parse(St,boxShadow,Ae.boxShadow),this.color=parse(St,color,Ae.color),this.direction=parse(St,direction,Ae.direction),this.display=parse(St,display,Ae.display),this.float=parse(St,float,Ae.cssFloat),this.fontFamily=parse(St,fontFamily,Ae.fontFamily),this.fontSize=parse(St,fontSize,Ae.fontSize),this.fontStyle=parse(St,fontStyle,Ae.fontStyle),this.fontVariant=parse(St,fontVariant,Ae.fontVariant),this.fontWeight=parse(St,fontWeight,Ae.fontWeight),this.letterSpacing=parse(St,letterSpacing,Ae.letterSpacing),this.lineBreak=parse(St,lineBreak,Ae.lineBreak),this.lineHeight=parse(St,lineHeight,Ae.lineHeight),this.listStyleImage=parse(St,listStyleImage,Ae.listStyleImage),this.listStylePosition=parse(St,listStylePosition,Ae.listStylePosition),this.listStyleType=parse(St,listStyleType,Ae.listStyleType),this.marginTop=parse(St,marginTop,Ae.marginTop),this.marginRight=parse(St,marginRight,Ae.marginRight),this.marginBottom=parse(St,marginBottom,Ae.marginBottom),this.marginLeft=parse(St,marginLeft,Ae.marginLeft),this.opacity=parse(St,opacity,Ae.opacity);var _e=parse(St,overflow,Ae.overflow);this.overflowX=_e[0],this.overflowY=_e[_e.length>1?1:0],this.overflowWrap=parse(St,overflowWrap,Ae.overflowWrap),this.paddingTop=parse(St,paddingTop,Ae.paddingTop),this.paddingRight=parse(St,paddingRight,Ae.paddingRight),this.paddingBottom=parse(St,paddingBottom,Ae.paddingBottom),this.paddingLeft=parse(St,paddingLeft,Ae.paddingLeft),this.paintOrder=parse(St,paintOrder,Ae.paintOrder),this.position=parse(St,position,Ae.position),this.textAlign=parse(St,textAlign,Ae.textAlign),this.textDecorationColor=parse(St,textDecorationColor,(Ee=Ae.textDecorationColor)!==null&&Ee!==void 0?Ee:Ae.color),this.textDecorationLine=parse(St,textDecorationLine,(Ce=Ae.textDecorationLine)!==null&&Ce!==void 0?Ce:Ae.textDecoration),this.textShadow=parse(St,textShadow,Ae.textShadow),this.textTransform=parse(St,textTransform,Ae.textTransform),this.transform=parse(St,transform$1,Ae.transform),this.transformOrigin=parse(St,transformOrigin,Ae.transformOrigin),this.visibility=parse(St,visibility,Ae.visibility),this.webkitTextStrokeColor=parse(St,webkitTextStrokeColor,Ae.webkitTextStrokeColor),this.webkitTextStrokeWidth=parse(St,webkitTextStrokeWidth,Ae.webkitTextStrokeWidth),this.wordBreak=parse(St,wordBreak,Ae.wordBreak),this.zIndex=parse(St,zIndex,Ae.zIndex)}return Be.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Be.prototype.isTransparent=function(){return isTransparent(this.backgroundColor)},Be.prototype.isTransformed=function(){return this.transform!==null},Be.prototype.isPositioned=function(){return this.position!==0},Be.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Be.prototype.isFloating=function(){return this.float!==0},Be.prototype.isInlineLevel=function(){return contains(this.display,4)||contains(this.display,33554432)||contains(this.display,268435456)||contains(this.display,536870912)||contains(this.display,67108864)||contains(this.display,134217728)},Be}(),CSSParsedPseudoDeclaration=function(){function Be(St,Ae){this.content=parse(St,content,Ae.content),this.quotes=parse(St,quotes,Ae.quotes)}return Be}(),CSSParsedCounterDeclaration=function(){function Be(St,Ae){this.counterIncrement=parse(St,counterIncrement,Ae.counterIncrement),this.counterReset=parse(St,counterReset,Ae.counterReset)}return Be}(),parse=function(Be,St,Ae){var Ee=new Tokenizer,Ce=Ae!==null&&typeof Ae<"u"?Ae.toString():St.initialValue;Ee.write(Ce);var _e=new Parser$1(Ee.read());switch(St.type){case 2:var Te=_e.parseComponentValue();return St.parse(Be,isIdentToken(Te)?Te.value:St.initialValue);case 0:return St.parse(Be,_e.parseComponentValue());case 1:return St.parse(Be,_e.parseComponentValues());case 4:return _e.parseComponentValue();case 3:switch(St.format){case"angle":return angle.parse(Be,_e.parseComponentValue());case"color":return color$1.parse(Be,_e.parseComponentValue());case"image":return image.parse(Be,_e.parseComponentValue());case"length":var Se=_e.parseComponentValue();return isLength(Se)?Se:ZERO_LENGTH;case"length-percentage":var xe=_e.parseComponentValue();return isLengthPercentage(xe)?xe:ZERO_LENGTH;case"time":return time.parse(Be,_e.parseComponentValue())}break}},elementDebuggerAttribute="data-html2canvas-debug",getElementDebugType=function(Be){var St=Be.getAttribute(elementDebuggerAttribute);switch(St){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},isDebugging=function(Be,St){var Ae=getElementDebugType(Be);return Ae===1||St===Ae},ElementContainer=function(){function Be(St,Ae){if(this.context=St,this.textNodes=[],this.elements=[],this.flags=0,isDebugging(Ae,3))debugger;this.styles=new CSSParsedDeclaration(St,window.getComputedStyle(Ae,null)),isHTMLElementNode(Ae)&&(this.styles.animationDuration.some(function(Ee){return Ee>0})&&(Ae.style.animationDuration="0s"),this.styles.transform!==null&&(Ae.style.transform="none")),this.bounds=parseBounds(this.context,Ae),isDebugging(Ae,4)&&(this.flags|=16)}return Be}(),base64="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",chars$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$1$2=0;i$1$2<chars$1.length;i$1$2++)lookup$1[chars$1.charCodeAt(i$1$2)]=i$1$2;for(var decode=function(Be){var St=Be.length*.75,Ae=Be.length,Ee,Ce=0,_e,Te,Se,xe;Be[Be.length-1]==="="&&(St--,Be[Be.length-2]==="="&&St--);var Ie=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(St):new Array(St),Ue=Array.isArray(Ie)?Ie:new Uint8Array(Ie);for(Ee=0;Ee<Ae;Ee+=4)_e=lookup$1[Be.charCodeAt(Ee)],Te=lookup$1[Be.charCodeAt(Ee+1)],Se=lookup$1[Be.charCodeAt(Ee+2)],xe=lookup$1[Be.charCodeAt(Ee+3)],Ue[Ce++]=_e<<2|Te>>4,Ue[Ce++]=(Te&15)<<4|Se>>2,Ue[Ce++]=(Se&3)<<6|xe&63;return Ie},polyUint16Array=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=2)Ae.push(Be[Ee+1]<<8|Be[Ee]);return Ae},polyUint32Array=function(Be){for(var St=Be.length,Ae=[],Ee=0;Ee<St;Ee+=4)Ae.push(Be[Ee+3]<<24|Be[Ee+2]<<16|Be[Ee+1]<<8|Be[Ee]);return Ae},UTRIE2_SHIFT_2=5,UTRIE2_SHIFT_1=6+5,UTRIE2_INDEX_SHIFT=2,UTRIE2_SHIFT_1_2=UTRIE2_SHIFT_1-UTRIE2_SHIFT_2,UTRIE2_LSCP_INDEX_2_OFFSET=65536>>UTRIE2_SHIFT_2,UTRIE2_DATA_BLOCK_LENGTH=1<<UTRIE2_SHIFT_2,UTRIE2_DATA_MASK=UTRIE2_DATA_BLOCK_LENGTH-1,UTRIE2_LSCP_INDEX_2_LENGTH=1024>>UTRIE2_SHIFT_2,UTRIE2_INDEX_2_BMP_LENGTH=UTRIE2_LSCP_INDEX_2_OFFSET+UTRIE2_LSCP_INDEX_2_LENGTH,UTRIE2_UTF8_2B_INDEX_2_OFFSET=UTRIE2_INDEX_2_BMP_LENGTH,UTRIE2_UTF8_2B_INDEX_2_LENGTH=32,UTRIE2_INDEX_1_OFFSET=UTRIE2_UTF8_2B_INDEX_2_OFFSET+UTRIE2_UTF8_2B_INDEX_2_LENGTH,UTRIE2_OMITTED_BMP_INDEX_1_LENGTH=65536>>UTRIE2_SHIFT_1,UTRIE2_INDEX_2_BLOCK_LENGTH=1<<UTRIE2_SHIFT_1_2,UTRIE2_INDEX_2_MASK=UTRIE2_INDEX_2_BLOCK_LENGTH-1,slice16=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint16Array(Array.prototype.slice.call(Be,St,Ae))},slice32=function(Be,St,Ae){return Be.slice?Be.slice(St,Ae):new Uint32Array(Array.prototype.slice.call(Be,St,Ae))},createTrieFromBase64=function(Be,St){var Ae=decode(Be),Ee=Array.isArray(Ae)?polyUint32Array(Ae):new Uint32Array(Ae),Ce=Array.isArray(Ae)?polyUint16Array(Ae):new Uint16Array(Ae),_e=24,Te=slice16(Ce,_e/2,Ee[4]/2),Se=Ee[5]===2?slice16(Ce,(_e+Ee[4])/2):slice32(Ee,Math.ceil((_e+Ee[4])/4));return new Trie(Ee[0],Ee[1],Ee[2],Ee[3],Te,Se)},Trie=function(){function Be(St,Ae,Ee,Ce,_e,Te){this.initialValue=St,this.errorValue=Ae,this.highStart=Ee,this.highValueIndex=Ce,this.index=_e,this.data=Te}return Be.prototype.get=function(St){var Ae;if(St>=0){if(St<55296||St>56319&&St<=65535)return Ae=this.index[St>>UTRIE2_SHIFT_2],Ae=(Ae<<UTRIE2_INDEX_SHIFT)+(St&UTRIE2_DATA_MASK),this.data[Ae];if(St<=65535)return Ae=this.index[UTRIE2_LSCP_INDEX_2_OFFSET+(St-55296>>UTRIE2_SHIFT_2)],Ae=(Ae<<UTRIE2_INDEX_SHIFT)+(St&UTRIE2_DATA_MASK),this.data[Ae];if(St<this.highStart)return Ae=UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH+(St>>UTRIE2_SHIFT_1),Ae=this.index[Ae],Ae+=St>>UTRIE2_SHIFT_2&UTRIE2_INDEX_2_MASK,Ae=this.index[Ae],Ae=(Ae<<UTRIE2_INDEX_SHIFT)+(St&UTRIE2_DATA_MASK),this.data[Ae];if(St<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Be}(),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup=typeof Uint8Array>"u"?[]:new Uint8Array(256),i$4=0;i$4<chars.length;i$4++)lookup[chars.charCodeAt(i$4)]=i$4;var Prepend=1,CR=2,LF=3,Control=4,Extend=5,SpacingMark=7,L=8,V=9,T$1=10,LV=11,LVT=12,ZWJ=13,Extended_Pictographic=14,RI=15,toCodePoints=function(Be){for(var St=[],Ae=0,Ee=Be.length;Ae<Ee;){var Ce=Be.charCodeAt(Ae++);if(Ce>=55296&&Ce<=56319&&Ae<Ee){var _e=Be.charCodeAt(Ae++);(_e&64512)===56320?St.push(((Ce&1023)<<10)+(_e&1023)+65536):(St.push(Ce),Ae--)}else St.push(Ce)}return St},fromCodePoint=function(){for(var Be=[],St=0;St<arguments.length;St++)Be[St]=arguments[St];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Be);var Ae=Be.length;if(!Ae)return"";for(var Ee=[],Ce=-1,_e="";++Ce<Ae;){var Te=Be[Ce];Te<=65535?Ee.push(Te):(Te-=65536,Ee.push((Te>>10)+55296,Te%1024+56320)),(Ce+1===Ae||Ee.length>16384)&&(_e+=String.fromCharCode.apply(String,Ee),Ee.length=0)}return _e},UnicodeTrie=createTrieFromBase64(base64),BREAK_NOT_ALLOWED="×",BREAK_ALLOWED="÷",codePointToClass=function(Be){return UnicodeTrie.get(Be)},_graphemeBreakAtIndex=function(Be,St,Ae){var Ee=Ae-2,Ce=St[Ee],_e=St[Ae-1],Te=St[Ae];if(_e===CR&&Te===LF)return BREAK_NOT_ALLOWED;if(_e===CR||_e===LF||_e===Control||Te===CR||Te===LF||Te===Control)return BREAK_ALLOWED;if(_e===L&&[L,V,LV,LVT].indexOf(Te)!==-1||(_e===LV||_e===V)&&(Te===V||Te===T$1)||(_e===LVT||_e===T$1)&&Te===T$1||Te===ZWJ||Te===Extend||Te===SpacingMark||_e===Prepend)return BREAK_NOT_ALLOWED;if(_e===ZWJ&&Te===Extended_Pictographic){for(;Ce===Extend;)Ce=St[--Ee];if(Ce===Extended_Pictographic)return BREAK_NOT_ALLOWED}if(_e===RI&&Te===RI){for(var Se=0;Ce===RI;)Se++,Ce=St[--Ee];if(Se%2===0)return BREAK_NOT_ALLOWED}return BREAK_ALLOWED},GraphemeBreaker=function(Be){var St=toCodePoints(Be),Ae=St.length,Ee=0,Ce=0,_e=St.map(codePointToClass);return{next:function(){if(Ee>=Ae)return{done:!0,value:null};for(var Te=BREAK_NOT_ALLOWED;Ee<Ae&&(Te=_graphemeBreakAtIndex(St,_e,++Ee))===BREAK_NOT_ALLOWED;);if(Te!==BREAK_NOT_ALLOWED||Ee===Ae){var Se=fromCodePoint.apply(null,St.slice(Ce,Ee));return Ce=Ee,{value:Se,done:!1}}return{done:!0,value:null}}}},splitGraphemes=function(Be){for(var St=GraphemeBreaker(Be),Ae=[],Ee;!(Ee=St.next()).done;)Ee.value&&Ae.push(Ee.value.slice());return Ae},testRangeBounds=function(Be){var St=123;if(Be.createRange){var Ae=Be.createRange();if(Ae.getBoundingClientRect){var Ee=Be.createElement("boundtest");Ee.style.height=St+"px",Ee.style.display="block",Be.body.appendChild(Ee),Ae.selectNode(Ee);var Ce=Ae.getBoundingClientRect(),_e=Math.round(Ce.height);if(Be.body.removeChild(Ee),_e===St)return!0}}return!1},testIOSLineBreak=function(Be){var St=Be.createElement("boundtest");St.style.width="50px",St.style.display="block",St.style.fontSize="12px",St.style.letterSpacing="0px",St.style.wordSpacing="0px",Be.body.appendChild(St);var Ae=Be.createRange();St.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var Ee=St.firstChild,Ce=toCodePoints$1(Ee.data).map(function(xe){return fromCodePoint$1(xe)}),_e=0,Te={},Se=Ce.every(function(xe,Ie){Ae.setStart(Ee,_e),Ae.setEnd(Ee,_e+xe.length);var Ue=Ae.getBoundingClientRect();_e+=xe.length;var $e=Ue.x>Te.x||Ue.y>Te.y;return Te=Ue,Ie===0?!0:$e});return Be.body.removeChild(St),Se},testCORS=function(){return typeof new Image().crossOrigin<"u"},testResponseType=function(){return typeof new XMLHttpRequest().responseType=="string"},testSVG=function(Be){var St=new Image,Ae=Be.createElement("canvas"),Ee=Ae.getContext("2d");if(!Ee)return!1;St.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Ee.drawImage(St,0,0),Ae.toDataURL()}catch{return!1}return!0},isGreenPixel=function(Be){return Be[0]===0&&Be[1]===255&&Be[2]===0&&Be[3]===255},testForeignObject=function(Be){var St=Be.createElement("canvas"),Ae=100;St.width=Ae,St.height=Ae;var Ee=St.getContext("2d");if(!Ee)return Promise.reject(!1);Ee.fillStyle="rgb(0, 255, 0)",Ee.fillRect(0,0,Ae,Ae);var Ce=new Image,_e=St.toDataURL();Ce.src=_e;var Te=createForeignObjectSVG(Ae,Ae,0,0,Ce);return Ee.fillStyle="red",Ee.fillRect(0,0,Ae,Ae),loadSerializedSVG$1(Te).then(function(Se){Ee.drawImage(Se,0,0);var xe=Ee.getImageData(0,0,Ae,Ae).data;Ee.fillStyle="red",Ee.fillRect(0,0,Ae,Ae);var Ie=Be.createElement("div");return Ie.style.backgroundImage="url("+_e+")",Ie.style.height=Ae+"px",isGreenPixel(xe)?loadSerializedSVG$1(createForeignObjectSVG(Ae,Ae,0,0,Ie)):Promise.reject(!1)}).then(function(Se){return Ee.drawImage(Se,0,0),isGreenPixel(Ee.getImageData(0,0,Ae,Ae).data)}).catch(function(){return!1})},createForeignObjectSVG=function(Be,St,Ae,Ee,Ce){var _e="http://www.w3.org/2000/svg",Te=document.createElementNS(_e,"svg"),Se=document.createElementNS(_e,"foreignObject");return Te.setAttributeNS(null,"width",Be.toString()),Te.setAttributeNS(null,"height",St.toString()),Se.setAttributeNS(null,"width","100%"),Se.setAttributeNS(null,"height","100%"),Se.setAttributeNS(null,"x",Ae.toString()),Se.setAttributeNS(null,"y",Ee.toString()),Se.setAttributeNS(null,"externalResourcesRequired","true"),Te.appendChild(Se),Se.appendChild(Ce),Te},loadSerializedSVG$1=function(Be){return new Promise(function(St,Ae){var Ee=new Image;Ee.onload=function(){return St(Ee)},Ee.onerror=Ae,Ee.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Be))})},FEATURES={get SUPPORT_RANGE_BOUNDS(){var Be=testRangeBounds(document);return Object.defineProperty(FEATURES,"SUPPORT_RANGE_BOUNDS",{value:Be}),Be},get SUPPORT_WORD_BREAKING(){var Be=FEATURES.SUPPORT_RANGE_BOUNDS&&testIOSLineBreak(document);return Object.defineProperty(FEATURES,"SUPPORT_WORD_BREAKING",{value:Be}),Be},get SUPPORT_SVG_DRAWING(){var Be=testSVG(document);return Object.defineProperty(FEATURES,"SUPPORT_SVG_DRAWING",{value:Be}),Be},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Be=typeof Array.from=="function"&&typeof window.fetch=="function"?testForeignObject(document):Promise.resolve(!1);return Object.defineProperty(FEATURES,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Be}),Be},get SUPPORT_CORS_IMAGES(){var Be=testCORS();return Object.defineProperty(FEATURES,"SUPPORT_CORS_IMAGES",{value:Be}),Be},get SUPPORT_RESPONSE_TYPE(){var Be=testResponseType();return Object.defineProperty(FEATURES,"SUPPORT_RESPONSE_TYPE",{value:Be}),Be},get SUPPORT_CORS_XHR(){var Be="withCredentials"in new XMLHttpRequest;return Object.defineProperty(FEATURES,"SUPPORT_CORS_XHR",{value:Be}),Be},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Be=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(FEATURES,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Be}),Be}},TextBounds=function(){function Be(St,Ae){this.text=St,this.bounds=Ae}return Be}(),parseTextBounds=function(Be,St,Ae,Ee){var Ce=breakText(St,Ae),_e=[],Te=0;return Ce.forEach(function(Se){if(Ae.textDecorationLine.length||Se.trim().length>0)if(FEATURES.SUPPORT_RANGE_BOUNDS){var xe=createRange(Ee,Te,Se.length).getClientRects();if(xe.length>1){var Ie=segmentGraphemes(Se),Ue=0;Ie.forEach(function(Me){_e.push(new TextBounds(Me,Bounds.fromDOMRectList(Be,createRange(Ee,Ue+Te,Me.length).getClientRects()))),Ue+=Me.length})}else _e.push(new TextBounds(Se,Bounds.fromDOMRectList(Be,xe)))}else{var $e=Ee.splitText(Se.length);_e.push(new TextBounds(Se,getWrapperBounds(Be,Ee))),Ee=$e}else FEATURES.SUPPORT_RANGE_BOUNDS||(Ee=Ee.splitText(Se.length));Te+=Se.length}),_e},getWrapperBounds=function(Be,St){var Ae=St.ownerDocument;if(Ae){var Ee=Ae.createElement("html2canvaswrapper");Ee.appendChild(St.cloneNode(!0));var Ce=St.parentNode;if(Ce){Ce.replaceChild(Ee,St);var _e=parseBounds(Be,Ee);return Ee.firstChild&&Ce.replaceChild(Ee.firstChild,Ee),_e}}return Bounds.EMPTY},createRange=function(Be,St,Ae){var Ee=Be.ownerDocument;if(!Ee)throw new Error("Node has no owner document");var Ce=Ee.createRange();return Ce.setStart(Be,St),Ce.setEnd(Be,St+Ae),Ce},segmentGraphemes=function(Be){if(FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var St=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(St.segment(Be)).map(function(Ae){return Ae.segment})}return splitGraphemes(Be)},segmentWords=function(Be,St){if(FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ae=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Ae.segment(Be)).map(function(Ee){return Ee.segment})}return breakWords(Be,St)},breakText=function(Be,St){return St.letterSpacing!==0?segmentGraphemes(Be):segmentWords(Be,St)},wordSeparators=[32,160,4961,65792,65793,4153,4241],breakWords=function(Be,St){for(var Ae=LineBreaker(Be,{lineBreak:St.lineBreak,wordBreak:St.overflowWrap==="break-word"?"break-word":St.wordBreak}),Ee=[],Ce,_e=function(){if(Ce.value){var Te=Ce.value.slice(),Se=toCodePoints$1(Te),xe="";Se.forEach(function(Ie){wordSeparators.indexOf(Ie)===-1?xe+=fromCodePoint$1(Ie):(xe.length&&Ee.push(xe),Ee.push(fromCodePoint$1(Ie)),xe="")}),xe.length&&Ee.push(xe)}};!(Ce=Ae.next()).done;)_e();return Ee},TextContainer=function(){function Be(St,Ae,Ee){this.text=transform(Ae.data,Ee.textTransform),this.textBounds=parseTextBounds(St,this.text,Ee,Ae)}return Be}(),transform=function(Be,St){switch(St){case 1:return Be.toLowerCase();case 3:return Be.replace(CAPITALIZE,capitalize);case 2:return Be.toUpperCase();default:return Be}},CAPITALIZE=/(^|\s|:|-|\(|\))([a-z])/g,capitalize=function(Be,St,Ae){return Be.length>0?St+Ae.toUpperCase():Be},ImageElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.src=Ee.currentSrc||Ee.src,Ce.intrinsicWidth=Ee.naturalWidth,Ce.intrinsicHeight=Ee.naturalHeight,Ce.context.cache.addImage(Ce.src),Ce}return St}(ElementContainer),CanvasElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.canvas=Ee,Ce.intrinsicWidth=Ee.width,Ce.intrinsicHeight=Ee.height,Ce}return St}(ElementContainer),SVGElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this,_e=new XMLSerializer,Te=parseBounds(Ae,Ee);return Ee.setAttribute("width",Te.width+"px"),Ee.setAttribute("height",Te.height+"px"),Ce.svg="data:image/svg+xml,"+encodeURIComponent(_e.serializeToString(Ee)),Ce.intrinsicWidth=Ee.width.baseVal.value,Ce.intrinsicHeight=Ee.height.baseVal.value,Ce.context.cache.addImage(Ce.svg),Ce}return St}(ElementContainer),LIElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.value=Ee.value,Ce}return St}(ElementContainer),OLElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.start=Ee.start,Ce.reversed=typeof Ee.reversed=="boolean"&&Ee.reversed===!0,Ce}return St}(ElementContainer),CHECKBOX_BORDER_RADIUS=[{type:15,flags:0,unit:"px",number:3}],RADIO_BORDER_RADIUS=[{type:16,flags:0,number:50}],reformatInputBounds=function(Be){return Be.width>Be.height?new Bounds(Be.left+(Be.width-Be.height)/2,Be.top,Be.height,Be.height):Be.width<Be.height?new Bounds(Be.left,Be.top+(Be.height-Be.width)/2,Be.width,Be.width):Be},getInputValue=function(Be){var St=Be.type===PASSWORD?new Array(Be.value.length+1).join("•"):Be.value;return St.length===0?Be.placeholder||"":St},CHECKBOX="checkbox",RADIO="radio",PASSWORD="password",INPUT_COLOR=707406591,InputElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;switch(Ce.type=Ee.type.toLowerCase(),Ce.checked=Ee.checked,Ce.value=getInputValue(Ee),(Ce.type===CHECKBOX||Ce.type===RADIO)&&(Ce.styles.backgroundColor=3739148031,Ce.styles.borderTopColor=Ce.styles.borderRightColor=Ce.styles.borderBottomColor=Ce.styles.borderLeftColor=2779096575,Ce.styles.borderTopWidth=Ce.styles.borderRightWidth=Ce.styles.borderBottomWidth=Ce.styles.borderLeftWidth=1,Ce.styles.borderTopStyle=Ce.styles.borderRightStyle=Ce.styles.borderBottomStyle=Ce.styles.borderLeftStyle=1,Ce.styles.backgroundClip=[0],Ce.styles.backgroundOrigin=[0],Ce.bounds=reformatInputBounds(Ce.bounds)),Ce.type){case CHECKBOX:Ce.styles.borderTopRightRadius=Ce.styles.borderTopLeftRadius=Ce.styles.borderBottomRightRadius=Ce.styles.borderBottomLeftRadius=CHECKBOX_BORDER_RADIUS;break;case RADIO:Ce.styles.borderTopRightRadius=Ce.styles.borderTopLeftRadius=Ce.styles.borderBottomRightRadius=Ce.styles.borderBottomLeftRadius=RADIO_BORDER_RADIUS;break}return Ce}return St}(ElementContainer),SelectElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this,_e=Ee.options[Ee.selectedIndex||0];return Ce.value=_e&&_e.text||"",Ce}return St}(ElementContainer),TextareaElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.value=Ee.value,Ce}return St}(ElementContainer),IFrameElementContainer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;Ce.src=Ee.src,Ce.width=parseInt(Ee.width,10)||0,Ce.height=parseInt(Ee.height,10)||0,Ce.backgroundColor=Ce.styles.backgroundColor;try{if(Ee.contentWindow&&Ee.contentWindow.document&&Ee.contentWindow.document.documentElement){Ce.tree=parseTree(Ae,Ee.contentWindow.document.documentElement);var _e=Ee.contentWindow.document.documentElement?parseColor(Ae,getComputedStyle(Ee.contentWindow.document.documentElement).backgroundColor):COLORS.TRANSPARENT,Te=Ee.contentWindow.document.body?parseColor(Ae,getComputedStyle(Ee.contentWindow.document.body).backgroundColor):COLORS.TRANSPARENT;Ce.backgroundColor=isTransparent(_e)?isTransparent(Te)?Ce.styles.backgroundColor:Te:_e}}catch{}return Ce}return St}(ElementContainer),LIST_OWNERS=["OL","UL","MENU"],parseNodeTree=function(Be,St,Ae,Ee){for(var Ce=St.firstChild,_e=void 0;Ce;Ce=_e)if(_e=Ce.nextSibling,isTextNode(Ce)&&Ce.data.trim().length>0)Ae.textNodes.push(new TextContainer(Be,Ce,Ae.styles));else if(isElementNode(Ce))if(isSlotElement(Ce)&&Ce.assignedNodes)Ce.assignedNodes().forEach(function(Se){return parseNodeTree(Be,Se,Ae,Ee)});else{var Te=createContainer(Be,Ce);Te.styles.isVisible()&&(createsRealStackingContext(Ce,Te,Ee)?Te.flags|=4:createsStackingContext(Te.styles)&&(Te.flags|=2),LIST_OWNERS.indexOf(Ce.tagName)!==-1&&(Te.flags|=8),Ae.elements.push(Te),Ce.slot,Ce.shadowRoot?parseNodeTree(Be,Ce.shadowRoot,Te,Ee):!isTextareaElement(Ce)&&!isSVGElement(Ce)&&!isSelectElement(Ce)&&parseNodeTree(Be,Ce,Te,Ee))}},createContainer=function(Be,St){return isImageElement(St)?new ImageElementContainer(Be,St):isCanvasElement(St)?new CanvasElementContainer(Be,St):isSVGElement(St)?new SVGElementContainer(Be,St):isLIElement(St)?new LIElementContainer(Be,St):isOLElement(St)?new OLElementContainer(Be,St):isInputElement(St)?new InputElementContainer(Be,St):isSelectElement(St)?new SelectElementContainer(Be,St):isTextareaElement(St)?new TextareaElementContainer(Be,St):isIFrameElement(St)?new IFrameElementContainer(Be,St):new ElementContainer(Be,St)},parseTree=function(Be,St){var Ae=createContainer(Be,St);return Ae.flags|=4,parseNodeTree(Be,St,Ae,Ae),Ae},createsRealStackingContext=function(Be,St,Ae){return St.styles.isPositionedWithZIndex()||St.styles.opacity<1||St.styles.isTransformed()||isBodyElement(Be)&&Ae.styles.isTransparent()},createsStackingContext=function(Be){return Be.isPositioned()||Be.isFloating()},isTextNode=function(Be){return Be.nodeType===Node.TEXT_NODE},isElementNode=function(Be){return Be.nodeType===Node.ELEMENT_NODE},isHTMLElementNode=function(Be){return isElementNode(Be)&&typeof Be.style<"u"&&!isSVGElementNode(Be)},isSVGElementNode=function(Be){return typeof Be.className=="object"},isLIElement=function(Be){return Be.tagName==="LI"},isOLElement=function(Be){return Be.tagName==="OL"},isInputElement=function(Be){return Be.tagName==="INPUT"},isHTMLElement=function(Be){return Be.tagName==="HTML"},isSVGElement=function(Be){return Be.tagName==="svg"},isBodyElement=function(Be){return Be.tagName==="BODY"},isCanvasElement=function(Be){return Be.tagName==="CANVAS"},isVideoElement=function(Be){return Be.tagName==="VIDEO"},isImageElement=function(Be){return Be.tagName==="IMG"},isIFrameElement=function(Be){return Be.tagName==="IFRAME"},isStyleElement=function(Be){return Be.tagName==="STYLE"},isScriptElement=function(Be){return Be.tagName==="SCRIPT"},isTextareaElement=function(Be){return Be.tagName==="TEXTAREA"},isSelectElement=function(Be){return Be.tagName==="SELECT"},isSlotElement=function(Be){return Be.tagName==="SLOT"},isCustomElement=function(Be){return Be.tagName.indexOf("-")>0},CounterState=function(){function Be(){this.counters={}}return Be.prototype.getCounterValue=function(St){var Ae=this.counters[St];return Ae&&Ae.length?Ae[Ae.length-1]:1},Be.prototype.getCounterValues=function(St){var Ae=this.counters[St];return Ae||[]},Be.prototype.pop=function(St){var Ae=this;St.forEach(function(Ee){return Ae.counters[Ee].pop()})},Be.prototype.parse=function(St){var Ae=this,Ee=St.counterIncrement,Ce=St.counterReset,_e=!0;Ee!==null&&Ee.forEach(function(Se){var xe=Ae.counters[Se.counter];xe&&Se.increment!==0&&(_e=!1,xe.length||xe.push(1),xe[Math.max(0,xe.length-1)]+=Se.increment)});var Te=[];return _e&&Ce.forEach(function(Se){var xe=Ae.counters[Se.counter];Te.push(Se.counter),xe||(xe=Ae.counters[Se.counter]=[]),xe.push(Se.reset)}),Te},Be}(),ROMAN_UPPER={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ARMENIAN={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},HEBREW={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},GEORGIAN={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},createAdditiveCounter=function(Be,St,Ae,Ee,Ce,_e){return Be<St||Be>Ae?createCounterText(Be,Ce,_e.length>0):Ee.integers.reduce(function(Te,Se,xe){for(;Be>=Se;)Be-=Se,Te+=Ee.values[xe];return Te},"")+_e},createCounterStyleWithSymbolResolver=function(Be,St,Ae,Ee){var Ce="";do Ae||Be--,Ce=Ee(Be)+Ce,Be/=St;while(Be*St>=St);return Ce},createCounterStyleFromRange=function(Be,St,Ae,Ee,Ce){var _e=Ae-St+1;return(Be<0?"-":"")+(createCounterStyleWithSymbolResolver(Math.abs(Be),_e,Ee,function(Te){return fromCodePoint$1(Math.floor(Te%_e)+St)})+Ce)},createCounterStyleFromSymbols=function(Be,St,Ae){Ae===void 0&&(Ae=". ");var Ee=St.length;return createCounterStyleWithSymbolResolver(Math.abs(Be),Ee,!1,function(Ce){return St[Math.floor(Ce%Ee)]})+Ae},CJK_ZEROS=1,CJK_TEN_COEFFICIENTS=2,CJK_TEN_HIGH_COEFFICIENTS=4,CJK_HUNDRED_COEFFICIENTS=8,createCJKCounter=function(Be,St,Ae,Ee,Ce,_e){if(Be<-9999||Be>9999)return createCounterText(Be,4,Ce.length>0);var Te=Math.abs(Be),Se=Ce;if(Te===0)return St[0]+Se;for(var xe=0;Te>0&&xe<=4;xe++){var Ie=Te%10;Ie===0&&contains(_e,CJK_ZEROS)&&Se!==""?Se=St[Ie]+Se:Ie>1||Ie===1&&xe===0||Ie===1&&xe===1&&contains(_e,CJK_TEN_COEFFICIENTS)||Ie===1&&xe===1&&contains(_e,CJK_TEN_HIGH_COEFFICIENTS)&&Be>100||Ie===1&&xe>1&&contains(_e,CJK_HUNDRED_COEFFICIENTS)?Se=St[Ie]+(xe>0?Ae[xe-1]:"")+Se:Ie===1&&xe>0&&(Se=Ae[xe-1]+Se),Te=Math.floor(Te/10)}return(Be<0?Ee:"")+Se},CHINESE_INFORMAL_MULTIPLIERS="十百千萬",CHINESE_FORMAL_MULTIPLIERS="拾佰仟萬",JAPANESE_NEGATIVE="マイナス",KOREAN_NEGATIVE="마이너스",createCounterText=function(Be,St,Ae){var Ee=Ae?". ":"",Ce=Ae?"、":"",_e=Ae?", ":"",Te=Ae?" ":"";switch(St){case 0:return"•"+Te;case 1:return"◦"+Te;case 2:return"◾"+Te;case 5:var Se=createCounterStyleFromRange(Be,48,57,!0,Ee);return Se.length<4?"0"+Se:Se;case 4:return createCounterStyleFromSymbols(Be,"〇一二三四五六七八九",Ce);case 6:return createAdditiveCounter(Be,1,3999,ROMAN_UPPER,3,Ee).toLowerCase();case 7:return createAdditiveCounter(Be,1,3999,ROMAN_UPPER,3,Ee);case 8:return createCounterStyleFromRange(Be,945,969,!1,Ee);case 9:return createCounterStyleFromRange(Be,97,122,!1,Ee);case 10:return createCounterStyleFromRange(Be,65,90,!1,Ee);case 11:return createCounterStyleFromRange(Be,1632,1641,!0,Ee);case 12:case 49:return createAdditiveCounter(Be,1,9999,ARMENIAN,3,Ee);case 35:return createAdditiveCounter(Be,1,9999,ARMENIAN,3,Ee).toLowerCase();case 13:return createCounterStyleFromRange(Be,2534,2543,!0,Ee);case 14:case 30:return createCounterStyleFromRange(Be,6112,6121,!0,Ee);case 15:return createCounterStyleFromSymbols(Be,"子丑寅卯辰巳午未申酉戌亥",Ce);case 16:return createCounterStyleFromSymbols(Be,"甲乙丙丁戊己庚辛壬癸",Ce);case 17:case 48:return createCJKCounter(Be,"零一二三四五六七八九",CHINESE_INFORMAL_MULTIPLIERS,"負",Ce,CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 47:return createCJKCounter(Be,"零壹貳參肆伍陸柒捌玖",CHINESE_FORMAL_MULTIPLIERS,"負",Ce,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 42:return createCJKCounter(Be,"零一二三四五六七八九",CHINESE_INFORMAL_MULTIPLIERS,"负",Ce,CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 41:return createCJKCounter(Be,"零壹贰叁肆伍陆柒捌玖",CHINESE_FORMAL_MULTIPLIERS,"负",Ce,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 26:return createCJKCounter(Be,"〇一二三四五六七八九","十百千万",JAPANESE_NEGATIVE,Ce,0);case 25:return createCJKCounter(Be,"零壱弐参四伍六七八九","拾百千万",JAPANESE_NEGATIVE,Ce,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 31:return createCJKCounter(Be,"영일이삼사오육칠팔구","십백천만",KOREAN_NEGATIVE,_e,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 33:return createCJKCounter(Be,"零一二三四五六七八九","十百千萬",KOREAN_NEGATIVE,_e,0);case 32:return createCJKCounter(Be,"零壹貳參四五六七八九","拾百千",KOREAN_NEGATIVE,_e,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 18:return createCounterStyleFromRange(Be,2406,2415,!0,Ee);case 20:return createAdditiveCounter(Be,1,19999,GEORGIAN,3,Ee);case 21:return createCounterStyleFromRange(Be,2790,2799,!0,Ee);case 22:return createCounterStyleFromRange(Be,2662,2671,!0,Ee);case 22:return createAdditiveCounter(Be,1,10999,HEBREW,3,Ee);case 23:return createCounterStyleFromSymbols(Be,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return createCounterStyleFromSymbols(Be,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return createCounterStyleFromRange(Be,3302,3311,!0,Ee);case 28:return createCounterStyleFromSymbols(Be,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",Ce);case 29:return createCounterStyleFromSymbols(Be,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",Ce);case 34:return createCounterStyleFromRange(Be,3792,3801,!0,Ee);case 37:return createCounterStyleFromRange(Be,6160,6169,!0,Ee);case 38:return createCounterStyleFromRange(Be,4160,4169,!0,Ee);case 39:return createCounterStyleFromRange(Be,2918,2927,!0,Ee);case 40:return createCounterStyleFromRange(Be,1776,1785,!0,Ee);case 43:return createCounterStyleFromRange(Be,3046,3055,!0,Ee);case 44:return createCounterStyleFromRange(Be,3174,3183,!0,Ee);case 45:return createCounterStyleFromRange(Be,3664,3673,!0,Ee);case 46:return createCounterStyleFromRange(Be,3872,3881,!0,Ee);case 3:default:return createCounterStyleFromRange(Be,48,57,!0,Ee)}},IGNORE_ATTRIBUTE="data-html2canvas-ignore",DocumentCloner=function(){function Be(St,Ae,Ee){if(this.context=St,this.options=Ee,this.scrolledElements=[],this.referenceElement=Ae,this.counters=new CounterState,this.quoteDepth=0,!Ae.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ae.ownerDocument.documentElement,!1)}return Be.prototype.toIFrame=function(St,Ae){var Ee=this,Ce=createIFrameContainer(St,Ae);if(!Ce.contentWindow)return Promise.reject("Unable to find iframe window");var _e=St.defaultView.pageXOffset,Te=St.defaultView.pageYOffset,Se=Ce.contentWindow,xe=Se.document,Ie=iframeLoader(Ce).then(function(){return __awaiter(Ee,void 0,void 0,function(){var Ue,$e;return __generator(this,function(Me){switch(Me.label){case 0:return this.scrolledElements.forEach(restoreNodeScroll),Se&&(Se.scrollTo(Ae.left,Ae.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Se.scrollY!==Ae.top||Se.scrollX!==Ae.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Se.scrollX-Ae.left,Se.scrollY-Ae.top,0,0))),Ue=this.options.onclone,$e=this.clonedReferenceElement,typeof $e>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:xe.fonts&&xe.fonts.ready?[4,xe.fonts.ready]:[3,2];case 1:Me.sent(),Me.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,imagesReady(xe)]:[3,4];case 3:Me.sent(),Me.label=4;case 4:return typeof Ue=="function"?[2,Promise.resolve().then(function(){return Ue(xe,$e)}).then(function(){return Ce})]:[2,Ce]}})})});return xe.open(),xe.write(serializeDoctype(document.doctype)+"<html></html>"),restoreOwnerScroll(this.referenceElement.ownerDocument,_e,Te),xe.replaceChild(xe.adoptNode(this.documentElement),xe.documentElement),xe.close(),Ie},Be.prototype.createElementClone=function(St){if(isDebugging(St,2))debugger;if(isCanvasElement(St))return this.createCanvasClone(St);if(isVideoElement(St))return this.createVideoClone(St);if(isStyleElement(St))return this.createStyleClone(St);var Ae=St.cloneNode(!1);return isImageElement(Ae)&&(isImageElement(St)&&St.currentSrc&&St.currentSrc!==St.src&&(Ae.src=St.currentSrc,Ae.srcset=""),Ae.loading==="lazy"&&(Ae.loading="eager")),isCustomElement(Ae)?this.createCustomElementClone(Ae):Ae},Be.prototype.createCustomElementClone=function(St){var Ae=document.createElement("html2canvascustomelement");return copyCSSStyles(St.style,Ae),Ae},Be.prototype.createStyleClone=function(St){try{var Ae=St.sheet;if(Ae&&Ae.cssRules){var Ee=[].slice.call(Ae.cssRules,0).reduce(function(_e,Te){return Te&&typeof Te.cssText=="string"?_e+Te.cssText:_e},""),Ce=St.cloneNode(!1);return Ce.textContent=Ee,Ce}}catch(_e){if(this.context.logger.error("Unable to access cssRules property",_e),_e.name!=="SecurityError")throw _e}return St.cloneNode(!1)},Be.prototype.createCanvasClone=function(St){var Ae;if(this.options.inlineImages&&St.ownerDocument){var Ee=St.ownerDocument.createElement("img");try{return Ee.src=St.toDataURL(),Ee}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",St)}}var Ce=St.cloneNode(!1);try{Ce.width=St.width,Ce.height=St.height;var _e=St.getContext("2d"),Te=Ce.getContext("2d");if(Te)if(!this.options.allowTaint&&_e)Te.putImageData(_e.getImageData(0,0,St.width,St.height),0,0);else{var Se=(Ae=St.getContext("webgl2"))!==null&&Ae!==void 0?Ae:St.getContext("webgl");if(Se){var xe=Se.getContextAttributes();(xe==null?void 0:xe.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",St)}Te.drawImage(St,0,0)}return Ce}catch{this.context.logger.info("Unable to clone canvas as it is tainted",St)}return Ce},Be.prototype.createVideoClone=function(St){var Ae=St.ownerDocument.createElement("canvas");Ae.width=St.offsetWidth,Ae.height=St.offsetHeight;var Ee=Ae.getContext("2d");try{return Ee&&(Ee.drawImage(St,0,0,Ae.width,Ae.height),this.options.allowTaint||Ee.getImageData(0,0,Ae.width,Ae.height)),Ae}catch{this.context.logger.info("Unable to clone video as it is tainted",St)}var Ce=St.ownerDocument.createElement("canvas");return Ce.width=St.offsetWidth,Ce.height=St.offsetHeight,Ce},Be.prototype.appendChildNode=function(St,Ae,Ee){(!isElementNode(Ae)||!isScriptElement(Ae)&&!Ae.hasAttribute(IGNORE_ATTRIBUTE)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ae)))&&(!this.options.copyStyles||!isElementNode(Ae)||!isStyleElement(Ae))&&St.appendChild(this.cloneNode(Ae,Ee))},Be.prototype.cloneChildNodes=function(St,Ae,Ee){for(var Ce=this,_e=St.shadowRoot?St.shadowRoot.firstChild:St.firstChild;_e;_e=_e.nextSibling)if(isElementNode(_e)&&isSlotElement(_e)&&typeof _e.assignedNodes=="function"){var Te=_e.assignedNodes();Te.length&&Te.forEach(function(Se){return Ce.appendChildNode(Ae,Se,Ee)})}else this.appendChildNode(Ae,_e,Ee)},Be.prototype.cloneNode=function(St,Ae){if(isTextNode(St))return document.createTextNode(St.data);if(!St.ownerDocument)return St.cloneNode(!1);var Ee=St.ownerDocument.defaultView;if(Ee&&isElementNode(St)&&(isHTMLElementNode(St)||isSVGElementNode(St))){var Ce=this.createElementClone(St);Ce.style.transitionProperty="none";var _e=Ee.getComputedStyle(St),Te=Ee.getComputedStyle(St,":before"),Se=Ee.getComputedStyle(St,":after");this.referenceElement===St&&isHTMLElementNode(Ce)&&(this.clonedReferenceElement=Ce),isBodyElement(Ce)&&createPseudoHideStyles(Ce);var xe=this.counters.parse(new CSSParsedCounterDeclaration(this.context,_e)),Ie=this.resolvePseudoContent(St,Ce,Te,PseudoElementType.BEFORE);isCustomElement(St)&&(Ae=!0),isVideoElement(St)||this.cloneChildNodes(St,Ce,Ae),Ie&&Ce.insertBefore(Ie,Ce.firstChild);var Ue=this.resolvePseudoContent(St,Ce,Se,PseudoElementType.AFTER);return Ue&&Ce.appendChild(Ue),this.counters.pop(xe),(_e&&(this.options.copyStyles||isSVGElementNode(St))&&!isIFrameElement(St)||Ae)&&copyCSSStyles(_e,Ce),(St.scrollTop!==0||St.scrollLeft!==0)&&this.scrolledElements.push([Ce,St.scrollLeft,St.scrollTop]),(isTextareaElement(St)||isSelectElement(St))&&(isTextareaElement(Ce)||isSelectElement(Ce))&&(Ce.value=St.value),Ce}return St.cloneNode(!1)},Be.prototype.resolvePseudoContent=function(St,Ae,Ee,Ce){var _e=this;if(Ee){var Te=Ee.content,Se=Ae.ownerDocument;if(!(!Se||!Te||Te==="none"||Te==="-moz-alt-content"||Ee.display==="none")){this.counters.parse(new CSSParsedCounterDeclaration(this.context,Ee));var xe=new CSSParsedPseudoDeclaration(this.context,Ee),Ie=Se.createElement("html2canvaspseudoelement");copyCSSStyles(Ee,Ie),xe.content.forEach(function($e){if($e.type===0)Ie.appendChild(Se.createTextNode($e.value));else if($e.type===22){var Me=Se.createElement("img");Me.src=$e.value,Me.style.opacity="1",Ie.appendChild(Me)}else if($e.type===18){if($e.name==="attr"){var Re=$e.values.filter(isIdentToken);Re.length&&Ie.appendChild(Se.createTextNode(St.getAttribute(Re[0].value)||""))}else if($e.name==="counter"){var ze=$e.values.filter(nonFunctionArgSeparator),Ve=ze[0],nr=ze[1];if(Ve&&isIdentToken(Ve)){var Ze=_e.counters.getCounterValue(Ve.value),ar=nr&&isIdentToken(nr)?listStyleType.parse(_e.context,nr.value):3;Ie.appendChild(Se.createTextNode(createCounterText(Ze,ar,!1)))}}else if($e.name==="counters"){var fr=$e.values.filter(nonFunctionArgSeparator),Ve=fr[0],Ye=fr[1],nr=fr[2];if(Ve&&isIdentToken(Ve)){var Ar=_e.counters.getCounterValues(Ve.value),Oe=nr&&isIdentToken(nr)?listStyleType.parse(_e.context,nr.value):3,Je=Ye&&Ye.type===0?Ye.value:"",We=Ar.map(function(er){return createCounterText(er,Oe,!1)}).join(Je);Ie.appendChild(Se.createTextNode(We))}}}else if($e.type===20)switch($e.value){case"open-quote":Ie.appendChild(Se.createTextNode(getQuote(xe.quotes,_e.quoteDepth++,!0)));break;case"close-quote":Ie.appendChild(Se.createTextNode(getQuote(xe.quotes,--_e.quoteDepth,!1)));break;default:Ie.appendChild(Se.createTextNode($e.value))}}),Ie.className=PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+PSEUDO_HIDE_ELEMENT_CLASS_AFTER;var Ue=Ce===PseudoElementType.BEFORE?" "+PSEUDO_HIDE_ELEMENT_CLASS_BEFORE:" "+PSEUDO_HIDE_ELEMENT_CLASS_AFTER;return isSVGElementNode(Ae)?Ae.className.baseValue+=Ue:Ae.className+=Ue,Ie}}},Be.destroy=function(St){return St.parentNode?(St.parentNode.removeChild(St),!0):!1},Be}(),PseudoElementType;(function(Be){Be[Be.BEFORE=0]="BEFORE",Be[Be.AFTER=1]="AFTER"})(PseudoElementType||(PseudoElementType={}));var createIFrameContainer=function(Be,St){var Ae=Be.createElement("iframe");return Ae.className="html2canvas-container",Ae.style.visibility="hidden",Ae.style.position="fixed",Ae.style.left="-10000px",Ae.style.top="0px",Ae.style.border="0",Ae.width=St.width.toString(),Ae.height=St.height.toString(),Ae.scrolling="no",Ae.setAttribute(IGNORE_ATTRIBUTE,"true"),Be.body.appendChild(Ae),Ae},imageReady=function(Be){return new Promise(function(St){if(Be.complete){St();return}if(!Be.src){St();return}Be.onload=St,Be.onerror=St})},imagesReady=function(Be){return Promise.all([].slice.call(Be.images,0).map(imageReady))},iframeLoader=function(Be){return new Promise(function(St,Ae){var Ee=Be.contentWindow;if(!Ee)return Ae("No window assigned for iframe");var Ce=Ee.document;Ee.onload=Be.onload=function(){Ee.onload=Be.onload=null;var _e=setInterval(function(){Ce.body.childNodes.length>0&&Ce.readyState==="complete"&&(clearInterval(_e),St(Be))},50)}})},ignoredStyleProperties=["all","d","content"],copyCSSStyles=function(Be,St){for(var Ae=Be.length-1;Ae>=0;Ae--){var Ee=Be.item(Ae);ignoredStyleProperties.indexOf(Ee)===-1&&St.style.setProperty(Ee,Be.getPropertyValue(Ee))}return St},serializeDoctype=function(Be){var St="";return Be&&(St+="<!DOCTYPE ",Be.name&&(St+=Be.name),Be.internalSubset&&(St+=Be.internalSubset),Be.publicId&&(St+='"'+Be.publicId+'"'),Be.systemId&&(St+='"'+Be.systemId+'"'),St+=">"),St},restoreOwnerScroll=function(Be,St,Ae){Be&&Be.defaultView&&(St!==Be.defaultView.pageXOffset||Ae!==Be.defaultView.pageYOffset)&&Be.defaultView.scrollTo(St,Ae)},restoreNodeScroll=function(Be){var St=Be[0],Ae=Be[1],Ee=Be[2];St.scrollLeft=Ae,St.scrollTop=Ee},PSEUDO_BEFORE=":before",PSEUDO_AFTER=":after",PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",PSEUDO_HIDE_ELEMENT_STYLE=`{
    content: "" !important;
    display: none !important;
}`,createPseudoHideStyles=function(Be){createStyles(Be,"."+PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+PSEUDO_BEFORE+PSEUDO_HIDE_ELEMENT_STYLE+`
         .`+PSEUDO_HIDE_ELEMENT_CLASS_AFTER+PSEUDO_AFTER+PSEUDO_HIDE_ELEMENT_STYLE)},createStyles=function(Be,St){var Ae=Be.ownerDocument;if(Ae){var Ee=Ae.createElement("style");Ee.textContent=St,Be.appendChild(Ee)}},CacheStorage=function(){function Be(){}return Be.getOrigin=function(St){var Ae=Be._link;return Ae?(Ae.href=St,Ae.href=Ae.href,Ae.protocol+Ae.hostname+Ae.port):"about:blank"},Be.isSameOrigin=function(St){return Be.getOrigin(St)===Be._origin},Be.setContext=function(St){Be._link=St.document.createElement("a"),Be._origin=Be.getOrigin(St.location.href)},Be._origin="about:blank",Be}(),Cache=function(){function Be(St,Ae){this.context=St,this._options=Ae,this._cache={}}return Be.prototype.addImage=function(St){var Ae=Promise.resolve();return this.has(St)||(isBlobImage(St)||isRenderable(St))&&(this._cache[St]=this.loadImage(St)).catch(function(){}),Ae},Be.prototype.match=function(St){return this._cache[St]},Be.prototype.loadImage=function(St){return __awaiter(this,void 0,void 0,function(){var Ae,Ee,Ce,_e,Te=this;return __generator(this,function(Se){switch(Se.label){case 0:return Ae=CacheStorage.isSameOrigin(St),Ee=!isInlineImage(St)&&this._options.useCORS===!0&&FEATURES.SUPPORT_CORS_IMAGES&&!Ae,Ce=!isInlineImage(St)&&!Ae&&!isBlobImage(St)&&typeof this._options.proxy=="string"&&FEATURES.SUPPORT_CORS_XHR&&!Ee,!Ae&&this._options.allowTaint===!1&&!isInlineImage(St)&&!isBlobImage(St)&&!Ce&&!Ee?[2]:(_e=St,Ce?[4,this.proxy(_e)]:[3,2]);case 1:_e=Se.sent(),Se.label=2;case 2:return this.context.logger.debug("Added image "+St.substring(0,256)),[4,new Promise(function(xe,Ie){var Ue=new Image;Ue.onload=function(){return xe(Ue)},Ue.onerror=Ie,(isInlineBase64Image(_e)||Ee)&&(Ue.crossOrigin="anonymous"),Ue.src=_e,Ue.complete===!0&&setTimeout(function(){return xe(Ue)},500),Te._options.imageTimeout>0&&setTimeout(function(){return Ie("Timed out ("+Te._options.imageTimeout+"ms) loading image")},Te._options.imageTimeout)})];case 3:return[2,Se.sent()]}})})},Be.prototype.has=function(St){return typeof this._cache[St]<"u"},Be.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Be.prototype.proxy=function(St){var Ae=this,Ee=this._options.proxy;if(!Ee)throw new Error("No proxy defined");var Ce=St.substring(0,256);return new Promise(function(_e,Te){var Se=FEATURES.SUPPORT_RESPONSE_TYPE?"blob":"text",xe=new XMLHttpRequest;xe.onload=function(){if(xe.status===200)if(Se==="text")_e(xe.response);else{var $e=new FileReader;$e.addEventListener("load",function(){return _e($e.result)},!1),$e.addEventListener("error",function(Me){return Te(Me)},!1),$e.readAsDataURL(xe.response)}else Te("Failed to proxy resource "+Ce+" with status code "+xe.status)},xe.onerror=Te;var Ie=Ee.indexOf("?")>-1?"&":"?";if(xe.open("GET",""+Ee+Ie+"url="+encodeURIComponent(St)+"&responseType="+Se),Se!=="text"&&xe instanceof XMLHttpRequest&&(xe.responseType=Se),Ae._options.imageTimeout){var Ue=Ae._options.imageTimeout;xe.timeout=Ue,xe.ontimeout=function(){return Te("Timed out ("+Ue+"ms) proxying "+Ce)}}xe.send()})},Be}(),INLINE_SVG=/^data:image\/svg\+xml/i,INLINE_BASE64=/^data:image\/.*;base64,/i,INLINE_IMG=/^data:image\/.*/i,isRenderable=function(Be){return FEATURES.SUPPORT_SVG_DRAWING||!isSVG(Be)},isInlineImage=function(Be){return INLINE_IMG.test(Be)},isInlineBase64Image=function(Be){return INLINE_BASE64.test(Be)},isBlobImage=function(Be){return Be.substr(0,4)==="blob"},isSVG=function(Be){return Be.substr(-3).toLowerCase()==="svg"||INLINE_SVG.test(Be)},Vector=function(){function Be(St,Ae){this.type=0,this.x=St,this.y=Ae}return Be.prototype.add=function(St,Ae){return new Be(this.x+St,this.y+Ae)},Be}(),lerp=function(Be,St,Ae){return new Vector(Be.x+(St.x-Be.x)*Ae,Be.y+(St.y-Be.y)*Ae)},BezierCurve=function(){function Be(St,Ae,Ee,Ce){this.type=1,this.start=St,this.startControl=Ae,this.endControl=Ee,this.end=Ce}return Be.prototype.subdivide=function(St,Ae){var Ee=lerp(this.start,this.startControl,St),Ce=lerp(this.startControl,this.endControl,St),_e=lerp(this.endControl,this.end,St),Te=lerp(Ee,Ce,St),Se=lerp(Ce,_e,St),xe=lerp(Te,Se,St);return Ae?new Be(this.start,Ee,Te,xe):new Be(xe,Se,_e,this.end)},Be.prototype.add=function(St,Ae){return new Be(this.start.add(St,Ae),this.startControl.add(St,Ae),this.endControl.add(St,Ae),this.end.add(St,Ae))},Be.prototype.reverse=function(){return new Be(this.end,this.endControl,this.startControl,this.start)},Be}(),isBezierCurve=function(Be){return Be.type===1},BoundCurves=function(){function Be(St){var Ae=St.styles,Ee=St.bounds,Ce=getAbsoluteValueForTuple(Ae.borderTopLeftRadius,Ee.width,Ee.height),_e=Ce[0],Te=Ce[1],Se=getAbsoluteValueForTuple(Ae.borderTopRightRadius,Ee.width,Ee.height),xe=Se[0],Ie=Se[1],Ue=getAbsoluteValueForTuple(Ae.borderBottomRightRadius,Ee.width,Ee.height),$e=Ue[0],Me=Ue[1],Re=getAbsoluteValueForTuple(Ae.borderBottomLeftRadius,Ee.width,Ee.height),ze=Re[0],Ve=Re[1],nr=[];nr.push((_e+xe)/Ee.width),nr.push((ze+$e)/Ee.width),nr.push((Te+Ve)/Ee.height),nr.push((Ie+Me)/Ee.height);var Ze=Math.max.apply(Math,nr);Ze>1&&(_e/=Ze,Te/=Ze,xe/=Ze,Ie/=Ze,$e/=Ze,Me/=Ze,ze/=Ze,Ve/=Ze);var ar=Ee.width-xe,fr=Ee.height-Me,Ye=Ee.width-$e,Ar=Ee.height-Ve,Oe=Ae.borderTopWidth,Je=Ae.borderRightWidth,We=Ae.borderBottomWidth,or=Ae.borderLeftWidth,mr=getAbsoluteValue(Ae.paddingTop,St.bounds.width),er=getAbsoluteValue(Ae.paddingRight,St.bounds.width),ir=getAbsoluteValue(Ae.paddingBottom,St.bounds.width),gr=getAbsoluteValue(Ae.paddingLeft,St.bounds.width);this.topLeftBorderDoubleOuterBox=_e>0||Te>0?getCurvePoints(Ee.left+or/3,Ee.top+Oe/3,_e-or/3,Te-Oe/3,CORNER.TOP_LEFT):new Vector(Ee.left+or/3,Ee.top+Oe/3),this.topRightBorderDoubleOuterBox=_e>0||Te>0?getCurvePoints(Ee.left+ar,Ee.top+Oe/3,xe-Je/3,Ie-Oe/3,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je/3,Ee.top+Oe/3),this.bottomRightBorderDoubleOuterBox=$e>0||Me>0?getCurvePoints(Ee.left+Ye,Ee.top+fr,$e-Je/3,Me-We/3,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je/3,Ee.top+Ee.height-We/3),this.bottomLeftBorderDoubleOuterBox=ze>0||Ve>0?getCurvePoints(Ee.left+or/3,Ee.top+Ar,ze-or/3,Ve-We/3,CORNER.BOTTOM_LEFT):new Vector(Ee.left+or/3,Ee.top+Ee.height-We/3),this.topLeftBorderDoubleInnerBox=_e>0||Te>0?getCurvePoints(Ee.left+or*2/3,Ee.top+Oe*2/3,_e-or*2/3,Te-Oe*2/3,CORNER.TOP_LEFT):new Vector(Ee.left+or*2/3,Ee.top+Oe*2/3),this.topRightBorderDoubleInnerBox=_e>0||Te>0?getCurvePoints(Ee.left+ar,Ee.top+Oe*2/3,xe-Je*2/3,Ie-Oe*2/3,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je*2/3,Ee.top+Oe*2/3),this.bottomRightBorderDoubleInnerBox=$e>0||Me>0?getCurvePoints(Ee.left+Ye,Ee.top+fr,$e-Je*2/3,Me-We*2/3,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je*2/3,Ee.top+Ee.height-We*2/3),this.bottomLeftBorderDoubleInnerBox=ze>0||Ve>0?getCurvePoints(Ee.left+or*2/3,Ee.top+Ar,ze-or*2/3,Ve-We*2/3,CORNER.BOTTOM_LEFT):new Vector(Ee.left+or*2/3,Ee.top+Ee.height-We*2/3),this.topLeftBorderStroke=_e>0||Te>0?getCurvePoints(Ee.left+or/2,Ee.top+Oe/2,_e-or/2,Te-Oe/2,CORNER.TOP_LEFT):new Vector(Ee.left+or/2,Ee.top+Oe/2),this.topRightBorderStroke=_e>0||Te>0?getCurvePoints(Ee.left+ar,Ee.top+Oe/2,xe-Je/2,Ie-Oe/2,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je/2,Ee.top+Oe/2),this.bottomRightBorderStroke=$e>0||Me>0?getCurvePoints(Ee.left+Ye,Ee.top+fr,$e-Je/2,Me-We/2,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je/2,Ee.top+Ee.height-We/2),this.bottomLeftBorderStroke=ze>0||Ve>0?getCurvePoints(Ee.left+or/2,Ee.top+Ar,ze-or/2,Ve-We/2,CORNER.BOTTOM_LEFT):new Vector(Ee.left+or/2,Ee.top+Ee.height-We/2),this.topLeftBorderBox=_e>0||Te>0?getCurvePoints(Ee.left,Ee.top,_e,Te,CORNER.TOP_LEFT):new Vector(Ee.left,Ee.top),this.topRightBorderBox=xe>0||Ie>0?getCurvePoints(Ee.left+ar,Ee.top,xe,Ie,CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width,Ee.top),this.bottomRightBorderBox=$e>0||Me>0?getCurvePoints(Ee.left+Ye,Ee.top+fr,$e,Me,CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width,Ee.top+Ee.height),this.bottomLeftBorderBox=ze>0||Ve>0?getCurvePoints(Ee.left,Ee.top+Ar,ze,Ve,CORNER.BOTTOM_LEFT):new Vector(Ee.left,Ee.top+Ee.height),this.topLeftPaddingBox=_e>0||Te>0?getCurvePoints(Ee.left+or,Ee.top+Oe,Math.max(0,_e-or),Math.max(0,Te-Oe),CORNER.TOP_LEFT):new Vector(Ee.left+or,Ee.top+Oe),this.topRightPaddingBox=xe>0||Ie>0?getCurvePoints(Ee.left+Math.min(ar,Ee.width-Je),Ee.top+Oe,ar>Ee.width+Je?0:Math.max(0,xe-Je),Math.max(0,Ie-Oe),CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-Je,Ee.top+Oe),this.bottomRightPaddingBox=$e>0||Me>0?getCurvePoints(Ee.left+Math.min(Ye,Ee.width-or),Ee.top+Math.min(fr,Ee.height-We),Math.max(0,$e-Je),Math.max(0,Me-We),CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-Je,Ee.top+Ee.height-We),this.bottomLeftPaddingBox=ze>0||Ve>0?getCurvePoints(Ee.left+or,Ee.top+Math.min(Ar,Ee.height-We),Math.max(0,ze-or),Math.max(0,Ve-We),CORNER.BOTTOM_LEFT):new Vector(Ee.left+or,Ee.top+Ee.height-We),this.topLeftContentBox=_e>0||Te>0?getCurvePoints(Ee.left+or+gr,Ee.top+Oe+mr,Math.max(0,_e-(or+gr)),Math.max(0,Te-(Oe+mr)),CORNER.TOP_LEFT):new Vector(Ee.left+or+gr,Ee.top+Oe+mr),this.topRightContentBox=xe>0||Ie>0?getCurvePoints(Ee.left+Math.min(ar,Ee.width+or+gr),Ee.top+Oe+mr,ar>Ee.width+or+gr?0:xe-or+gr,Ie-(Oe+mr),CORNER.TOP_RIGHT):new Vector(Ee.left+Ee.width-(Je+er),Ee.top+Oe+mr),this.bottomRightContentBox=$e>0||Me>0?getCurvePoints(Ee.left+Math.min(Ye,Ee.width-(or+gr)),Ee.top+Math.min(fr,Ee.height+Oe+mr),Math.max(0,$e-(Je+er)),Me-(We+ir),CORNER.BOTTOM_RIGHT):new Vector(Ee.left+Ee.width-(Je+er),Ee.top+Ee.height-(We+ir)),this.bottomLeftContentBox=ze>0||Ve>0?getCurvePoints(Ee.left+or+gr,Ee.top+Ar,Math.max(0,ze-(or+gr)),Ve-(We+ir),CORNER.BOTTOM_LEFT):new Vector(Ee.left+or+gr,Ee.top+Ee.height-(We+ir))}return Be}(),CORNER;(function(Be){Be[Be.TOP_LEFT=0]="TOP_LEFT",Be[Be.TOP_RIGHT=1]="TOP_RIGHT",Be[Be.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Be[Be.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(CORNER||(CORNER={}));var getCurvePoints=function(Be,St,Ae,Ee,Ce){var _e=4*((Math.sqrt(2)-1)/3),Te=Ae*_e,Se=Ee*_e,xe=Be+Ae,Ie=St+Ee;switch(Ce){case CORNER.TOP_LEFT:return new BezierCurve(new Vector(Be,Ie),new Vector(Be,Ie-Se),new Vector(xe-Te,St),new Vector(xe,St));case CORNER.TOP_RIGHT:return new BezierCurve(new Vector(Be,St),new Vector(Be+Te,St),new Vector(xe,Ie-Se),new Vector(xe,Ie));case CORNER.BOTTOM_RIGHT:return new BezierCurve(new Vector(xe,St),new Vector(xe,St+Se),new Vector(Be+Te,Ie),new Vector(Be,Ie));case CORNER.BOTTOM_LEFT:default:return new BezierCurve(new Vector(xe,Ie),new Vector(xe-Te,Ie),new Vector(Be,St+Se),new Vector(Be,St))}},calculateBorderBoxPath=function(Be){return[Be.topLeftBorderBox,Be.topRightBorderBox,Be.bottomRightBorderBox,Be.bottomLeftBorderBox]},calculateContentBoxPath=function(Be){return[Be.topLeftContentBox,Be.topRightContentBox,Be.bottomRightContentBox,Be.bottomLeftContentBox]},calculatePaddingBoxPath=function(Be){return[Be.topLeftPaddingBox,Be.topRightPaddingBox,Be.bottomRightPaddingBox,Be.bottomLeftPaddingBox]},TransformEffect=function(){function Be(St,Ae,Ee){this.offsetX=St,this.offsetY=Ae,this.matrix=Ee,this.type=0,this.target=6}return Be}(),ClipEffect=function(){function Be(St,Ae){this.path=St,this.target=Ae,this.type=1}return Be}(),OpacityEffect=function(){function Be(St){this.opacity=St,this.type=2,this.target=6}return Be}(),isTransformEffect=function(Be){return Be.type===0},isClipEffect=function(Be){return Be.type===1},isOpacityEffect=function(Be){return Be.type===2},equalPath=function(Be,St){return Be.length===St.length?Be.some(function(Ae,Ee){return Ae===St[Ee]}):!1},transformPath=function(Be,St,Ae,Ee,Ce){return Be.map(function(_e,Te){switch(Te){case 0:return _e.add(St,Ae);case 1:return _e.add(St+Ee,Ae);case 2:return _e.add(St+Ee,Ae+Ce);case 3:return _e.add(St,Ae+Ce)}return _e})},StackingContext=function(){function Be(St){this.element=St,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Be}(),ElementPaint=function(){function Be(St,Ae){if(this.container=St,this.parent=Ae,this.effects=[],this.curves=new BoundCurves(this.container),this.container.styles.opacity<1&&this.effects.push(new OpacityEffect(this.container.styles.opacity)),this.container.styles.transform!==null){var Ee=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Ce=this.container.bounds.top+this.container.styles.transformOrigin[1].number,_e=this.container.styles.transform;this.effects.push(new TransformEffect(Ee,Ce,_e))}if(this.container.styles.overflowX!==0){var Te=calculateBorderBoxPath(this.curves),Se=calculatePaddingBoxPath(this.curves);equalPath(Te,Se)?this.effects.push(new ClipEffect(Te,6)):(this.effects.push(new ClipEffect(Te,2)),this.effects.push(new ClipEffect(Se,4)))}}return Be.prototype.getEffects=function(St){for(var Ae=[2,3].indexOf(this.container.styles.position)===-1,Ee=this.parent,Ce=this.effects.slice(0);Ee;){var _e=Ee.effects.filter(function(xe){return!isClipEffect(xe)});if(Ae||Ee.container.styles.position!==0||!Ee.parent){if(Ce.unshift.apply(Ce,_e),Ae=[2,3].indexOf(Ee.container.styles.position)===-1,Ee.container.styles.overflowX!==0){var Te=calculateBorderBoxPath(Ee.curves),Se=calculatePaddingBoxPath(Ee.curves);equalPath(Te,Se)||Ce.unshift(new ClipEffect(Se,6))}}else Ce.unshift.apply(Ce,_e);Ee=Ee.parent}return Ce.filter(function(xe){return contains(xe.target,St)})},Be}(),parseStackTree=function(Be,St,Ae,Ee){Be.container.elements.forEach(function(Ce){var _e=contains(Ce.flags,4),Te=contains(Ce.flags,2),Se=new ElementPaint(Ce,Be);contains(Ce.styles.display,2048)&&Ee.push(Se);var xe=contains(Ce.flags,8)?[]:Ee;if(_e||Te){var Ie=_e||Ce.styles.isPositioned()?Ae:St,Ue=new StackingContext(Se);if(Ce.styles.isPositioned()||Ce.styles.opacity<1||Ce.styles.isTransformed()){var $e=Ce.styles.zIndex.order;if($e<0){var Me=0;Ie.negativeZIndex.some(function(ze,Ve){return $e>ze.element.container.styles.zIndex.order?(Me=Ve,!1):Me>0}),Ie.negativeZIndex.splice(Me,0,Ue)}else if($e>0){var Re=0;Ie.positiveZIndex.some(function(ze,Ve){return $e>=ze.element.container.styles.zIndex.order?(Re=Ve+1,!1):Re>0}),Ie.positiveZIndex.splice(Re,0,Ue)}else Ie.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ue)}else Ce.styles.isFloating()?Ie.nonPositionedFloats.push(Ue):Ie.nonPositionedInlineLevel.push(Ue);parseStackTree(Se,Ue,_e?Ue:Ae,xe)}else Ce.styles.isInlineLevel()?St.inlineLevel.push(Se):St.nonInlineLevel.push(Se),parseStackTree(Se,St,Ae,xe);contains(Ce.flags,8)&&processListItems(Ce,xe)})},processListItems=function(Be,St){for(var Ae=Be instanceof OLElementContainer?Be.start:1,Ee=Be instanceof OLElementContainer?Be.reversed:!1,Ce=0;Ce<St.length;Ce++){var _e=St[Ce];_e.container instanceof LIElementContainer&&typeof _e.container.value=="number"&&_e.container.value!==0&&(Ae=_e.container.value),_e.listValue=createCounterText(Ae,_e.container.styles.listStyleType,!0),Ae+=Ee?-1:1}},parseStackingContexts=function(Be){var St=new ElementPaint(Be,null),Ae=new StackingContext(St),Ee=[];return parseStackTree(St,Ae,Ae,Ee),processListItems(St.container,Ee),Ae},parsePathForBorder=function(Be,St){switch(St){case 0:return createPathFromCurves(Be.topLeftBorderBox,Be.topLeftPaddingBox,Be.topRightBorderBox,Be.topRightPaddingBox);case 1:return createPathFromCurves(Be.topRightBorderBox,Be.topRightPaddingBox,Be.bottomRightBorderBox,Be.bottomRightPaddingBox);case 2:return createPathFromCurves(Be.bottomRightBorderBox,Be.bottomRightPaddingBox,Be.bottomLeftBorderBox,Be.bottomLeftPaddingBox);case 3:default:return createPathFromCurves(Be.bottomLeftBorderBox,Be.bottomLeftPaddingBox,Be.topLeftBorderBox,Be.topLeftPaddingBox)}},parsePathForBorderDoubleOuter=function(Be,St){switch(St){case 0:return createPathFromCurves(Be.topLeftBorderBox,Be.topLeftBorderDoubleOuterBox,Be.topRightBorderBox,Be.topRightBorderDoubleOuterBox);case 1:return createPathFromCurves(Be.topRightBorderBox,Be.topRightBorderDoubleOuterBox,Be.bottomRightBorderBox,Be.bottomRightBorderDoubleOuterBox);case 2:return createPathFromCurves(Be.bottomRightBorderBox,Be.bottomRightBorderDoubleOuterBox,Be.bottomLeftBorderBox,Be.bottomLeftBorderDoubleOuterBox);case 3:default:return createPathFromCurves(Be.bottomLeftBorderBox,Be.bottomLeftBorderDoubleOuterBox,Be.topLeftBorderBox,Be.topLeftBorderDoubleOuterBox)}},parsePathForBorderDoubleInner=function(Be,St){switch(St){case 0:return createPathFromCurves(Be.topLeftBorderDoubleInnerBox,Be.topLeftPaddingBox,Be.topRightBorderDoubleInnerBox,Be.topRightPaddingBox);case 1:return createPathFromCurves(Be.topRightBorderDoubleInnerBox,Be.topRightPaddingBox,Be.bottomRightBorderDoubleInnerBox,Be.bottomRightPaddingBox);case 2:return createPathFromCurves(Be.bottomRightBorderDoubleInnerBox,Be.bottomRightPaddingBox,Be.bottomLeftBorderDoubleInnerBox,Be.bottomLeftPaddingBox);case 3:default:return createPathFromCurves(Be.bottomLeftBorderDoubleInnerBox,Be.bottomLeftPaddingBox,Be.topLeftBorderDoubleInnerBox,Be.topLeftPaddingBox)}},parsePathForBorderStroke=function(Be,St){switch(St){case 0:return createStrokePathFromCurves(Be.topLeftBorderStroke,Be.topRightBorderStroke);case 1:return createStrokePathFromCurves(Be.topRightBorderStroke,Be.bottomRightBorderStroke);case 2:return createStrokePathFromCurves(Be.bottomRightBorderStroke,Be.bottomLeftBorderStroke);case 3:default:return createStrokePathFromCurves(Be.bottomLeftBorderStroke,Be.topLeftBorderStroke)}},createStrokePathFromCurves=function(Be,St){var Ae=[];return isBezierCurve(Be)?Ae.push(Be.subdivide(.5,!1)):Ae.push(Be),isBezierCurve(St)?Ae.push(St.subdivide(.5,!0)):Ae.push(St),Ae},createPathFromCurves=function(Be,St,Ae,Ee){var Ce=[];return isBezierCurve(Be)?Ce.push(Be.subdivide(.5,!1)):Ce.push(Be),isBezierCurve(Ae)?Ce.push(Ae.subdivide(.5,!0)):Ce.push(Ae),isBezierCurve(Ee)?Ce.push(Ee.subdivide(.5,!0).reverse()):Ce.push(Ee),isBezierCurve(St)?Ce.push(St.subdivide(.5,!1).reverse()):Ce.push(St),Ce},paddingBox=function(Be){var St=Be.bounds,Ae=Be.styles;return St.add(Ae.borderLeftWidth,Ae.borderTopWidth,-(Ae.borderRightWidth+Ae.borderLeftWidth),-(Ae.borderTopWidth+Ae.borderBottomWidth))},contentBox=function(Be){var St=Be.styles,Ae=Be.bounds,Ee=getAbsoluteValue(St.paddingLeft,Ae.width),Ce=getAbsoluteValue(St.paddingRight,Ae.width),_e=getAbsoluteValue(St.paddingTop,Ae.width),Te=getAbsoluteValue(St.paddingBottom,Ae.width);return Ae.add(Ee+St.borderLeftWidth,_e+St.borderTopWidth,-(St.borderRightWidth+St.borderLeftWidth+Ee+Ce),-(St.borderTopWidth+St.borderBottomWidth+_e+Te))},calculateBackgroundPositioningArea=function(Be,St){return Be===0?St.bounds:Be===2?contentBox(St):paddingBox(St)},calculateBackgroundPaintingArea=function(Be,St){return Be===0?St.bounds:Be===2?contentBox(St):paddingBox(St)},calculateBackgroundRendering=function(Be,St,Ae){var Ee=calculateBackgroundPositioningArea(getBackgroundValueForIndex(Be.styles.backgroundOrigin,St),Be),Ce=calculateBackgroundPaintingArea(getBackgroundValueForIndex(Be.styles.backgroundClip,St),Be),_e=calculateBackgroundSize(getBackgroundValueForIndex(Be.styles.backgroundSize,St),Ae,Ee),Te=_e[0],Se=_e[1],xe=getAbsoluteValueForTuple(getBackgroundValueForIndex(Be.styles.backgroundPosition,St),Ee.width-Te,Ee.height-Se),Ie=calculateBackgroundRepeatPath(getBackgroundValueForIndex(Be.styles.backgroundRepeat,St),xe,_e,Ee,Ce),Ue=Math.round(Ee.left+xe[0]),$e=Math.round(Ee.top+xe[1]);return[Ie,Ue,$e,Te,Se]},isAuto=function(Be){return isIdentToken(Be)&&Be.value===BACKGROUND_SIZE.AUTO},hasIntrinsicValue=function(Be){return typeof Be=="number"},calculateBackgroundSize=function(Be,St,Ae){var Ee=St[0],Ce=St[1],_e=St[2],Te=Be[0],Se=Be[1];if(!Te)return[0,0];if(isLengthPercentage(Te)&&Se&&isLengthPercentage(Se))return[getAbsoluteValue(Te,Ae.width),getAbsoluteValue(Se,Ae.height)];var xe=hasIntrinsicValue(_e);if(isIdentToken(Te)&&(Te.value===BACKGROUND_SIZE.CONTAIN||Te.value===BACKGROUND_SIZE.COVER)){if(hasIntrinsicValue(_e)){var Ie=Ae.width/Ae.height;return Ie<_e!=(Te.value===BACKGROUND_SIZE.COVER)?[Ae.width,Ae.width/_e]:[Ae.height*_e,Ae.height]}return[Ae.width,Ae.height]}var Ue=hasIntrinsicValue(Ee),$e=hasIntrinsicValue(Ce),Me=Ue||$e;if(isAuto(Te)&&(!Se||isAuto(Se))){if(Ue&&$e)return[Ee,Ce];if(!xe&&!Me)return[Ae.width,Ae.height];if(Me&&xe){var Re=Ue?Ee:Ce*_e,ze=$e?Ce:Ee/_e;return[Re,ze]}var Ve=Ue?Ee:Ae.width,nr=$e?Ce:Ae.height;return[Ve,nr]}if(xe){var Ze=0,ar=0;return isLengthPercentage(Te)?Ze=getAbsoluteValue(Te,Ae.width):isLengthPercentage(Se)&&(ar=getAbsoluteValue(Se,Ae.height)),isAuto(Te)?Ze=ar*_e:(!Se||isAuto(Se))&&(ar=Ze/_e),[Ze,ar]}var fr=null,Ye=null;if(isLengthPercentage(Te)?fr=getAbsoluteValue(Te,Ae.width):Se&&isLengthPercentage(Se)&&(Ye=getAbsoluteValue(Se,Ae.height)),fr!==null&&(!Se||isAuto(Se))&&(Ye=Ue&&$e?fr/Ee*Ce:Ae.height),Ye!==null&&isAuto(Te)&&(fr=Ue&&$e?Ye/Ce*Ee:Ae.width),fr!==null&&Ye!==null)return[fr,Ye];throw new Error("Unable to calculate background-size for element")},getBackgroundValueForIndex=function(Be,St){var Ae=Be[St];return typeof Ae>"u"?Be[0]:Ae},calculateBackgroundRepeatPath=function(Be,St,Ae,Ee,Ce){var _e=St[0],Te=St[1],Se=Ae[0],xe=Ae[1];switch(Be){case 2:return[new Vector(Math.round(Ee.left),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+Ee.width),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+Ee.width),Math.round(xe+Ee.top+Te)),new Vector(Math.round(Ee.left),Math.round(xe+Ee.top+Te))];case 3:return[new Vector(Math.round(Ee.left+_e),Math.round(Ee.top)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.top)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.height+Ee.top)),new Vector(Math.round(Ee.left+_e),Math.round(Ee.height+Ee.top))];case 1:return[new Vector(Math.round(Ee.left+_e),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.top+Te)),new Vector(Math.round(Ee.left+_e+Se),Math.round(Ee.top+Te+xe)),new Vector(Math.round(Ee.left+_e),Math.round(Ee.top+Te+xe))];default:return[new Vector(Math.round(Ce.left),Math.round(Ce.top)),new Vector(Math.round(Ce.left+Ce.width),Math.round(Ce.top)),new Vector(Math.round(Ce.left+Ce.width),Math.round(Ce.height+Ce.top)),new Vector(Math.round(Ce.left),Math.round(Ce.height+Ce.top))]}},SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",SAMPLE_TEXT="Hidden Text",FontMetrics=function(){function Be(St){this._data={},this._document=St}return Be.prototype.parseMetrics=function(St,Ae){var Ee=this._document.createElement("div"),Ce=this._document.createElement("img"),_e=this._document.createElement("span"),Te=this._document.body;Ee.style.visibility="hidden",Ee.style.fontFamily=St,Ee.style.fontSize=Ae,Ee.style.margin="0",Ee.style.padding="0",Ee.style.whiteSpace="nowrap",Te.appendChild(Ee),Ce.src=SMALL_IMAGE,Ce.width=1,Ce.height=1,Ce.style.margin="0",Ce.style.padding="0",Ce.style.verticalAlign="baseline",_e.style.fontFamily=St,_e.style.fontSize=Ae,_e.style.margin="0",_e.style.padding="0",_e.appendChild(this._document.createTextNode(SAMPLE_TEXT)),Ee.appendChild(_e),Ee.appendChild(Ce);var Se=Ce.offsetTop-_e.offsetTop+2;Ee.removeChild(_e),Ee.appendChild(this._document.createTextNode(SAMPLE_TEXT)),Ee.style.lineHeight="normal",Ce.style.verticalAlign="super";var xe=Ce.offsetTop-Ee.offsetTop+2;return Te.removeChild(Ee),{baseline:Se,middle:xe}},Be.prototype.getMetrics=function(St,Ae){var Ee=St+" "+Ae;return typeof this._data[Ee]>"u"&&(this._data[Ee]=this.parseMetrics(St,Ae)),this._data[Ee]},Be}(),Renderer=function(){function Be(St,Ae){this.context=St,this.options=Ae}return Be}(),MASK_OFFSET=1e4,CanvasRenderer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce._activeEffects=[],Ce.canvas=Ee.canvas?Ee.canvas:document.createElement("canvas"),Ce.ctx=Ce.canvas.getContext("2d"),Ee.canvas||(Ce.canvas.width=Math.floor(Ee.width*Ee.scale),Ce.canvas.height=Math.floor(Ee.height*Ee.scale),Ce.canvas.style.width=Ee.width+"px",Ce.canvas.style.height=Ee.height+"px"),Ce.fontMetrics=new FontMetrics(document),Ce.ctx.scale(Ce.options.scale,Ce.options.scale),Ce.ctx.translate(-Ee.x,-Ee.y),Ce.ctx.textBaseline="bottom",Ce._activeEffects=[],Ce.context.logger.debug("Canvas renderer initialized ("+Ee.width+"x"+Ee.height+") with scale "+Ee.scale),Ce}return St.prototype.applyEffects=function(Ae){for(var Ee=this;this._activeEffects.length;)this.popEffect();Ae.forEach(function(Ce){return Ee.applyEffect(Ce)})},St.prototype.applyEffect=function(Ae){this.ctx.save(),isOpacityEffect(Ae)&&(this.ctx.globalAlpha=Ae.opacity),isTransformEffect(Ae)&&(this.ctx.translate(Ae.offsetX,Ae.offsetY),this.ctx.transform(Ae.matrix[0],Ae.matrix[1],Ae.matrix[2],Ae.matrix[3],Ae.matrix[4],Ae.matrix[5]),this.ctx.translate(-Ae.offsetX,-Ae.offsetY)),isClipEffect(Ae)&&(this.path(Ae.path),this.ctx.clip()),this._activeEffects.push(Ae)},St.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},St.prototype.renderStack=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee;return __generator(this,function(Ce){switch(Ce.label){case 0:return Ee=Ae.element.container.styles,Ee.isVisible()?[4,this.renderStackContent(Ae)]:[3,2];case 1:Ce.sent(),Ce.label=2;case 2:return[2]}})})},St.prototype.renderNode=function(Ae){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(Ee){switch(Ee.label){case 0:if(contains(Ae.container.flags,16))debugger;return Ae.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ae)]:[3,3];case 1:return Ee.sent(),[4,this.renderNodeContent(Ae)];case 2:Ee.sent(),Ee.label=3;case 3:return[2]}})})},St.prototype.renderTextWithLetterSpacing=function(Ae,Ee,Ce){var _e=this;if(Ee===0)this.ctx.fillText(Ae.text,Ae.bounds.left,Ae.bounds.top+Ce);else{var Te=segmentGraphemes(Ae.text);Te.reduce(function(Se,xe){return _e.ctx.fillText(xe,Se,Ae.bounds.top+Ce),Se+_e.ctx.measureText(xe).width},Ae.bounds.left)}},St.prototype.createFontStyle=function(Ae){var Ee=Ae.fontVariant.filter(function(Te){return Te==="normal"||Te==="small-caps"}).join(""),Ce=fixIOSSystemFonts(Ae.fontFamily).join(", "),_e=isDimensionToken(Ae.fontSize)?""+Ae.fontSize.number+Ae.fontSize.unit:Ae.fontSize.number+"px";return[[Ae.fontStyle,Ee,Ae.fontWeight,_e,Ce].join(" "),Ce,_e]},St.prototype.renderTextNode=function(Ae,Ee){return __awaiter(this,void 0,void 0,function(){var Ce,_e,Te,Se,xe,Ie,Ue,$e,Me=this;return __generator(this,function(Re){return Ce=this.createFontStyle(Ee),_e=Ce[0],Te=Ce[1],Se=Ce[2],this.ctx.font=_e,this.ctx.direction=Ee.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",xe=this.fontMetrics.getMetrics(Te,Se),Ie=xe.baseline,Ue=xe.middle,$e=Ee.paintOrder,Ae.textBounds.forEach(function(ze){$e.forEach(function(Ve){switch(Ve){case 0:Me.ctx.fillStyle=asString(Ee.color),Me.renderTextWithLetterSpacing(ze,Ee.letterSpacing,Ie);var nr=Ee.textShadow;nr.length&&ze.text.trim().length&&(nr.slice(0).reverse().forEach(function(Ze){Me.ctx.shadowColor=asString(Ze.color),Me.ctx.shadowOffsetX=Ze.offsetX.number*Me.options.scale,Me.ctx.shadowOffsetY=Ze.offsetY.number*Me.options.scale,Me.ctx.shadowBlur=Ze.blur.number,Me.renderTextWithLetterSpacing(ze,Ee.letterSpacing,Ie)}),Me.ctx.shadowColor="",Me.ctx.shadowOffsetX=0,Me.ctx.shadowOffsetY=0,Me.ctx.shadowBlur=0),Ee.textDecorationLine.length&&(Me.ctx.fillStyle=asString(Ee.textDecorationColor||Ee.color),Ee.textDecorationLine.forEach(function(Ze){switch(Ze){case 1:Me.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top+Ie),ze.bounds.width,1);break;case 2:Me.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top),ze.bounds.width,1);break;case 3:Me.ctx.fillRect(ze.bounds.left,Math.ceil(ze.bounds.top+Ue),ze.bounds.width,1);break}}));break;case 1:Ee.webkitTextStrokeWidth&&ze.text.trim().length&&(Me.ctx.strokeStyle=asString(Ee.webkitTextStrokeColor),Me.ctx.lineWidth=Ee.webkitTextStrokeWidth,Me.ctx.lineJoin=window.chrome?"miter":"round",Me.ctx.strokeText(ze.text,ze.bounds.left,ze.bounds.top+Ie)),Me.ctx.strokeStyle="",Me.ctx.lineWidth=0,Me.ctx.lineJoin="miter";break}})}),[2]})})},St.prototype.renderReplacedElement=function(Ae,Ee,Ce){if(Ce&&Ae.intrinsicWidth>0&&Ae.intrinsicHeight>0){var _e=contentBox(Ae),Te=calculatePaddingBoxPath(Ee);this.path(Te),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Ce,0,0,Ae.intrinsicWidth,Ae.intrinsicHeight,_e.left,_e.top,_e.width,_e.height),this.ctx.restore()}},St.prototype.renderNodeContent=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,_e,Te,Se,xe,ar,ar,Ie,Ue,$e,Me,Ye,Re,ze,Ar,Ve,nr,Ze,ar,fr,Ye,Ar;return __generator(this,function(Oe){switch(Oe.label){case 0:this.applyEffects(Ae.getEffects(4)),Ee=Ae.container,Ce=Ae.curves,_e=Ee.styles,Te=0,Se=Ee.textNodes,Oe.label=1;case 1:return Te<Se.length?(xe=Se[Te],[4,this.renderTextNode(xe,_e)]):[3,4];case 2:Oe.sent(),Oe.label=3;case 3:return Te++,[3,1];case 4:if(!(Ee instanceof ImageElementContainer))return[3,8];Oe.label=5;case 5:return Oe.trys.push([5,7,,8]),[4,this.context.cache.match(Ee.src)];case 6:return ar=Oe.sent(),this.renderReplacedElement(Ee,Ce,ar),[3,8];case 7:return Oe.sent(),this.context.logger.error("Error loading image "+Ee.src),[3,8];case 8:if(Ee instanceof CanvasElementContainer&&this.renderReplacedElement(Ee,Ce,Ee.canvas),!(Ee instanceof SVGElementContainer))return[3,12];Oe.label=9;case 9:return Oe.trys.push([9,11,,12]),[4,this.context.cache.match(Ee.svg)];case 10:return ar=Oe.sent(),this.renderReplacedElement(Ee,Ce,ar),[3,12];case 11:return Oe.sent(),this.context.logger.error("Error loading svg "+Ee.svg.substring(0,255)),[3,12];case 12:return Ee instanceof IFrameElementContainer&&Ee.tree?(Ie=new St(this.context,{scale:this.options.scale,backgroundColor:Ee.backgroundColor,x:0,y:0,width:Ee.width,height:Ee.height}),[4,Ie.render(Ee.tree)]):[3,14];case 13:Ue=Oe.sent(),Ee.width&&Ee.height&&this.ctx.drawImage(Ue,0,0,Ee.width,Ee.height,Ee.bounds.left,Ee.bounds.top,Ee.bounds.width,Ee.bounds.height),Oe.label=14;case 14:if(Ee instanceof InputElementContainer&&($e=Math.min(Ee.bounds.width,Ee.bounds.height),Ee.type===CHECKBOX?Ee.checked&&(this.ctx.save(),this.path([new Vector(Ee.bounds.left+$e*.39363,Ee.bounds.top+$e*.79),new Vector(Ee.bounds.left+$e*.16,Ee.bounds.top+$e*.5549),new Vector(Ee.bounds.left+$e*.27347,Ee.bounds.top+$e*.44071),new Vector(Ee.bounds.left+$e*.39694,Ee.bounds.top+$e*.5649),new Vector(Ee.bounds.left+$e*.72983,Ee.bounds.top+$e*.23),new Vector(Ee.bounds.left+$e*.84,Ee.bounds.top+$e*.34085),new Vector(Ee.bounds.left+$e*.39363,Ee.bounds.top+$e*.79)]),this.ctx.fillStyle=asString(INPUT_COLOR),this.ctx.fill(),this.ctx.restore()):Ee.type===RADIO&&Ee.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Ee.bounds.left+$e/2,Ee.bounds.top+$e/2,$e/4,0,Math.PI*2,!0),this.ctx.fillStyle=asString(INPUT_COLOR),this.ctx.fill(),this.ctx.restore())),isTextInputElement(Ee)&&Ee.value.length){switch(Me=this.createFontStyle(_e),Ye=Me[0],Re=Me[1],ze=this.fontMetrics.getMetrics(Ye,Re).baseline,this.ctx.font=Ye,this.ctx.fillStyle=asString(_e.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=canvasTextAlign(Ee.styles.textAlign),Ar=contentBox(Ee),Ve=0,Ee.styles.textAlign){case 1:Ve+=Ar.width/2;break;case 2:Ve+=Ar.width;break}nr=Ar.add(Ve,0,0,-Ar.height/2+1),this.ctx.save(),this.path([new Vector(Ar.left,Ar.top),new Vector(Ar.left+Ar.width,Ar.top),new Vector(Ar.left+Ar.width,Ar.top+Ar.height),new Vector(Ar.left,Ar.top+Ar.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new TextBounds(Ee.value,nr),_e.letterSpacing,ze),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!contains(Ee.styles.display,2048))return[3,20];if(Ee.styles.listStyleImage===null)return[3,19];if(Ze=Ee.styles.listStyleImage,Ze.type!==0)return[3,18];ar=void 0,fr=Ze.url,Oe.label=15;case 15:return Oe.trys.push([15,17,,18]),[4,this.context.cache.match(fr)];case 16:return ar=Oe.sent(),this.ctx.drawImage(ar,Ee.bounds.left-(ar.width+10),Ee.bounds.top),[3,18];case 17:return Oe.sent(),this.context.logger.error("Error loading list-style-image "+fr),[3,18];case 18:return[3,20];case 19:Ae.listValue&&Ee.styles.listStyleType!==-1&&(Ye=this.createFontStyle(_e)[0],this.ctx.font=Ye,this.ctx.fillStyle=asString(_e.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Ar=new Bounds(Ee.bounds.left,Ee.bounds.top+getAbsoluteValue(Ee.styles.paddingTop,Ee.bounds.width),Ee.bounds.width,computeLineHeight(_e.lineHeight,_e.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new TextBounds(Ae.listValue,Ar),_e.letterSpacing,computeLineHeight(_e.lineHeight,_e.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Oe.label=20;case 20:return[2]}})})},St.prototype.renderStackContent=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,Ze,_e,Te,Ze,Se,xe,Ze,Ie,Ue,Ze,$e,Me,Ze,Re,ze,Ze,Ve,nr,Ze;return __generator(this,function(ar){switch(ar.label){case 0:if(contains(Ae.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ae.element)];case 1:ar.sent(),Ee=0,Ce=Ae.negativeZIndex,ar.label=2;case 2:return Ee<Ce.length?(Ze=Ce[Ee],[4,this.renderStack(Ze)]):[3,5];case 3:ar.sent(),ar.label=4;case 4:return Ee++,[3,2];case 5:return[4,this.renderNodeContent(Ae.element)];case 6:ar.sent(),_e=0,Te=Ae.nonInlineLevel,ar.label=7;case 7:return _e<Te.length?(Ze=Te[_e],[4,this.renderNode(Ze)]):[3,10];case 8:ar.sent(),ar.label=9;case 9:return _e++,[3,7];case 10:Se=0,xe=Ae.nonPositionedFloats,ar.label=11;case 11:return Se<xe.length?(Ze=xe[Se],[4,this.renderStack(Ze)]):[3,14];case 12:ar.sent(),ar.label=13;case 13:return Se++,[3,11];case 14:Ie=0,Ue=Ae.nonPositionedInlineLevel,ar.label=15;case 15:return Ie<Ue.length?(Ze=Ue[Ie],[4,this.renderStack(Ze)]):[3,18];case 16:ar.sent(),ar.label=17;case 17:return Ie++,[3,15];case 18:$e=0,Me=Ae.inlineLevel,ar.label=19;case 19:return $e<Me.length?(Ze=Me[$e],[4,this.renderNode(Ze)]):[3,22];case 20:ar.sent(),ar.label=21;case 21:return $e++,[3,19];case 22:Re=0,ze=Ae.zeroOrAutoZIndexOrTransformedOrOpacity,ar.label=23;case 23:return Re<ze.length?(Ze=ze[Re],[4,this.renderStack(Ze)]):[3,26];case 24:ar.sent(),ar.label=25;case 25:return Re++,[3,23];case 26:Ve=0,nr=Ae.positiveZIndex,ar.label=27;case 27:return Ve<nr.length?(Ze=nr[Ve],[4,this.renderStack(Ze)]):[3,30];case 28:ar.sent(),ar.label=29;case 29:return Ve++,[3,27];case 30:return[2]}})})},St.prototype.mask=function(Ae){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(Ae.slice(0).reverse()),this.ctx.closePath()},St.prototype.path=function(Ae){this.ctx.beginPath(),this.formatPath(Ae),this.ctx.closePath()},St.prototype.formatPath=function(Ae){var Ee=this;Ae.forEach(function(Ce,_e){var Te=isBezierCurve(Ce)?Ce.start:Ce;_e===0?Ee.ctx.moveTo(Te.x,Te.y):Ee.ctx.lineTo(Te.x,Te.y),isBezierCurve(Ce)&&Ee.ctx.bezierCurveTo(Ce.startControl.x,Ce.startControl.y,Ce.endControl.x,Ce.endControl.y,Ce.end.x,Ce.end.y)})},St.prototype.renderRepeat=function(Ae,Ee,Ce,_e){this.path(Ae),this.ctx.fillStyle=Ee,this.ctx.translate(Ce,_e),this.ctx.fill(),this.ctx.translate(-Ce,-_e)},St.prototype.resizeImage=function(Ae,Ee,Ce){var _e;if(Ae.width===Ee&&Ae.height===Ce)return Ae;var Te=(_e=this.canvas.ownerDocument)!==null&&_e!==void 0?_e:document,Se=Te.createElement("canvas");Se.width=Math.max(1,Ee),Se.height=Math.max(1,Ce);var xe=Se.getContext("2d");return xe.drawImage(Ae,0,0,Ae.width,Ae.height,0,0,Ee,Ce),Se},St.prototype.renderBackgroundImage=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,_e,Te,Se,xe;return __generator(this,function(Ie){switch(Ie.label){case 0:Ee=Ae.styles.backgroundImage.length-1,Ce=function(Ue){var $e,Me,Re,mr,Nr,Hr,gr,vr,We,ze,mr,Nr,Hr,gr,vr,Ve,nr,Ze,ar,fr,Ye,Ar,Oe,Je,We,or,mr,er,ir,gr,vr,Or,Nr,Hr,Dr,kr,qr,An,lr,Tr,xr,$r;return __generator(this,function(Qr){switch(Qr.label){case 0:if(Ue.type!==0)return[3,5];$e=void 0,Me=Ue.url,Qr.label=1;case 1:return Qr.trys.push([1,3,,4]),[4,_e.context.cache.match(Me)];case 2:return $e=Qr.sent(),[3,4];case 3:return Qr.sent(),_e.context.logger.error("Error loading background-image "+Me),[3,4];case 4:return $e&&(Re=calculateBackgroundRendering(Ae,Ee,[$e.width,$e.height,$e.width/$e.height]),mr=Re[0],Nr=Re[1],Hr=Re[2],gr=Re[3],vr=Re[4],We=_e.ctx.createPattern(_e.resizeImage($e,gr,vr),"repeat"),_e.renderRepeat(mr,We,Nr,Hr)),[3,6];case 5:isLinearGradient(Ue)?(ze=calculateBackgroundRendering(Ae,Ee,[null,null,null]),mr=ze[0],Nr=ze[1],Hr=ze[2],gr=ze[3],vr=ze[4],Ve=calculateGradientDirection(Ue.angle,gr,vr),nr=Ve[0],Ze=Ve[1],ar=Ve[2],fr=Ve[3],Ye=Ve[4],Ar=document.createElement("canvas"),Ar.width=gr,Ar.height=vr,Oe=Ar.getContext("2d"),Je=Oe.createLinearGradient(Ze,fr,ar,Ye),processColorStops(Ue.stops,nr).forEach(function(Jr){return Je.addColorStop(Jr.stop,asString(Jr.color))}),Oe.fillStyle=Je,Oe.fillRect(0,0,gr,vr),gr>0&&vr>0&&(We=_e.ctx.createPattern(Ar,"repeat"),_e.renderRepeat(mr,We,Nr,Hr))):isRadialGradient(Ue)&&(or=calculateBackgroundRendering(Ae,Ee,[null,null,null]),mr=or[0],er=or[1],ir=or[2],gr=or[3],vr=or[4],Or=Ue.position.length===0?[FIFTY_PERCENT]:Ue.position,Nr=getAbsoluteValue(Or[0],gr),Hr=getAbsoluteValue(Or[Or.length-1],vr),Dr=calculateRadius(Ue,Nr,Hr,gr,vr),kr=Dr[0],qr=Dr[1],kr>0&&qr>0&&(An=_e.ctx.createRadialGradient(er+Nr,ir+Hr,0,er+Nr,ir+Hr,kr),processColorStops(Ue.stops,kr*2).forEach(function(Jr){return An.addColorStop(Jr.stop,asString(Jr.color))}),_e.path(mr),_e.ctx.fillStyle=An,kr!==qr?(lr=Ae.bounds.left+.5*Ae.bounds.width,Tr=Ae.bounds.top+.5*Ae.bounds.height,xr=qr/kr,$r=1/xr,_e.ctx.save(),_e.ctx.translate(lr,Tr),_e.ctx.transform(1,0,0,xr,0,0),_e.ctx.translate(-lr,-Tr),_e.ctx.fillRect(er,$r*(ir-Tr)+Tr,gr,vr*$r),_e.ctx.restore()):_e.ctx.fill())),Qr.label=6;case 6:return Ee--,[2]}})},_e=this,Te=0,Se=Ae.styles.backgroundImage.slice(0).reverse(),Ie.label=1;case 1:return Te<Se.length?(xe=Se[Te],[5,Ce(xe)]):[3,4];case 2:Ie.sent(),Ie.label=3;case 3:return Te++,[3,1];case 4:return[2]}})})},St.prototype.renderSolidBorder=function(Ae,Ee,Ce){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(_e){return this.path(parsePathForBorder(Ce,Ee)),this.ctx.fillStyle=asString(Ae),this.ctx.fill(),[2]})})},St.prototype.renderDoubleBorder=function(Ae,Ee,Ce,_e){return __awaiter(this,void 0,void 0,function(){var Te,Se;return __generator(this,function(xe){switch(xe.label){case 0:return Ee<3?[4,this.renderSolidBorder(Ae,Ce,_e)]:[3,2];case 1:return xe.sent(),[2];case 2:return Te=parsePathForBorderDoubleOuter(_e,Ce),this.path(Te),this.ctx.fillStyle=asString(Ae),this.ctx.fill(),Se=parsePathForBorderDoubleInner(_e,Ce),this.path(Se),this.ctx.fill(),[2]}})})},St.prototype.renderNodeBackgroundAndBorders=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e=this;return __generator(this,function(Me){switch(Me.label){case 0:return this.applyEffects(Ae.getEffects(2)),Ee=Ae.container.styles,Ce=!isTransparent(Ee.backgroundColor)||Ee.backgroundImage.length,_e=[{style:Ee.borderTopStyle,color:Ee.borderTopColor,width:Ee.borderTopWidth},{style:Ee.borderRightStyle,color:Ee.borderRightColor,width:Ee.borderRightWidth},{style:Ee.borderBottomStyle,color:Ee.borderBottomColor,width:Ee.borderBottomWidth},{style:Ee.borderLeftStyle,color:Ee.borderLeftColor,width:Ee.borderLeftWidth}],Te=calculateBackgroundCurvedPaintingArea(getBackgroundValueForIndex(Ee.backgroundClip,0),Ae.curves),Ce||Ee.boxShadow.length?(this.ctx.save(),this.path(Te),this.ctx.clip(),isTransparent(Ee.backgroundColor)||(this.ctx.fillStyle=asString(Ee.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ae.container)]):[3,2];case 1:Me.sent(),this.ctx.restore(),Ee.boxShadow.slice(0).reverse().forEach(function(Re){$e.ctx.save();var ze=calculateBorderBoxPath(Ae.curves),Ve=Re.inset?0:MASK_OFFSET,nr=transformPath(ze,-Ve+(Re.inset?1:-1)*Re.spread.number,(Re.inset?1:-1)*Re.spread.number,Re.spread.number*(Re.inset?-2:2),Re.spread.number*(Re.inset?-2:2));Re.inset?($e.path(ze),$e.ctx.clip(),$e.mask(nr)):($e.mask(ze),$e.ctx.clip(),$e.path(nr)),$e.ctx.shadowOffsetX=Re.offsetX.number+Ve,$e.ctx.shadowOffsetY=Re.offsetY.number,$e.ctx.shadowColor=asString(Re.color),$e.ctx.shadowBlur=Re.blur.number,$e.ctx.fillStyle=Re.inset?asString(Re.color):"rgba(0,0,0,1)",$e.ctx.fill(),$e.ctx.restore()}),Me.label=2;case 2:Se=0,xe=0,Ie=_e,Me.label=3;case 3:return xe<Ie.length?(Ue=Ie[xe],Ue.style!==0&&!isTransparent(Ue.color)&&Ue.width>0?Ue.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Ue.color,Ue.width,Se,Ae.curves,2)]:[3,11]):[3,13];case 4:return Me.sent(),[3,11];case 5:return Ue.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Ue.color,Ue.width,Se,Ae.curves,3)];case 6:return Me.sent(),[3,11];case 7:return Ue.style!==4?[3,9]:[4,this.renderDoubleBorder(Ue.color,Ue.width,Se,Ae.curves)];case 8:return Me.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ue.color,Se,Ae.curves)];case 10:Me.sent(),Me.label=11;case 11:Se++,Me.label=12;case 12:return xe++,[3,3];case 13:return[2]}})})},St.prototype.renderDashedDottedBorder=function(Ae,Ee,Ce,_e,Te){return __awaiter(this,void 0,void 0,function(){var Se,xe,Ie,Ue,$e,Me,Re,ze,Ve,nr,Ze,ar,fr,Ye,Ar,Oe,Ar,Oe;return __generator(this,function(Je){return this.ctx.save(),Se=parsePathForBorderStroke(_e,Ce),xe=parsePathForBorder(_e,Ce),Te===2&&(this.path(xe),this.ctx.clip()),isBezierCurve(xe[0])?(Ie=xe[0].start.x,Ue=xe[0].start.y):(Ie=xe[0].x,Ue=xe[0].y),isBezierCurve(xe[1])?($e=xe[1].end.x,Me=xe[1].end.y):($e=xe[1].x,Me=xe[1].y),Ce===0||Ce===2?Re=Math.abs(Ie-$e):Re=Math.abs(Ue-Me),this.ctx.beginPath(),Te===3?this.formatPath(Se):this.formatPath(xe.slice(0,2)),ze=Ee<3?Ee*3:Ee*2,Ve=Ee<3?Ee*2:Ee,Te===3&&(ze=Ee,Ve=Ee),nr=!0,Re<=ze*2?nr=!1:Re<=ze*2+Ve?(Ze=Re/(2*ze+Ve),ze*=Ze,Ve*=Ze):(ar=Math.floor((Re+Ve)/(ze+Ve)),fr=(Re-ar*ze)/(ar-1),Ye=(Re-(ar+1)*ze)/ar,Ve=Ye<=0||Math.abs(Ve-fr)<Math.abs(Ve-Ye)?fr:Ye),nr&&(Te===3?this.ctx.setLineDash([0,ze+Ve]):this.ctx.setLineDash([ze,Ve])),Te===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Ee):this.ctx.lineWidth=Ee*2+1.1,this.ctx.strokeStyle=asString(Ae),this.ctx.stroke(),this.ctx.setLineDash([]),Te===2&&(isBezierCurve(xe[0])&&(Ar=xe[3],Oe=xe[0],this.ctx.beginPath(),this.formatPath([new Vector(Ar.end.x,Ar.end.y),new Vector(Oe.start.x,Oe.start.y)]),this.ctx.stroke()),isBezierCurve(xe[1])&&(Ar=xe[1],Oe=xe[2],this.ctx.beginPath(),this.formatPath([new Vector(Ar.end.x,Ar.end.y),new Vector(Oe.start.x,Oe.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},St.prototype.render=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee;return __generator(this,function(Ce){switch(Ce.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Ee=parseStackingContexts(Ae),[4,this.renderStack(Ee)];case 1:return Ce.sent(),this.applyEffects([]),[2,this.canvas]}})})},St}(Renderer),isTextInputElement=function(Be){return Be instanceof TextareaElementContainer||Be instanceof SelectElementContainer?!0:Be instanceof InputElementContainer&&Be.type!==RADIO&&Be.type!==CHECKBOX},calculateBackgroundCurvedPaintingArea=function(Be,St){switch(Be){case 0:return calculateBorderBoxPath(St);case 2:return calculateContentBoxPath(St);case 1:default:return calculatePaddingBoxPath(St)}},canvasTextAlign=function(Be){switch(Be){case 1:return"center";case 2:return"right";case 0:default:return"left"}},iOSBrokenFonts=["-apple-system","system-ui"],fixIOSSystemFonts=function(Be){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Be.filter(function(St){return iOSBrokenFonts.indexOf(St)===-1}):Be},ForeignObjectRenderer=function(Be){__extends(St,Be);function St(Ae,Ee){var Ce=Be.call(this,Ae,Ee)||this;return Ce.canvas=Ee.canvas?Ee.canvas:document.createElement("canvas"),Ce.ctx=Ce.canvas.getContext("2d"),Ce.options=Ee,Ce.canvas.width=Math.floor(Ee.width*Ee.scale),Ce.canvas.height=Math.floor(Ee.height*Ee.scale),Ce.canvas.style.width=Ee.width+"px",Ce.canvas.style.height=Ee.height+"px",Ce.ctx.scale(Ce.options.scale,Ce.options.scale),Ce.ctx.translate(-Ee.x,-Ee.y),Ce.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Ee.width+"x"+Ee.height+" at "+Ee.x+","+Ee.y+") with scale "+Ee.scale),Ce}return St.prototype.render=function(Ae){return __awaiter(this,void 0,void 0,function(){var Ee,Ce;return __generator(this,function(_e){switch(_e.label){case 0:return Ee=createForeignObjectSVG(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ae),[4,loadSerializedSVG(Ee)];case 1:return Ce=_e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Ce,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},St}(Renderer),loadSerializedSVG=function(Be){return new Promise(function(St,Ae){var Ee=new Image;Ee.onload=function(){St(Ee)},Ee.onerror=Ae,Ee.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Be))})},Logger=function(){function Be(St){var Ae=St.id,Ee=St.enabled;this.id=Ae,this.enabled=Ee,this.start=Date.now()}return Be.prototype.debug=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St)):this.info.apply(this,St))},Be.prototype.getTime=function(){return Date.now()-this.start},Be.prototype.info=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St))},Be.prototype.warn=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St)):this.info.apply(this,St))},Be.prototype.error=function(){for(var St=[],Ae=0;Ae<arguments.length;Ae++)St[Ae]=arguments[Ae];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,__spreadArray([this.id,this.getTime()+"ms"],St)):this.info.apply(this,St))},Be.instances={},Be}(),Context=function(){function Be(St,Ae){var Ee;this.windowBounds=Ae,this.instanceName="#"+Be.instanceCount++,this.logger=new Logger({id:this.instanceName,enabled:St.logging}),this.cache=(Ee=St.cache)!==null&&Ee!==void 0?Ee:new Cache(this,St)}return Be.instanceCount=1,Be}(),html2canvas=function(Be,St){return St===void 0&&(St={}),renderElement(Be,St)};typeof window<"u"&&CacheStorage.setContext(window);var renderElement=function(Be,St){return __awaiter(void 0,void 0,void 0,function(){var Ae,Ee,Ce,_e,Te,Se,xe,Ie,Ue,$e,Me,Re,ze,Ve,nr,Ze,ar,fr,Ye,Ar,Je,Oe,Je,We,or,mr,er,ir,gr,vr,Or,Nr,Hr,Dr,kr,qr,An,lr,Tr,xr;return __generator(this,function($r){switch($r.label){case 0:if(!Be||typeof Be!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Ae=Be.ownerDocument,!Ae)throw new Error("Element is not attached to a Document");if(Ee=Ae.defaultView,!Ee)throw new Error("Document is not attached to a Window");return Ce={allowTaint:(We=St.allowTaint)!==null&&We!==void 0?We:!1,imageTimeout:(or=St.imageTimeout)!==null&&or!==void 0?or:15e3,proxy:St.proxy,useCORS:(mr=St.useCORS)!==null&&mr!==void 0?mr:!1},_e=__assign({logging:(er=St.logging)!==null&&er!==void 0?er:!0,cache:St.cache},Ce),Te={windowWidth:(ir=St.windowWidth)!==null&&ir!==void 0?ir:Ee.innerWidth,windowHeight:(gr=St.windowHeight)!==null&&gr!==void 0?gr:Ee.innerHeight,scrollX:(vr=St.scrollX)!==null&&vr!==void 0?vr:Ee.pageXOffset,scrollY:(Or=St.scrollY)!==null&&Or!==void 0?Or:Ee.pageYOffset},Se=new Bounds(Te.scrollX,Te.scrollY,Te.windowWidth,Te.windowHeight),xe=new Context(_e,Se),Ie=(Nr=St.foreignObjectRendering)!==null&&Nr!==void 0?Nr:!1,Ue={allowTaint:(Hr=St.allowTaint)!==null&&Hr!==void 0?Hr:!1,onclone:St.onclone,ignoreElements:St.ignoreElements,inlineImages:Ie,copyStyles:Ie},xe.logger.debug("Starting document clone with size "+Se.width+"x"+Se.height+" scrolled to "+-Se.left+","+-Se.top),$e=new DocumentCloner(xe,Be,Ue),Me=$e.clonedReferenceElement,Me?[4,$e.toIFrame(Ae,Se)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Re=$r.sent(),ze=isBodyElement(Me)||isHTMLElement(Me)?parseDocumentSize(Me.ownerDocument):parseBounds(xe,Me),Ve=ze.width,nr=ze.height,Ze=ze.left,ar=ze.top,fr=parseBackgroundColor(xe,Me,St.backgroundColor),Ye={canvas:St.canvas,backgroundColor:fr,scale:(kr=(Dr=St.scale)!==null&&Dr!==void 0?Dr:Ee.devicePixelRatio)!==null&&kr!==void 0?kr:1,x:((qr=St.x)!==null&&qr!==void 0?qr:0)+Ze,y:((An=St.y)!==null&&An!==void 0?An:0)+ar,width:(lr=St.width)!==null&&lr!==void 0?lr:Math.ceil(Ve),height:(Tr=St.height)!==null&&Tr!==void 0?Tr:Math.ceil(nr)},Ie?(xe.logger.debug("Document cloned, using foreign object rendering"),Je=new ForeignObjectRenderer(xe,Ye),[4,Je.render(Me)]):[3,3];case 2:return Ar=$r.sent(),[3,5];case 3:return xe.logger.debug("Document cloned, element located at "+Ze+","+ar+" with size "+Ve+"x"+nr+" using computed rendering"),xe.logger.debug("Starting DOM parsing"),Oe=parseTree(xe,Me),fr===Oe.styles.backgroundColor&&(Oe.styles.backgroundColor=COLORS.TRANSPARENT),xe.logger.debug("Starting renderer for element at "+Ye.x+","+Ye.y+" with size "+Ye.width+"x"+Ye.height),Je=new CanvasRenderer(xe,Ye),[4,Je.render(Oe)];case 4:Ar=$r.sent(),$r.label=5;case 5:return(!((xr=St.removeContainer)!==null&&xr!==void 0)||xr)&&(DocumentCloner.destroy(Re)||xe.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),xe.logger.debug("Finished rendering"),[2,Ar]}})})},parseBackgroundColor=function(Be,St,Ae){var Ee=St.ownerDocument,Ce=Ee.documentElement?parseColor(Be,getComputedStyle(Ee.documentElement).backgroundColor):COLORS.TRANSPARENT,_e=Ee.body?parseColor(Be,getComputedStyle(Ee.body).backgroundColor):COLORS.TRANSPARENT,Te=typeof Ae=="string"?parseColor(Be,Ae):Ae===null?COLORS.TRANSPARENT:4294967295;return St===Ee.documentElement?isTransparent(Ce)?isTransparent(_e)?Te:_e:Ce:Te};const html2canvas_esm=Object.freeze(Object.defineProperty({__proto__:null,default:html2canvas},Symbol.toStringTag,{value:"Module"}));function defaultTypeProvider(Be,St=[]){return function(Ae){var Ee=function(Ce){Ce.addPrintElementTypes("defaultModule",[new Be.PrintElementTypeGroup("常规",[{tid:"defaultModule.text",title:"文本",data:"",type:"text"},{tid:"defaultModule.image",title:"图片",data:"",type:"image"},{tid:"defaultModule.longText",title:"长文",data:"155123456789",type:"longText"},{tid:"defaultModule.table",field:"table",title:"表格",type:"table",groupFields:["name"],groupFooterFormatter:function(_e,Te){return"这里自定义统计脚信息"},columns:[[{title:"行号",fixed:!0,rowspan:2,field:"id",width:70},{title:"人员信息",colspan:2},{title:"销售统计",colspan:2}],[{title:"姓名",align:"left",field:"name",width:100},{title:"性别",field:"gender",width:100},{title:"销售数量",field:"count",width:100},{title:"销售金额",field:"amount",width:100}]]},{tid:"defaultModule.tableCustom",title:"表格",type:"tableCustom"}]),new Be.PrintElementTypeGroup("辅助",[{tid:"defaultModule.hline",title:"横线",type:"hline"},{tid:"defaultModule.vline",title:"竖线",type:"vline"},{tid:"defaultModule.rect",title:"矩形",type:"rect"},{tid:"defaultModule.oval",title:"椭圆",type:"oval"}]),new Be.PrintElementTypeGroup("数据字段",St)])};return{addElementTypes:Ee}}}var customData=[{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"},{PRINT_NUM:"11",ITEM_SKU:"00001105103",ITEM_CD:"00001",SPEC_COLOR_VAL_NM:"白色BS",SPEC_SIZE_VAL_NM:"M",ITEM_NM:"53029-9508外套",ITEM_PRICE:1399,SUPPLIER_CDNM:"53029",ITEM_SEASON:"0004",PRODUCT_STANDARD:"",PRO_ACCESSORY:"",ITEM_STYLE_NM:null,PRODUCT_SAFETY_INDICATOR:null,PRODUCT_SAFETY_INDICATOR_NM:null,ITEM_MNEMONIC_CD:"00001105103",ITEM_CATG_NM:"外套",BRAND_NM:"美丽穿",PH:"1841530299508"}],customPrintJson={panels:[{index:0,height:120,width:107,paperHeader:49.5,paperFooter:340.15748031496065,printElements:[{options:{left:108,top:27,height:9.75,width:82.5,title:"品牌",fontSize:7,fontFamily:"Microsoft YaHei",field:"BRAND_NM",testData:"美丽穿"},printElementType:{type:"text"}},{options:{left:207,top:27,height:9.75,width:82.5,title:"品牌",fontSize:7,fontFamily:"Microsoft YaHei",field:"BRAND_NM",testData:"美丽穿"},printElementType:{type:"longText"}},{options:{left:9,top:27,height:9.75,width:82.5,title:"品牌",fontSize:7,fontFamily:"Microsoft YaHei",field:"BRAND_NM",testData:"美丽穿"},printElementType:{type:"text"}},{options:{left:108,top:37.5,height:21,width:82.5,title:"品名",field:"ITEM_CATG_NM",testData:"C0032-A10连衣长裙",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:37.5,height:21,width:82.5,title:"品名",field:"ITEM_CATG_NM",testData:"C0032-A10连衣长裙",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:37.5,height:21,width:82.5,title:"品名",field:"ITEM_CATG_NM",testData:"C0032-A10连衣长裙",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:58.5,height:19.5,width:82.5,title:"款号",field:"ITEM_CD",testData:"3319J0594ASDASDA",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:58.5,height:19.5,width:82.5,title:"款号",field:"ITEM_CD",testData:"3319J0594ASDASDA",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:58.5,height:19.5,width:82.5,title:"款号",field:"ITEM_CD",testData:"3319J0594ASDASDA",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:79.5,height:9.75,width:82.5,title:"配饰",field:"PRO_ACCESSORY",testData:"配饰测试",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:79.5,height:9,width:82.5,title:"配饰",field:"PRO_ACCESSORY",testData:"配饰测试",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:79.5,height:9.75,width:82.5,title:"配饰",field:"PRO_ACCESSORY",testData:"配饰测试",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:90,height:9.75,width:82.5,title:"季节",field:"ITEM_SEASON",testData:"05",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:90,height:9.75,width:82.5,title:"季节",field:"ITEM_SEASON",testData:"05",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:90,height:9.75,width:82.5,title:"季节",field:"ITEM_SEASON",testData:"05",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:99,height:9.75,width:82.5,title:"风格",field:"ITEM_STYLE_NM",testData:"J",fontFamily:"Microsoft YaHei",fontSize:7},printElementType:{type:"text"}},{options:{left:207,top:99,height:9.75,width:82.5,title:"风格",field:"ITEM_STYLE_NM",testData:"J",fontFamily:"Microsoft YaHei",fontSize:7},printElementType:{type:"text"}},{options:{left:9,top:99,height:9.75,width:82.5,title:"风格",field:"ITEM_STYLE_NM",testData:"J",fontFamily:"Microsoft YaHei",fontSize:7},printElementType:{type:"text"}},{options:{left:108,top:109.5,height:9.75,width:82.5,title:"颜色",field:"SPEC_COLOR_VAL_NM",testData:"黄花",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:109.5,height:9.75,width:82.5,title:"颜色",field:"SPEC_COLOR_VAL_NM",testData:"黄花",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:109.5,height:9.75,width:82.5,title:"颜色",field:"SPEC_COLOR_VAL_NM",testData:"黄花",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:120,height:9.75,width:82.5,title:"尺码",field:"SPEC_SIZE_VAL_NM",testData:"S",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:120,height:9.75,width:82.5,title:"尺码",field:"SPEC_SIZE_VAL_NM",testData:"S",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:120,height:9.75,width:82.5,title:"尺码",field:"SPEC_SIZE_VAL_NM",testData:"S",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:130.5,height:9.75,width:82.5,title:"等级",fontSize:7,fontFamily:"Microsoft YaHei",field:"LEVEL",testData:"合格品"},printElementType:{type:"longText"}},{options:{left:207,top:130.5,height:9.75,width:82.5,title:"等级",fontSize:7,fontFamily:"Microsoft YaHei",field:"LEVEL",testData:"合格品"},printElementType:{type:"longText"}},{options:{left:9,top:130.5,height:9.75,width:82.5,title:"等级",fontSize:7,fontFamily:"Microsoft YaHei",field:"LEVEL",testData:"合格品"},printElementType:{type:"longText"}},{options:{left:108,top:139.5,height:21,width:82.5,title:"主料、里料成分:详见内标",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:139.5,height:21,width:82.5,title:"主料、里料成分:详见内标",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:139.5,height:21,width:82.5,title:"主料、里料成分:详见内标",fontSize:7,lineHeight:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:160.5,height:12,width:82.5,title:"检验员:",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:207,top:160.5,height:12,width:82.5,title:"检验员:",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:160.5,height:12,width:82.5,title:"检验员:",fontSize:7,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:172.5,height:9,width:82.5,title:"安全类别",fontSize:7,fontFamily:"Microsoft YaHei",field:"SECURITYCATEGORY",testData:"B类"},printElementType:{type:"longText"}},{options:{left:207,top:172.5,height:9.75,width:82.5,title:"安全类别",fontSize:7,fontFamily:"Microsoft YaHei",field:"SECURITYCATEGORY",testData:"B类"},printElementType:{type:"longText"}},{options:{left:9,top:172.5,height:9.75,width:82.5,title:"安全类别",fontSize:7,fontFamily:"Microsoft YaHei",field:"SECURITYCATEGORY",testData:"B类"},printElementType:{type:"longText"}},{options:{left:108,top:181.5,height:9.75,width:82.5,title:"执行标准",field:"PRODUCT_STANDARD",fontSize:6,fontFamily:"Microsoft YaHei",testData:"FZ/T  81004-2012"},printElementType:{type:"longText"}},{options:{left:207,top:181.5,height:9.75,width:82.5,title:"执行标准",field:"PRODUCT_STANDARD",fontSize:6,fontFamily:"Microsoft YaHei",testData:"FZ/T  81004-2012"},printElementType:{type:"longText"}},{options:{left:9,top:181.5,height:9.75,width:82.5,title:"执行标准",field:"PRODUCT_STANDARD",fontSize:6,fontFamily:"Microsoft YaHei",testData:"FZ/T  81004-2012"},printElementType:{type:"longText"}},{options:{left:108,top:192,height:9.75,width:82.5,title:"批号",field:"PH",fontSize:6,fontFamily:"Microsoft YaHei",testData:"2153G0066594"},printElementType:{type:"longText"}},{options:{left:207,top:192,height:9.75,width:82.5,title:"批号",field:"PH",fontSize:6,fontFamily:"Microsoft YaHei",testData:"2153G0066594"},printElementType:{type:"longText"}},{options:{left:9,top:192,height:9.75,width:82.5,title:"批号",field:"PH",fontSize:6,fontFamily:"Microsoft YaHei",testData:"2153G0066594"},printElementType:{type:"longText"}},{options:{left:108,top:202.5,height:28.5,width:79.5,field:"ITEM_MNEMONIC_CD",testData:"1234",textType:"barcode",textAlign:"center",fontFamily:"Microsoft YaHei"},printElementType:{type:"text"}},{options:{left:207,top:202.5,height:28.5,width:79.5,field:"ITEM_MNEMONIC_CD",testData:"1234",textType:"barcode",textAlign:"center",fontFamily:"Microsoft YaHei"},printElementType:{type:"text"}},{options:{left:10.5,top:202.5,height:28.5,width:78,field:"ITEM_MNEMONIC_CD",testData:"1234",textType:"barcode",textAlign:"center",fontFamily:"Microsoft YaHei"},printElementType:{type:"text"}},{options:{left:105,top:241.5,height:18,width:82.5,title:"统一零售价",fontWeight:"bold",textAlign:"center",fontSize:8.25,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:205.5,top:241.5,height:16.5,width:81,title:"统一零售价",fontWeight:"bold",textAlign:"center",fontSize:9.75,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:9,top:241.5,height:18,width:82.5,title:"统一零售价",fontWeight:"bold",textAlign:"center",fontSize:9,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:106.5,top:262.5,height:15,width:82.5,fontWeight:"bold",textAlign:"center",field:"ITEM_PRICE",fontSize:9,fontFamily:"Microsoft YaHei",formatter:'function(value,templateData){ return "¥"+templateData; }'},printElementType:{type:"longText"}},{options:{left:205.5,top:262.5,height:15,width:81,fontWeight:"bold",textAlign:"center",field:"ITEM_PRICE",fontSize:9,fontFamily:"Microsoft YaHei",formatter:'function(value,templateData){ return "¥"+templateData; }'},printElementType:{type:"longText"}},{options:{left:9,top:262.5,height:15,width:81,fontWeight:"bold",textAlign:"center",field:"ITEM_PRICE",fontSize:9,fontFamily:"Microsoft YaHei",formatter:'function(value,templateData){ return "¥"+templateData; }'},printElementType:{type:"longText"}},{options:{left:112.5,top:277.5,height:21,width:61.5,title:"广州玖泽品牌咨询管理有限责任公司",textAlign:"center",fontSize:6,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:211.5,top:277.5,height:21,width:61.5,title:"广州玖泽品牌咨询管理有限责任公司",textAlign:"center",fontSize:6,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:13.5,top:277.5,height:21,width:63,title:"广州玖泽品牌咨询管理有限责任公司",textAlign:"center",fontSize:6,fontFamily:"Microsoft YaHei"},printElementType:{type:"longText"}},{options:{left:108,top:297,height:9.75,width:82.5,title:"联系电话:400-112-8228",fontFamily:"Microsoft YaHei",fontSize:6},printElementType:{type:"text"}},{options:{left:207,top:297,height:9.75,width:82.5,title:"联系电话:400-112-8228",fontFamily:"Microsoft YaHei",fontSize:6},printElementType:{type:"text"}},{options:{left:9,top:297,height:9.75,width:82.5,title:"联系电话:400-112-8228",fontFamily:"Microsoft YaHei",fontSize:6},printElementType:{type:"text"}},{options:{left:121.5,top:306,height:9.75,width:52.5,field:"SUPPLIER_CDNM",testData:"111",fontFamily:"Microsoft YaHei",textAlign:"center",fontSize:6},printElementType:{type:"text"}},{options:{left:220.5,top:306,height:9.75,width:52.5,field:"SUPPLIER_CDNM",testData:"1111",fontFamily:"Microsoft YaHei",textAlign:"center",fontSize:6},printElementType:{type:"text"}},{options:{left:22.5,top:306,height:9.75,width:54,field:"SUPPLIER_CDNM",testData:"W002999",fontFamily:"Microsoft YaHei",textAlign:"center",fontSize:6},printElementType:{type:"text"}}],paperNumberLeft:273,paperNumberTop:318,paperNumberDisabled:!0}]};window.io=lookup$4;function _instanceof(Be,St){return St!=null&&typeof Symbol<"u"&&St[Symbol.hasInstance]?!!St[Symbol.hasInstance](Be):Be instanceof St}function _typeof$2(Be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(Ae){return typeof Ae}:_typeof$2=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},_typeof$2(Be)}var hiprint=function(Be){var St={};function Ae(Ee){if(St[Ee])return St[Ee].exports;var Ce=St[Ee]={i:Ee,l:!1,exports:{}};return Be[Ee].call(Ce.exports,Ce,Ce.exports,Ae),Ce.l=!0,Ce.exports}return Ae.m=Be,Ae.c=St,Ae.d=function(Ee,Ce,_e){Ae.o(Ee,Ce)||Object.defineProperty(Ee,Ce,{enumerable:!0,get:_e})},Ae.r=function(Ee){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Ee,"__esModule",{value:!0})},Ae.t=function(Ee,Ce){if(1&Ce&&(Ee=Ae(Ee)),8&Ce||4&Ce&&_typeof$2(Ee)=="object"&&Ee&&Ee.__esModule)return Ee;var _e=Object.create(null);if(Ae.r(_e),Object.defineProperty(_e,"default",{enumerable:!0,value:Ee}),2&Ce&&typeof Ee!="string")for(var Te in Ee)Ae.d(_e,Te,(function(Se){return Ee[Se]}).bind(null,Te));return _e},Ae.n=function(Ee){var Ce=Ee&&Ee.__esModule?function(){return Ee.default}:function(){return Ee};return Ae.d(Ce,"a",Ce),Ce},Ae.o=function(Ee,Ce){return Object.prototype.hasOwnProperty.call(Ee,Ce)},Ae.p="/",Ae(Ae.s=21)}([function(Be,St,Ae){var Ee;Ae.d(St,"a",function(){return hinnn}),window.hinnn={},hinnn.event=(Ee={},{on:function(_e,Te){Ee[_e]||(Ee[_e]=[]),Ee[_e].push(Te)},id:0,off:function(_e,Te){var Se=Ee[_e];if(Se){for(var xe=-1,Ie=0;Ie<Se.length;Ie++)if(Se[Ie]===Te){xe=Ie;break}xe<0||Ee[_e].splice(xe,1)}},trigger:function(_e){var Te=Ee[_e];if(Te&&Te.length)for(var Se=Array.prototype.slice.call(arguments,1),xe=0;xe<Te.length;xe++)Te[xe].apply(this,Se)},clear:function(_e){Ee[_e]=[]},getId:function(){return this.id+=1,this.id},getNameWithId:function(_e){return _e+"-"+this.getId()}}),hinnn.form={serialize:function(_e){var Te=$$g(_e).serializeArray(),Se={};return $$g.each(Te,function(){Se[this.name]?Object.prototype.toString.call(Se[this.name])=="[object Array]"?Se[this.name].push(this.value):Se[this.name]=[Se[this.name],this.value]:Se[this.name]=this.value}),Se}},hinnn.pt={toPx:function(_e){return _e*(this.getDpi()/72)},dpi:0,getDpi:function(){if(!this.dpi){var _e=document.createElement("DIV");_e.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(_e),this.dpi=_e.offsetHeight}return this.dpi}},hinnn.px={toPt:function(_e){return _e*(72/this.getDpi())},dpi:0,getDpi:function(){if(!this.dpi){var _e=document.createElement("DIV");_e.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(_e),this.dpi=_e.offsetHeight}return this.dpi}},hinnn.mm={toPt:function(_e){return 72/25.4*_e},toPx:function(_e){return hinnn.pt.toPx(hinnn.mm.toPt(_e))}},hinnn.throttle=function(Ce,_e,Te){var Se,xe,Ie,Ue=null,$e=0;Te||(Te={});var Me=function(){$e=Te.leading===!1?0:_.now(),Ue=null,Ie=Ce.apply(Se,xe),Ue||(Se=xe=null)};return function(){var Re=_.now();$e||Te.leading!==!1||($e=Re);var ze=_e-(Re-$e);return Se=this,xe=arguments,ze<=0||ze>_e?(Ue&&(clearTimeout(Ue),Ue=null),$e=Re,Ie=Ce.apply(Se,xe),Ue||(Se=xe=null)):Ue||Te.trailing===!1||(Ue=setTimeout(Me,ze)),Ie}},hinnn.debounce=function(Ce,_e,Te){var Se,xe,Ie,Ue,$e,Me=function Re(){var ze=_.now()-Ue;ze<_e&&ze>=0?Se=setTimeout(Re,_e-ze):(Se=null,Te||($e=Ce.apply(Ie,xe),Se||(Ie=xe=null)))};return function(){Ie=this,xe=arguments,Ue=_.now();var Re=Te&&!Se;return Se||(Se=setTimeout(Me,_e)),Re&&($e=Ce.apply(Ie,xe),Ie=xe=null),$e}},hinnn.toUtf8=function(Ce){var _e,Te,Se,xe;for(_e="",Se=Ce.length,Te=0;Te<Se;Te++)(xe=Ce.charCodeAt(Te))>=1&&xe<=127?_e+=Ce.charAt(Te):xe>2047?(_e+=String.fromCharCode(224|xe>>12&15),_e+=String.fromCharCode(128|xe>>6&63),_e+=String.fromCharCode(128|xe>>0&63)):(_e+=String.fromCharCode(192|xe>>6&31),_e+=String.fromCharCode(128|xe>>0&63));return _e},hinnn.groupBy=function(Ce,_e,Te){var Se={};return Ce.forEach(function(xe){var Ie=JSON.stringify(Te(xe));Se[Ie]||(Se[Ie]={rows:[]},_e.forEach(function(Ue){Se[Ie][Ue]=xe[Ue]})),Se[Ie].rows.push(xe)}),Object.keys(Se).map(function(xe){return Se[xe]})},hinnn.orderBy=function(Ce,_e){if(Ce.length<=1)return Ce;var Te=Math.floor(Ce.length/2),Se=Ce.splice(Te,1)[0],xe=[],Ie=[],Ue=!0,$e=!1,Me=void 0;try{for(var Re=Ce[Symbol.iterator](),ze;!(Ue=(ze=Re.next()).done);Ue=!0){var Ve=ze.value;_e(Ve)<_e(Se)?xe.push(Ve):Ie.push(Ve)}}catch(nr){$e=!0,Me=nr}finally{try{!Ue&&Re.return!=null&&Re.return()}finally{if($e)throw Me}}return this.orderBy(xe,_e).concat([Se],this.orderBy(Ie,_e))},hinnn.dateFormat=function(Ce,_e){if(Ce)try{var Te=typeof Ce=="string"?new Date(Ce):Ce,Se={"M+":Te.getMonth()+1,"d+":Te.getDate(),"H+":Te.getHours(),"m+":Te.getMinutes(),"s+":Te.getSeconds(),"q+":Math.floor((Te.getMonth()+3)/3),S:Te.getMilliseconds()};for(var xe in/(y+)/.test(_e)&&(_e=_e.replace(RegExp.$1,(Te.getFullYear()+"").substr(4-RegExp.$1.length))),Se)new RegExp("("+xe+")").test(_e)&&(_e=_e.replace(RegExp.$1,RegExp.$1.length==1?Se[xe]:("00"+Se[xe]).substr((""+Se[xe]).length)));return _e}catch(Ie){return console.log(Ie),""}return""}},function(Be,St,Ae){Ae.d(St,"a",function(){return Ce});var Ee=Ae(9),Ce=function(){function _e(){this.providers=[],this.movingDistance=1.5,this.paperHeightTrim=1,this.text={supportOptions:[{name:"title",hidden:!1,title:""},{name:"field",hidden:!1},{name:"testData",hidden:!1},{name:"dataType",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"fontWeight",hidden:!1},{name:"letterSpacing",hidden:!1},{name:"color",hidden:!1},{name:"textDecoration",hidden:!1},{name:"textAlign",hidden:!1},{name:"textContentVerticalAlign",hidden:!1},{name:"lineHeight",hidden:!1},{name:"textType",hidden:!1},{name:"barcodeMode",hidden:!1},{name:"hideTitle",hidden:!1},{name:"showInPage",hidden:!1},{name:"unShowInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"optionsGroup",hidden:!1},{name:"borderLeft",hidden:!1},{name:"borderTop",hidden:!1},{name:"borderRight",hidden:!1},{name:"borderBottom",hidden:!1},{name:"borderWidth",hidden:!1},{name:"borderColor",hidden:!1},{name:"contentPaddingLeft",hidden:!1},{name:"contentPaddingTop",hidden:!1},{name:"contentPaddingRight",hidden:!1},{name:"contentPaddingBottom",hidden:!1},{name:"backgroundColor",hidden:!1},{name:"formatter",hidden:!1},{name:"styler",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",letterSpacing:void 0,textAlign:void 0,textType:"text",hideTitle:!1,height:9.75,lineHeight:void 0,width:120}},this.image={supportOptions:[{name:"field",hidden:!1},{name:"src",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"formatter",hidden:!1},{name:"styler",hidden:!1}],default:{}},this.longText={supportOptions:[{name:"title",hidden:!1},{name:"field",hidden:!1},{name:"testData",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"fontWeight",hidden:!1},{name:"letterSpacing",hidden:!1},{name:"textAlign",hidden:!1},{name:"lineHeight",hidden:!1},{name:"color",hidden:!1},{name:"hideTitle",hidden:!1},{name:"longTextIndent",hidden:!1},{name:"leftSpaceRemoved",hidden:!1},{name:"showInPage",hidden:!1},{name:"unShowInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"lHeight",hidden:!1},{name:"transform",hidden:!1},{name:"optionsGroup",hidden:!1},{name:"borderLeft",hidden:!1},{name:"borderTop",hidden:!1},{name:"borderRight",hidden:!1},{name:"borderBottom",hidden:!1},{name:"borderWidth",hidden:!1},{name:"borderColor",hidden:!1},{name:"contentPaddingLeft",hidden:!1},{name:"contentPaddingTop",hidden:!1},{name:"contentPaddingRight",hidden:!1},{name:"contentPaddingBottom",hidden:!1},{name:"backgroundColor",hidden:!1},{name:"formatter",hidden:!1},{name:"styler",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",letterSpacing:void 0,textAlign:void 0,hideTitle:!1,height:42,lineHeight:void 0,width:550}},this.table={supportOptions:[{name:"field",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"lineHeight",hidden:!1},{name:"textAlign",hidden:!1},{name:"gridColumns",hidden:!1},{name:"gridColumnsGutter",hidden:!1},{name:"tableBorder",hidden:!1},{name:"tableHeaderBorder",hidden:!1},{name:"tableHeaderCellBorder",hidden:!1},{name:"tableHeaderRowHeight",hidden:!1},{name:"tableHeaderBackground",hidden:!1},{name:"tableHeaderFontSize",hidden:!1},{name:"tableHeaderFontWeight",hidden:!1},{name:"tableBodyRowHeight",hidden:!1},{name:"tableBodyRowBorder",hidden:!1},{name:"tableBodyCellBorder",hidden:!1},{name:"axis",hidden:!1},{name:"lHeight",hidden:!1},{name:"autoCompletion",hidden:!1},{name:"columns",hidden:!1},{name:"styler",hidden:!1},{name:"rowStyler",hidden:!1},{name:"tableFooterRepeat",hidden:!1},{name:"footerFormatter",hidden:!1},{name:"gridColumnsFooterFormatter",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",textAlign:void 0,tableBorder:void 0,tableHeaderBorder:void 0,tableHeaderCellBorder:void 0,tableHeaderBackground:void 0,tableHeaderRowHeight:void 0,tableHeaderFontWeight:void 0,tableBodyCellBorder:void 0,tableBodyRowHeight:void 0,letterSpacing:"",lineHeight:void 0,width:550}},this.tableCustom={supportOptions:[{name:"field",hidden:!1},{name:"fontFamily",hidden:!1},{name:"fontSize",hidden:!1},{name:"textAlign",hidden:!1},{name:"tableBorder",hidden:!1},{name:"tableHeaderBorder",hidden:!1},{name:"tableHeaderCellBorder",hidden:!1},{name:"tableHeaderRowHeight",hidden:!1},{name:"tableHeaderFontSize",hidden:!1},{name:"tableHeaderFontWeight",hidden:!1},{name:"tableHeaderBackground",hidden:!1},{name:"tableBodyRowHeight",hidden:!1},{name:"tableBodyRowBorder",hidden:!1},{name:"tableBodyCellBorder",hidden:!1},{name:"axis",hidden:!1},{name:"lHeight",hidden:!1},{name:"autoCompletion",hidden:!1},{name:"tableFooterRepeat",hidden:!1}],default:{fontFamily:void 0,fontSize:void 0,fontWeight:"",textAlign:void 0,tableBorder:void 0,tableHeaderBorder:void 0,tableHeaderCellBorder:void 0,tableHeaderBackground:void 0,tableHeaderRowHeight:void 0,tableHeaderFontWeight:void 0,tableBodyCellBorder:void 0,tableBodyRowHeight:void 0,letterSpacing:"",lineHeight:void 0,width:550}},this.hline={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:.75,height:9,width:90}},this.vline={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:void 0,height:90,width:9}},this.rect={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:void 0,height:90,width:90}},this.oval={supportOptions:[{name:"borderColor",hidden:!1},{name:"borderWidth",hidden:!1},{name:"showInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"transform",hidden:!1},{name:"borderStyle",hidden:!1}],default:{borderWidth:void 0,height:90,width:90}},this.html={supportOptions:[{name:"showInPage",hidden:!1},{name:"unShowInPage",hidden:!1},{name:"fixed",hidden:!1},{name:"axis",hidden:!1},{name:"formatter",hidden:!1}],default:{height:90,width:90}},this.tableColumn={supportOptions:[{name:"title",hidden:!1},{name:"align",hidden:!1},{name:"halign",hidden:!1},{name:"vAlign",hidden:!1},{name:"paddingLeft",hidden:!1},{name:"paddingRight",hidden:!1},{name:"formatter2",hidden:!1},{name:"styler2",hidden:!1}],default:{height:90,width:90}}}return _e.prototype.init=function(Te){Te&&$$g.extend(this,Te)},Object.defineProperty(_e,"instance",{get:function(){return _e._instance||(_e._instance=new _e,window.HIPRINT_CONFIG&&$$g.extend(_e._instance,HIPRINT_CONFIG),_e._instance.optionItems&&_e._instance.optionItems.forEach(function(Se){Ee.a.registerItem(Se)})),_e._instance},enumerable:!0,configurable:!0}),_e}()},function(Be,St,Ae){var Ee=function(){function _e(Te){this.printElement=Te}return _e.prototype.updatePosition=function(Te,Se){this.left=Te,this.top=Se},_e}();Ae.d(St,"a",function(){return Ce});var Ce=function(){function _e(){this.printTemplateContainer={},this.A1={width:841,height:594},this.A2={width:420,height:594},this.A3={width:420,height:297},this.A4={width:210,height:297},this.A5={width:210,height:148},this.A6={width:105,height:148},this.A7={width:105,height:74},this.A8={width:52,height:74},this.B1={width:1e3,height:707},this.B2={width:500,height:707},this.B3={width:500,height:353},this.B4={width:250,height:353},this.B5={width:250,height:176},this.B6={width:125,height:176},this.B7={width:125,height:88},this.B8={width:62,height:88},this.dragLengthCNum=function(Te,Se){var xe=.75*Te;return Se&&(Se=Se),Math.round(xe/Se)*Se}}return Object.defineProperty(_e,"instance",{get:function(){return this._instance||(this._instance=new _e),this._instance},enumerable:!0,configurable:!0}),_e.prototype.getDragingPrintElement=function(){return _e.instance.dragingPrintElement},_e.prototype.setDragingPrintElement=function(Te){_e.instance.dragingPrintElement=new Ee(Te)},_e.prototype.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Te){var Se=16*Math.random()|0;return(Te=="x"?Se:3&Se|8).toString(16)})},_e.prototype.imageToBase64=function(Te){if($$g(Te).attr("src").indexOf("base64")==-1)try{var Se=document.createElement("canvas"),xe=new Image;xe.src=Te.attr("src"),Se.width=xe.width,Se.height=xe.height,Se.getContext("2d").drawImage(xe,0,0),Te.attr("src",Se.toDataURL("image/png"))}catch{try{this.xhrLoadImage(Te)}catch(Ue){console.log(Ue)}}},_e.prototype.xhrLoadImage=function(Te){},_e.prototype.transformImg=function(Te){var Se=this;Te.map(function(xe,Ie){Se.imageToBase64($$g(Ie))})},_e.prototype.getPrintTemplateById=function(Te){return _e.instance.printTemplateContainer[Te]},_e.prototype.setPrintTemplateById=function(Te,Se){return _e.instance.printTemplateContainer[Te]=Se},_e}()},function(Be,St,Ae){var Ee=function(){return function(){}}();Ae.d(St,"a",function(){return Ce});var Ce=function(){function _e(Te){Te=Te||{},this.left=Te.left,this.top=Te.top,this.topInDesign=this.top,this.height=Te.height,this.width=Te.width,this.init(Te)}return _e.prototype.setDefault=function(Te){this.defaultOptions=Te,this.initSize()},_e.prototype.initSize=function(){this.width||this.setWidth(this.defaultOptions.width),this.height||this.setHeight(this.defaultOptions.height)},_e.prototype.initSizeByHtml=function(Te,Se){this.width||this.setWidth(Te),this.height||this.setHeight(Se)},_e.prototype.getLeft=function(){return this.left},_e.prototype.displayLeft=function(){return this.left+"pt"},_e.prototype.setLeft=function(Te){Te!=null&&(this.left=Te)},_e.prototype.getTop=function(){return this.top},_e.prototype.getTopInDesign=function(){return this.topInDesign},_e.prototype.displayTop=function(){return this.top+"pt"},_e.prototype.setTop=function(Te){Te!=null&&(this.top=Te)},_e.prototype.copyDesignTopFromTop=function(){this.topInDesign=this.top},_e.prototype.getHeight=function(){return this.height},_e.prototype.displayHeight=function(){return this.height+"pt"},_e.prototype.setHeight=function(Te){Te!=null&&(this.height=Te)},_e.prototype.getWidth=function(){return this.width},_e.prototype.displayWidth=function(){return this.width+"pt"},_e.prototype.setWidth=function(Te){Te!=null&&(this.width=Te)},_e.prototype.getValueFromOptionsOrDefault=function(Te){return this[Te]==null?this.defaultOptions[Te]:this[Te]},_e.prototype.getPrintElementOptionEntity=function(){var Te=new Ee,Se=this;return Object.keys(this).filter(function(xe){return xe!="topInDesign"}).forEach(function(xe){if(typeof Se[xe]!="number"&&typeof Se[xe]!="string"&&_typeof$2(Se[xe])!=_typeof$2(!0)||(Te[xe]=Se[xe]),xe=="style"){Te.style={};var Ie=Se[xe];Ie&&Object.keys(Ie).forEach(function(Ue){typeof Ie[Ue]!="number"&&typeof Ie[Ue]!="string"||(Te.style[Ue]=Ie[Ue])})}}),Te},_e.prototype.init=function(Te){var Se=this;Te&&Object.keys(Te).forEach(function(xe){Se[xe]=Te[xe]})},_e}()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return BasePrintElement});var _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(17),_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9),_dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),_PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8),_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),BasePrintElement=function(){function BasePrintElement(Be){this.printElementType=Be,this.id=_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.guid()}return BasePrintElement.prototype.getConfigOptionsByName=function(Be){return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance[Be]},BasePrintElement.prototype.getProxyTarget=function(Be){Be&&this.SetProxyTargetOption(Be);var St=this.getData(),Ae=this.createTarget(this.getTitle(),St);return this.updateTargetSize(Ae),this.css(Ae,St),Ae},BasePrintElement.prototype.SetProxyTargetOption=function(Be){this.options.getPrintElementOptionEntity(),$$g.extend(this.options,Be)},BasePrintElement.prototype.showInPage=function(Be,St){var Ae=this.options.showInPage,Ee=this.options.unShowInPage;if(Ae){if(Ae=="first")return Be==0;if(Be==St-1&&Ee=="last")return!1;if(Ae=="odd")return(Be!=0||Ee!="first")&&Be%2==0;if(Ae=="even")return Be%2==1;if(Ae=="last")return Be==St-1}return(Be!=0||Ee!="first")&&(Be!=St-1||Ee!="last")},BasePrintElement.prototype.setTemplateId=function(Be){this.templateId=Be},BasePrintElement.prototype.setPanel=function(Be){this.panel=Be},BasePrintElement.prototype.getField=function(){return this.options.field||this.printElementType.field},BasePrintElement.prototype.getTitle=function(){return this.printElementType.title},BasePrintElement.prototype.updateSizeAndPositionOptions=function(Be,St,Ae,Ee){this.options.setLeft(Be),this.options.setTop(St),this.options.copyDesignTopFromTop(),this.options.setWidth(Ae),this.options.setHeight(Ee),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger("hiprintTemplateDataChanged_"+this.templateId)},BasePrintElement.prototype.initSizeByHtml=function(Be){if(Be&&Be.length){this.createTempContainer();var St=Be.clone();this.getTempContainer().append(St),this.options.initSizeByHtml(parseInt(_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.px.toPt(St.width()).toString()),parseInt(_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.px.toPt(St.height()).toString())),this.removeTempContainer()}},BasePrintElement.prototype.updateTargetSize=function(Be){Be.css("width",this.options.displayWidth()),Be.css("height",this.options.displayHeight())},BasePrintElement.prototype.updateTargetWidth=function(Be){Be.css("width",this.options.displayWidth())},BasePrintElement.prototype.getDesignTarget=function(Be){var St=this;return this.designTarget=this.getHtml(Be)[0].target,this.designPaper=Be,this.designTarget.click(function(){_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger(St.getPrintElementSelectEventKey(),{printElement:St})}),this.designTarget},BasePrintElement.prototype.getPrintElementSelectEventKey=function(){return"PrintElementSelectEventKey_"+this.templateId},BasePrintElement.prototype.design=function(Be,St){var Ae=this;this.designTarget.hidraggable({axis:Ae.options.axis&&Be&&Be.axisEnabled?Ae.options.axis:void 0,onDrag:function(Ce,_e,Te){Ae.updateSizeAndPositionOptions(_e,Te),Ae.createLineOfPosition(St)},moveUnit:"pt",minMove:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,onBeforeDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!0,Ae.designTarget.focus(),Ae.createLineOfPosition(St)},onStopDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.designTarget.hireizeable({showPoints:Ae.getReizeableShowPoints(),onBeforeResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!0},onResize:function(Ce,_e,Te,Se,xe){Ae.onResize(Ce,_e,Te,Se,xe),Ae.createLineOfPosition(St)},onStopResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.bingCopyEvent(this.designTarget),this.bingKeyboardMoveEvent(this.designTarget,St)},BasePrintElement.prototype.getPrintElementEntity=function(Be){return Be?new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(void 0,this.options.getPrintElementOptionEntity(),this.printElementType.getPrintElementTypeEntity()):new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(this.printElementType.tid,this.options.getPrintElementOptionEntity())},BasePrintElement.prototype.submitOption=function(){var Be=this;this.getPrintElementOptionItems().forEach(function(St){var Ae=St.getValue();Ae&&_typeof$2(Ae)=="object"?Object.keys(Ae).forEach(function(Ee){Be.options[Ee]=Ae[Ee]}):Be.options[St.name]=Ae}),this.updateDesignViewFromOptions(),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger("hiprintTemplateDataChanged_"+this.templateId)},BasePrintElement.prototype.getReizeableShowPoints=function(){return["s","e"]},BasePrintElement.prototype.onResize=function(Be,St,Ae,Ee,Ce){this.updateSizeAndPositionOptions(Ce,Ee,Ae,St)},BasePrintElement.prototype.getOrderIndex=function(){return this.options.getTop()},BasePrintElement.prototype.getHtml=function(Be,St,Ae){var Ee=0;this.setCurrenttemplateData(St);var Ce=[],_e=this.getBeginPrintTopInPaperByReferenceElement(Be),Te=Be.getPaperFooter(Ee);this.isHeaderOrFooter()||this.isFixed()||_e>Te&&(Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),_e=_e-Te+Be.paperHeader,Ee++,Te=Be.getPaperFooter(Ee));var Se=this.getData(St),xe=this.createTarget(this.getTitle(),Se,Ae);return this.updateTargetSize(xe),this.css(xe,Se),xe.css("position","absolute"),xe.css("left",this.options.displayLeft()),xe.css("top",_e+"pt"),Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:xe,printLine:_e+this.options.getHeight()})),Ce},BasePrintElement.prototype.getHtml2=function(Be,St,Ae){var Ee=0;this.setCurrenttemplateData(St);var Ce=[],_e=this.getBeginPrintTopInPaperByReferenceElement(Be),Te=Be.getPaperFooter(Ee);this.isHeaderOrFooter()||this.isFixed()||(_e>Te&&(Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),_e=_e-Te+Be.paperHeader,Ee++,Te=Be.getPaperFooter(Ee)),_e<=Te&&_e+this.options.getHeight()>Te&&(Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),_e=Be.paperHeader,Ee++,Te=Be.getPaperFooter(Ee)));var Se=this.getData(St),xe=this.createTarget(this.getTitle(),Se);return this.updateTargetSize(xe),this.css(xe,Se),xe.css("position","absolute"),xe.css("left",this.options.displayLeft()),xe.css("top",_e+"pt"),Ce.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:xe,printLine:_e+this.options.getHeight(),referenceElement:new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:Be.index,bottomInLastPaper:_e+this.options.getHeight(),printTopInPaper:_e})})),Ce},BasePrintElement.prototype.getBeginPrintTopInPaperByReferenceElement=function(Be){var St=this.options.getTop();return this.isHeaderOrFooter()||this.isFixed()?St:Be.referenceElement.isPositionLeftOrRight(St)?Be.referenceElement.printTopInPaper+(St-Be.referenceElement.top):Be.referenceElement.bottomInLastPaper+(St-(Be.referenceElement.top+Be.referenceElement.height))},BasePrintElement.prototype.css=function(Be,St){var Ae=this,Ee=this.getConfigOptions();if(Ee){var Ce=Ee.supportOptions;Ce&&Ce.forEach(function(_e){var Te=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(_e.name);Te&&Te.css&&Te.css(Be,Ae.options.getValueFromOptionsOrDefault(_e.name))})}this.stylerCss(Be,St)},BasePrintElement.prototype.stylerCss=function(Be,St){var Ae=this.getStyler();if(Ae){var Ee=Ae(St,this.options,Be,this._currenttemplateData);Ee&&Object.keys(Ee).forEach(function(Ce){Be.css(Ce,Ee[Ce])})}},BasePrintElement.prototype.getData=function(Be){return Be?Be[this.getField()]||"":this.printElementType.getData()},BasePrintElement.prototype.getPrintElementOptionItems=function(){if(this._printElementOptionItems)return this._printElementOptionItems;var Be=[],St=this.getConfigOptions();if(St){var Ae=St.supportOptions;Ae&&Ae.filter(function(Ee){return!Ee.hidden}).forEach(function(Ee){var Ce=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(Ee.name);Be.push(Ce)})}return this._printElementOptionItems=this.filterOptionItems(Be.concat()),this._printElementOptionItems},BasePrintElement.prototype.getPrintElementOptionItemsByName=function(Be){var St=[],Ae=this.getConfigOptionsByName(Be);if(Ae){var Ee=Ae.supportOptions;Ee&&Ee.filter(function(Ce){return!Ce.hidden}).forEach(function(Ce){var _e=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(Ce.name);St.push(_e)})}return St.concat()},BasePrintElement.prototype.filterOptionItems=function(Be){return this.printElementType.field?Be.filter(function(St){return St.name!="field"}):Be},BasePrintElement.prototype.createTempContainer=function(){this.removeTempContainer(),$$g("body").append($$g('<div class="hiprint_temp_Container hiprint-printPaper" style="overflow:hidden;height: 0px;box-sizing: border-box;"></div>'))},BasePrintElement.prototype.removeTempContainer=function(){$$g(".hiprint_temp_Container").remove()},BasePrintElement.prototype.getTempContainer=function(){return $$g(".hiprint_temp_Container")},BasePrintElement.prototype.isHeaderOrFooter=function(){return this.options.getTopInDesign()<this.panel.paperHeader||this.options.getTopInDesign()>=this.panel.paperFooter},BasePrintElement.prototype.delete=function(){this.designTarget&&this.designTarget.remove()},BasePrintElement.prototype.setCurrenttemplateData=function(Be){this._currenttemplateData=Be},BasePrintElement.prototype.isFixed=function(){return this.options.fixed},BasePrintElement.prototype.onRendered=function(Be,St){this.printElementType&&this.printElementType.onRendered&&this.printElementType.onRendered(St,this.options,Be.getTarget())},BasePrintElement.prototype.createLineOfPosition=function(Be){var St=$$g(".toplineOfPosition"+this.id),Ae=$$g(".leftlineOfPosition"+this.id),Ee=$$g(".rightlineOfPosition"+this.id),Ce=$$g(".bottomlineOfPosition"+this.id);if(St.length?St.css("top",this.options.displayTop()):((St=$$g('<div class="toplineOfPosition'+this.id+'" style="border:0;border-top:1px dashed  rgb(169, 169, 169);position: absolute; width: 100%;"></div>')).css("top",this.options.displayTop()),St.css("width",Be.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(St)),Ae.length)Ae.css("left",this.options.displayLeft());else{var _e=$$g('<div class="leftlineOfPosition'+this.id+'" style="border:0;border-left:1px dashed  rgb(169, 169, 169);position: absolute;height: 100%;"></div>');_e.css("left",this.options.displayLeft()),_e.css("height",Be.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(_e)}if(Ee.length)Ee.css("left",this.options.getLeft()+this.options.getWidth()+"pt");else{var Te=$$g('<div class="rightlineOfPosition'+this.id+'" style="border:0;border-left:1px dashed  rgb(169, 169, 169);position: absolute;height: 100%;"></div>');Te.css("left",this.options.getLeft()+this.options.getWidth()+"pt"),Te.css("height",Be.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(Te)}if(Ce.length)Ce.css("top",this.options.getTop()+this.options.getHeight()+"pt");else{var Se=$$g('<div class="bottomlineOfPosition'+this.id+'" style="border:0;border-top:1px dashed  rgb(169, 169, 169);position: absolute;width: 100%;"></div>');Se.css("top",this.options.getTop()+this.options.getHeight()+"pt"),Se.css("width",Be.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(Se)}},BasePrintElement.prototype.removeLineOfPosition=function(){$$g(".toplineOfPosition"+this.id).remove(),$$g(".leftlineOfPosition"+this.id).remove(),$$g(".rightlineOfPosition"+this.id).remove(),$$g(".bottomlineOfPosition"+this.id).remove()},BasePrintElement.prototype.getFields=function(){var Be=this.printElementType.getFields();return Be||(Be=_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFields())},BasePrintElement.prototype.bingCopyEvent=function(Be){},BasePrintElement.prototype.getFormatter=function(){var formatter=void 0;if(this.printElementType.formatter&&(formatter=this.printElementType.formatter),this.options.formatter)try{var s="formatter="+this.options.formatter;eval(s)}catch(Be){console.log(Be)}return formatter},BasePrintElement.prototype.getStyler=function(){var fnstyler=void 0;if(this.printElementType.styler&&(fnstyler=this.printElementType.styler),this.options.styler)try{var s="fnstyler="+this.options.styler;eval(s)}catch(Be){console.log(Be)}return fnstyler},BasePrintElement.prototype.bingKeyboardMoveEvent=function(Be,St){var Ae=this,Ee=void 0,Ce=void 0;Be.attr("tabindex","1"),Be.keydown(function(_e){switch(_e.keyCode){case 37:Ee=Ae.options.getLeft(),Ae.updateSizeAndPositionOptions(Ee-_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("left",Ae.options.displayLeft()),Ae.createLineOfPosition(St),_e.preventDefault();break;case 38:Ce=Ae.options.getTop(),Ae.updateSizeAndPositionOptions(void 0,Ce-_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("top",Ae.options.displayTop()),Ae.createLineOfPosition(St),_e.preventDefault();break;case 39:Ee=Ae.options.getLeft(),Ae.updateSizeAndPositionOptions(Ee+_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("left",Ae.options.displayLeft()),Ae.createLineOfPosition(St),_e.preventDefault();break;case 40:Ce=Ae.options.getTop(),Ae.updateSizeAndPositionOptions(void 0,Ce+_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance),Be.css("top",Ae.options.displayTop()),Ae.createLineOfPosition(St),_e.preventDefault()}})},BasePrintElement.prototype.inRect=function(Be){var St=this.designTarget.offset().left,Ae=this.designTarget.offset().top;return Be.minX<St&&Be.minY<Ae&&Be.maxX>St&&Be.maxY>Ae},BasePrintElement.prototype.multipleSelect=function(Be){Be?this.designTarget.addClass("multipleSelect"):this.designTarget.removeClass("multipleSelect")},BasePrintElement.prototype.updatePositionByMultipleSelect=function(Be,St){this.updateSizeAndPositionOptions(Be+this.options.getLeft(),St+this.options.getTop()),this.designTarget.css("left",this.options.displayLeft()),this.designTarget.css("top",this.options.displayTop())},BasePrintElement}()},function(Be,St,Ae){var Ee=function(){function Ve(){}return Ve.prototype.init=function(nr){this.target=$$g('<input type="text" class="hitable-editor-text" value="" />'),nr.getTarget().append(this.target),this.target.focus()},Ve.prototype.getValue=function(){return this.target.val()},Ve.prototype.setValue=function(nr){this.target.val(nr)},Ve.prototype.destroy=function(){this.target.remove()},Ve}(),Ce=function(){function Ve(){this.text=new Ee}return Object.defineProperty(Ve,"Instance",{get:function(){return Ve._instance||(Ve._instance=new Ve),Ve._instance},enumerable:!0,configurable:!0}),Ve}(),_e=function(){function Ve(){}return Object.defineProperty(Ve,"Instance",{get:function(){return Ce._instance||(Ve._instance=new Ve),Ve._instance},enumerable:!0,configurable:!0}),Ve.prototype.createEditor=function(nr){return $$g.extend({},Ce.Instance[nr])},Ve}(),Te=Ae(10),Se=Ae(14),xe=Ae(11),Ie=function(){function Ve(){}return Ve.prototype.init=function(nr,Ze){var ar=this;this.tableOptions=Ze,this.title=nr.title,this.field=nr.field,nr.getTarget().unbind("dblclick.hitable").bind("dblclick.hitable",function(){nr.isEditing=!0,ar.beginEdit(nr)})},Ve.prototype.getDisplayHtml=function(){return this.title},Ve.prototype.beginEdit=function(nr){var Ze=this;this.editor=_e.Instance.createEditor("text"),nr.getTarget().html(""),this.editor.init(nr),(this.title||this.field)&&(this.tableOptions.options.isEnableEditField?this.editor.setValue((this.title||"")+"#"+(this.field||"")):this.editor.setValue(this.title||"")),$$g(this.editor.target).keydown(function(ar){ar.keyCode==13&&Ze.endEdit(nr)}),$$g(this.editor.target).blur(function(ar){Ze.endEdit(nr)}),this.tableOptions.editingCell&&this.tableOptions.editingCell.id!=nr.id&&this.tableOptions.editingCell.innerElement.endEdit(this.tableOptions.editingCell),this.tableOptions.editingCell=nr},Ve.prototype.endEdit=function(nr){var Ze=this.editor.getValue();if(Ze)if(this.tableOptions.options.isEnableEditField){var ar=Ze.split("#");nr.title=this.title=ar[0],ar.length>0&&(nr.field=this.field=ar[1])}else nr.title=this.title=Ze;else this.tableOptions.options.isEnableEditField?(nr.title=this.title="",nr.field=this.field=""):nr.title=this.title="";this.editor.destroy(),nr.getTarget().html(this.title)},Ve}(),Ue=function(){return function(Ve){this.title=Ve.title,this.field=Ve.field,this.width=Ve.width,this.align=Ve.align,this.halign=Ve.halign,this.vAlign=Ve.vAlign,this.colspan=Ve.colspan,this.rowspan=Ve.rowspan,this.checked=Ve.checked,this.columnId=Ve.columnId,this.formatter2=Ve.formatter2,this.styler2=Ve.styler2}}(),$e=function(){function Ve(){this.id=xe.a.createId()}return Ve.prototype.init=function(nr,Ze,ar,fr){this.isHead=fr,this.rowId=ar,this.isEditing=!1;var Ye=/^[0-9]*$/;this.target=nr,this.tableOptions=Ze;var Ar=this.target.attr("colspan");this.colspan=Ye.test(Ar)?parseInt(Ar):1;var Oe=this.target.attr("rowspan");this.rowspan=Ye.test(Oe)?parseInt(Oe):1,this.initEvent(),this.isHead&&this.initInnerEelement()},Ve.prototype.beginEdit=function(){if(!this.isEditing&&this.tableOptions.isEnableEdit&&this.tableOptions.onBeforEdit(this)){var nr=this.getValue();this.editor=_e.Instance.createEditor("text"),this.isEditing=!0,this.tableOptions.editingCell=this,this.target.html(""),this.editor.init(this),this.editor.setValue(nr)}},Ve.prototype.endEdit=function(){this.isEditing=!1;var nr=this.editor.getValue();this.editor.destroy(),this.target.html(nr)},Ve.prototype.getTarget=function(){return this.target},Ve.prototype.getValue=function(){return this.target.html()},Ve.prototype.setValue=function(nr){},Ve.prototype.initInnerEelement=function(){this.innerElement=new Ie,this.innerElement.init(this,this.tableOptions)},Ve.prototype.initEvent=function(){},Ve.prototype.isXYinCell=function(nr,Ze){var ar=new Te.b({x:nr,y:Ze,height:0,width:0});return this.isOverlap(ar)},Ve.prototype.getTableRect=function(){return new Te.b({x:this.target.offset().left,y:this.target.offset().top,height:this.target[0].offsetHeight,width:this.target[0].offsetWidth})},Ve.prototype.isOverlap=function(nr){var Ze=this.getTableRect();return nr.x+nr.width>Ze.x&&Ze.x+Ze.width>nr.x&&nr.y+nr.height>Ze.y&&Ze.y+Ze.height>nr.y},Ve.prototype.isInRect=function(nr){var Ze=nr.rect,ar=this.getTableRect();if(Ze.x+Ze.width>ar.x&&ar.x+ar.width>Ze.x&&Ze.y+Ze.height>ar.y&&ar.y+ar.height>Ze.y){var fr=Se.a.mergeRect(Ze,ar);return JSON.stringify(Ze)==JSON.stringify(fr)||(nr.changed=!0,nr.rect=fr,!0)}return!1},Ve.prototype.isSelected=function(){return this.target.hasClass("selected")},Ve.prototype.select=function(){this.target.addClass("selected")},Ve.prototype.isHeader=function(){return!1},Ve.prototype.setAlign=function(nr){this.align=nr,nr?this.target.css("text-align",nr):this.target[0].style.textAlign=""},Ve.prototype.setVAlign=function(nr){this.vAlign=nr,nr?this.target.css("vertical-align",nr):this.target[0].style.verticalAlign=""},Ve.prototype.getEntity=function(){return new Ue(this)},Ve}();Ae.d(St,"a",function(){return ze});var Me,Re=(Me=function(nr,Ze){return(Me=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(ar,fr){ar.__proto__=fr}||function(ar,fr){for(var Ye in fr)fr.hasOwnProperty(Ye)&&(ar[Ye]=fr[Ye])})(nr,Ze)},function(Ve,nr){function Ze(){this.constructor=Ve}Me(Ve,nr),Ve.prototype=nr===null?Object.create(nr):(Ze.prototype=nr.prototype,new Ze)}),ze=function(Ve){function nr(Ze){var ar=this;return Ze=Ze||{},(ar=Ve.call(this)||this).width=Ze.width?parseFloat(Ze.width.toString()):100,ar.title=Ze.title,ar.descTitle=Ze.descTitle,ar.field=Ze.field,ar.fixed=Ze.fixed,ar.rowspan=Ze.rowspan?parseInt(Ze.rowspan):1,ar.colspan=Ze.colspan?parseInt(Ze.colspan):1,ar.align=Ze.align,ar.halign=Ze.halign,ar.vAlign=Ze.vAlign,ar.formatter=Ze.formatter,ar.styler=Ze.styler,ar.formatter2=Ze.formatter2,ar.styler2=Ze.styler2,ar.checkbox=Ze.checkbox,ar.checked=Ze.checked!=0,ar.columnId=Ze.columnId||Ze.field,ar}return Re(nr,Ve),nr.prototype.css=function(Ze){},nr}($e)},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){return function(Ce){this.printLine=Ce.printLine,this.target=Ce.target,this.referenceElement=Ce.referenceElement}}()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return TableExcelHelper});var _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(19),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),TableExcelHelper=function(){function TableExcelHelper(){}return TableExcelHelper.createTableHead=function(Be,St){for(var Ae=TableExcelHelper.reconsitutionTableColumnTree(Be),Ee=$$g("<thead></thead>"),Ce=TableExcelHelper.getColumnsWidth(Ae,St),_e=function(xe){var Ie=$$g("<tr></tr>");Ae[xe].forEach(function(Ue){var $e=$$g("<td></td>");Ue.id&&$e.attr("id",Ue.id),Ue.columnId&&$e.attr("column-id",Ue.columnId),(Ue.align||Ue.halign)&&$e.css("text-align",Ue.halign||Ue.align),Ue.vAlign&&$e.css("vertical-align",Ue.vAlign),Ue.colspan>1&&$e.attr("colspan",Ue.colspan),Ue.rowspan>1&&$e.attr("rowspan",Ue.rowspan),$e.html(Ue.title),Ce[Ue.id]?(Ue.hasWidth=!0,Ue.targetWidth=Ce[Ue.id],$e.attr("haswidth","haswidth"),$e.css("width",Ce[Ue.id]+"pt")):Ue.hasWidth=!1,Ie.append($e)}),Ee.append(Ie)},Te=0;Te<Ae.totalLayer;Te++)_e(Te);return TableExcelHelper.syncTargetWidthToOption(Be),Ee},TableExcelHelper.createTableFooter=function(Be,St,Ae,Ee,Ce,_e){var Te=$$g("<tfoot></tfoot>"),Se=this.getFooterFormatter(Ae,Ee);return Se&&Te.append(Se(Ae,St,Ce,_e)),Te},TableExcelHelper.createTableRow=function(Be,St,Ae,Ee){var Ce=TableExcelHelper.reconsitutionTableColumnTree(Be),_e=$$g("<tbody></tbody>");return St||(St=[]),Ee.groupFields.length?_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a.groupBy(St,Ee.groupFields,function(Te){var Se={};return Ee.groupFields.forEach(function(xe){return Se[xe]=Te[xe]}),Se}).forEach(function(Te){if(Ee.groupFormatter){var Se=$$g("<tr><td colspan="+Ce.colspan+"></td></tr>");Se.find("td").append(Ee.groupFormatter(Te,Ae)),_e.append(Se)}if(Te.rows.forEach(function(Ie){var Ue=TableExcelHelper.createRowTarget(Ce,Ie,Ae,Ee);_e.append(Ue)}),Ee.groupFooterFormatter){var xe=$$g("<tr><td colspan="+Ce.colspan+"></td></tr>");xe.find("td").append(Ee.groupFooterFormatter(Te,Ae)),_e.append(xe)}}):St.forEach(function(Te){var Se=TableExcelHelper.createRowTarget(Ce,Te,Ae,Ee);_e.append(Se)}),_e},TableExcelHelper.createRowTarget=function(Be,St,Ae,Ee){var Ce=$$g("<tr></tr>");Ce.data("rowData",St),Be.rowColumns.forEach(function(Se,xe){var Ie=$$g("<td></td>");Se.field&&Ie.attr("field",Se.field),Se.align&&Ie.css("text-align",Se.align),Se.vAlign&&Ie.css("vertical-align",Se.vAlign);var Ue=TableExcelHelper.getColumnFormatter(Se),$e=Ue?Ue(St[Se.field],St,xe,Ae):St[Se.field];Ie.html($e);var Me=TableExcelHelper.getColumnStyler(Se);if(Me){var Re=Me(St[Se.field],St,xe,Ae);Re&&Object.keys(Re).forEach(function(ze){Ie.css(ze,Re[ze])})}Ce.append(Ie)});var _e=TableExcelHelper.getRowStyler(Ae,Ee);if(_e){var Te=_e(St,Ae);Te&&Object.keys(Te).forEach(function(Se){Ce.css(Se,Te[Se])})}return Ce},TableExcelHelper.createEmptyRowTarget=function(Be){var St=TableExcelHelper.reconsitutionTableColumnTree(Be),Ae=$$g("<tr></tr>");return St.rowColumns.forEach(function(Ee,Ce){var _e=$$g("<td></td>");Ee.field&&_e.attr("field",Ee.field),Ee.align&&_e.css("text-align",Ee.align),Ee.vAlign&&_e.css("vertical-align",Ee.vAlign),Ae.append(_e)}),Ae},TableExcelHelper.getColumnsWidth=function(Be,St){var Ae={},Ee=TableExcelHelper.allAutoWidth(Be),Ce=TableExcelHelper.allFixedWidth(Be);return Be.rowColumns.forEach(function(_e){if(_e.fixed)Ae[_e.id]=_e.width;else{var Te=St-Ce,Se=_e.width/Ee*(Te>0?Te:0);Ae[_e.id]=Se}}),Ae},TableExcelHelper.resizeTableCellWidth=function(Be,St,Ae){var Ee=TableExcelHelper.reconsitutionTableColumnTree(St),Ce=TableExcelHelper.getColumnsWidth(Ee,Ae);Be.find("thead tr td[haswidth]").map(function(_e,Te){var Se=$$g(Te).attr("id"),xe=Ce[Se];$$g(Te).css("width",xe+"pt")})},TableExcelHelper.allAutoWidth=function(Be){var St=0;return Be.rowColumns.forEach(function(Ae){St+=Ae.fixed?0:Ae.width}),St},TableExcelHelper.allFixedWidth=function(Be){var St=0;return Be.rowColumns.forEach(function(Ae){St+=Ae.fixed?Ae.width:0}),St},TableExcelHelper.reconsitutionTableColumnTree=function(Be,St,Ae){var Ee=St||new _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__.a;Ee.colspan=0;for(var Ce=function(Se){Ee.totalLayer=Se+1,Ee[Se]=Be[Se].columns,Se==0&&Be[Se].columns.forEach(function(xe){Se==0&&(Ee.colspan+=xe.colspan)})},_e=0;_e<Be.length;_e++)Ce(_e);return Ee.rowColumns=TableExcelHelper.getOrderdColumns(Ee),Ee},TableExcelHelper.syncTargetWidthToOption=function(Be){Be.forEach(function(St){St.columns.forEach(function(Ae){Ae.hasWidth&&(Ae.width=Ae.targetWidth)})})},TableExcelHelper.getFooterFormatter=function(options,tablePrintElementType){var footerFormatter=void 0;if(tablePrintElementType.footerFormatter&&(footerFormatter=tablePrintElementType.footerFormatter),options.footerFormatter)try{var s="footerFormatter="+options.footerFormatter;eval(s)}catch(Be){console.log(Be)}return footerFormatter},TableExcelHelper.getRowStyler=function(options,tablePrintElementType){var rowStyler=void 0;if(tablePrintElementType.rowStyler&&(rowStyler=tablePrintElementType.rowStyler),options.rowStyler)try{var s="rowStyler="+options.rowStyler;eval(s)}catch(Be){console.log(Be)}return rowStyler},TableExcelHelper.getColumnStyler=function(column){var styler=void 0;if(column.styler&&(styler=column.styler),column.styler2)try{var s="styler="+column.styler2;eval(s)}catch(Be){console.log(Be)}return styler},TableExcelHelper.getColumnFormatter=function(column){var formatter=void 0;if(column.formatter&&(formatter=column.formatter),column.formatter2)try{var s="formatter="+column.formatter2;eval(s)}catch(Be){console.log(Be)}return formatter},TableExcelHelper.getOrderdColumns=function(Be){for(var St={},Ae=function(_e){Be[_e].forEach(function(Te){for(var Se=0;Se<Te.rowspan;Se++)St[_e+Se]=St[_e+Se]?St[_e+Se]:[],St[_e+Se].push(Te)})},Ee=0;Ee<Be.totalLayer;Ee++)Ae(Ee);return St[Be.totalLayer-1]},TableExcelHelper}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){function Ce(_e){this.top=_e.top,this.left=_e.left,this.height=_e.height,this.width=_e.width,this.bottomInLastPaper=_e.bottomInLastPaper,this.beginPrintPaperIndex=_e.beginPrintPaperIndex,this.printTopInPaper=_e.printTopInPaper,this.endPrintPaperIndex=_e.endPrintPaperIndex}return Ce.prototype.isPositionLeftOrRight=function(_e){return this.top<=_e&&this.top+this.height>_e},Ce}()},function(Be,St,Ae){var Ee=function(){function Xe(){this.name="lineHeight"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("line-height",Wr+"pt"),"line-height:"+Wr+"pt";ke[0].style.lineHeight=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        字体行高
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        <option value="22.5" >22.5pt</option>
        <option value="23.25" >23.25pt</option>
        <option value="24" >24pt</option>
        <option value="24.75" >24.75pt</option>
        <option value="25.5" >25.5pt</option>
        <option value="26.25" >26.25pt</option>
        <option value="27" >27pt</option>
        <option value="27.75" >27.75pt</option>
        <option value="28.5" >28.5pt</option>
        <option value="29.25" >29.25pt</option>
        <option value="30" >30pt</option>
        <option value="30.75" >30.75pt</option>
        <option value="31.5" >31.5pt</option>
        <option value="32.25" >32.25pt</option>
        <option value="33" >33pt</option>
        <option value="33.75" >33.75pt</option>
        <option value="34.5" >34.5pt</option>
        <option value="35.25" >35.25pt</option>
        <option value="36" >36pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ce=function(){function Xe(){this.name="fontFamily"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        字体
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="SimSun" >宋体</option>
            <option value="Microsoft YaHei" >微软雅黑</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("font-family",Wr),"font-family:"+Wr;ke[0].style.fontFamily=""}return null},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),_e=function(){function Xe(){this.name="fontSize"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("font-size",Wr+"pt"),"font-size:"+Wr+"pt";ke[0].style.fontSize=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        字体大小
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Te=function(){function Xe(){this.name="fontWeight"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("font-weight",Wr),"font-weight:"+Wr;ke[0].style.fontWeight=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        字体粗细
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="lighter" >更细</option>
        <option value="bold" >粗体</option>
        <option value="bolder" >粗体+</option>
            <option value="100" >100</option>
            <option value="200" >200</option>
            <option value="300" >300</option>
            <option value="400" >400</option>
            <option value="500" >500</option>
            <option value="600" >600</option>
            <option value="700" >700</option>
            <option value="800" >800</option>
            <option value="900" >900</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Se=function(){function Xe(){this.name="letterSpacing"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("letter-spacing",Wr+"pt"),"letter-spacing:"+Wr+"pt";ke[0].style.letterSpacing=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        字间距
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),xe=function(){function Xe(){this.name="textAlign"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("text-align",Wr),Wr=="justify"?(ke.css("text-align-last","justify"),ke.css("text-justify","distribute-all-lines")):(ke[0].style.textAlignLast="",ke[0].style.textJustify=""),"text-align:"+Wr;ke[0].style.textAlign="",ke[0].style.textAlignLast="",ke[0].style.textJustify=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        左右对齐
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="" >居左</option>
        <option value="center" >居中</option>
        <option value="right" >居右</option>
        <option value="justify" >两端对齐</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ie=function(){function Xe(){this.name="hideTitle"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        标题显示隐藏
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="false" >显示</option>
            <option value="true" >隐藏</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},Xe.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ue=function(){function Xe(){this.name="tableBorder"}return Xe.prototype.css=function(ke,Wr){if(ke.find("table").length){if(Wr=="border")return ke.find("table").css("border","1px solid"),"border:1px solid";Wr=="noBorder"?ke.find("table").css("border","0px solid"):ke.find("table")[0].style.border=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表格边框
        </div>
        <div class="hiprint-option-item-field">
            <select class="auto-submit">
            <option value="" >默认</option>
            <option value="border" >有边框</option>
            <option value="noBorder" >无边框</option>
            </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),$e=function(){function Xe(){this.name="tableHeaderBorder"}return Xe.prototype.css=function(ke,Wr){if(ke.find("thead tr").length){if(Wr=="border")return ke.find("thead tr").css("border","1px solid"),"border:1pt solid";Wr=="noBorder"?ke.find("thead tr").css("border","0px solid"):Wr=="topBorder"?(ke.find("thead tr").css("border","0px solid"),ke.find("thead tr").css("border-top","1px solid")):Wr=="bottomBorder"?(ke.find("thead tr").css("border","0px solid"),ke.find("thead tr").css("border-bottom","1px solid")):Wr=="topBottomBorder"?(ke.find("thead tr").css("border","0px solid"),ke.find("thead tr").css("border-top","1px solid"),ke.find("thead tr").css("border-bottom","1px solid")):ke.find("thead tr").map(function(bn,Jn){Jn.style.border=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表头边框
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>    
        <option value="border" >有边框</option>
        <option value="noBorder" >无边框</option>
        <option value="topBorder" >上边框</option>
        <option value="bottomBorder" >下边框</option>
        <option value="topBottomBorder" >上下边框</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Me=function(){function Xe(){this.name="tableHeaderCellBorder"}return Xe.prototype.css=function(ke,Wr){if(ke.find("thead tr td").length){if(Wr=="border")return ke.find("thead tr td").css("border","1px solid"),"border:1px solid";Wr=="noBorder"?ke.find("thead tr td").css("border","0px solid"):ke.find("thead tr td").map(function(bn,Jn){Jn.style.border=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表头单元格边框
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>    
        <option value="border" >有边框</option>
        <option value="noBorder" >无边框</option>
      
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Re=function(){function Xe(){this.name="tableHeaderRowHeight"}return Xe.prototype.css=function(ke,Wr){if(ke.find("thead tr td").length){if(Wr)return ke.find("thead tr td:not([rowspan])").css("height",Wr+"pt"),"height:"+Wr+"pt";ke.find("thead tr td").map(function(bn,Jn){Jn.style.height=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表头行高
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
       
        <option value="" >默认</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        <option value="22.5" >22.5pt</option>
        <option value="23.25" >23.25pt</option>
        <option value="24" >24pt</option>
        <option value="24.75" >24.75pt</option>
        <option value="25.5" >25.5pt</option>
        <option value="26.25" >26.25pt</option>
        <option value="27" >27pt</option>
        <option value="27.75" >27.75pt</option>
        <option value="28.5" >28.5pt</option>
        <option value="29.25" >29.25pt</option>
        <option value="30" >30pt</option>
        <option value="30.75" >30.75pt</option>
        <option value="31.5" >31.5pt</option>
        <option value="32.25" >32.25pt</option>
        <option value="33" >33pt</option>
        <option value="33.75" >33.75pt</option>
        <option value="34.5" >34.5pt</option>
        <option value="35.25" >35.25pt</option>
        <option value="36" >36pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),ze=function(){function Xe(){this.name="tableHeaderFontSize"}return Xe.prototype.css=function(ke,Wr){if(ke.find("thead").length){if(Wr)return ke.find("thead").css("font-size",Wr+"pt"),"font-size:"+Wr+"pt";ke.find("thead").map(function(bn,Jn){Jn.style.fontSize=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表头字体大小
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ve=function(){function Xe(){this.name="tableHeaderFontWeight"}return Xe.prototype.css=function(ke,Wr){if(ke.find("thead").length){if(Wr)return ke.find("thead tr td").css("font-weight",Wr),"font-weight:"+Wr;ke.find("thead tr td").map(function(bn,Jn){Jn.style.fontWeight=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表头字体粗细
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit"> 
        <option value="" >默认</option>
        <option value="lighter" >更细</option>
        <option value="bold" >粗体</option>
        <option value="bolder" >粗体+</option>
        <option value="100" >100</option>
        <option value="200" >200</option>
        <option value="300" >300</option>
        <option value="400" >400</option>
        <option value="500" >500</option>
        <option value="600" >600</option>
        <option value="700" >700</option>
        <option value="800" >800</option>
        <option value="900" >900</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),nr=function(){function Xe(){this.name="tableBodyCellBorder"}return Xe.prototype.css=function(ke,Wr){if(ke.find("tbody tr td").length){if(Wr=="border")return ke.find("tbody tr td").css("border","1px solid"),"border:1px solid";Wr=="noBorder"?ke.find("tbody tr td").css("border","0px solid"):ke.find("tbody tr td").map(function(bn,Jn){Jn.style.border=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
            表体单元格
        </div>
        <div class="hiprint-option-item-field">
            <select class="auto-submit">
            <option value="" >默认</option>
            <option value="border" >有边框</option>
            <option value="noBorder" >无边框</option>
            </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ze=function(){function Xe(){this.name="tableBodyRowHeight"}return Xe.prototype.css=function(ke,Wr){if(ke.find("tbody tr td").length){if(Wr)return ke.find("tbody tr td:not([rowspan])").css("height",Wr+"pt"),"height:"+Wr+"pt";ke.find("tbody tr td").map(function(bn,Jn){Jn.style.height=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
            表体行高
        </div>
        <div class="hiprint-option-item-field">
            <select class="auto-submit">
            <option value="" >默认</option>
            <option value="6" >6pt</option>
            <option value="6.75" >6.75pt</option>
            <option value="7.5" >7.5pt</option>
            <option value="8.25" >8.25pt</option>
            <option value="9" >9pt</option>
            <option value="9.75" >9.75pt</option>
            <option value="10.5" >10.5pt</option>
            <option value="11.25" >11.25pt</option>
            <option value="12" >12pt</option>
            <option value="12.75" >12.75pt</option>
            <option value="13.5" >13.5pt</option>
            <option value="14.25" >14.25pt</option>
            <option value="15" >15pt</option>
            <option value="15.75" >15.75pt</option>
            <option value="16.5" >16.5pt</option>
            <option value="17.25" >17.25pt</option>
            <option value="18" >18pt</option>
            <option value="18.75" >18.75pt</option>
            <option value="19.5" >19.5pt</option>
            <option value="20.25" >20.25pt</option>
            <option value="21" >21pt</option>
            <option value="21.75" >21.75pt</option>
            <option value="22.5" >22.5pt</option>
            <option value="23.25" >23.25pt</option>
            <option value="24" >24pt</option>
            <option value="24.75" >24.75pt</option>
            <option value="25.5" >25.5pt</option>
            <option value="26.25" >26.25pt</option>
            <option value="27" >27pt</option>
            <option value="27.75" >27.75pt</option>
            <option value="28.5" >28.5pt</option>
            <option value="29.25" >29.25pt</option>
            <option value="30" >30pt</option>
            <option value="30.75" >30.75pt</option>
            <option value="31.5" >31.5pt</option>
            <option value="32.25" >32.25pt</option>
            <option value="33" >33pt</option>
            <option value="33.75" >33.75pt</option>
            <option value="34.5" >34.5pt</option>
            <option value="35.25" >35.25pt</option>
            <option value="36" >36pt</option>
            </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),ar=function(){function Xe(){this.name="tableHeaderBackground"}return Xe.prototype.css=function(ke,Wr){if(ke.find("thead").length){if(Wr)return ke.find("thead").css("background",Wr),"background:"+Wr;ke.find("thead").map(function(bn,Jn){Jn.style.background=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表头背景
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" class="auto-submit" />
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),fr=function(){function Xe(){this.name="borderWidth"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        边框大小
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-width",Wr+"pt"),"border-width:"+Wr+"pt";ke[0].style.borderWidth=""}return null},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ye=function(){function Xe(){this.name="barcodeMode"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        条形码格式
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="CODE128A" >CODE128A</option>
        <option value="CODE128B" >CODE128B</option>
        <option value="CODE128C" >CODE128C</option>
        <option value="CODE39" >CODE39</option>
        <option value="EAN-13" >EAN-13</option>
        <option value="EAN-8" >EAN-8</option>
        <option value="EAN-5" >EAN-5</option>
        <option value="EAN-2" >EAN-2</option>
        <option value="UPC(A)" >UPC(A)</option>
        <option value="ITF" >ITF</option>
        <option value="ITF-14" >ITF-14</option>
        <option value="MSI" >MSI</option>
            <option value="MSI10" >MSI10</option>
            <option value="MSI11" >MSI11</option>
            <option value="MSI1010" >MSI1010</option>
            <option value="MSI1110" >MSI1110</option>
            <option value="Pharmacode" >Pharmacode</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();return ke||void 0},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ar=function(){function Xe(){this.name="color"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("color",Wr),"color:"+Wr;ke[0].style.color=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        字体颜色
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" class="auto-submit"/>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Oe=function(){function Xe(){this.name="textDecoration"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        文本修饰
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="underline" >下划线。</option>
            <option value="overline" >上划线</option>
            <option value="line-through" >穿梭线</option>
           
        </select>
        </div>
    </div>`),this.target},Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("text-decoration",Wr),"text-decoration:"+Wr;ke[0].style.textDecoration=""}return null},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Je=function(){function Xe(){this.name="field"}return Xe.prototype.createTarget=function(ke){var Wr=void 0;if(ke&&(Wr=ke.getFields()),Wr){this.isSelect=!0;var bn=` <div class="hiprint-option-item hiprint-option-item-row">
            <div class="hiprint-option-item-label">
            字段名
            </div>
            <div class="hiprint-option-item-field">
            <select class="auto-submit">
                <option value="" >请选择字段</option>`;Wr.forEach(function(Jn,pi){bn+=' <option value="'+(Jn.field||"")+'" >'+(Jn.text||"")+"</option>"}),bn+=` </select>
            </div>
        </div>`,this.target=$$g(bn)}else this.isSelect=!1,this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
            <div class="hiprint-option-item-label">
            字段名
            </div>
            <div class="hiprint-option-item-field">
            <input type="text" placeholder="请输入字段名" class="auto-submit">
            </div>
        </div>`);return this.target},Xe.prototype.getValue=function(){return(this.isSelect?this.target.find("select").val():this.target.find("input").val())||void 0},Xe.prototype.setValue=function(ke){this.isSelect?ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>"),this.target.find("select").val(ke)):this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),We=function(){function Xe(){this.name="title"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        标题
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:50px;" placeholder="请输入标题" class="auto-submit"></textarea>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),or=function(){function Xe(){this.name="testData"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        测试数据
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="仅字段名称存在时有效" class="auto-submit" >
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),mr=function(){function Xe(){this.name="src"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        图片地址
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="请输入图片地址" class="auto-submit">
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),er=function(){function Xe(){this.name="borderColor"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-color",Wr),"border-color:"+Wr;ke[0].style.borderColor=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        边框颜色
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" class="auto-submit" />
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),ir=function(){function Xe(){this.name="paperNumberFormat"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        页码格式
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="paperNo-paperCount" class="auto-submit">
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),gr=function(){function Xe(){this.name="paperNumberDisabled"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        启用/禁用
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="false" >启用</option>
        <option value="true" >禁用</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),vr=function(){function Xe(){this.name="longTextIndent"}return Xe.prototype.css=function(ke,Wr){return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        每行缩进
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        <option value="22.5" >22.5pt</option>
        <option value="23.25" >23.25pt</option>
        <option value="24" >24pt</option>
        <option value="24.75" >24.75pt</option>
        <option value="25.5" >25.5pt</option>
        <option value="26.25" >26.25pt</option>
        <option value="27" >27pt</option>
        <option value="27.75" >27.75pt</option>
        <option value="28.5" >28.5pt</option>
        <option value="29.25" >29.25pt</option>
        <option value="30" >30pt</option>
        <option value="30.75" >30.75pt</option>
        <option value="31.5" >31.5pt</option>
        <option value="32.25" >32.25pt</option>
        <option value="33" >33pt</option>
        <option value="33.75" >33.75pt</option>
        <option value="34.5" >34.5pt</option>
        <option value="35.25" >35.25pt</option>
        <option value="36" >36pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Or=function(){function Xe(){this.name="showInPage"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        显示规则
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="first" >首页</option>
            <option value="odd" >奇数页</option>
            <option value="even" >偶数页</option>
            <option value="last" >尾页</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Nr=function(){function Xe(){this.name="panelPaperRule"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        打印规则
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="odd" >保持奇数</option>
            <option value="even" >保持偶数</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Hr=function(){function Xe(){this.name="leftSpaceRemoved"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        移除段落左侧空白
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="true" >移除</option>
            <option value="false" >不移除</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){if(this.target.find("select").val()=="false")return!1},Xe.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Dr=function(){function Xe(){this.name="firstPaperFooter"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        首页页尾
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="首页页尾" class="auto-submit">
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),kr=function(){function Xe(){this.name="lastPaperFooter"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        尾页页尾
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="尾页页尾" class="auto-submit">
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),qr=function(){function Xe(){this.name="evenPaperFooter"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        偶数页页尾
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="偶数页页尾" class="auto-submit">
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),An=function(){function Xe(){this.name="oddPaperFooter"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        奇数页页尾
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="奇数页页尾" class="auto-submit" >
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),lr=function(){function Xe(){this.name="fixed"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        位置固定
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="false" >否</option>
            <option value="true" >是</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},Xe.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Tr=function(){function Xe(){this.name="axis"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        拖动方向
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="v" >横向</option>
        <option value="h" >竖向</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();return ke||void 0},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),xr=function(){function Xe(){this.name="leftOffset"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        左偏移
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="偏移量pt" class="auto-submit" >
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),$r=function(){function Xe(){this.name="lHeight"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        最低高度
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="文本过短或为空时的高度" class="auto-submit">
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Qr=function(){function Xe(){this.name="unShowInPage"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        隐藏规则
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
            <option value="first" >首页</option>
            <option value="last" >尾页</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Jr=function(){function Xe(){this.name="tableBodyRowBorder"}return Xe.prototype.css=function(ke,Wr){if(ke.find("tbody tr").length){if(Wr=="border")return ke.find("tbody tr").css("border","1px solid"),"border:1pt solid";Wr=="noBorder"?ke.find("tbody tr").css("border","0px solid"):Wr=="topBorder"?(ke.find("tbody tr").css("border","0px solid"),ke.find("tbody tr").css("border-top","1px solid")):Wr=="bottomBorder"?(ke.find("tbody tr").css("border","0px solid"),ke.find("tbody tr").css("border-bottom","1px solid")):Wr=="topBottomBorder"?(ke.find("tbody tr").css("border","0px solid"),ke.find("tbody tr").css("border-top","1px solid"),ke.find("tbody tr").css("border-bottom","1px solid")):ke.find("tbody tr").map(function(bn,Jn){Jn.style.border=""})}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表体行边框
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>    
        <option value="border" >有边框</option>
        <option value="noBorder" >无边框</option>
        <option value="topBorder" >上边框</option>
        <option value="bottomBorder" >下边框</option>
        <option value="topBottomBorder" >上下边框</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),nn=function(){function Xe(){this.name="transform"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){var bn=ke.find(".hiprint-printElement-content");if(Wr)return bn.css("transform","rotate("+Wr+"deg)"),bn.css("-ms-transform","rotate("+Wr+"deg)"),bn.css("-moz-transform","rotate("+Wr+"deg)"),bn.css("-webkit-transform","rotate("+Wr+"deg)"),bn.css("-o-transform","rotate("+Wr+"deg)"),"transform:rotate("+Wr+"deg)";bn.length&&(bn[0].style.transform="")}return null},Xe.prototype.createTarget=function(){return this.target=$$g(`<div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        旋转角度
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" class="auto-submit"/>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),en=function(){function Xe(){this.name="optionsGroup"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        边框设置
        </div>
       
    </div>`),this.target},Xe.prototype.getValue=function(){},Xe.prototype.setValue=function(ke){},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Bn=function(){function Xe(){this.name="borderTop"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-top-style",Wr),"border-top:1px";ke[0].style.borderTopStyle="",ke[0].style.borderTopWidth=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        上边框
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
            <option value="" >否</option>
            <option value="solid" >实线</option>
            <option value="dotted" >虚线</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Sn=function(){function Xe(){this.name="borderLeft"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-left-style",Wr),"border-left:1px";ke[0].style.borderLeftStyle="",ke[0].style.borderLeftWidth=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        左边框
        </div>
        <div class="hiprint-option-item-field">
        <select>
        <option value="" >否</option>
        <option value="solid" >实线</option>
        <option value="dotted" >虚线</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Un=function(){function Xe(){this.name="borderRight"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-right-style",Wr),"border-right:1px";ke[0].style.borderRightStyle="",ke[0].style.borderRightWidth=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        右边框
        </div>
        <div class="hiprint-option-item-field">
        <select>
        <option value="" >否</option>
        <option value="solid" >实线</option>
        <option value="dotted" >虚线</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),On=function(){function Xe(){this.name="borderBottom"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-bottom-style",Wr),"border-bottom-style:1px solid";ke[0].style.borderBottomStyle="",ke[0].style.borderBottomWidth=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        下边框
        </div>
        <div class="hiprint-option-item-field">
        <select>
        <option value="" >否</option>
        <option value="solid" >实线</option>
        <option value="dotted" >虚线</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),zn=function(){function Xe(){this.name="contentPaddingLeft"}return Xe.prototype.css=function(ke,Wr){var bn=ke.find(".hiprint-printElement-content");if(bn&&bn.length){if(Wr)return bn.css("padding-left",Wr+"pt"),"padding-left";bn[0].style.paddingLeft=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        左内边距
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),fn=function(){function Xe(){this.name="contentPaddingTop"}return Xe.prototype.css=function(ke,Wr){var bn=ke.find(".hiprint-printElement-content");if(bn&&bn.length){if(Wr)return bn.css("padding-top",Wr+"pt"),"padding-top";bn[0].style.paddingTop=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        上内边距
        </div>
        <div class="hiprint-option-item-field">
        <select>
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Sr=function(){function Xe(){this.name="contentPaddingRight"}return Xe.prototype.css=function(ke,Wr){var bn=ke.find(".hiprint-printElement-content");if(bn&&bn.length){if(Wr)return bn.css("padding-right",Wr+"pt"),"padding-right";bn[0].style.paddingRight=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        右内边距
        </div>
        <div class="hiprint-option-item-field">
        <select>
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Yn=function(){function Xe(){this.name="contentPaddingBottom"}return Xe.prototype.css=function(ke,Wr){var bn=ke.find(".hiprint-printElement-content");if(bn&&bn.length){if(Wr)return bn.css("padding-bottom",Wr+"pt"),"padding-bottom";bn[0].style.paddingBottom=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        下内边距
        </div>
        <div class="hiprint-option-item-field">
        <select>
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Wn=function(){function Xe(){this.name="borderStyle"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("border-style",Wr),"border-style:1px";ke[0].style.borderStyle=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
       边框样式
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
            <option value="" >默认</option>
            <option value="solid" >实线</option>
            <option value="dotted" >虚线</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Tn=function(){function Xe(){this.name="backgroundColor"}return Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.css("background-color",Wr),"background-color:"+Wr;ke[0].style.backgroundColor=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        背景颜色
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" class="auto-submit"/>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("input").minicolors({defaultValue:ke||"",theme:"bootstrap"}),this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),$n=function(){function Xe(){this.name="orient"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        纸张方向(仅自定义纸质有效)
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="1" >纵向</option>
        <option value="2" >横向</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Dn=function(){function Xe(){this.name="textContentVerticalAlign"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        上下对齐
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="middle" >垂直居中</option>
        <option value="bottom" >底部</option>
       
        </select>
        </div>
    </div>`),this.target},Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return Wr==="middle"&&ke.addClass("hiprint-text-content-middle"),Wr==="bottom"&&ke.addClass("hiprint-text-content-bottom"),"";ke.removeClass("hiprint-text-content-middle"),ke.removeClass("hiprint-text-content-bottom")}return null},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Rn=Ae(5),Gn=function(){function Xe(){this.name="columns"}return Xe.prototype.createTarget=function(){return $$g('<div class="indicator"></div>').appendTo("body"),this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
       <div>
            <ul class="hiprint-option-table-selected-columns"> </ul>
       </div>
    </div>`),this.target},Xe.prototype.getValue=function(){return this.buildData()},Xe.prototype.setValue=function(ke,Wr,bn){var Jn=this,pi=this;this.value=ke,this.options=Wr,this.printElementType=bn;var Mn=bn.columns[0].filter(function(Ti){return ke[0].columns.filter(function(Oi){return Ti.columnId==Oi.columnId}).length==0}).map(function(Ti){var Oi=new Rn.a(Ti);return Oi.checked=!1,Oi});this.allColumns=ke[0].columns.concat(Mn),ke&&ke.length==1&&(this.target.find("ul").html(this.allColumns.map(function(Ti,Oi){return`<li  class="hiprint-option-table-selected-item"> <div class="hi-pretty p-default">
                `+(Ti.checked?'<input type="checkbox"   checked column-id="'+(Ti.columnId||"")+'" />':'<input type="checkbox"  column-id="'+(Ti.columnId||"")+'" />')+`
                <div class="state">
                    <label></label>
                </div>
            </div><span class="column-title">`+(Ti.title||Ti.descTitle||"")+"</span></li>"}).join("")),this.target.find("input").change(function(){Jn.submit()}),this.printElementType.columnDisplayIndexEditable&&this.target.find("li").hidraggable({revert:!0,handle:".column-title",moveUnit:"pt",deltaX:0,deltaY:0}).hidroppable({onDragOver:function(Oi,Ni){$$g(this).css("border-bottom-color","red")},onDragLeave:function(Oi,Ni){$$g(this).css("border-bottom-color","")},onDrop:function(Oi,Ni){$$g(Ni).insertAfter(this),$$g(this).css("border-bottom-color",""),pi.submit()}}))},Xe.prototype.buildData=function(){var ke=this,Wr=[];return this.allColumns.filter(function(bn){bn.checked=!1}),(this.printElementType.columnDisplayEditable?this.target.find("input:checked"):this.target.find("input")).map(function(bn,Jn){var pi=$$g(Jn).attr("column-id"),Mn=ke.options.makeColumnObj();if(Mn[pi])Mn[pi].checked=!0,Wr.push(Mn[pi]);else{var Ti=ke.printElementType.getColumnByColumnId(pi);if(Ti){var Oi=new Rn.a(Ti);Oi.checked=!0,Wr.push(Oi)}}}),this.value[0].columns=Wr,this.value},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Kn=function(){function Xe(){this.name="textType"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        打印类型
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="" >文本</option>
        <option value="barcode" >条形码</option>
        <option value="qrcode" >二维码</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),ti=function(){function Xe(){this.name="topOffset"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        顶部偏移
        </div>
        <div class="hiprint-option-item-field">
        <input type="text" placeholder="偏移量pt" class="auto-submit">
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("input").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){this.target.find("input").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ai=function(){function Xe(){this.name="gridColumns"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        一行多组
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="2" >一行二列</option>
        <option value="3" >一行三列</option>
        <option value="4" >一行四列</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),yi=function(){function Xe(){this.name="gridColumnsGutter"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        一行多组间隔
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.25" >7.25pt</option>
        <option value="8.5" >8.5pt</option>
        <option value="9" >9pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.css=function(ke,Wr){if(ke&&ke.length){if(Wr)return ke.find(".table-grid-row").css("margin-left","-"+Wr+"pt").css("margin-right","-"+Wr+"pt"),ke.find(".tableGridColumnsGutterRow").css("padding-left",Wr+"pt").css("padding-right",Wr+"pt"),null;ke.find(".table-grid-row").map(function(bn,Jn){Jn.style.marginLeft="",Jn.style.marginRight=""}),ke.find(".tableGridColumnsGutterRow").map(function(bn,Jn){Jn.style.paddingLeft="",Jn.style.paddingRight=""})}return null},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Bi=function(){function Xe(){this.name="paddingLeft"}return Xe.prototype.css=function(ke,Wr){var bn=ke;if(bn&&bn.length){if(Wr)return bn.css("padding-left",Wr+"pt"),"padding-left";bn[0].style.paddingLeft=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        左内边距
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),ei=function(){function Xe(){this.name="paddingRight"}return Xe.prototype.css=function(ke,Wr){var bn=ke;if(bn&&bn.length){if(Wr)return bn.css("padding-right",Wr+"pt"),"padding-right";bn[0].style.paddingRight=""}return null},Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        右内边距
        </div>
        <div class="hiprint-option-item-field">
        <select>
        <option value="" >默认</option>
        <option value="0.75" >0.75pt</option>
        <option value="1.5" >1.5pt</option>
        <option value="2.25" >2.25pt</option>
        <option value="3" >3pt</option>
        <option value="3.75" >3.75pt</option>
        <option value="4.5" >4.5pt</option>
        <option value="5.25" >5.25pt</option>
        <option value="6" >6pt</option>
        <option value="6.75" >6.75pt</option>
        <option value="7.5" >7.5pt</option>
        <option value="8.25" >8.25pt</option>
        <option value="9" >9pt</option>
        <option value="9.75" >9.75pt</option>
        <option value="10.5" >10.5pt</option>
        <option value="11.25" >11.25pt</option>
        <option value="12" >12pt</option>
        <option value="12.75" >12.75pt</option>
        <option value="13.5" >13.5pt</option>
        <option value="14.25" >14.25pt</option>
        <option value="15" >15pt</option>
        <option value="15.75" >15.75pt</option>
        <option value="16.5" >16.5pt</option>
        <option value="17.25" >17.25pt</option>
        <option value="18" >18pt</option>
        <option value="18.75" >18.75pt</option>
        <option value="19.5" >19.5pt</option>
        <option value="20.25" >20.25pt</option>
        <option value="21" >21pt</option>
        <option value="21.75" >21.75pt</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return parseFloat(ke.toString())},Xe.prototype.setValue=function(ke){ke&&(this.target.find('option[value="'+ke+'"]').length||this.target.find("select").prepend('<option value="'+ke+'" >'+ke+"</option>")),this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),ci=function(){function Xe(){this.name="dataType"}return Xe.prototype.createTarget=function(){var ke=this;return this.target=$$g(`
        <div class="hiprint-option-item-row">
        <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        数据类型
        </div>
        <div class="hiprint-option-item-field">
        <select class="hiprint-option-item-datatype">
        <option value="" >默认</option>
        <option value="datetime" >日期时间</option>
        <option value="boolean" >布尔</option>
        </select>
        </div>
    </div>
    <div class="hiprint-option-item ">
        <div class="hiprint-option-item-label ">
        格式
        </div>
        <div class="hiprint-option-item-field">
        <select  class="auto-submit hiprint-option-item-datatype-select-format">
        <option value="" >默认</option>
        
        </select>
        <input class="auto-submit  hiprint-option-item-datatype-input-format" type="text" data-type="boolean" placeholder="true:false">
        </div>
    </div>
        </div>
        `),$$g(this.target.find(".hiprint-option-item-datatype")).change(function(){var Wr=$$g(ke.target.find(".hiprint-option-item-datatype")).val();ke.loadFormatSelectByDataType(Wr),ke.submit(ke.getValue())}),this.target},Xe.prototype.getValue=function(){var ke=this.target.find(".hiprint-option-item-datatype").val();if(ke){var Wr=this.target.find(".hiprint-option-item-datatype-format").val();return{dataType:ke,format:Wr||void 0}}return{dataType:void 0,format:void 0}},Xe.prototype.setValue=function(ke,Wr){this.target.find(".hiprint-option-item-datatype").val(Wr.dataType||""),this.loadFormatSelectByDataType(Wr.dataType),this.target.find(".hiprint-option-item-datatype-format").val(Wr.format||"")},Xe.prototype.destroy=function(){this.target.remove()},Xe.prototype.loadFormatSelectByDataType=function(ke){ke==="boolean"?(this.target.find(".hiprint-option-item-datatype-select-format").removeClass("hiprint-option-item-datatype-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-input-format").addClass("hiprint-option-item-datatype-format").show()):ke==="datetime"?(this.target.find(".hiprint-option-item-datatype-select-format").addClass("hiprint-option-item-datatype-format").show(),this.target.find(".hiprint-option-item-datatype-input-format").removeClass("hiprint-option-item-datatype-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-select-format").html(`
            <option value="" >默认</option>
            <option value="M/d" >M/d</option>
            <option value="MM/dd" >MM/dd</option>
            <option value="yy/M/d" >yy/M/d</option>
            <option value="yy/MM/dd" >yy/MM/dd</option>
            <option value="yyyy/M/d" >yyyy/M/d</option>
            <option value="yyyy/MM/dd" >yyyy/MM/dd</option>
            <option value="yy/M/d H:m" >yy/M/d H:m</option>
            <option value="yy/M/d H:m:s" >yy/M/d H:m:s</option>
            <option value="yy/M/d HH:mm" >yy/M/d HH:mm</option>
            <option value="yy/M/d HH:mm:ss" >yy/M/d HH:mm:ss</option>
            <option value="yy/MM/dd H:m" >yy/MM/dd H:m</option>
            <option value="yy/MM/dd H:m:s" >yy/MM/dd H:m:s</option>
            <option value="yy/MM/dd HH:mm" >yy/MM/dd HH:mm</option>
            <option value="yy/MM/dd HH:mm:ss" >yy/MM/dd HH:mm:ss</option>
            <option value="yyyy/M/d H:m" >yyyy/M/dd H:m</option>
            <option value="yyyy/M/d H:m:s" >yyyy/M/d H:m:s</option>
            <option value="yyyy/M/d HH:mm" >yyyy/M/d HH:mm</option>
            <option value="yyyy/M/d HH:mm:ss" >yyyy/M/d HH:mm:ss</option>
            <option value="yyyy/MM/dd H:m" >yyyy/MM/dd H:m</option>
            <option value="yyyy/MM/dd H:m:s" >yyyy/MM/dd H:m:s</option>
            <option value="yyyy/MM/dd HH:mm" >yyyy/MM/dd HH:mm</option>
            <option value="yyyy/MM/dd HH:mm:ss" >yyyy/MM/dd HH:mm:ss</option>

            <option value="M-d" >M-d</option>
            <option value="MM-dd" >MM-dd</option>
            <option value="yy-M-d" >yy-M-d</option>
            <option value="yy-MM-dd" >yy-MM-dd</option>
            <option value="yyyy-M-d" >yyyy-M-d</option>
            <option value="yyyy-MM-dd" >yyyy-MM-dd</option>
            <option value="yy-M-d H:m" >yy-M-d H:m</option>
            <option value="yy-M-d H:m:s" >yy-M-d H:m:s</option>
            <option value="yy-M-d HH:mm" >yy-M-d HH:mm</option>
            <option value="yy-M-d HH:mm:ss" >yy-M-d HH:mm:ss</option>
            <option value="yy-MM-dd H:m" >yy-MM-dd H:m</option>
            <option value="yy-MM-dd H:m:s" >yy-MM-dd H:m:s</option>
            <option value="yy-MM-dd HH:mm" >yy-MM-dd HH:mm</option>
            <option value="yy-MM-dd HH:mm:ss" >yy-MM-dd HH:mm:ss</option>
            <option value="yyyy-M-d H:m" >yyyy-M-d H:m</option>
            <option value="yyyy-M-d H:m:s" >yyyy-M-d H:m:s</option>
            <option value="yyyy-M-d HH:mm" >yyyy-M-d HH:mm</option>
            <option value="yyyy-M-d HH:mm:ss" >yyyy-M-d HH:mm:ss</option>
            <option value="yyyy-MM-dd H:m" >yyyy-MM-dd H:m</option>
            <option value="yyyy-MM-dd H:m:s" >yyyy-MM-dd H:m:s</option>
            <option value="yyyy-MM-dd HH:mm" >yyyy-MM-dd HH:mm</option>
            <option value="yyyy-MM-dd HH:mm:ss" >yyyy-MM-dd HH:mm:ss</option>
        `)):(this.target.find(".hiprint-option-item-datatype-select-format").show(),this.target.find(".hiprint-option-item-datatype-input-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-format").html(`
            <option value="" >默认</option>
        `))},Xe}(),Qn=function(){function Xe(){this.name="formatter"}return Xe.prototype.createTarget=function(){var ke=` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        格式化函数
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:80px;" placeholder="`+(this.placeholder||"")+`" class="auto-submit"></textarea>
        </div>
    </div>`;return this.target=$$g(ke),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ii=function(){function Xe(){this.name="styler"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        样式函数
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:80px;" placeholder="function(value, options, target,templateData){}" class="auto-submit"></textarea>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),gi=function(){function Xe(){this.name="footerFormatter"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        表格脚函数
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:80px;" placeholder="function(options,rows,data){ return '<tr></tr>' }; }" class="auto-submit"></textarea>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),br=function(){function Xe(){this.name="gridColumnsFooterFormatter"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        多组表格脚函数
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:80px;" placeholder="function(options,rows,data){ return '' }; }" class="auto-submit"></textarea>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Ke=function(){function Xe(){this.name="rowStyler"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        行样式函数
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:80px;" placeholder="请输入标题" class="auto-submit"></textarea>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),je=function(){function Xe(){this.name="align"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        单元格左右对齐
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="left" >居左</option>
        <option value="center" >居中</option>
        <option value="right" >居右</option>
        <option value="justify" >两端对齐</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),sr=function(){function Xe(){this.name="vAlign"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        单元格上下对齐
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="top" >上</option>
        <option value="middle" >中</option>
        <option value="bottom" >居右</option>
        
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),dr=function(){function Xe(){this.name="halign"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表格头单元格左右对齐
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="left" >居左</option>
        <option value="center" >居中</option>
        <option value="right" >居右</option>
        <option value="justify" >两端对齐</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),Pr=function(){function Xe(){this.name="styler2"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        单元格样式函数
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:80px;" placeholder="function(value,row,index,options){ return {color:'red' }; }" class="auto-submit"></textarea>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),jr=function(){function Xe(){this.name="formatter2"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item hiprint-option-item-row">
        <div class="hiprint-option-item-label">
        单元格格式化函数
        </div>
        <div class="hiprint-option-item-field">
        <textarea style="height:80px;" placeholder="function(value,row,index,options){ return ''; }" class="auto-submit"></textarea>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("textarea").val();if(ke)return ke},Xe.prototype.setValue=function(ke){this.target.find("textarea").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),wn=function(){function Xe(){this.name="autoCompletion"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        自动补全
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="true" >是</option>
        <option value="false" >否</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){if(this.target.find("select").val()=="true")return!0},Xe.prototype.setValue=function(ke){this.target.find("select").val((ke??"").toString())},Xe.prototype.destroy=function(){this.target.remove()},Xe}(),pn=function(){function Xe(){this.name="tableFooterRepeat"}return Xe.prototype.createTarget=function(){return this.target=$$g(` <div class="hiprint-option-item">
        <div class="hiprint-option-item-label">
        表格脚显示
        </div>
        <div class="hiprint-option-item-field">
        <select class="auto-submit">
        <option value="" >默认</option>
        <option value="no" >不显示</option>
        <option value="page" >每页显示</option>
        <option value="last" >最后显示</option>
        </select>
        </div>
    </div>`),this.target},Xe.prototype.getValue=function(){var ke=this.target.find("select").val();if(ke)return ke.toString()},Xe.prototype.setValue=function(ke){this.target.find("select").val(ke)},Xe.prototype.destroy=function(){this.target.remove()},Xe}();Ae.d(St,"a",function(){return Pn});var Pn=function(){function Xe(){}return Xe.init=function(){Xe.printElementOptionItems||(Xe.printElementOptionItems={},Xe._printElementOptionItems.forEach(function(ke){Xe.printElementOptionItems[ke.name]=ke}))},Xe.registerItem=function(ke){if(!ke.name)throw new Error("styleItem must have name");Xe.init(),Xe.printElementOptionItems[ke.name]=ke},Xe.getItem=function(ke){return Xe.init(),Xe.printElementOptionItems[ke]},Xe._printElementOptionItems=[new Ce,new _e,new Te,new Se,new Ee,new xe,new Ie,new Kn,new Ue,new $e,new Me,new Re,new ze,new Ve,new nr,new Ze,new ar,new fr,new Ye,new Ar,new Oe,new Je,new We,new or,new mr,new er,new ir,new gr,new vr,new Or,new Nr,new Hr,new Dr,new kr,new qr,new An,new lr,new Tr,new ti,new xr,new $r,new Qr,new Jr,new nn,new en,new Bn,new Sn,new Un,new On,new fn,new zn,new Sr,new Yn,new Wn,new Tn,new $n,new Dn,new Gn,new Ai,new yi,new Bi,new ei,new ci,new Qn,new Ii,new gi,new br,new Ke,new je,new dr,new sr,new Pr,new jr,new wn,new pn],Xe}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ce}),Ae.d(St,"b",function(){return _e});var Ee=Ae(14),Ce=function(){function xe(Ie,Ue){this.selectedCells=[],this.rows=Ie,this.tableTatget=Ue}return xe.prototype.clear=function(){this.tableTatget.find("td").removeClass("selected")},xe.prototype.setSingleSelect=function(Ie){this.startCell=Ie,this.selectedCells=[]},xe.prototype.getSingleSelect=function(){if(this.selectedCells.length){if(this.selectedCells.length==1)return this.selectedCells[0].length==1?this.selectedCells[0][0]:void 0;if(this.selectedCells.length>1)return}return this.startCell},xe.prototype.singleSelectByXY=function(Ie,Ue){var $e=this.getCellByXY(Ie,Ue);$e&&(this.clear(),$e&&($e.cell.select(),this.startCell=$e,this.selectedCells=[]))},xe.prototype.multipleSelectByXY=function(Ie,Ue){this.clear();var $e=[];if(this.startCell){var Me=this.getCellByXY(Ie,Ue);if(Me){var Re=Ee.a.mergeRect(this.startCell.cell.getTableRect(),Me.cell.getTableRect());this.selectByRect(new Te(Re),$e)}}this.selectedCells=$e},xe.prototype.selectByRect=function(Ie,Ue){this.rows.forEach(function($e,Me){var Re=[];$e.columns.forEach(function(ze){ze.isInRect(Ie)&&(Re.push(new Se(Me,ze)),ze.select())}),Re.length&&Ue.push(Re)}),Ie.changed&&(Ie.changed=!1,Ue.splice(0,Ue.length),this.selectByRect(Ie,Ue))},xe.prototype.getSelectedCells=function(){return this.selectedCells},xe.prototype.getCellByXY=function(Ie,Ue){var $e;return this.rows.forEach(function(Me,Re){var ze=Me.columns.filter(function(Ve){return Ve.isXYinCell(Ie,Ue)});ze.length&&($e=new Se(Re,ze[0]))}),$e},xe}(),_e=function(){return function(xe){this.x=xe.x,this.y=xe.y,this.height=xe.height,this.width=xe.width}}(),Te=function(){return function(xe){this.rect=xe}}(),Se=function(){return function(xe,Ie){this.rowIndex=xe,this.cell=Ie}}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){function Ce(){}return Ce.createId=function(){return this.id+=1,this.id},Ce.id=1,Ce}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Se});var Ee,Ce=Ae(5),_e=Ae(13),Te=(Ee=function(Ie,Ue){return(Ee=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function($e,Me){$e.__proto__=Me}||function($e,Me){for(var Re in Me)Me.hasOwnProperty(Re)&&($e[Re]=Me[Re])})(Ie,Ue)},function(xe,Ie){function Ue(){this.constructor=xe}Ee(xe,Ie),xe.prototype=Ie===null?Object.create(Ie):(Ue.prototype=Ie.prototype,new Ue)}),Se=function(xe){function Ie(Ue){var $e=xe.call(this)||this;return $e.columns=[],Ue&&Ue.constructor===Array?(Ue||[]).forEach(function(Me){$e.columns.push(new Ce.a(Me))}):Ue.columns&&(Ue.columns||[]).forEach(function(Me){$e.columns.push(new Ce.a(Me))}),$e}return Te(Ie,xe),Ie.prototype.getPrintElementOptionEntity=function(){var Ue=[];return this.columns.forEach(function($e){Ue.push($e.getEntity())}),Ue},Ie}(_e.a)},function(Be,St,Ae){Ae.d(St,"a",function(){return _e});var Ee=Ae(11),Ce=Ae(5),_e=function(){function Te(){this.id=Ee.a.createId()}return Te.prototype.init=function(Se,xe,Ie){this.isHead=Ie,this.target=xe||$$g("<tr></tr>"),this.tableOptions=Se,this.initCells(this.columns)},Te.prototype.getTarget=function(){return this.target},Te.prototype.initCells=function(Se){var xe=this;Se?Se.forEach(function(Ie,Ue){Ie.init(xe.target.find("td:eq("+Ue+")"),xe.tableOptions,xe.id,xe.isHead)}):(this.columns=[],this.target.find("td").map(function(Ie,Ue){var $e=new Ce.a;$e.init($$g(Ue),xe.tableOptions,xe.id,xe.isHead),xe.columns.push($e)}))},Te.prototype.removeCell=function(Se){var xe=this.columns.indexOf(Se);this.columns[xe].getTarget().remove(),this.columns.splice(xe,1)},Te.prototype.createTableCell=function(Se,xe){var Ie=new Ce.a;return Ie.init($$g("<td></td>"),this.tableOptions,this.id,this.isHead),Se>1&&(Ie.getTarget().attr("rowspan",Se),Ie.rowspan=Se),xe>1&&(Ie.getTarget().attr("colspan",xe),Ie.colspan=xe),Ie},Te.prototype.insertToTargetCellLeft=function(Se,xe){var Ie=this.columns.indexOf(Se);Se.getTarget().before(xe.getTarget()),this.columns.splice(Ie,0,xe)},Te.prototype.insertToTargetCellRight=function(Se,xe){var Ie=this.columns.indexOf(Se);this.columns[Ie].getTarget().after(xe.getTarget()),this.columns.splice(Ie+1,0,xe)},Te.prototype.insertCellToFirst=function(Se){this.target.prepend(Se.getTarget()),this.columns.splice(0,0,Se)},Te.prototype.insertCellToLast=function(Se){this.columns.push(Se),this.target.append(Se.getTarget())},Te.prototype.getPrintElementOptionEntity=function(){var Se=[];return this.columns.forEach(function(xe){Se.push(xe.getEntity())}),Se},Te}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ce});var Ee=Ae(10),Ce=function(){function _e(){}return _e.mergeRect=function(Te,Se){var xe=Math.min(Te.x,Se.x),Ie=Math.min(Te.y,Se.y);return new Ee.b({x:xe,y:Ie,height:Math.max(Te.y+Te.height,Se.y+Se.height)-Ie,width:Math.max(Te.x+Te.width,Se.x+Se.width)-xe})},_e.Rect=function(Te,Se,xe,Ie){return{minX:Te<xe?Te:xe,minY:Se<Ie?Se:Ie,maxX:Te<xe?xe:Te,maxY:Se<Ie?Ie:Se}},_e}()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return TablePrintElement});var _BasePrintElement__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(0),_PrintReferenceElement__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8),_option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18),_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(7),_hitable_HiTale__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(16),_table_GridColumnsStructure__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(20),_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2),__extends=(_extendStatics=function(St,Ae){return(_extendStatics=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(Ee,Ce){Ee.__proto__=Ce}||function(Ee,Ce){for(var _e in Ce)Ce.hasOwnProperty(_e)&&(Ee[_e]=Ce[_e])})(St,Ae)},function(Be,St){function Ae(){this.constructor=Be}_extendStatics(Be,St),Be.prototype=St===null?Object.create(St):(Ae.prototype=St.prototype,new Ae)}),_extendStatics,TablePrintElement=function(_super){function TablePrintElement(Be,St){var Ae=_super.call(this,Be)||this;return Ae.gridColumnsFooterCss="hiprint-gridColumnsFooter",Ae.tableGridRowCss="table-grid-row",Ae.options=new _option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__.a(St,Ae.printElementType),Ae.options.setDefault(new _option_TablePrintElementOption__WEBPACK_IMPORTED_MODULE_5__.a(_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.table.default).getPrintElementOptionEntity()),Ae}return __extends(TablePrintElement,_super),TablePrintElement.prototype.getColumns=function(){return this.options.columns},TablePrintElement.prototype.getColumnByColumnId=function(Be){return this.options.getColumnByColumnId(Be)},TablePrintElement.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){this.css(this.designTarget,this.getData());var Be=this.designTarget.find(".hiprint-printElement-table-content"),St=this.getHtml(this.designPaper);Be.html(""),Be.append(St[0].target.find(".table-grid-row")),this.printElementType.editable&&this.setHitable(),this.setColumnsOptions()}},TablePrintElement.prototype.css=function(Be,St){if((this.getField()||!this.options.content)&&!this.printElementType.formatter)return _super.prototype.css.call(this,Be,St)},TablePrintElement.prototype.getDesignTarget=function(Be){return this.designTarget=this.getHtml(Be)[0].target,this.designPaper=Be,this.designTarget.find("td").hidroppable({accept:".rn-draggable-item",onDrop:function(Ae,Ee){},onDragEnter:function(Ae,Ee){$$g(Ee).removeClass("rn-draggable-item")},onDragLeave:function(Ae,Ee){$$g(Ee).addClass("rn-draggable-item")}}),this.designTarget},TablePrintElement.prototype.getConfigOptions=function(){return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.table},TablePrintElement.prototype.createTarget=function(Be,St,Ae){for(var Ee=$$g('<div class="hiprint-printElement hiprint-printElement-table" style="position: absolute;"><div class="hiprint-printElement-table-handle"></div><div class="hiprint-printElement-table-content" style="height:100%;width:100%"></span></div>'),Ce=this.createGridColumnsStructure(Ae),_e=0;_e<Ce.gridColumns;_e++)Ce.getByIndex(_e).append(this.getTableHtml(St,Ae));return Ee.find(".hiprint-printElement-table-content").append(Ce.target),Ee},TablePrintElement.prototype.createGridColumnsStructure=function(Be){for(var St=$$g('<div class="hi-grid-row table-grid-row"></div>'),Ae=0;Ae<this.options.getGridColumns();Ae++){var Ee=$$g('<div class="tableGridColumnsGutterRow hi-grid-col" style="width:'+100/this.options.getGridColumns()+'%;"></div>');St.append(Ee)}var Ce=this.getGridColumnsFooterFormatter();if(Ce){var _e=$$g('<div class="hiprint-gridColumnsFooter"></div>');_e.append(Ce(this.options,this.getData(Be),Be,[])),St.append(_e)}return new _table_GridColumnsStructure__WEBPACK_IMPORTED_MODULE_8__.a(this.options.getGridColumns(),St)},TablePrintElement.prototype.createtempEmptyRowsTargetStructure=function(Be){if(this.getField())return this.createTarget(this.printElementType.title,[]);var St=this.createTarget(this.printElementType.title,[]).clone();return St.find(".hiprint-printElement-tableTarget tbody tr").remove(),St},TablePrintElement.prototype.getTableHtml=function(Be,St){var Ae,Ee;if(!this.getField()&&this.options.content)return(Ae=$$g("<div></div>")).append(this.options.content),(Ee=Ae.find("table")).addClass("hiprint-printElement-tableTarget"),Ee;if(this.printElementType.formatter)return(Ae=$$g("<div></div>")).append(this.printElementType.formatter(Be)),(Ee=Ae.find("table")).addClass("hiprint-printElement-tableTarget"),Ee;var Ce=$$g('<table class="hiprint-printElement-tableTarget" style="border-collapse: collapse;"></table>');return Ce.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableHead(this.getColumns(),this.options.getWidth()/this.options.getGridColumns())),Ce.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableRow(this.getColumns(),Be,this.options,this.printElementType)),this.getFooterFormatter()&&(this.options.tableFooterRepeat=="no"||(this.options.tableFooterRepeat=="last"?Ce.find("tbody").append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,Be,this.options,this.printElementType,St,Be).html()):Ce.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,Be,this.options,this.printElementType,St,[])))),Ce},TablePrintElement.prototype.getEmptyRowTarget=function(){return _table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createEmptyRowTarget(this.getColumns())},TablePrintElement.prototype.getHtml=function(Be,St){this.createTempContainer();var Ae=this.getPaperHtmlResult(Be,St);return this.removeTempContainer(),Ae},TablePrintElement.prototype.getPaperHtmlResult=function(Be,St){var Ae=[],Ee=this.getData(St),Ce=this.getTableHtml(Ee,St),_e=this.createtempEmptyRowsTargetStructure(St);St?this.updateTargetWidth(_e):this.updateTargetSize(_e),this.css(_e,Ee),this.css(Ce,Ee),this.getTempContainer().html(""),this.getTempContainer().append(_e);for(var Te,Se=this.getBeginPrintTopInPaperByReferenceElement(Be),xe=0,Ie=!1;!Ie;){var Ue=0,$e=Be.getPaperFooter(xe);xe==0&&Se>$e&&(Se=Se-$e+Be.paperHeader,Ae.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({target:void 0,printLine:void 0})),Ue=Be.getContentHeight(xe)-(Se-Be.paperHeader),xe++,$e=Be.getPaperFooter(xe));var Me=Ae.length>0?Ae[Ae.length-1].target:void 0,Re=this.getRowsInSpecificHeight(St,Ue>0?Ue:xe==0?$e-Se:Be.getContentHeight(xe),_e,Ce,xe,Me);Ie=Re.isEnd;var ze=void 0;Re.target&&(Re.target.css("left",this.options.displayLeft()),Re.target[0].height=""),xe==0||Ue>0?(Re.target&&(Te=Se,Re.target.css("top",Se+"pt")),ze=Ie&&this.options.lHeight!=null?Se+(Re.height>this.options.lHeight?Re.height:this.options.lHeight):Se+Re.height):(Re.target&&(Te=Be.paperHeader,Re.target.css("top",Be.paperHeader+"pt")),ze=Be.paperHeader+Re.height),Ae.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({target:Re.target,printLine:ze,referenceElement:new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_4__.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:Be.index,bottomInLastPaper:ze,printTopInPaper:Te})})),xe++}return Ae},TablePrintElement.prototype.getRowsInSpecificHeight=function(Be,St,Ae,Ee,Ce,_e){var Te=Ee.find("tbody"),Se=_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.pt.toPx(St);Ae.find(".hiprint-printElement-tableTarget tbody").html("");var xe=Ae.outerHeight();if(xe>Se)return{target:void 0,length:0,height:0,isEnd:!1};for(var Ie=[],Ue=0;Ue<this.options.getGridColumns();Ue++)for(var $e=Ae.find(".hiprint-printElement-tableTarget:eq("+Ue+")"),Me=void 0,Re=[];;){if(xe<=Se)if(Te.find("tr").length==0)Me={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!0},Be&&this.options.autoCompletion&&(this.autoCompletion(Se,$e),xe=Ae.outerHeight());else{var ze=Te.find("tr:lt(1)");$e.find("tbody").append(ze);var Ve=ze.data("rowData");Ie.push(Ve),Re.push(Ve),(xe=Ae.outerHeight())>Se&&(Te.prepend(ze),Ie.pop(),Re.pop(),xe=Ae.outerHeight(),Me={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!1})}if(Me){this.getFooterFormatter()&&$e.find("tfoot").length&&$e.find("tfoot").html(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,this.getData(Be),this.options,this.printElementType,Be,Re).html());break}}var nr=Ae.find(".hiprint-printElement-tableTarget tbody tr").length,Ze=this.getGridColumnsFooterFormatter();return Ze&&Ae.find(this.gridColumnsFooterCss).html(Ze(this.options,this.getData(Be),Be,Ie)),Te.find("tr").length==0?nr==0&&_e?{target:void 0,length:0,height:0,isEnd:!0}:{target:Ae.clone(),length:nr,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!0}:{target:Ae.clone(),length:nr,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(xe),isEnd:!1}},TablePrintElement.prototype.autoCompletion=function(Be,St){for(var Ae,Ee=this.getEmptyRowTarget(),Ce=St.outerHeight();Be>Ce;)Ae=Ee.clone(),St.find("tbody").append(Ae),Ce=St.outerHeight();Ae&&Ae.remove()},TablePrintElement.prototype.getData=function(Be){if(!Be)return[{}];var St=Be[this.getField()];return St?JSON.parse(JSON.stringify(St)):[]},TablePrintElement.prototype.onResize=function(Be,St,Ae,Ee,Ce){_super.prototype.updateSizeAndPositionOptions.call(this,Ce,Ee,Ae,St),_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.resizeTableCellWidth(this.designTarget,this.getColumns(),this.options.getWidth())},TablePrintElement.prototype.getReizeableShowPoints=function(){return["s","e"]},TablePrintElement.prototype.design=function(Be,St){var Ae=this;this.designTarget.hidraggable({handle:this.designTarget.find(".hiprint-printElement-table-handle"),axis:Ae.options.axis&&Be&&Be.axisEnabled?Ae.options.axis:void 0,onDrag:function(Ce,_e,Te){Ae.updateSizeAndPositionOptions(_e,Te),Ae.createLineOfPosition(St)},moveUnit:"pt",minMove:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,onBeforeDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!0,Ae.createLineOfPosition(St)},onStopDrag:function(Ce){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.printElementType.editable&&this.setHitable(),this.setColumnsOptions(),this.designTarget.hireizeable({showPoints:Ae.getReizeableShowPoints(),noContainer:!0,onBeforeResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!0},onResize:function(Ce,_e,Te,Se,xe){Ae.onResize(Ce,_e,Te,Se,xe),Ae.hitable&&Ae.hitable.updateColumnGrips(),Ae.createLineOfPosition(St)},onStopResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,Ae.removeLineOfPosition()}}),this.bingKeyboardMoveEvent(this.designTarget,St)},TablePrintElement.prototype.setHitable=function(){var Be=this;this.hitable=new _hitable_HiTale__WEBPACK_IMPORTED_MODULE_7__.a({table:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)"),rows:this.getColumns(),resizeRow:!1,resizeColumn:!0,trs:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("tbody tr"),handle:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead"),isEnableEdit:this.printElementType.editable,columnDisplayEditable:this.printElementType.columnDisplayEditable,columnDisplayIndexEditable:this.printElementType.columnDisplayIndexEditable,columnResizable:this.printElementType.columnResizable,columnAlignEditable:this.printElementType.columnAlignEditable,isEnableEditText:this.printElementType.columnTitleEditable,isEnableEditField:!1,isEnableContextMenu:!0,isEnableInsertRow:!1,isEnableDeleteRow:!1,isEnableInsertColumn:!1,isEnableDeleteColumn:!1,isEnableMergeCell:!1}),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.on("updateTable"+this.hitable.id,function(){Be.updateDesignViewFromOptions()})},TablePrintElement.prototype.setColumnsOptions=function(){var Be=this;this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead td").bind("click.hiprint",function(St){var Ae=$$g(St.target).attr("column-id"),Ee=Be.getColumnByColumnId(Ae);if(Ee){var Ce=Be.getPrintElementOptionItemsByName("tableColumn");_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(Be.getPrintElementSelectEventKey(),{printElement:Be,customOptionsInput:[{title:Ee.title+"-列属性",optionItems:Ce,options:Ee,callback:function(Te){Ce.forEach(function(Se){var xe=Se.getValue();Ee[Se.name]=xe})}}]})}else _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(Be.getPrintElementSelectEventKey(),{printElement:Be})})},TablePrintElement.prototype.filterOptionItems=function(Be){var St=_super.prototype.filterOptionItems.call(this,Be);return this.printElementType.editable&&this.options.columns.length==1?St:Be.filter(function(Ae){return Ae.name!="columns"})},TablePrintElement.prototype.getFooterFormatter=function(){var footerFormatter=void 0;if(this.printElementType.footerFormatter&&(footerFormatter=this.printElementType.footerFormatter),this.options.footerFormatter)try{var s="footerFormatter="+this.options.footerFormatter;eval(s)}catch(Be){console.log(Be)}return footerFormatter},TablePrintElement.prototype.getGridColumnsFooterFormatter=function(){var gridColumnsFooterFormatter=void 0;if(this.printElementType.gridColumnsFooterFormatter&&(gridColumnsFooterFormatter=this.printElementType.gridColumnsFooterFormatter),this.options.gridColumnsFooterFormatter)try{var s="gridColumnsFooterFormatter="+this.options.gridColumnsFooterFormatter;eval(s)}catch(Be){console.log(Be)}return gridColumnsFooterFormatter},TablePrintElement}(_BasePrintElement__WEBPACK_IMPORTED_MODULE_0__.a)},function(Be,St,Ae){var Ee=function(){return function(fr){this.table=fr.table,this.isEnableEdit=fr.isEnableEdit,this.trs=fr.trs,this.resizeRow=fr.resizeRow,this.resizeColumn=fr.resizeColumn,this.isEnableEditField=fr.isEnableEditField,this.isEnableContextMenu=fr.isEnableContextMenu,this.isEnableEditField=fr.isEnableEditField,this.isEnableInsertRow=fr.isEnableInsertRow,this.isEnableDeleteRow=fr.isEnableDeleteRow,this.isEnableInsertColumn=fr.isEnableInsertColumn,this.isEnableDeleteColumn=fr.isEnableDeleteColumn,this.isEnableMergeCell=fr.isEnableMergeCell,this.columnResizable=fr.columnResizable,this.columnAlignEditable=fr.columnAlignEditable}}(),Ce=function(){function fr(Ye){this.options=new Ee(Ye)}return fr.prototype.enableEidt=function(){this.options.isEnableEdit},fr.prototype.disableEdit=function(){this.options.isEnableEdit},fr.prototype.isEnableEdit=function(){return this.options.isEnableEdit},fr}(),_e=Ae(0),Te=function(){return function(fr){this.cell=fr.cell,this.link=fr.link,this.linkType=fr.linkType,this.bottom=fr.bottom,this.rightMost=fr.rightMost,this.rowLevel=fr.rowLevel,this.columnLevel=fr.columnLevel,this.indexInTableGridRow=fr.indexInTableGridRow,this.indexInTableGridColumn=fr.indexInTableGridColumn}}(),Se=Ae(10),xe=function(){function fr(){}return fr.getLeftTableCell=function(Ye,Ar){var Oe;return Ye.forEach(function(Je,We){Je.cell&&We<Ar&&(Oe=Je.cell)}),Oe},fr.getIndex=function(Ye,Ar){var Oe;return Ye.forEach(function(Je,We){Je.cell&&Je.cell.id==Ar&&(Oe=We)}),Oe},fr}(),Ie=Ae(13),Ue=Ae(11),$e=function(){return function(fr,Ye){this.target=fr,this.grips=Ye}}(),Me=function(){return function(fr){this.target=fr}}(),Re=function(){return function(){this.rowColumns=[]}}(),ze=function(){function fr(){}return fr.getColumnsWidth=function(Ye,Ar){var Oe={},Je=fr.allAutoWidth(Ye);return Ye.rowColumns.forEach(function(We){var or=Ar-0,mr=We.width/Je*(or>0?or:0);Oe[We.id]=mr}),Oe},fr.resizeTableCellWeight=function(Ye){Ye.forEach(function(Ar){Ar.columns.forEach(function(Oe){Oe.hasWidth&&$$g(Oe.getTarget()).css("width",Oe.width+"pt")})})},fr.allAutoWidth=function(Ye){var Ar=0;return Ye.rowColumns.forEach(function(Oe){Ar+=Oe.width}),Ar},fr.reconsitutionTableColumnTree=function(Ye,Ar,Oe){for(var Je=Ar||new Re,We=function(er){Je.totalLayer=er+1,Je[er]=Ye[er].columns,Je.rowColumns=Je.rowColumns.concat(Je[er].filter(function(ir){return ir.rowspan==Ye.length-er}))},or=0;or<Ye.length;or++)We(or);return Je},fr}(),Ve=Ae(2),nr=function(){function fr(Ye){this.signature="HiTresizer",this.hitable=Ye,this.rows=Ye.rows,this.target=Ye.target}return fr.prototype.init=function(){this.addResizeRowAndColumn(),this.hitable.optionsCoat.options.resizeColumn&&this.createColumnGrips(),this.hitable.optionsCoat.options.resizeRow&&this.createRowGrips()},fr.prototype.resizeTableCellWidth=function(){ze.resizeTableCellWeight(this.rows)},fr.prototype.addResizeRowAndColumn=function(){},fr.prototype.createColumnGrips=function(){var Ye=this,Ar=this,Oe=[],Je=$$g('<div class="columngrips"/>');Je.width(this.target.width()),this.rows.forEach(function(We){We.columns.forEach(function(or,mr){if(or.getTarget().attr("haswidth")){var er=$$g('<div class="columngrip"><div class="gripResizer"></div></div>');Je.append(er);var ir=new Me(er);Oe.length>0&&(Oe[Oe.length-1].nextGrip=ir),Oe.push(ir),Ye.syncGrips(or,ir),$$g(er).hidraggable({axis:"h",onDrag:function(vr,Or,Nr){},moveUnit:"pt",minMove:1,onBeforeDrag:function(vr){if(Ve.a.instance.draging=!0,!ir.nextGrip)return!1;Ar.dragingGrip=ir,Ar.dragingGrip.left=parseFloat(Ar.dragingGrip.target.css("left").replace("px","")),ir.target.addClass("columngripDraging")},onStopDrag:function(vr){Ve.a.instance.draging=!1;var Or=parseFloat(Ar.dragingGrip.target.css("left").replace("px","")),Nr=_e.a.px.toPt(Or-Ar.dragingGrip.left);ir.cell.width=ir.cell.width+Nr,ir.nextGrip.cell.width=ir.nextGrip.cell.width-Nr,Ye.resizeTableCellWidth(),ir.target.removeClass("columngripDraging"),Ar.updateColumnGrips()}})}})}),this.target.before(Je),this.cgripContariner=new $e(Je,Oe)},fr.prototype.updateColumnGrips=function(){this.cgripContariner&&(this.cgripContariner.target.remove(),this.createColumnGrips())},fr.prototype.updateRowGrips=function(){this.rgripContariner&&(this.rgripContariner.target.remove(),this.createRowGrips())},fr.prototype.createRowGrips=function(){var Ye=this,Ar=this,Oe=[],Je=$$g('<div class="rowgrips"/>');this.rows.forEach(function(We,or){var mr=$$g('<div class="rowgrip"><div class="gripResizer"></div></div>');Je.append(mr);var er=new Me(mr);Oe.push(er),or>0&&or<Ye.rows.length&&$$g(mr).hidraggable({axis:"v",onDrag:function(gr,vr,Or){},moveUnit:"pt",minMove:1,onBeforeDrag:function(gr){Ar.dragingGrip=er,Ar.dragingGrip.top=parseFloat(Ar.dragingGrip.target.css("top").replace("px","")),er.target.addClass("rowgripDraging")},onStopDrag:function(gr){var vr=parseFloat(Ar.dragingGrip.target.css("top").replace("px","")),Or=_e.a.px.toPt(vr-Ar.dragingGrip.top+Ar.rows[or].columns[0].getTarget().height());Ar.rows[or].columns[0].getTarget().css("height",Or+"pt"),Ar.syncRowGrips(),er.target.removeClass("rowgripDraging")}})}),this.target.before(Je),this.rgripContariner=new $e(Je,Oe),this.syncRowGrips()},fr.prototype.syncGrips=function(Ye,Ar){var Oe=Ye.getTarget();Ar.cell=Ye,Ar.target.css({left:Oe.offset().left-this.target.offset().left+Oe.outerWidth(!1),height:30})},fr.prototype.syncRowGrips=function(){var Ye=this;this.rgripContariner.target.height(this.target.height()),this.rows.forEach(function(Ar,Oe){var Je=Ar.columns[0].getTarget();Ye.rgripContariner.grips[Oe].target.css({top:Je.offset().top-Ye.target.offset().top+Je.outerHeight(!1),width:30})})},fr.prototype.addResizerHeadRow=function(){this.target.find("thead").prepend()},fr}(),Ze=function(){function fr(){}return fr.prototype.init=function(){},fr.prototype.updateRowGrips=function(){},fr.prototype.updateColumnGrips=function(){},fr}();Ae.d(St,"a",function(){return ar});var ar=function(){function fr(Ye){this.id=Ue.a.createId(),this.optionsCoat=new Ce(Ye),this.handle=Ye.handle,this.target=Ye.table,this.initRows(Ye.rows),this.init(Ye),this.tableCellSelector=new Se.a(this.rows,this.target),this.resizer=this.optionsCoat.options.columnResizable?new nr(this):new Ze,this.resizer.init()}return fr.prototype.insertRow=function(Ye,Ar,Oe){var Je=Ar||this.tableCellSelector.getSingleSelect(),We=Je.cell,or=this.rows[Je.rowIndex],mr=Je.rowIndex,er=this.getCellGrid(),ir=new Ie.a;if(ir.init(this.optionsCoat,void 0,or.isHead),Oe&&ir.getTarget().addClass(Oe),Ye=="above")er[mr].forEach(function(vr){var Or=vr.link?vr.link:vr.cell,Nr=Or.width/Or.colspan;if(vr.columnLevel==0){var Hr=ir.createTableCell();Hr.width=Nr,ir.insertCellToLast(Hr)}else{if(vr.linkType=="column"){var Dr=vr.link.getTarget();vr.link.rowspan+=1,Dr.attr("rowspan",vr.link.rowspan)}vr.linkType}}),this.rows.splice(mr,0,ir),or.getTarget().before(ir.getTarget()),_e.a.event.trigger("newRow"+this.id,ir);else{var gr=mr+We.rowspan-1;er[gr].forEach(function(vr){var Or=vr.link?vr.link:vr.cell,Nr=Or.width/Or.colspan;if(vr.bottom){var Hr=ir.createTableCell();Hr.width=Nr,ir.insertCellToLast(Hr)}else{if(vr.cell){var Dr=vr.cell.getTarget();vr.cell.rowspan+=1,Dr.attr("rowspan",vr.cell.rowspan)}vr.linkType=="column"&&(Dr=vr.link.getTarget(),vr.link.rowspan+=1,Dr.attr("rowspan",vr.link.rowspan))}}),this.rows.splice(gr+1,0,ir),this.rows[gr].getTarget().after(ir.getTarget()),_e.a.event.trigger("newRow"+this.id,ir)}},fr.prototype.insertColumn=function(Ye,Ar,Oe,Je){var We=this,or=this.rows.concat(this.trRows),mr=Ar||this.tableCellSelector.getSingleSelect(),er=mr.cell,ir=mr.rowIndex,gr=this.getCellGrid(or),vr=gr[ir].filter(function(Hr){return Hr.cell&&Hr.cell.id==er.id||Hr.link&&Hr.link.id==er.id});if(Ye=="left"){var Or=vr[0].indexInTableGridRow;gr.forEach(function(Hr,Dr){var kr=Hr[Or],qr=Hr.filter(function(xr,$r){return $r>=Or&&xr.cell});if(kr.rowLevel==0){var An=or[Dr],lr=or[Dr].createTableCell();Oe&&lr.getTarget().addClass(Oe),Je!=null&&(lr.width=Je),qr.length?An.insertToTargetCellLeft(qr[0].cell,lr):An.insertCellToLast(lr),_e.a.event.trigger("newCell"+We.id,lr)}else if(kr.linkType=="row"){var Tr=kr.link.getTarget();kr.link.colspan+=1,Tr.attr("colspan",kr.link.colspan)}})}else{var Nr=vr[vr.length-1].indexInTableGridRow;gr.forEach(function(Hr,Dr){var kr=Hr[Nr],qr=Hr.filter(function($r,Qr){return Qr<=Nr&&$r.cell});if(kr.rightMost){var An=or[Dr],lr=An.createTableCell();Oe&&lr.getTarget().addClass(Oe),Je!=null&&(lr.width=Je),qr.length?An.insertToTargetCellRight(qr[qr.length-1].cell,lr):An.insertCellToFirst(lr),_e.a.event.trigger("newCell"+We.id,lr)}else{var Tr=kr.link||kr.cell;if(kr.linkType=="row"){var xr=Tr.getTarget();Tr.colspan+=1,xr.attr("colspan",Tr.colspan)}kr.cell&&(xr=Tr.getTarget(),Tr.colspan+=1,xr.attr("colspan",Tr.colspan))}})}},fr.prototype.deleteRow=function(){var Ye=this,Ar=this.tableCellSelector.getSingleSelect(),Oe=(Ar.cell,this.rows[Ar.rowIndex],Ar.rowIndex),Je=this.getCellGrid(),We=this.rows[Oe];Je[Oe].forEach(function(or,mr){if(or.cell)if(or.cell.rowspan==1)We.removeCell(or.cell);else{We.removeCell(or.cell);var er=Je[Oe+1].filter(function(Or,Nr){return Or.cell&&Nr>mr}),ir=Ye.rows[Oe+1],gr=ir.createTableCell(or.cell.rowspan-1,or.cell.colspan);er.length?ir.insertToTargetCellLeft(er[0].cell,gr):ir.insertCellToLast(gr)}else if(or.linkType=="column"){var vr=or.link;vr.rowspan-=1,vr.getTarget().attr("rowspan",vr.rowspan)}}),We.getTarget().remove(),this.rows.splice(Oe,1)},fr.prototype.deleteColums=function(){var Ye=this.rows.concat(this.trRows),Ar=this.tableCellSelector.getSingleSelect(),Oe=Ar.cell,Je=Ar.rowIndex,We=this.getCellGrid(Ye),or=We[Je].filter(function(mr){return mr.cell&&mr.cell.id==Oe.id||mr.link&&mr.link.id==Oe.id})[0].indexInTableGridRow;We.forEach(function(mr,er){var ir=mr[or];ir.cell?ir.cell.colspan==1?Ye[er].removeCell(ir.cell):(ir.cell.colspan-=1,ir.cell.getTarget().attr("colspan",ir.cell.colspan)):ir.linkType=="row"&&(ir.link.colspan-=1,ir.link.getTarget().attr("colspan",ir.link.colspan))})},fr.prototype.mergeCell=function(){var Ye=this,Ar=this.tableCellSelector.getSelectedCells();if(Ar.length!=0){var Oe=Ar[0][0].cell;Ar.forEach(function(Je,We){Je.forEach(function(or,mr){We==0?mr!=0&&(Oe.colspan+=or.cell.colspan,Ye.rows[or.rowIndex].removeCell(or.cell)):Ye.rows[or.rowIndex].removeCell(or.cell),mr==0&&Ar[0][0].rowIndex+Oe.rowspan-1<or.rowIndex&&(Oe.rowspan+=or.cell.rowspan)})}),Oe.getTarget().attr("colspan",Oe.colspan),Oe.getTarget().attr("rowspan",Oe.rowspan),this.tableCellSelector.setSingleSelect(Ar[0][0])}},fr.prototype.splitCell=function(){var Ye=this.tableCellSelector.getSingleSelect(),Ar=this.getCellGrid(),Oe=xe.getIndex(Ar[Ye.rowIndex],Ye.cell.id);if(Ye){for(var Je=Ye.rowIndex;Je<Ye.rowIndex+Ye.cell.rowspan;Je++)for(var We=this.rows[Je],or=Je==Ye.rowIndex?Ye.cell:xe.getLeftTableCell(Ar[Je],Oe),mr=0;mr<Ye.cell.colspan;mr++)Je==Ye.rowIndex&&mr==0||(or?We.insertToTargetCellRight(or,We.createTableCell()):We.insertCellToFirst(We.createTableCell()));Ye.cell.rowspan=1,Ye.cell.colspan=1,Ye.cell.getTarget().attr("colspan",Ye.cell.colspan),Ye.cell.getTarget().attr("rowspan",Ye.cell.rowspan)}},fr.prototype.init=function(Ye){var Ar=this;$$g(this.target).addClass("hitable"),this.optionsCoat.onBeforEdit=function(Oe){return Ar.optionsCoat.options.onBeforEdit&&Ye.onBeforEdit(Oe)===!1?!1:(Ar.optionsCoat.editingCell&&Ar.optionsCoat.editingCell.endEdit(),!0)},$$g(this.target).mousedown(function(Oe){Ar.optionsCoat.isLeftMouseButtonDown=!0}),$$g(this.target).mouseup(function(Oe){Ar.optionsCoat.isLeftMouseButtonDown=!1}),this.initContext(),this.target.on("mousemove",function(Oe){Oe.buttons===1&&Ar.tableCellSelector.multipleSelectByXY(Oe.pageX,Oe.pageY)}).on("mousedown",function(Oe){Oe.buttons===1&&Ar.tableCellSelector.singleSelectByXY(Oe.pageX,Oe.pageY)})},fr.prototype.initRows=function(Ye){var Ar=this;if(this.trRows=[],Ye){this.rows=Ye,Ye.forEach(function(Je,We){Je.init(Ar.optionsCoat,Ar.target.find("tr:eq("+We+")"),!0)});var Oe=this.optionsCoat.options.trs;Oe&&this.initRowsByTrs(Oe).forEach(function(Je){Ar.trRows.push(Je)})}else this.rows=this.initRowsByTrs(this.target.find("tr"))},fr.prototype.initRowsByTrs=function(Ye){var Ar=this;return Ye.map(function(Oe,Je){var We=new Ie.a;return We.init(Ar.optionsCoat,$$g(Je)),We}).get()},fr.prototype.enableEidt=function(){this.optionsCoat.enableEidt()},fr.prototype.disableEdit=function(){this.optionsCoat.disableEdit()},fr.prototype.getCellGrid=function(Ye){var Ar=Ye||this.rows,Oe=this.getColumnStep(),Je=new Array;return Ar.forEach(function(We,or){We.columns.forEach(function(mr,er){for(var ir=0;ir<mr.colspan;ir++)for(var gr=0,vr=!1;gr<Oe&&!vr;){if(Je[or]=Je[or]||[],!Je[or][gr]){Je[or][gr]=new Te({cell:ir==0?mr:void 0,link:ir!=0?mr:void 0,linkType:ir>0?"row":void 0,rightMost:ir==mr.colspan-1||void 0,bottom:mr.rowspan-1==0,rowLevel:ir,columnLevel:0,indexInTableGridRow:gr,indexInTableGridColumn:or});for(var Or=or+1,Nr=1;Nr<mr.rowspan;Nr++)Je[Or]=Je[Or]||[],Je[Or][gr]=new Te({cell:void 0,link:mr,linkType:ir>0?"rowColumn":"column",rightMost:ir==mr.colspan-1||void 0,bottom:Nr==mr.rowspan-1,rowLevel:ir,columnLevel:Nr,indexInTableGridRow:gr,indexInTableGridColumn:Or}),Or+=1;vr=!0}gr++}})}),Je},fr.prototype.setAlign=function(Ye){var Ar=this.tableCellSelector.getSingleSelect();Ar&&Ar.cell.setAlign(Ye)},fr.prototype.setVAlign=function(Ye){var Ar=this.tableCellSelector.getSingleSelect();Ar&&Ar.cell.setVAlign(Ye)},fr.prototype.getColumnStep=function(Ye){var Ar=0;return this.rows.length&&this.rows[Ye||0].columns.forEach(function(Oe){Ar+=Oe.colspan}),Ar},fr.prototype.initContext=function(){var Ye=this;if(!this.optionsCoat.options.isEnableContextMenu)return!1;$$g(this.handle).hicontextMenu({menus:[{text:"在上方插入行",enabled:this.optionsCoat.options.isEnableInsertRow,disable:function(){return!Ye.tableCellSelector.getSingleSelect()},callback:function(){Ye.insertRow("above"),Ye.resizer.updateRowGrips(),_e.a.event.trigger("updateTable"+Ye.id)}},{text:"在下方插入行",borderBottom:!0,enabled:this.optionsCoat.options.isEnableInsertRow,disable:function(){return!Ye.tableCellSelector.getSingleSelect()},callback:function(){Ye.insertRow("below"),Ye.resizer.updateRowGrips(),_e.a.event.trigger("updateTable"+Ye.id)}},{text:"向左方插入列",enabled:this.optionsCoat.options.isEnableInsertColumn,disable:function(){return!Ye.tableCellSelector.getSingleSelect()},callback:function(){Ye.insertColumn("left"),Ye.resizer.updateColumnGrips(),_e.a.event.trigger("updateTable"+Ye.id)}},{text:"向右方插入列",enabled:this.optionsCoat.options.isEnableInsertColumn,disable:function(){return!Ye.tableCellSelector.getSingleSelect()},borderBottom:!0,callback:function(){Ye.insertColumn("right"),Ye.resizer.updateColumnGrips(),_e.a.event.trigger("updateTable"+Ye.id)}},{text:"删除行",enabled:this.optionsCoat.options.isEnableDeleteRow,disable:function(){return!Ye.tableCellSelector.getSingleSelect()},callback:function(){Ye.deleteRow(),Ye.resizer.updateRowGrips(),_e.a.event.trigger("updateTable"+Ye.id)}},{text:"删除列",borderBottom:!0,enabled:this.optionsCoat.options.isEnableDeleteColumn,disable:function(){return!Ye.tableCellSelector.getSingleSelect()},callback:function(){Ye.deleteColums(),Ye.resizer.updateColumnGrips(),_e.a.event.trigger("updateTable"+Ye.id)}},{text:"对齐",borderBottom:!0,enabled:this.optionsCoat.options.columnAlignEditable,menus:[{text:"左",callback:function(){Ye.setAlign("left")}},{text:"左右居中",callback:function(){Ye.setAlign("center")}},{text:"右",callback:function(){Ye.setAlign("right")}},{text:"默认",borderBottom:!0,callback:function(){Ye.setAlign("")}},{text:"上",callback:function(){Ye.setVAlign("top")}},{text:"垂直居中",callback:function(){Ye.setVAlign("middle")}},{text:"下",callback:function(){Ye.setVAlign("bottom")}},{text:"默认",callback:function(){Ye.setVAlign("")}}]},{text:"合并单元格",enabled:this.optionsCoat.options.isEnableMergeCell,disable:function(){return Ye.tableCellSelector.getSingleSelect()},callback:function(){Ye.mergeCell(),_e.a.event.trigger("updateTable"+Ye.id)}},{text:"解开单元格",enabled:this.optionsCoat.options.isEnableMergeCell,disable:function(){var Oe=Ye.tableCellSelector.getSingleSelect();return!Oe||Oe.cell.rowspan==1&&Oe.cell.colspan==1},callback:function(){Ye.splitCell(),_e.a.event.trigger("updateTable"+Ye.id)}}].filter(function(Ar){return Ar.enabled})})},fr.prototype.getTableWidth=function(){return _e.a.px.toPt(this.target.outerWidth(!1))},fr.prototype.updateColumnGrips=function(){this.resizer.updateColumnGrips()},fr.prototype.updateRowGrips=function(){this.resizer.updateRowGrips()},fr}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){return function(Ce,_e,Te){this.tid=Ce,this.options=_e,this.printElementType=Te}}()},function(Be,St,Ae){var Ee=Ae(3),Ce=Ae(12),_e=function(){return function(Ue){this.width=Ue.width,this.title=Ue.title,this.columnId=Ue.columnId,this.fixed=!1,this.rowspan=Ue.rowspan||1,this.colspan=Ue.colspan||1,this.align=Ue.align,this.halign=Ue.halign,this.vAlign=Ue.vAlign,this.formatter2=Ue.formatter2,this.styler2=Ue.styler2}}(),Te=Ae(5);Ae.d(St,"a",function(){return Ie});var Se,xe=(Se=function($e,Me){return(Se=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(Re,ze){Re.__proto__=ze}||function(Re,ze){for(var Ve in ze)ze.hasOwnProperty(Ve)&&(Re[Ve]=ze[Ve])})($e,Me)},function(Ue,$e){function Me(){this.constructor=Ue}Se(Ue,$e),Ue.prototype=$e===null?Object.create($e):(Me.prototype=$e.prototype,new Me)}),Ie=function(Ue){function $e(Me,Re){var ze=this;return Me=Me||{},(ze=Ue.call(this,Me)||this).lHeight=Me.lHeight,ze.autoCompletion=Me.autoCompletion,ze.tableFooterRepeat=Me.tableFooterRepeat,Re&&(ze.columns=[],Re.editable&&Me.columns&&Me.columns.length?Me.columns.forEach(function(Ve){var nr=[];Ve.forEach(function(Ze){var ar=new _e(Ze),fr=Re.getColumnByColumnId(ar.columnId),Ye=fr?$$g.extend(fr,ar):new Te.a(ar);Ye.checked=!0,nr.push(Ye)}),ze.columns.push(new Ce.a(nr))}):Re.columns.forEach(function(Ve){ze.columns.push(new Ce.a(Ve.filter(function(nr){return nr.checked})))})),ze}return xe($e,Ue),$e.prototype.getColumnByColumnId=function(Me){return this.makeColumnObj()[Me]},$e.prototype.makeColumnObj=function(){var Me={};return this.columns&&this.columns.forEach(function(Re){Re.columns.forEach(function(ze){ze.columnId&&(Me[ze.columnId]=ze)})}),Me},$e.prototype.getGridColumns=function(){return this.gridColumns||1},$e.prototype.getPrintElementOptionEntity=function(){var Me=Ue.prototype.getPrintElementOptionEntity.call(this);return this.columns&&(Me.columns=[],this.columns.forEach(function(Re){var ze=Re.getPrintElementOptionEntity().filter(function(Ve){return Ve.checked}).map(function(Ve){return new _e(Ve)});Me.columns.push(ze)})),Me},$e}(Ee.a)},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){return function(){this.rowColumns=[]}}()},function(Be,St,Ae){Ae.d(St,"a",function(){return Ee});var Ee=function(){function Ce(_e,Te){this.gridColumns=_e,this.target=Te}return Ce.prototype.getByIndex=function(_e){return this.target.find(".hi-grid-col:eq("+_e+")")},Ce}()},function(Be,St,Ae){Be.exports=Ae(33)},function(Be,St){(function(Ae){function Ee(xe){var Ie=Ae.data(xe.data.target,"hidraggable"),Ue=Ie.options,$e=Ie.proxy,Me=xe.data,Re=Me.startLeft+xe.pageX-Me.startX,ze=Me.startTop+xe.pageY-Me.startY;$e&&($e.parent()[0]==document.body?(Re=Ue.deltaX!=null&&Ue.deltaX!=null?xe.pageX+Ue.deltaX:xe.pageX-xe.data.offsetWidth,ze=Ue.deltaY!=null&&Ue.deltaY!=null?xe.pageY+Ue.deltaY:xe.pageY-xe.data.offsetHeight):(Ue.deltaX!=null&&Ue.deltaX!=null&&(Re+=xe.data.offsetWidth+Ue.deltaX),Ue.deltaY!=null&&Ue.deltaY!=null&&(ze+=xe.data.offsetHeight+Ue.deltaY))),xe.data.parent!=document.body&&(Re+=Ae(xe.data.parent).scrollLeft(),ze+=Ae(xe.data.parent).scrollTop()),Ue.axis=="h"?Me.left=Re:(Ue.axis=="v"||(Me.left=Re),Me.top=ze)}function Ce(xe){var Ie=Ae.data(xe.data.target,"hidraggable"),Ue=Ie.options,$e=Ie.proxy;$e||($e=Ae(xe.data.target)),$e.css({left:Ae.fn.dragLengthC(xe.data.left,Ue),top:Ae.fn.dragLengthC(xe.data.top,Ue)}),Ae("body").css("cursor",Ue.cursor)}function _e(xe){Ae.fn.hidraggable.isDragging=!0;var Ie=Ae.data(xe.data.target,"hidraggable"),Ue=Ie.options,$e=Ae(".hidroppable").filter(function(){return xe.data.target!=this}).filter(function(){var Re=Ae.data(this,"hidroppable").options.accept;return!Re||Ae(Re).filter(function(){return this==xe.data.target}).length>0});Ie.hidroppables=$e;var Me=Ie.proxy;return Me||(Ue.proxy?(Me=Ue.proxy=="clone"?Ae(xe.data.target).clone().insertAfter(xe.data.target):Ue.proxy.call(xe.data.target,xe.data.target),Ie.proxy=Me):Me=Ae(xe.data.target)),Me.css("position","absolute"),Ee(xe),Ce(xe),Ue.onStartDrag.call(xe.data.target,xe),!1}function Te(xe){var Ie=Ae.data(xe.data.target,"hidraggable");Ee(xe),Ie.options.onDrag.call(xe.data.target,xe,Ae.fn.dragLengthCNum(xe.data.left,Ie.options),Ae.fn.dragLengthCNum(xe.data.top,Ie.options))!=0&&Ce(xe);var Ue=xe.data.target;return Ie.hidroppables.each(function(){var $e=Ae(this);if(!$e.hidroppable("options").disabled){var Me=$e.offset();xe.pageX>Me.left&&xe.pageX<Me.left+$e.outerWidth()&&xe.pageY>Me.top&&xe.pageY<Me.top+$e.outerHeight()?(this.entered||(Ae(this).trigger("_dragenter",[Ue]),this.entered=!0),Ae(this).trigger("_dragover",[Ue])):this.entered&&(Ae(this).trigger("_dragleave",[Ue]),this.entered=!1)}}),!1}function Se(xe){Ae.fn.hidraggable.isDragging=!1,Te(xe);var Ie,Ue,$e=Ae.data(xe.data.target,"hidraggable"),Me=$e.proxy,Re=$e.options;Re.revert?Ve()==1?Ae(xe.data.target).css({position:xe.data.startPosition,left:xe.data.startLeft,top:xe.data.startTop}):Me?(Me.parent()[0]==document.body?(Ie=xe.data.startX-xe.data.offsetWidth,Ue=xe.data.startY-xe.data.offsetHeight):(Ie=xe.data.startLeft,Ue=xe.data.startTop),Me.animate({left:Ie,top:Ue},function(){ze()})):Ae(xe.data.target).animate({left:xe.data.startLeft,top:xe.data.startTop},function(){Ae(xe.data.target).css("position",xe.data.startPosition)}):(Ae(xe.data.target).css({position:"absolute",left:Ae.fn.dragLengthC(xe.data.left,Re),top:Ae.fn.dragLengthC(xe.data.top,Re)}),Ve());function ze(){Me&&Me.remove(),$e.proxy=null}function Ve(){var nr=!1;return $e.hidroppables.each(function(){var Ze=Ae(this);if(!Ze.hidroppable("options").disabled){var ar=Ze.offset();return xe.pageX>ar.left&&xe.pageX<ar.left+Ze.outerWidth()&&xe.pageY>ar.top&&xe.pageY<ar.top+Ze.outerHeight()?(Re.revert&&Ae(xe.data.target).css({position:xe.data.startPosition,left:xe.data.startLeft,top:xe.data.startTop}),Ae(this).trigger("_drop",[xe.data.target]),ze(),nr=!0,this.entered=!1,!1):void 0}}),nr||Re.revert||ze(),nr}return Re.onStopDrag.call(xe.data.target,xe),Ae(document).unbind(".hidraggable"),setTimeout(function(){Ae("body").css("cursor","")},100),!1}Ae.fn.hidraggable=function(xe,Ie){return typeof xe=="string"?Ae.fn.hidraggable.methods[xe](this,Ie):this.each(function(){var Ue,$e=Ae.data(this,"hidraggable");$e?($e.handle.unbind(".hidraggable"),Ue=Ae.extend($e.options,xe)):Ue=Ae.extend({},Ae.fn.hidraggable.defaults,Ae.fn.hidraggable.parseOptions(this),xe||{});var Me=Ue.handle?typeof Ue.handle=="string"?Ae(Ue.handle,this):Ue.handle:Ae(this);function Re(ze){var Ve=Ae.data(ze.data.target,"hidraggable"),nr=Ve.handle,Ze=Ae(nr).offset(),ar=Ae(nr).outerWidth(),fr=Ae(nr).outerHeight(),Ye=ze.pageY-Ze.top,Ar=Ze.left+ar-ze.pageX,Oe=Ze.top+fr-ze.pageY,Je=ze.pageX-Ze.left;return Math.min(Ye,Ar,Oe,Je)>Ve.options.edge}Ae.data(this,"hidraggable",{options:Ue,handle:Me}),Ue.disabled?Ae(this).css("cursor",""):Me.unbind(".hidraggable").bind("mousemove.hidraggable",{target:this},function(ze){if(!Ae.fn.hidraggable.isDragging){var Ve=Ae.data(ze.data.target,"hidraggable").options;Re(ze)?Ae(this).css("cursor",Ve.cursor):Ae(this).css("cursor","")}}).bind("mouseleave.hidraggable",{target:this},function(ze){Ae(this).css("cursor","")}).bind("mousedown.hidraggable",{target:this},function(ze){if(Re(ze)!=0){Ae(this).css("cursor","");var Ve=Ae(ze.data.target).position(),nr=Ae(ze.data.target).offset(),Ze={startPosition:Ae(ze.data.target).css("position"),startLeft:Ve.left,startTop:Ve.top,left:Ve.left,top:Ve.top,startX:ze.pageX,startY:ze.pageY,offsetWidth:ze.pageX-nr.left,offsetHeight:ze.pageY-nr.top,target:ze.data.target,parent:Ae(ze.data.target).parent()[0]};Ae.extend(ze.data,Ze),Ae.data(ze.data.target,"hidraggable").options.onBeforeDrag.call(ze.data.target,ze)!=0&&(Ae(document).bind("mousedown.hidraggable",ze.data,_e),Ae(document).bind("mousemove.hidraggable",ze.data,Te),Ae(document).bind("mouseup.hidraggable",ze.data,Se))}})})},Ae.fn.hidraggable.methods={options:function(Ie){return Ae.data(Ie[0],"hidraggable").options},proxy:function(Ie){return Ae.data(Ie[0],"hidraggable").proxy},enable:function(Ie){return Ie.each(function(){Ae(this).hidraggable({disabled:!1})})},disable:function(Ie){return Ie.each(function(){Ae(this).hidraggable({disabled:!0})})}},Ae.fn.hidraggable.parseOptions=function(xe){var Ie=Ae(xe);return Ae.extend({},Ae.hiprintparser.parseOptions(xe,["cursor","handle","axis",{revert:"boolean",deltaX:"number",deltaY:"number",edge:"number"}]),{disabled:!!Ie.attr("disabled")||void 0})},Ae.fn.hidraggable.defaults={proxy:null,revert:!1,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:!1,edge:0,axis:null,onBeforeDrag:function(Ie){},onStartDrag:function(Ie){},onDrag:function(Ie){},onStopDrag:function(Ie){}},Ae.fn.hidraggable.isDragging=!1})(jQuery)},function(Be,St){(function(Ae){Ae.fn.hidroppable=function(Ee,Ce){return typeof Ee=="string"?Ae.fn.hidroppable.methods[Ee](this,Ce):(Ee=Ee||{},this.each(function(){var _e,Te=Ae.data(this,"hidroppable");Te?Ae.extend(Te.options,Ee):(Ae(_e=this).addClass("hidroppable"),Ae(_e).bind("_dragenter",function(Se,xe){Ae.data(_e,"hidroppable").options.onDragEnter.apply(_e,[Se,xe])}),Ae(_e).bind("_dragleave",function(Se,xe){Ae.data(_e,"hidroppable").options.onDragLeave.apply(_e,[Se,xe])}),Ae(_e).bind("_dragover",function(Se,xe){Ae.data(_e,"hidroppable").options.onDragOver.apply(_e,[Se,xe])}),Ae(_e).bind("_drop",function(Se,xe){Ae.data(_e,"hidroppable").options.onDrop.apply(_e,[Se,xe])}),Ae.data(this,"hidroppable",{options:Ae.extend({},Ae.fn.hidroppable.defaults,Ae.fn.hidroppable.parseOptions(this),Ee)}))}))},Ae.fn.hidroppable.methods={options:function(Ce){return Ae.data(Ce[0],"hidroppable").options},enable:function(Ce){return Ce.each(function(){Ae(this).hidroppable({disabled:!1})})},disable:function(Ce){return Ce.each(function(){Ae(this).hidroppable({disabled:!0})})}},Ae.fn.hidroppable.parseOptions=function(Ee){var Ce=Ae(Ee);return Ae.extend({},Ae.hiprintparser.parseOptions(Ee,["accept"]),{disabled:!!Ce.attr("disabled")||void 0})},Ae.fn.hidroppable.defaults={accept:null,disabled:!1,onDragEnter:function(Ce,_e){},onDragOver:function(Ce,_e){},onDragLeave:function(Ce,_e){},onDrop:function(Ce,_e){}}})(jQuery)},function(Be,St){var Ae;(Ae=jQuery).hiprintparser={parseOptions:function(Ce,_e){var Te=Ae(Ce),Se={},xe=Ae.trim(Te.attr("data-options"));if(xe&&(xe.substring(0,1)!="{"&&(xe="{"+xe+"}"),Se=new Function("return "+xe)()),_e){for(var Ie={},Ue=0;Ue<_e.length;Ue++){var $e=_e[Ue];if(typeof $e=="string")Ie[$e]=$e=="width"||$e=="height"||$e=="left"||$e=="top"?parseInt(Ce.style[$e])||void 0:Te.attr($e);else for(var Me in $e){var Re=$e[Me];Re=="boolean"?Ie[Me]=Te.attr(Me)?Te.attr(Me)=="true":void 0:Re=="number"&&(Ie[Me]=Te.attr(Me)=="0"?0:parseFloat(Te.attr(Me))||void 0)}}Ae.extend(Se,Ie)}return Se}},Ae.fn.dragLengthC=function(Ee,Ce){return Ce.moveUnit=="pt"?Ae.fn.dragLengthCNum(Ee,Ce)+"pt":Ae.fn.dragLengthCNum(Ee,Ce)},Ae.fn.dragLengthCNum=function(Ee,Ce){var _e=3;if(Ce.moveUnit=="pt"){var Te=.75*Ee;return Ce.minMove&&(_e=Ce.minMove),Math.round(Te/_e)*_e}return Math.round(Te/_e)*_e}},function(Be,St){var Ae,Ee,Ce;Ae=jQuery,Ee={maxPanelIndex:0},(Ce=function(Te){this.options=Ae.data(Te.target,"hireizeable").options,this.init(Te.target)}).prototype={numHandlerText:function(Te){return this.numHandler(Te)+"pt"},numHandler:function(Te){var Se=1.5,xe=.75*Te;return this.options.minResize&&(Se=this.options.minResize),Math.round(xe/Se)*Se},init:function(Te){this.initResizeBox(Te)},initResizeBox:function(Te){var Se=this;Ae(Te).each(function(){var xe;Ee.maxPanelIndex+=1,Se.options.noContainer?xe=Ae(Te):(xe=Ae("<div panelIndex="+Ee.maxPanelIndex+' class="resize-panel"></div>')).css({width:"100%",height:"100%",top:0,left:0,position:"absolute","background-color":"rgba(0,0,0,0.5)",cursor:"move",display:"none"}),Se.appendHandler(xe,Ae(this));var Ie={name:"n",target:Ae('<div class="n resizebtn" style="cursor: n-resize;top: -12px;margin-left: -4px;left: 50%;"></div>')},Ue={name:"s",target:Ae('<div class="s resizebtn" style="cursor: s-resize;bottom: -12px;margin-left: -4px;left: 50%;"></div>')},$e={name:"w",target:Ae('<div class="w resizebtn" style="cursor: w-resize;left: -12px;margin-top: -4px;top: 50%;"></div>')},Me={name:"e",target:Ae('<div class="e resizebtn" style="cursor: e-resize; top: 50%; margin-top:-4px;right: -12px;"></div>')},Re={name:"ne",target:Ae('<div class="ne resizebtn" style="cursor: ne-resize;top: -12px;right: -12px;"></div>')},ze={name:"nw",target:Ae('<div class="nw resizebtn" style=" cursor: nw-resize;top: -12px;left:-12px;"></div>')},Ve={name:"se",target:Ae('<div class="se resizebtn" style="cursor: se-resize;bottom:-12px;right: -12px;"></div>')},nr={name:"sw",target:Ae('<div class="sw resizebtn" style="cursor: sw-resize;bottom: -12px;left: -12px;"></div>')},Ze=function(){var Ye=[],Ar=Se.options.showPoints;return Ae.each([Ie,Ue,$e,Me,Re,ze,Ve,nr],function(Oe,Je){Ae.inArray(Je.name,Ar)>-1&&Ye.push(Je.target)}),Ye};Se.addHandlerCss(Ze()),Se.appendHandler(Ze(),xe),Se.bindResizeEvent(xe,Ae(this));var ar=Ae(this);Ae(xe).on("mousedown",".resizebtn",function(){ar.addClass("resizeing")}),Ae(".easyui-droppable").on("mouseup",function(){ar.removeClass("resizeing")}),Se.bindTrigger(Ae(this))}),Se.bindHidePanel()},addHandlerCss:function(Te){for(var Se=0;Se<Te.length;Se++)Te[Se].css({position:"absolute",width:"8px",height:"8px",background:"#ff6600","border-radius":"50%"})},appendHandler:function(Te,Se){for(var xe=0;xe<Te.length;xe++)Se.append(Te[xe])},triggerResize:function(Te){Te.siblings().children("div[panelindex]").css({display:"none"}),Te.children("div[panelindex]").css({display:"block"})},bindResizeEvent:function(Te,Se){var xe=this,Ie=0,Ue=0,$e=Te.width(),Me=Te.height(),Re=Te.offset().left,ze=Te.offset().top,Ve=xe.options.noContainer?Ae(Se):Te.parent(),nr=!1;Te.on("mousedown",".e",function(or){Ie=or.pageX,$e=Te.width(),nr=!0});var Ze=!1;Te.on("mousedown",".s",function(or){Ue=or.pageY,Me=Te.height(),Ze=!0});var ar=!1;Te.on("mousedown",".w",function(or){Ie=or.pageX,$e=Te.width(),ar=!0,Re=Ve.offset().left});var fr=!1;Te.on("mousedown",".n",function(or){Ue=or.pageY,Me=Te.height(),fr=!0,ze=Ve.offset().top});var Ye=!1;Te.on("mousedown",".ne",function(or){Ie=or.pageX,Ue=or.pageY,$e=Te.width(),Me=Te.height(),Ye=!0,ze=Ve.offset().top});var Ar=!1;Te.on("mousedown",".nw",function(or){Ie=or.pageX,Ue=or.pageY,$e=Te.width(),Me=Te.height(),ze=Ve.offset().top,Re=Ve.offset().left,Ar=!0});var Oe=!1;Te.on("mousedown",".se",function(or){Ie=or.pageX,Ue=or.pageY,$e=Te.width(),Me=Te.height(),Oe=!0});var Je=!1;Te.on("mousedown",".sw",function(or){Ie=or.pageX,Ue=or.pageY,$e=Te.width(),Me=Te.height(),Je=!0,Re=Ve.offset().left});var We=!1;Te.on("mousedown",function(or){xe.options.onBeforeResize(),Ie=or.pageX,Ue=or.pageY,ze=Ve.offset().top,Re=Ve.offset().left,We=!1}),Ae(xe.options.stage).on("mousemove",function(or){if(nr){var mr=or.pageX-Ie;Te.css({width:"100%"}),Ve.css({width:xe.numHandlerText($e+mr)}),xe.options.onResize(or,void 0,xe.numHandler($e+mr),void 0,void 0)}else if(Ze){var er=or.pageY-Ue;Te.css({height:"100%"}),Ve.css({height:xe.numHandlerText(Me+er)}),xe.options.onResize(or,xe.numHandler(Me+er),void 0,void 0,void 0)}else ar?(mr=or.pageX-Ie,Te.css({width:"100%"}),Ve.css({width:xe.numHandlerText($e-mr),left:xe.numHandlerText(xe.options.noDrag?void 0:xe.numHandler(Re+mr))}),xe.options.onResize(or,void 0,xe.numHandler($e-mr),void 0,xe.options.noDrag?void 0:xe.numHandler(Re+mr))):fr?(er=or.pageY-Ue,Te.css({height:"100%"}),Ve.css({height:xe.numHandlerText(Me-er),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er)}),xe.options.onResize(or,xe.numHandler(Me-er),void 0,xe.options.noDrag?void 0:xe.numHandler(ze+er),void 0)):Ye?(mr=or.pageX-Ie,er=or.pageY-Ue,Te.css({height:"100%",width:"100%"}),Ve.css({height:xe.numHandlerText(Me-er),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er),width:xe.numHandlerText($e+mr)}),xe.options.onResize(or,xe.numHandler(Me-er),xe.numHandler($e+mr),xe.options.noDrag?void 0:xe.numHandler(ze+er),void 0)):Ar?(mr=or.pageX-Ie,er=or.pageY-Ue,Te.css({height:"100%",width:"100%"}),Ve.css({height:xe.numHandlerText(Me-er),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er),width:xe.numHandlerText($e-mr),left:xe.numHandlerText(xe.options.noDrag?void 0:Re+mr)}),xe.options.onResize(or,xe.numHandler(Me-er),xe.numHandler($e-mr),xe.options.noDrag?void 0:xe.numHandler(ze+er),xe.options.noDrag?void 0:xe.numHandler(Re+mr))):Oe?(mr=or.pageX-Ie,er=or.pageY-Ue,Te.css({width:"100%",height:"100%"}),Ve.css({width:xe.numHandlerText($e+mr),height:xe.numHandlerText(Me+er)}),xe.options.onResize(or,xe.numHandler(Me+er),xe.numHandler($e+mr),void 0,void 0)):Je?(mr=or.pageX-Ie,er=or.pageY-Ue,Te.css({width:"100%",height:"100%"}),Ve.css({width:xe.numHandlerText($e-mr),left:xe.numHandlerText(xe.options.noDrag?void 0:Re+mr),height:xe.numHandlerText(Me+er)}),xe.options.onResize(or,xe.numHandler(Me+er),xe.numHandler($e-mr),xe.numHandler(otundefinedop),xe.options.noDrag?void 0:xe.numHandler(Re+mr))):We&&(mr=or.pageX-Ie,er=or.pageY-Ue,Ve.css({left:xe.numHandlerText(xe.options.noDrag?void 0:Re+mr),top:xe.numHandlerText(xe.options.noDrag?void 0:ze+er)}),xe.options.onResize(or,void 0,void 0,xe.options.noDrag?void 0:xe.numHandler(ze+er),xe.options.noDrag?void 0:xe.numHandler(Re+mr)))}).on("mouseup",function(or){nr=!1,Ze=!1,ar=!1,fr=!1,Ye=!1,Ar=!1,Je=!1,Oe=!1,We=!1,xe.options.onStopResize()})},bindTrigger:function(Te){var Se=this;Te.on("click",function(xe){xe.stopPropagation(),Se.triggerResize(Te)})},bindHidePanel:function(Te){if(Ee.maxPanelIndex<2){var Se=this.options.stage;Ae(Se).bind("click",function(xe){xe.stopPropagation(),Ae("div[panelindex]").css({display:"none"})})}}},Ae.fn.extend({hireizeable:function(Te){return this.each(function(){var Se,xe=Ae.data(this,"hireizeable");Se=xe?Ae.extend(xe.options,_1f):Ae.extend({},Ae.fn.hireizeable.defaults,Te||{}),Ae.data(this,"hireizeable",{options:Se}),new Ce({target:this,onResize:function(Ue,$e,Me,Re,ze){},onStopResize:function(Ue,$e,Me,Re,ze){}})})}}),Ae.fn.hireizeable.defaults={stage:document,reizeUnit:"pt",minResize:1.5,showPoints:["s","e"],noContainer:!1,onBeforeResize:function(Te,Se,xe,Ie,Ue){},onResize:function(Te,Se,xe,Ie,Ue){},onStopResize:function(Te,Se,xe,Ie,Ue){},noDrag:!1}},function(Be,St){var Ae,Ee;jQuery,Ae="connected",Ee="reconnecting",window.hiwebSocket={opened:!1,name:"webSockets",reconnectTimeout:6e4,reconnectWindowSetTimeout:null,reconnectDelay:2e3,supportsKeepAlive:function(){return!0},hasIo:function(_e){return window.io},send:function(_e){try{this.socket.emit("news",_e)}catch(Te){console.log("send data error:"+(_e||"")+JSON.stringify(Te))}},getPrinterList:function(){return this.printerList},start:function(){var _e=this,Te=this;window.WebSocket?this.socket||(this.socket=lookup$4("http://localhost:17521",{reconnectionAttempts:5,extraHeaders:{"Access-Control-Request-Private-Network":!0},origins:"*.*",transports:["websocket","xhr-polling","jsonp-polling","htmlfile","flashsocket"]}),this.socket.on("connect",function(Se){Te.opened=!0,console.log("Websocket opened."),_e.socket.on("successs",function(xe){hinnn.event.trigger("printSuccess_"+xe.templateId,xe)}),_e.socket.on("error",function(xe){hinnn.event.trigger("printError_"+xe.templateId,xe)}),_e.socket.on("printerList",function(xe){Te.printerList=xe}),Te.state=Ae}),this.socket.on("disconnect",function(){Te.opened=!1})):console.log("WebSocket start fail")},reconnect:function(){this.state!==Ae&&this.state!==Ee||(this.stop(),this.ensureReconnectingState()&&(console.log("Websocket reconnecting."),this.start()))},stop:function(){this.socket&&(console.log("Closing the Websocket."),this.socket.close(),this.socket=null)},ensureReconnectingState:function(){return this.state=Ee,this.state===Ee}}},function(Be,St,Ae){var Ee=Ae(28);typeof Ee=="string"&&(Ee=[[Be.i,Ee,""]]);var Ce={hmr:!0,transform:void 0,insertInto:void 0};Ae(30)(Ee,Ce),Ee.locals&&(Be.exports=Ee.locals)},function(Be,St,Ae){(Be.exports=Ae(29)(!1)).push([Be.i,`.hicontextmenu {\r
	position: absolute;\r
	display: inline-block;\r
	width: 215px;\r
	padding: 0 0;\r
	margin: 0;\r
	font-family: inherit;\r
	font-size: inherit;\r
	list-style-type: none;\r
	list-style: none;\r
	background: #fff;\r
	border: 1px solid #bebebe;\r
	border-radius: 2px;\r
	font-size: 13px;\r
}\r
\r
.hicontextmenuroot .hicontextmenuitem {\r
	position: relative;\r
	-webkit-box-sizing: content-box;\r
	-moz-box-sizing: content-box;\r
	box-sizing: content-box;\r
	padding: .2em 12px;\r
	color: #2f2f2f;\r
	-webkit-user-select: none;\r
	-moz-user-select: none;\r
	-ms-user-select: none;\r
	text-decoration: none;\r
\r
	user-select: none;\r
	background-color: #fff;\r
\r
}\r
\r
.hicontextmenuroot>.hicontextmenuitem:hover,\r
.hicontextmenuroot .hicontextmenuitem > a:hover {\r
	background-color: #f3f3f3;\r
}\r
\r
.hicontextmenuroot .hicontextmenuitem>a {\r
	text-decoration: none;\r
	color: #363636;\r
	line-height: 22px;\r
\r
}\r
\r
.hicontextmenuroot .hicontextsubmenu>ul {\r
	display: none;\r
	position: absolute;\r
\r
}\r
\r
.hicontextmenuroot .hicontextsubmenu:hover>ul {\r
	display: block;\r
	left: 100%;\r
	top: -1px;\r
	margin-left: 0px;\r
}\r
\r
.hicontextmenuroot .borderBottom {\r
	border-bottom: 1px solid #efe6e6;\r
}\r
\r
.hicontextmenuroot .disable> a {\r
  \r
    color: #ccc;\r
   \r
}\r
.hicontextmenuroot>.disable:hover,\r
.hicontextmenuroot .disable> a:hover {\r
	background-color:#fff;\r
}`,""])},function(Be,St,Ae){Be.exports=function(Ee){var Ce=[];return Ce.toString=function(){return this.map(function(_e){var Te=function(Se,xe){var Ie=Se[1]||"",Ue=Se[3];if(!Ue)return Ie;if(xe&&typeof btoa=="function"){var $e=(Re=Ue,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(Re))))+" */"),Me=Ue.sources.map(function(ze){return"/*# sourceURL="+Ue.sourceRoot+ze+" */"});return[Ie].concat(Me).concat([$e]).join(`
`)}var Re;return[Ie].join(`
`)}(_e,Ee);return _e[2]?"@media "+_e[2]+"{"+Te+"}":Te}).join("")},Ce.i=function(_e,Te){typeof _e=="string"&&(_e=[[null,_e,""]]);for(var Se={},xe=0;xe<this.length;xe++){var Ie=this[xe][0];Ie!=null&&(Se[Ie]=!0)}for(xe=0;xe<_e.length;xe++){var Ue=_e[xe];Ue[0]!=null&&Se[Ue[0]]||(Te&&!Ue[2]?Ue[2]=Te:Te&&(Ue[2]="("+Ue[2]+") and ("+Te+")"),Ce.push(Ue))}},Ce}},function(Be,St,Ae){var Ee,Ce,_e={},Te=(Ee=function(){return window&&document&&document.all&&!window.atob},function(){return Ce===void 0&&(Ce=Ee.apply(this,arguments)),Ce}),Se=function(Oe){var Je={};return function(We,or){if(typeof We=="function")return We();if(Je[We]===void 0){var mr=(function(er,ir){return ir?ir.querySelector(er):document.querySelector(er)}).call(this,We,or);if(window.HTMLIFrameElement&&_instanceof(mr,window.HTMLIFrameElement))try{mr=mr.contentDocument.head}catch{mr=null}Je[We]=mr}return Je[We]}}(),xe=null,Ie=0,Ue=[],$e=Ae(31);function Me(Oe,Je){for(var We=0;We<Oe.length;We++){var or=Oe[We],mr=_e[or.id];if(mr){mr.refs++;for(var er=0;er<mr.parts.length;er++)mr.parts[er](or.parts[er]);for(;er<or.parts.length;er++)mr.parts.push(ar(or.parts[er],Je))}else{var ir=[];for(er=0;er<or.parts.length;er++)ir.push(ar(or.parts[er],Je));_e[or.id]={id:or.id,refs:1,parts:ir}}}}function Re(Oe,Je){for(var We=[],or={},mr=0;mr<Oe.length;mr++){var er=Oe[mr],ir=Je.base?er[0]+Je.base:er[0],gr={css:er[1],media:er[2],sourceMap:er[3]};or[ir]?or[ir].parts.push(gr):We.push(or[ir]={id:ir,parts:[gr]})}return We}function ze(Oe,Je){var We=Se(Oe.insertInto);if(!We)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var or=Ue[Ue.length-1];if(Oe.insertAt==="top")or?or.nextSibling?We.insertBefore(Je,or.nextSibling):We.appendChild(Je):We.insertBefore(Je,We.firstChild),Ue.push(Je);else if(Oe.insertAt==="bottom")We.appendChild(Je);else{if(_typeof$2(Oe.insertAt)!="object"||!Oe.insertAt.before)throw new Error(`[Style Loader]

 Invalid value for parameter 'insertAt' ('options.insertAt') found.
 Must be 'top', 'bottom', or Object.
 (https://github.com/webpack-contrib/style-loader#insertat)
`);var mr=Se(Oe.insertAt.before,We);We.insertBefore(Je,mr)}}function Ve(Oe){if(Oe.parentNode===null)return!1;Oe.parentNode.removeChild(Oe);var Je=Ue.indexOf(Oe);Je>=0&&Ue.splice(Je,1)}function nr(Oe){var Je=document.createElement("style");if(Oe.attrs.type===void 0&&(Oe.attrs.type="text/css"),Oe.attrs.nonce===void 0){var We=function(){return Ae.nc}();We&&(Oe.attrs.nonce=We)}return Ze(Je,Oe.attrs),ze(Oe,Je),Je}function Ze(Oe,Je){Object.keys(Je).forEach(function(We){Oe.setAttribute(We,Je[We])})}function ar(Oe,Je){var We,or,mr,er;if(Je.transform&&Oe.css){if(!(er=typeof Je.transform=="function"?Je.transform(Oe.css):Je.transform.default(Oe.css)))return function(){};Oe.css=er}if(Je.singleton){var ir=Ie++;We=xe||(xe=nr(Je)),or=Ar.bind(null,We,ir,!1),mr=Ar.bind(null,We,ir,!0)}else Oe.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(We=function(gr){var vr=document.createElement("link");return gr.attrs.type===void 0&&(gr.attrs.type="text/css"),gr.attrs.rel="stylesheet",Ze(vr,gr.attrs),ze(gr,vr),vr}(Je),or=(function(gr,vr,Or){var Nr=Or.css,Hr=Or.sourceMap,Dr=vr.convertToAbsoluteUrls===void 0&&Hr;(vr.convertToAbsoluteUrls||Dr)&&(Nr=$e(Nr)),Hr&&(Nr+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(Hr))))+" */");var kr=new Blob([Nr],{type:"text/css"}),qr=gr.href;gr.href=URL.createObjectURL(kr),qr&&URL.revokeObjectURL(qr)}).bind(null,We,Je),mr=function(){Ve(We),We.href&&URL.revokeObjectURL(We.href)}):(We=nr(Je),or=(function(gr,vr){var Or=vr.css,Nr=vr.media;if(Nr&&gr.setAttribute("media",Nr),gr.styleSheet)gr.styleSheet.cssText=Or;else{for(;gr.firstChild;)gr.removeChild(gr.firstChild);gr.appendChild(document.createTextNode(Or))}}).bind(null,We),mr=function(){Ve(We)});return or(Oe),function(gr){if(gr){if(gr.css===Oe.css&&gr.media===Oe.media&&gr.sourceMap===Oe.sourceMap)return;or(Oe=gr)}else mr()}}Be.exports=function(Oe,Je){if(typeof DEBUG<"u"&&DEBUG&&(typeof document>"u"?"undefined":_typeof$2(document))!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(Je=Je||{}).attrs=_typeof$2(Je.attrs)=="object"?Je.attrs:{},Je.singleton||typeof Je.singleton=="boolean"||(Je.singleton=Te()),Je.insertInto||(Je.insertInto="head"),Je.insertAt||(Je.insertAt="bottom");var We=Re(Oe,Je);return Me(We,Je),function(or){for(var mr=[],er=0;er<We.length;er++){var ir=We[er];(gr=_e[ir.id]).refs--,mr.push(gr)}for(or&&Me(Re(or,Je),Je),er=0;er<mr.length;er++){var gr;if((gr=mr[er]).refs===0){for(var vr=0;vr<gr.parts.length;vr++)gr.parts[vr]();delete _e[gr.id]}}}};var fr,Ye=(fr=[],function(Oe,Je){return fr[Oe]=Je,fr.filter(Boolean).join(`
`)});function Ar(Oe,Je,We,or){var mr=We?"":or.css;if(Oe.styleSheet)Oe.styleSheet.cssText=Ye(Je,mr);else{var er=document.createTextNode(mr),ir=Oe.childNodes;ir[Je]&&Oe.removeChild(ir[Je]),ir.length?Oe.insertBefore(er,ir[Je]):Oe.appendChild(er)}}},function(Be,St){Be.exports=function(Ae){var Ee=typeof window<"u"&&window.location;if(!Ee)throw new Error("fixUrls requires window.location");if(!Ae||typeof Ae!="string")return Ae;var Ce=Ee.protocol+"//"+Ee.host,_e=Ce+Ee.pathname.replace(/\/[^\/]*$/,"/");return Ae.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(Te,Se){var xe,Ie=Se.trim().replace(/^"(.*)"$/,function(Ue,$e){return $e}).replace(/^'(.*)'$/,function(Ue,$e){return $e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(Ie)?Te:(xe=Ie.indexOf("//")===0?Ie:Ie.indexOf("/")===0?Ce+Ie:_e+Ie.replace(/^\.\//,""),"url("+JSON.stringify(xe)+")")})}},function(Be,St){var Ae,Ee;Ae=jQuery,(Ee=function(_e,Te){this.init(_e,Te)}).prototype={init:function(_e,Te){this.ele=_e,this.defaults={menu:[{text:"text",menus:[{},{}],callback:function(){}}],target:function(xe){},width:100,itemHeight:28,bgColor:"#fff",color:"#333",fontSize:14,hoverBgColor:"#f5f5f5"},this.opts=Ae.extend(!0,{},this.defaults,Te),this.random=new Date().getTime()+parseInt(1e3*Math.random()),this.eventBind()},renderMenu:function(_e,Te){var Se=this,xe=Te;if(_e&&_e.length){var Ie=$$g('<ul class="hicontextmenu" ></ul>');xe||(xe=Ie).addClass("hicontextmenuroot"),$$g.each(_e,function(Ue,$e){var Me=!!$e.disable&&$e.disable(),Re=$$g('<li class="hicontextmenuitem"><a href="javascript:void(0);"><span>'+($e.text||"")+"</span></a></li>");Me&&Re.addClass("disable"),$e.borderBottom&&Re.addClass("borderBottom"),$e.menus&&(Re.addClass("hicontextsubmenu"),Se.renderMenu($e.menus,Re)),$e.callback&&Re.click(function(ze){$$g(this).hasClass("disable")||($$g(".hicontextmenuroot").remove(),$e.callback()),ze.stopPropagation()}),Ie.append(Re)}),Te&&Te.append(Ie)}Te||$$g("body").append(xe).find(".hicontextmenuroot").hide()},setPosition:function(_e){$$g(".hicontextmenuroot").css({left:_e.pageX+2,top:_e.pageY+2}).show()},eventBind:function(){var _e=this;this.ele.on("contextmenu",function(Te){$$g(".hicontextmenuroot").remove(),Te.preventDefault(),_e.renderMenu(_e.opts.menus),_e.setPosition(Te),_e.opts.target&&typeof _e.opts.target=="function"&&_e.opts.target(Ae(this))}),Ae("body").on("click",function(){Ae(".hicontextmenuroot").remove()})}},Ae.fn.hicontextMenu=function(Ce){return new Ee(this,Ce),this}},function(Be,St,Ae){Ae.r(St),Ae(22),Ae(23),Ae(24),Ae(25);var Ee,Ce=Ae(0);Ae(26),window.hiLocalStorage=(Ee=window.localStorage||null,{saveLocalData:function(Ke,je){return!(!Ee||!je||(Ee.setItem(Ke,je),0))},getLocalData:function(Ke){return Ee?Ee.getItem(Ke):null},removeItem:function(Ke){Ee&&Ee.removeItem(Ke)}}),Ae(27),Ae(32);var _e,Te=function(){function br(){this.allElementTypes=[]}return Object.defineProperty(br,"instance",{get:function(){return br._instance||(br._instance=new br),br._instance},enumerable:!0,configurable:!0}),br.prototype.addPrintElementTypes=function(Ke,je){var sr=this;this[Ke]?this[Ke]=this[Ke].concat(je):this[Ke]=je,je.forEach(function(dr){sr.allElementTypes=sr.allElementTypes.concat(dr.printElementTypes)})},br.prototype.getElementTypeGroups=function(Ke){return this[this.formatterModule(Ke)]||[]},br.prototype.getElementType=function(Ke){var je=this.allElementTypes.filter(function(sr){return sr.tid==Ke});if(je.length>0)return je[0]},br.prototype.formatterModule=function(Ke){return Ke||"_default"},br}(),Se=Ae(1),xe=Ae(2),Ie=function(){function br(){}return br.prototype.createPrintElementTypeHtml=function(Ke,je){var sr=$$g('<ul class="hiprint-printElement-type"></ul>');return je.forEach(function(dr){var Pr=$$g("<li></li>");Pr.append('<span class="title">'+dr.name+"</span>");var jr=$$g("<ul></ul>");Pr.append(jr),dr.printElementTypes.forEach(function(wn){jr.append('<li><a class="ep-draggable-item" tid="'+wn.tid+'">  '+wn.getText()+" </a></li>")}),sr.append(Pr)}),$$g(Ke).append(sr),sr.find(".ep-draggable-item")},br}(),Ue=Ae(5),$e=Ae(15),Me=function(){return function(br){this.field=br.field,this.title=br.title,this.type=br.type,this.columns=br.columns}}(),Re=function(){function br(Ke){var je=this;this.text=Ke.text,this.field=Ke.field,this.fields=Ke.fields,this.title=Ke.title,this.tid=Ke.tid,this.data=Ke.data,this.styler=Ke.styler,this.formatter=Ke.formatter,this.type=Ke.type,this.options=Ke.options,this.editable=Ke.editable,this.columnDisplayEditable=Ke.columnDisplayEditable,this.columnDisplayIndexEditable=Ke.columnDisplayIndexEditable,this.columnTitleEditable=Ke.columnTitleEditable,this.columnResizable=Ke.columnResizable,this.columnAlignEditable=Ke.columnAlignEditable,this.columns=[],(Ke.columns||[]).forEach(function(sr,dr){je.columns.push(je.createTableColumnArray(sr))}),this.rowStyler=Ke.rowStyler,this.striped=Ke.striped,this.groupFields=Ke.groupFields||[],this.groupFormatter=Ke.groupFormatter,this.groupFooterFormatter=Ke.groupFooterFormatter,this.footerFormatter=Ke.footerFormatter,this.gridColumnsFooterFormatter=Ke.gridColumnsFooterFormatter,this.columnObj=this.makeColumnObj()}return br.prototype.getText=function(){return this.text||this.title||""},br.prototype.createPrintElement=function(Ke){var je=this;return this.columns&&this.columns.length==0&&(Ke.columns||[]).forEach(function(sr,dr){je.columns.push(je.createTableColumnArray(sr))}),new $e.a(this,Ke)},br.prototype.getData=function(){return[{}]},br.prototype.createTableColumnArray=function(Ke){var je=[];return Ke.forEach(function(sr,dr){je.push(new Ue.a(sr))}),je},br.prototype.getPrintElementTypeEntity=function(){return new Me({title:this.title,type:this.type})},br.prototype.getFields=function(){return this.fields},br.prototype.getOptions=function(){return this.options||{}},br.prototype.getColumnByColumnId=function(Ke){return this.columnObj[Ke]},br.prototype.makeColumnObj=function(){var Ke={};return this.columns&&this.columns.forEach(function(je){je.forEach(function(sr){sr.columnId&&(Ke[sr.columnId]=sr)})}),Ke},br}(),ze=Ae(4),Ve=Ae(3),nr=(_e=function(Ke,je){return(_e=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(sr,dr){sr.__proto__=dr}||function(sr,dr){for(var Pr in dr)dr.hasOwnProperty(Pr)&&(sr[Pr]=dr[Pr])})(Ke,je)},function(br,Ke){function je(){this.constructor=br}_e(br,Ke),br.prototype=Ke===null?Object.create(Ke):(je.prototype=Ke.prototype,new je)}),Ze=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.image.default).getPrintElementOptionEntity()),dr}return nr(Ke,br),Ke.prototype.getReizeableShowPoints=function(){return["se"]},Ke.prototype.getData=function(je){var sr="";je?sr=this.getField()?je[this.getField()]||"":this.options.src||this.printElementType.getData():sr=this.options.src||this.printElementType.getData();var dr=this.getFormatter();return dr&&(sr=dr(sr,this.options,this._currenttemplateData)),sr||""},Ke.prototype.createTarget=function(je,sr){var dr=$$g('<div  class="hiprint-printElement hiprint-printElement-image" style="position: absolute;"><div class="hiprint-printElement-image-content" style="height:100%;width:100%"></div></div>');return this.updateTargetImage(dr,je,sr),dr},Ke.prototype.initSizeByHtml=function(je){br.prototype.initSizeByHtml.call(this,je),this.css(je,this.getData())},Ke.prototype.getConfigOptions=function(){return Se.a.instance.image},Ke.prototype.updateDesignViewFromOptions=function(){this.designTarget&&(this.css(this.designTarget,this.getData()),this.updateTargetImage(this.designTarget,this.getTitle(),this.getData()))},Ke.prototype.updateTargetImage=function(je,sr,dr){var Pr=je.find(".hiprint-printElement-image-content");Pr.find("img").length?Pr.find("img").attr("src",dr):Pr.html('<img style="width:100%;height:100%;" src="'+dr+'">')},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),ar=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),fr=function(br){function Ke(je){var sr=this;return je=je||{},(sr=br.call(this,je)||this).leftSpaceRemoved=je.leftSpaceRemoved,sr}return ar(Ke,br),Ke.prototype.getHideTitle=function(){return this.hideTitle==null?this.defaultOptions.hideTitle:this.hideTitle},Ke}(Ve.a),Ye=Ae(8),Ar=function(){function br(Ke,je,sr,dr,Pr,jr,wn,pn,Pn,Xe,ke){this.defaultPaperNumberFormat="paperNo-paperCount",this.printLine=0,this.templateId=Ke,this.width=Ce.a.mm.toPt(je),this.height=Ce.a.mm.toPt(sr),this.mmwidth=je,this.mmheight=sr,this.paperHeader=dr,this.paperFooter=Pr,this.contentHeight=Pr-dr,this.createTarget(),this.index=Xe,this.paperNumberLeft=jr||parseInt((this.width-30).toString()),this.paperNumberTop=wn||parseInt((this.height-22).toString()),this.paperNumberDisabled=pn,this.paperNumberFormat=Pn,this.referenceElement=ke?$$g.extend({},ke):new Ye.a({top:0,left:0,height:0,width:0,bottomInLastPaper:0,beginPrintPaperIndex:0,printTopInPaper:0,endPrintPaperIndex:0})}return br.prototype.subscribePaperBaseInfoChanged=function(Ke){this.onPaperBaseInfoChanged=Ke},br.prototype.triggerOnPaperBaseInfoChanged=function(){this.onPaperBaseInfoChanged&&this.onPaperBaseInfoChanged({paperHeader:this.paperHeader,paperFooter:this.paperFooter,paperNumberLeft:this.paperNumberLeft,paperNumberTop:this.paperNumberTop,paperNumberDisabled:this.paperNumberDisabled,paperNumberFormat:this.paperNumberFormat})},br.prototype.setFooter=function(Ke,je,sr,dr){this.firstPaperFooter=Ke,this.evenPaperFooter=je,this.oddPaperFooter=sr,this.lastPaperFooter=dr},br.prototype.setOffset=function(Ke,je){this.setLeftOffset(Ke),this.setTopOffset(je)},br.prototype.setLeftOffset=function(Ke){Ke?this.paperContentTarget.css("left",Ke+"pt"):this.paperContentTarget[0].style.left=""},br.prototype.setTopOffset=function(Ke){Ke?this.paperContentTarget.css("top",Ke+"pt"):this.paperContentTarget[0].style.top=""},br.prototype.createTarget=function(){this.target=$$g('<div class="hiprint-printPaper"><div class="hiprint-printPaper-content"></div></div>'),this.paperContentTarget=this.target.find(".hiprint-printPaper-content"),this.target.css("width",this.mmwidth+"mm"),this.target.css("height",this.mmheight-Se.a.instance.paperHeightTrim+"mm"),this.target.attr("original-height",this.mmheight)},br.prototype.createHeaderLine=function(){var Ke=this;this.headerLinetarget=$$g('<div class="hiprint-headerLine"  style="position: absolute;width: 100%;border-top: 1px dashed #c9bebe;height: 7pt;"></div>'),this.headerLinetarget.css("top",(this.paperHeader||-1)+"pt"),this.paperHeader==0&&this.headerLinetarget.addClass("hideheaderLinetarget"),this.paperContentTarget.append(this.headerLinetarget),this.dragHeadLineOrFootLine(this.headerLinetarget,function(je,sr){Ke.paperHeader=sr,Ke.triggerOnPaperBaseInfoChanged()})},br.prototype.createFooterLine=function(){var Ke=this;this.footerLinetarget=$$g('<div class="hiprint-footerLine"  style="position: absolute;width: 100%;border-top: 1px dashed #c9bebe;height: 7pt;"></div>'),this.footerLinetarget.css("top",parseInt(this.paperFooter.toString())+"pt"),this.paperFooter==this.height&&(this.footerLinetarget.css("top",this.mmheight-Se.a.instance.paperHeightTrim+"mm"),this.footerLinetarget.addClass("hidefooterLinetarget")),this.paperContentTarget.append(this.footerLinetarget),this.dragHeadLineOrFootLine(this.footerLinetarget,function(je,sr){Ke.paperFooter=sr,Ke.triggerOnPaperBaseInfoChanged()})},br.prototype.createPaperNumber=function(Ke){var je=this,sr=this.target.find(".hiprint-paperNumber");if(sr.length)return sr.html(Ke),sr;var dr=$$g('<span class="hiprint-paperNumber"  style="position: absolute">'+Ke+"</span>");return dr.css("top",this.paperNumberTop+"pt"),dr.css("left",this.paperNumberLeft+"pt"),this.paperContentTarget.append(dr),this.dragHeadLineOrFootLine(dr,function(Pr,jr){je.paperNumberTop=jr,je.paperNumberLeft=Pr,je.triggerOnPaperBaseInfoChanged()},!0),dr},br.prototype.getTarget=function(){return this.target},br.prototype.append=function(Ke){this.paperContentTarget.append(Ke)},br.prototype.updateReferenceElement=function(Ke){Ke&&(this.referenceElement=Ke)},br.prototype.updatePrintLine=function(Ke){Ke>=this.printLine&&(this.printLine=Ke)},br.prototype.design=function(Ke){var je=this;this.createHeaderLine(),this.createFooterLine(),this.target.addClass("design"),this.paperNumberTarget=this.createPaperNumber(this.formatPaperNumber(1,1)),this.createRuler(),this.resetPaperNumber(this.paperNumberTarget),$$g(this.paperNumberTarget).bind("dblclick.hiprint",function(){je.paperNumberDisabled==null&&(je.paperNumberDisabled=!1),je.paperNumberDisabled=!je.paperNumberDisabled,je.resetPaperNumber(je.paperNumberTarget),je.triggerOnPaperBaseInfoChanged()}),$$g(this.paperNumberTarget).bind("click.hiprint",function(){Ce.a.event.trigger("BuildCustomOptionSettingEventKey_"+je.templateId,{options:{paperNumberFormat:je.paperNumberFormat,paperNumberDisabled:je.paperNumberDisabled},callback:function(dr){je.paperNumberDisabled=!!dr.paperNumberDisabled||void 0,je.paperNumberFormat=dr.paperNumberFormat?dr.paperNumberFormat:void 0,je.createPaperNumber(je.formatPaperNumber(1,1)),je.resetPaperNumber(je.paperNumberTarget),je.triggerOnPaperBaseInfoChanged()}})})},br.prototype.resetPaperNumber=function(Ke){this.paperNumberDisabled?Ke.addClass("hiprint-paperNumber-disabled"):Ke.removeClass("hiprint-paperNumber-disabled")},br.prototype.updatePaperNumber=function(Ke,je,sr){var dr=this.createPaperNumber(this.formatPaperNumber(Ke,je));this.paperNumberDisabled?dr.hide():sr&&this.index%2==1&&(dr[0].style.left="",dr.css("right",this.paperNumberLeft+"pt"))},br.prototype.formatPaperNumber=function(Ke,je){return(this.paperNumberFormat?this.paperNumberFormat:this.defaultPaperNumberFormat).replace("paperNo",Ke.toString()).replace("paperCount",je.toString())},br.prototype.dragHeadLineOrFootLine=function(Ke,je,sr){var dr=this;Ke.hidraggable({axis:sr?void 0:"v",onDrag:function(jr,wn,pn){je(wn,pn)},moveUnit:"pt",minMove:Se.a.instance.movingDistance,onBeforeDrag:function(jr){xe.a.instance.draging=!0},onStopDrag:function(jr){xe.a.instance.draging=!1,dr.footerLinetarget.removeClass("hidefooterLinetarget"),dr.headerLinetarget.removeClass("hideheaderLinetarget")}})},br.prototype.resize=function(Ke,je){this.width=Ce.a.mm.toPt(Ke),this.height=Ce.a.mm.toPt(je),this.mmwidth=Ke,this.mmheight=je,this.target.css("width",Ke+"mm"),this.target.css("height",je-Se.a.instance.paperHeightTrim+"mm"),this.target.attr("original-height",this.mmheight),this.paperFooter=this.height,this.footerLinetarget.css("top",this.height+"pt"),this.contentHeight=this.paperFooter-this.paperHeader,this.paperNumberLeft=parseInt((this.width-30).toString()),this.paperNumberTop=parseInt((this.height-22).toString()),this.paperNumberTarget.css("top",this.paperNumberTop+"pt"),this.paperNumberTarget.css("left",this.paperNumberLeft+"pt"),this.triggerOnPaperBaseInfoChanged()},br.prototype.getPaperFooter=function(Ke){var je=this.index+Ke;return je==0?this.firstPaperFooter?this.firstPaperFooter:this.oddPaperFooter?this.oddPaperFooter:this.paperFooter:je%2==0?this.oddPaperFooter?this.oddPaperFooter:this.paperFooter:je%2==1?this.evenPaperFooter?this.evenPaperFooter:this.paperFooter:void 0},br.prototype.getContentHeight=function(Ke){return this.getPaperFooter(Ke)-this.paperHeader},br.prototype.createRuler=function(){this.target.append(`<div class="hiprint_rul_wrapper">
                     <img class="h_img" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAAPCAYAAAC891QNAAAKxklEQVR4Xu1dPezlQxQ92yE6opGIaOg2QeWjUVjRSCg24qMgQtBItHazq5XoJBtBgYiCROGz0CBRiGRVdKISoRNKcmIudyfze+/tvL27v/Oc1+yX3/ife2buOXPv/OYdAXASwCnof4xjXRyaD/NREQHPq4qozo9pPuZjV/Gk+aiI6vyY5mM+dhVPmo+KqM6PaT7mY1fxpPmoiOr8mOZjPnYVT5qPiqjOj2k+5mNX8aT5qIjq/JjmYz52FU+aj4qozo9pPuZjV/Gk+aiI6vyY5mM+dhVPmo+KqE6OeQTAXwD4q/rHONbFoPkwHxUR8LyqiOr8mOZjPnYVT5qPiqjOj2k+5mNX8aT5qIjq/JjmYz52FU+aj4qozo9pPuZjV/Gk+aiI6vyY5mM+dhVPmo+KqM6PaT7mY1fxpPmoiOr8mOZjPnYVT5qPiqjOj2k+5mNX8aT5qIjq5JhuoE8GrvAxL5DC4E4MbT4mglb4iPkoDO7E0OZjImiFj5iPwuBODG0+JoJW+Ij5KAzuxNDmYyJohY+Yj8LgTgxtPiaCVviI+SgM7sTQ5mMiaIWPmI/C4E4MbT4mglb4iPkoDO7E0OZjImiFj5iPwuBODG0+JoJW+Ij5KAzu+Q6dG+gPAXgLwBkAzwH483wHu8T/fZ5YtwO4HsDbAK5qvx4DcAeAry7xz7ntfx84go9PAfD3/BCPEo4rALwM4Mk0r/h3ajjihgbOpacBvARAFUfMK84nrofvRfkIHGcBHAfwqyCOmwC8C+BoW98PA/hEEAfXxwsATgNQzlfE0eug6jrnlNqmg2vW/CU9Jy7+3D82Lb+xrSH+PfPAD9sE9iL/+y6+hOuemqjIB+fYly2m4a8UccS0yHNLEUf2u+Hl71+xt99lfZwA8KLo+ghd5PwKbbxHkI/Is/QqyvlqtB9UWOe77AcVcfwG4HIAzwN4BQD/rIgj78+V1kc/r7gnUdTzHgfnUe8V1eeVkp5vyldKet7jYP2H+1w1Pe9xXJ1qD8r5alQXXfs637UuqoiDfQM1Pd/Gh8r6GOG4WVDPRziiH6W0P982r1T0fBsOFT0f4eC+Q03PRziuE9TzbfNq9fXEaKDTTEVjkMW2KE5f5FrzXv+7KMRFwSqLHvGwURgY13w4gDjIB3l4NTVBGBw1HPmrAe5rHNwqjIPifWc7YBLrRGlekY8nALzfClW5wKCEI+crYmAiZlFaeX0EL4o4Mh807PzwAJMaHz0OYlDNu9t08HUAj7XDQGvU/JGeM2/FgawwVzzs91Hj6d7273sZiQv88JIvCT38qTUP3gHwoBgfbPrHh40pziNytGYvucQHcURzjc3arIcq64N8sNHJJsgHjZh86E8JRy6UEMNlgvkqr4/ghc0pxfURfHwL4BEAH4rykXGweKKQd3fZDyro+QjHN63w83M6KL729THC8XvTDCU9H+GInKWk50s41PR8aX2o6fmmfMUXWFT0fNP6UNLzTXwo6fk2HCp6vktdVEHPRzi47eBLIUp6PsLBnMs9oJKej3DECwVKer6EQ03Pl9aHmp5vyldKer5pfSjp+SY+lPR8G47V63k00Lmgo/jcF+AucD25bLilN1miwE4h6ZuHZT/MHgP3VzTEz09+2ChQxMFmzrWt8fyUKA6ui1sAXAngTQCKOPKJn3gb6lFBPpivuC54s4EyjhCQnHNV81W8ofZee1tQEUfWwXh7+xrB9RHzKr+B3vPxHYDbWsN5jZq/yxvoNIvx5tofrbHD3LymA3KbcNAmMPah7Wv2YJtwxNp/pt0EooqD/vCXhoE3mijiyDcC8BApG1SKOJiveJjs7vbGsyqO2ArE3oNFYEU+iIM+/oF20wf/rIgjdDAKo58J6SBjvrQfVNLzjIP72fzGmtL66HGo6nmPQ1XPexyqep5xcD3EjQBqet7nK1U9H61zRT3vcajq+UgHFfV8U11USc8zjv4NdCU973Go6nmPQ1XPexyqep5x5BsB1PS8z1eqej5a54p63uNQ1fORDkrouRvoe3S6ix6NQjWLCnzb7ot2vatiQyqfMFFvSDHBftyKhqoN9EPh49Aanflgj+I6H725rdp4jje3WVjnlaI3uIFepHSbh/0/NNCpiZxvfCtSqdCQD2YEi9EEUWpIZRxxiISNc35UG+iHwodyo7NfH/mAUhyYobdXOrjUv7mtvM75hhQ/XwN4Q6SBvm0/qFJw73GQB8UG+giHop6PcGROVNZ5j0NVzw+VD1U9H/GhqOc9DlU9H61zRT0Pn75UF1XR8x4HbzBR1PMRDkU9H+FQ1PMeBw9Qs+6ruD8nln5PqFgvyTiivivR6ATQv5g6qv3w1j6l/Xnmg7/nja/xUpGKbx+tcxk9P8Qr3PtkFUZR6Ypqvil8CsBr6TtdFXEcypXIxBHf2875xZNjkbCU5tWh8DFqoCvywfwbVyvx6xr4UVzn5ONxACcB8ISl8tXnIejBg+JV9KM30Pt5pXRFXL/5yNc7q1zh3vsSYrqr3dbAf1O5anvJX4VxV7gSeWl9vNUWP281eVbkSv1D5aMvuKvOK/ITX9fAt21V1zkP+nyeNujKfOR8q6CDu+wHVXH0DXT+ee1XuI/4UNTzTfNKSc+XcKjp+SHzoajnIz4U9XyEQ1HPl/hQ0/Nd6nAKej7C0TfQFfR8hIPNKLX9+aZ5paTnSzjU9PyQ+egb6Ar7waV8pbY/H+Hgi15q+/MlPmT0PBro/JVFaSaoM+1q5Py2KgH1JzjW/HdRcCee3Pzk96byOqy1Y2NDiqcwjkY3RxRHnlcsSh8TxhGFHn7/I9eI4rw6JD4iX6nPq3yanTnW8+rS5ef8FQehg6p85Mbakg7yIFBoPgtcvAZ9jdqY9TxyGDe4/P4lrpmzTSePtwNna/UqGccJAKdTw5baqMhHXh/x8yviyE110kKfqIjjUPg4FBycV/mGGeYmz6uLqzM578YekGs8fr92PnbdDyri4PrIb6zxDSNFHIp6vm1eqej5CIeinh8yH4p6vjSv1PT8kOeVop7vWodbuw6OcCjq+QiHop5vm1cqer40r6KmpbQ/31SnVuZDUc+X5pWanh/yOpfS89xAT71aqWZ5/NxrLZr75/tvZpkjrYMonrueu9aFHAGv3zUfnHO+cr5yvnK+WuMhIOcm5ybnJucm56aLe3jGedd513nXedd513nX9WfXr1y/+kcLvBYcA8+DPdeCG+h7BtCJyMm47U0sSBYkC5LzqQt2Lti5YOeCnQt2LtjZE9oT2hPaE9oT2hPaE9oT2hPaE9oT2hPaE9oT2hPaE9oTintCN9CdyJ3IncidyMUTuQ/y+CCPD/L8u4hdpHCRwkUKe1t7W3tbe1t7Wzeu3LiyJ7QntCe0J7QntCe0J7QntCe0J7QntCfcyxO6gW5DaUNpQ2lDaUNpQ2lDaUNpQ7mXofRBHh/k8UEeH+RJdsqaYk2xprjO4DqD6wyuM7jO4DqD6wz2hPaE9oT2hPaE9oTSntANdCcxJzEnMekk5qaNmzZu2rhp46bNOdU5FylcpHCRwv7e/t7+3v7ejSs3rty4sie0J7QntCe0J7QntCe0J7QntCe0J9zDE7qBbjNlM2UzZTNlM2UzZTNlM7WHmfJBHh/k8UEeH+TxQR4f5DnXTsK6al1148q1FtdaXGtxrcW1FtdaXGuxJ7QntCe0J7QnFPaEfwNdvyoPYn5mCwAAAABJRU5ErkJggg==" />
                     <img class="v_img" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAAAPCAYAAAC891QNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAiHSURBVHhe7Z29q21HGYevplLTKSL4UQQkwUYQG1EUtBGba5qkyEeX+NGI9irof2ClvTaCtoqgoEkISAIpTZMiJBCCQsCvSq7vc88emExm7XO2++Tc+S2fB17WmnftzZ3ffWf2b601a+9za8Kdw7bHnDkwZw7MmQNz5sCcOTBnDsyZA3PmwJw5MGcOzJkDc+bAnDkwZw7MmYPlc+897IiIiIiIiIiIiIiIiIiIiPxf4wK6iIiIiIiIiIiIiIiIiIhI4QK6iIiIiIiIiIiIiIiIiIhI4QK6iIiIiIiIiIiIiIiIiIhI4QK6iIiIiIiIiIiIiIiIiIhIkbCA/vmKOxW/rfggieKxCvJJzHTQJl6qeJBEADMd7JOjLinMdDxd8b6L3Rj2XI+96IDbFSlzHPZcj59WkGO74nynT62P7f96poNj5FeGMY+/EQ363I+h1XXM6tHmAvF9EkWiDrZp42prfox9th43w551AP1/6mL3LtbjZtia57SJ1vdkHX09mq5VrwdnOug7/sexRqIO6tD63fw8UQdb2unjivkxzulEHXupx150AP3v/TxRx17q0XyQaPM9WUdfD/b716zGTAd9H/08UUfrM9H8PFEHW9rp42rm59bjZtizDqD/vZ9bj5tha57TJtp8T9bR1+Md64OzBfT3HLY99yr3/oovV3yo4scVX62YvW7GdfflnNyWDuKhit9VvFox45x/97pzMx2PH/Y59kBFG2wjN9G/q+a2dPys4l8V/aQZuYn+XTW393qwz+s/XLF1IXXdfTknN9PRXoeGv17sTrnuvpyTu2xcfboitR5fqHimgtd/s+LfFTOuuy+n5D5TQR/pP3P4YxVb4+oyzu3LyKm5r1U8eojvkRiYvXfGdfSl55TcWA/q0Grwg4o/HPavwin/7si5uVHHJw9b2knjaqaDmyTPVrST4Nl7Z5zbl5FTcnuuR9PxnYonK2bvnXFuX0ZOyc3mObB982J3+t4Z5/Zl5JTcZePq2xWz9844ty8jp+RGHb0Pcvy5w/YqnPLvjpybO6ajn+fEyteDW/Ojh9cRaTpmfk4k6djyDyJNx8zPCevxdt6N3DEdvZ8TafMc2PZ+TiSPq+bnRJKOLT8nUnW0eZ5wH25rfvSk6hj9PFHHzD9SdYx+bj1uLndMR/Pz1HkObJuf72Fc4eeJOmZ+nq6Dvrd5/o71wdW/gY6gNyr+VsHiE4tQiWzpwEi+W/HDiq2FnJU4Vg/6z2Dj2OrMdPy64hsVH6/4VUWqjkZ6PRLZ0tFMI6EWcFk9/l5BfnVmOjBFThg5kW9PJq8GfXyhgjn8jwoMPXF+8LTePyu4CUK/7z/k0hjrQZs5zYkUF+ecKCYw6uhPZtHwi4vd5Rl13FeB1/FwzNcrOJbAXuvR60hi1EEbuJn7l4vdCC6rxyuH7eqMOvDBj1b8vmLVb6fNmOmY+fnq14Nb82MkUcfMz9N0bPlHmo4tP7ceN8MxHT2J8xxGP0+vR/PzNB1bfp6oY+v6nNeseh9ua37MSNMx83NI0rHlH5Ck49j1ufV49zmmYyRJB22YXZ8n16O/Pk/Scez6PE3H6OfT9UH/Bvq9g8FFYY59CzIBBtYTFasuRp3KFyv+dLEbCSeN1IIFQn6WInHBCnodKTdKt+DEMXlMASeLPJX1fMUvK1Y0wqvAIu6PKnjyDLNMH1tyb+AhDJ7e7S/O03irghsMzOk9zANOhDmnevluKw/qwcUTT7nie+NP3qXQ6/gJiWC4uE0eU0A98GzmOR7e3/hJ4/WKz1Xwiyb8usle2Mv1YKqO0c8Tdcz8PHlc9X6eWo/Rz9N1ND9PHVejn6fWY/Tz1HqMfp6qY2Qv90VTdYx+nqhj5ufJ46r389R6jH6erqP5eeq4Gv08tR6jn6fWY/TzVB1bvG19cPUFdCb4RyqYJHz4tp9pAH4OJKUoMx2frfhzBfD3Gzi2OjMdn6j4TQVPl6SwNa74KQcW1lJuls50sLDJT07QfrEi4SJkqx4PV/AtYj6UeRJodWY62O8NPoGZDk4WOZnHHB+p4NjqbI0r4MESFtNXHFf0CX9ofXytYkvHyj7IZ88HKvAI+s0DC+3z6OcV/QM+K+sY6/Gfw5Zv1nNhe7uikaSD9qcqvlIxfj6l6YBvVXDC3pOmg4snzkF4Ur/pgiQdzHMegEMHDyulfF7N6rH18FtaPb5UgXfj4XzDq5Gko39oL8kHRx0zP+f46teDs/kBnBu2m7yJOmZ+nlqP0c9TdUDv56k6Rj9P1DHz89R6jH6eWo/RzxN1zPw8UcfMzxPui87mB/R+nqhj5uep9Rj9PHlc9X6eqmP080QdMz9Prcfo56n1GP08UcfMzxN1bN1vT1sfvAtmztM+TPh2MsUAI9/g+OqMOgj2ybUbWok6GHTtD/C3BZFUHdyAa2MMEnW0NpE8rjjx5WdA0nXQd9pE+1mTRB0E++TajepEHf3n1arjatbHUQdwjHxjNR3Q5nH/kz70uemC1XXM6sE2rR7HxhXR+p6qo+030nT07fRxhUek66Df9J820XwvsR5safefw4k66C/tvXzuNh39WGuvSdBBv5kXHINUHWxpp9ejjSuC/WQdbR8SdfTt9HE1+nmijr7PBJpS68GWdvPzVB178cFRR/8atrQTdND33s9TdbClnV6P0c+TdbR9SNTRt9PH1ejniTrod/MKon1upekAtrSbn6fq2IsPznS088XGajr+Z/YiRB1roY61UMdaqGMt1LEW6lgLdayFOtZCHWuhjrVQx1qoYy3UsRbqWAt1rIU61kIda6GOtVDHWtzxb6CLiIiIiIiIiIiIiIiIiIgU9x22e+CPh2066lgLdayFOtZCHWuhjrVQx1qoYy3UsRbqWAt1rIU61kIda6GOtVDHWqhjLdSxFupYC3WshTqW4dat/wKB2hwSL8nDjQAAAABJRU5ErkJggg==" />
                    </div>`)},br.prototype.displayHeight=function(){return this.mmheight-Se.a.instance.paperHeightTrim+"mm"},br.prototype.displayWidth=function(){return this.mmwidth+"mm"},br.prototype.getPanelTarget=function(){return this.target.parent(".hiprint-printPanel ")},br}(),Oe=Ae(6),Je=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),We=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new fr(sr),dr.options.setDefault(new fr(Se.a.instance.longText.default).getPrintElementOptionEntity()),dr}return Je(Ke,br),Ke.prototype.getDesignTarget=function(je){var sr=br.prototype.getDesignTarget.call(this,je);return sr.find(".hiprint-printElement-longText-content").css("border","1px dashed #cebcbc"),sr},Ke.prototype.getProxyTarget=function(je){je&&this.SetProxyTargetOption(je);var sr=this.getData(),dr=this.createTarget(this.printElementType.getText(!0),sr);return this.updateTargetSize(dr),this.css(dr,sr),dr},Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData(),sr=this.getHtml(this.designPaper)[0].target;this.designTarget.find(".hiprint-printElement-longText-content").html(sr.find(".hiprint-printElement-longText-content").html()),this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.longText},Ke.prototype.getTitle=function(){return this.options.title||this.printElementType.title},Ke.prototype.getData=function(je){return je?je[this.getField()]||"":this.options.testData||this.printElementType.getData()||""},Ke.prototype.updateTargetText=function(je,sr,dr){var Pr=je.find(".hiprint-printElement-longText-content"),jr=this.getText(sr,dr);Pr.html(jr)},Ke.prototype.createTarget=function(je,sr){var dr=$$g('<div  class="hiprint-printElement hiprint-printElement-longText" style="position: absolute;"><div class="hiprint-printElement-longText-content hiprint-printElement-content" style="height:100%;width:100%"></div></div>');return this.updateTargetText(dr,je,sr),dr},Ke.prototype.getText=function(je,sr){var dr=this.getFormatter();return sr&&(sr=this.options.leftSpaceRemoved!=0?sr.toString().replace(/^\s*/,""):sr),(this.getField()?(this.options.getHideTitle()?"":je?je+":":"")+(dr?dr(je,sr,this.options,this._currenttemplateData):sr):dr?dr(je,je,this.options,this._currenttemplateData):je||"")||""},Ke.prototype.getHtml=function(je,sr){this.setCurrenttemplateData(sr),this.createTempContainer();var dr=this.getPaperHtmlResult(je,sr);return this.removeTempContainer(),dr},Ke.prototype.getHeightByData=function(je){this.createTempContainer();var sr=this.getPaperHtmlResult(new Ar("",1e3,1e3,0,25e3,0,0,!0,void 0,0,void 0),{},je);return this.removeTempContainer(),sr[0].referenceElement.bottomInLastPaper-sr[0].referenceElement.printTopInPaper},Ke.prototype.getLongTextIndent=function(){return this.options.longTextIndent?'<span class="long-text-indent" style="margin-left:'+this.options.longTextIndent+'pt"></span>':'<span class="long-text-indent"></span>'},Ke.prototype.getPaperHtmlResult=function(je,sr,dr){var Pr=this,jr=[],wn=0,pn=dr||this.getData(sr),Pn=this.getText(this.getTitle(),pn),Xe=this.createTarget(this.getTitle(),this.options.testData||"");this.css(Xe,pn),sr?this.updateTargetWidth(Xe):this.updateTargetSize(Xe),this.getTempContainer().html(""),this.getTempContainer().append(Xe);var ke=[this.getLongTextIndent()],Wr=Pn.split(new RegExp(`\r|
`,"g"));if(Wr.forEach(function(Ni,Hi){var Ki=Pr.options.leftSpaceRemoved!=0?(Ni||"").toString().replace(/^\s*/,""):Ni;ke=ke.concat(Ki.split("")),Hi<Wr.length-1&&ke.push("<br/>"+Pr.getLongTextIndent())}),ke.length==0&&(ke=[""]),this.isHeaderOrFooter()||this.isFixed()||!sr)return(Mn=this.getStringBySpecificHeight(ke,25e3,Xe)).target.css("left",this.options.displayLeft()),Mn.target.css("top",this.options.displayTop()),Mn.target[0].height="",jr.push(new Oe.a({target:Mn.target,printLine:this.options.displayTop()+Mn.height,referenceElement:new Ye.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:je.index,bottomInLastPaper:this.options.getTop()+Mn.height,printTopInPaper:this.options.getTop()})})),jr;for(var bn=this.getBeginPrintTopInPaperByReferenceElement(je);ke.length>0;){var Jn=0,pi=je.getPaperFooter(wn);wn==0&&bn>pi&&(bn=bn-pi+je.paperHeader,jr.push(new Oe.a({target:void 0,printLine:void 0})),wn++,Jn=je.getContentHeight(wn)-(bn-je.paperHeader),pi=je.getPaperFooter(wn));var Mn=this.getStringBySpecificHeight(ke,Jn>0?Jn:wn==0?pi-bn:je.getContentHeight(wn),Xe);ke.splice(0,Mn.length);var Ti=void 0,Oi=void 0;Mn.target.css("left",this.options.displayLeft()),Mn.target[0].height="",wn==0||Jn>0?(Oi=bn,Mn.target.css("top",Oi+"pt"),Ti=ke.length>0?bn+Mn.height:this.options.lHeight!=null?bn+(Mn.height>this.options.lHeight?Mn.height:this.options.lHeight):bn+Mn.height):(Oi=je.paperHeader,Mn.target.css("top",Oi+"pt"),Ti=Oi+Mn.height),jr.push(new Oe.a({target:Mn.target,printLine:Ti,referenceElement:new Ye.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:je.index,bottomInLastPaper:Ti,printTopInPaper:Oi})})),wn++}return jr},Ke.prototype.getStringBySpecificHeight=function(je,sr,dr){var Pr=Ce.a.pt.toPx(sr),jr=this.IsPaginationIndex(je,je.length-1,Pr,dr);return jr.IsPagination?jr:this.BinarySearch(je,0,je.length-1,Pr,dr)},Ke.prototype.BinarySearch=function(je,sr,dr,Pr,jr){var wn=Math.floor((sr+dr)/2);if(sr>dr)return jr.find(".hiprint-printElement-longText-content").html(""),{IsPagination:!0,height:0,length:0,target:jr.clone()};var pn=this.IsPaginationIndex(je,wn,Pr,jr);return pn.IsPagination?pn:pn.move=="l"?this.BinarySearch(je,sr,wn-1,Pr,jr):this.BinarySearch(je,wn+1,dr,Pr,jr)},Ke.prototype.IsPaginationIndex=function(je,sr,dr,Pr){Pr.find(".hiprint-printElement-longText-content").html(je.slice(0,sr+2).join(""));var jr=Pr.height();Pr.find(".hiprint-printElement-longText-content").html(je.slice(0,sr+1).join(""));var wn=Pr.height();return sr>=je.length-1&&wn<dr?{IsPagination:!0,height:Ce.a.px.toPt(wn),length:je.length,target:Pr.clone()}:wn<=dr&&jr>=dr?{IsPagination:!0,height:wn,length:sr+1,target:Pr.clone()}:wn>=dr?{IsPagination:!1,move:"l"}:jr<=dr?{IsPagination:!1,move:"r"}:{IsPagination:!0,result:1}},Ke}(ze.a),or=function(){function br(){}return br.replaceEnterAndNewline=function(Ke,je){return Ke.replace(new RegExp(`\r|
|/g`,"g"),je)},br.replaceTab=function(Ke,je){return Ke.replace(new RegExp("	/g","g"),je)},br.replaceEnterAndNewlineAndTab=function(Ke,je){return Ke.replace(new RegExp(`\r|
|	|/g`,"g"),je)},br}(),mr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),er=function(br){function Ke(je){var sr=br.call(this,je)||this;return sr.title&&(sr.title=or.replaceEnterAndNewlineAndTab(sr.title,"")),sr}return mr(Ke,br),Ke.prototype.getHideTitle=function(){return this.hideTitle==null?this.defaultOptions.hideTitle:this.hideTitle},Ke.prototype.getTextType=function(){return(this.textType==null?this.defaultOptions.textType:this.textType)||"text"},Ke.prototype.getFontSize=function(){return(this.fontSize==null?this.defaultOptions.fontSize:this.fontSize)||9},Ke.prototype.getbarcodeMode=function(){return(this.barcodeMode==null?this.defaultOptions.barcodeMode:this.barcodeMode)||"CODE128"},Ke}(Ve.a),ir=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),gr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new er(sr),dr.options.setDefault(new er(Se.a.instance.text.default).getPrintElementOptionEntity()),dr}return ir(Ke,br),Ke.prototype.getDesignTarget=function(je){return br.prototype.getDesignTarget.call(this,je)},Ke.prototype.getProxyTarget=function(je){je&&this.SetProxyTargetOption(je);var sr=this.getData(),dr=this.createTarget(this.printElementType.getText(!0),sr);return this.updateTargetSize(dr),this.css(dr,sr),dr},Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je),this.updateTargetText(this.designTarget,this.getTitle(),je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.text},Ke.prototype.getTitle=function(){var je=this.options.title||this.printElementType.title||"";return je&&(je=or.replaceEnterAndNewlineAndTab(je,"")),je},Ke.prototype.getData=function(je){var sr=void 0;if(sr=je?je[this.getField()]||"":this.options.testData||this.printElementType.getData()||"",this.options.format){if(this.options.dataType=="datetime")return Ce.a.dateFormat(sr,this.options.format);if(this.options.dataType=="boolen"){var dr=this.options.format.split(":");if(dr.length>0)return sr===!0||sr==="true"?dr[0]:dr[1]}}return sr},Ke.prototype.updateTargetText=function(je,sr,dr,Pr){var jr=this.getFormatter(),wn=je.find(".hiprint-printElement-text-content"),pn="";pn=this.getField()?(this.options.getHideTitle()?"":sr?sr+":":"")+(jr?jr(sr,dr,this.options,this._currenttemplateData,je):dr):dr=jr?jr(sr,sr,this.options,this._currenttemplateData,je):sr;var Pn=this.options.getTextType();if(Pn=="text")wn.html(pn);else{if(Pn=="barcode"){wn.html('<svg width="100%" display="block" height="100%" class="hibarcode_imgcode" preserveAspectRatio="none slice"></svg ><div class="hibarcode_displayValue"></div>');try{dr?(JsBarcode$1(wn.find(".hibarcode_imgcode")[0],dr,{format:this.options.getbarcodeMode(),width:1,textMargin:-1,lineColor:this.options.color||"#000000",margin:0,height:parseInt(Ce.a.pt.toPx(this.options.getHeight()||10).toString()),displayValue:!1}),wn.find(".hibarcode_imgcode").attr("height","100%"),wn.find(".hibarcode_imgcode").attr("width","100%"),this.options.hideTitle||wn.find(".hibarcode_displayValue").html(dr)):wn.html("")}catch(Wr){console.log(Wr),wn.html("此格式不支持该文本")}}if(Pn=="qrcode"){wn.html("");try{if(dr){var Xe=parseInt(Ce.a.pt.toPx(this.options.getWidth()||20)),ke=parseInt(Ce.a.pt.toPx(this.options.getHeight()||20));new QRCode(wn[0],{width:Xe,height:ke,colorDark:this.options.color||"#000000",useSVG:!0}).makeCode(dr)}}catch(Wr){console.log(Wr),wn.html("二维码生成失败")}}}},Ke.prototype.onResize=function(je,sr,dr,Pr,jr){br.prototype.onResize.call(this,je,sr,dr,Pr,jr),this.options.getTextType()!="barcode"&&this.options.getTextType()!="qrcode"||this.updateTargetText(this.designTarget,this.getTitle(),this.getData())},Ke.prototype.createTarget=function(je,sr,dr){var Pr=$$g('<div tabindex="1" class="hiprint-printElement hiprint-printElement-text" style="position: absolute;"><div class="hiprint-printElement-text-content hiprint-printElement-content" style="height:100%;width:100%"></div></div>');return this.updateTargetText(Pr,je,sr,dr),Pr},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),vr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Or=function(br){function Ke(je){return br.call(this,je)||this}return vr(Ke,br),Ke}(Ve.a),Nr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Hr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Or(sr),dr.options.setDefault(new Or(Se.a.instance.html.default).getPrintElementOptionEntity()),dr}return Nr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je),this.updateTargetHtml()}},Ke.prototype.updateTargetHtml=function(){var je=this.getFormatter();if(je){var sr=je(this.getData(),this.options,this._currenttemplateData);this.designTarget.find(".hiprint-printElement-html-content").html(sr)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.html},Ke.prototype.createTarget=function(je,sr){var dr=$$g('<div  class="hiprint-printElement hiprint-printElement-html" style="position: absolute;"><div class="hiprint-printElement-html-content" style="height:100%;width:100%"></div></div>'),Pr=this.getFormatter();if(Pr){var jr=Pr(this.getData(),this.options,this._currenttemplateData);dr.find(".hiprint-printElement-html-content").append(jr)}else this.options.content&&dr.find(".hiprint-printElement-html-content").append(this.options.content);return dr},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),Dr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),kr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.vline.default).getPrintElementOptionEntity()),dr}return Dr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-vline" style="border-left:1px solid;position: absolute;"></div>')},Ke.prototype.getReizeableShowPoints=function(){return["s"]},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),qr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),An=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.hline.default).getPrintElementOptionEntity()),dr}return qr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-hline" style="border-top:1px solid;position: absolute;"></div>')},Ke.prototype.getReizeableShowPoints=function(){return["e"]},Ke}(ze.a),lr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Tr=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.rect.default).getPrintElementOptionEntity()),dr}return lr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-rect" style="border:1px solid;position: absolute;"></div>')},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),xr=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),$r=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Ve.a(sr),dr.options.setDefault(new Ve.a(Se.a.instance.oval.default).getPrintElementOptionEntity()),dr}return xr(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var je=this.getData();this.css(this.designTarget,je)}},Ke.prototype.getConfigOptions=function(){return Se.a.instance.hline},Ke.prototype.createTarget=function(je,sr){return $$g('<div class="hiprint-printElement hiprint-printElement-oval" style="border:1px solid;position: absolute;border-radius: 50%;"></div>')},Ke.prototype.getHtml=function(je,sr,dr){return this.getHtml2(je,sr,dr)},Ke}(ze.a),Qr=function(){function br(){}return br.createPrintElement=function(Ke,je){return Ke.type=="text"?new gr(Ke,je):Ke.type=="image"?new Ze(Ke,je):Ke.type=="longText"?new We(Ke,je):Ke.type=="table"?new $e.a(Ke,je):Ke.type=="html"?new Hr(Ke,je):Ke.type=="vline"?new kr(Ke,je):Ke.type=="hline"?new An(Ke,je):Ke.type=="rect"?new Tr(Ke,je):Ke.type=="oval"?new $r(Ke,je):void 0},br}(),Jr=function(){function br(Ke){this.field=Ke.field,this.fields=Ke.fields,this.title=Ke.title,this.text=Ke.text,this.tid=Ke.tid,this.data=Ke.data,this.styler=Ke.styler,this.formatter=Ke.formatter,this.type=Ke.type,this.onRendered=Ke.onRendered,this.options=Ke.options}return br.prototype.getText=function(Ke){return Ke?this.title||this.text||"":this.text||this.title||""},br.prototype.getData=function(){return this.data},br.prototype.createPrintElement=function(Ke){var je={};return $$g.extend(je,Ke||{}),Qr.createPrintElement(this,je)},br.prototype.getPrintElementTypeEntity=function(){return new Me({title:this.title,type:this.type})},br.prototype.getFields=function(){return this.fields},br.prototype.getOptions=function(){return this.options||{}},br}(),nn=Ae(16),en=Ae(12),Bn=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Sn=function(br){function Ke(je){var sr=br.call(this,je)||this;return(je=je||{}).columns?(sr.columns=[],je.columns.forEach(function(dr){sr.columns.push(new en.a(dr))})):sr.columns=[new en.a({columns:[new Ue.a({width:100}),new Ue.a({width:100})]})],sr.lHeight=je.lHeight,sr.autoCompletion=je.autoCompletion,sr.tableFooterRepeat=je.tableFooterRepeat,sr}return Bn(Ke,br),Ke.prototype.getPrintElementOptionEntity=function(){var je=br.prototype.getPrintElementOptionEntity.call(this);return je.columns=[],this.columns.forEach(function(sr){je.columns.push(sr.getPrintElementOptionEntity())}),je},Ke}(Ve.a),Un=Ae(7),On=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),zn=function(br){function Ke(je,sr){var dr=br.call(this,je)||this;return dr.options=new Sn(sr),dr.options.setDefault(new Sn(Se.a.instance.tableCustom.default).getPrintElementOptionEntity()),dr.columns=dr.options.columns,dr}return On(Ke,br),Ke.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){this.css(this.designTarget,this.getData());var je=this.designTarget.find(".hiprint-printElement-table-content"),sr=this.getHtml(this.designPaper);je.html(""),je.append(sr[0].target.find(".hiprint-printElement-tableTarget")),this.setHiReizeable()}},Ke.prototype.getDesignTarget=function(je){var sr=this;return this.designTarget=this.getHtml(je)[0].target,this.designPaper=je,this.designTarget.click(function(){Ce.a.event.trigger(sr.getPrintElementSelectEventKey(),{printElement:sr})}),this.designTarget.find("td").hidroppable({accept:".rn-draggable-item",onDrop:function(Pr,jr){},onDragEnter:function(Pr,jr){$$g(jr).removeClass("rn-draggable-item")},onDragLeave:function(Pr,jr){$$g(jr).addClass("rn-draggable-item")}}),this.designTarget},Ke.prototype.getConfigOptions=function(){return Se.a.instance.tableCustom},Ke.prototype.createTarget=function(je,sr,dr){var Pr=$$g('<div class="hiprint-printElement hiprint-printElement-table" style="position: absolute;"><div class="hiprint-printElement-table-handle"></div><div class="hiprint-printElement-table-content" style="height:100%;width:100%"></span></div>');return Pr.find(".hiprint-printElement-table-content").append(this.getTableHtml(sr,dr)),Pr},Ke.prototype.getTableHtml=function(je,sr){var dr=$$g('<table class="hiprint-printElement-tableTarget" style="border-collapse: collapse;width:100%;"></table>');return dr.append(Un.a.createTableHead(this.columns,this.options.getWidth())),dr.append(Un.a.createTableRow(this.columns,je,this.options,this.printElementType)),this.printElementType.footerFormatter&&(this.options.tableFooterRepeat=="no"||(this.options.tableFooterRepeat=="last"?dr.find("tbody").append(Un.a.createTableFooter(this.printElementType.columns,je,this.options,this.printElementType,sr,je).html()):dr.append(Un.a.createTableFooter(this.printElementType.columns,je,this.options,this.printElementType,sr,[])))),dr},Ke.prototype.getHtml=function(je,sr){this.setCurrenttemplateData(sr),this.createTempContainer();var dr=this.getPaperHtmlResult(je,sr);return this.removeTempContainer(),dr},Ke.prototype.getPaperHtmlResult=function(je,sr){var dr=[],Pr=this.getData(sr),jr=this.getTableHtml(Pr,sr),wn=this.createTarget(this.printElementType.title,[],sr);sr?this.updateTargetWidth(wn):this.updateTargetSize(wn),this.css(wn,Pr),this.css(jr,Pr),this.getTempContainer().html(""),this.getTempContainer().append(wn);for(var pn,Pn=this.getBeginPrintTopInPaperByReferenceElement(je),Xe=0,ke=!1;!ke;){var Wr=0,bn=je.getPaperFooter(Xe);Xe==0&&Pn>bn&&(Pn=Pn-bn+je.paperHeader,dr.push(new Oe.a({target:void 0,printLine:void 0})),Xe++,Wr=je.getContentHeight(Xe)-(Pn-je.paperHeader),bn=je.getPaperFooter(Xe));var Jn=dr.length>0?dr[dr.length-1].target:void 0,pi=this.getRowsInSpecificHeight(Wr>0?Wr:Xe==0?bn-Pn:je.getContentHeight(Xe),wn,jr,Xe,Jn,sr);ke=pi.isEnd;var Mn=void 0;pi.target&&(pi.target.css("left",this.options.displayLeft()),pi.target[0].height=""),Xe==0||Wr>0?(pi.target&&(pn=Pn,pi.target.css("top",Pn+"pt")),Mn=ke&&this.options.lHeight!=null?Pn+(pi.height>this.options.lHeight?pi.height:this.options.lHeight):Pn+pi.height):(pi.target&&(pn=je.paperHeader,pi.target.css("top",je.paperHeader+"pt")),Mn=je.paperHeader+pi.height),dr.push(new Oe.a({target:pi.target,printLine:Mn,referenceElement:new Ye.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:je.index,bottomInLastPaper:Mn,printTopInPaper:pn})})),Xe++}return dr},Ke.prototype.getRowsInSpecificHeight=function(je,sr,dr,Pr,jr,wn){var pn=void 0,Pn=dr.find("tbody"),Xe=Ce.a.pt.toPx(je);sr.find("tbody").html("");for(var ke=sr.outerHeight(),Wr=[];;){if(ke<=Xe)if(Pn.find("tr").length==0)wn&&this.options.autoCompletion&&(this.autoCompletion(Xe,sr),ke=sr.outerHeight()),pn={target:sr.clone(),length:sr.find("tbody tr").length,height:Ce.a.px.toPt(ke),isEnd:!0},sr.find("tbody tr").length==0&&jr&&(pn={target:void 0,length:0,height:0,isEnd:!0});else{var bn=Pn.find("tr:lt(1)");sr.find("tbody").append(bn),ke=sr.outerHeight();var Jn=bn.data("rowData");Wr.push(Jn),ke>Xe&&(Pn.prepend(bn),Wr.pop(),ke=sr.outerHeight(),pn={target:sr.clone(),length:sr.find("tbody tr").length,height:Ce.a.px.toPt(ke),isEnd:!1})}else pn={target:void 0,length:0,height:0,isEnd:!1};if(pn){this.printElementType.footerFormatter&&sr.find("tfoot")&&sr.find("tfoot").html(Un.a.createTableFooter(this.printElementType.columns,this.getData(wn),this.options,this.printElementType,wn,Wr).html());break}}return pn},Ke.prototype.getData=function(je){if(!je)return[{}];var sr=je[this.getField()];return sr?JSON.parse(JSON.stringify(sr)):[]},Ke.prototype.autoCompletion=function(je,sr){for(var dr,Pr=this.getEmptyRowTarget(),jr=sr.outerHeight();je>jr;)dr=Pr.clone(),sr.find("tbody").append(dr),jr=sr.outerHeight();dr&&dr.remove()},Ke.prototype.getEmptyRowTarget=function(){return Un.a.createEmptyRowTarget(this.columns)},Ke.prototype.onResize=function(je,sr,dr,Pr,jr){br.prototype.updateSizeAndPositionOptions.call(this,jr,Pr,dr,sr),Un.a.resizeTableCellWidth(this.designTarget,this.columns,this.options.getWidth())},Ke.prototype.getReizeableShowPoints=function(){return["s","e"]},Ke.prototype.design=function(je,sr){var dr=this;this.designTarget.hidraggable({handle:this.designTarget.find(".hiprint-printElement-table-handle"),axis:dr.options.axis&&je&&je.axisEnabled?dr.options.axis:void 0,onDrag:function(jr,wn,pn){dr.updateSizeAndPositionOptions(wn,pn),dr.createLineOfPosition(sr)},moveUnit:"pt",minMove:Se.a.instance.movingDistance,onBeforeDrag:function(jr){xe.a.instance.draging=!0,dr.createLineOfPosition(sr)},onStopDrag:function(jr){xe.a.instance.draging=!1,dr.removeLineOfPosition()}}),this.setHiReizeable(),this.designTarget.hireizeable({showPoints:dr.getReizeableShowPoints(),noContainer:!0,onBeforeResize:function(){xe.a.instance.draging=!0},onResize:function(jr,wn,pn,Pn,Xe){dr.onResize(jr,wn,pn,Pn,Xe),dr.hitable.updateColumnGrips(),dr.createLineOfPosition(sr)},onStopResize:function(){xe.a.instance.draging=!1,dr.removeLineOfPosition()}}),this.bingKeyboardMoveEvent(this.designTarget,sr)},Ke.prototype.setHiReizeable=function(){var je=this;this.hitable=new nn.a({table:this.designTarget.find("table"),rows:this.columns,resizeRow:!1,resizeColumn:!0,trs:$$g(this.designTarget).find("tbody tr"),handle:this.designTarget.find("table thead"),columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnResizable:!0,columnAlignEditable:!0,isEnableEdit:!0,isEnableEditText:!0,isEnableEditField:!0,isEnableContextMenu:!0,isEnableInsertRow:!0,isEnableDeleteRow:!0,isEnableInsertColumn:!0,isEnableDeleteColumn:!0,isEnableMergeCell:!0}),Ce.a.event.on("updateTable"+this.hitable.id,function(){je.updateDesignViewFromOptions()})},Ke}(ze.a),fn=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Sr=function(br){function Ke(je){return br.call(this,je)||this}return fn(Ke,br),Ke.prototype.createPrintElement=function(je){return new zn(this,je)},Ke}(Re),Yn=function(){var br=function(je,sr){return(br=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(dr,Pr){dr.__proto__=Pr}||function(dr,Pr){for(var jr in Pr)Pr.hasOwnProperty(jr)&&(dr[jr]=Pr[jr])})(je,sr)};return function(Ke,je){function sr(){this.constructor=Ke}br(Ke,je),Ke.prototype=je===null?Object.create(je):(sr.prototype=je.prototype,new sr)}}(),Wn=function(br){function Ke(je){return br.call(this,je)||this}return Yn(Ke,br),Ke.prototype.createPrintElement=function(je){var sr={};return $$g.extend(sr,je||{}),Qr.createPrintElement(this,sr)},Ke.prototype.getPrintElementTypeEntity=function(){return new Me({title:this.title,type:this.type})},Ke}(Jr),Tn=function(){function br(){}return br.createPrintElementType=function(Ke){return Ke.type=Ke.type||"text",Ke.type=="text"?new Wn(Ke):Ke.type=="table"?new Re(Ke):Ke.type=="tableCustom"?new Sr(Ke):new Jr(Ke)},br}(),$n=function(){function br(){}return br.getElementTypeGroups=function(Ke){var je=br.formatterModule(Ke);return Te.instance[je]||[]},br.getElementType=function(Ke,je){if(Ke)return Te.instance.getElementType(Ke);Tn.createPrintElementType({type:je})},br.build=function(Ke,je){var sr=br.formatterModule(je),dr=new Ie().createPrintElementTypeHtml(Ke,this.getElementTypeGroups(sr));this.enableDrag(dr)},br.buildByHtml=function(Ke){this.enableDrag(Ke)},br.enableDrag=function(Ke){Ke.hidraggable({revert:!0,proxy:function(sr){var dr=xe.a.instance.getDragingPrintElement(),Pr=dr.printElement.getProxyTarget(dr.printElement.printElementType.getOptions());return Pr.appendTo("body"),Pr.css("z-index","9999"),Pr},moveUnit:"pt",minMove:4,onBeforeDrag:function(sr){xe.a.instance.draging=!0;var dr=br.getElementType($$g(sr.data.target).attr("tid"),$$g(sr.data.target).attr("ptype"));return xe.a.instance.setDragingPrintElement(dr.createPrintElement()),!0},onDrag:function(sr,dr,Pr){xe.a.instance.getDragingPrintElement().updatePosition(dr,Pr)},onStopDrag:function(sr){xe.a.instance.draging=!1}})},br.formatterModule=function(Ke){return Ke||"_default"},br}(),Dn=function(){return function(br,Ke){var je=this;this.name=br,this.printElementTypes=[],Ke.forEach(function(sr){je.printElementTypes.push(Tn.createPrintElementType(sr))})}}(),Rn=function(){return function(br){if(this.index=br.index,this.paperType=br.paperType,this.paperType){var Ke=xe.a.instance[this.paperType];br.height?(this.height=br.height,this.width=br.width):(this.height=Ke.height,this.width=Ke.width)}else this.height=br.height,this.width=br.width;this.paperHeader=br.paperHeader||0,this.paperFooter=br.paperFooter||Ce.a.mm.toPt(this.height),this.printElements=br.printElements||[],this.paperNumberLeft=br.paperNumberLeft,this.paperNumberTop=br.paperNumberTop,this.paperNumberDisabled=br.paperNumberDisabled,this.paperNumberFormat=br.paperNumberFormat,this.panelPaperRule=br.panelPaperRule,this.rotate=br.rotate||void 0,this.firstPaperFooter=br.firstPaperFooter,this.evenPaperFooter=br.evenPaperFooter,this.oddPaperFooter=br.oddPaperFooter,this.lastPaperFooter=br.lastPaperFooter,this.topOffset=br.topOffset,this.fontFamily=br.fontFamily,this.leftOffset=br.leftOffset,this.orient=br.orient}}(),Gn=function(){function br(Ke,je,sr,dr){this.startX=this.minX=Ke,this.startY=this.minY=je,this.maxX=Ke,this.maxY=je,this.lastLeft=sr,this.lastTop=dr}return br.prototype.updateRect=function(Ke,je){this.minX=this.startX<Ke?this.startX:Ke,this.minY=this.startY<je?this.startY:je,this.maxX=this.startX<Ke?Ke:this.startX,this.maxY=this.startY<je?je:this.startY},br.prototype.updatePositionByMultipleSelect=function(Ke,je){Ke!=null&&(this.lastLeft=this.lastLeft+Ke),je!=null&&(this.lastTop=this.lastTop+je),this.target.css({left:this.lastLeft+"pt",top:this.lastTop+"pt"})},br}(),Kn=function(){function br(Ke,je){this.templateId=je,this.index=Ke.index,this.width=Ke.width,this.height=Ke.height,this.paperType=Ke.paperType,this.paperHeader=Ke.paperHeader,this.paperFooter=Ke.paperFooter,this.initPrintElements(Ke.printElements),this.paperNumberLeft=Ke.paperNumberLeft,this.paperNumberTop=Ke.paperNumberTop,this.paperNumberDisabled=Ke.paperNumberDisabled,this.paperNumberFormat=Ke.paperNumberFormat,this.panelPaperRule=Ke.panelPaperRule,this.firstPaperFooter=Ke.firstPaperFooter,this.evenPaperFooter=Ke.evenPaperFooter,this.oddPaperFooter=Ke.oddPaperFooter,this.lastPaperFooter=Ke.lastPaperFooter,this.topOffset=Ke.topOffset,this.leftOffset=Ke.leftOffset,this.fontFamily=Ke.fontFamily,this.orient=Ke.orient,this.target=this.createTarget(),this.rotate=Ke.rotate}return br.prototype.design=function(Ke){var je=this;this.orderPrintElements(),this.designPaper=this.createNewPage(0),this.target.html(""),this.target.append(this.designPaper.getTarget()),this.droppablePaper(this.designPaper),this.designPaper.design(Ke),this.designPaper.subscribePaperBaseInfoChanged(function(sr){je.paperHeader=sr.paperHeader,je.paperFooter=sr.paperFooter,je.paperNumberLeft=sr.paperNumberLeft,je.paperNumberTop=sr.paperNumberTop,je.paperNumberDisabled=sr.paperNumberDisabled,je.paperNumberFormat=sr.paperNumberFormat}),this.printElements.forEach(function(sr){je.appendDesignPrintElement(je.designPaper,sr),sr.design(Ke,je.designPaper)}),this.target.bind("click.hiprint",function(sr){Ce.a.event.trigger("BuildCustomOptionSettingEventKey_"+je.templateId,{options:{panelPaperRule:je.panelPaperRule,firstPaperFooter:je.firstPaperFooter,evenPaperFooter:je.evenPaperFooter,oddPaperFooter:je.oddPaperFooter,lastPaperFooter:je.lastPaperFooter,leftOffset:je.leftOffset,topOffset:je.topOffset,fontFamily:je.fontFamily,orient:je.orient,paperNumberFormat:je.paperNumberFormat},callback:function(Pr){je.panelPaperRule=Pr.panelPaperRule,je.firstPaperFooter=Pr.firstPaperFooter,je.evenPaperFooter=Pr.evenPaperFooter,je.oddPaperFooter=Pr.oddPaperFooter,je.lastPaperFooter=Pr.lastPaperFooter,je.leftOffset=Pr.leftOffset,je.topOffset=Pr.topOffset,je.fontFamily=Pr.fontFamily,je.orient=Pr.orient,je.paperNumberFormat=Pr.paperNumberFormat,je.designPaper.setOffset(je.leftOffset,je.topOffset),je.css(je.target)}})}),this.bindBatchMoveElement()},br.prototype.css=function(Ke){this.fontFamily&&Ke.css("fontFamily",this.fontFamily)},br.prototype.getHtml=function(Ke,je,sr,dr,Pr){var jr=this;this.orderPrintElements();var wn,pn=sr||[],Pn=dr||this,Xe=void 0;return dr?(Xe=pn[pn.length-1],wn=Xe.getPanelTarget(),Xe.updateReferenceElement(new Ye.a({top:this.paperHeader,left:0,height:0,width:0,bottomInLastPaper:Xe.referenceElement.bottomInLastPaper,beginPrintPaperIndex:pn.length-1,printTopInPaper:Xe.referenceElement.bottomInLastPaper,endPrintPaperIndex:pn.length-1}))):(wn=Pn.createTarget(),Xe=Pn.createNewPage(pn.length),pn.push(Xe),wn.append(Xe.getTarget())),this.printElements.filter(function(ke){return!ke.isFixed()&&!ke.isHeaderOrFooter()}).forEach(function(ke){var Wr=[],bn=pn[pn.length-1];bn.referenceElement.isPositionLeftOrRight(ke.options.getTop())?(Xe=pn[bn.referenceElement.beginPrintPaperIndex],Wr=ke.getHtml(Xe,Ke)):(Xe=pn[bn.referenceElement.endPrintPaperIndex],Wr=ke.getHtml(Xe,Ke)),Wr.forEach(function(Jn,pi){Jn.referenceElement&&(Jn.referenceElement.endPrintPaperIndex=Jn.referenceElement.beginPrintPaperIndex+Wr.length-1),pi>0&&(Xe.index<pn.length-1?Xe=pn[Xe.index+1]:(Xe=Pn.createNewPage(pn.length,Xe.referenceElement),pn.push(Xe)),wn.append(Xe.getTarget())),Jn.target&&(Xe.append(Jn.target),Xe.updatePrintLine(Jn.printLine),ke.onRendered(Xe,Jn.target)),pi==Wr.length-1&&Jn.referenceElement&&Xe.updateReferenceElement(Jn.referenceElement)})}),Pr&&Pr.templates.forEach(function(ke,Wr){var bn=ke.data||{},Jn=ke.options||{};ke.template.printPanels.forEach(function(pi){pi.getHtml(bn,Jn,sr,jr)})}),!dr&&(this.lastPaperFooter&&pn[pn.length-1].printLine>this.lastPaperFooter&&(Xe=Pn.createNewPage(pn.length,Xe.referenceElement),pn.push(Xe),wn.append(Xe.getTarget())),this.panelPaperRule&&(this.panelPaperRule=="odd"&&pn.length%2==0&&(Xe=Pn.createNewPage(pn.length,Xe.referenceElement),pn.push(Xe),wn.append(Xe.getTarget())),this.panelPaperRule=="even"&&pn.length%2==1&&(Xe=Pn.createNewPage(pn.length,Xe.referenceElement),pn.push(Xe),wn.append(Xe.getTarget()))),pn.forEach(function(ke){ke.updatePaperNumber(ke.index+1,pn.length,je.paperNumberToggleInEven),jr.fillPaperHeaderAndFooter(ke,Ke,pn.length),je&&(je.leftOffset!=null&&ke.setLeftOffset(je.leftOffset),je.topOffset!=null&&ke.setTopOffset(je.topOffset))}),wn.prepend(this.getPrintStyle())),wn},br.prototype.resize=function(Ke,je,sr,dr){this.width=je,this.height=sr,this.paperType=Ke,this.rotate=dr,this.designPaper.resize(je,sr)},br.prototype.rotatePaper=function(){this.rotate==null&&(this.rotate=!1),this.rotate=!this.rotate,this.resize(this.paperType,this.height,this.width,this.rotate)},br.prototype.getTarget=function(){return this.target},br.prototype.enable=function(){this.target.removeClass("hipanel-disable")},br.prototype.disable=function(){this.target.addClass("hipanel-disable")},br.prototype.getPanelEntity=function(Ke){var je=[];return this.printElements.forEach(function(sr){je.push(sr.getPrintElementEntity(Ke))}),new Rn({index:this.index,width:this.width,height:this.height,paperType:this.paperType,paperHeader:this.paperHeader,paperFooter:this.paperFooter,paperNumberDisabled:!!this.paperNumberDisabled||void 0,paperNumberFormat:this.paperNumberFormat?this.paperNumberFormat:void 0,panelPaperRule:this.panelPaperRule?this.panelPaperRule:void 0,paperNumberLeft:this.paperNumberLeft,paperNumberTop:this.paperNumberTop,printElements:je,rotate:this.rotate,firstPaperFooter:this.firstPaperFooter,evenPaperFooter:this.evenPaperFooter,oddPaperFooter:this.oddPaperFooter,lastPaperFooter:this.lastPaperFooter,topOffset:this.topOffset,fontFamily:this.fontFamily,orient:this.orient,leftOffset:this.leftOffset})},br.prototype.createTarget=function(){var Ke=$$g('<div class="hiprint-printPanel panel-index-'+this.index+'"></div>');return this.css(Ke),Ke},br.prototype.droppablePaper=function(Ke){var je=this;Ke.getTarget().hidroppable({accept:".ep-draggable-item",onDrop:function(dr,Pr){var jr=xe.a.instance.getDragingPrintElement(),wn=jr.printElement;wn.updateSizeAndPositionOptions(je.mathroundToporleft(jr.left-Ce.a.px.toPt(je.target.offset().left)),je.mathroundToporleft(jr.top-Ce.a.px.toPt(je.target.offset().top))),wn.setTemplateId(je.templateId),wn.setPanel(je),je.appendDesignPrintElement(je.designPaper,wn,!0),je.printElements.push(wn),wn.design(void 0,Ke)}})},br.prototype.initPrintElements=function(Ke){var je=this;this.printElements=[],Ke&&Ke.forEach(function(sr){var dr;if(dr=sr.printElementType?Tn.createPrintElementType(sr.printElementType):Te.instance.getElementType(sr.tid)){var Pr=dr.createPrintElement(sr.options);Pr.setTemplateId(je.templateId),Pr.setPanel(je),je.printElements.push(Pr)}else console.log("miss "+JSON.stringify(Ke))})},br.prototype.mathroundToporleft=function(Ke){var je=Se.a.instance.movingDistance;return Math.round(Ke/je)*je},br.prototype.appendDesignPrintElement=function(Ke,je,sr){je.setCurrenttemplateData(void 0);var dr=je.getDesignTarget(Ke);dr.addClass("design"),sr&&je.initSizeByHtml(dr),Ke.append(dr)},br.prototype.createNewPage=function(Ke,je){var sr=new Ar(this.templateId,this.width,this.height,this.paperHeader,this.paperFooter,this.paperNumberLeft,this.paperNumberTop,this.paperNumberDisabled,this.paperNumberFormat,Ke,je);return sr.setFooter(this.firstPaperFooter,this.evenPaperFooter,this.oddPaperFooter,this.lastPaperFooter),sr.setOffset(this.leftOffset,this.topOffset),sr},br.prototype.orderPrintElements=function(){this.printElements=Ce.a.orderBy(this.printElements,function(Ke){return Ke.options.getLeft()}),this.printElements=Ce.a.orderBy(this.printElements,function(Ke){return Ke.options.getTop()})},br.prototype.fillPaperHeaderAndFooter=function(Ke,je,sr){this.printElements.filter(function(dr){return dr.isFixed()||dr.isHeaderOrFooter()}).forEach(function(dr){if(dr.isFixed(),dr.showInPage(Ke.index,sr)){var Pr=dr.getHtml(Ke,je);Pr.length&&Ke.append(Pr[0].target)}})},br.prototype.clear=function(){this.printElements.forEach(function(Ke){Ke.designTarget&&Ke.designTarget.length&&Ke.designTarget.remove()}),this.printElements=[]},br.prototype.insertPrintElementToPanel=function(Ke){var je=this.getPrintElementTypeByEntity(Ke);if(je){var sr=je.createPrintElement(Ke.options);sr.setTemplateId(this.templateId),sr.setPanel(this),this.printElements.push(sr)}},br.prototype.addPrintText=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="text",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintHtml=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="html",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintTable=function(Ke){if(Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="table",Ke.options&&Ke.options.columns){var je=$$g.extend({},Ke.options.columns);Ke.printElementType.columns=je.columns,je.columns=void 0}this.insertPrintElementToPanel(Ke)},br.prototype.addPrintImage=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="image",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintLongText=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="longText",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintVline=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="vline",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintHline=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="hline",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintRect=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="rect",this.insertPrintElementToPanel(Ke)},br.prototype.addPrintOval=function(Ke){Ke.printElementType=Ke.printElementType||{},Ke.printElementType.type="oval",this.insertPrintElementToPanel(Ke)},br.prototype.getPrintElementTypeByEntity=function(Ke){var je;return(je=Ke.tid?Te.instance.getElementType(Ke.tid):Tn.createPrintElementType(Ke.printElementType))||console.log("miss "+JSON.stringify(Ke)),je},br.prototype.getPrintStyle=function(){return` <style printStyle>
        @page
        {
             border:0;
             padding:0cm;
             margin:0cm;
             `+this.getPrintSizeStyle()+`
        }
        </style>
        `},br.prototype.getPrintSizeStyle=function(){return this.paperType?"size:"+this.paperType+" "+(this.height>this.width?"portrait":"landscape")+";":"size:"+this.width+"mm "+this.height+"mm "+(this.orient?this.orient==1?"portrait":"landscape":"")+";"},br.prototype.deletePrintElement=function(Ke){var je=this;this.printElements.filter(function(sr,dr){sr.id==Ke.id&&(Ke.delete(),je.printElements.splice(dr,1))})},br.prototype.getElementByTid=function(Ke){return this.printElements.filter(function(je){return je.printElementType.tid===Ke}).map(function(je,sr){return je})},br.prototype.getElementByName=function(Ke){return this.printElements.filter(function(je){return je.options.name===Ke}).map(function(je,sr){return je})},br.prototype.getFieldsInPanel=function(){var Ke=[];return this.printElements.forEach(function(je){je.options&&je.options.field?Ke.push(je.options.field):je.printElementType.field&&Ke.push(je.printElementType.field)}),Ke},br.prototype.bindBatchMoveElement=function(){var Ke=this;this.designPaper.getTarget().on("mousemove",function(je){xe.a.instance.draging||je.buttons===1&&(Ke.mouseRect.updateRect(je.pageX,je.pageY),Ke.updateRectPanel(Ke.mouseRect))}).on("mousedown",function(je){xe.a.instance.draging||(Ke.mouseRect&&Ke.mouseRect.target&&Ke.mouseRect.target.remove(),je.buttons===1&&(Ke.mouseRect=new Gn(je.pageX,je.pageY,xe.a.instance.dragLengthCNum(je.pageX-Ke.designPaper.getTarget().offset().left,Se.a.instance.movingDistance),xe.a.instance.dragLengthCNum(je.pageY-Ke.designPaper.getTarget().offset().top,Se.a.instance.movingDistance))))})},br.prototype.getElementInRect=function(Ke){var je=[];return this.printElements.forEach(function(sr){sr.inRect(Ke)&&je.push(sr)}),je},br.prototype.updateRectPanel=function(Ke){var je=this,sr=this.designPaper.getTarget();this.mouseRect.target||(this.mouseRect.target=$$g('<div tabindex="1" style="z-index:2;position: absolute;opacity:0.2;border: 1px dashed #000;background-color:#31676f;"><span></span></div>'),sr.find(".hiprint-printPaper-content").append(this.mouseRect.target),this.mouseRect.target.focus(),this.bingKeyboardMoveEvent(this.mouseRect.target),this.mouseRect.target.hidraggable({onDrag:function(Pr,jr,wn){je.mouseRect.lastLeft=je.mouseRect.lastLeft?je.mouseRect.lastLeft:jr,je.mouseRect.lastTop=je.mouseRect.lastTop?je.mouseRect.lastTop:wn,(je.mouseRect.mouseRectSelectedElement||[]).forEach(function(pn){pn.updatePositionByMultipleSelect(jr-je.mouseRect.lastLeft,wn-je.mouseRect.lastTop)}),je.mouseRect.lastLeft=jr,je.mouseRect.lastTop=wn},moveUnit:"pt",minMove:Se.a.instance.movingDistance,onBeforeDrag:function(Pr){je.mouseRect.target.focus(),xe.a.instance.draging=!0,je.mouseRect.mouseRectSelectedElement||(je.mouseRect.mouseRectSelectedElement=je.getElementInRect(je.mouseRect))},onStopDrag:function(Pr){xe.a.instance.draging=!1}})),this.mouseRect.target.css({height:Ke.maxY-Ke.minY+"px",width:Ke.maxX-Ke.minX+"px",left:Ke.lastLeft+"pt",top:Ke.lastTop+"pt"})},br.prototype.bingKeyboardMoveEvent=function(Ke){var je=this;Ke.attr("tabindex","1"),Ke.keydown(function(sr){je.mouseRect.mouseRectSelectedElement||(je.mouseRect.mouseRectSelectedElement=je.getElementInRect(je.mouseRect));var dr=je.mouseRect.mouseRectSelectedElement||[];switch(sr.keyCode){case 37:je.mouseRect.updatePositionByMultipleSelect(0-Se.a.instance.movingDistance,0),dr.forEach(function(Pr){Pr.updatePositionByMultipleSelect(0-Se.a.instance.movingDistance,0)}),sr.preventDefault();break;case 38:je.mouseRect.updatePositionByMultipleSelect(0,0-Se.a.instance.movingDistance),dr.forEach(function(Pr){Pr.updatePositionByMultipleSelect(0,0-Se.a.instance.movingDistance)}),sr.preventDefault();break;case 39:je.mouseRect.updatePositionByMultipleSelect(Se.a.instance.movingDistance,0),dr.forEach(function(Pr){Pr.updatePositionByMultipleSelect(Se.a.instance.movingDistance,0)}),sr.preventDefault();break;case 40:je.mouseRect.updatePositionByMultipleSelect(0,Se.a.instance.movingDistance),dr.forEach(function(Pr){Pr.updatePositionByMultipleSelect(0,Se.a.instance.movingDistance)}),sr.preventDefault()}})},br}(),ti=function(){return function(br){if(br)if(br.panels){this.panels=[];for(var Ke=0;Ke<br.panels.length;Ke++)this.panels.push(new Rn(br.panels[Ke]))}else this.panels=[]}}(),Ai=Ae(9),yi=function(){function br(Ke,je){var sr=this;this.printElementOptionSettingPanel={},this.printTemplate=Ke,this.settingContainer=$$g(je),Ce.a.event.on(Ke.getPrintElementSelectEventKey(),function(dr){sr.buildSetting(dr)}),Ce.a.event.on(Ke.getBuildCustomOptionSettingEventKey(),function(dr){sr.buildSettingByCustomOptions(dr)})}return br.prototype.init=function(){},br.prototype.buildSetting=function(Ke){var je=this,sr=this,dr=Ke.printElement,Pr=Ke.customOptionsInput;this.lastPrintElement&&this.lastPrintElement.getPrintElementOptionItems().forEach(function(Pn){Pn.destroy()}),this.lastPrintElement=void 0,this.settingContainer.html("");var jr=$$g('<div class="hiprint-option-items"></div>');dr.getPrintElementOptionItems().forEach(function(Pn){Pn.submit=function(ke){dr.submitOption()};var Xe=Pn.createTarget(dr,dr.options,dr.printElementType);je.printElementOptionSettingPanel[Pn.name]=Xe,jr.append(Xe),Pn.setValue(dr.options[Pn.name],dr.options,dr.printElementType)});var wn=$$g(`<button class="hiprint-option-item-settingBtn hiprint-option-item-submitBtn"
        type="button">确定</button>`),pn=$$g(`<button  class="hiprint-option-item-settingBtn hiprint-option-item-deleteBtn"
        type="button">删除</button>`);jr.append(wn),jr.append(pn),wn.bind("click.submitOption",function(){dr.submitOption()}),pn.bind("click.deleteBtn",function(){sr.printTemplate.deletePrintElement(dr)}),jr.find(".auto-submit").change(function(Pn){dr.submitOption()}),jr.find(".auto-submit:input").bind("keydown.submitOption",function(Pn){Pn.keyCode==13&&dr.submitOption()}),this.settingContainer.append(jr),Pr&&Pr.forEach(function(Pn){var Xe=Pn.callback;Pn.callback=function(ke){Xe&&(Xe(ke),dr.submitOption())},je.buildSettingByCustomOptions(Pn,je.settingContainer)}),this.lastPrintElement=dr},br.prototype.buildSettingByCustomOptions=function(Ke,je){var sr=this;this.lastPrintElement&&this.lastPrintElement.getPrintElementOptionItems().forEach(function(pn){pn.destroy()}),this.lastPrintElement=void 0;var dr=je||this.settingContainer;je||this.settingContainer.html("");var Pr=[];Ke.optionItems?Pr=Ke.optionItems:Object.keys(Ke.options).forEach(function(pn){var Pn=Ai.a.getItem(pn);Pn&&Pr.push(Pn)});var jr=$$g('<div class="hiprint-option-items"></div>');Ke.title&&jr.append(`<div class="hiprint-option-item hiprint-option-item-row">
            <div class="hiprint-option-item-label hiprint-option-title">
              `+Ke.title+`
            </div>
        </div>`),Pr.forEach(function(pn){pn.submit=function(Pn){Ke.callback(sr.getValueByOptionItems(Pr))},jr.append(pn.createTarget(void 0,Ke.options,void 0)),pn.setValue(Ke.options[pn.name],Ke.options,void 0)});var wn=$$g(`<button class="hiprint-option-item-settingBtn hiprint-option-item-submitBtn"
        type="button">确定</button>`);jr.append(wn),wn.bind("click.submitOption",function(){Ke.callback(sr.getValueByOptionItems(Pr))}),jr.find(".auto-submit").change(function(pn){Ke.callback(sr.getValueByOptionItems(Pr))}),jr.find(".auto-submit:input").bind("keydown.submitOption",function(pn){pn.keyCode==13&&Ke.callback(sr.getValueByOptionItems(Pr))}),dr.append(jr)},br.prototype.getValueByOptionItems=function(Ke){var je={};return Ke.forEach(function(sr){je[sr.name]=sr.getValue()}),je},br}(),Bi=function(){function br(Ke,je){this.paginationContainer=Ke,this.jqPaginationContainer=$$g(this.paginationContainer),this.template=je}return br.prototype.buildPagination=function(Ke){var je=this.template.getPaneltotal(),sr=this;this.jqPaginationContainer.html("");for(var dr=$$g('<ul class="hiprint-pagination"></ul>'),Pr=function(){var Pn=jr,Xe=$$g("<li><span>"+(Pn+1)+'</span><a href="javascript:void(0);">x</a></li>');Xe.find("span").click(function(){sr.template.selectPanel(Pn),Xe.removeClass("selected"),$$g(this).parent("li").addClass("selected")}),Xe.find("a").click(function(){sr.template.deletePanel(Pn),sr.buildPagination()}),dr.append(Xe)},jr=0;jr<je;jr++)Pr();var wn=$$g("<li><span>+</span></li>");dr.append(wn),this.jqPaginationContainer.append(dr),wn.click(function(){sr.template.addPrintPanel(void 0,!0),sr.buildPagination()})},br}(),ei=function(){function br(Ke){var je=this;this.tempimageBase64={},this.id=xe.a.instance.guid(),xe.a.instance.setPrintTemplateById(this.id,this);var sr=Ke||{};this.printPanels=[];var dr=new ti(sr.template||[]);sr.template&&dr.panels.forEach(function(Pr){je.printPanels.push(new Kn(Pr,je.id))}),sr.fields&&(this.fields=sr.fields),sr.settingContainer&&new yi(this,sr.settingContainer),sr.paginationContainer&&(this.printPaginationCreator=new Bi(sr.paginationContainer,this),this.printPaginationCreator.buildPagination()),this.initAutoSave()}return br.prototype.design=function(Ke,je){var sr=this;if(je||(je={}),this.printPanels.length==0){var dr=this.createDefaultPanel();this.printPanels.push(dr)}if(!Ke)throw new Error("options.container can not be empty");this.createContainer(Ke),this.printPanels.forEach(function(Pr,jr){sr.container.append(Pr.getTarget()),jr>0&&Pr.disable(),Pr.design(je)}),this.selectPanel(0)},br.prototype.getSimpleHtml=function(Ke,je){var sr=this;je||(je={});var dr=$$g('<div class="hiprint-printTemplate"></div>');return Ke&&Ke.constructor===Array?Ke.forEach(function(Pr){Pr&&sr.printPanels.forEach(function(jr,wn){dr.append(jr.getHtml(Pr,je))})}):this.printPanels.forEach(function(Pr,jr){dr.append(Pr.getHtml(Ke,je))}),je&&je.imgToBase64&&this.transformImg(dr.find("img")),dr},br.prototype.getHtml=function(Ke,je){return Ke||(Ke={}),this.getSimpleHtml(Ke,je)},br.prototype.getJointHtml=function(Ke,je,sr){var dr=$$g('<div class="hiprint-printTemplate"></div>'),Pr=[];return this.printPanels.forEach(function(jr,wn){dr.append(jr.getHtml(Ke,je,Pr,void 0,sr))}),dr},br.prototype.setPaper=function(Ke,je){if(/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/.test(Ke))this.editingPanel.resize(void 0,parseFloat(Ke),parseFloat(je),!1);else{var sr=xe.a.instance[Ke];if(!sr)throw new Error("not found pagetype:"+(Ke||""));this.editingPanel.resize(Ke,sr.width,sr.height,!1)}},br.prototype.rotatePaper=function(){this.editingPanel.rotatePaper()},br.prototype.addPrintPanel=function(Ke,je){var sr=Ke?new Kn(new Rn(Ke),this.id):this.createDefaultPanel();return Ke&&(Ke.index=this.printPanels.length),je&&(this.container.append(sr.getTarget()),sr.design()),this.printPanels.push(sr),je&&this.selectPanel(sr.index),sr},br.prototype.selectPanel=function(Ke){var je=this;this.printPanels.forEach(function(sr,dr){Ke==dr?(sr.enable(),je.editingPanel=sr):sr.disable()})},br.prototype.deletePanel=function(Ke){this.printPanels[Ke].clear(),this.printPanels[Ke].getTarget().remove(),this.printPanels.splice(Ke,1)},br.prototype.getPaneltotal=function(){return this.printPanels.length},br.prototype.createDefaultPanel=function(){return new Kn(new Rn({index:this.printPanels.length,paperType:"A4"}),this.id)},br.prototype.createContainer=function(Ke){Ke?(this.container=$$g(Ke),this.container.addClass("hiprint-printTemplate")):this.container=$$g('<div class="hiprint-printTemplate"></div>')},br.prototype.getJsonTid=function(){var Ke=[];return this.printPanels.forEach(function(je){je.getPanelEntity().printElements.length&&Ke.push(je.getPanelEntity())}),new ti({panels:Ke})},br.prototype.getJson=function(){var Ke=[];return this.printPanels.forEach(function(je){Ke.push(je.getPanelEntity(!0))}),new ti({panels:Ke})},br.prototype.getPrintElementSelectEventKey=function(){return"PrintElementSelectEventKey_"+this.id},br.prototype.getBuildCustomOptionSettingEventKey=function(){return"BuildCustomOptionSettingEventKey_"+this.id},br.prototype.clear=function(){this.printPanels.forEach(function(Ke){if(Ke.clear(),Ke.index>0){var je=Ke.getTarget();je&&je.length&&je.remove()}}),this.printPanels=[this.printPanels[0]],this.printPaginationCreator&&this.printPaginationCreator.buildPagination()},br.prototype.getPaperType=function(Ke){return this.printPanels[0].paperType},br.prototype.getOrient=function(Ke){return Ke==null&&(Ke=0),this.printPanels[Ke].height>this.printPanels[Ke].width?1:2},br.prototype.getPrintStyle=function(Ke){return this.printPanels[Ke].getPrintStyle()},br.prototype.print=function(Ke,je){Ke||(Ke={}),this.getHtml(Ke,je).hiwprint()},br.prototype.print2=function(Ke,je){if(Ke||(Ke={}),je||(je={}),this.clientIsOpened()){var sr=this,dr="";if(je.styleHandler)dr+=je.styleHandler();else{if(!window.__VUE_HOT_MAP__){var Pr=$$g("link").toArray().filter(wn=>wn.href.includes("css/app")&&wn.rel==="stylesheet");Pr.forEach(wn=>{dr+=wn.outerHTML})}var jr=$$g("style").toArray().filter(wn=>wn.innerHTML.includes(".hiprint"));jr.forEach(wn=>{dr+=wn.outerHTML})}sr.sentToClient(dr,Ke,je)}else alert("连接客户端失败")},br.prototype.imageToBase64=function(Ke){var je=$$g(Ke).attr("src");if(je.indexOf("base64")==-1)try{if(!this.tempimageBase64[je]){var sr=document.createElement("canvas"),dr=new Image;dr.src=Ke.attr("src"),sr.width=dr.width,sr.height=dr.height,sr.getContext("2d").drawImage(dr,0,0),je&&(this.tempimageBase64[je]=sr.toDataURL("image/png"))}Ke.attr("src",this.tempimageBase64[je])}catch{try{this.xhrLoadImage(Ke)}catch(jr){console.log(jr)}}},br.prototype.xhrLoadImage=function(Ke){},br.prototype.sentToClient=function(Ke,je,sr){je||(je={});var dr=$$g.extend({},sr||{});dr.imgToBase64=!0;var Pr=Ke+this.getHtml(je,dr)[0].outerHTML;dr.id=xe.a.instance.guid(),dr.html=Pr,dr.templateId=this.id,hiwebSocket.send(dr)},br.prototype.printByHtml=function(Ke){$$g(Ke).hiwprint()},br.prototype.printByHtml2=function(Ke,je){if(je||(je={}),this.clientIsOpened()){var sr=this,dr=0,Pr={},jr=$$g("link[media=print]").length>0?$$g("link[media=print]"):$$g("link");jr.each(function(wn,pn){var Pn=new XMLHttpRequest;Pn.open("GET",$$g(pn).attr("href")),Pn.onreadystatechange=function(){if(Pn.readyState===4&&Pn.status===200&&(Pr[wn+""]='<style rel="stylesheet" type="text/css">'+Pn.responseText+"</style>",++dr==jr.length)){for(var Xe="",ke=0;ke<jr.length;ke++)Xe+=Pr[ke+""];var Wr=Xe+$$g(Ke)[0].outerHTML,bn=$$g.extend({},je||{});bn.id=xe.a.instance.guid(),bn.html=Wr,bn.templateId=sr.id,hiwebSocket.send(bn)}},Pn.send()})}else alert("连接客户端失败")},br.prototype.deletePrintElement=function(Ke){this.printPanels.forEach(function(je){je.deletePrintElement(Ke)})},br.prototype.transformImg=function(Ke){var je=this;Ke.map(function(sr,dr){je.imageToBase64($$g(dr))})},br.prototype.toPdf=function(Ke,je,sr){var dr=this;if(this.printPanels.length){var Pr=Ce.a.mm.toPt(this.printPanels[0].width),jr=Ce.a.mm.toPt(this.printPanels[0].height),wn=$$g.extend({scale:2,width:Ce.a.pt.toPx(Pr),x:0,y:0,useCORS:!0},sr||{}),pn=new E$1({orientation:this.getOrient(0)==1?"portrait":"landscape",unit:"pt",format:this.printPanels[0].paperType?this.printPanels[0].paperType.toLocaleLowerCase():[Pr,jr]}),Pn=this.getHtml(Ke,sr);this.createTempContainer();var Xe=this.getTempContainer();this.svg2canvas(Pn),Xe.html(Pn[0]);var ke=Xe.find(".hiprint-printPanel .hiprint-printPaper").length;$$g(Pn).css("position:fixed"),html2canvas(Pn[0],wn).then(function(Wr){var bn=Wr.getContext("2d");bn.mozImageSmoothingEnabled=!1,bn.webkitImageSmoothingEnabled=!1,bn.msImageSmoothingEnabled=!1,bn.imageSmoothingEnabled=!1;for(var Jn=Wr.toDataURL("image/jpeg"),pi=0;pi<ke;pi++)pn.addImage(Jn,"JPEG",0,0-pi*jr,Pr,ke*jr),pi<ke-1&&pn.addPage();dr.removeTempContainer(),je.indexOf(".pdf")>-1?pn.save(je):pn.save(je+".pdf")})}},br.prototype.createTempContainer=function(){this.removeTempContainer(),$$g("body").prepend($$g('<div class="hiprint_temp_Container" style="overflow:hidden;height: 0px;box-sizing: border-box;"></div>'))},br.prototype.removeTempContainer=function(){$$g(".hiprint_temp_Container").remove()},br.prototype.getTempContainer=function(){return $$g(".hiprint_temp_Container")},br.prototype.svg2canvas=function(Ke){Ke.find("svg").each(function(je,sr){var dr=sr.parentNode,Pr=document.createElement("canvas"),jr=new XMLSerializer().serializeToString(sr);canvg(Pr,jr),$$g(sr).before(Pr),dr.removeChild(sr),$$g(Pr).css("width","100%"),$$g(Pr).css("height","100%")})},br.prototype.on=function(Ke,je){Ce.a.event.on(Ke+"_"+this.id,je)},br.prototype.clientIsOpened=function(){return hiwebSocket.opened},br.prototype.getPrinterList=function(){var Ke=hiwebSocket.getPrinterList();return Ke||[]},br.prototype.getElementByTid=function(Ke,je){return je==null&&(je=0),this.printPanels[je].getElementByTid(Ke)},br.prototype.getElementByName=function(Ke,je){return je==null&&(je=0),this.printPanels[je].getElementByName(Ke)},br.prototype.getPanel=function(Ke){return Ke==null&&(Ke=0),this.printPanels[Ke]},br.prototype.loadAllImages=function(Ke,je,sr){var dr=this;sr==null&&(sr=0);for(var Pr=Ke[0].getElementsByTagName("img"),jr=!0,wn=0;wn<Pr.length;wn++){var pn=Pr[wn];pn.src&&pn.src!==window.location.href&&pn.src.indexOf("base64")==-1&&(pn&&pn.naturalWidth!==void 0&&pn.naturalWidth!==0&&pn.complete||(jr=!1))}sr++,!jr&&sr<10?setTimeout(function(){dr.loadAllImages(Ke,je,sr)},500):je()},br.prototype.setFields=function(Ke){this.fields=Ke},br.prototype.getFields=function(){return this.fields},br.prototype.getFieldsInPanel=function(){var Ke=[];return this.printPanels.forEach(function(je){Ke=Ke.concat(je.getFieldsInPanel())}),Ke},br.prototype.initAutoSave=function(){var Ke=this;this.autoSave&&Ce.a.event.on("hiprintTemplateDataChanged_"+this.id,function(){hiLocalStorage.saveLocalData(Ke.autoSaveKey||"hiprintAutoSave",JSON.stringify(Ke.autoSaveMode==1?Ke.getJson():Ke.getJsonTid()))})},br}();function ci(br){this.getHtml(br).hiwprint()}function Qn(br,Ke,je){$$g.extend({},br||{}).imgToBase64=!0;var sr=new ei({});sr.on("printSuccess",Ke),sr.on("printError",je),sr.printByHtml2(this.getHtml(br),br.options)}function Ii(br){var Ke=void 0;return br&&br.templates.forEach(function(je,sr){var dr=$$g.extend({},je.options||{});br.imgToBase64&&(dr.imgToBase64=!0),Ke?Ke.append(je.template.getHtml(je.data,dr).html()):Ke=je.template.getHtml(je.data,dr)}),Ke}function gi(br){Se.a.instance.init(br),Se.a.instance.providers.forEach(function(Ke){Ke.addElementTypes(Te.instance)})}Ae.d(St,"init",function(){return gi}),Ae.d(St,"PrintElementTypeManager",function(){return $n}),Ae.d(St,"PrintElementTypeGroup",function(){return Dn}),Ae.d(St,"PrintTemplate",function(){return ei}),Ae.d(St,"print",function(){return ci}),Ae.d(St,"print2",function(){return Qn}),Ae.d(St,"getHtml",function(){return Ii}),$$g(document).ready(function(){hiwebSocket.hasIo()&&hiwebSocket.start()})}]),defaultElementTypeProvider=defaultTypeProvider(hiprint);/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=(Be,St)=>{let Ae=Be.__vccOpts||Be;for(let[Ee,Ce]of St)Ae[Ee]=Ce;return Ae},delete_vue_vue_type_script_lang_default={name:"Delete"},_hoisted_180={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_280=vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80(Be,St,Ae,Ee,Ce,_e){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_180,_hoisted_379)}var delete_default=export_helper_default(delete_vue_vue_type_script_lang_default,[["render",_sfc_render80],["__file","delete.vue"]]),document_vue_vue_type_script_lang_default={name:"Document"},_hoisted_190={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_290=vue.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_389=[_hoisted_290];function _sfc_render90(Be,St,Ae,Ee,Ce,_e){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_190,_hoisted_389)}var document_default=export_helper_default(document_vue_vue_type_script_lang_default,[["render",_sfc_render90],["__file","document.vue"]]),printer_vue_vue_type_script_lang_default={name:"Printer"},_hoisted_1208={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2208=vue.createElementVNode("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"},null,-1),_hoisted_3207=[_hoisted_2208];function _sfc_render208(Be,St,Ae,Ee,Ce,_e){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1208,_hoisted_3207)}var printer_default=export_helper_default(printer_vue_vue_type_script_lang_default,[["render",_sfc_render208],["__file","printer.vue"]]),refresh_vue_vue_type_script_lang_default={name:"Refresh"},_hoisted_1217={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2217=vue.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),_hoisted_3216=[_hoisted_2217];function _sfc_render217(Be,St,Ae,Ee,Ce,_e){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1217,_hoisted_3216)}var refresh_default=export_helper_default(refresh_vue_vue_type_script_lang_default,[["render",_sfc_render217],["__file","refresh.vue"]]),tickets_vue_vue_type_script_lang_default={name:"Tickets"},_hoisted_1261={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2261=vue.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_3260=[_hoisted_2261];function _sfc_render261(Be,St,Ae,Ee,Ce,_e){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1261,_hoisted_3260)}var tickets_default=export_helper_default(tickets_vue_vue_type_script_lang_default,[["render",_sfc_render261],["__file","tickets.vue"]]),view_vue_vue_type_script_lang_default={name:"View"},_hoisted_1283={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2283=vue.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3282=[_hoisted_2283];function _sfc_render283(Be,St,Ae,Ee,Ce,_e){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1283,_hoisted_3282)}var view_default=export_helper_default(view_vue_vue_type_script_lang_default,[["render",_sfc_render283],["__file","view.vue"]]);const index_vue_vue_type_style_index_0_scoped_03cf0f0e_lang="",_export_sfc=(Be,St)=>{const Ae=Be.__vccOpts||Be;for(const[Ee,Ce]of St)Ae[Ee]=Ce;return Ae},_sfc_main={name:"PrintDesign",componentName:"PrintDesign",props:{tempJson:Object,custFields:Array,tempData:Array},data(){return{Delete:delete_default,View:view_default,Refresh:refresh_default,Document:document_default,Tickets:tickets_default,Printer:printer_default,hiprintTemplate:null,printData:this.tempData?this.tempData:customData,customPrintJson:this.tempJson?this.tempJson:customPrintJson,previewDialogStatus:!1,paramsDrawerStatus:!1,infoDialogStatus:!1,infoTextarea:"",infoDialogTitle:"",paramsDrawerTitle:"",paperMap:{A3:{width:420,height:296.6},A4:{width:210,height:296.6},A5:{width:210,height:147.6},B3:{width:500,height:352.6},B4:{width:250,height:352.6},B5:{width:250,height:175.6}},currentPaper:{width:null,height:null},otherPaper:{width:"",height:""}}},mounted(){this.createTemp()},computed:{currentPaperType(){let Be=null;if(this.otherPaper.width!==""&&this.otherPaper.height!=="")Be="other";else for(const St in this.paperMap){const Ae=this.paperMap[St],{width:Ee,height:Ce}=this.currentPaper;Ae.width===Ee&&Ae.height===Ce&&(Be=St)}return Be}},methods:{setCurrentPaper(Be){const{width:St,height:Ae}=Be;this.currentPaper.width=St,this.currentPaper.height=Ae},setPaper(Be,St,Ae){try{Be==="other"?St===""&&Ae===""?(this.hiprintTemplate.setPaper("A4",null),this.setCurrentPaper(this.paperMap.A4),this.otherPaper={width:"",height:""}):(this.hiprintTemplate.setPaper(St,Ae),this.setCurrentPaper({width:St,height:Ae})):(this.hiprintTemplate.setPaper(Be,null),this.setCurrentPaper(this.paperMap[Be]),this.otherPaper={width:"",height:""})}catch(Ee){this.$message({message:"操作失败:"+Ee,type:"error"})}},rotatePaper(){try{this.hiprintTemplate.rotatePaper()}catch(Be){this.$message({message:"操作失败:"+Be,type:"error"})}},clearTemplate(){try{this.hiprintTemplate.clear()}catch(Be){this.$message({message:"操作失败:"+Be,type:"error"})}},previewTemplate(){this.previewDialogStatus=!0},handlePreviewOpened(Be){$$g("#preview_content").html(this.hiprintTemplate.getHtml(Be))},printTemplate(Be){this.hiprintTemplate.print(Be)},elementAddEventListen(){const Be=this;window.hinnn.event.on(this.hiprintTemplate.getPrintElementSelectEventKey(),function(St){Be.paramsDrawerTitle=St.printElement.printElementType.title,Be.paramsDrawerStatus=!0})},handleParamsOpened(){$$g("#params_content").append($$g(".hinnn-layout-sider"))},getJson(){this.infoTextarea=JSON.stringify(this.hiprintTemplate.getJson()),this.infoDialogTitle="预览JSON",this.infoDialogStatus=!0},getHtml(Be){this.infoTextarea=this.hiprintTemplate.getHtml(Be)[0].outerHTML,this.infoDialogTitle="预览HTML",this.infoDialogStatus=!0},getDay(Be){var St=new Date,Ae=St.getTime()+1e3*60*60*24*Be;St.setTime(Ae);var Ee=St.getFullYear(),Ce=St.getMonth(),_e=St.getDate();Ce=this.doHandleMonth(Ce+1),_e=this.doHandleMonth(_e);var Te=St.getHours(),Se=St.getMinutes(),xe=St.getSeconds();return Ee+"-"+Ce+"-"+_e+" "+Te+":"+Se+":"+xe},doHandleMonth(Be){var St=Be;return Be.toString().length===1&&(St="0"+Be),St},createTemp(){var Be=defaultTypeProvider(hiprint,this.custFields);const St=this;hiprint.init({providers:[new Be]}),hiprint.PrintElementTypeManager.buildByHtml($$g(".ep-draggable-item")),this.hiprintTemplate=new hiprint.PrintTemplate({template:this.customPrintJson,settingContainer:"#PrintElementOptionSetting",paginationContainer:".hiprint-printPagination"}),this.hiprintTemplate.design("#hiprint-printTemplate"),St.setCurrentPaper(St.paperMap.A4),St.elementAddEventListen(),$$g(".params_drawer").width($$g(".params_setting_container").width()*1)}}},_withScopeId=Be=>(vue.pushScopeId("data-v-03cf0f0e"),Be=Be(),vue.popScopeId(),Be),_hoisted_1={class:"print_template_container"},_hoisted_2=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.text",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-text-width","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"文本")])],-1)),_hoisted_3=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.image",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-picture","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"图片")])],-1)),_hoisted_4=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.longText"},[vue.createElementVNode("span",{class:"glyphicon glyphicon-subscript","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"长文")])],-1)),_hoisted_5=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.tableCustom",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-th","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"表格")])],-1)),_hoisted_6=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.hline",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-resize-horizontal","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"横线")])],-1)),_hoisted_7=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.vline",style:""},[vue.createElementVNode("span",{class:"glyphicon glyphicon-resize-vertical","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"竖线")])],-1)),_hoisted_8=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.rect"},[vue.createElementVNode("span",{class:"glyphicon glyphicon-unchecked","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"矩形")])],-1)),_hoisted_9=_withScopeId(()=>vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:"defaultModule.oval"},[vue.createElementVNode("span",{class:"glyphicon glyphicon-record","aria-hidden":"true"}),vue.createElementVNode("p",{class:"glyphicon-class"},"椭圆")])],-1)),_hoisted_10={key:0},_hoisted_11=["tid"],_hoisted_12={class:"glyphicon-class"},_hoisted_13=_withScopeId(()=>vue.createElementVNode("div",{id:"PrintElementOptionSetting"},null,-1)),_hoisted_14=_withScopeId(()=>vue.createElementVNode("div",{id:"params_content"},null,-1)),_hoisted_15=_withScopeId(()=>vue.createElementVNode("div",{id:"preview_content"},null,-1)),_hoisted_16={class:"dialog-footer"},_hoisted_17={class:"dialog-footer"};function _sfc_render(Be,St,Ae,Ee,Ce,_e){const Te=vue.resolveComponent("el-row"),Se=vue.resolveComponent("el-col"),xe=vue.resolveComponent("el-aside"),Ie=vue.resolveComponent("el-button"),Ue=vue.resolveComponent("el-button-group"),$e=vue.resolveComponent("el-input"),Me=vue.resolveComponent("el-form-item"),Re=vue.resolveComponent("el-form"),ze=vue.resolveComponent("el-popover"),Ve=vue.resolveComponent("el-header"),nr=vue.resolveComponent("el-drawer"),Ze=vue.resolveComponent("el-main"),ar=vue.resolveComponent("el-container"),fr=vue.resolveComponent("el-dialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.createVNode(ar,{class:"print_template_main",style:{height:"100vh"}},{default:vue.withCtx(()=>[vue.createVNode(xe,{class:"hi-aside"},{default:vue.withCtx(()=>[vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24,class:"rect-printElement-types hiprintEpContainer"},{default:vue.withCtx(()=>[vue.createVNode(Te,{class:"drag_item_title"},{default:vue.withCtx(()=>[vue.createTextVNode("拖拽组件列表")]),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box"},{default:vue.withCtx(()=>[_hoisted_2]),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>[_hoisted_3]),_:1})]),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>[_hoisted_4]),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>[_hoisted_5]),_:1})]),_:1}),vue.createVNode(Te,{class:"drag_item_title"},{default:vue.withCtx(()=>[vue.createTextVNode("辅助")]),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>[_hoisted_6]),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>[_hoisted_7]),_:1})]),_:1}),vue.createVNode(Te,{style:{height:"100px"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>[_hoisted_8]),_:1}),vue.createVNode(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text"},{default:vue.withCtx(()=>[_hoisted_9]),_:1})]),_:1}),Ae.custFields&&Ae.custFields.length>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10,[vue.createVNode(Te,{class:"drag_item_title"},{default:vue.withCtx(()=>[vue.createTextVNode("数据字段")]),_:1}),vue.createVNode(Te,{style:{height:"42px"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Ae.custFields,(Ye,Ar)=>(vue.openBlock(),vue.createBlock(Se,{span:12,class:"drag_item_box",tid:"defaultModule.text",key:Ar},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createElementVNode("a",{class:"ep-draggable-item",tid:Ye.tid},[vue.createElementVNode("p",_hoisted_12,vue.toDisplayString(Ye.title),1)],8,_hoisted_11)])]),_:2},1024))),128))]),_:1})])):vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),vue.createVNode(ar,null,{default:vue.withCtx(()=>[vue.createVNode(Ve,{class:"hi-header"},{default:vue.withCtx(()=>[vue.createVNode(Te,{style:{height:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24,style:{height:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Ie,{type:_e.currentPaperType==="A3"?"primary":"info",onClick:St[0]||(St[0]=Ye=>_e.setPaper("A3"))},{default:vue.withCtx(()=>[vue.createTextVNode("A3")]),_:1},8,["type"]),vue.createVNode(Ie,{type:_e.currentPaperType==="A4"?"primary":"info",onClick:St[1]||(St[1]=Ye=>_e.setPaper("A4"))},{default:vue.withCtx(()=>[vue.createTextVNode("A4")]),_:1},8,["type"]),vue.createVNode(Ie,{type:_e.currentPaperType==="A5"?"primary":"info",onClick:St[2]||(St[2]=Ye=>_e.setPaper("A5"))},{default:vue.withCtx(()=>[vue.createTextVNode("A5")]),_:1},8,["type"]),vue.createVNode(Ie,{type:_e.currentPaperType==="B3"?"primary":"info",onClick:St[3]||(St[3]=Ye=>_e.setPaper("B3"))},{default:vue.withCtx(()=>[vue.createTextVNode("B3")]),_:1},8,["type"]),vue.createVNode(Ie,{type:_e.currentPaperType==="B4"?"primary":"info",onClick:St[4]||(St[4]=Ye=>_e.setPaper("B4"))},{default:vue.withCtx(()=>[vue.createTextVNode("B4")]),_:1},8,["type"]),vue.createVNode(Ie,{type:_e.currentPaperType==="B5"?"primary":"info",onClick:St[5]||(St[5]=Ye=>_e.setPaper("B5"))},{default:vue.withCtx(()=>[vue.createTextVNode("B5")]),_:1},8,["type"])]),_:1}),vue.createVNode(ze,{width:"200px",placement:"bottom",title:"请输入自定义纸张宽高",trigger:"click"},{reference:vue.withCtx(()=>[vue.createVNode(Ie,{type:_e.currentPaperType==="other"?"primary":"info"},{default:vue.withCtx(()=>[vue.createTextVNode("自定义纸张")]),_:1},8,["type"])]),default:vue.withCtx(()=>[vue.createVNode(Re,{ref:"otherPaperForm","label-position":"left",model:Ce.otherPaper,"label-width":"30px"},{default:vue.withCtx(()=>[vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24},{default:vue.withCtx(()=>[vue.createVNode(Me,{label:"宽"},{default:vue.withCtx(()=>[vue.createVNode($e,{modelValue:Ce.otherPaper.width,"onUpdate:modelValue":St[6]||(St[6]=Ye=>Ce.otherPaper.width=Ye)},{append:vue.withCtx(()=>[vue.createTextVNode("mm")]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:24},{default:vue.withCtx(()=>[vue.createVNode(Me,{label:"高"},{default:vue.withCtx(()=>[vue.createVNode($e,{modelValue:Ce.otherPaper.height,"onUpdate:modelValue":St[7]||(St[7]=Ye=>Ce.otherPaper.height=Ye)},{append:vue.withCtx(()=>[vue.createTextVNode("mm")]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{span:12},{default:vue.withCtx(()=>[vue.createVNode(Ie,{type:"primary",onClick:St[8]||(St[8]=Ye=>_e.setPaper("other",Ce.otherPaper.width,Ce.otherPaper.height))},{default:vue.withCtx(()=>[vue.createTextVNode(" 确定 ")]),_:1})]),_:1}),vue.createVNode(Se,{span:12},{default:vue.withCtx(()=>[vue.createVNode(Ie,{onClick:St[9]||(St[9]=Ye=>_e.setPaper("other","",""))},{default:vue.withCtx(()=>[vue.createTextVNode("清空")]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Ie,{type:"info",icon:Ce.Refresh,onClick:_e.rotatePaper},{default:vue.withCtx(()=>[vue.createTextVNode("旋转")]),_:1},8,["icon","onClick"]),vue.createVNode(Ie,{type:"info",icon:Ce.Delete,onClick:_e.clearTemplate},{default:vue.withCtx(()=>[vue.createTextVNode("清空")]),_:1},8,["icon","onClick"])]),_:1}),vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Ie,{type:"info",icon:Ce.View,onClick:St[10]||(St[10]=Ye=>_e.previewTemplate())},{default:vue.withCtx(()=>[vue.createTextVNode("快速预览")]),_:1},8,["icon"]),vue.createVNode(Ie,{type:"info",icon:Ce.Document,onClick:St[11]||(St[11]=Ye=>_e.getJson())},{default:vue.withCtx(()=>[vue.createTextVNode("预览JSON")]),_:1},8,["icon"]),vue.createVNode(Ie,{type:"info",icon:Ce.Tickets,onClick:St[12]||(St[12]=Ye=>_e.getHtml(Ce.printData))},{default:vue.withCtx(()=>[vue.createTextVNode("预览HTML")]),_:1},8,["icon"])]),_:1}),vue.createVNode(Ue,null,{default:vue.withCtx(()=>[vue.createVNode(Ie,{type:"info",icon:Ce.Printer,onClick:St[13]||(St[13]=Ye=>_e.printTemplate(Ce.printData))},{default:vue.withCtx(()=>[vue.createTextVNode("打印")]),_:1},8,["icon"])]),_:1}),vue.renderSlot(Be.$slots,"customButton",{},void 0,!0)]),_:3})]),_:3})]),_:3}),vue.createVNode(Ze,{class:"hi-main"},{default:vue.withCtx(()=>[vue.createVNode(Te,null,{default:vue.withCtx(()=>[vue.createVNode(Se,{style:{padding:"20px"},span:18,id:"hiprint-printTemplate",class:"hiprint-printTemplate"}),vue.createVNode(Se,{span:6,style:{display:"none"},class:"params_setting_container"},{default:vue.withCtx(()=>[vue.createVNode(Te,{class:"hinnn-layout-sider",style:{padding:"10px"}},{default:vue.withCtx(()=>[_hoisted_13]),_:1})]),_:1})]),_:1}),vue.createVNode(nr,{size:"100%",class:"params_drawer",title:Ce.paramsDrawerTitle,"modal-class":"print-drawer",onOpened:_e.handleParamsOpened,modelValue:Ce.paramsDrawerStatus,"onUpdate:modelValue":St[14]||(St[14]=Ye=>Ce.paramsDrawerStatus=Ye)},{title:vue.withCtx(()=>[vue.createElementVNode("h4",null,"参数设置: "+vue.toDisplayString(Ce.paramsDrawerTitle),1)]),default:vue.withCtx(()=>[_hoisted_14]),_:1},8,["title","onOpened","modelValue"])]),_:1})]),_:3})]),_:3}),vue.createVNode(fr,{class:"preview_dialog",ref:"previewDialog",title:"快速预览",onOpened:St[17]||(St[17]=Ye=>_e.handlePreviewOpened(Ce.printData)),width:Ce.currentPaper.width*1+"mm",modelValue:Ce.previewDialogStatus,"onUpdate:modelValue":St[18]||(St[18]=Ye=>Ce.previewDialogStatus=Ye)},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_16,[vue.createVNode(Ie,{onClick:St[15]||(St[15]=Ye=>Ce.previewDialogStatus=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取 消")]),_:1}),vue.createVNode(Ie,{type:"primary",onClick:St[16]||(St[16]=Ye=>Ce.previewDialogStatus=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("确 定")]),_:1})])]),default:vue.withCtx(()=>[_hoisted_15]),_:1},8,["width","modelValue"]),vue.createVNode(fr,{ref:"infoDialog",title:Ce.infoDialogTitle,"lock-scroll":!0,modelValue:Ce.infoDialogStatus,"onUpdate:modelValue":St[22]||(St[22]=Ye=>Ce.infoDialogStatus=Ye)},{footer:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_17,[vue.createVNode(Ie,{onClick:St[20]||(St[20]=Ye=>Ce.infoDialogStatus=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取 消")]),_:1}),vue.createVNode(Ie,{type:"primary",onClick:St[21]||(St[21]=Ye=>Ce.infoDialogStatus=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("复 制")]),_:1})])]),default:vue.withCtx(()=>[vue.createVNode($e,{type:"textarea",readonly:!0,autosize:{minRows:15},placeholder:"请输入内容",modelValue:Ce.infoTextarea,"onUpdate:modelValue":St[19]||(St[19]=Ye=>Ce.infoTextarea=Ye)},null,8,["modelValue"])]),_:1},8,["title","modelValue"])])}const PrintDesign=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-03cf0f0e"]]),install=Be=>{Be.component(PrintDesign.name,PrintDesign)},index$1={install,PrintDesign,hiprint,defaultElementTypeProvider,customData,customPrintJson};/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function _typeof$1(Be){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(St){return typeof St}:function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},_typeof$1(Be)}function _setPrototypeOf(Be,St){return _setPrototypeOf=Object.setPrototypeOf||function(Ee,Ce){return Ee.__proto__=Ce,Ee},_setPrototypeOf(Be,St)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(Be,St,Ae){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Ce,_e,Te){var Se=[null];Se.push.apply(Se,_e);var xe=Function.bind.apply(Ce,Se),Ie=new xe;return Te&&_setPrototypeOf(Ie,Te.prototype),Ie},_construct.apply(null,arguments)}function _toConsumableArray(Be){return _arrayWithoutHoles(Be)||_iterableToArray(Be)||_unsupportedIterableToArray(Be)||_nonIterableSpread()}function _arrayWithoutHoles(Be){if(Array.isArray(Be))return _arrayLikeToArray(Be)}function _iterableToArray(Be){if(typeof Symbol<"u"&&Be[Symbol.iterator]!=null||Be["@@iterator"]!=null)return Array.from(Be)}function _unsupportedIterableToArray(Be,St){if(Be){if(typeof Be=="string")return _arrayLikeToArray(Be,St);var Ae=Object.prototype.toString.call(Be).slice(8,-1);if(Ae==="Object"&&Be.constructor&&(Ae=Be.constructor.name),Ae==="Map"||Ae==="Set")return Array.from(Be);if(Ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return _arrayLikeToArray(Be,St)}}function _arrayLikeToArray(Be,St){(St==null||St>Be.length)&&(St=Be.length);for(var Ae=0,Ee=new Array(St);Ae<St;Ae++)Ee[Ae]=Be[Ae];return Ee}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hasOwnProperty$1=Object.hasOwnProperty,setPrototypeOf$2=Object.setPrototypeOf,isFrozen=Object.isFrozen,getPrototypeOf$2=Object.getPrototypeOf,getOwnPropertyDescriptor$5=Object.getOwnPropertyDescriptor,freeze=Object.freeze,seal=Object.seal,create$3=Object.create,_ref=typeof Reflect<"u"&&Reflect,apply$3=_ref.apply,construct$1=_ref.construct;apply$3||(apply$3=function(St,Ae,Ee){return St.apply(Ae,Ee)}),freeze||(freeze=function(St){return St}),seal||(seal=function(St){return St}),construct$1||(construct$1=function(St,Ae){return _construct(St,_toConsumableArray(Ae))});var arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf$2=unapply(String.prototype.indexOf),stringTrim$1=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(Be){return function(St){for(var Ae=arguments.length,Ee=new Array(Ae>1?Ae-1:0),Ce=1;Ce<Ae;Ce++)Ee[Ce-1]=arguments[Ce];return apply$3(Be,St,Ee)}}function unconstruct(Be){return function(){for(var St=arguments.length,Ae=new Array(St),Ee=0;Ee<St;Ee++)Ae[Ee]=arguments[Ee];return construct$1(Be,Ae)}}function addToSet(Be,St,Ae){var Ee;Ae=(Ee=Ae)!==null&&Ee!==void 0?Ee:stringToLowerCase,setPrototypeOf$2&&setPrototypeOf$2(Be,null);for(var Ce=St.length;Ce--;){var _e=St[Ce];if(typeof _e=="string"){var Te=Ae(_e);Te!==_e&&(isFrozen(St)||(St[Ce]=Te),_e=Te)}Be[_e]=!0}return Be}function clone(Be){var St=create$3(null),Ae;for(Ae in Be)apply$3(hasOwnProperty$1,Be,[Ae])===!0&&(St[Ae]=Be[Ae]);return St}function lookupGetter(Be,St){for(;Be!==null;){var Ae=getOwnPropertyDescriptor$5(Be,St);if(Ae){if(Ae.get)return unapply(Ae.get);if(typeof Ae.value=="function")return unapply(Ae.value)}Be=getPrototypeOf$2(Be)}function Ee(Ce){return console.warn("fallback value for",Ce),null}return Ee}var html$1$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html$3=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function Be(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function Be(St,Ae){if(_typeof$1(St)!=="object"||typeof St.createPolicy!="function")return null;var Ee=null,Ce="data-tt-policy-suffix";Ae.currentScript&&Ae.currentScript.hasAttribute(Ce)&&(Ee=Ae.currentScript.getAttribute(Ce));var _e="dompurify"+(Ee?"#"+Ee:"");try{return St.createPolicy(_e,{createHTML:function(Se){return Se},createScriptURL:function(Se){return Se}})}catch{return console.warn("TrustedTypes policy "+_e+" could not be created."),null}};function createDOMPurify(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal(),St=function(Yr){return createDOMPurify(Yr)};if(St.version="2.4.7",St.removed=[],!Be||!Be.document||Be.document.nodeType!==9)return St.isSupported=!1,St;var Ae=Be.document,Ee=Be.document,Ce=Be.DocumentFragment,_e=Be.HTMLTemplateElement,Te=Be.Node,Se=Be.Element,xe=Be.NodeFilter,Ie=Be.NamedNodeMap,Ue=Ie===void 0?Be.NamedNodeMap||Be.MozNamedAttrMap:Ie,$e=Be.HTMLFormElement,Me=Be.DOMParser,Re=Be.trustedTypes,ze=Se.prototype,Ve=lookupGetter(ze,"cloneNode"),nr=lookupGetter(ze,"nextSibling"),Ze=lookupGetter(ze,"childNodes"),ar=lookupGetter(ze,"parentNode");if(typeof _e=="function"){var fr=Ee.createElement("template");fr.content&&fr.content.ownerDocument&&(Ee=fr.content.ownerDocument)}var Ye=_createTrustedTypesPolicy(Re,Ae),Ar=Ye?Ye.createHTML(""):"",Oe=Ee,Je=Oe.implementation,We=Oe.createNodeIterator,or=Oe.createDocumentFragment,mr=Oe.getElementsByTagName,er=Ae.importNode,ir={};try{ir=clone(Ee).documentMode?Ee.documentMode:{}}catch{}var gr={};St.isSupported=typeof ar=="function"&&Je&&Je.createHTMLDocument!==void 0&&ir!==9;var vr=MUSTACHE_EXPR,Or=ERB_EXPR,Nr=TMPLIT_EXPR,Hr=DATA_ATTR,Dr=ARIA_ATTR,kr=IS_SCRIPT_OR_DATA,qr=ATTR_WHITESPACE,An=IS_ALLOWED_URI,lr=null,Tr=addToSet({},[].concat(_toConsumableArray(html$1$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),xr=null,$r=addToSet({},[].concat(_toConsumableArray(html$3),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),Qr=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Jr=null,nn=null,en=!0,Bn=!0,Sn=!1,Un=!0,On=!1,zn=!1,fn=!1,Sr=!1,Yn=!1,Wn=!1,Tn=!1,$n=!0,Dn=!1,Rn="user-content-",Gn=!0,Kn=!1,ti={},Ai=null,yi=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Bi=null,ei=addToSet({},["audio","video","img","source","image","track"]),ci=null,Qn=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ii="http://www.w3.org/1998/Math/MathML",gi="http://www.w3.org/2000/svg",br="http://www.w3.org/1999/xhtml",Ke=br,je=!1,sr=null,dr=addToSet({},[Ii,gi,br],stringToString),Pr,jr=["application/xhtml+xml","text/html"],wn="text/html",pn,Pn=null,Xe=Ee.createElement("form"),ke=function(Yr){return Yr instanceof RegExp||Yr instanceof Function},Wr=function(Yr){Pn&&Pn===Yr||((!Yr||_typeof$1(Yr)!=="object")&&(Yr={}),Yr=clone(Yr),Pr=jr.indexOf(Yr.PARSER_MEDIA_TYPE)===-1?Pr=wn:Pr=Yr.PARSER_MEDIA_TYPE,pn=Pr==="application/xhtml+xml"?stringToString:stringToLowerCase,lr="ALLOWED_TAGS"in Yr?addToSet({},Yr.ALLOWED_TAGS,pn):Tr,xr="ALLOWED_ATTR"in Yr?addToSet({},Yr.ALLOWED_ATTR,pn):$r,sr="ALLOWED_NAMESPACES"in Yr?addToSet({},Yr.ALLOWED_NAMESPACES,stringToString):dr,ci="ADD_URI_SAFE_ATTR"in Yr?addToSet(clone(Qn),Yr.ADD_URI_SAFE_ATTR,pn):Qn,Bi="ADD_DATA_URI_TAGS"in Yr?addToSet(clone(ei),Yr.ADD_DATA_URI_TAGS,pn):ei,Ai="FORBID_CONTENTS"in Yr?addToSet({},Yr.FORBID_CONTENTS,pn):yi,Jr="FORBID_TAGS"in Yr?addToSet({},Yr.FORBID_TAGS,pn):{},nn="FORBID_ATTR"in Yr?addToSet({},Yr.FORBID_ATTR,pn):{},ti="USE_PROFILES"in Yr?Yr.USE_PROFILES:!1,en=Yr.ALLOW_ARIA_ATTR!==!1,Bn=Yr.ALLOW_DATA_ATTR!==!1,Sn=Yr.ALLOW_UNKNOWN_PROTOCOLS||!1,Un=Yr.ALLOW_SELF_CLOSE_IN_ATTR!==!1,On=Yr.SAFE_FOR_TEMPLATES||!1,zn=Yr.WHOLE_DOCUMENT||!1,Yn=Yr.RETURN_DOM||!1,Wn=Yr.RETURN_DOM_FRAGMENT||!1,Tn=Yr.RETURN_TRUSTED_TYPE||!1,Sr=Yr.FORCE_BODY||!1,$n=Yr.SANITIZE_DOM!==!1,Dn=Yr.SANITIZE_NAMED_PROPS||!1,Gn=Yr.KEEP_CONTENT!==!1,Kn=Yr.IN_PLACE||!1,An=Yr.ALLOWED_URI_REGEXP||An,Ke=Yr.NAMESPACE||br,Qr=Yr.CUSTOM_ELEMENT_HANDLING||{},Yr.CUSTOM_ELEMENT_HANDLING&&ke(Yr.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Qr.tagNameCheck=Yr.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Yr.CUSTOM_ELEMENT_HANDLING&&ke(Yr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Qr.attributeNameCheck=Yr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Yr.CUSTOM_ELEMENT_HANDLING&&typeof Yr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Qr.allowCustomizedBuiltInElements=Yr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),On&&(Bn=!1),Wn&&(Yn=!0),ti&&(lr=addToSet({},_toConsumableArray(text)),xr=[],ti.html===!0&&(addToSet(lr,html$1$1),addToSet(xr,html$3)),ti.svg===!0&&(addToSet(lr,svg$1),addToSet(xr,svg),addToSet(xr,xml)),ti.svgFilters===!0&&(addToSet(lr,svgFilters),addToSet(xr,svg),addToSet(xr,xml)),ti.mathMl===!0&&(addToSet(lr,mathMl$1),addToSet(xr,mathMl),addToSet(xr,xml))),Yr.ADD_TAGS&&(lr===Tr&&(lr=clone(lr)),addToSet(lr,Yr.ADD_TAGS,pn)),Yr.ADD_ATTR&&(xr===$r&&(xr=clone(xr)),addToSet(xr,Yr.ADD_ATTR,pn)),Yr.ADD_URI_SAFE_ATTR&&addToSet(ci,Yr.ADD_URI_SAFE_ATTR,pn),Yr.FORBID_CONTENTS&&(Ai===yi&&(Ai=clone(Ai)),addToSet(Ai,Yr.FORBID_CONTENTS,pn)),Gn&&(lr["#text"]=!0),zn&&addToSet(lr,["html","head","body"]),lr.table&&(addToSet(lr,["tbody"]),delete Jr.tbody),freeze&&freeze(Yr),Pn=Yr)},bn=addToSet({},["mi","mo","mn","ms","mtext"]),Jn=addToSet({},["foreignobject","desc","title","annotation-xml"]),pi=addToSet({},["title","style","font","a","script"]),Mn=addToSet({},svg$1);addToSet(Mn,svgFilters),addToSet(Mn,svgDisallowed);var Ti=addToSet({},mathMl$1);addToSet(Ti,mathMlDisallowed);var Oi=function(Yr){var Ln=ar(Yr);(!Ln||!Ln.tagName)&&(Ln={namespaceURI:Ke,tagName:"template"});var Hn=stringToLowerCase(Yr.tagName),_i=stringToLowerCase(Ln.tagName);return sr[Yr.namespaceURI]?Yr.namespaceURI===gi?Ln.namespaceURI===br?Hn==="svg":Ln.namespaceURI===Ii?Hn==="svg"&&(_i==="annotation-xml"||bn[_i]):!!Mn[Hn]:Yr.namespaceURI===Ii?Ln.namespaceURI===br?Hn==="math":Ln.namespaceURI===gi?Hn==="math"&&Jn[_i]:!!Ti[Hn]:Yr.namespaceURI===br?Ln.namespaceURI===gi&&!Jn[_i]||Ln.namespaceURI===Ii&&!bn[_i]?!1:!Ti[Hn]&&(pi[Hn]||!Mn[Hn]):!!(Pr==="application/xhtml+xml"&&sr[Yr.namespaceURI]):!1},Ni=function(Yr){arrayPush(St.removed,{element:Yr});try{Yr.parentNode.removeChild(Yr)}catch{try{Yr.outerHTML=Ar}catch{Yr.remove()}}},Hi=function(Yr,Ln){try{arrayPush(St.removed,{attribute:Ln.getAttributeNode(Yr),from:Ln})}catch{arrayPush(St.removed,{attribute:null,from:Ln})}if(Ln.removeAttribute(Yr),Yr==="is"&&!xr[Yr])if(Yn||Wn)try{Ni(Ln)}catch{}else try{Ln.setAttribute(Yr,"")}catch{}},Ki=function(Yr){var Ln,Hn;if(Sr)Yr="<remove></remove>"+Yr;else{var _i=stringMatch(Yr,/^[\r\n\t ]+/);Hn=_i&&_i[0]}Pr==="application/xhtml+xml"&&Ke===br&&(Yr='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Yr+"</body></html>");var rA=Ye?Ye.createHTML(Yr):Yr;if(Ke===br)try{Ln=new Me().parseFromString(rA,Pr)}catch{}if(!Ln||!Ln.documentElement){Ln=Je.createDocument(Ke,"template",null);try{Ln.documentElement.innerHTML=je?Ar:rA}catch{}}var nA=Ln.body||Ln.documentElement;return Yr&&Hn&&nA.insertBefore(Ee.createTextNode(Hn),nA.childNodes[0]||null),Ke===br?mr.call(Ln,zn?"html":"body")[0]:zn?Ln.documentElement:nA},Zi=function(Yr){return We.call(Yr.ownerDocument||Yr,Yr,xe.SHOW_ELEMENT|xe.SHOW_COMMENT|xe.SHOW_TEXT,null,!1)},oo=function(Yr){return Yr instanceof $e&&(typeof Yr.nodeName!="string"||typeof Yr.textContent!="string"||typeof Yr.removeChild!="function"||!(Yr.attributes instanceof Ue)||typeof Yr.removeAttribute!="function"||typeof Yr.setAttribute!="function"||typeof Yr.namespaceURI!="string"||typeof Yr.insertBefore!="function"||typeof Yr.hasChildNodes!="function")},fA=function(Yr){return _typeof$1(Te)==="object"?Yr instanceof Te:Yr&&_typeof$1(Yr)==="object"&&typeof Yr.nodeType=="number"&&typeof Yr.nodeName=="string"},qi=function(Yr,Ln,Hn){gr[Yr]&&arrayForEach(gr[Yr],function(_i){_i.call(St,Ln,Hn,Pn)})},wA=function(Yr){var Ln;if(qi("beforeSanitizeElements",Yr,null),oo(Yr)||regExpTest(/[\u0080-\uFFFF]/,Yr.nodeName))return Ni(Yr),!0;var Hn=pn(Yr.nodeName);if(qi("uponSanitizeElement",Yr,{tagName:Hn,allowedTags:lr}),Yr.hasChildNodes()&&!fA(Yr.firstElementChild)&&(!fA(Yr.content)||!fA(Yr.content.firstElementChild))&&regExpTest(/<[/\w]/g,Yr.innerHTML)&&regExpTest(/<[/\w]/g,Yr.textContent)||Hn==="select"&&regExpTest(/<template/i,Yr.innerHTML))return Ni(Yr),!0;if(!lr[Hn]||Jr[Hn]){if(!Jr[Hn]&&hA(Hn)&&(Qr.tagNameCheck instanceof RegExp&&regExpTest(Qr.tagNameCheck,Hn)||Qr.tagNameCheck instanceof Function&&Qr.tagNameCheck(Hn)))return!1;if(Gn&&!Ai[Hn]){var _i=ar(Yr)||Yr.parentNode,rA=Ze(Yr)||Yr.childNodes;if(rA&&_i)for(var nA=rA.length,Xi=nA-1;Xi>=0;--Xi)_i.insertBefore(Ve(rA[Xi],!0),nr(Yr))}return Ni(Yr),!0}return Yr instanceof Se&&!Oi(Yr)||(Hn==="noscript"||Hn==="noembed"||Hn==="noframes")&&regExpTest(/<\/no(script|embed|frames)/i,Yr.innerHTML)?(Ni(Yr),!0):(On&&Yr.nodeType===3&&(Ln=Yr.textContent,Ln=stringReplace(Ln,vr," "),Ln=stringReplace(Ln,Or," "),Ln=stringReplace(Ln,Nr," "),Yr.textContent!==Ln&&(arrayPush(St.removed,{element:Yr.cloneNode()}),Yr.textContent=Ln)),qi("afterSanitizeElements",Yr,null),!1)},TA=function(Yr,Ln,Hn){if($n&&(Ln==="id"||Ln==="name")&&(Hn in Ee||Hn in Xe))return!1;if(!(Bn&&!nn[Ln]&&regExpTest(Hr,Ln))){if(!(en&&regExpTest(Dr,Ln))){if(!xr[Ln]||nn[Ln]){if(!(hA(Yr)&&(Qr.tagNameCheck instanceof RegExp&&regExpTest(Qr.tagNameCheck,Yr)||Qr.tagNameCheck instanceof Function&&Qr.tagNameCheck(Yr))&&(Qr.attributeNameCheck instanceof RegExp&&regExpTest(Qr.attributeNameCheck,Ln)||Qr.attributeNameCheck instanceof Function&&Qr.attributeNameCheck(Ln))||Ln==="is"&&Qr.allowCustomizedBuiltInElements&&(Qr.tagNameCheck instanceof RegExp&&regExpTest(Qr.tagNameCheck,Hn)||Qr.tagNameCheck instanceof Function&&Qr.tagNameCheck(Hn))))return!1}else if(!ci[Ln]){if(!regExpTest(An,stringReplace(Hn,qr,""))){if(!((Ln==="src"||Ln==="xlink:href"||Ln==="href")&&Yr!=="script"&&stringIndexOf$2(Hn,"data:")===0&&Bi[Yr])){if(!(Sn&&!regExpTest(kr,stringReplace(Hn,qr,"")))){if(Hn)return!1}}}}}}return!0},hA=function(Yr){return Yr.indexOf("-")>0},gA=function(Yr){var Ln,Hn,_i,rA;qi("beforeSanitizeAttributes",Yr,null);var nA=Yr.attributes;if(nA){var Xi={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xr};for(rA=nA.length;rA--;){Ln=nA[rA];var MA=Ln,ji=MA.name,go=MA.namespaceURI;if(Hn=ji==="value"?Ln.value:stringTrim$1(Ln.value),_i=pn(ji),Xi.attrName=_i,Xi.attrValue=Hn,Xi.keepAttr=!0,Xi.forceKeepAttr=void 0,qi("uponSanitizeAttribute",Yr,Xi),Hn=Xi.attrValue,!Xi.forceKeepAttr&&(Hi(ji,Yr),!!Xi.keepAttr)){if(!Un&&regExpTest(/\/>/i,Hn)){Hi(ji,Yr);continue}On&&(Hn=stringReplace(Hn,vr," "),Hn=stringReplace(Hn,Or," "),Hn=stringReplace(Hn,Nr," "));var tA=pn(Yr.nodeName);if(TA(tA,_i,Hn)){if(Dn&&(_i==="id"||_i==="name")&&(Hi(ji,Yr),Hn=Rn+Hn),Ye&&_typeof$1(Re)==="object"&&typeof Re.getAttributeType=="function"&&!go)switch(Re.getAttributeType(tA,_i)){case"TrustedHTML":{Hn=Ye.createHTML(Hn);break}case"TrustedScriptURL":{Hn=Ye.createScriptURL(Hn);break}}try{go?Yr.setAttributeNS(go,ji,Hn):Yr.setAttribute(ji,Hn),arrayPop(St.removed)}catch{}}}}qi("afterSanitizeAttributes",Yr,null)}},OA=function Zn(Yr){var Ln,Hn=Zi(Yr);for(qi("beforeSanitizeShadowDOM",Yr,null);Ln=Hn.nextNode();)qi("uponSanitizeShadowNode",Ln,null),!wA(Ln)&&(Ln.content instanceof Ce&&Zn(Ln.content),gA(Ln));qi("afterSanitizeShadowDOM",Yr,null)};return St.sanitize=function(Zn){var Yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ln,Hn,_i,rA,nA;if(je=!Zn,je&&(Zn="<!-->"),typeof Zn!="string"&&!fA(Zn))if(typeof Zn.toString=="function"){if(Zn=Zn.toString(),typeof Zn!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!St.isSupported){if(_typeof$1(Be.toStaticHTML)==="object"||typeof Be.toStaticHTML=="function"){if(typeof Zn=="string")return Be.toStaticHTML(Zn);if(fA(Zn))return Be.toStaticHTML(Zn.outerHTML)}return Zn}if(fn||Wr(Yr),St.removed=[],typeof Zn=="string"&&(Kn=!1),Kn){if(Zn.nodeName){var Xi=pn(Zn.nodeName);if(!lr[Xi]||Jr[Xi])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Zn instanceof Te)Ln=Ki("<!---->"),Hn=Ln.ownerDocument.importNode(Zn,!0),Hn.nodeType===1&&Hn.nodeName==="BODY"||Hn.nodeName==="HTML"?Ln=Hn:Ln.appendChild(Hn);else{if(!Yn&&!On&&!zn&&Zn.indexOf("<")===-1)return Ye&&Tn?Ye.createHTML(Zn):Zn;if(Ln=Ki(Zn),!Ln)return Yn?null:Tn?Ar:""}Ln&&Sr&&Ni(Ln.firstChild);for(var MA=Zi(Kn?Zn:Ln);_i=MA.nextNode();)_i.nodeType===3&&_i===rA||wA(_i)||(_i.content instanceof Ce&&OA(_i.content),gA(_i),rA=_i);if(rA=null,Kn)return Zn;if(Yn){if(Wn)for(nA=or.call(Ln.ownerDocument);Ln.firstChild;)nA.appendChild(Ln.firstChild);else nA=Ln;return(xr.shadowroot||xr.shadowrootmod)&&(nA=er.call(Ae,nA,!0)),nA}var ji=zn?Ln.outerHTML:Ln.innerHTML;return zn&&lr["!doctype"]&&Ln.ownerDocument&&Ln.ownerDocument.doctype&&Ln.ownerDocument.doctype.name&&regExpTest(DOCTYPE_NAME,Ln.ownerDocument.doctype.name)&&(ji="<!DOCTYPE "+Ln.ownerDocument.doctype.name+`>
`+ji),On&&(ji=stringReplace(ji,vr," "),ji=stringReplace(ji,Or," "),ji=stringReplace(ji,Nr," ")),Ye&&Tn?Ye.createHTML(ji):ji},St.setConfig=function(Zn){Wr(Zn),fn=!0},St.clearConfig=function(){Pn=null,fn=!1},St.isValidAttribute=function(Zn,Yr,Ln){Pn||Wr({});var Hn=pn(Zn),_i=pn(Yr);return TA(Hn,_i,Ln)},St.addHook=function(Zn,Yr){typeof Yr=="function"&&(gr[Zn]=gr[Zn]||[],arrayPush(gr[Zn],Yr))},St.removeHook=function(Zn){if(gr[Zn])return arrayPop(gr[Zn])},St.removeHooks=function(Zn){gr[Zn]&&(gr[Zn]=[])},St.removeAllHooks=function(){gr={}},St}var purify=createDOMPurify();const purify_es=Object.freeze(Object.defineProperty({__proto__:null,default:purify},Symbol.toStringTag,{value:"Module"}));var check=function(Be){return Be&&Be.Math===Math&&Be},global$l=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(Be){try{return!!Be()}catch{return!0}},fails$k=fails$l,descriptors=!fails$k(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),fails$j=fails$l,functionBindNative=!fails$j(function(){var Be=(function(){}).bind();return typeof Be!="function"||Be.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$3?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$4&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function Be(St){var Ae=getOwnPropertyDescriptor$4(this,St);return!!Ae&&Ae.enumerable}:$propertyIsEnumerable;var createPropertyDescriptor$3=function(Be,St){return{enumerable:!(Be&1),configurable:!(Be&2),writable:!(Be&4),value:St}},NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$i=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$i,call$i),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(Be){return function(){return call$i.apply(Be,arguments)}},uncurryThis$o=functionUncurryThis,toString$b=uncurryThis$o({}.toString),stringSlice$7=uncurryThis$o("".slice),classofRaw$2=function(Be){return stringSlice$7(toString$b(Be),8,-1)},uncurryThis$n=functionUncurryThis,fails$i=fails$l,classof$8=classofRaw$2,$Object$4=Object,split=uncurryThis$n("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(Be){return classof$8(Be)==="String"?split(Be,""):$Object$4(Be)}:$Object$4,isNullOrUndefined$7=function(Be){return Be==null},isNullOrUndefined$6=isNullOrUndefined$7,$TypeError$f=TypeError,requireObjectCoercible$a=function(Be){if(isNullOrUndefined$6(Be))throw new $TypeError$f("Can't call method on "+Be);return Be},IndexedObject$1=indexedObject,requireObjectCoercible$9=requireObjectCoercible$a,toIndexedObject$5=function(Be){return IndexedObject$1(requireObjectCoercible$9(Be))},documentAll=typeof document=="object"&&document.all,isCallable$l=typeof documentAll>"u"&&documentAll!==void 0?function(Be){return typeof Be=="function"||Be===documentAll}:function(Be){return typeof Be=="function"},isCallable$k=isCallable$l,isObject$a=function(Be){return typeof Be=="object"?Be!==null:isCallable$k(Be)},global$k=global$l,isCallable$j=isCallable$l,aFunction=function(Be){return isCallable$j(Be)?Be:void 0},getBuiltIn$7=function(Be,St){return arguments.length<2?aFunction(global$k[Be]):global$k[Be]&&global$k[Be][St]},uncurryThis$m=functionUncurryThis,objectIsPrototypeOf=uncurryThis$m({}.isPrototypeOf),engineUserAgent=typeof navigator<"u"&&String(navigator.userAgent)||"",global$j=global$l,userAgent$3=engineUserAgent,process$4=global$j.process,Deno$1=global$j.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$3&&(match=userAgent$3.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent$3.match(/Chrome\/(\d+)/),match&&(version=+match[1])));var engineV8Version=version,V8_VERSION$1=engineV8Version,fails$h=fails$l,global$i=global$l,$String$5=global$i.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$h(function(){var Be=Symbol("symbol detection");return!$String$5(Be)||!(Object(Be)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6=getBuiltIn$7,isCallable$i=isCallable$l,isPrototypeOf$3=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=USE_SYMBOL_AS_UID$1?function(Be){return typeof Be=="symbol"}:function(Be){var St=getBuiltIn$6("Symbol");return isCallable$i(St)&&isPrototypeOf$3(St.prototype,$Object$3(Be))},$String$4=String,tryToString$4=function(Be){try{return $String$4(Be)}catch{return"Object"}},isCallable$h=isCallable$l,tryToString$3=tryToString$4,$TypeError$e=TypeError,aCallable$9=function(Be){if(isCallable$h(Be))return Be;throw new $TypeError$e(tryToString$3(Be)+" is not a function")},aCallable$8=aCallable$9,isNullOrUndefined$5=isNullOrUndefined$7,getMethod$6=function(Be,St){var Ae=Be[St];return isNullOrUndefined$5(Ae)?void 0:aCallable$8(Ae)},call$h=functionCall,isCallable$g=isCallable$l,isObject$9=isObject$a,$TypeError$d=TypeError,ordinaryToPrimitive$1=function(Be,St){var Ae,Ee;if(St==="string"&&isCallable$g(Ae=Be.toString)&&!isObject$9(Ee=call$h(Ae,Be))||isCallable$g(Ae=Be.valueOf)&&!isObject$9(Ee=call$h(Ae,Be))||St!=="string"&&isCallable$g(Ae=Be.toString)&&!isObject$9(Ee=call$h(Ae,Be)))return Ee;throw new $TypeError$d("Can't convert object to primitive value")},sharedStore={exports:{}},global$h=global$l,defineProperty$5=Object.defineProperty,defineGlobalProperty$3=function(Be,St){try{defineProperty$5(global$h,Be,{value:St,configurable:!0,writable:!0})}catch{global$h[Be]=St}return St},globalThis$1=global$l,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$1[SHARED]||defineGlobalProperty$2(SHARED,{});(store$3.versions||(store$3.versions=[])).push({version:"3.36.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedStoreExports=sharedStore.exports,store$2=sharedStoreExports,shared$4=function(Be,St){return store$2[Be]||(store$2[Be]=St||{})},requireObjectCoercible$8=requireObjectCoercible$a,$Object$2=Object,toObject$4=function(Be){return $Object$2(requireObjectCoercible$8(Be))},uncurryThis$l=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=uncurryThis$l({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function Be(St,Ae){return hasOwnProperty(toObject$3(St),Ae)},uncurryThis$k=functionUncurryThis,id$1=0,postfix=Math.random(),toString$a=uncurryThis$k(1 .toString),uid$2=function(Be){return"Symbol("+(Be===void 0?"":Be)+")_"+toString$a(++id$1+postfix,36)},global$g=global$l,shared$3=shared$4,hasOwn$a=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$g.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$i=function(Be){return hasOwn$a(WellKnownSymbolsStore,Be)||(WellKnownSymbolsStore[Be]=NATIVE_SYMBOL&&hasOwn$a(Symbol$1,Be)?Symbol$1[Be]:createWellKnownSymbol("Symbol."+Be)),WellKnownSymbolsStore[Be]},call$g=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$5=getMethod$6,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$c=TypeError,TO_PRIMITIVE=wellKnownSymbol$h("toPrimitive"),toPrimitive$2=function(Be,St){if(!isObject$8(Be)||isSymbol$1(Be))return Be;var Ae=getMethod$5(Be,TO_PRIMITIVE),Ee;if(Ae){if(St===void 0&&(St="default"),Ee=call$g(Ae,Be,St),!isObject$8(Ee)||isSymbol$1(Ee))return Ee;throw new $TypeError$c("Can't convert object to primitive value")}return St===void 0&&(St="number"),ordinaryToPrimitive(Be,St)},toPrimitive$1=toPrimitive$2,isSymbol=isSymbol$2,toPropertyKey$3=function(Be){var St=toPrimitive$1(Be,"string");return isSymbol(St)?St:St+""},global$f=global$l,isObject$7=isObject$a,document$3=global$f.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(Be){return EXISTS$1?document$3.createElement(Be):{}},DESCRIPTORS$a=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!DESCRIPTORS$a&&!fails$g(function(){return Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a!==7}),DESCRIPTORS$9=descriptors,call$f=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$9=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function Be(St,Ae){if(St=toIndexedObject$4(St),Ae=toPropertyKey$2(Ae),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(St,Ae)}catch{}if(hasOwn$9(St,Ae))return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule.f,St,Ae),St[Ae])};var objectDefineProperty={},DESCRIPTORS$8=descriptors,fails$f=fails$l,v8PrototypeDefineBug=DESCRIPTORS$8&&fails$f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),isObject$6=isObject$a,$String$3=String,$TypeError$b=TypeError,anObject$g=function(Be){if(isObject$6(Be))return Be;throw new $TypeError$b($String$3(Be)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$f=anObject$g,toPropertyKey$1=toPropertyKey$3,$TypeError$a=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function Be(St,Ae,Ee){if(anObject$f(St),Ae=toPropertyKey$1(Ae),anObject$f(Ee),typeof St=="function"&&Ae==="prototype"&&"value"in Ee&&WRITABLE in Ee&&!Ee[WRITABLE]){var Ce=$getOwnPropertyDescriptor(St,Ae);Ce&&Ce[WRITABLE]&&(St[Ae]=Ee.value,Ee={configurable:CONFIGURABLE$1 in Ee?Ee[CONFIGURABLE$1]:Ce[CONFIGURABLE$1],enumerable:ENUMERABLE in Ee?Ee[ENUMERABLE]:Ce[ENUMERABLE],writable:!1})}return $defineProperty(St,Ae,Ee)}:$defineProperty:function Be(St,Ae,Ee){if(anObject$f(St),Ae=toPropertyKey$1(Ae),anObject$f(Ee),IE8_DOM_DEFINE)try{return $defineProperty(St,Ae,Ee)}catch{}if("get"in Ee||"set"in Ee)throw new $TypeError$a("Accessors not supported");return"value"in Ee&&(St[Ae]=Ee.value),St};var DESCRIPTORS$6=descriptors,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$5=DESCRIPTORS$6?function(Be,St,Ae){return definePropertyModule$3.f(Be,St,createPropertyDescriptor$1(1,Ae))}:function(Be,St,Ae){return Be[St]=Ae,Be},makeBuiltIn$3={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&(function Be(){}).name==="something",CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||DESCRIPTORS$5&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS,PROPER,CONFIGURABLE},uncurryThis$j=functionUncurryThis,isCallable$f=isCallable$l,store$1=sharedStoreExports,functionToString=uncurryThis$j(Function.toString);isCallable$f(store$1.inspectSource)||(store$1.inspectSource=function(Be){return functionToString(Be)});var inspectSource$3=store$1.inspectSource,global$e=global$l,isCallable$e=isCallable$l,WeakMap$1=global$e.WeakMap,weakMapBasicDetection=isCallable$e(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$2=shared$4,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(Be){return keys[Be]||(keys[Be]=uid(Be))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$d=global$l,isObject$5=isObject$a,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$7=hasOwnProperty_1,shared$1=sharedStoreExports,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$d.TypeError,WeakMap=global$d.WeakMap,set$1,get,has,enforce=function(Be){return has(Be)?get(Be):set$1(Be,{})},getterFor=function(Be){return function(St){var Ae;if(!isObject$5(St)||(Ae=get(St)).type!==Be)throw new TypeError$2("Incompatible receiver, "+Be+" required");return Ae}};if(NATIVE_WEAK_MAP||shared$1.state){var store=shared$1.state||(shared$1.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$1=function(Be,St){if(store.has(Be))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return St.facade=Be,store.set(Be,St),St},get=function(Be){return store.get(Be)||{}},has=function(Be){return store.has(Be)}}else{var STATE=sharedKey$2("state");hiddenKeys$3[STATE]=!0,set$1=function(Be,St){if(hasOwn$7(Be,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return St.facade=Be,createNonEnumerableProperty$4(Be,STATE,St),St},get=function(Be){return hasOwn$7(Be,STATE)?Be[STATE]:{}},has=function(Be){return hasOwn$7(Be,STATE)}}var internalState={set:set$1,get,has,enforce,getterFor},uncurryThis$i=functionUncurryThis,fails$e=fails$l,isCallable$d=isCallable$l,hasOwn$6=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$2=InternalStateModule$2.get,$String$2=String,defineProperty$4=Object.defineProperty,stringSlice$6=uncurryThis$i("".slice),replace$3=uncurryThis$i("".replace),join=uncurryThis$i([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$e(function(){return defineProperty$4(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(Be,St,Ae){stringSlice$6($String$2(St),0,7)==="Symbol("&&(St="["+replace$3($String$2(St),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),Ae&&Ae.getter&&(St="get "+St),Ae&&Ae.setter&&(St="set "+St),(!hasOwn$6(Be,"name")||CONFIGURABLE_FUNCTION_NAME$1&&Be.name!==St)&&(DESCRIPTORS$4?defineProperty$4(Be,"name",{value:St,configurable:!0}):Be.name=St),CONFIGURABLE_LENGTH&&Ae&&hasOwn$6(Ae,"arity")&&Be.length!==Ae.arity&&defineProperty$4(Be,"length",{value:Ae.arity});try{Ae&&hasOwn$6(Ae,"constructor")&&Ae.constructor?DESCRIPTORS$4&&defineProperty$4(Be,"prototype",{writable:!1}):Be.prototype&&(Be.prototype=void 0)}catch{}var Ee=enforceInternalState(Be);return hasOwn$6(Ee,"source")||(Ee.source=join(TEMPLATE,typeof St=="string"?St:"")),Be};Function.prototype.toString=makeBuiltIn$2(function Be(){return isCallable$d(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString");var makeBuiltInExports=makeBuiltIn$3.exports,isCallable$c=isCallable$l,definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltInExports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$7=function(Be,St,Ae,Ee){Ee||(Ee={});var Ce=Ee.enumerable,_e=Ee.name!==void 0?Ee.name:St;if(isCallable$c(Ae)&&makeBuiltIn$1(Ae,_e,Ee),Ee.global)Ce?Be[St]=Ae:defineGlobalProperty$1(St,Ae);else{try{Ee.unsafe?Be[St]&&(Ce=!0):delete Be[St]}catch{}Ce?Be[St]=Ae:definePropertyModule$2.f(Be,St,{value:Ae,enumerable:!1,configurable:!Ee.nonConfigurable,writable:!Ee.nonWritable})}return Be},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$1=Math.floor,mathTrunc=Math.trunc||function Be(St){var Ae=+St;return(Ae>0?floor$1:ceil)(Ae)},trunc=mathTrunc,toIntegerOrInfinity$4=function(Be){var St=+Be;return St!==St||St===0?0:trunc(St)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$1=Math.max,min$5=Math.min,toAbsoluteIndex$1=function(Be,St){var Ae=toIntegerOrInfinity$3(Be);return Ae<0?max$1(Ae+St,0):min$5(Ae,St)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$4=Math.min,toLength$6=function(Be){var St=toIntegerOrInfinity$2(Be);return St>0?min$4(St,9007199254740991):0},toLength$5=toLength$6,lengthOfArrayLike$3=function(Be){return toLength$5(Be.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$3=function(Be){return function(St,Ae,Ee){var Ce=toIndexedObject$3(St),_e=lengthOfArrayLike$2(Ce);if(_e===0)return!Be&&-1;var Te=toAbsoluteIndex(Ee,_e),Se;if(Be&&Ae!==Ae){for(;_e>Te;)if(Se=Ce[Te++],Se!==Se)return!0}else for(;_e>Te;Te++)if((Be||Te in Ce)&&Ce[Te]===Ae)return Be||Te||0;return!Be&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},uncurryThis$h=functionUncurryThis,hasOwn$5=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$h([].push),objectKeysInternal=function(Be,St){var Ae=toIndexedObject$2(Be),Ee=0,Ce=[],_e;for(_e in Ae)!hasOwn$5(hiddenKeys$2,_e)&&hasOwn$5(Ae,_e)&&push$2(Ce,_e);for(;St.length>Ee;)hasOwn$5(Ae,_e=St[Ee++])&&(~indexOf$1(Ce,_e)||push$2(Ce,_e));return Ce},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$2.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function Be(St){return internalObjectKeys$1(St,hiddenKeys$1)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$5=getBuiltIn$7,uncurryThis$g=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,anObject$e=anObject$g,concat$1=uncurryThis$g([].concat),ownKeys$4=getBuiltIn$5("Reflect","ownKeys")||function Be(St){var Ae=getOwnPropertyNamesModule.f(anObject$e(St)),Ee=getOwnPropertySymbolsModule.f;return Ee?concat$1(Ae,Ee(St)):Ae},hasOwn$4=hasOwnProperty_1,ownKeys$3=ownKeys$4,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(Be,St,Ae){for(var Ee=ownKeys$3(St),Ce=definePropertyModule$1.f,_e=getOwnPropertyDescriptorModule.f,Te=0;Te<Ee.length;Te++){var Se=Ee[Te];!hasOwn$4(Be,Se)&&!(Ae&&hasOwn$4(Ae,Se))&&Ce(Be,Se,_e(St,Se))}},fails$d=fails$l,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(Be,St){var Ae=data[normalize(Be)];return Ae===POLYFILL?!0:Ae===NATIVE?!1:isCallable$b(St)?fails$d(St):!!St},normalize=isForced$2.normalize=function(Be){return String(Be).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$c=global$l,getOwnPropertyDescriptor$3=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$6=defineBuiltIn$7,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(Be,St){var Ae=Be.target,Ee=Be.global,Ce=Be.stat,_e,Te,Se,xe,Ie,Ue;if(Ee?Te=global$c:Ce?Te=global$c[Ae]||defineGlobalProperty(Ae,{}):Te=global$c[Ae]&&global$c[Ae].prototype,Te)for(Se in St){if(Ie=St[Se],Be.dontCallGetSet?(Ue=getOwnPropertyDescriptor$3(Te,Se),xe=Ue&&Ue.value):xe=Te[Se],_e=isForced$1(Ee?Se:Ae+(Ce?".":"#")+Se,Be.forced),!_e&&xe!==void 0){if(typeof Ie==typeof xe)continue;copyConstructorProperties(Ie,xe)}(Be.sham||xe&&xe.sham)&&createNonEnumerableProperty$3(Ie,"sham",!0),defineBuiltIn$6(Te,Se,Ie,Be)}},global$b=global$l,classof$7=classofRaw$2,engineIsNode=classof$7(global$b.process)==="process",uncurryThis$f=functionUncurryThis,aCallable$7=aCallable$9,functionUncurryThisAccessor=function(Be,St,Ae){try{return uncurryThis$f(aCallable$7(Object.getOwnPropertyDescriptor(Be,St)[Ae]))}catch{}},isObject$4=isObject$a,isPossiblePrototype$1=function(Be){return isObject$4(Be)||Be===null},isPossiblePrototype=isPossiblePrototype$1,$String$1=String,$TypeError$9=TypeError,aPossiblePrototype$1=function(Be){if(isPossiblePrototype(Be))return Be;throw new $TypeError$9("Can't set "+$String$1(Be)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$d=anObject$g,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var Be=!1,St={},Ae;try{Ae=uncurryThisAccessor(Object.prototype,"__proto__","set"),Ae(St,[]),Be=St instanceof Array}catch{}return function(Ce,_e){return anObject$d(Ce),aPossiblePrototype(_e),Be?Ae(Ce,_e):Ce.__proto__=_e,Ce}}():void 0),defineProperty$3=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$g=wellKnownSymbol$i,TO_STRING_TAG$2=wellKnownSymbol$g("toStringTag"),setToStringTag$4=function(Be,St,Ae){Be&&!Ae&&(Be=Be.prototype),Be&&!hasOwn$3(Be,TO_STRING_TAG$2)&&defineProperty$3(Be,TO_STRING_TAG$2,{configurable:!0,value:St})},makeBuiltIn=makeBuiltInExports,defineProperty$2=objectDefineProperty,defineBuiltInAccessor$1=function(Be,St,Ae){return Ae.get&&makeBuiltIn(Ae.get,St,{getter:!0}),Ae.set&&makeBuiltIn(Ae.set,St,{setter:!0}),defineProperty$2.f(Be,St,Ae)},getBuiltIn$4=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$1,wellKnownSymbol$f=wellKnownSymbol$i,DESCRIPTORS$3=descriptors,SPECIES$3=wellKnownSymbol$f("species"),setSpecies$1=function(Be){var St=getBuiltIn$4(Be);DESCRIPTORS$3&&St&&!St[SPECIES$3]&&defineBuiltInAccessor(St,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$8=TypeError,anInstance$1=function(Be,St){if(isPrototypeOf$2(St,Be))return Be;throw new $TypeError$8("Incorrect invocation")},wellKnownSymbol$e=wellKnownSymbol$i,TO_STRING_TAG$1=wellKnownSymbol$e("toStringTag"),test$1={};test$1[TO_STRING_TAG$1]="z";var toStringTagSupport=String(test$1)==="[object z]",TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$a=isCallable$l,classofRaw$1=classofRaw$2,wellKnownSymbol$d=wellKnownSymbol$i,TO_STRING_TAG=wellKnownSymbol$d("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS=classofRaw$1(function(){return arguments}())==="Arguments",tryGet=function(Be,St){try{return Be[St]}catch{}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw$1:function(Be){var St,Ae,Ee;return Be===void 0?"Undefined":Be===null?"Null":typeof(Ae=tryGet(St=$Object$1(Be),TO_STRING_TAG))=="string"?Ae:CORRECT_ARGUMENTS?classofRaw$1(St):(Ee=classofRaw$1(St))==="Object"&&isCallable$a(St.callee)?"Arguments":Ee},uncurryThis$e=functionUncurryThis,fails$c=fails$l,isCallable$9=isCallable$l,classof$5=classof$6,getBuiltIn$3=getBuiltIn$7,inspectSource$1=inspectSource$3,noop$1=function(){},construct=getBuiltIn$3("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$1=uncurryThis$e(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop$1),isConstructorModern=function Be(St){if(!isCallable$9(St))return!1;try{return construct(noop$1,[],St),!0}catch{return!1}},isConstructorLegacy=function Be(St){if(!isCallable$9(St))return!1;switch(classof$5(St)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$1(constructorRegExp,inspectSource$1(St))}catch{return!0}};isConstructorLegacy.sham=!0;var isConstructor$1=!construct||fails$c(function(){var Be;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){Be=!0})||Be})?isConstructorLegacy:isConstructorModern,isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$7=TypeError,aConstructor$1=function(Be){if(isConstructor(Be))return Be;throw new $TypeError$7(tryToString$2(Be)+" is not a constructor")},anObject$c=anObject$g,aConstructor=aConstructor$1,isNullOrUndefined$4=isNullOrUndefined$7,wellKnownSymbol$c=wellKnownSymbol$i,SPECIES$2=wellKnownSymbol$c("species"),speciesConstructor$2=function(Be,St){var Ae=anObject$c(Be).constructor,Ee;return Ae===void 0||isNullOrUndefined$4(Ee=anObject$c(Ae)[SPECIES$2])?St:aConstructor(Ee)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$e=FunctionPrototype.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1?call$e.bind(apply$2):function(){return call$e.apply(apply$2,arguments)}),classofRaw=classofRaw$2,uncurryThis$d=functionUncurryThis,functionUncurryThisClause=function(Be){if(classofRaw(Be)==="Function")return uncurryThis$d(Be)},uncurryThis$c=functionUncurryThisClause,aCallable$6=aCallable$9,NATIVE_BIND=functionBindNative,bind$4=uncurryThis$c(uncurryThis$c.bind),functionBindContext=function(Be,St){return aCallable$6(Be),St===void 0?Be:NATIVE_BIND?bind$4(Be,St):function(){return Be.apply(St,arguments)}},getBuiltIn$2=getBuiltIn$7,html$2=getBuiltIn$2("document","documentElement"),uncurryThis$b=functionUncurryThis,arraySlice$1=uncurryThis$b([].slice),$TypeError$6=TypeError,validateArgumentsLength$1=function(Be,St){if(Be<St)throw new $TypeError$6("Not enough arguments");return Be},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$a=global$l,apply$1=functionApply,bind$3=functionBindContext,isCallable$8=isCallable$l,hasOwn$2=hasOwnProperty_1,fails$b=fails$l,html$1=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$4=engineIsNode,set=global$a.setImmediate,clear=global$a.clearImmediate,process$3=global$a.process,Dispatch=global$a.Dispatch,Function$1=global$a.Function,MessageChannel=global$a.MessageChannel,String$1=global$a.String,counter=0,queue$3={},ONREADYSTATECHANGE="onreadystatechange",$location,defer,channel,port;fails$b(function(){$location=global$a.location});var run=function(Be){if(hasOwn$2(queue$3,Be)){var St=queue$3[Be];delete queue$3[Be],St()}},runner=function(Be){return function(){run(Be)}},eventListener=function(Be){run(Be.data)},globalPostMessageDefer=function(Be){global$a.postMessage(String$1(Be),$location.protocol+"//"+$location.host)};(!set||!clear)&&(set=function(St){validateArgumentsLength(arguments.length,1);var Ae=isCallable$8(St)?St:Function$1(St),Ee=arraySlice(arguments,1);return queue$3[++counter]=function(){apply$1(Ae,void 0,Ee)},defer(counter),counter},clear=function(St){delete queue$3[St]},IS_NODE$4?defer=function(Be){process$3.nextTick(runner(Be))}:Dispatch&&Dispatch.now?defer=function(Be){Dispatch.now(runner(Be))}:MessageChannel&&!IS_IOS$1?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):global$a.addEventListener&&isCallable$8(global$a.postMessage)&&!global$a.importScripts&&$location&&$location.protocol!=="file:"&&!fails$b(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$a.addEventListener("message",eventListener,!1)):ONREADYSTATECHANGE in createElement("script")?defer=function(Be){html$1.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html$1.removeChild(this),run(Be)}}:defer=function(Be){setTimeout(runner(Be),0)});var task$1={set,clear},global$9=global$l,DESCRIPTORS$2=descriptors,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,safeGetBuiltIn$1=function(Be){if(!DESCRIPTORS$2)return global$9[Be];var St=getOwnPropertyDescriptor$2(global$9,Be);return St&&St.value},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(Be){var St={item:Be,next:null},Ae=this.tail;Ae?Ae.next=St:this.head=St,this.tail=St},get:function(){var Be=this.head;if(Be){var St=this.head=Be.next;return St===null&&(this.tail=null),Be.item}}};var queue$2=Queue$2,userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&typeof Pebble<"u",userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$8=global$l,safeGetBuiltIn=safeGetBuiltIn$1,bind$2=functionBindContext,macrotask=task$1.set,Queue$1=queue$2,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$3=engineIsNode,MutationObserver=global$8.MutationObserver||global$8.WebKitMutationObserver,document$2=global$8.document,process$2=global$8.process,Promise$1=global$8.Promise,microtask$1=safeGetBuiltIn("queueMicrotask"),notify$1,toggle,node$1,promise,then;if(!microtask$1){var queue$1=new Queue$1,flush=function(){var Be,St;for(IS_NODE$3&&(Be=process$2.domain)&&Be.exit();St=queue$1.get();)try{St()}catch(Ae){throw queue$1.head&&notify$1(),Ae}Be&&Be.enter()};!IS_IOS&&!IS_NODE$3&&!IS_WEBOS_WEBKIT&&MutationObserver&&document$2?(toggle=!0,node$1=document$2.createTextNode(""),new MutationObserver(flush).observe(node$1,{characterData:!0}),notify$1=function(){node$1.data=toggle=!toggle}):!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?(promise=Promise$1.resolve(void 0),promise.constructor=Promise$1,then=bind$2(promise.then,promise),notify$1=function(){then(flush)}):IS_NODE$3?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$8),notify$1=function(){macrotask(flush)}),microtask$1=function(Be){queue$1.head||notify$1(),queue$1.add(Be)}}var microtask_1=microtask$1,hostReportErrors$1=function(Be,St){try{arguments.length===1?console.error(Be):console.error(Be,St)}catch{}},perform$3=function(Be){try{return{error:!1,value:Be()}}catch(St){return{error:!0,value:St}}},global$7=global$l,promiseNativeConstructor=global$7.Promise,engineIsDeno=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",IS_DENO$1=engineIsDeno,IS_NODE$2=engineIsNode,engineIsBrowser=!IS_DENO$1&&!IS_NODE$2&&typeof window=="object"&&typeof document=="object",global$6=global$l,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$7=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$b=wellKnownSymbol$i,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version;NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype;var SPECIES$1=wellKnownSymbol$b("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$7(global$6.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var Be=inspectSource(NativePromiseConstructor$3),St=Be!==String(NativePromiseConstructor$3);if(!St&&V8_VERSION===66)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(Be)){var Ae=new NativePromiseConstructor$3(function(_e){_e(1)}),Ee=function(_e){_e(function(){},function(){})},Ce=Ae.constructor={};if(Ce[SPECIES$1]=Ee,SUBCLASSING=Ae.then(function(){})instanceof Ee,!SUBCLASSING)return!0}return!St&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING},newPromiseCapability$2={},aCallable$5=aCallable$9,$TypeError$5=TypeError,PromiseCapability=function(Be){var St,Ae;this.promise=new Be(function(Ee,Ce){if(St!==void 0||Ae!==void 0)throw new $TypeError$5("Bad Promise constructor");St=Ee,Ae=Ce}),this.resolve=aCallable$5(St),this.reject=aCallable$5(Ae)};newPromiseCapability$2.f=function(Be){return new PromiseCapability(Be)};var $$e=_export,IS_NODE$1=engineIsNode,global$5=global$l,call$d=functionCall,defineBuiltIn$5=defineBuiltIn$7,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$3=setToStringTag$4,setSpecies=setSpecies$1,aCallable$4=aCallable$9,isCallable$6=isCallable$l,isObject$3=isObject$a,anInstance=anInstance$1,speciesConstructor$1=speciesConstructor$2,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$2,InternalStateModule$1=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$1.getterFor(PROMISE),setInternalState$1=InternalStateModule$1.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$5.TypeError,document$1=global$5.document,process$1=global$5.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$5.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,isThenable=function(Be){var St;return isObject$3(Be)&&isCallable$6(St=Be.then)?St:!1},callReaction=function(Be,St){var Ae=St.value,Ee=St.state===FULFILLED,Ce=Ee?Be.ok:Be.fail,_e=Be.resolve,Te=Be.reject,Se=Be.domain,xe,Ie,Ue;try{Ce?(Ee||(St.rejection===UNHANDLED&&onHandleUnhandled(St),St.rejection=HANDLED),Ce===!0?xe=Ae:(Se&&Se.enter(),xe=Ce(Ae),Se&&(Se.exit(),Ue=!0)),xe===Be.promise?Te(new TypeError$1("Promise-chain cycle")):(Ie=isThenable(xe))?call$d(Ie,xe,_e,Te):_e(xe)):Te(Ae)}catch($e){Se&&!Ue&&Se.exit(),Te($e)}},notify=function(Be,St){Be.notified||(Be.notified=!0,microtask(function(){for(var Ae=Be.reactions,Ee;Ee=Ae.get();)callReaction(Ee,Be);Be.notified=!1,St&&!Be.rejection&&onUnhandled(Be)}))},dispatchEvent=function(Be,St,Ae){var Ee,Ce;DISPATCH_EVENT?(Ee=document$1.createEvent("Event"),Ee.promise=St,Ee.reason=Ae,Ee.initEvent(Be,!1,!0),global$5.dispatchEvent(Ee)):Ee={promise:St,reason:Ae},!NATIVE_PROMISE_REJECTION_EVENT&&(Ce=global$5["on"+Be])?Ce(Ee):Be===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",Ae)},onUnhandled=function(Be){call$d(task,global$5,function(){var St=Be.facade,Ae=Be.value,Ee=isUnhandled(Be),Ce;if(Ee&&(Ce=perform$2(function(){IS_NODE$1?process$1.emit("unhandledRejection",Ae,St):dispatchEvent(UNHANDLED_REJECTION,St,Ae)}),Be.rejection=IS_NODE$1||isUnhandled(Be)?UNHANDLED:HANDLED,Ce.error))throw Ce.value})},isUnhandled=function(Be){return Be.rejection!==HANDLED&&!Be.parent},onHandleUnhandled=function(Be){call$d(task,global$5,function(){var St=Be.facade;IS_NODE$1?process$1.emit("rejectionHandled",St):dispatchEvent(REJECTION_HANDLED,St,Be.value)})},bind$1=function(Be,St,Ae){return function(Ee){Be(St,Ee,Ae)}},internalReject=function(Be,St,Ae){Be.done||(Be.done=!0,Ae&&(Be=Ae),Be.value=St,Be.state=REJECTED,notify(Be,!0))},internalResolve=function(Be,St,Ae){if(!Be.done){Be.done=!0,Ae&&(Be=Ae);try{if(Be.facade===St)throw new TypeError$1("Promise can't be resolved itself");var Ee=isThenable(St);Ee?microtask(function(){var Ce={done:!1};try{call$d(Ee,St,bind$1(internalResolve,Ce,Be),bind$1(internalReject,Ce,Be))}catch(_e){internalReject(Ce,_e,Be)}}):(Be.value=St,Be.state=FULFILLED,notify(Be,!1))}catch(Ce){internalReject({done:!1},Ce,Be)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromiseConstructor=function(St){anInstance(this,PromisePrototype),aCallable$4(St),call$d(Internal,this);var Ae=getInternalPromiseState(this);try{St(bind$1(internalResolve,Ae),bind$1(internalReject,Ae))}catch(Ee){internalReject(Ae,Ee)}},PromisePrototype=PromiseConstructor.prototype,Internal=function(St){setInternalState$1(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})},Internal.prototype=defineBuiltIn$5(PromisePrototype,"then",function(St,Ae){var Ee=getInternalPromiseState(this),Ce=newPromiseCapability$1(speciesConstructor$1(this,PromiseConstructor));return Ee.parent=!0,Ce.ok=isCallable$6(St)?St:!0,Ce.fail=isCallable$6(Ae)&&Ae,Ce.domain=IS_NODE$1?process$1.domain:void 0,Ee.state===PENDING?Ee.reactions.add(Ce):microtask(function(){callReaction(Ce,Ee)}),Ce.promise}),OwnPromiseCapability=function(){var Be=new Internal,St=getInternalPromiseState(Be);this.promise=Be,this.resolve=bind$1(internalResolve,St),this.reject=bind$1(internalReject,St)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(Be){return Be===PromiseConstructor||Be===PromiseWrapper?new OwnPromiseCapability(Be):newGenericPromiseCapability(Be)},isCallable$6(NativePromiseConstructor$2)&&NativePromisePrototype$1!==Object.prototype)){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$5(NativePromisePrototype$1,"then",function(St,Ae){var Ee=this;return new PromiseConstructor(function(Ce,_e){call$d(nativeThen,Ee,Ce,_e)}).then(St,Ae)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch{}setPrototypeOf$1&&setPrototypeOf$1(NativePromisePrototype$1,PromisePrototype)}$$e({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$3(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var iterators={},wellKnownSymbol$a=wellKnownSymbol$i,Iterators$4=iterators,ITERATOR$5=wellKnownSymbol$a("iterator"),ArrayPrototype$1=Array.prototype,isArrayIteratorMethod$1=function(Be){return Be!==void 0&&(Iterators$4.Array===Be||ArrayPrototype$1[ITERATOR$5]===Be)},classof$4=classof$6,getMethod$4=getMethod$6,isNullOrUndefined$3=isNullOrUndefined$7,Iterators$3=iterators,wellKnownSymbol$9=wellKnownSymbol$i,ITERATOR$4=wellKnownSymbol$9("iterator"),getIteratorMethod$2=function(Be){if(!isNullOrUndefined$3(Be))return getMethod$4(Be,ITERATOR$4)||getMethod$4(Be,"@@iterator")||Iterators$3[classof$4(Be)]},call$c=functionCall,aCallable$3=aCallable$9,anObject$b=anObject$g,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$4=TypeError,getIterator$1=function(Be,St){var Ae=arguments.length<2?getIteratorMethod$1(Be):St;if(aCallable$3(Ae))return anObject$b(call$c(Ae,Be));throw new $TypeError$4(tryToString$1(Be)+" is not iterable")},call$b=functionCall,anObject$a=anObject$g,getMethod$3=getMethod$6,iteratorClose$1=function(Be,St,Ae){var Ee,Ce;anObject$a(Be);try{if(Ee=getMethod$3(Be,"return"),!Ee){if(St==="throw")throw Ae;return Ae}Ee=call$b(Ee,Be)}catch(_e){Ce=!0,Ee=_e}if(St==="throw")throw Ae;if(Ce)throw Ee;return anObject$a(Ee),Ae},bind=functionBindContext,call$a=functionCall,anObject$9=anObject$g,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike$1=lengthOfArrayLike$3,isPrototypeOf$1=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError$3=TypeError,Result=function(Be,St){this.stopped=Be,this.result=St},ResultPrototype=Result.prototype,iterate$2=function(Be,St,Ae){var Ee=Ae&&Ae.that,Ce=!!(Ae&&Ae.AS_ENTRIES),_e=!!(Ae&&Ae.IS_RECORD),Te=!!(Ae&&Ae.IS_ITERATOR),Se=!!(Ae&&Ae.INTERRUPTED),xe=bind(St,Ee),Ie,Ue,$e,Me,Re,ze,Ve,nr=function(ar){return Ie&&iteratorClose(Ie,"normal",ar),new Result(!0,ar)},Ze=function(ar){return Ce?(anObject$9(ar),Se?xe(ar[0],ar[1],nr):xe(ar[0],ar[1])):Se?xe(ar,nr):xe(ar)};if(_e)Ie=Be.iterator;else if(Te)Ie=Be;else{if(Ue=getIteratorMethod(Be),!Ue)throw new $TypeError$3(tryToString(Be)+" is not iterable");if(isArrayIteratorMethod(Ue)){for($e=0,Me=lengthOfArrayLike$1(Be);Me>$e;$e++)if(Re=Ze(Be[$e]),Re&&isPrototypeOf$1(ResultPrototype,Re))return Re;return new Result(!1)}Ie=getIterator(Be,Ue)}for(ze=_e?Be.next:Ie.next;!(Ve=call$a(ze,Ie)).done;){try{Re=Ze(Ve.value)}catch(ar){iteratorClose(Ie,"throw",ar)}if(typeof Re=="object"&&Re&&isPrototypeOf$1(ResultPrototype,Re))return Re}return new Result(!1)},wellKnownSymbol$8=wellKnownSymbol$i,ITERATOR$3=wellKnownSymbol$8("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$3]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(Be){}var checkCorrectnessOfIteration$1=function(Be,St){try{if(!St&&!SAFE_CLOSING)return!1}catch{return!1}var Ae=!1;try{var Ee={};Ee[ITERATOR$3]=function(){return{next:function(){return{done:Ae=!0}}}},Be(Ee)}catch{}return Ae},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(Be){NativePromiseConstructor$1.all(Be).then(void 0,function(){})}),$$d=_export,call$9=functionCall,aCallable$2=aCallable$9,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$d({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function Be(St){var Ae=this,Ee=newPromiseCapabilityModule$2.f(Ae),Ce=Ee.resolve,_e=Ee.reject,Te=perform$1(function(){var Se=aCallable$2(Ae.resolve),xe=[],Ie=0,Ue=1;iterate$1(St,function($e){var Me=Ie++,Re=!1;Ue++,call$9(Se,Ae,$e).then(function(ze){Re||(Re=!0,xe[Me]=ze,--Ue||Ce(xe))},_e)}),--Ue||Ce(xe)});return Te.error&&_e(Te.value),Ee.promise}});var $$c=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$5=isCallable$l,defineBuiltIn$4=defineBuiltIn$7,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype;if($$c({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(Be){return this.then(void 0,Be)}}),isCallable$5(NativePromiseConstructor)){var method=getBuiltIn$1("Promise").prototype.catch;NativePromisePrototype.catch!==method&&defineBuiltIn$4(NativePromisePrototype,"catch",method,{unsafe:!0})}var $$b=_export,call$8=functionCall,aCallable$1=aCallable$9,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$b({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function Be(St){var Ae=this,Ee=newPromiseCapabilityModule$1.f(Ae),Ce=Ee.reject,_e=perform(function(){var Te=aCallable$1(Ae.resolve);iterate(St,function(Se){call$8(Te,Ae,Se).then(Ee.resolve,Ce)})});return _e.error&&Ce(_e.value),Ee.promise}});var $$a=_export,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$a({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function Be(St){var Ae=newPromiseCapabilityModule.f(this),Ee=Ae.reject;return Ee(St),Ae.promise}});var anObject$8=anObject$g,isObject$2=isObject$a,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(Be,St){if(anObject$8(Be),isObject$2(St)&&St.constructor===Be)return St;var Ae=newPromiseCapability.f(Be),Ee=Ae.resolve;return Ee(St),Ae.promise},$$9=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$$9({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function Be(St){return promiseResolve(this,St)}});function asyncGeneratorStep(Be,St,Ae,Ee,Ce,_e,Te){try{var Se=Be[_e](Te),xe=Se.value}catch(Ie){Ae(Ie);return}Se.done?St(xe):Promise.resolve(xe).then(Ee,Ce)}function _asyncToGenerator(Be){return function(){var St=this,Ae=arguments;return new Promise(function(Ee,Ce){var _e=Be.apply(St,Ae);function Te(xe){asyncGeneratorStep(_e,Ee,Ce,Te,Se,"next",xe)}function Se(xe){asyncGeneratorStep(_e,Ee,Ce,Te,Se,"throw",xe)}Te(void 0)})}}var classof$3=classof$6,$String=String,toString$9=function(Be){if(classof$3(Be)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return $String(Be)},anObject$7=anObject$g,regexpFlags$1=function(){var Be=anObject$7(this),St="";return Be.hasIndices&&(St+="d"),Be.global&&(St+="g"),Be.ignoreCase&&(St+="i"),Be.multiline&&(St+="m"),Be.dotAll&&(St+="s"),Be.unicode&&(St+="u"),Be.unicodeSets&&(St+="v"),Be.sticky&&(St+="y"),St},fails$a=fails$l,global$4=global$l,$RegExp$2=global$4.RegExp,UNSUPPORTED_Y$2=fails$a(function(){var Be=$RegExp$2("a","y");return Be.lastIndex=2,Be.exec("abcd")!==null}),MISSED_STICKY=UNSUPPORTED_Y$2||fails$a(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$a(function(){var Be=$RegExp$2("^r","gy");return Be.lastIndex=2,Be.exec("str")!==null}),regexpStickyHelpers={BROKEN_CARET,MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$2},objectDefineProperties={},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$1=Object.keys||function Be(St){return internalObjectKeys(St,enumBugKeys$1)},DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$6=anObject$g,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$1;objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function Be(St,Ae){anObject$6(St);for(var Ee=toIndexedObject$1(Ae),Ce=objectKeys(Ae),_e=Ce.length,Te=0,Se;_e>Te;)definePropertyModule.f(St,Se=Ce[Te++],Ee[Se]);return St};var anObject$5=anObject$g,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(Be){return LT+SCRIPT+GT+Be+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(Be){Be.write(scriptTag("")),Be.close();var St=Be.parentWindow.Object;return Be=null,St},NullProtoObjectViaIFrame=function(){var Be=documentCreateElement$1("iframe"),St="java"+SCRIPT+":",Ae;return Be.style.display="none",html.appendChild(Be),Be.src=String(St),Ae=Be.contentWindow.document,Ae.open(),Ae.write(scriptTag("document.F=Object")),Ae.close(),Ae.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var Be=enumBugKeys.length;Be--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[Be]];return NullProtoObject()};hiddenKeys[IE_PROTO$1]=!0;var objectCreate=Object.create||function Be(St,Ae){var Ee;return St!==null?(EmptyConstructor[PROTOTYPE]=anObject$5(St),Ee=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,Ee[IE_PROTO$1]=St):Ee=NullProtoObject(),Ae===void 0?Ee:definePropertiesModule.f(Ee,Ae)},fails$9=fails$l,global$3=global$l,$RegExp$1=global$3.RegExp,regexpUnsupportedDotAll=fails$9(function(){var Be=$RegExp$1(".","s");return!(Be.dotAll&&Be.test(`
`)&&Be.flags==="s")}),fails$8=fails$l,global$2=global$l,$RegExp=global$2.RegExp,regexpUnsupportedNcg=fails$8(function(){var Be=$RegExp("(?<a>b)","g");return Be.exec("b").groups.a!=="b"||"b".replace(Be,"$<a>c")!=="bc"}),call$7=functionCall,uncurryThis$a=functionUncurryThis,toString$8=toString$9,regexpFlags=regexpFlags$1,stickyHelpers$1=regexpStickyHelpers,shared=shared$4,create$2=objectCreate,getInternalState$1=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$a("".charAt),indexOf=uncurryThis$a("".indexOf),replace$2=uncurryThis$a("".replace),stringSlice$5=uncurryThis$a("".slice),UPDATES_LAST_INDEX_WRONG=function(){var Be=/a/,St=/b*/g;return call$7(nativeExec,Be,"a"),call$7(nativeExec,St,"a"),Be.lastIndex!==0||St.lastIndex!==0}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(St){var Ae=this,Ee=getInternalState$1(Ae),Ce=toString$8(St),_e=Ee.raw,Te,Se,xe,Ie,Ue,$e,Me;if(_e)return _e.lastIndex=Ae.lastIndex,Te=call$7(patchedExec,_e,Ce),Ae.lastIndex=_e.lastIndex,Te;var Re=Ee.groups,ze=UNSUPPORTED_Y$1&&Ae.sticky,Ve=call$7(regexpFlags,Ae),nr=Ae.source,Ze=0,ar=Ce;if(ze&&(Ve=replace$2(Ve,"y",""),indexOf(Ve,"g")===-1&&(Ve+="g"),ar=stringSlice$5(Ce,Ae.lastIndex),Ae.lastIndex>0&&(!Ae.multiline||Ae.multiline&&charAt$3(Ce,Ae.lastIndex-1)!==`
`)&&(nr="(?: "+nr+")",ar=" "+ar,Ze++),Se=new RegExp("^(?:"+nr+")",Ve)),NPCG_INCLUDED&&(Se=new RegExp("^"+nr+"$(?!\\s)",Ve)),UPDATES_LAST_INDEX_WRONG&&(xe=Ae.lastIndex),Ie=call$7(nativeExec,ze?Se:Ae,ar),ze?Ie?(Ie.input=stringSlice$5(Ie.input,Ze),Ie[0]=stringSlice$5(Ie[0],Ze),Ie.index=Ae.lastIndex,Ae.lastIndex+=Ie[0].length):Ae.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&Ie&&(Ae.lastIndex=Ae.global?Ie.index+Ie[0].length:xe),NPCG_INCLUDED&&Ie&&Ie.length>1&&call$7(nativeReplace,Ie[0],Se,function(){for(Ue=1;Ue<arguments.length-2;Ue++)arguments[Ue]===void 0&&(Ie[Ue]=void 0)}),Ie&&Re)for(Ie.groups=$e=create$2(null),Ue=0;Ue<Re.length;Ue++)Me=Re[Ue],$e[Me[0]]=Ie[Me[1]];return Ie});var regexpExec$2=patchedExec,$$8=_export,exec=regexpExec$2;$$8({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec});var call$6=functionCall,defineBuiltIn$3=defineBuiltIn$7,regexpExec$1=regexpExec$2,fails$7=fails$l,wellKnownSymbol$7=wellKnownSymbol$i,createNonEnumerableProperty$2=createNonEnumerableProperty$5,SPECIES=wellKnownSymbol$7("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(Be,St,Ae,Ee){var Ce=wellKnownSymbol$7(Be),_e=!fails$7(function(){var Ie={};return Ie[Ce]=function(){return 7},""[Be](Ie)!==7}),Te=_e&&!fails$7(function(){var Ie=!1,Ue=/a/;return Be==="split"&&(Ue={},Ue.constructor={},Ue.constructor[SPECIES]=function(){return Ue},Ue.flags="",Ue[Ce]=/./[Ce]),Ue.exec=function(){return Ie=!0,null},Ue[Ce](""),!Ie});if(!_e||!Te||Ae){var Se=/./[Ce],xe=St(Ce,""[Be],function(Ie,Ue,$e,Me,Re){var ze=Ue.exec;return ze===regexpExec$1||ze===RegExpPrototype$2.exec?_e&&!Re?{done:!0,value:call$6(Se,Ue,$e,Me)}:{done:!0,value:call$6(Ie,$e,Ue,Me)}:{done:!1}});defineBuiltIn$3(String.prototype,Be,xe[0]),defineBuiltIn$3(RegExpPrototype$2,Ce,xe[1])}Ee&&createNonEnumerableProperty$2(RegExpPrototype$2[Ce],"sham",!0)},uncurryThis$9=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$7=toString$9,requireObjectCoercible$7=requireObjectCoercible$a,charAt$2=uncurryThis$9("".charAt),charCodeAt=uncurryThis$9("".charCodeAt),stringSlice$4=uncurryThis$9("".slice),createMethod$2=function(Be){return function(St,Ae){var Ee=toString$7(requireObjectCoercible$7(St)),Ce=toIntegerOrInfinity$1(Ae),_e=Ee.length,Te,Se;return Ce<0||Ce>=_e?Be?"":void 0:(Te=charCodeAt(Ee,Ce),Te<55296||Te>56319||Ce+1===_e||(Se=charCodeAt(Ee,Ce+1))<56320||Se>57343?Be?charAt$2(Ee,Ce):Te:Be?stringSlice$4(Ee,Ce,Ce+2):(Te-55296<<10)+(Se-56320)+65536)}},stringMultibyte={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$3=function(Be,St,Ae){return St+(Ae?charAt$1(Be,St).length:1)},call$5=functionCall,anObject$4=anObject$g,isCallable$4=isCallable$l,classof$2=classofRaw$2,regexpExec=regexpExec$2,$TypeError$2=TypeError,regexpExecAbstract=function(Be,St){var Ae=Be.exec;if(isCallable$4(Ae)){var Ee=call$5(Ae,Be,St);return Ee!==null&&anObject$4(Ee),Ee}if(classof$2(Be)==="RegExp")return call$5(regexpExec,Be,St);throw new $TypeError$2("RegExp#exec called on incompatible receiver")},call$4=functionCall,fixRegExpWellKnownSymbolLogic$2=fixRegexpWellKnownSymbolLogic,anObject$3=anObject$g,isNullOrUndefined$2=isNullOrUndefined$7,toLength$4=toLength$6,toString$6=toString$9,requireObjectCoercible$6=requireObjectCoercible$a,getMethod$2=getMethod$6,advanceStringIndex$2=advanceStringIndex$3,regExpExec$2=regexpExecAbstract;fixRegExpWellKnownSymbolLogic$2("match",function(Be,St,Ae){return[function(Ce){var _e=requireObjectCoercible$6(this),Te=isNullOrUndefined$2(Ce)?void 0:getMethod$2(Ce,Be);return Te?call$4(Te,Ce,_e):new RegExp(Ce)[Be](toString$6(_e))},function(Ee){var Ce=anObject$3(this),_e=toString$6(Ee),Te=Ae(St,Ce,_e);if(Te.done)return Te.value;if(!Ce.global)return regExpExec$2(Ce,_e);var Se=Ce.unicode;Ce.lastIndex=0;for(var xe=[],Ie=0,Ue;(Ue=regExpExec$2(Ce,_e))!==null;){var $e=toString$6(Ue[0]);xe[Ie]=$e,$e===""&&(Ce.lastIndex=advanceStringIndex$2(_e,toLength$4(Ce.lastIndex),Se)),Ie++}return Ie===0?null:xe}]});var uncurryThis$8=functionUncurryThis,toObject$2=toObject$4,floor=Math.floor,charAt=uncurryThis$8("".charAt),replace$1=uncurryThis$8("".replace),stringSlice$3=uncurryThis$8("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(Be,St,Ae,Ee,Ce,_e){var Te=Ae+Be.length,Se=Ee.length,xe=SUBSTITUTION_SYMBOLS_NO_NAMED;return Ce!==void 0&&(Ce=toObject$2(Ce),xe=SUBSTITUTION_SYMBOLS),replace$1(_e,xe,function(Ie,Ue){var $e;switch(charAt(Ue,0)){case"$":return"$";case"&":return Be;case"`":return stringSlice$3(St,0,Ae);case"'":return stringSlice$3(St,Te);case"<":$e=Ce[stringSlice$3(Ue,1,-1)];break;default:var Me=+Ue;if(Me===0)return Ie;if(Me>Se){var Re=floor(Me/10);return Re===0?Ie:Re<=Se?Ee[Re-1]===void 0?charAt(Ue,1):Ee[Re-1]+charAt(Ue,1):Ie}$e=Ee[Me-1]}return $e===void 0?"":$e})},apply=functionApply,call$3=functionCall,uncurryThis$7=functionUncurryThis,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,fails$6=fails$l,anObject$2=anObject$g,isCallable$3=isCallable$l,isNullOrUndefined$1=isNullOrUndefined$7,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength$3=toLength$6,toString$5=toString$9,requireObjectCoercible$5=requireObjectCoercible$a,advanceStringIndex$1=advanceStringIndex$3,getMethod$1=getMethod$6,getSubstitution=getSubstitution$1,regExpExec$1=regexpExecAbstract,wellKnownSymbol$6=wellKnownSymbol$i,REPLACE=wellKnownSymbol$6("replace"),max=Math.max,min$3=Math.min,concat=uncurryThis$7([].concat),push$1=uncurryThis$7([].push),stringIndexOf$1=uncurryThis$7("".indexOf),stringSlice$2=uncurryThis$7("".slice),maybeToString=function(Be){return Be===void 0?Be:String(Be)},REPLACE_KEEPS_$0=function(){return"a".replace(/./,"$0")==="$0"}(),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=function(){return/./[REPLACE]?/./[REPLACE]("a","$0")==="":!1}(),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$6(function(){var Be=/./;return Be.exec=function(){var St=[];return St.groups={a:"7"},St},"".replace(Be,"$<a>")!=="7"});fixRegExpWellKnownSymbolLogic$1("replace",function(Be,St,Ae){var Ee=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(_e,Te){var Se=requireObjectCoercible$5(this),xe=isNullOrUndefined$1(_e)?void 0:getMethod$1(_e,REPLACE);return xe?call$3(xe,_e,Se,Te):call$3(St,toString$5(Se),_e,Te)},function(Ce,_e){var Te=anObject$2(this),Se=toString$5(Ce);if(typeof _e=="string"&&stringIndexOf$1(_e,Ee)===-1&&stringIndexOf$1(_e,"$<")===-1){var xe=Ae(St,Te,Se,_e);if(xe.done)return xe.value}var Ie=isCallable$3(_e);Ie||(_e=toString$5(_e));var Ue=Te.global,$e;Ue&&($e=Te.unicode,Te.lastIndex=0);for(var Me=[],Re;Re=regExpExec$1(Te,Se),!(Re===null||(push$1(Me,Re),!Ue));){var ze=toString$5(Re[0]);ze===""&&(Te.lastIndex=advanceStringIndex$1(Se,toLength$3(Te.lastIndex),$e))}for(var Ve="",nr=0,Ze=0;Ze<Me.length;Ze++){Re=Me[Ze];for(var ar=toString$5(Re[0]),fr=max(min$3(toIntegerOrInfinity(Re.index),Se.length),0),Ye=[],Ar,Oe=1;Oe<Re.length;Oe++)push$1(Ye,maybeToString(Re[Oe]));var Je=Re.groups;if(Ie){var We=concat([ar],Ye,fr,Se);Je!==void 0&&push$1(We,Je),Ar=toString$5(apply(_e,void 0,We))}else Ar=getSubstitution(ar,Se,fr,Ye,Je,_e);fr>=nr&&(Ve+=stringSlice$2(Se,nr,fr)+Ar,nr=fr+ar.length)}return Ve+stringSlice$2(Se,nr)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);var isObject$1=isObject$a,classof$1=classofRaw$2,wellKnownSymbol$5=wellKnownSymbol$i,MATCH$1=wellKnownSymbol$5("match"),isRegexp=function(Be){var St;return isObject$1(Be)&&((St=Be[MATCH$1])!==void 0?!!St:classof$1(Be)==="RegExp")},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(Be){if(isRegExp(Be))throw new $TypeError$1("The method doesn't accept regular expressions");return Be},wellKnownSymbol$4=wellKnownSymbol$i,MATCH=wellKnownSymbol$4("match"),correctIsRegexpLogic=function(Be){var St=/./;try{"/./"[Be](St)}catch{try{return St[MATCH]=!1,"/./"[Be](St)}catch{}}return!1},$$7=_export,uncurryThis$6=functionUncurryThisClause,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,toLength$2=toLength$6,toString$4=toString$9,notARegExp$2=notARegexp,requireObjectCoercible$4=requireObjectCoercible$a,correctIsRegExpLogic$2=correctIsRegexpLogic,stringSlice$1=uncurryThis$6("".slice),min$2=Math.min,CORRECT_IS_REGEXP_LOGIC$1=correctIsRegExpLogic$2("startsWith"),MDN_POLYFILL_BUG$1=!CORRECT_IS_REGEXP_LOGIC$1&&!!function(){var Be=getOwnPropertyDescriptor$1(String.prototype,"startsWith");return Be&&!Be.writable}();$$7({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG$1&&!CORRECT_IS_REGEXP_LOGIC$1},{startsWith:function Be(St){var Ae=toString$4(requireObjectCoercible$4(this));notARegExp$2(St);var Ee=toLength$2(min$2(arguments.length>1?arguments[1]:void 0,Ae.length)),Ce=toString$4(St);return stringSlice$1(Ae,Ee,Ee+Ce.length)===Ce}});var wellKnownSymbol$3=wellKnownSymbol$i,create$1=objectCreate,defineProperty$1=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$3("unscopables"),ArrayPrototype=Array.prototype;ArrayPrototype[UNSCOPABLES]===void 0&&defineProperty$1(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)});var addToUnscopables$1=function(Be){ArrayPrototype[UNSCOPABLES][Be]=!0},fails$5=fails$l,correctPrototypeGetter=!fails$5(function(){function Be(){}return Be.prototype.constructor=null,Object.getPrototypeOf(new Be)!==Be.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$2=isCallable$l,toObject$1=toObject$4,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(Be){var St=toObject$1(Be);if(hasOwn$1(St,IE_PROTO))return St[IE_PROTO];var Ae=St.constructor;return isCallable$2(Ae)&&St instanceof Ae?Ae.prototype:St instanceof $Object?ObjectPrototype:null},fails$4=fails$l,isCallable$1=isCallable$l,isObject=isObject$a,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$2=defineBuiltIn$7,wellKnownSymbol$2=wellKnownSymbol$i,ITERATOR$2=wellKnownSymbol$2("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject(IteratorPrototype$2)||fails$4(function(){var Be={};return IteratorPrototype$2[ITERATOR$2].call(Be)!==Be});NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={}),isCallable$1(IteratorPrototype$2[ITERATOR$2])||defineBuiltIn$2(IteratorPrototype$2,ITERATOR$2,function(){return this});var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$2=setToStringTag$4,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(Be,St,Ae,Ee){var Ce=St+" Iterator";return Be.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!Ee,Ae)}),setToStringTag$2(Be,Ce,!1),Iterators$2[Ce]=returnThis$1,Be},$$6=_export,call$2=functionCall,FunctionName=functionName,isCallable=isCallable$l,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag$1=setToStringTag$4,createNonEnumerableProperty$1=createNonEnumerableProperty$5,defineBuiltIn$1=defineBuiltIn$7,wellKnownSymbol$1=wellKnownSymbol$i,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$2=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(Be,St,Ae,Ee,Ce,_e,Te){createIteratorConstructor(Ae,St,Ee);var Se=function(Ze){if(Ze===Ce&&Me)return Me;if(!BUGGY_SAFARI_ITERATORS&&Ze&&Ze in Ue)return Ue[Ze];switch(Ze){case KEYS:return function(){return new Ae(this,Ze)};case VALUES:return function(){return new Ae(this,Ze)};case ENTRIES:return function(){return new Ae(this,Ze)}}return function(){return new Ae(this)}},xe=St+" Iterator",Ie=!1,Ue=Be.prototype,$e=Ue[ITERATOR$1]||Ue["@@iterator"]||Ce&&Ue[Ce],Me=!BUGGY_SAFARI_ITERATORS&&$e||Se(Ce),Re=St==="Array"&&Ue.entries||$e,ze,Ve,nr;if(Re&&(ze=getPrototypeOf(Re.call(new Be)),ze!==Object.prototype&&ze.next&&(getPrototypeOf(ze)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(ze,IteratorPrototype):isCallable(ze[ITERATOR$1])||defineBuiltIn$1(ze,ITERATOR$1,returnThis)),setToStringTag$1(ze,xe,!0))),PROPER_FUNCTION_NAME$2&&Ce===VALUES&&$e&&$e.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(Ue,"name",VALUES):(Ie=!0,Me=function(){return call$2($e,this)})),Ce)if(Ve={values:Se(VALUES),keys:_e?Me:Se(KEYS),entries:Se(ENTRIES)},Te)for(nr in Ve)(BUGGY_SAFARI_ITERATORS||Ie||!(nr in Ue))&&defineBuiltIn$1(Ue,nr,Ve[nr]);else $$6({target:St,proto:!0,forced:BUGGY_SAFARI_ITERATORS||Ie},Ve);return Ue[ITERATOR$1]!==Me&&defineBuiltIn$1(Ue,ITERATOR$1,Me,{name:Ce}),Iterators$1[St]=Me,Ve},createIterResultObject$1=function(Be,St){return{value:Be,done:St}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(Be,St){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(Be),index:0,kind:St})},function(){var Be=getInternalState(this),St=Be.target,Ae=Be.index++;if(!St||Ae>=St.length)return Be.target=void 0,createIterResultObject(void 0,!0);switch(Be.kind){case"keys":return createIterResultObject(Ae,!1);case"values":return createIterResultObject(St[Ae],!1)}return createIterResultObject([Ae,St[Ae]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&values.name!=="values")try{defineProperty(values,"name",{value:"values"})}catch(Be){}var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1=global$l,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$5,setToStringTag=setToStringTag$4,wellKnownSymbol=wellKnownSymbol$i,ITERATOR=wellKnownSymbol("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(Be,St){if(Be){if(Be[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(Be,ITERATOR,ArrayValues)}catch{Be[ITERATOR]=ArrayValues}if(setToStringTag(Be,St,!0),DOMIterables[St]){for(var Ae in ArrayIteratorMethods)if(Be[Ae]!==ArrayIteratorMethods[Ae])try{createNonEnumerableProperty(Be,Ae,ArrayIteratorMethods[Ae])}catch{Be[Ae]=ArrayIteratorMethods[Ae]}}}};for(var COLLECTION_NAME in DOMIterables)handlePrototype(global$1[COLLECTION_NAME]&&global$1[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");function toPrimitive(Be,St){if(_typeof$3(Be)!="object"||!Be)return Be;var Ae=Be[Symbol.toPrimitive];if(Ae!==void 0){var Ee=Ae.call(Be,St||"default");if(_typeof$3(Ee)!="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(St==="string"?String:Number)(Be)}function toPropertyKey(Be){var St=toPrimitive(Be,"string");return _typeof$3(St)=="symbol"?St:String(St)}function _defineProperty(Be,St,Ae){return St=toPropertyKey(St),St in Be?Object.defineProperty(Be,St,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):Be[St]=Ae,Be}var aCallable=aCallable$9,toObject=toObject$4,IndexedObject=indexedObject,lengthOfArrayLike=lengthOfArrayLike$3,$TypeError=TypeError,REDUCE_EMPTY="Reduce of empty array with no initial value",createMethod$1=function(Be){return function(St,Ae,Ee,Ce){var _e=toObject(St),Te=IndexedObject(_e),Se=lengthOfArrayLike(_e);if(aCallable(Ae),Se===0&&Ee<2)throw new $TypeError(REDUCE_EMPTY);var xe=Be?Se-1:0,Ie=Be?-1:1;if(Ee<2)for(;;){if(xe in Te){Ce=Te[xe],xe+=Ie;break}if(xe+=Ie,Be?xe<0:Se<=xe)throw new $TypeError(REDUCE_EMPTY)}for(;Be?xe>=0:Se>xe;xe+=Ie)xe in Te&&(Ce=Ae(Ce,Te[xe],xe,_e));return Ce}},arrayReduce={left:createMethod$1(!1),right:createMethod$1(!0)},fails$3=fails$l,arrayMethodIsStrict$2=function(Be,St){var Ae=[][Be];return!!Ae&&fails$3(function(){Ae.call(null,St||function(){return 1},1)})},$$5=_export,$reduce=arrayReduce.left,arrayMethodIsStrict$1=arrayMethodIsStrict$2,CHROME_VERSION=engineV8Version,IS_NODE=engineIsNode,CHROME_BUG=!IS_NODE&&CHROME_VERSION>79&&CHROME_VERSION<83,FORCED$1=CHROME_BUG||!arrayMethodIsStrict$1("reduce");$$5({target:"Array",proto:!0,forced:FORCED$1},{reduce:function Be(St){var Ae=arguments.length;return $reduce(this,St,Ae,Ae>1?arguments[1]:void 0)}});var $$4=_export,uncurryThis$5=functionUncurryThisClause,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,toLength$1=toLength$6,toString$3=toString$9,notARegExp$1=notARegexp,requireObjectCoercible$3=requireObjectCoercible$a,correctIsRegExpLogic$1=correctIsRegexpLogic,slice=uncurryThis$5("".slice),min$1=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic$1("endsWith"),MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var Be=getOwnPropertyDescriptor(String.prototype,"endsWith");return Be&&!Be.writable}();$$4({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{endsWith:function Be(St){var Ae=toString$3(requireObjectCoercible$3(this));notARegExp$1(St);var Ee=arguments.length>1?arguments[1]:void 0,Ce=Ae.length,_e=Ee===void 0?Ce:min$1(toLength$1(Ee),Ce),Te=toString$3(St);return slice(Ae,_e-Te.length,_e)===Te}});var call$1=functionCall,uncurryThis$4=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,anObject$1=anObject$g,isNullOrUndefined=isNullOrUndefined$7,requireObjectCoercible$2=requireObjectCoercible$a,speciesConstructor=speciesConstructor$2,advanceStringIndex=advanceStringIndex$3,toLength=toLength$6,toString$2=toString$9,getMethod=getMethod$6,regExpExec=regexpExecAbstract,stickyHelpers=regexpStickyHelpers,fails$2=fails$l,UNSUPPORTED_Y=stickyHelpers.UNSUPPORTED_Y,MAX_UINT32=4294967295,min=Math.min,push=uncurryThis$4([].push),stringSlice=uncurryThis$4("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$2(function(){var Be=/(?:)/,St=Be.exec;Be.exec=function(){return St.apply(this,arguments)};var Ae="ab".split(Be);return Ae.length!==2||Ae[0]!=="a"||Ae[1]!=="b"}),BUGGY="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;fixRegExpWellKnownSymbolLogic("split",function(Be,St,Ae){var Ee="0".split(void 0,0).length?function(Ce,_e){return Ce===void 0&&_e===0?[]:call$1(St,this,Ce,_e)}:St;return[function(_e,Te){var Se=requireObjectCoercible$2(this),xe=isNullOrUndefined(_e)?void 0:getMethod(_e,Be);return xe?call$1(xe,_e,Se,Te):call$1(Ee,toString$2(Se),_e,Te)},function(Ce,_e){var Te=anObject$1(this),Se=toString$2(Ce);if(!BUGGY){var xe=Ae(Ee,Te,Se,_e,Ee!==St);if(xe.done)return xe.value}var Ie=speciesConstructor(Te,RegExp),Ue=Te.unicode,$e=(Te.ignoreCase?"i":"")+(Te.multiline?"m":"")+(Te.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),Me=new Ie(UNSUPPORTED_Y?"^(?:"+Te.source+")":Te,$e),Re=_e===void 0?MAX_UINT32:_e>>>0;if(Re===0)return[];if(Se.length===0)return regExpExec(Me,Se)===null?[Se]:[];for(var ze=0,Ve=0,nr=[];Ve<Se.length;){Me.lastIndex=UNSUPPORTED_Y?0:Ve;var Ze=regExpExec(Me,UNSUPPORTED_Y?stringSlice(Se,Ve):Se),ar;if(Ze===null||(ar=min(toLength(Me.lastIndex+(UNSUPPORTED_Y?Ve:0)),Se.length))===ze)Ve=advanceStringIndex(Se,Ve,Ue);else{if(push(nr,stringSlice(Se,ze,Ve)),nr.length===Re)return nr;for(var fr=1;fr<=Ze.length-1;fr++)if(push(nr,Ze[fr]),nr.length===Re)return nr;Ve=ze=ar}}return push(nr,stringSlice(Se,ze)),nr}]},BUGGY||!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y);var raf$1={exports:{}},performanceNow={exports:{}};(function(){var Be,St,Ae,Ee,Ce,_e;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow.exports=function(){return(Be()-Ce)/1e6},St=process.hrtime,Be=function(){var Te;return Te=St(),Te[0]*1e9+Te[1]},Ee=Be(),_e=process.uptime()*1e9,Ce=Ee-_e):Date.now?(performanceNow.exports=function(){return Date.now()-Ae},Ae=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-Ae},Ae=new Date().getTime())}).call(commonjsGlobal);for(var performanceNowExports=performanceNow.exports,now=performanceNowExports,root=typeof window>"u"?commonjsGlobal:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root["request"+suffix],caf=root["cancel"+suffix]||root["cancelRequest"+suffix],i$1=0;!raf&&i$1<vendors.length;i$1++)raf=root[vendors[i$1]+"Request"+suffix],caf=root[vendors[i$1]+"Cancel"+suffix]||root[vendors[i$1]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id=0,queue=[],frameDuration=1e3/60;raf=function(Be){if(queue.length===0){var St=now(),Ae=Math.max(0,frameDuration-(St-last));last=Ae+St,setTimeout(function(){var Ee=queue.slice(0);queue.length=0;for(var Ce=0;Ce<Ee.length;Ce++)if(!Ee[Ce].cancelled)try{Ee[Ce].callback(last)}catch(_e){setTimeout(function(){throw _e},0)}},Math.round(Ae))}return queue.push({handle:++id,callback:Be,cancelled:!1}),id},caf=function(Be){for(var St=0;St<queue.length;St++)queue[St].handle===Be&&(queue[St].cancelled=!0)}}raf$1.exports=function(Be){return raf.call(root,Be)},raf$1.exports.cancel=function(){caf.apply(root,arguments)},raf$1.exports.polyfill=function(Be){Be||(Be=root),Be.requestAnimationFrame=raf,Be.cancelAnimationFrame=caf};var rafExports=raf$1.exports;const requestAnimationFrame=getDefaultExportFromCjs(rafExports);var whitespaces$2=`	
\v\f\r                 \u2028\u2029\uFEFF`,uncurryThis$3=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$a,toString$1=toString$9,whitespaces$1=whitespaces$2,replace=uncurryThis$3("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod=function(Be){return function(St){var Ae=toString$1(requireObjectCoercible$1(St));return Be&1&&(Ae=replace(Ae,ltrim,"")),Be&2&&(Ae=replace(Ae,rtrim,"$1")),Ae}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},PROPER_FUNCTION_NAME$1=functionName.PROPER,fails$1=fails$l,whitespaces=whitespaces$2,non="​…᠎",stringTrimForced=function(Be){return fails$1(function(){return!!whitespaces[Be]()||non[Be]()!==non||PROPER_FUNCTION_NAME$1&&whitespaces[Be].name!==Be})},$$3=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$3({target:"String",proto:!0,forced:forcedStringTrimMethod("trim")},{trim:function Be(){return $trim(this)}});var rgbcolor=function(Be){this.ok=!1,this.alpha=1,Be.charAt(0)=="#"&&(Be=Be.substr(1,6)),Be=Be.replace(/ /g,""),Be=Be.toLowerCase();var St={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",rebeccapurple:"663399",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"};Be=St[Be]||Be;for(var Ae=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(xe){return[parseInt(xe[1]),parseInt(xe[2]),parseInt(xe[3]),parseFloat(xe[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(xe){return[parseInt(xe[1]),parseInt(xe[2]),parseInt(xe[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(xe){return[parseInt(xe[1],16),parseInt(xe[2],16),parseInt(xe[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(xe){return[parseInt(xe[1]+xe[1],16),parseInt(xe[2]+xe[2],16),parseInt(xe[3]+xe[3],16)]}}],Ee=0;Ee<Ae.length;Ee++){var Ce=Ae[Ee].re,_e=Ae[Ee].process,Te=Ce.exec(Be);if(Te){var Se=_e(Te);this.r=Se[0],this.g=Se[1],this.b=Se[2],Se.length>3&&(this.alpha=Se[3]),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.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var xe=this.r.toString(16),Ie=this.g.toString(16),Ue=this.b.toString(16);return xe.length==1&&(xe="0"+xe),Ie.length==1&&(Ie="0"+Ie),Ue.length==1&&(Ue="0"+Ue),"#"+xe+Ie+Ue},this.getHelpXML=function(){for(var xe=new Array,Ie=0;Ie<Ae.length;Ie++)for(var Ue=Ae[Ie].example,$e=0;$e<Ue.length;$e++)xe[xe.length]=Ue[$e];for(var Me in St)xe[xe.length]=Me;var Re=document.createElement("ul");Re.setAttribute("id","rgbcolor-examples");for(var Ie=0;Ie<xe.length;Ie++)try{var ze=document.createElement("li"),Ve=new RGBColor(xe[Ie]),nr=document.createElement("div");nr.style.cssText="margin: 3px; border: 1px solid black; background:"+Ve.toHex()+"; color:"+Ve.toHex(),nr.appendChild(document.createTextNode("test"));var Ze=document.createTextNode(" "+xe[Ie]+" -> "+Ve.toRGB()+" -> "+Ve.toHex());ze.appendChild(nr),ze.appendChild(Ze),Re.appendChild(ze)}catch{}return Re}};const RGBColor$1=getDefaultExportFromCjs(rgbcolor);var $$2=_export,uncurryThis$2=functionUncurryThisClause,$indexOf=arrayIncludes.indexOf,arrayMethodIsStrict=arrayMethodIsStrict$2,nativeIndexOf=uncurryThis$2([].indexOf),NEGATIVE_ZERO=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED=NEGATIVE_ZERO||!arrayMethodIsStrict("indexOf");$$2({target:"Array",proto:!0,forced:FORCED},{indexOf:function Be(St){var Ae=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO?nativeIndexOf(this,St,Ae)||0:$indexOf(this,St,Ae)}});var $$1=_export,uncurryThis$1=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$a,toString=toString$9,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$1("".indexOf);$$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function Be(St){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(St)),arguments.length>1?arguments[1]:void 0)}});var classof=classofRaw$2,isArray$1=Array.isArray||function Be(St){return classof(St)==="Array"},$=_export,uncurryThis=functionUncurryThis,isArray=isArray$1,nativeReverse=uncurryThis([].reverse),test=[1,2];$({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function Be(){return isArray(this)&&(this.length=this.length),nativeReverse(this)}});/*! *****************************************************************************
	Copyright (c) Microsoft Corporation.

	Permission to use, copy, modify, and/or distribute this software for any
	purpose with or without fee is hereby granted.

	THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
	REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
	INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
	LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
	OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	PERFORMANCE OF THIS SOFTWARE.
	***************************************************************************** */var t=function(Be,St){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ee){Ae.__proto__=Ee}||function(Ae,Ee){for(var Ce in Ee)Object.prototype.hasOwnProperty.call(Ee,Ce)&&(Ae[Ce]=Ee[Ce])})(Be,St)};function r(Be,St){if(typeof St!="function"&&St!==null)throw new TypeError("Class extends value "+String(St)+" is not a constructor or null");function Ae(){this.constructor=Be}t(Be,St),Be.prototype=St===null?Object.create(St):(Ae.prototype=St.prototype,new Ae)}function e(Be){var St="";Array.isArray(Be)||(Be=[Be]);for(var Ae=0;Ae<Be.length;Ae++){var Ee=Be[Ae];if(Ee.type===_$1.CLOSE_PATH)St+="z";else if(Ee.type===_$1.HORIZ_LINE_TO)St+=(Ee.relative?"h":"H")+Ee.x;else if(Ee.type===_$1.VERT_LINE_TO)St+=(Ee.relative?"v":"V")+Ee.y;else if(Ee.type===_$1.MOVE_TO)St+=(Ee.relative?"m":"M")+Ee.x+" "+Ee.y;else if(Ee.type===_$1.LINE_TO)St+=(Ee.relative?"l":"L")+Ee.x+" "+Ee.y;else if(Ee.type===_$1.CURVE_TO)St+=(Ee.relative?"c":"C")+Ee.x1+" "+Ee.y1+" "+Ee.x2+" "+Ee.y2+" "+Ee.x+" "+Ee.y;else if(Ee.type===_$1.SMOOTH_CURVE_TO)St+=(Ee.relative?"s":"S")+Ee.x2+" "+Ee.y2+" "+Ee.x+" "+Ee.y;else if(Ee.type===_$1.QUAD_TO)St+=(Ee.relative?"q":"Q")+Ee.x1+" "+Ee.y1+" "+Ee.x+" "+Ee.y;else if(Ee.type===_$1.SMOOTH_QUAD_TO)St+=(Ee.relative?"t":"T")+Ee.x+" "+Ee.y;else{if(Ee.type!==_$1.ARC)throw new Error('Unexpected command type "'+Ee.type+'" at index '+Ae+".");St+=(Ee.relative?"a":"A")+Ee.rX+" "+Ee.rY+" "+Ee.xRot+" "+ +Ee.lArcFlag+" "+ +Ee.sweepFlag+" "+Ee.x+" "+Ee.y}}return St}function i(Be,St){var Ae=Be[0],Ee=Be[1];return[Ae*Math.cos(St)-Ee*Math.sin(St),Ae*Math.sin(St)+Ee*Math.cos(St)]}function a(){for(var Be=[],St=0;St<arguments.length;St++)Be[St]=arguments[St];for(var Ae=0;Ae<Be.length;Ae++)if(typeof Be[Ae]!="number")throw new Error("assertNumbers arguments["+Ae+"] is not a number. "+typeof Be[Ae]+" == typeof "+Be[Ae]);return!0}var n=Math.PI;function o(Be,St,Ae){Be.lArcFlag=Be.lArcFlag===0?0:1,Be.sweepFlag=Be.sweepFlag===0?0:1;var Ee=Be.rX,Ce=Be.rY,_e=Be.x,Te=Be.y;Ee=Math.abs(Be.rX),Ce=Math.abs(Be.rY);var Se=i([(St-_e)/2,(Ae-Te)/2],-Be.xRot/180*n),xe=Se[0],Ie=Se[1],Ue=Math.pow(xe,2)/Math.pow(Ee,2)+Math.pow(Ie,2)/Math.pow(Ce,2);1<Ue&&(Ee*=Math.sqrt(Ue),Ce*=Math.sqrt(Ue)),Be.rX=Ee,Be.rY=Ce;var $e=Math.pow(Ee,2)*Math.pow(Ie,2)+Math.pow(Ce,2)*Math.pow(xe,2),Me=(Be.lArcFlag!==Be.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(Ee,2)*Math.pow(Ce,2)-$e)/$e)),Re=Ee*Ie/Ce*Me,ze=-Ce*xe/Ee*Me,Ve=i([Re,ze],Be.xRot/180*n);Be.cX=Ve[0]+(St+_e)/2,Be.cY=Ve[1]+(Ae+Te)/2,Be.phi1=Math.atan2((Ie-ze)/Ce,(xe-Re)/Ee),Be.phi2=Math.atan2((-Ie-ze)/Ce,(-xe-Re)/Ee),Be.sweepFlag===0&&Be.phi2>Be.phi1&&(Be.phi2-=2*n),Be.sweepFlag===1&&Be.phi2<Be.phi1&&(Be.phi2+=2*n),Be.phi1*=180/n,Be.phi2*=180/n}function s(Be,St,Ae){a(Be,St,Ae);var Ee=Be*Be+St*St-Ae*Ae;if(0>Ee)return[];if(Ee===0)return[[Be*Ae/(Be*Be+St*St),St*Ae/(Be*Be+St*St)]];var Ce=Math.sqrt(Ee);return[[(Be*Ae+St*Ce)/(Be*Be+St*St),(St*Ae-Be*Ce)/(Be*Be+St*St)],[(Be*Ae-St*Ce)/(Be*Be+St*St),(St*Ae+Be*Ce)/(Be*Be+St*St)]]}var u,h=Math.PI/180;function c$1(Be,St,Ae){return(1-Ae)*Be+Ae*St}function y(Be,St,Ae,Ee){return Be+Math.cos(Ee/180*n)*St+Math.sin(Ee/180*n)*Ae}function p(Be,St,Ae,Ee){var Ce=1e-6,_e=St-Be,Te=Ae-St,Se=3*_e+3*(Ee-Ae)-6*Te,xe=6*(Te-_e),Ie=3*_e;return Math.abs(Se)<Ce?[-Ie/xe]:function(Ue,$e,Me){Me===void 0&&(Me=1e-6);var Re=Ue*Ue/4-$e;if(Re<-Me)return[];if(Re<=Me)return[-Ue/2];var ze=Math.sqrt(Re);return[-Ue/2-ze,-Ue/2+ze]}(xe/Se,Ie/Se,Ce)}function m$1(Be,St,Ae,Ee,Ce){var _e=1-Ce;return Be*(_e*_e*_e)+St*(3*_e*_e*Ce)+Ae*(3*_e*Ce*Ce)+Ee*(Ce*Ce*Ce)}(function(Be){function St(){return Ce(function(Se,xe,Ie){return Se.relative&&(Se.x1!==void 0&&(Se.x1+=xe),Se.y1!==void 0&&(Se.y1+=Ie),Se.x2!==void 0&&(Se.x2+=xe),Se.y2!==void 0&&(Se.y2+=Ie),Se.x!==void 0&&(Se.x+=xe),Se.y!==void 0&&(Se.y+=Ie),Se.relative=!1),Se})}function Ae(){var Se=NaN,xe=NaN,Ie=NaN,Ue=NaN;return Ce(function($e,Me,Re){return $e.type&_$1.SMOOTH_CURVE_TO&&($e.type=_$1.CURVE_TO,Se=isNaN(Se)?Me:Se,xe=isNaN(xe)?Re:xe,$e.x1=$e.relative?Me-Se:2*Me-Se,$e.y1=$e.relative?Re-xe:2*Re-xe),$e.type&_$1.CURVE_TO?(Se=$e.relative?Me+$e.x2:$e.x2,xe=$e.relative?Re+$e.y2:$e.y2):(Se=NaN,xe=NaN),$e.type&_$1.SMOOTH_QUAD_TO&&($e.type=_$1.QUAD_TO,Ie=isNaN(Ie)?Me:Ie,Ue=isNaN(Ue)?Re:Ue,$e.x1=$e.relative?Me-Ie:2*Me-Ie,$e.y1=$e.relative?Re-Ue:2*Re-Ue),$e.type&_$1.QUAD_TO?(Ie=$e.relative?Me+$e.x1:$e.x1,Ue=$e.relative?Re+$e.y1:$e.y1):(Ie=NaN,Ue=NaN),$e})}function Ee(){var Se=NaN,xe=NaN;return Ce(function(Ie,Ue,$e){if(Ie.type&_$1.SMOOTH_QUAD_TO&&(Ie.type=_$1.QUAD_TO,Se=isNaN(Se)?Ue:Se,xe=isNaN(xe)?$e:xe,Ie.x1=Ie.relative?Ue-Se:2*Ue-Se,Ie.y1=Ie.relative?$e-xe:2*$e-xe),Ie.type&_$1.QUAD_TO){Se=Ie.relative?Ue+Ie.x1:Ie.x1,xe=Ie.relative?$e+Ie.y1:Ie.y1;var Me=Ie.x1,Re=Ie.y1;Ie.type=_$1.CURVE_TO,Ie.x1=((Ie.relative?0:Ue)+2*Me)/3,Ie.y1=((Ie.relative?0:$e)+2*Re)/3,Ie.x2=(Ie.x+2*Me)/3,Ie.y2=(Ie.y+2*Re)/3}else Se=NaN,xe=NaN;return Ie})}function Ce(Se){var xe=0,Ie=0,Ue=NaN,$e=NaN;return function(Me){if(isNaN(Ue)&&!(Me.type&_$1.MOVE_TO))throw new Error("path must start with moveto");var Re=Se(Me,xe,Ie,Ue,$e);return Me.type&_$1.CLOSE_PATH&&(xe=Ue,Ie=$e),Me.x!==void 0&&(xe=Me.relative?xe+Me.x:Me.x),Me.y!==void 0&&(Ie=Me.relative?Ie+Me.y:Me.y),Me.type&_$1.MOVE_TO&&(Ue=xe,$e=Ie),Re}}function _e(Se,xe,Ie,Ue,$e,Me){return a(Se,xe,Ie,Ue,$e,Me),Ce(function(Re,ze,Ve,nr){var Ze=Re.x1,ar=Re.x2,fr=Re.relative&&!isNaN(nr),Ye=Re.x!==void 0?Re.x:fr?0:ze,Ar=Re.y!==void 0?Re.y:fr?0:Ve;function Oe(lr){return lr*lr}Re.type&_$1.HORIZ_LINE_TO&&xe!==0&&(Re.type=_$1.LINE_TO,Re.y=Re.relative?0:Ve),Re.type&_$1.VERT_LINE_TO&&Ie!==0&&(Re.type=_$1.LINE_TO,Re.x=Re.relative?0:ze),Re.x!==void 0&&(Re.x=Re.x*Se+Ar*Ie+(fr?0:$e)),Re.y!==void 0&&(Re.y=Ye*xe+Re.y*Ue+(fr?0:Me)),Re.x1!==void 0&&(Re.x1=Re.x1*Se+Re.y1*Ie+(fr?0:$e)),Re.y1!==void 0&&(Re.y1=Ze*xe+Re.y1*Ue+(fr?0:Me)),Re.x2!==void 0&&(Re.x2=Re.x2*Se+Re.y2*Ie+(fr?0:$e)),Re.y2!==void 0&&(Re.y2=ar*xe+Re.y2*Ue+(fr?0:Me));var Je=Se*Ue-xe*Ie;if(Re.xRot!==void 0&&(Se!==1||xe!==0||Ie!==0||Ue!==1))if(Je===0)delete Re.rX,delete Re.rY,delete Re.xRot,delete Re.lArcFlag,delete Re.sweepFlag,Re.type=_$1.LINE_TO;else{var We=Re.xRot*Math.PI/180,or=Math.sin(We),mr=Math.cos(We),er=1/Oe(Re.rX),ir=1/Oe(Re.rY),gr=Oe(mr)*er+Oe(or)*ir,vr=2*or*mr*(er-ir),Or=Oe(or)*er+Oe(mr)*ir,Nr=gr*Ue*Ue-vr*xe*Ue+Or*xe*xe,Hr=vr*(Se*Ue+xe*Ie)-2*(gr*Ie*Ue+Or*Se*xe),Dr=gr*Ie*Ie-vr*Se*Ie+Or*Se*Se,kr=(Math.atan2(Hr,Nr-Dr)+Math.PI)%Math.PI/2,qr=Math.sin(kr),An=Math.cos(kr);Re.rX=Math.abs(Je)/Math.sqrt(Nr*Oe(An)+Hr*qr*An+Dr*Oe(qr)),Re.rY=Math.abs(Je)/Math.sqrt(Nr*Oe(qr)-Hr*qr*An+Dr*Oe(An)),Re.xRot=180*kr/Math.PI}return Re.sweepFlag!==void 0&&0>Je&&(Re.sweepFlag=+!Re.sweepFlag),Re})}function Te(){return function(Se){var xe={};for(var Ie in Se)xe[Ie]=Se[Ie];return xe}}Be.ROUND=function(Se){function xe(Ie){return Math.round(Ie*Se)/Se}return Se===void 0&&(Se=1e13),a(Se),function(Ie){return Ie.x1!==void 0&&(Ie.x1=xe(Ie.x1)),Ie.y1!==void 0&&(Ie.y1=xe(Ie.y1)),Ie.x2!==void 0&&(Ie.x2=xe(Ie.x2)),Ie.y2!==void 0&&(Ie.y2=xe(Ie.y2)),Ie.x!==void 0&&(Ie.x=xe(Ie.x)),Ie.y!==void 0&&(Ie.y=xe(Ie.y)),Ie.rX!==void 0&&(Ie.rX=xe(Ie.rX)),Ie.rY!==void 0&&(Ie.rY=xe(Ie.rY)),Ie}},Be.TO_ABS=St,Be.TO_REL=function(){return Ce(function(Se,xe,Ie){return Se.relative||(Se.x1!==void 0&&(Se.x1-=xe),Se.y1!==void 0&&(Se.y1-=Ie),Se.x2!==void 0&&(Se.x2-=xe),Se.y2!==void 0&&(Se.y2-=Ie),Se.x!==void 0&&(Se.x-=xe),Se.y!==void 0&&(Se.y-=Ie),Se.relative=!0),Se})},Be.NORMALIZE_HVZ=function(Se,xe,Ie){return Se===void 0&&(Se=!0),xe===void 0&&(xe=!0),Ie===void 0&&(Ie=!0),Ce(function(Ue,$e,Me,Re,ze){if(isNaN(Re)&&!(Ue.type&_$1.MOVE_TO))throw new Error("path must start with moveto");return xe&&Ue.type&_$1.HORIZ_LINE_TO&&(Ue.type=_$1.LINE_TO,Ue.y=Ue.relative?0:Me),Ie&&Ue.type&_$1.VERT_LINE_TO&&(Ue.type=_$1.LINE_TO,Ue.x=Ue.relative?0:$e),Se&&Ue.type&_$1.CLOSE_PATH&&(Ue.type=_$1.LINE_TO,Ue.x=Ue.relative?Re-$e:Re,Ue.y=Ue.relative?ze-Me:ze),Ue.type&_$1.ARC&&(Ue.rX===0||Ue.rY===0)&&(Ue.type=_$1.LINE_TO,delete Ue.rX,delete Ue.rY,delete Ue.xRot,delete Ue.lArcFlag,delete Ue.sweepFlag),Ue})},Be.NORMALIZE_ST=Ae,Be.QT_TO_C=Ee,Be.INFO=Ce,Be.SANITIZE=function(Se){Se===void 0&&(Se=0),a(Se);var xe=NaN,Ie=NaN,Ue=NaN,$e=NaN;return Ce(function(Me,Re,ze,Ve,nr){var Ze=Math.abs,ar=!1,fr=0,Ye=0;if(Me.type&_$1.SMOOTH_CURVE_TO&&(fr=isNaN(xe)?0:Re-xe,Ye=isNaN(Ie)?0:ze-Ie),Me.type&(_$1.CURVE_TO|_$1.SMOOTH_CURVE_TO)?(xe=Me.relative?Re+Me.x2:Me.x2,Ie=Me.relative?ze+Me.y2:Me.y2):(xe=NaN,Ie=NaN),Me.type&_$1.SMOOTH_QUAD_TO?(Ue=isNaN(Ue)?Re:2*Re-Ue,$e=isNaN($e)?ze:2*ze-$e):Me.type&_$1.QUAD_TO?(Ue=Me.relative?Re+Me.x1:Me.x1,$e=Me.relative?ze+Me.y1:Me.y2):(Ue=NaN,$e=NaN),Me.type&_$1.LINE_COMMANDS||Me.type&_$1.ARC&&(Me.rX===0||Me.rY===0||!Me.lArcFlag)||Me.type&_$1.CURVE_TO||Me.type&_$1.SMOOTH_CURVE_TO||Me.type&_$1.QUAD_TO||Me.type&_$1.SMOOTH_QUAD_TO){var Ar=Me.x===void 0?0:Me.relative?Me.x:Me.x-Re,Oe=Me.y===void 0?0:Me.relative?Me.y:Me.y-ze;fr=isNaN(Ue)?Me.x1===void 0?fr:Me.relative?Me.x:Me.x1-Re:Ue-Re,Ye=isNaN($e)?Me.y1===void 0?Ye:Me.relative?Me.y:Me.y1-ze:$e-ze;var Je=Me.x2===void 0?0:Me.relative?Me.x:Me.x2-Re,We=Me.y2===void 0?0:Me.relative?Me.y:Me.y2-ze;Ze(Ar)<=Se&&Ze(Oe)<=Se&&Ze(fr)<=Se&&Ze(Ye)<=Se&&Ze(Je)<=Se&&Ze(We)<=Se&&(ar=!0)}return Me.type&_$1.CLOSE_PATH&&Ze(Re-Ve)<=Se&&Ze(ze-nr)<=Se&&(ar=!0),ar?[]:Me})},Be.MATRIX=_e,Be.ROTATE=function(Se,xe,Ie){xe===void 0&&(xe=0),Ie===void 0&&(Ie=0),a(Se,xe,Ie);var Ue=Math.sin(Se),$e=Math.cos(Se);return _e($e,Ue,-Ue,$e,xe-xe*$e+Ie*Ue,Ie-xe*Ue-Ie*$e)},Be.TRANSLATE=function(Se,xe){return xe===void 0&&(xe=0),a(Se,xe),_e(1,0,0,1,Se,xe)},Be.SCALE=function(Se,xe){return xe===void 0&&(xe=Se),a(Se,xe),_e(Se,0,0,xe,0,0)},Be.SKEW_X=function(Se){return a(Se),_e(1,0,Math.atan(Se),1,0,0)},Be.SKEW_Y=function(Se){return a(Se),_e(1,Math.atan(Se),0,1,0,0)},Be.X_AXIS_SYMMETRY=function(Se){return Se===void 0&&(Se=0),a(Se),_e(-1,0,0,1,Se,0)},Be.Y_AXIS_SYMMETRY=function(Se){return Se===void 0&&(Se=0),a(Se),_e(1,0,0,-1,0,Se)},Be.A_TO_C=function(){return Ce(function(Se,xe,Ie){return _$1.ARC===Se.type?function(Ue,$e,Me){var Re,ze,Ve,nr;Ue.cX||o(Ue,$e,Me);for(var Ze=Math.min(Ue.phi1,Ue.phi2),ar=Math.max(Ue.phi1,Ue.phi2)-Ze,fr=Math.ceil(ar/90),Ye=new Array(fr),Ar=$e,Oe=Me,Je=0;Je<fr;Je++){var We=c$1(Ue.phi1,Ue.phi2,Je/fr),or=c$1(Ue.phi1,Ue.phi2,(Je+1)/fr),mr=or-We,er=4/3*Math.tan(mr*h/4),ir=[Math.cos(We*h)-er*Math.sin(We*h),Math.sin(We*h)+er*Math.cos(We*h)],gr=ir[0],vr=ir[1],Or=[Math.cos(or*h),Math.sin(or*h)],Nr=Or[0],Hr=Or[1],Dr=[Nr+er*Math.sin(or*h),Hr-er*Math.cos(or*h)],kr=Dr[0],qr=Dr[1];Ye[Je]={relative:Ue.relative,type:_$1.CURVE_TO};var An=function(lr,Tr){var xr=i([lr*Ue.rX,Tr*Ue.rY],Ue.xRot),$r=xr[0],Qr=xr[1];return[Ue.cX+$r,Ue.cY+Qr]};Re=An(gr,vr),Ye[Je].x1=Re[0],Ye[Je].y1=Re[1],ze=An(kr,qr),Ye[Je].x2=ze[0],Ye[Je].y2=ze[1],Ve=An(Nr,Hr),Ye[Je].x=Ve[0],Ye[Je].y=Ve[1],Ue.relative&&(Ye[Je].x1-=Ar,Ye[Je].y1-=Oe,Ye[Je].x2-=Ar,Ye[Je].y2-=Oe,Ye[Je].x-=Ar,Ye[Je].y-=Oe),Ar=(nr=[Ye[Je].x,Ye[Je].y])[0],Oe=nr[1]}return Ye}(Se,Se.relative?0:xe,Se.relative?0:Ie):Se})},Be.ANNOTATE_ARCS=function(){return Ce(function(Se,xe,Ie){return Se.relative&&(xe=0,Ie=0),_$1.ARC===Se.type&&o(Se,xe,Ie),Se})},Be.CLONE=Te,Be.CALCULATE_BOUNDS=function(){var Se=function(Me){var Re={};for(var ze in Me)Re[ze]=Me[ze];return Re},xe=St(),Ie=Ee(),Ue=Ae(),$e=Ce(function(Me,Re,ze){var Ve=Ue(Ie(xe(Se(Me))));function nr(qr){qr>$e.maxX&&($e.maxX=qr),qr<$e.minX&&($e.minX=qr)}function Ze(qr){qr>$e.maxY&&($e.maxY=qr),qr<$e.minY&&($e.minY=qr)}if(Ve.type&_$1.DRAWING_COMMANDS&&(nr(Re),Ze(ze)),Ve.type&_$1.HORIZ_LINE_TO&&nr(Ve.x),Ve.type&_$1.VERT_LINE_TO&&Ze(Ve.y),Ve.type&_$1.LINE_TO&&(nr(Ve.x),Ze(Ve.y)),Ve.type&_$1.CURVE_TO){nr(Ve.x),Ze(Ve.y);for(var ar=0,fr=p(Re,Ve.x1,Ve.x2,Ve.x);ar<fr.length;ar++)0<(kr=fr[ar])&&1>kr&&nr(m$1(Re,Ve.x1,Ve.x2,Ve.x,kr));for(var Ye=0,Ar=p(ze,Ve.y1,Ve.y2,Ve.y);Ye<Ar.length;Ye++)0<(kr=Ar[Ye])&&1>kr&&Ze(m$1(ze,Ve.y1,Ve.y2,Ve.y,kr))}if(Ve.type&_$1.ARC){nr(Ve.x),Ze(Ve.y),o(Ve,Re,ze);for(var Oe=Ve.xRot/180*Math.PI,Je=Math.cos(Oe)*Ve.rX,We=Math.sin(Oe)*Ve.rX,or=-Math.sin(Oe)*Ve.rY,mr=Math.cos(Oe)*Ve.rY,er=Ve.phi1<Ve.phi2?[Ve.phi1,Ve.phi2]:-180>Ve.phi2?[Ve.phi2+360,Ve.phi1+360]:[Ve.phi2,Ve.phi1],ir=er[0],gr=er[1],vr=function(qr){var An=qr[0],lr=qr[1],Tr=180*Math.atan2(lr,An)/Math.PI;return Tr<ir?Tr+360:Tr},Or=0,Nr=s(or,-Je,0).map(vr);Or<Nr.length;Or++)(kr=Nr[Or])>ir&&kr<gr&&nr(y(Ve.cX,Je,or,kr));for(var Hr=0,Dr=s(mr,-We,0).map(vr);Hr<Dr.length;Hr++){var kr;(kr=Dr[Hr])>ir&&kr<gr&&Ze(y(Ve.cY,We,mr,kr))}}return Me});return $e.minX=1/0,$e.maxX=-1/0,$e.minY=1/0,$e.maxY=-1/0,$e}})(u||(u={}));var O,l=function(){function Be(){}return Be.prototype.round=function(St){return this.transform(u.ROUND(St))},Be.prototype.toAbs=function(){return this.transform(u.TO_ABS())},Be.prototype.toRel=function(){return this.transform(u.TO_REL())},Be.prototype.normalizeHVZ=function(St,Ae,Ee){return this.transform(u.NORMALIZE_HVZ(St,Ae,Ee))},Be.prototype.normalizeST=function(){return this.transform(u.NORMALIZE_ST())},Be.prototype.qtToC=function(){return this.transform(u.QT_TO_C())},Be.prototype.aToC=function(){return this.transform(u.A_TO_C())},Be.prototype.sanitize=function(St){return this.transform(u.SANITIZE(St))},Be.prototype.translate=function(St,Ae){return this.transform(u.TRANSLATE(St,Ae))},Be.prototype.scale=function(St,Ae){return this.transform(u.SCALE(St,Ae))},Be.prototype.rotate=function(St,Ae,Ee){return this.transform(u.ROTATE(St,Ae,Ee))},Be.prototype.matrix=function(St,Ae,Ee,Ce,_e,Te){return this.transform(u.MATRIX(St,Ae,Ee,Ce,_e,Te))},Be.prototype.skewX=function(St){return this.transform(u.SKEW_X(St))},Be.prototype.skewY=function(St){return this.transform(u.SKEW_Y(St))},Be.prototype.xSymmetry=function(St){return this.transform(u.X_AXIS_SYMMETRY(St))},Be.prototype.ySymmetry=function(St){return this.transform(u.Y_AXIS_SYMMETRY(St))},Be.prototype.annotateArcs=function(){return this.transform(u.ANNOTATE_ARCS())},Be}(),T=function(Be){return Be===" "||Be==="	"||Be==="\r"||Be===`
`},v=function(Be){return"0".charCodeAt(0)<=Be.charCodeAt(0)&&Be.charCodeAt(0)<="9".charCodeAt(0)},f=function(Be){function St(){var Ae=Be.call(this)||this;return Ae.curNumber="",Ae.curCommandType=-1,Ae.curCommandRelative=!1,Ae.canParseCommandOrComma=!0,Ae.curNumberHasExp=!1,Ae.curNumberHasExpDigits=!1,Ae.curNumberHasDecimal=!1,Ae.curArgs=[],Ae}return r(St,Be),St.prototype.finish=function(Ae){if(Ae===void 0&&(Ae=[]),this.parse(" ",Ae),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return Ae},St.prototype.parse=function(Ae,Ee){var Ce=this;Ee===void 0&&(Ee=[]);for(var _e=function($e){Ee.push($e),Ce.curArgs.length=0,Ce.canParseCommandOrComma=!0},Te=0;Te<Ae.length;Te++){var Se=Ae[Te],xe=!(this.curCommandType!==_$1.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),Ie=v(Se)&&(this.curNumber==="0"&&Se==="0"||xe);if(!v(Se)||Ie)if(Se!=="e"&&Se!=="E")if(Se!=="-"&&Se!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(Se!=="."||this.curNumberHasExp||this.curNumberHasDecimal||xe){if(this.curNumber&&this.curCommandType!==-1){var Ue=Number(this.curNumber);if(isNaN(Ue))throw new SyntaxError("Invalid number ending at "+Te);if(this.curCommandType===_$1.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>Ue)throw new SyntaxError('Expected positive number, got "'+Ue+'" at index "'+Te+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+Te+'"')}this.curArgs.push(Ue),this.curArgs.length===N[this.curCommandType]&&(_$1.HORIZ_LINE_TO===this.curCommandType?_e({type:_$1.HORIZ_LINE_TO,relative:this.curCommandRelative,x:Ue}):_$1.VERT_LINE_TO===this.curCommandType?_e({type:_$1.VERT_LINE_TO,relative:this.curCommandRelative,y:Ue}):this.curCommandType===_$1.MOVE_TO||this.curCommandType===_$1.LINE_TO||this.curCommandType===_$1.SMOOTH_QUAD_TO?(_e({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_$1.MOVE_TO===this.curCommandType&&(this.curCommandType=_$1.LINE_TO)):this.curCommandType===_$1.CURVE_TO?_e({type:_$1.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===_$1.SMOOTH_CURVE_TO?_e({type:_$1.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_$1.QUAD_TO?_e({type:_$1.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_$1.ARC&&_e({type:_$1.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!T(Se))if(Se===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(Se!=="+"&&Se!=="-"&&Se!==".")if(Ie)this.curNumber=Se,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+Te+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+Se+'" at index '+Te+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,Se!=="z"&&Se!=="Z")if(Se==="h"||Se==="H")this.curCommandType=_$1.HORIZ_LINE_TO,this.curCommandRelative=Se==="h";else if(Se==="v"||Se==="V")this.curCommandType=_$1.VERT_LINE_TO,this.curCommandRelative=Se==="v";else if(Se==="m"||Se==="M")this.curCommandType=_$1.MOVE_TO,this.curCommandRelative=Se==="m";else if(Se==="l"||Se==="L")this.curCommandType=_$1.LINE_TO,this.curCommandRelative=Se==="l";else if(Se==="c"||Se==="C")this.curCommandType=_$1.CURVE_TO,this.curCommandRelative=Se==="c";else if(Se==="s"||Se==="S")this.curCommandType=_$1.SMOOTH_CURVE_TO,this.curCommandRelative=Se==="s";else if(Se==="q"||Se==="Q")this.curCommandType=_$1.QUAD_TO,this.curCommandRelative=Se==="q";else if(Se==="t"||Se==="T")this.curCommandType=_$1.SMOOTH_QUAD_TO,this.curCommandRelative=Se==="t";else{if(Se!=="a"&&Se!=="A")throw new SyntaxError('Unexpected character "'+Se+'" at index '+Te+".");this.curCommandType=_$1.ARC,this.curCommandRelative=Se==="a"}else Ee.push({type:_$1.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=Se,this.curNumberHasDecimal=Se==="."}else this.curNumber+=Se,this.curNumberHasDecimal=!0;else this.curNumber+=Se;else this.curNumber+=Se,this.curNumberHasExp=!0;else this.curNumber+=Se,this.curNumberHasExpDigits=this.curNumberHasExp}return Ee},St.prototype.transform=function(Ae){return Object.create(this,{parse:{value:function(Ee,Ce){Ce===void 0&&(Ce=[]);for(var _e=0,Te=Object.getPrototypeOf(this).parse.call(this,Ee);_e<Te.length;_e++){var Se=Te[_e],xe=Ae(Se);Array.isArray(xe)?Ce.push.apply(Ce,xe):Ce.push(xe)}return Ce}}})},St}(l),_$1=function(Be){function St(Ae){var Ee=Be.call(this)||this;return Ee.commands=typeof Ae=="string"?St.parse(Ae):Ae,Ee}return r(St,Be),St.prototype.encode=function(){return St.encode(this.commands)},St.prototype.getBounds=function(){var Ae=u.CALCULATE_BOUNDS();return this.transform(Ae),Ae},St.prototype.transform=function(Ae){for(var Ee=[],Ce=0,_e=this.commands;Ce<_e.length;Ce++){var Te=Ae(_e[Ce]);Array.isArray(Te)?Ee.push.apply(Ee,Te):Ee.push(Te)}return this.commands=Ee,this},St.encode=function(Ae){return e(Ae)},St.parse=function(Ae){var Ee=new f,Ce=[];return Ee.parse(Ae,Ce),Ee.finish(Ce),Ce},St.CLOSE_PATH=1,St.MOVE_TO=2,St.HORIZ_LINE_TO=4,St.VERT_LINE_TO=8,St.LINE_TO=16,St.CURVE_TO=32,St.SMOOTH_CURVE_TO=64,St.QUAD_TO=128,St.SMOOTH_QUAD_TO=256,St.ARC=512,St.LINE_COMMANDS=St.LINE_TO|St.HORIZ_LINE_TO|St.VERT_LINE_TO,St.DRAWING_COMMANDS=St.HORIZ_LINE_TO|St.VERT_LINE_TO|St.LINE_TO|St.CURVE_TO|St.SMOOTH_CURVE_TO|St.QUAD_TO|St.SMOOTH_QUAD_TO|St.ARC,St}(l),N=((O={})[_$1.MOVE_TO]=2,O[_$1.LINE_TO]=2,O[_$1.HORIZ_LINE_TO]=1,O[_$1.VERT_LINE_TO]=1,O[_$1.CLOSE_PATH]=0,O[_$1.QUAD_TO]=4,O[_$1.SMOOTH_QUAD_TO]=2,O[_$1.CURVE_TO]=6,O[_$1.SMOOTH_CURVE_TO]=4,O[_$1.ARC]=7,O),call=functionCall,hasOwn=hasOwnProperty_1,isPrototypeOf=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(Be){var St=Be.flags;return St===void 0&&!("flags"in RegExpPrototype$1)&&!hasOwn(Be,"flags")&&isPrototypeOf(RegExpPrototype$1,Be)?call(regExpFlags,Be):St},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn=defineBuiltIn$7,anObject=anObject$g,$toString=toString$9,fails=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,nativeToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails(function(){return nativeToString.call({source:"a",flags:"b"})!=="/a/b"}),INCORRECT_NAME=PROPER_FUNCTION_NAME&&nativeToString.name!==TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn(RegExpPrototype,TO_STRING,function(){var St=anObject(this),Ae=$toString(St.source),Ee=$toString(getRegExpFlags(St));return"/"+Ae+"/"+Ee},{unsafe:!0});function _typeof(Be){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(St){return typeof St}:_typeof=function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},_typeof(Be)}function _classCallCheck(Be,St){if(!(Be instanceof St))throw new TypeError("Cannot call a class as a function")}var mulTable=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shgTable=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,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,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,22,22,22,22,22,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,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,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,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,24,24,24,24,24,24,24,24,24,24];function getImageDataFromCanvas(Be,St,Ae,Ee,Ce){if(typeof Be=="string"&&(Be=document.getElementById(Be)),!Be||_typeof(Be)!=="object"||!("getContext"in Be))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var _e=Be.getContext("2d");try{return _e.getImageData(St,Ae,Ee,Ce)}catch(Te){throw new Error("unable to access image data: "+Te)}}function processCanvasRGBA(Be,St,Ae,Ee,Ce,_e){if(!(isNaN(_e)||_e<1)){_e|=0;var Te=getImageDataFromCanvas(Be,St,Ae,Ee,Ce);Te=processImageDataRGBA(Te,St,Ae,Ee,Ce,_e),Be.getContext("2d").putImageData(Te,St,Ae)}}function processImageDataRGBA(Be,St,Ae,Ee,Ce,_e){for(var Te=Be.data,Se=2*_e+1,xe=Ee-1,Ie=Ce-1,Ue=_e+1,$e=Ue*(Ue+1)/2,Me=new BlurStack,Re=Me,ze,Ve=1;Ve<Se;Ve++)Re=Re.next=new BlurStack,Ve===Ue&&(ze=Re);Re.next=Me;for(var nr=null,Ze=null,ar=0,fr=0,Ye=mulTable[_e],Ar=shgTable[_e],Oe=0;Oe<Ce;Oe++){Re=Me;for(var Je=Te[fr],We=Te[fr+1],or=Te[fr+2],mr=Te[fr+3],er=0;er<Ue;er++)Re.r=Je,Re.g=We,Re.b=or,Re.a=mr,Re=Re.next;for(var ir=0,gr=0,vr=0,Or=0,Nr=Ue*Je,Hr=Ue*We,Dr=Ue*or,kr=Ue*mr,qr=$e*Je,An=$e*We,lr=$e*or,Tr=$e*mr,xr=1;xr<Ue;xr++){var $r=fr+((xe<xr?xe:xr)<<2),Qr=Te[$r],Jr=Te[$r+1],nn=Te[$r+2],en=Te[$r+3],Bn=Ue-xr;qr+=(Re.r=Qr)*Bn,An+=(Re.g=Jr)*Bn,lr+=(Re.b=nn)*Bn,Tr+=(Re.a=en)*Bn,ir+=Qr,gr+=Jr,vr+=nn,Or+=en,Re=Re.next}nr=Me,Ze=ze;for(var Sn=0;Sn<Ee;Sn++){var Un=Tr*Ye>>>Ar;if(Te[fr+3]=Un,Un!==0){var On=255/Un;Te[fr]=(qr*Ye>>>Ar)*On,Te[fr+1]=(An*Ye>>>Ar)*On,Te[fr+2]=(lr*Ye>>>Ar)*On}else Te[fr]=Te[fr+1]=Te[fr+2]=0;qr-=Nr,An-=Hr,lr-=Dr,Tr-=kr,Nr-=nr.r,Hr-=nr.g,Dr-=nr.b,kr-=nr.a;var zn=Sn+_e+1;zn=ar+(zn<xe?zn:xe)<<2,ir+=nr.r=Te[zn],gr+=nr.g=Te[zn+1],vr+=nr.b=Te[zn+2],Or+=nr.a=Te[zn+3],qr+=ir,An+=gr,lr+=vr,Tr+=Or,nr=nr.next;var fn=Ze,Sr=fn.r,Yn=fn.g,Wn=fn.b,Tn=fn.a;Nr+=Sr,Hr+=Yn,Dr+=Wn,kr+=Tn,ir-=Sr,gr-=Yn,vr-=Wn,Or-=Tn,Ze=Ze.next,fr+=4}ar+=Ee}for(var $n=0;$n<Ee;$n++){fr=$n<<2;var Dn=Te[fr],Rn=Te[fr+1],Gn=Te[fr+2],Kn=Te[fr+3],ti=Ue*Dn,Ai=Ue*Rn,yi=Ue*Gn,Bi=Ue*Kn,ei=$e*Dn,ci=$e*Rn,Qn=$e*Gn,Ii=$e*Kn;Re=Me;for(var gi=0;gi<Ue;gi++)Re.r=Dn,Re.g=Rn,Re.b=Gn,Re.a=Kn,Re=Re.next;for(var br=Ee,Ke=0,je=0,sr=0,dr=0,Pr=1;Pr<=_e;Pr++){fr=br+$n<<2;var jr=Ue-Pr;ei+=(Re.r=Dn=Te[fr])*jr,ci+=(Re.g=Rn=Te[fr+1])*jr,Qn+=(Re.b=Gn=Te[fr+2])*jr,Ii+=(Re.a=Kn=Te[fr+3])*jr,dr+=Dn,Ke+=Rn,je+=Gn,sr+=Kn,Re=Re.next,Pr<Ie&&(br+=Ee)}fr=$n,nr=Me,Ze=ze;for(var wn=0;wn<Ce;wn++){var pn=fr<<2;Te[pn+3]=Kn=Ii*Ye>>>Ar,Kn>0?(Kn=255/Kn,Te[pn]=(ei*Ye>>>Ar)*Kn,Te[pn+1]=(ci*Ye>>>Ar)*Kn,Te[pn+2]=(Qn*Ye>>>Ar)*Kn):Te[pn]=Te[pn+1]=Te[pn+2]=0,ei-=ti,ci-=Ai,Qn-=yi,Ii-=Bi,ti-=nr.r,Ai-=nr.g,yi-=nr.b,Bi-=nr.a,pn=$n+((pn=wn+Ue)<Ie?pn:Ie)*Ee<<2,ei+=dr+=nr.r=Te[pn],ci+=Ke+=nr.g=Te[pn+1],Qn+=je+=nr.b=Te[pn+2],Ii+=sr+=nr.a=Te[pn+3],nr=nr.next,ti+=Dn=Ze.r,Ai+=Rn=Ze.g,yi+=Gn=Ze.b,Bi+=Kn=Ze.a,dr-=Dn,Ke-=Rn,je-=Gn,sr-=Kn,Ze=Ze.next,fr+=Ee}}return Be}var BlurStack=function Be(){_classCallCheck(this,Be),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function offscreen(){var{DOMParser:Be}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},St={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:Be,createCanvas(Ae,Ee){return new OffscreenCanvas(Ae,Ee)},createImage(Ae){return _asyncToGenerator(function*(){var Ee=yield fetch(Ae),Ce=yield Ee.blob(),_e=yield createImageBitmap(Ce);return _e})()}};return(typeof DOMParser<"u"||typeof Be>"u")&&Reflect.deleteProperty(St,"DOMParser"),St}function node(Be){var{DOMParser:St,canvas:Ae,fetch:Ee}=Be;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:St,fetch:Ee,createCanvas:Ae.createCanvas,createImage:Ae.loadImage}}var index=Object.freeze({__proto__:null,offscreen,node});function compressSpaces(Be){return Be.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(Be){return Be.replace(/^[\n \t]+/,"")}function trimRight(Be){return Be.replace(/[\n \t]+$/,"")}function toNumbers(Be){var St=(Be||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return St.map(parseFloat)}var allUppercase=/^[A-Z-]+$/;function normalizeAttributeName(Be){return allUppercase.test(Be)?Be.toLowerCase():Be}function parseExternalUrl(Be){var St=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(Be)||[];return St[2]||St[3]||St[4]}function normalizeColor(Be){if(!Be.startsWith("rgb"))return Be;var St=3,Ae=Be.replace(/\d+(\.\d+)?/g,(Ee,Ce)=>St--&&Ce?String(Math.round(parseFloat(Ee))):Ee);return Ae}var attributeRegex=/(\[[^\]]+\])/g,idRegex=/(#[^\s+>~.[:]+)/g,classRegex=/(\.[^\s+>~.[:]+)/g,pseudoElementRegex=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,pseudoClassWithBracketsRegex=/(:[\w-]+\([^)]*\))/gi,pseudoClassRegex=/(:[^\s+>~.[:]+)/g,elementRegex=/([^\s+>~.[:]+)/g;function findSelectorMatch(Be,St){var Ae=St.exec(Be);return Ae?[Be.replace(St," "),Ae.length]:[Be,0]}function getSelectorSpecificity(Be){var St=[0,0,0],Ae=Be.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),Ee=0;return[Ae,Ee]=findSelectorMatch(Ae,attributeRegex),St[1]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,idRegex),St[0]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,classRegex),St[1]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,pseudoElementRegex),St[2]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,pseudoClassWithBracketsRegex),St[1]+=Ee,[Ae,Ee]=findSelectorMatch(Ae,pseudoClassRegex),St[1]+=Ee,Ae=Ae.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[Ae,Ee]=findSelectorMatch(Ae,elementRegex),St[2]+=Ee,St.join("")}var PSEUDO_ZERO=1e-8;function vectorMagnitude(Be){return Math.sqrt(Math.pow(Be[0],2)+Math.pow(Be[1],2))}function vectorsRatio(Be,St){return(Be[0]*St[0]+Be[1]*St[1])/(vectorMagnitude(Be)*vectorMagnitude(St))}function vectorsAngle(Be,St){return(Be[0]*St[1]<Be[1]*St[0]?-1:1)*Math.acos(vectorsRatio(Be,St))}function CB1(Be){return Be*Be*Be}function CB2(Be){return 3*Be*Be*(1-Be)}function CB3(Be){return 3*Be*(1-Be)*(1-Be)}function CB4(Be){return(1-Be)*(1-Be)*(1-Be)}function QB1(Be){return Be*Be}function QB2(Be){return 2*Be*(1-Be)}function QB3(Be){return(1-Be)*(1-Be)}class Property{constructor(St,Ae,Ee){this.document=St,this.name=Ae,this.value=Ee,this.isNormalizedColor=!1}static empty(St){return new Property(St,"EMPTY","")}split(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:Ae,name:Ee}=this;return compressSpaces(this.getString()).trim().split(St).map(Ce=>new Property(Ae,Ee,Ce))}hasValue(St){var{value:Ae}=this;return Ae!==null&&Ae!==""&&(St||Ae!==0)&&typeof Ae<"u"}isString(St){var{value:Ae}=this,Ee=typeof Ae=="string";return!Ee||!St?Ee:St.test(Ae)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var St=this.getString();switch(!0){case St.endsWith("px"):case/^[0-9]+$/.test(St):return!0;default:return!1}}setValue(St){return this.value=St,this}getValue(St){return typeof St>"u"||this.hasValue()?this.value:St}getNumber(St){if(!this.hasValue())return typeof St>"u"?0:parseFloat(St);var{value:Ae}=this,Ee=parseFloat(Ae);return this.isString(/%$/)&&(Ee/=100),Ee}getString(St){return typeof St>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(St)}getColor(St){var Ae=this.getString(St);return this.isNormalizedColor||(this.isNormalizedColor=!0,Ae=normalizeColor(Ae),this.value=Ae),Ae}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[Ee,Ce]=typeof St=="boolean"?[void 0,St]:[St],{viewPort:_e}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(_e.computeSize("x"),_e.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(_e.computeSize("x"),_e.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*_e.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*_e.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&Ce):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*_e.computeSize(Ee);default:{var Te=this.getNumber();return Ae&&Te<1?Te*_e.computeSize(Ee):Te}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var St=this.getString(),Ae=/#([^)'"]+)/.exec(St);return Ae&&(Ae=Ae[1]),Ae||(Ae=St),this.document.definitions[Ae]}getFillStyleDefinition(St,Ae){var Ee=this.getDefinition();if(!Ee)return null;if(typeof Ee.createGradient=="function")return Ee.createGradient(this.document.ctx,St,Ae);if(typeof Ee.createPattern=="function"){if(Ee.getHrefAttribute().hasValue()){var Ce=Ee.getAttribute("patternTransform");Ee=Ee.getHrefAttribute().getDefinition(),Ce.hasValue()&&Ee.getAttribute("patternTransform",!0).setValue(Ce.value)}return Ee.createPattern(this.document.ctx,St,Ae)}return null}getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}addOpacity(St){for(var Ae=this.getColor(),Ee=Ae.length,Ce=0,_e=0;_e<Ee&&(Ae[_e]===","&&Ce++,Ce!==3);_e++);if(St.hasValue()&&this.isString()&&Ce!==3){var Te=new RGBColor$1(Ae);Te.ok&&(Te.alpha=St.getNumber(),Ae=Te.toRGBA())}return new Property(this.document,this.name,Ae)}}Property.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class ViewPort{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(St,Ae){this.viewPorts.push({width:St,height:Ae})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:St}=this;return St[St.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(St){return typeof St=="number"?St:St==="x"?this.width:St==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Point{constructor(St,Ae){this.x=St,this.y=Ae}static parse(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[Ee=Ae,Ce=Ae]=toNumbers(St);return new Point(Ee,Ce)}static parseScale(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[Ee=Ae,Ce=Ee]=toNumbers(St);return new Point(Ee,Ce)}static parsePath(St){for(var Ae=toNumbers(St),Ee=Ae.length,Ce=[],_e=0;_e<Ee;_e+=2)Ce.push(new Point(Ae[_e],Ae[_e+1]));return Ce}angleTo(St){return Math.atan2(St.y-this.y,St.x-this.x)}applyTransform(St){var{x:Ae,y:Ee}=this,Ce=Ae*St[0]+Ee*St[2]+St[4],_e=Ae*St[1]+Ee*St[3]+St[5];this.x=Ce,this.y=_e}}class Mouse{constructor(St){this.screen=St,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:St,onClick:Ae,onMouseMove:Ee}=this,Ce=St.ctx.canvas;Ce.onclick=Ae,Ce.onmousemove=Ee,this.working=!0}}stop(){if(this.working){var St=this.screen.ctx.canvas;this.working=!1,St.onclick=null,St.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:St,events:Ae,eventElements:Ee}=this,{style:Ce}=St.ctx.canvas;Ce&&(Ce.cursor=""),Ae.forEach((_e,Te)=>{for(var{run:Se}=_e,xe=Ee[Te];xe;)Se(xe),xe=xe.parent}),this.events=[],this.eventElements=[]}}checkPath(St,Ae){if(!(!this.working||!Ae)){var{events:Ee,eventElements:Ce}=this;Ee.forEach((_e,Te)=>{var{x:Se,y:xe}=_e;!Ce[Te]&&Ae.isPointInPath&&Ae.isPointInPath(Se,xe)&&(Ce[Te]=St)})}}checkBoundingBox(St,Ae){if(!(!this.working||!Ae)){var{events:Ee,eventElements:Ce}=this;Ee.forEach((_e,Te)=>{var{x:Se,y:xe}=_e;!Ce[Te]&&Ae.isPointInBox(Se,xe)&&(Ce[Te]=St)})}}mapXY(St,Ae){for(var{window:Ee,ctx:Ce}=this.screen,_e=new Point(St,Ae),Te=Ce.canvas;Te;)_e.x-=Te.offsetLeft,_e.y-=Te.offsetTop,Te=Te.offsetParent;return Ee.scrollX&&(_e.x+=Ee.scrollX),Ee.scrollY&&(_e.y+=Ee.scrollY),_e}onClick(St){var{x:Ae,y:Ee}=this.mapXY(St.clientX,St.clientY);this.events.push({type:"onclick",x:Ae,y:Ee,run(Ce){Ce.onClick&&Ce.onClick()}})}onMouseMove(St){var{x:Ae,y:Ee}=this.mapXY(St.clientX,St.clientY);this.events.push({type:"onmousemove",x:Ae,y:Ee,run(Ce){Ce.onMouseMove&&Ce.onMouseMove()}})}}var defaultWindow=typeof window<"u"?window:null,defaultFetch$1=typeof fetch<"u"?fetch.bind(void 0):null;class Screen{constructor(St){var{fetch:Ae=defaultFetch$1,window:Ee=defaultWindow}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=St,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=Ee,this.fetch=Ae}wait(St){this.waits.push(St)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var St=this.waits.every(Ae=>Ae());return St&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=St,St}setDefaults(St){St.strokeStyle="rgba(0,0,0,0)",St.lineCap="butt",St.lineJoin="miter",St.miterLimit=4}setViewBox(St){var{document:Ae,ctx:Ee,aspectRatio:Ce,width:_e,desiredWidth:Te,height:Se,desiredHeight:xe,minX:Ie=0,minY:Ue=0,refX:$e,refY:Me,clip:Re=!1,clipX:ze=0,clipY:Ve=0}=St,nr=compressSpaces(Ce).replace(/^defer\s/,""),[Ze,ar]=nr.split(" "),fr=Ze||"xMidYMid",Ye=ar||"meet",Ar=_e/Te,Oe=Se/xe,Je=Math.min(Ar,Oe),We=Math.max(Ar,Oe),or=Te,mr=xe;Ye==="meet"&&(or*=Je,mr*=Je),Ye==="slice"&&(or*=We,mr*=We);var er=new Property(Ae,"refX",$e),ir=new Property(Ae,"refY",Me),gr=er.hasValue()&&ir.hasValue();if(gr&&Ee.translate(-Je*er.getPixels("x"),-Je*ir.getPixels("y")),Re){var vr=Je*ze,Or=Je*Ve;Ee.beginPath(),Ee.moveTo(vr,Or),Ee.lineTo(_e,Or),Ee.lineTo(_e,Se),Ee.lineTo(vr,Se),Ee.closePath(),Ee.clip()}if(!gr){var Nr=Ye==="meet"&&Je===Oe,Hr=Ye==="slice"&&We===Oe,Dr=Ye==="meet"&&Je===Ar,kr=Ye==="slice"&&We===Ar;fr.startsWith("xMid")&&(Nr||Hr)&&Ee.translate(_e/2-or/2,0),fr.endsWith("YMid")&&(Dr||kr)&&Ee.translate(0,Se/2-mr/2),fr.startsWith("xMax")&&(Nr||Hr)&&Ee.translate(_e-or,0),fr.endsWith("YMax")&&(Dr||kr)&&Ee.translate(0,Se-mr)}switch(!0){case fr==="none":Ee.scale(Ar,Oe);break;case Ye==="meet":Ee.scale(Je,Je);break;case Ye==="slice":Ee.scale(We,We);break}Ee.translate(-Ie,-Ue)}start(St){var{enableRedraw:Ae=!1,ignoreMouse:Ee=!1,ignoreAnimation:Ce=!1,ignoreDimensions:_e=!1,ignoreClear:Te=!1,forceRedraw:Se,scaleWidth:xe,scaleHeight:Ie,offsetX:Ue,offsetY:$e}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:Me,mouse:Re}=this,ze=1e3/Me;if(this.frameDuration=ze,this.readyPromise=new Promise(fr=>{this.resolveReady=fr}),this.isReady()&&this.render(St,_e,Te,xe,Ie,Ue,$e),!!Ae){var Ve=Date.now(),nr=Ve,Ze=0,ar=()=>{Ve=Date.now(),Ze=Ve-nr,Ze>=ze&&(nr=Ve-Ze%ze,this.shouldUpdate(Ce,Se)&&(this.render(St,_e,Te,xe,Ie,Ue,$e),Re.runEvents())),this.intervalId=requestAnimationFrame(ar)};Ee||Re.start(),this.intervalId=requestAnimationFrame(ar)}}stop(){this.intervalId&&(requestAnimationFrame.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(St,Ae){if(!St){var{frameDuration:Ee}=this,Ce=this.animations.reduce((_e,Te)=>Te.update(Ee)||_e,!1);if(Ce)return!0}return!!(typeof Ae=="function"&&Ae()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(St,Ae,Ee,Ce,_e,Te,Se){var{CLIENT_WIDTH:xe,CLIENT_HEIGHT:Ie,viewPort:Ue,ctx:$e,isFirstRender:Me}=this,Re=$e.canvas;Ue.clear(),Re.width&&Re.height?Ue.setCurrent(Re.width,Re.height):Ue.setCurrent(xe,Ie);var ze=St.getStyle("width"),Ve=St.getStyle("height");!Ae&&(Me||typeof Ce!="number"&&typeof _e!="number")&&(ze.hasValue()&&(Re.width=ze.getPixels("x"),Re.style&&(Re.style.width="".concat(Re.width,"px"))),Ve.hasValue()&&(Re.height=Ve.getPixels("y"),Re.style&&(Re.style.height="".concat(Re.height,"px"))));var nr=Re.clientWidth||Re.width,Ze=Re.clientHeight||Re.height;if(Ae&&ze.hasValue()&&Ve.hasValue()&&(nr=ze.getPixels("x"),Ze=Ve.getPixels("y")),Ue.setCurrent(nr,Ze),typeof Te=="number"&&St.getAttribute("x",!0).setValue(Te),typeof Se=="number"&&St.getAttribute("y",!0).setValue(Se),typeof Ce=="number"||typeof _e=="number"){var ar=toNumbers(St.getAttribute("viewBox").getString()),fr=0,Ye=0;if(typeof Ce=="number"){var Ar=St.getStyle("width");Ar.hasValue()?fr=Ar.getPixels("x")/Ce:isNaN(ar[2])||(fr=ar[2]/Ce)}if(typeof _e=="number"){var Oe=St.getStyle("height");Oe.hasValue()?Ye=Oe.getPixels("y")/_e:isNaN(ar[3])||(Ye=ar[3]/_e)}fr||(fr=Ye),Ye||(Ye=fr),St.getAttribute("width",!0).setValue(Ce),St.getAttribute("height",!0).setValue(_e);var Je=St.getStyle("transform",!0,!0);Je.setValue("".concat(Je.getString()," scale(").concat(1/fr,", ").concat(1/Ye,")"))}Ee||$e.clearRect(0,0,nr,Ze),St.render($e),Me&&(this.isFirstRender=!1)}}Screen.defaultWindow=defaultWindow,Screen.defaultFetch=defaultFetch$1;var{defaultFetch}=Screen,DefaultDOMParser=typeof DOMParser<"u"?DOMParser:null;class Parser{constructor(){var{fetch:St=defaultFetch,DOMParser:Ae=DefaultDOMParser}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=St,this.DOMParser=Ae}parse(St){var Ae=this;return _asyncToGenerator(function*(){return St.startsWith("<")?Ae.parseFromString(St):Ae.load(St)})()}parseFromString(St){var Ae=new this.DOMParser;try{return this.checkDocument(Ae.parseFromString(St,"image/svg+xml"))}catch{return this.checkDocument(Ae.parseFromString(St,"text/xml"))}}checkDocument(St){var Ae=St.getElementsByTagName("parsererror")[0];if(Ae)throw new Error(Ae.textContent);return St}load(St){var Ae=this;return _asyncToGenerator(function*(){var Ee=yield Ae.fetch(St),Ce=yield Ee.text();return Ae.parseFromString(Ce)})()}}class Translate{constructor(St,Ae){this.type="translate",this.point=null,this.point=Point.parse(Ae)}apply(St){var{x:Ae,y:Ee}=this.point;St.translate(Ae||0,Ee||0)}unapply(St){var{x:Ae,y:Ee}=this.point;St.translate(-1*Ae||0,-1*Ee||0)}applyToPoint(St){var{x:Ae,y:Ee}=this.point;St.applyTransform([1,0,0,1,Ae||0,Ee||0])}}class Rotate{constructor(St,Ae,Ee){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var Ce=toNumbers(Ae);this.angle=new Property(St,"angle",Ce[0]),this.originX=Ee[0],this.originY=Ee[1],this.cx=Ce[1]||0,this.cy=Ce[2]||0}apply(St){var{cx:Ae,cy:Ee,originX:Ce,originY:_e,angle:Te}=this,Se=Ae+Ce.getPixels("x"),xe=Ee+_e.getPixels("y");St.translate(Se,xe),St.rotate(Te.getRadians()),St.translate(-Se,-xe)}unapply(St){var{cx:Ae,cy:Ee,originX:Ce,originY:_e,angle:Te}=this,Se=Ae+Ce.getPixels("x"),xe=Ee+_e.getPixels("y");St.translate(Se,xe),St.rotate(-1*Te.getRadians()),St.translate(-Se,-xe)}applyToPoint(St){var{cx:Ae,cy:Ee,angle:Ce}=this,_e=Ce.getRadians();St.applyTransform([1,0,0,1,Ae||0,Ee||0]),St.applyTransform([Math.cos(_e),Math.sin(_e),-Math.sin(_e),Math.cos(_e),0,0]),St.applyTransform([1,0,0,1,-Ae||0,-Ee||0])}}class Scale{constructor(St,Ae,Ee){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var Ce=Point.parseScale(Ae);(Ce.x===0||Ce.y===0)&&(Ce.x=PSEUDO_ZERO,Ce.y=PSEUDO_ZERO),this.scale=Ce,this.originX=Ee[0],this.originY=Ee[1]}apply(St){var{scale:{x:Ae,y:Ee},originX:Ce,originY:_e}=this,Te=Ce.getPixels("x"),Se=_e.getPixels("y");St.translate(Te,Se),St.scale(Ae,Ee||Ae),St.translate(-Te,-Se)}unapply(St){var{scale:{x:Ae,y:Ee},originX:Ce,originY:_e}=this,Te=Ce.getPixels("x"),Se=_e.getPixels("y");St.translate(Te,Se),St.scale(1/Ae,1/Ee||Ae),St.translate(-Te,-Se)}applyToPoint(St){var{x:Ae,y:Ee}=this.scale;St.applyTransform([Ae||0,0,0,Ee||0,0,0])}}class Matrix{constructor(St,Ae,Ee){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=toNumbers(Ae),this.originX=Ee[0],this.originY=Ee[1]}apply(St){var{originX:Ae,originY:Ee,matrix:Ce}=this,_e=Ae.getPixels("x"),Te=Ee.getPixels("y");St.translate(_e,Te),St.transform(Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),St.translate(-_e,-Te)}unapply(St){var{originX:Ae,originY:Ee,matrix:Ce}=this,_e=Ce[0],Te=Ce[2],Se=Ce[4],xe=Ce[1],Ie=Ce[3],Ue=Ce[5],$e=0,Me=0,Re=1,ze=1/(_e*(Ie*Re-Ue*Me)-Te*(xe*Re-Ue*$e)+Se*(xe*Me-Ie*$e)),Ve=Ae.getPixels("x"),nr=Ee.getPixels("y");St.translate(Ve,nr),St.transform(ze*(Ie*Re-Ue*Me),ze*(Ue*$e-xe*Re),ze*(Se*Me-Te*Re),ze*(_e*Re-Se*$e),ze*(Te*Ue-Se*Ie),ze*(Se*xe-_e*Ue)),St.translate(-Ve,-nr)}applyToPoint(St){St.applyTransform(this.matrix)}}class Skew extends Matrix{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="skew",this.angle=null,this.angle=new Property(St,"angle",Ae)}}class SkewX extends Skew{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function parseTransforms(Be){return compressSpaces(Be).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function parseTransform(Be){var[St,Ae]=Be.split("(");return[St.trim(),Ae.trim().replace(")","")]}class Transform{constructor(St,Ae,Ee){this.document=St,this.transforms=[];var Ce=parseTransforms(Ae);Ce.forEach(_e=>{if(_e!=="none"){var[Te,Se]=parseTransform(_e),xe=Transform.transformTypes[Te];typeof xe<"u"&&this.transforms.push(new xe(this.document,Se,Ee))}})}static fromElement(St,Ae){var Ee=Ae.getStyle("transform",!1,!0),[Ce,_e=Ce]=Ae.getStyle("transform-origin",!1,!0).split(),Te=[Ce,_e];return Ee.hasValue()?new Transform(St,Ee.getString(),Te):null}apply(St){for(var{transforms:Ae}=this,Ee=Ae.length,Ce=0;Ce<Ee;Ce++)Ae[Ce].apply(St)}unapply(St){for(var{transforms:Ae}=this,Ee=Ae.length,Ce=Ee-1;Ce>=0;Ce--)Ae[Ce].unapply(St)}applyToPoint(St){for(var{transforms:Ae}=this,Ee=Ae.length,Ce=0;Ce<Ee;Ce++)Ae[Ce].applyToPoint(St)}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};class Element{constructor(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=St,this.node=Ae,this.captureTextNodes=Ee,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!Ae||Ae.nodeType!==1)){if(Array.from(Ae.attributes).forEach(Se=>{var xe=normalizeAttributeName(Se.nodeName);this.attributes[xe]=new Property(St,xe,Se.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var Ce=this.getAttribute("style").getString().split(";").map(Se=>Se.trim());Ce.forEach(Se=>{if(Se){var[xe,Ie]=Se.split(":").map(Ue=>Ue.trim());this.styles[xe]=new Property(St,xe,Ie)}})}var{definitions:_e}=St,Te=this.getAttribute("id");Te.hasValue()&&(_e[Te.getString()]||(_e[Te.getString()]=this)),Array.from(Ae.childNodes).forEach(Se=>{if(Se.nodeType===1)this.addChild(Se);else if(Ee&&(Se.nodeType===3||Se.nodeType===4)){var xe=St.createTextNode(Se);xe.getText().length>0&&this.addChild(xe)}})}}getAttribute(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=this.attributes[St];if(!Ee&&Ae){var Ce=new Property(this.document,St,"");return this.attributes[St]=Ce,Ce}return Ee||Property.empty(this.document)}getHrefAttribute(){for(var St in this.attributes)if(St==="href"||St.endsWith(":href"))return this.attributes[St];return Property.empty(this.document)}getStyle(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=this.styles[St];if(Ce)return Ce;var _e=this.getAttribute(St);if(_e!=null&&_e.hasValue())return this.styles[St]=_e,_e;if(!Ee){var{parent:Te}=this;if(Te){var Se=Te.getStyle(St);if(Se!=null&&Se.hasValue())return Se}}if(Ae){var xe=new Property(this.document,St,"");return this.styles[St]=xe,xe}return Ce||Property.empty(this.document)}render(St){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(St.save(),this.getStyle("mask").hasValue()){var Ae=this.getStyle("mask").getDefinition();Ae&&(this.applyEffects(St),Ae.apply(St,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var Ee=this.getStyle("filter").getDefinition();Ee&&(this.applyEffects(St),Ee.apply(St,this))}else this.setContext(St),this.renderChildren(St),this.clearContext(St);St.restore()}}setContext(St){}applyEffects(St){var Ae=Transform.fromElement(this.document,this);Ae&&Ae.apply(St);var Ee=this.getStyle("clip-path",!1,!0);if(Ee.hasValue()){var Ce=Ee.getDefinition();Ce&&Ce.apply(St)}}clearContext(St){}renderChildren(St){this.children.forEach(Ae=>{Ae.render(St)})}addChild(St){var Ae=St instanceof Element?St:this.document.createElement(St);Ae.parent=this,Element.ignoreChildTypes.includes(Ae.type)||this.children.push(Ae)}matchesSelector(St){var Ae,{node:Ee}=this;if(typeof Ee.matches=="function")return Ee.matches(St);var Ce=(Ae=Ee.getAttribute)===null||Ae===void 0?void 0:Ae.call(Ee,"class");return!Ce||Ce===""?!1:Ce.split(" ").some(_e=>".".concat(_e)===St)}addStylesFromStyleDefinition(){var{styles:St,stylesSpecificity:Ae}=this.document;for(var Ee in St)if(!Ee.startsWith("@")&&this.matchesSelector(Ee)){var Ce=St[Ee],_e=Ae[Ee];if(Ce)for(var Te in Ce){var Se=this.stylesSpecificity[Te];typeof Se>"u"&&(Se="000"),_e>=Se&&(this.styles[Te]=Ce[Te],this.stylesSpecificity[Te]=_e)}}}removeStyles(St,Ae){var Ee=Ae.reduce((Ce,_e)=>{var Te=St.getStyle(_e);if(!Te.hasValue())return Ce;var Se=Te.getString();return Te.setValue(""),[...Ce,[_e,Se]]},[]);return Ee}restoreStyles(St,Ae){Ae.forEach(Ee=>{var[Ce,_e]=Ee;St.getStyle(Ce,!0).setValue(_e)})}isFirstChild(){var St;return((St=this.parent)===null||St===void 0?void 0:St.children.indexOf(this))===0}}Element.ignoreChildTypes=["title"];class UnknownElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee)}}function wrapFontFamily(Be){var St=Be.trim();return/^('|")/.test(St)?St:'"'.concat(St,'"')}function prepareFontFamily(Be){return typeof process>"u"?Be:Be.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(Be){if(!Be)return"";var St=Be.trim().toLowerCase();switch(St){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return St;default:return/^oblique\s+(-|)\d+deg$/.test(St)?St:""}}function prepareFontWeight(Be){if(!Be)return"";var St=Be.trim().toLowerCase();switch(St){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return St;default:return/^[\d.]+$/.test(St)?St:""}}class Font{constructor(St,Ae,Ee,Ce,_e,Te){var Se=Te?typeof Te=="string"?Font.parse(Te):Te:{};this.fontFamily=_e||Se.fontFamily,this.fontSize=Ce||Se.fontSize,this.fontStyle=St||Se.fontStyle,this.fontWeight=Ee||Se.fontWeight,this.fontVariant=Ae||Se.fontVariant}static parse(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Ae=arguments.length>1?arguments[1]:void 0,Ee="",Ce="",_e="",Te="",Se="",xe=compressSpaces(St).trim().split(" "),Ie={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return xe.forEach(Ue=>{switch(!0){case(!Ie.fontStyle&&Font.styles.includes(Ue)):Ue!=="inherit"&&(Ee=Ue),Ie.fontStyle=!0;break;case(!Ie.fontVariant&&Font.variants.includes(Ue)):Ue!=="inherit"&&(Ce=Ue),Ie.fontStyle=!0,Ie.fontVariant=!0;break;case(!Ie.fontWeight&&Font.weights.includes(Ue)):Ue!=="inherit"&&(_e=Ue),Ie.fontStyle=!0,Ie.fontVariant=!0,Ie.fontWeight=!0;break;case!Ie.fontSize:Ue!=="inherit"&&([Te]=Ue.split("/")),Ie.fontStyle=!0,Ie.fontVariant=!0,Ie.fontWeight=!0,Ie.fontSize=!0;break;default:Ue!=="inherit"&&(Se+=Ue)}}),new Font(Ee,Ce,_e,Te,Se,Ae)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}}Font.styles="normal|italic|oblique|inherit",Font.variants="normal|small-caps|inherit",Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class BoundingBox{constructor(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=St,this.y1=Ae,this.x2=Ee,this.y2=Ce,this.addPoint(St,Ae),this.addPoint(Ee,Ce)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(St,Ae){typeof St<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=St,this.x2=St),St<this.x1&&(this.x1=St),St>this.x2&&(this.x2=St)),typeof Ae<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=Ae,this.y2=Ae),Ae<this.y1&&(this.y1=Ae),Ae>this.y2&&(this.y2=Ae))}addX(St){this.addPoint(St,null)}addY(St){this.addPoint(null,St)}addBoundingBox(St){if(St){var{x1:Ae,y1:Ee,x2:Ce,y2:_e}=St;this.addPoint(Ae,Ee),this.addPoint(Ce,_e)}}sumCubic(St,Ae,Ee,Ce,_e){return Math.pow(1-St,3)*Ae+3*Math.pow(1-St,2)*St*Ee+3*(1-St)*Math.pow(St,2)*Ce+Math.pow(St,3)*_e}bezierCurveAdd(St,Ae,Ee,Ce,_e){var Te=6*Ae-12*Ee+6*Ce,Se=-3*Ae+9*Ee-9*Ce+3*_e,xe=3*Ee-3*Ae;if(Se===0){if(Te===0)return;var Ie=-xe/Te;0<Ie&&Ie<1&&(St?this.addX(this.sumCubic(Ie,Ae,Ee,Ce,_e)):this.addY(this.sumCubic(Ie,Ae,Ee,Ce,_e)));return}var Ue=Math.pow(Te,2)-4*xe*Se;if(!(Ue<0)){var $e=(-Te+Math.sqrt(Ue))/(2*Se);0<$e&&$e<1&&(St?this.addX(this.sumCubic($e,Ae,Ee,Ce,_e)):this.addY(this.sumCubic($e,Ae,Ee,Ce,_e)));var Me=(-Te-Math.sqrt(Ue))/(2*Se);0<Me&&Me<1&&(St?this.addX(this.sumCubic(Me,Ae,Ee,Ce,_e)):this.addY(this.sumCubic(Me,Ae,Ee,Ce,_e)))}}addBezierCurve(St,Ae,Ee,Ce,_e,Te,Se,xe){this.addPoint(St,Ae),this.addPoint(Se,xe),this.bezierCurveAdd(!0,St,Ee,_e,Se),this.bezierCurveAdd(!1,Ae,Ce,Te,xe)}addQuadraticCurve(St,Ae,Ee,Ce,_e,Te){var Se=St+.6666666666666666*(Ee-St),xe=Ae+2/3*(Ce-Ae),Ie=Se+1/3*(_e-St),Ue=xe+1/3*(Te-Ae);this.addBezierCurve(St,Ae,Se,Ie,xe,Ue,_e,Te)}isPointInBox(St,Ae){var{x1:Ee,y1:Ce,x2:_e,y2:Te}=this;return Ee<=St&&St<=_e&&Ce<=Ae&&Ae<=Te}}class PathParser extends _$1{constructor(St){super(St.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}isEnd(){var{i:St,commands:Ae}=this;return St>=Ae.length-1}next(){var St=this.commands[++this.i];return this.previousCommand=this.command,this.command=St,St}getPoint(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",Ee=new Point(this.command[St],this.command[Ae]);return this.makeAbsolute(Ee)}getAsControlPoint(St,Ae){var Ee=this.getPoint(St,Ae);return this.control=Ee,Ee}getAsCurrentPoint(St,Ae){var Ee=this.getPoint(St,Ae);return this.current=Ee,Ee}getReflectedControlPoint(){var St=this.previousCommand.type;if(St!==_$1.CURVE_TO&&St!==_$1.SMOOTH_CURVE_TO&&St!==_$1.QUAD_TO&&St!==_$1.SMOOTH_QUAD_TO)return this.current;var{current:{x:Ae,y:Ee},control:{x:Ce,y:_e}}=this,Te=new Point(2*Ae-Ce,2*Ee-_e);return Te}makeAbsolute(St){if(this.command.relative){var{x:Ae,y:Ee}=this.current;St.x+=Ae,St.y+=Ee}return St}addMarker(St,Ae,Ee){var{points:Ce,angles:_e}=this;Ee&&_e.length>0&&!_e[_e.length-1]&&(_e[_e.length-1]=Ce[Ce.length-1].angleTo(Ee)),this.addMarkerAngle(St,Ae?Ae.angleTo(St):null)}addMarkerAngle(St,Ae){this.points.push(St),this.angles.push(Ae)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:St}=this,Ae=St.length,Ee=0;Ee<Ae;Ee++)if(!St[Ee]){for(var Ce=Ee+1;Ce<Ae;Ce++)if(St[Ce]){St[Ee]=St[Ce];break}}return St}}class RenderedElement extends Element{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var St=1,Ae=this;Ae;){var Ee=Ae.getStyle("opacity",!1,!0);Ee.hasValue(!0)&&(St*=Ee.getNumber()),Ae=Ae.parent}return St}setContext(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!Ae){var Ee=this.getStyle("fill"),Ce=this.getStyle("fill-opacity"),_e=this.getStyle("stroke"),Te=this.getStyle("stroke-opacity");if(Ee.isUrlDefinition()){var Se=Ee.getFillStyleDefinition(this,Ce);Se&&(St.fillStyle=Se)}else if(Ee.hasValue()){Ee.getString()==="currentColor"&&Ee.setValue(this.getStyle("color").getColor());var xe=Ee.getColor();xe!=="inherit"&&(St.fillStyle=xe==="none"?"rgba(0,0,0,0)":xe)}if(Ce.hasValue()){var Ie=new Property(this.document,"fill",St.fillStyle).addOpacity(Ce).getColor();St.fillStyle=Ie}if(_e.isUrlDefinition()){var Ue=_e.getFillStyleDefinition(this,Te);Ue&&(St.strokeStyle=Ue)}else if(_e.hasValue()){_e.getString()==="currentColor"&&_e.setValue(this.getStyle("color").getColor());var $e=_e.getString();$e!=="inherit"&&(St.strokeStyle=$e==="none"?"rgba(0,0,0,0)":$e)}if(Te.hasValue()){var Me=new Property(this.document,"stroke",St.strokeStyle).addOpacity(Te).getString();St.strokeStyle=Me}var Re=this.getStyle("stroke-width");if(Re.hasValue()){var ze=Re.getPixels();St.lineWidth=ze||PSEUDO_ZERO}var Ve=this.getStyle("stroke-linecap"),nr=this.getStyle("stroke-linejoin"),Ze=this.getStyle("stroke-miterlimit"),ar=this.getStyle("stroke-dasharray"),fr=this.getStyle("stroke-dashoffset");if(Ve.hasValue()&&(St.lineCap=Ve.getString()),nr.hasValue()&&(St.lineJoin=nr.getString()),Ze.hasValue()&&(St.miterLimit=Ze.getNumber()),ar.hasValue()&&ar.getString()!=="none"){var Ye=toNumbers(ar.getString());typeof St.setLineDash<"u"?St.setLineDash(Ye):typeof St.webkitLineDash<"u"?St.webkitLineDash=Ye:typeof St.mozDash<"u"&&!(Ye.length===1&&Ye[0]===0)&&(St.mozDash=Ye);var Ar=fr.getPixels();typeof St.lineDashOffset<"u"?St.lineDashOffset=Ar:typeof St.webkitLineDashOffset<"u"?St.webkitLineDashOffset=Ar:typeof St.mozDashOffset<"u"&&(St.mozDashOffset=Ar)}}if(this.modifiedEmSizeStack=!1,typeof St.font<"u"){var Oe=this.getStyle("font"),Je=this.getStyle("font-style"),We=this.getStyle("font-variant"),or=this.getStyle("font-weight"),mr=this.getStyle("font-size"),er=this.getStyle("font-family"),ir=new Font(Je.getString(),We.getString(),or.getString(),mr.hasValue()?"".concat(mr.getPixels(!0),"px"):"",er.getString(),Font.parse(Oe.getString(),St.font));Je.setValue(ir.fontStyle),We.setValue(ir.fontVariant),or.setValue(ir.fontWeight),mr.setValue(ir.fontSize),er.setValue(ir.fontFamily),St.font=ir.toString(),mr.isPixels()&&(this.document.emSize=mr.getPixels(),this.modifiedEmSizeStack=!0)}Ae||(this.applyEffects(St),St.globalAlpha=this.calculateOpacity())}clearContext(St){super.clearContext(St),this.modifiedEmSizeStack&&this.document.popEmSize()}}class PathElement extends RenderedElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="path",this.pathParser=null,this.pathParser=new PathParser(this.getAttribute("d").getString())}path(St){var{pathParser:Ae}=this,Ee=new BoundingBox;for(Ae.reset(),St&&St.beginPath();!Ae.isEnd();)switch(Ae.next().type){case PathParser.MOVE_TO:this.pathM(St,Ee);break;case PathParser.LINE_TO:this.pathL(St,Ee);break;case PathParser.HORIZ_LINE_TO:this.pathH(St,Ee);break;case PathParser.VERT_LINE_TO:this.pathV(St,Ee);break;case PathParser.CURVE_TO:this.pathC(St,Ee);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(St,Ee);break;case PathParser.QUAD_TO:this.pathQ(St,Ee);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(St,Ee);break;case PathParser.ARC:this.pathA(St,Ee);break;case PathParser.CLOSE_PATH:this.pathZ(St,Ee);break}return Ee}getBoundingBox(St){return this.path()}getMarkers(){var{pathParser:St}=this,Ae=St.getMarkerPoints(),Ee=St.getMarkerAngles(),Ce=Ae.map((_e,Te)=>[_e,Ee[Te]]);return Ce}renderChildren(St){this.path(St),this.document.screen.mouse.checkPath(this,St);var Ae=this.getStyle("fill-rule");St.fillStyle!==""&&(Ae.getString("inherit")!=="inherit"?St.fill(Ae.getString()):St.fill()),St.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(St.save(),St.setTransform(1,0,0,1,0,0),St.stroke(),St.restore()):St.stroke());var Ee=this.getMarkers();if(Ee){var Ce=Ee.length-1,_e=this.getStyle("marker-start"),Te=this.getStyle("marker-mid"),Se=this.getStyle("marker-end");if(_e.isUrlDefinition()){var xe=_e.getDefinition(),[Ie,Ue]=Ee[0];xe.render(St,Ie,Ue)}if(Te.isUrlDefinition())for(var $e=Te.getDefinition(),Me=1;Me<Ce;Me++){var[Re,ze]=Ee[Me];$e.render(St,Re,ze)}if(Se.isUrlDefinition()){var Ve=Se.getDefinition(),[nr,Ze]=Ee[Ce];Ve.render(St,nr,Ze)}}}static pathM(St){var Ae=St.getAsCurrentPoint();return St.start=St.current,{point:Ae}}pathM(St,Ae){var{pathParser:Ee}=this,{point:Ce}=PathElement.pathM(Ee),{x:_e,y:Te}=Ce;Ee.addMarker(Ce),Ae.addPoint(_e,Te),St&&St.moveTo(_e,Te)}static pathL(St){var{current:Ae}=St,Ee=St.getAsCurrentPoint();return{current:Ae,point:Ee}}pathL(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e}=PathElement.pathL(Ee),{x:Te,y:Se}=_e;Ee.addMarker(_e,Ce),Ae.addPoint(Te,Se),St&&St.lineTo(Te,Se)}static pathH(St){var{current:Ae,command:Ee}=St,Ce=new Point((Ee.relative?Ae.x:0)+Ee.x,Ae.y);return St.current=Ce,{current:Ae,point:Ce}}pathH(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e}=PathElement.pathH(Ee),{x:Te,y:Se}=_e;Ee.addMarker(_e,Ce),Ae.addPoint(Te,Se),St&&St.lineTo(Te,Se)}static pathV(St){var{current:Ae,command:Ee}=St,Ce=new Point(Ae.x,(Ee.relative?Ae.y:0)+Ee.y);return St.current=Ce,{current:Ae,point:Ce}}pathV(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e}=PathElement.pathV(Ee),{x:Te,y:Se}=_e;Ee.addMarker(_e,Ce),Ae.addPoint(Te,Se),St&&St.lineTo(Te,Se)}static pathC(St){var{current:Ae}=St,Ee=St.getPoint("x1","y1"),Ce=St.getAsControlPoint("x2","y2"),_e=St.getAsCurrentPoint();return{current:Ae,point:Ee,controlPoint:Ce,currentPoint:_e}}pathC(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e,controlPoint:Te,currentPoint:Se}=PathElement.pathC(Ee);Ee.addMarker(Se,Te,_e),Ae.addBezierCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y,Se.x,Se.y),St&&St.bezierCurveTo(_e.x,_e.y,Te.x,Te.y,Se.x,Se.y)}static pathS(St){var{current:Ae}=St,Ee=St.getReflectedControlPoint(),Ce=St.getAsControlPoint("x2","y2"),_e=St.getAsCurrentPoint();return{current:Ae,point:Ee,controlPoint:Ce,currentPoint:_e}}pathS(St,Ae){var{pathParser:Ee}=this,{current:Ce,point:_e,controlPoint:Te,currentPoint:Se}=PathElement.pathS(Ee);Ee.addMarker(Se,Te,_e),Ae.addBezierCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y,Se.x,Se.y),St&&St.bezierCurveTo(_e.x,_e.y,Te.x,Te.y,Se.x,Se.y)}static pathQ(St){var{current:Ae}=St,Ee=St.getAsControlPoint("x1","y1"),Ce=St.getAsCurrentPoint();return{current:Ae,controlPoint:Ee,currentPoint:Ce}}pathQ(St,Ae){var{pathParser:Ee}=this,{current:Ce,controlPoint:_e,currentPoint:Te}=PathElement.pathQ(Ee);Ee.addMarker(Te,_e,_e),Ae.addQuadraticCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y),St&&St.quadraticCurveTo(_e.x,_e.y,Te.x,Te.y)}static pathT(St){var{current:Ae}=St,Ee=St.getReflectedControlPoint();St.control=Ee;var Ce=St.getAsCurrentPoint();return{current:Ae,controlPoint:Ee,currentPoint:Ce}}pathT(St,Ae){var{pathParser:Ee}=this,{current:Ce,controlPoint:_e,currentPoint:Te}=PathElement.pathT(Ee);Ee.addMarker(Te,_e,_e),Ae.addQuadraticCurve(Ce.x,Ce.y,_e.x,_e.y,Te.x,Te.y),St&&St.quadraticCurveTo(_e.x,_e.y,Te.x,Te.y)}static pathA(St){var{current:Ae,command:Ee}=St,{rX:Ce,rY:_e,xRot:Te,lArcFlag:Se,sweepFlag:xe}=Ee,Ie=Te*(Math.PI/180),Ue=St.getAsCurrentPoint(),$e=new Point(Math.cos(Ie)*(Ae.x-Ue.x)/2+Math.sin(Ie)*(Ae.y-Ue.y)/2,-Math.sin(Ie)*(Ae.x-Ue.x)/2+Math.cos(Ie)*(Ae.y-Ue.y)/2),Me=Math.pow($e.x,2)/Math.pow(Ce,2)+Math.pow($e.y,2)/Math.pow(_e,2);Me>1&&(Ce*=Math.sqrt(Me),_e*=Math.sqrt(Me));var Re=(Se===xe?-1:1)*Math.sqrt((Math.pow(Ce,2)*Math.pow(_e,2)-Math.pow(Ce,2)*Math.pow($e.y,2)-Math.pow(_e,2)*Math.pow($e.x,2))/(Math.pow(Ce,2)*Math.pow($e.y,2)+Math.pow(_e,2)*Math.pow($e.x,2)));isNaN(Re)&&(Re=0);var ze=new Point(Re*Ce*$e.y/_e,Re*-_e*$e.x/Ce),Ve=new Point((Ae.x+Ue.x)/2+Math.cos(Ie)*ze.x-Math.sin(Ie)*ze.y,(Ae.y+Ue.y)/2+Math.sin(Ie)*ze.x+Math.cos(Ie)*ze.y),nr=vectorsAngle([1,0],[($e.x-ze.x)/Ce,($e.y-ze.y)/_e]),Ze=[($e.x-ze.x)/Ce,($e.y-ze.y)/_e],ar=[(-$e.x-ze.x)/Ce,(-$e.y-ze.y)/_e],fr=vectorsAngle(Ze,ar);return vectorsRatio(Ze,ar)<=-1&&(fr=Math.PI),vectorsRatio(Ze,ar)>=1&&(fr=0),{currentPoint:Ue,rX:Ce,rY:_e,sweepFlag:xe,xAxisRotation:Ie,centp:Ve,a1:nr,ad:fr}}pathA(St,Ae){var{pathParser:Ee}=this,{currentPoint:Ce,rX:_e,rY:Te,sweepFlag:Se,xAxisRotation:xe,centp:Ie,a1:Ue,ad:$e}=PathElement.pathA(Ee),Me=1-Se?1:-1,Re=Ue+Me*($e/2),ze=new Point(Ie.x+_e*Math.cos(Re),Ie.y+Te*Math.sin(Re));if(Ee.addMarkerAngle(ze,Re-Me*Math.PI/2),Ee.addMarkerAngle(Ce,Re-Me*Math.PI),Ae.addPoint(Ce.x,Ce.y),St&&!isNaN(Ue)&&!isNaN($e)){var Ve=_e>Te?_e:Te,nr=_e>Te?1:_e/Te,Ze=_e>Te?Te/_e:1;St.translate(Ie.x,Ie.y),St.rotate(xe),St.scale(nr,Ze),St.arc(0,0,Ve,Ue,Ue+$e,!!(1-Se)),St.scale(1/nr,1/Ze),St.rotate(-xe),St.translate(-Ie.x,-Ie.y)}}static pathZ(St){St.current=St.start}pathZ(St,Ae){PathElement.pathZ(this.pathParser),St&&Ae.x1!==Ae.x2&&Ae.y1!==Ae.y2&&St.closePath()}}class GlyphElement extends PathElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class TextElement extends RenderedElement{constructor(St,Ae,Ee){super(St,Ae,new.target===TextElement?!0:Ee),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(St,Ae);var Ee=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();Ee&&(St.textBaseline=Ee)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(St){if(this.type!=="text")return this.getTElementBoundingBox(St);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(St);var Ae=null;return this.children.forEach((Ee,Ce)=>{var _e=this.getChildBoundingBox(St,this,this,Ce);Ae?Ae.addBoundingBox(_e):Ae=_e}),Ae}getFontSize(){var{document:St,parent:Ae}=this,Ee=Font.parse(St.ctx.font).fontSize,Ce=Ae.getStyle("font-size").getNumber(Ee);return Ce}getTElementBoundingBox(St){var Ae=this.getFontSize();return new BoundingBox(this.x,this.y-Ae,this.x+this.measureText(St),this.y)}getGlyph(St,Ae,Ee){var Ce=Ae[Ee],_e=null;if(St.isArabic){var Te=Ae.length,Se=Ae[Ee-1],xe=Ae[Ee+1],Ie="isolated";if((Ee===0||Se===" ")&&Ee<Te-1&&xe!==" "&&(Ie="terminal"),Ee>0&&Se!==" "&&Ee<Te-1&&xe!==" "&&(Ie="medial"),Ee>0&&Se!==" "&&(Ee===Te-1||xe===" ")&&(Ie="initial"),typeof St.glyphs[Ce]<"u"){var Ue=St.glyphs[Ce];_e=Ue instanceof GlyphElement?Ue:Ue[Ie]}}else _e=St.glyphs[Ce];return _e||(_e=St.missingGlyph),_e}getText(){return""}getTextFromNode(St){var Ae=St||this.node,Ee=Array.from(Ae.parentNode.childNodes),Ce=Ee.indexOf(Ae),_e=Ee.length-1,Te=compressSpaces(Ae.textContent||"");return Ce===0&&(Te=trimLeft(Te)),Ce===_e&&(Te=trimRight(Te)),Te}renderChildren(St){if(this.type!=="text"){this.renderTElementChildren(St);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(St),this.children.forEach((Ee,Ce)=>{this.renderChild(St,this,this,Ce)});var{mouse:Ae}=this.document.screen;Ae.isWorking()&&Ae.checkBoundingBox(this,this.getBoundingBox(St))}renderTElementChildren(St){var{document:Ae,parent:Ee}=this,Ce=this.getText(),_e=Ee.getStyle("font-family").getDefinition();if(_e){for(var{unitsPerEm:Te}=_e.fontFace,Se=Font.parse(Ae.ctx.font),xe=Ee.getStyle("font-size").getNumber(Se.fontSize),Ie=Ee.getStyle("font-style").getString(Se.fontStyle),Ue=xe/Te,$e=_e.isRTL?Ce.split("").reverse().join(""):Ce,Me=toNumbers(Ee.getAttribute("dx").getString()),Re=$e.length,ze=0;ze<Re;ze++){var Ve=this.getGlyph(_e,$e,ze);St.translate(this.x,this.y),St.scale(Ue,-Ue);var nr=St.lineWidth;St.lineWidth=St.lineWidth*Te/xe,Ie==="italic"&&St.transform(1,0,.4,1,0,0),Ve.render(St),Ie==="italic"&&St.transform(1,0,-.4,1,0,0),St.lineWidth=nr,St.scale(1/Ue,-1/Ue),St.translate(-this.x,-this.y),this.x+=xe*(Ve.horizAdvX||_e.horizAdvX)/Te,typeof Me[ze]<"u"&&!isNaN(Me[ze])&&(this.x+=Me[ze])}return}var{x:Ze,y:ar}=this;St.fillStyle&&St.fillText(Ce,Ze,ar),St.strokeStyle&&St.strokeText(Ce,Ze,ar)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var St=this.leafTexts[this.textChunkStart],Ae=St.getStyle("text-anchor").getString("start"),Ee=!1,Ce=0;Ae==="start"&&!Ee||Ae==="end"&&Ee?Ce=St.x-this.minX:Ae==="end"&&!Ee||Ae==="start"&&Ee?Ce=St.x-this.maxX:Ce=St.x-(this.minX+this.maxX)/2;for(var _e=this.textChunkStart;_e<this.leafTexts.length;_e++)this.leafTexts[_e].x+=Ce;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(St){this.children.forEach((Ae,Ee)=>{this.adjustChildCoordinatesRecursiveCore(St,this,this,Ee)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(St,Ae,Ee,Ce){var _e=Ee.children[Ce];_e.children.length>0?_e.children.forEach((Te,Se)=>{Ae.adjustChildCoordinatesRecursiveCore(St,Ae,_e,Se)}):this.adjustChildCoordinates(St,Ae,Ee,Ce)}adjustChildCoordinates(St,Ae,Ee,Ce){var _e=Ee.children[Ce];if(typeof _e.measureText!="function")return _e;St.save(),_e.setContext(St,!0);var Te=_e.getAttribute("x"),Se=_e.getAttribute("y"),xe=_e.getAttribute("dx"),Ie=_e.getAttribute("dy"),Ue=_e.getStyle("font-family").getDefinition(),$e=!!Ue&&Ue.isRTL;Ce===0&&(Te.hasValue()||Te.setValue(_e.getInheritedAttribute("x")),Se.hasValue()||Se.setValue(_e.getInheritedAttribute("y")),xe.hasValue()||xe.setValue(_e.getInheritedAttribute("dx")),Ie.hasValue()||Ie.setValue(_e.getInheritedAttribute("dy")));var Me=_e.measureText(St);return $e&&(Ae.x-=Me),Te.hasValue()?(Ae.applyAnchoring(),_e.x=Te.getPixels("x"),xe.hasValue()&&(_e.x+=xe.getPixels("x"))):(xe.hasValue()&&(Ae.x+=xe.getPixels("x")),_e.x=Ae.x),Ae.x=_e.x,$e||(Ae.x+=Me),Se.hasValue()?(_e.y=Se.getPixels("y"),Ie.hasValue()&&(_e.y+=Ie.getPixels("y"))):(Ie.hasValue()&&(Ae.y+=Ie.getPixels("y")),_e.y=Ae.y),Ae.y=_e.y,Ae.leafTexts.push(_e),Ae.minX=Math.min(Ae.minX,_e.x,_e.x+Me),Ae.maxX=Math.max(Ae.maxX,_e.x,_e.x+Me),_e.clearContext(St),St.restore(),_e}getChildBoundingBox(St,Ae,Ee,Ce){var _e=Ee.children[Ce];if(typeof _e.getBoundingBox!="function")return null;var Te=_e.getBoundingBox(St);return Te?(_e.children.forEach((Se,xe)=>{var Ie=Ae.getChildBoundingBox(St,Ae,_e,xe);Te.addBoundingBox(Ie)}),Te):null}renderChild(St,Ae,Ee,Ce){var _e=Ee.children[Ce];_e.render(St),_e.children.forEach((Te,Se)=>{Ae.renderChild(St,Ae,_e,Se)})}measureText(St){var{measureCache:Ae}=this;if(~Ae)return Ae;var Ee=this.getText(),Ce=this.measureTargetText(St,Ee);return this.measureCache=Ce,Ce}measureTargetText(St,Ae){if(!Ae.length)return 0;var{parent:Ee}=this,Ce=Ee.getStyle("font-family").getDefinition();if(Ce){for(var _e=this.getFontSize(),Te=Ce.isRTL?Ae.split("").reverse().join(""):Ae,Se=toNumbers(Ee.getAttribute("dx").getString()),xe=Te.length,Ie=0,Ue=0;Ue<xe;Ue++){var $e=this.getGlyph(Ce,Te,Ue);Ie+=($e.horizAdvX||Ce.horizAdvX)*_e/Ce.fontFace.unitsPerEm,typeof Se[Ue]<"u"&&!isNaN(Se[Ue])&&(Ie+=Se[Ue])}return Ie}if(!St.measureText)return Ae.length*10;St.save(),this.setContext(St,!0);var{width:Me}=St.measureText(Ae);return this.clearContext(St),St.restore(),Me}getInheritedAttribute(St){for(var Ae=this;Ae instanceof TextElement&&Ae.isFirstChild();){var Ee=Ae.parent.getAttribute(St);if(Ee.hasValue(!0))return Ee.getValue("0");Ae=Ae.parent}return null}}class TSpanElement extends TextElement{constructor(St,Ae,Ee){super(St,Ae,new.target===TSpanElement?!0:Ee),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class TextNode extends TSpanElement{constructor(){super(...arguments),this.type="textNode"}}let SVGElement$1=class extends RenderedElement{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(St){var Ae,{document:Ee}=this,{screen:Ce,window:_e}=Ee,Te=St.canvas;if(Ce.setDefaults(St),Te.style&&typeof St.font<"u"&&_e&&typeof _e.getComputedStyle<"u"){St.font=_e.getComputedStyle(Te).getPropertyValue("font");var Se=new Property(Ee,"fontSize",Font.parse(St.font).fontSize);Se.hasValue()&&(Ee.rootEmSize=Se.getPixels("y"),Ee.emSize=Ee.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:xe,height:Ie}=Ce.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var Ue=this.getAttribute("refX"),$e=this.getAttribute("refY"),Me=this.getAttribute("viewBox"),Re=Me.hasValue()?toNumbers(Me.getString()):null,ze=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",Ve=0,nr=0,Ze=0,ar=0;Re&&(Ve=Re[0],nr=Re[1]),this.root||(xe=this.getStyle("width").getPixels("x"),Ie=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Ze=Ve,ar=nr,Ve=0,nr=0)),Ce.viewPort.setCurrent(xe,Ie),this.node&&(!this.parent||((Ae=this.node.parentNode)===null||Ae===void 0?void 0:Ae.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(St),St.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),Re&&(xe=Re[2],Ie=Re[3]),Ee.setViewBox({ctx:St,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Ce.viewPort.width,desiredWidth:xe,height:Ce.viewPort.height,desiredHeight:Ie,minX:Ve,minY:nr,refX:Ue.getValue(),refY:$e.getValue(),clip:ze,clipX:Ze,clipY:ar}),Re&&(Ce.viewPort.removeCurrent(),Ce.viewPort.setCurrent(xe,Ie))}clearContext(St){super.clearContext(St),this.document.screen.viewPort.removeCurrent()}resize(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ce=this.getAttribute("width",!0),_e=this.getAttribute("height",!0),Te=this.getAttribute("viewBox"),Se=this.getAttribute("style"),xe=Ce.getNumber(0),Ie=_e.getNumber(0);if(Ee)if(typeof Ee=="string")this.getAttribute("preserveAspectRatio",!0).setValue(Ee);else{var Ue=this.getAttribute("preserveAspectRatio");Ue.hasValue()&&Ue.setValue(Ue.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(Ce.setValue(St),_e.setValue(Ae),Te.hasValue()||Te.setValue("0 0 ".concat(xe||St," ").concat(Ie||Ae)),Se.hasValue()){var $e=this.getStyle("width"),Me=this.getStyle("height");$e.hasValue()&&$e.setValue("".concat(St,"px")),Me.hasValue()&&Me.setValue("".concat(Ae,"px"))}}};class RectElement extends PathElement{constructor(){super(...arguments),this.type="rect"}path(St){var Ae=this.getAttribute("x").getPixels("x"),Ee=this.getAttribute("y").getPixels("y"),Ce=this.getStyle("width",!1,!0).getPixels("x"),_e=this.getStyle("height",!1,!0).getPixels("y"),Te=this.getAttribute("rx"),Se=this.getAttribute("ry"),xe=Te.getPixels("x"),Ie=Se.getPixels("y");if(Te.hasValue()&&!Se.hasValue()&&(Ie=xe),Se.hasValue()&&!Te.hasValue()&&(xe=Ie),xe=Math.min(xe,Ce/2),Ie=Math.min(Ie,_e/2),St){var Ue=4*((Math.sqrt(2)-1)/3);St.beginPath(),_e>0&&Ce>0&&(St.moveTo(Ae+xe,Ee),St.lineTo(Ae+Ce-xe,Ee),St.bezierCurveTo(Ae+Ce-xe+Ue*xe,Ee,Ae+Ce,Ee+Ie-Ue*Ie,Ae+Ce,Ee+Ie),St.lineTo(Ae+Ce,Ee+_e-Ie),St.bezierCurveTo(Ae+Ce,Ee+_e-Ie+Ue*Ie,Ae+Ce-xe+Ue*xe,Ee+_e,Ae+Ce-xe,Ee+_e),St.lineTo(Ae+xe,Ee+_e),St.bezierCurveTo(Ae+xe-Ue*xe,Ee+_e,Ae,Ee+_e-Ie+Ue*Ie,Ae,Ee+_e-Ie),St.lineTo(Ae,Ee+Ie),St.bezierCurveTo(Ae,Ee+Ie-Ue*Ie,Ae+xe-Ue*xe,Ee,Ae+xe,Ee),St.closePath())}return new BoundingBox(Ae,Ee,Ae+Ce,Ee+_e)}getMarkers(){return null}}class CircleElement extends PathElement{constructor(){super(...arguments),this.type="circle"}path(St){var Ae=this.getAttribute("cx").getPixels("x"),Ee=this.getAttribute("cy").getPixels("y"),Ce=this.getAttribute("r").getPixels();return St&&Ce>0&&(St.beginPath(),St.arc(Ae,Ee,Ce,0,Math.PI*2,!1),St.closePath()),new BoundingBox(Ae-Ce,Ee-Ce,Ae+Ce,Ee+Ce)}getMarkers(){return null}}class EllipseElement extends PathElement{constructor(){super(...arguments),this.type="ellipse"}path(St){var Ae=4*((Math.sqrt(2)-1)/3),Ee=this.getAttribute("rx").getPixels("x"),Ce=this.getAttribute("ry").getPixels("y"),_e=this.getAttribute("cx").getPixels("x"),Te=this.getAttribute("cy").getPixels("y");return St&&Ee>0&&Ce>0&&(St.beginPath(),St.moveTo(_e+Ee,Te),St.bezierCurveTo(_e+Ee,Te+Ae*Ce,_e+Ae*Ee,Te+Ce,_e,Te+Ce),St.bezierCurveTo(_e-Ae*Ee,Te+Ce,_e-Ee,Te+Ae*Ce,_e-Ee,Te),St.bezierCurveTo(_e-Ee,Te-Ae*Ce,_e-Ae*Ee,Te-Ce,_e,Te-Ce),St.bezierCurveTo(_e+Ae*Ee,Te-Ce,_e+Ee,Te-Ae*Ce,_e+Ee,Te),St.closePath()),new BoundingBox(_e-Ee,Te-Ce,_e+Ee,Te+Ce)}getMarkers(){return null}}class LineElement extends PathElement{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(St){var[{x:Ae,y:Ee},{x:Ce,y:_e}]=this.getPoints();return St&&(St.beginPath(),St.moveTo(Ae,Ee),St.lineTo(Ce,_e)),new BoundingBox(Ae,Ee,Ce,_e)}getMarkers(){var[St,Ae]=this.getPoints(),Ee=St.angleTo(Ae);return[[St,Ee],[Ae,Ee]]}}class PolylineElement extends PathElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}path(St){var{points:Ae}=this,[{x:Ee,y:Ce}]=Ae,_e=new BoundingBox(Ee,Ce);return St&&(St.beginPath(),St.moveTo(Ee,Ce)),Ae.forEach(Te=>{var{x:Se,y:xe}=Te;_e.addPoint(Se,xe),St&&St.lineTo(Se,xe)}),_e}getMarkers(){var{points:St}=this,Ae=St.length-1,Ee=[];return St.forEach((Ce,_e)=>{_e!==Ae&&Ee.push([Ce,Ce.angleTo(St[_e+1])])}),Ee.length>0&&Ee.push([St[St.length-1],Ee[Ee.length-1][1]]),Ee}}class PolygonElement extends PolylineElement{constructor(){super(...arguments),this.type="polygon"}path(St){var Ae=super.path(St),[{x:Ee,y:Ce}]=this.points;return St&&(St.lineTo(Ee,Ce),St.closePath()),Ae}}class PatternElement extends Element{constructor(){super(...arguments),this.type="pattern"}createPattern(St,Ae,Ee){var Ce=this.getStyle("width").getPixels("x",!0),_e=this.getStyle("height").getPixels("y",!0),Te=new SVGElement$1(this.document,null);Te.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),Te.attributes.width=new Property(this.document,"width","".concat(Ce,"px")),Te.attributes.height=new Property(this.document,"height","".concat(_e,"px")),Te.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),Te.children=this.children;var Se=this.document.createCanvas(Ce,_e),xe=Se.getContext("2d"),Ie=this.getAttribute("x"),Ue=this.getAttribute("y");Ie.hasValue()&&Ue.hasValue()&&xe.translate(Ie.getPixels("x",!0),Ue.getPixels("y",!0)),Ee.hasValue()?this.styles["fill-opacity"]=Ee:Reflect.deleteProperty(this.styles,"fill-opacity");for(var $e=-1;$e<=1;$e++)for(var Me=-1;Me<=1;Me++)xe.save(),Te.attributes.x=new Property(this.document,"x",$e*Se.width),Te.attributes.y=new Property(this.document,"y",Me*Se.height),Te.render(xe),xe.restore();var Re=St.createPattern(Se,"repeat");return Re}}class MarkerElement extends Element{constructor(){super(...arguments),this.type="marker"}render(St,Ae,Ee){if(Ae){var{x:Ce,y:_e}=Ae,Te=this.getAttribute("orient").getString("auto"),Se=this.getAttribute("markerUnits").getString("strokeWidth");St.translate(Ce,_e),Te==="auto"&&St.rotate(Ee),Se==="strokeWidth"&&St.scale(St.lineWidth,St.lineWidth),St.save();var xe=new SVGElement$1(this.document,null);xe.type=this.type,xe.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),xe.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),xe.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),xe.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),xe.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),xe.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),xe.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),xe.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),xe.children=this.children,xe.render(St),St.restore(),Se==="strokeWidth"&&St.scale(1/St.lineWidth,1/St.lineWidth),Te==="auto"&&St.rotate(-Ee),St.translate(-Ce,-_e)}}}class DefsElement extends Element{constructor(){super(...arguments),this.type="defs"}render(){}}class GElement extends RenderedElement{constructor(){super(...arguments),this.type="g"}getBoundingBox(St){var Ae=new BoundingBox;return this.children.forEach(Ee=>{Ae.addBoundingBox(Ee.getBoundingBox(St))}),Ae}}class GradientElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:Ce,children:_e}=this;_e.forEach(Te=>{Te.type==="stop"&&Ce.push(Te)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(St,Ae,Ee){var Ce=this;this.getHrefAttribute().hasValue()&&(Ce=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(Ce));var{stops:_e}=Ce,Te=this.getGradient(St,Ae);if(!Te)return this.addParentOpacity(Ee,_e[_e.length-1].color);if(_e.forEach(nr=>{Te.addColorStop(nr.offset,this.addParentOpacity(Ee,nr.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:Se}=this,{MAX_VIRTUAL_PIXELS:xe,viewPort:Ie}=Se.screen,[Ue]=Ie.viewPorts,$e=new RectElement(Se,null);$e.attributes.x=new Property(Se,"x",-xe/3),$e.attributes.y=new Property(Se,"y",-xe/3),$e.attributes.width=new Property(Se,"width",xe),$e.attributes.height=new Property(Se,"height",xe);var Me=new GElement(Se,null);Me.attributes.transform=new Property(Se,"transform",this.getAttribute("gradientTransform").getValue()),Me.children=[$e];var Re=new SVGElement$1(Se,null);Re.attributes.x=new Property(Se,"x",0),Re.attributes.y=new Property(Se,"y",0),Re.attributes.width=new Property(Se,"width",Ue.width),Re.attributes.height=new Property(Se,"height",Ue.height),Re.children=[Me];var ze=Se.createCanvas(Ue.width,Ue.height),Ve=ze.getContext("2d");return Ve.fillStyle=Te,Re.render(Ve),Ve.createPattern(ze,"no-repeat")}return Te}inheritStopContainer(St){this.attributesToInherit.forEach(Ae=>{!this.getAttribute(Ae).hasValue()&&St.getAttribute(Ae).hasValue()&&this.getAttribute(Ae,!0).setValue(St.getAttribute(Ae).getValue())})}addParentOpacity(St,Ae){if(St.hasValue()){var Ee=new Property(this.document,"color",Ae);return Ee.addOpacity(St).getColor()}return Ae}}class LinearGradientElement extends GradientElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(St,Ae){var Ee=this.getGradientUnits()==="objectBoundingBox",Ce=Ee?Ae.getBoundingBox(St):null;if(Ee&&!Ce)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var _e=Ee?Ce.x+Ce.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),Te=Ee?Ce.y+Ce.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),Se=Ee?Ce.x+Ce.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),xe=Ee?Ce.y+Ce.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return _e===Se&&Te===xe?null:St.createLinearGradient(_e,Te,Se,xe)}}class RadialGradientElement extends GradientElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(St,Ae){var Ee=this.getGradientUnits()==="objectBoundingBox",Ce=Ae.getBoundingBox(St);if(Ee&&!Ce)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var _e=Ee?Ce.x+Ce.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),Te=Ee?Ce.y+Ce.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),Se=_e,xe=Te;this.getAttribute("fx").hasValue()&&(Se=Ee?Ce.x+Ce.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(xe=Ee?Ce.y+Ce.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var Ie=Ee?(Ce.width+Ce.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),Ue=this.getAttribute("fr").getPixels();return St.createRadialGradient(Se,xe,Ue,_e,Te,Ie)}}class StopElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="stop";var Ce=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),_e=this.getStyle("stop-opacity"),Te=this.getStyle("stop-color",!0);Te.getString()===""&&Te.setValue("#000"),_e.hasValue()&&(Te=Te.addOpacity(_e)),this.offset=Ce,this.color=Te.getColor()}}class AnimateElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,St.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Property(St,"values",null);var Ce=this.getAttribute("values");Ce.hasValue()&&this.values.setValue(Ce.getString().split(";"))}getProperty(){var St=this.getAttribute("attributeType").getString(),Ae=this.getAttribute("attributeName").getString();return St==="CSS"?this.parent.getStyle(Ae,!0):this.parent.getAttribute(Ae,!0)}calcValue(){var{initialUnits:St}=this,{progress:Ae,from:Ee,to:Ce}=this.getProgress(),_e=Ee.getNumber()+(Ce.getNumber()-Ee.getNumber())*Ae;return St==="%"&&(_e*=100),"".concat(_e).concat(St)}update(St){var{parent:Ae}=this,Ee=this.getProperty();if(this.initialValue||(this.initialValue=Ee.getString(),this.initialUnits=Ee.getUnits()),this.duration>this.maxDuration){var Ce=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(Ce==="freeze"&&!this.frozen)this.frozen=!0,Ae.animationFrozen=!0,Ae.animationFrozenValue=Ee.getString();else if(Ce==="remove"&&!this.removed)return this.removed=!0,Ee.setValue(Ae.animationFrozen?Ae.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=St;var _e=!1;if(this.begin<this.duration){var Te=this.calcValue(),Se=this.getAttribute("type");if(Se.hasValue()){var xe=Se.getString();Te="".concat(xe,"(").concat(Te,")")}Ee.setValue(Te),_e=!0}return _e}getProgress(){var{document:St,values:Ae}=this,Ee={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(Ae.hasValue()){var Ce=Ee.progress*(Ae.getValue().length-1),_e=Math.floor(Ce),Te=Math.ceil(Ce);Ee.from=new Property(St,"from",parseFloat(Ae.getValue()[_e])),Ee.to=new Property(St,"to",parseFloat(Ae.getValue()[Te])),Ee.progress=(Ce-_e)/(Te-_e)}else Ee.from=this.from,Ee.to=this.to;return Ee}}class AnimateColorElement extends AnimateElement{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:St,from:Ae,to:Ee}=this.getProgress(),Ce=new RGBColor$1(Ae.getColor()),_e=new RGBColor$1(Ee.getColor());if(Ce.ok&&_e.ok){var Te=Ce.r+(_e.r-Ce.r)*St,Se=Ce.g+(_e.g-Ce.g)*St,xe=Ce.b+(_e.b-Ce.b)*St;return"rgb(".concat(Math.floor(Te),", ").concat(Math.floor(Se),", ").concat(Math.floor(xe),")")}return this.getAttribute("from").getColor()}}class AnimateTransformElement extends AnimateElement{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:St,from:Ae,to:Ee}=this.getProgress(),Ce=toNumbers(Ae.getString()),_e=toNumbers(Ee.getString()),Te=Ce.map((Se,xe)=>{var Ie=_e[xe];return Se+(Ie-Se)*St}).join(" ");return Te}}class FontElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:Ce}=St,{children:_e}=this;for(var Te of _e)switch(Te.type){case"font-face":{this.fontFace=Te;var Se=Te.getStyle("font-family");Se.hasValue()&&(Ce[Se.getString()]=this);break}case"missing-glyph":this.missingGlyph=Te;break;case"glyph":{var xe=Te;xe.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[xe.unicode]>"u"&&(this.glyphs[xe.unicode]={}),this.glyphs[xe.unicode][xe.arabicForm]=xe):this.glyphs[xe.unicode]=xe;break}}}render(){}}class FontFaceElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class MissingGlyphElement extends PathElement{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class TRefElement extends TextElement{constructor(){super(...arguments),this.type="tref"}getText(){var St=this.getHrefAttribute().getDefinition();if(St){var Ae=St.children[0];if(Ae)return Ae.getText()}return""}}class AElement extends TextElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="a";var{childNodes:Ce}=Ae,_e=Ce[0],Te=Ce.length>0&&Array.from(Ce).every(Se=>Se.nodeType===3);this.hasText=Te,this.text=Te?this.getTextFromNode(_e):""}getText(){return this.text}renderChildren(St){if(this.hasText){super.renderChildren(St);var{document:Ae,x:Ee,y:Ce}=this,{mouse:_e}=Ae.screen,Te=new Property(Ae,"fontSize",Font.parse(Ae.ctx.font).fontSize);_e.isWorking()&&_e.checkBoundingBox(this,new BoundingBox(Ee,Ce-Te.getPixels("y"),Ee+this.measureText(St),Ce))}else if(this.children.length>0){var Se=new GElement(this.document,null);Se.children=this.children,Se.parent=this,Se.render(St)}}onClick(){var{window:St}=this.document;St&&St.open(this.getHrefAttribute().getString())}onMouseMove(){var St=this.document.ctx;St.canvas.style.cursor="pointer"}}function ownKeys$2(Be,St){var Ae=Object.keys(Be);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(Be);St&&(Ee=Ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(Be,Ce).enumerable})),Ae.push.apply(Ae,Ee)}return Ae}function _objectSpread$2(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St]!=null?arguments[St]:{};St%2?ownKeys$2(Object(Ae),!0).forEach(function(Ee){_defineProperty(Be,Ee,Ae[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Ae)):ownKeys$2(Object(Ae)).forEach(function(Ee){Object.defineProperty(Be,Ee,Object.getOwnPropertyDescriptor(Ae,Ee))})}return Be}class TextPathElement extends TextElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var Ce=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(Ce)}getText(){return this.text}path(St){var{dataArray:Ae}=this;St&&St.beginPath(),Ae.forEach(Ee=>{var{type:Ce,points:_e}=Ee;switch(Ce){case PathParser.LINE_TO:St&&St.lineTo(_e[0],_e[1]);break;case PathParser.MOVE_TO:St&&St.moveTo(_e[0],_e[1]);break;case PathParser.CURVE_TO:St&&St.bezierCurveTo(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]);break;case PathParser.QUAD_TO:St&&St.quadraticCurveTo(_e[0],_e[1],_e[2],_e[3]);break;case PathParser.ARC:{var[Te,Se,xe,Ie,Ue,$e,Me,Re]=_e,ze=xe>Ie?xe:Ie,Ve=xe>Ie?1:xe/Ie,nr=xe>Ie?Ie/xe:1;St&&(St.translate(Te,Se),St.rotate(Me),St.scale(Ve,nr),St.arc(0,0,ze,Ue,Ue+$e,!!(1-Re)),St.scale(1/Ve,1/nr),St.rotate(-Me),St.translate(-Te,-Se));break}case PathParser.CLOSE_PATH:St&&St.closePath();break}})}renderChildren(St){this.setTextData(St),St.save();var Ae=this.parent.getStyle("text-decoration").getString(),Ee=this.getFontSize(),{glyphInfo:Ce}=this,_e=St.fillStyle;Ae==="underline"&&St.beginPath(),Ce.forEach((Te,Se)=>{var{p0:xe,p1:Ie,rotation:Ue,text:$e}=Te;St.save(),St.translate(xe.x,xe.y),St.rotate(Ue),St.fillStyle&&St.fillText($e,0,0),St.strokeStyle&&St.strokeText($e,0,0),St.restore(),Ae==="underline"&&(Se===0&&St.moveTo(xe.x,xe.y+Ee/8),St.lineTo(Ie.x,Ie.y+Ee/5))}),Ae==="underline"&&(St.lineWidth=Ee/20,St.strokeStyle=_e,St.stroke(),St.closePath()),St.restore()}getLetterSpacingAt(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[St]||0}findSegmentToFitChar(St,Ae,Ee,Ce,_e,Te,Se,xe,Ie){var Ue=Te,$e=this.measureText(St,xe);xe===" "&&Ae==="justify"&&Ee<Ce&&($e+=(Ce-Ee)/_e),Ie>-1&&(Ue+=this.getLetterSpacingAt(Ie));var Me=this.textHeight/20,Re=this.getEquidistantPointOnPath(Ue,Me,0),ze=this.getEquidistantPointOnPath(Ue+$e,Me,0),Ve={p0:Re,p1:ze},nr=Re&&ze?Math.atan2(ze.y-Re.y,ze.x-Re.x):0;if(Se){var Ze=Math.cos(Math.PI/2+nr)*Se,ar=Math.cos(-nr)*Se;Ve.p0=_objectSpread$2(_objectSpread$2({},Re),{},{x:Re.x+Ze,y:Re.y+ar}),Ve.p1=_objectSpread$2(_objectSpread$2({},ze),{},{x:ze.x+Ze,y:ze.y+ar})}return Ue+=$e,{offset:Ue,segment:Ve,rotation:nr}}measureText(St,Ae){var{measuresCache:Ee}=this,Ce=Ae||this.getText();if(Ee.has(Ce))return Ee.get(Ce);var _e=this.measureTargetText(St,Ce);return Ee.set(Ce,_e),_e}setTextData(St){if(!this.glyphInfo){var Ae=this.getText(),Ee=Ae.split(""),Ce=Ae.split(" ").length-1,_e=this.parent.getAttribute("dx").split().map(Ye=>Ye.getPixels("x")),Te=this.parent.getAttribute("dy").getPixels("y"),Se=this.parent.getStyle("text-anchor").getString("start"),xe=this.getStyle("letter-spacing"),Ie=this.parent.getStyle("letter-spacing"),Ue=0;!xe.hasValue()||xe.getValue()==="inherit"?Ue=Ie.getPixels():xe.hasValue()&&xe.getValue()!=="initial"&&xe.getValue()!=="unset"&&(Ue=xe.getPixels());var $e=[],Me=Ae.length;this.letterSpacingCache=$e;for(var Re=0;Re<Me;Re++)$e.push(typeof _e[Re]<"u"?_e[Re]:Ue);var ze=$e.reduce((Ye,Ar,Oe)=>Oe===0?0:Ye+Ar||0,0),Ve=this.measureText(St),nr=Math.max(Ve+ze,0);this.textWidth=Ve,this.textHeight=this.getFontSize(),this.glyphInfo=[];var Ze=this.getPathLength(),ar=this.getStyle("startOffset").getNumber(0)*Ze,fr=0;(Se==="middle"||Se==="center")&&(fr=-nr/2),(Se==="end"||Se==="right")&&(fr=-nr),fr+=ar,Ee.forEach((Ye,Ar)=>{var{offset:Oe,segment:Je,rotation:We}=this.findSegmentToFitChar(St,Se,nr,Ze,Ce,fr,Te,Ye,Ar);fr=Oe,!(!Je.p0||!Je.p1)&&this.glyphInfo.push({text:Ee[Ar],p0:Je.p0,p1:Je.p1,rotation:We})})}}parsePathData(St){if(this.pathLength=-1,!St)return[];var Ae=[],{pathParser:Ee}=St;for(Ee.reset();!Ee.isEnd();){var{current:Ce}=Ee,_e=Ce?Ce.x:0,Te=Ce?Ce.y:0,Se=Ee.next(),xe=Se.type,Ie=[];switch(Se.type){case PathParser.MOVE_TO:this.pathM(Ee,Ie);break;case PathParser.LINE_TO:xe=this.pathL(Ee,Ie);break;case PathParser.HORIZ_LINE_TO:xe=this.pathH(Ee,Ie);break;case PathParser.VERT_LINE_TO:xe=this.pathV(Ee,Ie);break;case PathParser.CURVE_TO:this.pathC(Ee,Ie);break;case PathParser.SMOOTH_CURVE_TO:xe=this.pathS(Ee,Ie);break;case PathParser.QUAD_TO:this.pathQ(Ee,Ie);break;case PathParser.SMOOTH_QUAD_TO:xe=this.pathT(Ee,Ie);break;case PathParser.ARC:Ie=this.pathA(Ee);break;case PathParser.CLOSE_PATH:PathElement.pathZ(Ee);break}Se.type!==PathParser.CLOSE_PATH?Ae.push({type:xe,points:Ie,start:{x:_e,y:Te},pathLength:this.calcLength(_e,Te,xe,Ie)}):Ae.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return Ae}pathM(St,Ae){var{x:Ee,y:Ce}=PathElement.pathM(St).point;Ae.push(Ee,Ce)}pathL(St,Ae){var{x:Ee,y:Ce}=PathElement.pathL(St).point;return Ae.push(Ee,Ce),PathParser.LINE_TO}pathH(St,Ae){var{x:Ee,y:Ce}=PathElement.pathH(St).point;return Ae.push(Ee,Ce),PathParser.LINE_TO}pathV(St,Ae){var{x:Ee,y:Ce}=PathElement.pathV(St).point;return Ae.push(Ee,Ce),PathParser.LINE_TO}pathC(St,Ae){var{point:Ee,controlPoint:Ce,currentPoint:_e}=PathElement.pathC(St);Ae.push(Ee.x,Ee.y,Ce.x,Ce.y,_e.x,_e.y)}pathS(St,Ae){var{point:Ee,controlPoint:Ce,currentPoint:_e}=PathElement.pathS(St);return Ae.push(Ee.x,Ee.y,Ce.x,Ce.y,_e.x,_e.y),PathParser.CURVE_TO}pathQ(St,Ae){var{controlPoint:Ee,currentPoint:Ce}=PathElement.pathQ(St);Ae.push(Ee.x,Ee.y,Ce.x,Ce.y)}pathT(St,Ae){var{controlPoint:Ee,currentPoint:Ce}=PathElement.pathT(St);return Ae.push(Ee.x,Ee.y,Ce.x,Ce.y),PathParser.QUAD_TO}pathA(St){var{rX:Ae,rY:Ee,sweepFlag:Ce,xAxisRotation:_e,centp:Te,a1:Se,ad:xe}=PathElement.pathA(St);return Ce===0&&xe>0&&(xe-=2*Math.PI),Ce===1&&xe<0&&(xe+=2*Math.PI),[Te.x,Te.y,Ae,Ee,Se,xe,_e,Ce]}calcLength(St,Ae,Ee,Ce){var _e=0,Te=null,Se=null,xe=0;switch(Ee){case PathParser.LINE_TO:return this.getLineLength(St,Ae,Ce[0],Ce[1]);case PathParser.CURVE_TO:for(_e=0,Te=this.getPointOnCubicBezier(0,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),xe=.01;xe<=1;xe+=.01)Se=this.getPointOnCubicBezier(xe,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3],Ce[4],Ce[5]),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;return _e;case PathParser.QUAD_TO:for(_e=0,Te=this.getPointOnQuadraticBezier(0,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3]),xe=.01;xe<=1;xe+=.01)Se=this.getPointOnQuadraticBezier(xe,St,Ae,Ce[0],Ce[1],Ce[2],Ce[3]),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;return _e;case PathParser.ARC:{_e=0;var Ie=Ce[4],Ue=Ce[5],$e=Ce[4]+Ue,Me=Math.PI/180;if(Math.abs(Ie-$e)<Me&&(Me=Math.abs(Ie-$e)),Te=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],Ie,0),Ue<0)for(xe=Ie-Me;xe>$e;xe-=Me)Se=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],xe,0),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;else for(xe=Ie+Me;xe<$e;xe+=Me)Se=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],xe,0),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),Te=Se;return Se=this.getPointOnEllipticalArc(Ce[0],Ce[1],Ce[2],Ce[3],$e,0),_e+=this.getLineLength(Te.x,Te.y,Se.x,Se.y),_e}}return 0}getPointOnLine(St,Ae,Ee,Ce,_e){var Te=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Ae,Se=arguments.length>6&&arguments[6]!==void 0?arguments[6]:Ee,xe=(_e-Ee)/(Ce-Ae+PSEUDO_ZERO),Ie=Math.sqrt(St*St/(1+xe*xe));Ce<Ae&&(Ie*=-1);var Ue=xe*Ie,$e=null;if(Ce===Ae)$e={x:Te,y:Se+Ue};else if((Se-Ee)/(Te-Ae+PSEUDO_ZERO)===xe)$e={x:Te+Ie,y:Se+Ue};else{var Me=0,Re=0,ze=this.getLineLength(Ae,Ee,Ce,_e);if(ze<PSEUDO_ZERO)return null;var Ve=(Te-Ae)*(Ce-Ae)+(Se-Ee)*(_e-Ee);Ve/=ze*ze,Me=Ae+Ve*(Ce-Ae),Re=Ee+Ve*(_e-Ee);var nr=this.getLineLength(Te,Se,Me,Re),Ze=Math.sqrt(St*St-nr*nr);Ie=Math.sqrt(Ze*Ze/(1+xe*xe)),Ce<Ae&&(Ie*=-1),Ue=xe*Ie,$e={x:Me+Ie,y:Re+Ue}}return $e}getPointOnPath(St){var Ae=this.getPathLength(),Ee=0,Ce=null;if(St<-5e-5||St-5e-5>Ae)return null;var{dataArray:_e}=this;for(var Te of _e){if(Te&&(Te.pathLength<5e-5||Ee+Te.pathLength+5e-5<St)){Ee+=Te.pathLength;continue}var Se=St-Ee,xe=0;switch(Te.type){case PathParser.LINE_TO:Ce=this.getPointOnLine(Se,Te.start.x,Te.start.y,Te.points[0],Te.points[1],Te.start.x,Te.start.y);break;case PathParser.ARC:{var Ie=Te.points[4],Ue=Te.points[5],$e=Te.points[4]+Ue;if(xe=Ie+Se/Te.pathLength*Ue,Ue<0&&xe<$e||Ue>=0&&xe>$e)break;Ce=this.getPointOnEllipticalArc(Te.points[0],Te.points[1],Te.points[2],Te.points[3],xe,Te.points[6]);break}case PathParser.CURVE_TO:xe=Se/Te.pathLength,xe>1&&(xe=1),Ce=this.getPointOnCubicBezier(xe,Te.start.x,Te.start.y,Te.points[0],Te.points[1],Te.points[2],Te.points[3],Te.points[4],Te.points[5]);break;case PathParser.QUAD_TO:xe=Se/Te.pathLength,xe>1&&(xe=1),Ce=this.getPointOnQuadraticBezier(xe,Te.start.x,Te.start.y,Te.points[0],Te.points[1],Te.points[2],Te.points[3]);break}if(Ce)return Ce;break}return null}getLineLength(St,Ae,Ee,Ce){return Math.sqrt((Ee-St)*(Ee-St)+(Ce-Ae)*(Ce-Ae))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((St,Ae)=>Ae.pathLength>0?St+Ae.pathLength:St,0)),this.pathLength}getPointOnCubicBezier(St,Ae,Ee,Ce,_e,Te,Se,xe,Ie){var Ue=xe*CB1(St)+Te*CB2(St)+Ce*CB3(St)+Ae*CB4(St),$e=Ie*CB1(St)+Se*CB2(St)+_e*CB3(St)+Ee*CB4(St);return{x:Ue,y:$e}}getPointOnQuadraticBezier(St,Ae,Ee,Ce,_e,Te,Se){var xe=Te*QB1(St)+Ce*QB2(St)+Ae*QB3(St),Ie=Se*QB1(St)+_e*QB2(St)+Ee*QB3(St);return{x:xe,y:Ie}}getPointOnEllipticalArc(St,Ae,Ee,Ce,_e,Te){var Se=Math.cos(Te),xe=Math.sin(Te),Ie={x:Ee*Math.cos(_e),y:Ce*Math.sin(_e)};return{x:St+(Ie.x*Se-Ie.y*xe),y:Ae+(Ie.x*xe+Ie.y*Se)}}buildEquidistantCache(St,Ae){var Ee=this.getPathLength(),Ce=Ae||.25,_e=St||Ee/100;if(!this.equidistantCache||this.equidistantCache.step!==_e||this.equidistantCache.precision!==Ce){this.equidistantCache={step:_e,precision:Ce,points:[]};for(var Te=0,Se=0;Se<=Ee;Se+=Ce){var xe=this.getPointOnPath(Se),Ie=this.getPointOnPath(Se+Ce);!xe||!Ie||(Te+=this.getLineLength(xe.x,xe.y,Ie.x,Ie.y),Te>=_e&&(this.equidistantCache.points.push({x:xe.x,y:xe.y,distance:Se}),Te-=_e))}}}getEquidistantPointOnPath(St,Ae,Ee){if(this.buildEquidistantCache(Ae,Ee),St<0||St-this.getPathLength()>5e-5)return null;var Ce=Math.round(St/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[Ce]||null}}var dataUriRegex=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="image",this.loaded=!1;var Ce=this.getHrefAttribute().getString();if(Ce){var _e=Ce.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(Ce);St.images.push(this),_e?this.loadSvg(Ce):this.loadImage(Ce),this.isSvg=_e}}loadImage(St){var Ae=this;return _asyncToGenerator(function*(){try{var Ee=yield Ae.document.createImage(St);Ae.image=Ee}catch(Ce){console.error('Error while loading image "'.concat(St,'":'),Ce)}Ae.loaded=!0})()}loadSvg(St){var Ae=this;return _asyncToGenerator(function*(){var Ee=dataUriRegex.exec(St);if(Ee){var Ce=Ee[5];Ee[4]==="base64"?Ae.image=atob(Ce):Ae.image=decodeURIComponent(Ce)}else try{var _e=yield Ae.document.fetch(St),Te=yield _e.text();Ae.image=Te}catch(Se){console.error('Error while loading image "'.concat(St,'":'),Se)}Ae.loaded=!0})()}renderChildren(St){var{document:Ae,image:Ee,loaded:Ce}=this,_e=this.getAttribute("x").getPixels("x"),Te=this.getAttribute("y").getPixels("y"),Se=this.getStyle("width").getPixels("x"),xe=this.getStyle("height").getPixels("y");if(!(!Ce||!Ee||!Se||!xe)){if(St.save(),St.translate(_e,Te),this.isSvg){var Ie=Ae.canvg.forkString(St,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:Se,scaleHeight:xe});Ie.document.documentElement.parent=this,Ie.render()}else{var Ue=this.image;Ae.setViewBox({ctx:St,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:Se,desiredWidth:Ue.width,height:xe,desiredHeight:Ue.height}),this.loaded&&(typeof Ue.complete>"u"||Ue.complete)&&St.drawImage(Ue,0,0)}St.restore()}}getBoundingBox(){var St=this.getAttribute("x").getPixels("x"),Ae=this.getAttribute("y").getPixels("y"),Ee=this.getStyle("width").getPixels("x"),Ce=this.getStyle("height").getPixels("y");return new BoundingBox(St,Ae,St+Ee,Ae+Ce)}}class SymbolElement extends RenderedElement{constructor(){super(...arguments),this.type="symbol"}render(St){}}class SVGFontLoader{constructor(St){this.document=St,this.loaded=!1,St.fonts.push(this)}load(St,Ae){var Ee=this;return _asyncToGenerator(function*(){try{var{document:Ce}=Ee,_e=yield Ce.canvg.parser.load(Ae),Te=_e.getElementsByTagName("font");Array.from(Te).forEach(Se=>{var xe=Ce.createElement(Se);Ce.definitions[St]=xe})}catch(Se){console.error('Error while loading font "'.concat(Ae,'":'),Se)}Ee.loaded=!0})()}}class StyleElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="style";var Ce=compressSpaces(Array.from(Ae.childNodes).map(Te=>Te.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),_e=Ce.split("}");_e.forEach(Te=>{var Se=Te.trim();if(Se){var xe=Se.split("{"),Ie=xe[0].split(","),Ue=xe[1].split(";");Ie.forEach($e=>{var Me=$e.trim();if(Me){var Re=St.styles[Me]||{};if(Ue.forEach(nr=>{var Ze=nr.indexOf(":"),ar=nr.substr(0,Ze).trim(),fr=nr.substr(Ze+1,nr.length-Ze).trim();ar&&fr&&(Re[ar]=new Property(St,ar,fr))}),St.styles[Me]=Re,St.stylesSpecificity[Me]=getSelectorSpecificity(Me),Me==="@font-face"){var ze=Re["font-family"].getString().replace(/"|'/g,""),Ve=Re.src.getString().split(",");Ve.forEach(nr=>{if(nr.indexOf('format("svg")')>0){var Ze=parseExternalUrl(nr);Ze&&new SVGFontLoader(St).load(ze,Ze)}})}}})}})}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{constructor(){super(...arguments),this.type="use"}setContext(St){super.setContext(St);var Ae=this.getAttribute("x"),Ee=this.getAttribute("y");Ae.hasValue()&&St.translate(Ae.getPixels("x"),0),Ee.hasValue()&&St.translate(0,Ee.getPixels("y"))}path(St){var{element:Ae}=this;Ae&&Ae.path(St)}renderChildren(St){var{document:Ae,element:Ee}=this;if(Ee){var Ce=Ee;if(Ee.type==="symbol"&&(Ce=new SVGElement$1(Ae,null),Ce.attributes.viewBox=new Property(Ae,"viewBox",Ee.getAttribute("viewBox").getString()),Ce.attributes.preserveAspectRatio=new Property(Ae,"preserveAspectRatio",Ee.getAttribute("preserveAspectRatio").getString()),Ce.attributes.overflow=new Property(Ae,"overflow",Ee.getAttribute("overflow").getString()),Ce.children=Ee.children,Ee.styles.opacity=new Property(Ae,"opacity",this.calculateOpacity())),Ce.type==="svg"){var _e=this.getStyle("width",!1,!0),Te=this.getStyle("height",!1,!0);_e.hasValue()&&(Ce.attributes.width=new Property(Ae,"width",_e.getString())),Te.hasValue()&&(Ce.attributes.height=new Property(Ae,"height",Te.getString()))}var Se=Ce.parent;Ce.parent=this,Ce.render(St),Ce.parent=Se}}getBoundingBox(St){var{element:Ae}=this;return Ae?Ae.getBoundingBox(St):null}elementTransform(){var{document:St,element:Ae}=this;return Transform.fromElement(St,Ae)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function imGet(Be,St,Ae,Ee,Ce,_e){return Be[Ae*Ee*4+St*4+_e]}function imSet(Be,St,Ae,Ee,Ce,_e,Te){Be[Ae*Ee*4+St*4+_e]=Te}function m(Be,St,Ae){var Ee=Be[St];return Ee*Ae}function c(Be,St,Ae,Ee){return St+Math.cos(Be)*Ae+Math.sin(Be)*Ee}class FeColorMatrixElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="feColorMatrix";var Ce=toNumbers(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var _e=Ce[0];Ce=[.213+.787*_e,.715-.715*_e,.072-.072*_e,0,0,.213-.213*_e,.715+.285*_e,.072-.072*_e,0,0,.213-.213*_e,.715-.715*_e,.072+.928*_e,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var Te=Ce[0]*Math.PI/180;Ce=[c(Te,.213,.787,-.213),c(Te,.715,-.715,-.715),c(Te,.072,-.072,.928),0,0,c(Te,.213,-.213,.143),c(Te,.715,.285,.14),c(Te,.072,-.072,-.283),0,0,c(Te,.213,-.213,-.787),c(Te,.715,-.715,.715),c(Te,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":Ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=Ce,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(St,Ae,Ee,Ce,_e){for(var{includeOpacity:Te,matrix:Se}=this,xe=St.getImageData(0,0,Ce,_e),Ie=0;Ie<_e;Ie++)for(var Ue=0;Ue<Ce;Ue++){var $e=imGet(xe.data,Ue,Ie,Ce,_e,0),Me=imGet(xe.data,Ue,Ie,Ce,_e,1),Re=imGet(xe.data,Ue,Ie,Ce,_e,2),ze=imGet(xe.data,Ue,Ie,Ce,_e,3),Ve=m(Se,0,$e)+m(Se,1,Me)+m(Se,2,Re)+m(Se,3,ze)+m(Se,4,1),nr=m(Se,5,$e)+m(Se,6,Me)+m(Se,7,Re)+m(Se,8,ze)+m(Se,9,1),Ze=m(Se,10,$e)+m(Se,11,Me)+m(Se,12,Re)+m(Se,13,ze)+m(Se,14,1),ar=m(Se,15,$e)+m(Se,16,Me)+m(Se,17,Re)+m(Se,18,ze)+m(Se,19,1);Te&&(Ve=0,nr=0,Ze=0,ar*=ze/255),imSet(xe.data,Ue,Ie,Ce,_e,0,Ve),imSet(xe.data,Ue,Ie,Ce,_e,1,nr),imSet(xe.data,Ue,Ie,Ce,_e,2,Ze),imSet(xe.data,Ue,Ie,Ce,_e,3,ar)}St.clearRect(0,0,Ce,_e),St.putImageData(xe,0,0)}}class MaskElement extends Element{constructor(){super(...arguments),this.type="mask"}apply(St,Ae){var{document:Ee}=this,Ce=this.getAttribute("x").getPixels("x"),_e=this.getAttribute("y").getPixels("y"),Te=this.getStyle("width").getPixels("x"),Se=this.getStyle("height").getPixels("y");if(!Te&&!Se){var xe=new BoundingBox;this.children.forEach(ze=>{xe.addBoundingBox(ze.getBoundingBox(St))}),Ce=Math.floor(xe.x1),_e=Math.floor(xe.y1),Te=Math.floor(xe.width),Se=Math.floor(xe.height)}var Ie=this.removeStyles(Ae,MaskElement.ignoreStyles),Ue=Ee.createCanvas(Ce+Te,_e+Se),$e=Ue.getContext("2d");Ee.screen.setDefaults($e),this.renderChildren($e),new FeColorMatrixElement(Ee,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply($e,0,0,Ce+Te,_e+Se);var Me=Ee.createCanvas(Ce+Te,_e+Se),Re=Me.getContext("2d");Ee.screen.setDefaults(Re),Ae.render(Re),Re.globalCompositeOperation="destination-in",Re.fillStyle=$e.createPattern(Ue,"no-repeat"),Re.fillRect(0,0,Ce+Te,_e+Se),St.fillStyle=Re.createPattern(Me,"no-repeat"),St.fillRect(0,0,Ce+Te,_e+Se),this.restoreStyles(Ae,Ie)}render(St){}}MaskElement.ignoreStyles=["mask","transform","clip-path"];var noop=()=>{};class ClipPathElement extends Element{constructor(){super(...arguments),this.type="clipPath"}apply(St){var{document:Ae}=this,Ee=Reflect.getPrototypeOf(St),{beginPath:Ce,closePath:_e}=St;Ee&&(Ee.beginPath=noop,Ee.closePath=noop),Reflect.apply(Ce,St,[]),this.children.forEach(Te=>{if(!(typeof Te.path>"u")){var Se=typeof Te.elementTransform<"u"?Te.elementTransform():null;Se||(Se=Transform.fromElement(Ae,Te)),Se&&Se.apply(St),Te.path(St),Ee&&(Ee.closePath=_e),Se&&Se.unapply(St)}}),Reflect.apply(_e,St,[]),St.clip(),Ee&&(Ee.beginPath=Ce,Ee.closePath=_e)}render(St){}}class FilterElement extends Element{constructor(){super(...arguments),this.type="filter"}apply(St,Ae){var{document:Ee,children:Ce}=this,_e=Ae.getBoundingBox(St);if(_e){var Te=0,Se=0;Ce.forEach(Ze=>{var ar=Ze.extraFilterDistance||0;Te=Math.max(Te,ar),Se=Math.max(Se,ar)});var xe=Math.floor(_e.width),Ie=Math.floor(_e.height),Ue=xe+2*Te,$e=Ie+2*Se;if(!(Ue<1||$e<1)){var Me=Math.floor(_e.x),Re=Math.floor(_e.y),ze=this.removeStyles(Ae,FilterElement.ignoreStyles),Ve=Ee.createCanvas(Ue,$e),nr=Ve.getContext("2d");Ee.screen.setDefaults(nr),nr.translate(-Me+Te,-Re+Se),Ae.render(nr),Ce.forEach(Ze=>{typeof Ze.apply=="function"&&Ze.apply(nr,0,0,Ue,$e)}),St.drawImage(Ve,0,0,Ue,$e,Me-Te,Re-Se,Ue,$e),this.restoreStyles(Ae,ze)}}}render(St){}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(St,Ae,Ee,Ce,_e){}}class FeMorphologyElement extends Element{constructor(){super(...arguments),this.type="feMorphology"}apply(St,Ae,Ee,Ce,_e){}}class FeCompositeElement extends Element{constructor(){super(...arguments),this.type="feComposite"}apply(St,Ae,Ee,Ce,_e){}}class FeGaussianBlurElement extends Element{constructor(St,Ae,Ee){super(St,Ae,Ee),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(St,Ae,Ee,Ce,_e){var{document:Te,blurRadius:Se}=this,xe=Te.window?Te.window.document.body:null,Ie=St.canvas;Ie.id=Te.getUniqueId(),xe&&(Ie.style.display="none",xe.appendChild(Ie)),processCanvasRGBA(Ie,Ae,Ee,Ce,_e,Se),xe&&xe.removeChild(Ie)}}class TitleElement extends Element{constructor(){super(...arguments),this.type="title"}}class DescElement extends Element{constructor(){super(...arguments),this.type="desc"}}var elements={svg:SVGElement$1,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function ownKeys$1(Be,St){var Ae=Object.keys(Be);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(Be);St&&(Ee=Ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(Be,Ce).enumerable})),Ae.push.apply(Ae,Ee)}return Ae}function _objectSpread$1(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St]!=null?arguments[St]:{};St%2?ownKeys$1(Object(Ae),!0).forEach(function(Ee){_defineProperty(Be,Ee,Ae[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Ae)):ownKeys$1(Object(Ae)).forEach(function(Ee){Object.defineProperty(Be,Ee,Object.getOwnPropertyDescriptor(Ae,Ee))})}return Be}function createCanvas(Be,St){var Ae=document.createElement("canvas");return Ae.width=Be,Ae.height=St,Ae}function createImage(Be){return _createImage.apply(this,arguments)}function _createImage(){return _createImage=_asyncToGenerator(function*(Be){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ae=document.createElement("img");return St&&(Ae.crossOrigin="Anonymous"),new Promise((Ee,Ce)=>{Ae.onload=()=>{Ee(Ae)},Ae.onerror=(_e,Te,Se,xe,Ie)=>{Ce(Ie)},Ae.src=Be})}),_createImage.apply(this,arguments)}class Document{constructor(St){var{rootEmSize:Ae=12,emSize:Ee=12,createCanvas:Ce=Document.createCanvas,createImage:_e=Document.createImage,anonymousCrossOrigin:Te}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=St,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=St.screen,this.rootEmSize=Ae,this.emSize=Ee,this.createCanvas=Ce,this.createImage=this.bindCreateImage(_e,Te),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(St,Ae){return typeof Ae=="boolean"?(Ee,Ce)=>St(Ee,typeof Ce=="boolean"?Ce:Ae):St}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:St}=this;return St[St.length-1]}set emSize(St){var{emSizeStack:Ae}=this;Ae.push(St)}popEmSize(){var{emSizeStack:St}=this;St.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(St=>St.loaded)}isFontsLoaded(){return this.fonts.every(St=>St.loaded)}createDocumentElement(St){var Ae=this.createElement(St.documentElement);return Ae.root=!0,Ae.addStylesFromStyleDefinition(),this.documentElement=Ae,Ae}createElement(St){var Ae=St.nodeName.replace(/^[^:]+:/,""),Ee=Document.elementTypes[Ae];return typeof Ee<"u"?new Ee(this,St):new UnknownElement(this,St)}createTextNode(St){return new TextNode(this,St)}setViewBox(St){this.screen.setViewBox(_objectSpread$1({document:this},St))}}Document.createCanvas=createCanvas,Document.createImage=createImage,Document.elementTypes=elements;function ownKeys(Be,St){var Ae=Object.keys(Be);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(Be);St&&(Ee=Ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(Be,Ce).enumerable})),Ae.push.apply(Ae,Ee)}return Ae}function _objectSpread(Be){for(var St=1;St<arguments.length;St++){var Ae=arguments[St]!=null?arguments[St]:{};St%2?ownKeys(Object(Ae),!0).forEach(function(Ee){_defineProperty(Be,Ee,Ae[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Ae)):ownKeys(Object(Ae)).forEach(function(Ee){Object.defineProperty(Be,Ee,Object.getOwnPropertyDescriptor(Ae,Ee))})}return Be}class Canvg{constructor(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Parser(Ee),this.screen=new Screen(St,Ee),this.options=Ee;var Ce=new Document(this,Ee),_e=Ce.createDocumentElement(Ae);this.document=Ce,this.documentElement=_e}static from(St,Ae){var Ee=arguments;return _asyncToGenerator(function*(){var Ce=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},_e=new Parser(Ce),Te=yield _e.parse(Ae);return new Canvg(St,Te,Ce)})()}static fromString(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=new Parser(Ee),_e=Ce.parseFromString(Ae);return new Canvg(St,_e,Ee)}fork(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.from(St,Ae,_objectSpread(_objectSpread({},this.options),Ee))}forkString(St,Ae){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.fromString(St,Ae,_objectSpread(_objectSpread({},this.options),Ee))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var St=arguments,Ae=this;return _asyncToGenerator(function*(){var Ee=St.length>0&&St[0]!==void 0?St[0]:{};Ae.start(_objectSpread({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},Ee)),yield Ae.ready(),Ae.stop()})()}start(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:Ae,screen:Ee,options:Ce}=this;Ee.start(Ae,_objectSpread(_objectSpread({enableRedraw:!0},Ce),St))}stop(){this.screen.stop()}resize(St){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(St,Ae,Ee)}}const index_es=Object.freeze(Object.defineProperty({__proto__:null,AElement,AnimateColorElement,AnimateElement,AnimateTransformElement,BoundingBox,CB1,CB2,CB3,CB4,Canvg,CircleElement,ClipPathElement,DefsElement,DescElement,Document,Element,EllipseElement,FeColorMatrixElement,FeCompositeElement,FeDropShadowElement,FeGaussianBlurElement,FeMorphologyElement,FilterElement,Font,FontElement,FontFaceElement,GElement,GlyphElement,GradientElement,ImageElement,LineElement,LinearGradientElement,MarkerElement,MaskElement,Matrix,MissingGlyphElement,Mouse,PSEUDO_ZERO,Parser,PathElement,PathParser,PatternElement,Point,PolygonElement,PolylineElement,Property,QB1,QB2,QB3,RadialGradientElement,RectElement,RenderedElement,Rotate,SVGElement:SVGElement$1,SVGFontLoader,Scale,Screen,Skew,SkewX,SkewY,StopElement,StyleElement,SymbolElement,TRefElement,TSpanElement,TextElement,TextPathElement,TitleElement,Transform,Translate,UnknownElement,UseElement,ViewPort,compressSpaces,default:Canvg,getSelectorSpecificity,normalizeAttributeName,normalizeColor,parseExternalUrl,presets:index,toNumbers,trimLeft,trimRight,vectorMagnitude,vectorsAngle,vectorsRatio},Symbol.toStringTag,{value:"Module"}));return index$1});